PageSourceSearch

https://playwhale.io/assets/session-1pMhuUoh.js

js playwhale.io collected 2026-10-07 00:22:59 UTC 966,636 bytes, 407 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/walletConnect-CQic-65c.js","assets/index-CiajkjIR.js","assets/index-DjByUfik.css","assets/index-BTJb-n1K.js","assets/index-BXmSY7b2.js","assets/index-WAeqSs1c.js","assets/sha256-CgwiFjkb.js"])))=>i.map(i=>d[i]);
2var WA=Object.defineProperty;var ZA=(e,t,n)=>t in e?WA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var er=(e,t,n)=>ZA(e,typeof t!="symbol"?t+"":t,n);import{e as Wg,f as GA,i as zA,h as qA,k as xo,l as Ws,S as Je,m as d1,n as Gi,o as P,M as h,q as $t,s as Ye,u as y3,v as YA,w as KA,x as o4,y as i4,z as XA,A as JA,D as QA,E as eT,g as Sd,F as Ls,G as As,H as vr,I as No,J as zi,K as u1,L as Ld,N as _e,O as tT,P as nT,Q as Zg,T as Gg,U as zg,V as qg,W as Yg,X as sT,Y as sn,Z as rT,a0 as Kg,C as fe,a1 as Te,a2 as Ad,a3 as qi,a4 as aT,a5 as oT,a6 as iT,a7 as Nn,a8 as Et,a9 as Q,aa as lT,ab as co,ac as Xg,ad as f1,ae as cT,R as $,af as dT,ag as uT,t as w,ah as z9,ai as ia,aj as Ai,ak as l4,al as yo,am as q9,an as Y9,b as b3,ao as fT,ap as Jg,aq as mT,ar as wr,as as Qg,at as s0,au as hT,av as pT,r as y,j as o,aw as Re,ax as gT,ay as wT,az as ew,aA as CT,aB as xT,aC as yT,aD as v3,aE as tw,aF as bT,aG as vT,aH as ET,aI as nw,aJ as ST,aK as LT,aL as sw,aM as AT,aN as TT,aO as _T,aP as D2,aQ as rw,aR as RT,aS as aw,aT as NT,aU as kT,aV as IT,aW as MT,aX as OT,aY as PT,aZ as DT,_ as E3,a_ as ow,a$ as iw,b0 as lw,b1 as FT,b2 as jT,b3 as $T,b4 as BT,b5 as UT,b6 as HT,b7 as K9,b8 as X9,b9 as VT,ba as cw,bb as WT,bc as ZT,bd as c4,be as GT,bf as J9,bg as dw,bh as zT,bi as S3,bj as uw,bk as qT,bl as Ic,bm as YT,bn as KT,bo as Q9,bp as XT,bq as JT,br as e8,bs as r0,bt as t8,bu as QT,bv as e_,bw as hs,bx as L3,by as F2,bz as t_,bA as fw,bB as n_,bC as Ut,bD as it,bE as s_,bF as uo,bG as r_,bH as a_,bI as o_,bJ as n8,bK as i_,bL as l_,bM as s8,bN as c_,bO as d_,bP as u_,bQ as r8,bR as f_,bS as a8,bT as o8,bU as m_,bV as h_,bW as p_,bX as g_,bY as mw,bZ as w_,b_ as i8,b$ as Td,c0 as hw,c1 as C_,c2 as x_,c3 as y_,c4 as Ps,c5 as b_,c6 as v_,c7 as E_,c8 as S_,c9 as L_,ca as A_,cb as T_,cc as __,cd as R_,ce as N_,cf as k_,cg as I_,ch as M_,ci as O_}from"./index-CiajkjIR.js";const P_=e=>{var s;if(typeof AbortController>"u")return{signal:void 0,clear:()=>{}};const t=new AbortController,n=setTimeout(()=>t.abort(new Error(`Request timed out after ${e}ms`)),e);return(s=n.unref)==null||s.call(n),{signal:t.signal,clear:()=>clearTimeout(n)}},d4=async(e,t)=>{const{signal:n,clear:s}=P_(e);try{return await t(n)}finally{s()}},l8=e=>Wg("sign_in",GA(e)),D_=()=>Wg("copy_wallet_address"),F_=e=>zA(e.id,qA(e,Ws().toString(),xo.getState())),nie={LiveCasino:"live-casino",Casino:"casino",CryptoGames:"crypto-games",Homepage:"homepage",CasinoTribe:"casino-tribe",NewArrivals:"newarrivals",Megaways:"megaways",BuyFeature:"buyfeature",MostPopular:"most-popular",WhaleSpecials:"whalespecials"},sie={Tribes:"tribes"},rie={HOME_LOGGED_IN:"home_logged_in",HOME_LOGGED_OUT:"home_logged_out",CASINO:"casino",LIVE_CASINO:"live_casino",CRYPTO_CASINO:"crypto_casino",ORIGINALS:"originals",PROVIDERS:"providers"},aie={LIVE:"live",WEEK:"week",MONTH:"month",ALLTIME:"alltime"},A3="originals",ue={WhaleMines:"whale_mines",WhaleDice:"whale_dice",WhaleCrash:"whale_crash",WhaleRoulette:"whale_roulette",WhaleDuck:"whale_duck",WhaleBlackjack:"whale_blackjack",WhaleCrockDentist:"whale_crock_dentist",WhaleKeno:"whale_keno",WhaleTower:"whale_tower",WhalePlinko:"whale_plinko",WhaleBaccarat:"whale_baccarat"},j_={[ue.WhaleDice]:"/games/dice",[ue.WhaleMines]:"/games/mines",[ue.WhaleCrash]:"/games/crash",[ue.WhaleRoulette]:"/games/roulette",[ue.WhaleDuck]:"/games/duck",[ue.WhaleBlackjack]:"/games/blackjack",[ue.WhaleCrockDentist]:"/games/crock-dentist",[ue.WhaleKeno]:"/games/keno",[ue.WhaleTower]:"/games/tower",[ue.WhalePlinko]:"/games/plinko",[ue.WhaleBaccarat]:"/games/baccarat"},$_=["odn_oddingame","btsg_sportbetting","betby_betbysportsbook"],pw=["megaways","newarrivals","whalespecials","crypto-games","live-casino","buyfeature"],B_="/entries/games",U_="entries/providers",H_="/game-session",V_="/user/games/latest",W_="/user/games/biggest-wins",Z_="/content/banner-packs",G_="/hall-of-whales/period",z_=e=>`/entries/games/${e}/full`,q_=e=>`/entries/${e}/lobby`,Y_=e=>`/entries/category/${e}`,K_=e=>`/game/${e}/biggest-wins`,X_=e=>`/game/${e}/live-rtp`,a0=20,J_=100,j2=6,oie=7,Q_="https://cdn-games.playwhale.io",c8="https://cdn-games.whale.io";let T3=null;const eR=e=>{T3=e},Ft=()=>{if(!T3)throw new Error("@whale-client/dataflow-catalog is not configured. Call configureCatalogDataflow() on app boot.");return T3},Zs=e=>{if(!e)return"";if(/^https?:\/\//i.test(e))return e.replace(/^http:\/\//i,"https://");const{isDev:t,getHost:n}=Ft();if(t)return new URL(e,Q_).toString();try{const s=n();return new URL(e,s?`https://cdn-games.${s}`:c8).toString()}catch{return new URL(e,c8).toString()}},gw=(e,t)=>e.find(n=>n.gameCode===t),tR=(e,t)=>{const n=gw(e,t);if(n!=null&&n.providerSlug&&n.gameCode)return`/casino/${n.providerSlug}/${n.gameCode}`},nR=e=>Object.values(ue).includes(e),iie=e=>nR(e)?j_[e]:void 0,sR=e=>pw.includes(e)?e:`category/${e}`,rR=({slug:e,isPublic:t})=>{if(e&&!(t===!1&&!pw.includes(e)))return sR(e)},aR=e=>e.map(t=>({...t,categoryLink:rR(t)})),oR=e=>e.trim().toLowerCase(),d8=({providers:e,games:t},n)=>{const s=oR(n);if(!s)return[];const r=l=>l.toLowerCase().includes(s),a=e.filter(l=>
2r(l.name)).map(l=>({resultType:"provider",key:`provider:${l.slug}`,name:l.name,imageUrl:l.imageUrl,slug:l.slug})),i=t.filter(l=>r(l.name)).map(l=>({resultType:"game",key:`game:${l.gameCode}`,name:l.name,imageUrl:l.urlThumb,gameCode:l.gameCode,provider:l.provider,volatility:l.volatility}));return[...a,...i]},iR={1:{band:"low",textLabel:"global_winOften"},2:{band:"low",textLabel:"global_winOften"},3:{band:"medium",textLabel:"global_neutral"},4:{band:"medium",textLabel:"global_neutral"},5:{band:"high",textLabel:"global_winBig"},6:{band:"high",textLabel:"global_winBig"}},lR={band:"unknown",textLabel:"global_neutral"},lie=e=>iR[e]??lR,cie=e=>e.replaceAll("::","."),die=e=>e.length>0?[e[0].split("_")[0]]:null,n2=({gameCode:e,group:t})=>{const n=t??e;return n?`liveWins_${n}`:"liveWins"},ww=e=>e.toLowerCase().replace(/\s+/g,"-"),cR=(e,t)=>{const n=e||t||"";return n?Zs(n):""},uie=(e,t,n)=>{const s=e==null?void 0:e.product,r=e==null?void 0:e.game_code,a=r?n==null?void 0:n(r):void 0,i=r&&s?(t==null?void 0:t(r))||ww(s):null;return{thumbUrl:cR(a,(e==null?void 0:e.url_thumb)??(e==null?void 0:e.urlThumb)),href:i&&r?`/casino/${i}/${r}`:null}},J=Je("catalog"),Cw=J.createEvent("catalogDataflowInitialised"),dR=J.createEvent("gamesRequested"),uR=J.createEvent("fullGameRequested"),fR=J.createEvent("providersRequested"),mR=J.createEvent("lobbyRequested"),hR=J.createEvent("categoryRequested"),pR=J.createEvent("categoryGamesRequested"),gR=J.createEvent("bannerPackRequested"),wR=J.createEvent("recentlyPlayedRequested"),CR=J.createEvent("userBiggestWinsRequested"),xR=J.createEvent("gameBiggestWinsRequested"),yR=J.createEvent("liveRtpRequested"),bR=J.createEvent("gameSessionRequested"),vR=J.createEvent("hallOfWhalesRequested"),xw=J.createEvent("hallOfWhalesLiveReceived"),ER=J.createEvent("hallOfWhalesSubscriptionRequested"),SR=J.createEvent("hallOfWhalesSubscriptionDropped"),LR=J.createEvent("gameSearchQueryChanged"),u8=J.createEvent("gameSearchMoreRequested"),Ho=J.createEvent("gameSearchReset"),Za=J.createEvent("catalogUserStateReset"),qr=J.createEffect(async()=>{const e=await Ft().http.get(B_);return e!=null&&e.games?{games:e.games.map(n=>{var s;return{gameCode:n.c,urlThumb:Zs(n.i),name:n.n,provider:n.p,volatility:n.v,providerSlug:n.s,comingSoon:n.cs??!1,isBattlepassRequired:n.bp??!1,weeklyChoice:n.wc??!1,...(s=n.t)!=null&&s.length?{tournamentSlugs:n.t}:{}}}),allGamesTournamentSlugs:e.gt??[]}:{games:[],allGamesTournamentSlugs:[]}}),AR=e=>({gameCode:e.gameCode,name:e.name,volatility:e.volatility??0,urlThumb:Zs(e.urlThumb??""),providerSlug:e.providerSlug??"",provider:e.provider??void 0,description:e.description??void 0,minBet:e.minBet,maxBet:e.maxBet,maxMultiplier:e.maxMultiplier,rtp:e.rtp===null?null:parseFloat(e.rtp),isBattlepassRequired:e.isBattlepassRequired??!1}),rc=J.createEffect(async e=>{const t=await Ft().http.get(z_(e));return{gameCode:e,game:t!=null&&t.gameCode?AR(t):null}}),ac=J.createEffect(async e=>{const t=await Ft().http.get(q_(e));if(!t)throw new Error(`Failed to fetch lobby for slug: ${e}`);return{slug:t.slug??e,title:t.title,locale:t.locale,categories:aR(t.categories??[])}}),f8=e=>e&&{...e,web:Zs(e.web),mobile:Zs(e.mobile)},oc=J.createEffect(async()=>{const e=await Ft().http.get(U_);return Array.isArray(e)?e.map(t=>({...t,gameProviders:(t.gameProviders??[]).map(n=>({...n,imageUrl:Zs(n.imageUrl),games:n.games??[],hero_banner:f8(n.hero_banner),countdown_banner:f8(n.countdown_banner)}))})):[]}),TR=2e3,Qr=J.createEffect(async e=>{const t=async()=>{const n=await Ft().http.get(Y_(e));if(!n)throw new Error(`Failed to fetch category: ${e}`);return{name:n.name,title:n.title,games:n.games??[]}};try{return await t()}catch{const n=Ft().categoryRetryDelayMs??TR;return await new Promise(s=>setTimeout(s,n)),t()}}),_3=J.createEffect(async e=>{const t={};for(const n of e)try{t[n]=(await Qr(n)).games}catch{t[n]=[]}return t}),m8=new Map,R3=J.createEffect(async({currency:e,gameCode:t})=>{const n=`${e}:${t}`,s=m8.get(n);if(s)return{gameCode:t,url:s};try{const r=await Ft().http.post(H_,{currency:e,gameCode:t}),a=(r==null?void 0:r.url)??null;return a&&m8.set(n,a),{gameCode:t,url:a}}catch(r){return console.error("Error creating game session",r),{gameCode:t,url:null}}}
2),o0=J.createEffect(async()=>{const e=await Ft().http.get(V_);return((e==null?void 0:e.games)??[]).filter(t=>!$_.includes(t==null?void 0:t.game_code))}),i0=J.createEffect(async()=>{const e=await Ft().http.get(W_);return(e==null?void 0:e.items)??[]}),h8=J.createEffect(async e=>{const t=await Ft().http.get(K_(e));return{gameCode:e,items:(t==null?void 0:t.items)??[]}}),p8=J.createEffect(async e=>{const t=await Ft().http.get(X_(e));return{gameCode:e,stats:t??null}}),Da=J.createEffect(async({period:e,gameCode:t,group:n,provider:s})=>{const r=await Ft().http.get(`${G_}/${e}`,{gameCode:t,group:n,provider:s});return(r==null?void 0:r.items)??[]}),ni=J.createEffect(async({section:e,languageCode:t})=>{const n=await Ft().http.get(`${Z_}/${e}`,{countrycode:t}),s=n==null?void 0:n.content;return s?{section:e,pack:{variant:s.variant,banners:(s.banners??[]).map(r=>({title:r.title,altText:String(r.title),link:r.linkUrl,linkType:r.linkType,imagePath:{web:Zs(r.imageUrlWeb),mobile:Zs(r.imageUrlMobile)},isBattlepassRequired:r.isBattlepassRequired??!1}))}}:{section:e,pack:{variant:"faded",banners:[]}}});let oo=null;const _R=e=>`/auth-sync/socket-public/${e}`,yw=J.createEffect(async()=>{oo&&(Gi(oo),oo=null)}),Gu=J.createEffect(async e=>{const t=n2(e),n=`public:${t}`;if((oo==null?void 0:oo.channel)===n)return!0;await yw();const s=Ft(),r=await s.http.get(_R(t));if(!(r!=null&&r.connection)||!(r!=null&&r.subscription))return console.error(`[Hall of whales] Failed to obtain tokens for ${n}`),!1;const a=await d1({socketUrl:s.getSocketUrl(),connectionToken:r.connection,subscriptionToken:r.subscription,channelName:n,contextId:`Hall of whales ${n}`,handlers:{onPublication:i=>{var c;const l=(c=i.data)==null?void 0:c.payload;Array.isArray(l)&&xw(l)}}});return a?(oo={...a,channel:n},!0):!1}),sa=J.createStore([],{name:"games"}),g8=J.createStore(!1,{name:"gamesLoaded"}),fie=sa.map(e=>e.filter(t=>t.providerSlug===A3).map(t=>t.gameCode)),w8=J.createStore([],{name:"allGamesTournamentSlugs"}),C8=J.createStore({},{name:"fullGamesByCode"}),zu=J.createStore([],{name:"fullGamesInFlight"});qr.pending;const mie=rc.pending,x8=J.createStore({},{name:"lobbies"});ac.pending;const qu=J.createStore({},{name:"categories"});Qr.pending;const RR=J.createStore([],{name:"failedCategories"}),y8=J.createStore({},{name:"categoryGames"});_3.pending;const bw=J.createStore({},{name:"providersByPage"}),b8=J.createStore(!1,{name:"providersLoaded"});oc.pending;const Yu=bw.map(e=>{const t=new Set;return[...[...e.casino??[],...e.home??[]].filter(r=>t.has(r.slug)?!1:(t.add(r.slug),!0))].sort((r,a)=>r.slug===A3?-1:a.slug===A3?1:0)}),s2=J.createStore({language:null,packs:{}},{name:"bannerPackCache"}),hie=s2.map(({packs:e})=>e);ni.pending;const v8=J.createStore([],{name:"recentlyPlayed"}),E8=J.createStore([],{name:"biggestWins"}),Ku=J.createStore(!1,{name:"recentlyPlayedLoaded"}),Xu=J.createStore(!1,{name:"biggestWinsLoaded"}),S8=J.createStore({},{name:"gameBiggestWins"}),NR=J.createStore({},{name:"liveRtp"}),L8=J.createStore({},{name:"gameSessionUrls"});R3.pending;const l0=J.createStore([],{name:"hallOfWhales"}),kR=J.createStore(!1,{name:"hallOfWhalesSettled"}),Ju=J.createStore(null,{name:"hallOfWhalesPrefixFilter"}),IR=J.createEvent("hallOfWhalesPrefixFilterChanged"),MR=(e,t)=>t?e.filter(n=>t.some(s=>{var r,a;return(a=(r=n==null?void 0:n.game)==null?void 0:r.game_code)==null?void 0:a.startsWith(s)})).slice(0,j2):e.slice(0,j2),ic=J.createStore("",{name:"gameSearchQuery"}),r2=J.createStore([],{name:"gameSearchResults"}),A8=J.createStore(0,{name:"gameSearchResultCount"}),lr=J.createStore([],{name:"gameSearchMatches"}),Nl=J.createStore(0,{name:"gameSearchPage"}),a2=J.createStore("",{name:"gameSearchAppliedQuery"}),pie=P(ic,a2,(e,t)=>e===t);P(r2,lr,(e,t)=>e.length<t.length);const T8=J.createEffect(e=>new Promise(t=>setTimeout(()=>t(e),J_))),OR=J.createEffect(({name:e,properties:t})=>{Ft().trackEvent(e,t)}),c0=J.createEvent("applySearch"),gie=e=>gw(sa.getState(),e),vw=e=>tR(sa.getState(),e),_8=J.createStore([],{name:"lobbyRequestsInFlight"}),R8=J.createStore([],{name:"categoryRequestsInFlight"}),N8=J.createStore([],{name:"bannerPackRequestsInFlight"}),k8=J.createStore([],{name:"hallOfWhalesRequestsInFlight"}
2),I8=J.createStore([],{name:"liveWinsConnectsInFlight"}),Vo=(e,t)=>{const n=e.indexOf(t);return n===-1?e:[...e.slice(0,n),...e.slice(n+1)]},Qu=(e,t)=>`${t}|${e}`,e5=({period:e,gameCode:t,group:n,provider:s})=>`${e}|${t??""}|${n??""}|${s??""}`;let M8=!1;const PR=()=>{M8||(M8=!0,h({clock:[Cw,dR],source:P({loaded:g8,pending:qr.pending}),filter:({loaded:e,pending:t})=>!e&&!t,target:qr}),sa.on(qr.doneData,(e,{games:t})=>t),w8.on(qr.doneData,(e,{allGamesTournamentSlugs:t})=>t),g8.on(qr.done,()=>!0),sa.on(qr.fail,()=>[]),w8.on(qr.fail,()=>[]),h({clock:uR,source:P({cached:C8,inFlight:zu}),filter:({cached:e,inFlight:t},n)=>!!n&&!(n in e)&&!t.includes(n),fn:(e,t)=>t,target:rc}),zu.on(rc,(e,t)=>[...e,t]),zu.on(rc.finally,(e,{params:t})=>e.filter(n=>n!==t)),C8.on(rc.doneData,(e,{gameCode:t,game:n})=>({...e,[t]:n})),_8.on(ac,(e,t)=>[...e,t]).on(ac.finally,(e,{params:t})=>Vo(e,t)),h({clock:mR,source:P({lobbies:x8,inFlight:_8}),filter:({lobbies:e,inFlight:t},n)=>!e[n]&&!t.includes(n),fn:(e,t)=>t,target:ac}),x8.on(ac.doneData,(e,t)=>({...e,[t.slug]:t})),R8.on(Qr,(e,t)=>[...e,t]).on(Qr.finally,(e,{params:t})=>Vo(e,t)),h({clock:hR,source:P({categories:qu,inFlight:R8}),filter:({categories:e,inFlight:t},n)=>!e[n]&&!t.includes(n),fn:(e,t)=>t,target:Qr}),h({clock:Qr.done,source:qu,fn:(e,{params:t,result:n})=>({...e,[t]:n}),target:qu}),RR.on(Qr,(e,t)=>Vo(e,t)).on(Qr.fail,(e,{params:t})=>e.includes(t)?e:[...e,t]),h({clock:pR,source:y8,filter:(e,t)=>t.some(n=>e[n]===void 0),fn:(e,t)=>t.filter(n=>e[n]===void 0),target:_3}),y8.on(_3.doneData,(e,t)=>({...e,...t})),h({clock:fR,source:P({loaded:b8,pending:oc.pending}),filter:({loaded:e,pending:t})=>!e&&!t,target:oc}),bw.on(oc.doneData,(e,t)=>t.reduce((n,s)=>(n[s.page]=s.gameProviders,n),{})),b8.on(oc.done,()=>!0),N8.on(ni,(e,{section:t,languageCode:n})=>[...e,Qu(t,n)]).on(ni.finally,(e,{params:t})=>Vo(e,Qu(t.section,t.languageCode))),h({clock:gR,source:P({cache:s2,inFlight:N8}),filter:({cache:e,inFlight:t},n)=>{const s=Ft().getLanguage();return t.includes(Qu(n,s))?!1:e.language!==s||!e.packs[n]},fn:(e,t)=>({section:t,languageCode:Ft().getLanguage()}),target:ni}),s2.on(ni.done,(e,{params:t,result:n})=>({language:t.languageCode,packs:{...e.language===t.languageCode?e.packs:{},[t.section]:n.pack}})),s2.on(ni.fail,(e,{params:t})=>({language:t.languageCode,packs:{...e.language===t.languageCode?e.packs:{},[t.section]:{variant:"faded",banners:[]}}})),h({clock:wR,source:P({loaded:Ku,pending:o0.pending}),filter:({loaded:e,pending:t})=>!e&&!t,target:o0}),v8.on(o0.doneData,(e,t)=>t),Ku.on(o0.done,()=>!0),h({clock:CR,source:P({loaded:Xu,pending:i0.pending}),filter:({loaded:e,pending:t})=>!e&&!t,target:i0}),E8.on(i0.doneData,(e,t)=>t),Xu.on(i0.done,()=>!0),h({clock:xR,target:h8}),S8.on(h8.doneData,(e,{gameCode:t,items:n})=>({...e,[t]:n})),h({clock:yR,target:p8}),NR.on(p8.doneData,(e,{gameCode:t,stats:n})=>({...e,[t]:n})),h({clock:bR,target:R3}),L8.on(R3.doneData,(e,{gameCode:t,url:n})=>({...e,[t]:n})),Ju.on(IR,(e,t)=>t),l0.reset(Da),kR.reset(Da).on(Da.finally,()=>!0),k8.on(Da,(e,t)=>[...e,e5(t)]).on(Da.finally,(e,{params:t})=>Vo(e,e5(t))),h({clock:vR,source:k8,filter:(e,t)=>!e.includes(e5(t)),fn:(e,t)=>t,target:Da}),h({clock:Da.doneData,source:Ju,fn:(e,t)=>MR(t,e),target:l0}),I8.on(Gu,(e,t)=>[...e,n2(t)]).on(Gu.finally,(e,{params:t})=>Vo(e,n2(t))),h({clock:ER,source:I8,filter:(e,t)=>!e.includes(n2(t)),fn:(e,t)=>t,target:Gu}),h({clock:SR,target:yw}),h({clock:xw,source:P({current:l0,prefixes:Ju}),fn:({current:e,prefixes:t},n)=>{if(!t)return n.slice(0,j2);const s=new Set(e.map(a=>`${a.id}-${a.createdAt}`));return[...n.filter(a=>!s.has(`${a.id}-${a.createdAt}`)&&t.some(i=>{var l,c;return(c=(l=a==null?void 0:a.game)==null?void 0:l.game_code)==null?void 0:c.startsWith(i)})),...e].slice(0,j2)},target:l0}),h({clock:LR,target:[ic,T8]}),h({clock:T8.doneData,source:ic,filter:(e,t)=>e===t,fn:(e,t)=>t,target:c0}),h({clock:c0,source:P({games:sa,providers:Yu}),fn:({games:e,providers:t},n)=>d8({games:e,providers:t},n),target:lr}),h({clock:[sa.updates,Yu.updates],source:P({games:sa,providers:Yu,query:ic,appliedQuery:a2}),filter:({query:e,appliedQuery:t})=>e===t&&t.trim().length>0,fn:({games:e,providers:t,appliedQuery:n})=>d8({games:e,providers:t},n),target:lr}),A8.on(lr.updates,(e,t)=>t.length),r2.on(lr.updates,(e,t)=>t.slice(0,a0)),Nl.on(lr.updates,()=>1),a2.on(c0,(e,t)=>t),h({clock:c0,filter:e=>e.trim().length>0,fn:e=>({name:"Search",properties:{searchValue:e,length:e.length}}),target:OR}),h({clock:u8,source:P({matches:lr,page:Nl}),filter:({matches:e,page:t})=>t*a0<e.length,fn:({matches:e,page:t})=>e.slice(0,(t+1)*a0),target:r2}),h({clock:u8,source:P({matches:lr,page:Nl}),filter:({matches:e,page:t})=>t*a0<e.length,fn:({page:e})=>e+1,target:Nl}),ic.reset(Ho),lr.reset(Ho),r2.reset(Ho),A8.reset(Ho),Nl.reset(Ho),a2.reset(Ho),v8.reset(Za),Ku.reset(Za),E8.reset(Za),Xu.reset(Za),S8.reset(Za),L8.reset(Za))},En={PHYSICAL:"PHYSICAL",POKEMON:"POKEMON",FREESPIN:"FREESPIN"},qn={UBERLEGENDARY:"uberlegendary",LEGENDARY:"legendary",RARE:"rare",UNCOMMON:"uncommon",COMMON:"common",TRASH:"trash"},mn={NFT:"NFT",TOKEN:"TOKEN",CRYPTO:"CRYPTO",PHYSICAL_ITEM:"PHYSICAL_ITEM",FREESPIN:"FREESPIN",DEPOSIT:"DEPOSIT",ORIGINAL_GAME_FREEBET:"ORIGINAL_GAME_FREEBET"},DR="REWARD",st={AVAILABLE:"AVAILABLE",ACTIVATING:"ACTIVATING",ACTIVATED:"ACTIVATED",SOLD:"SOLD",WITHDRAWN:"WITHDRAWN",REQUESTED_DELIVERY:"REQUESTED_DELIVERY",PROCESSING_DELIVERY:"PROCESSING_DELIVERY",SHIPPED:"SHIPPED",DELIVERED:"DELIVERED",REFUNDED:"REFUNDED"},FR=[qn.UBERLEGENDARY,qn.LEGENDARY,qn.RARE,qn.UNCOMMON,qn.COMMON,qn.TRASH],Ti=["#fcc66a","#637af4","#c77dff","#7cc6a0","#ff5f7a","#9092b2"],Ew={[qn.UBERLEGENDARY]:"#ff5f7a",[qn.LEGENDARY]:"#c77dff",[qn.RARE]:"#fcc66a",[qn.UNCOMMON]:"#637af4",[qn.COMMON]:"#7cc6a0",[qn.TRASH]:"#9092b2"},jR=50,Sw=100,$R=100,BR=406,UR=1,N3=4,HR=3,m1="/lootbox",VR="/lootbox/collectibles-config",Lw="/lootbox/sell",Aw="/lootbox/inventory",Tw="/lootbox/deliveries",u4="/lootbox/withdraw",_w="/lootbox/withdraw/confirm",Rw=e
2=>`${m1}/${encodeURIComponent(e)}`,WR=e=>`${m1}/${e}/open`,ZR="standard",Nw={buybackRate:1,withdrawalFeeRate:0,shipping:{standardUsd:0,priorityUsd:0}},d0=(e,t)=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:t,GR=e=>{var n,s;const t=Nw;return{buybackRate:d0(e==null?void 0:e.buybackRate,t.buybackRate),withdrawalFeeRate:d0(e==null?void 0:e.withdrawalFeeRate,t.withdrawalFeeRate),shipping:{standardUsd:d0((n=e==null?void 0:e.shipping)==null?void 0:n.standardUsd,t.shipping.standardUsd),priorityUsd:d0((s=e==null?void 0:e.shipping)==null?void 0:s.priorityUsd,t.shipping.priorityUsd)}}},wie=e=>`${Math.round(e.buybackRate*100)}%`;let k3=null;const zR=e=>{k3=e},kw=()=>{if(!k3)throw new Error("@whale-client/dataflow-collectibles is not configured. Call configureCollectiblesDataflow() on app boot.");return k3},h1=e=>`${Number((e??0).toFixed(2))}%`,f4=({page:e=1,pageSize:t=jR,currency:n,category:s})=>({page:e,pageSize:t,currency:n,...s?{category:s}:{}}),m4=()=>kw().lootboxCategory,Cie=e=>Math.min(N3,Math.max(UR,Math.floor(Number(e))||HR)),h4=e=>e.type===mn.FREESPIN?"Free Spins":e.name,qR=e=>({itemId:e.id,image:e.image,label:h4(e),subtitle:e.name,price:String(e.costInUsd)}),YR=e=>{const t=new Map;for(const s of e){const r=t.get(s.rarity);r?r.push(s):t.set(s.rarity,[s])}const n=[];for(const s of FR){const r=t.get(s);if(!(r!=null&&r.length))continue;const a=r.reduce((i,l)=>i+(l.odds??0),0);n.push({name:`Tier ${n.length+1}`,odds:h1(a),badgeColor:Ti[n.length%Ti.length],prizes:r.map(qR)})}return n},Iw=e=>{var t,n;return(t=e.tags)!=null&&t.includes(En.POKEMON)?En.POKEMON:(n=e.items)!=null&&n.some(s=>s.type===mn.PHYSICAL_ITEM)?En.PHYSICAL:En.FREESPIN},Mw=e=>{const t=e==null?void 0:e[0];if(!t)return 0;const n=Number(t.betCount)-Number(t.usedCount);return Number.isFinite(n)?Math.max(0,n):0},KR=e=>{var n,s,r;const t=Iw(e);return{id:e.id,name:e.name,urlSlug:e.urlSlug,label:t===En.PHYSICAL?"Lootbox":"Booster Pack",packImage:e.image,pricePerPack:String(e.costInUsd),tag:t,tiers:YR(e.items??[]),freeOpensRemaining:Mw(e.freeBets),freeOpensRequireVerification:!!((s=(n=e.freeBets)==null?void 0:n[0])!=null&&s.verificationRequired),isRewardOnly:!!((r=e.tags)!=null&&r.includes(DR))}},xie=({pack:e,isAuthenticated:t,kycPassed:n,kycKnown:s})=>t?e.freeOpensRemaining===void 0?{kind:"pending"}:e.freeOpensRemaining>0?e.freeOpensRequireVerification===!0&&!s?{kind:"pending"}:{kind:"free",maxCount:Math.min(N3,e.freeOpensRemaining),needsKyc:e.freeOpensRequireVerification===!0&&!n}:e.isRewardOnly===!0?{kind:"locked"}:{kind:"paid",maxCount:N3}:{kind:"guest"},Ow=e=>({key:String(e.id),name:e.name,urlSlug:e.urlSlug,image:e.image,costInUsd:String(e.costInUsd),tag:Iw(e),tags:e.tags??[],freeOpensRemaining:Mw(e.freeBets)}),XR=e=>{var t;return{id:e.id,name:e.name,urlSlug:e.urlSlug,label:"Booster Pack",packImage:e.image,pricePerPack:String(e.costInUsd),tag:(t=e.tags)!=null&&t.includes(En.POKEMON)?En.POKEMON:En.FREESPIN,tiers:[]}},yie=e=>{const t=e.item,n=String(e.costInUsd??(t==null?void 0:t.costInUsd)??"0");return{inventoryId:e.id,itemId:t==null?void 0:t.id,image:(t==null?void 0:t.image)??"",tierName:(t==null?void 0:t.rarity)??"",odds:t?h1(t.odds):"",badgeColor:t?Ew[t.rarity]??Ti[0]:Ti[0],label:t?h4(t):"",subtitle:(t==null?void 0:t.name)??"",price:n,name:(t==null?void 0:t.name)??"",value:n,sellable:e.sellable!==!1}},JR=(e,t)=>e===BR&&/money|fund|balance/i.test(t??""),QR=12,eN=(e,t=QR)=>{if(e.length===0||e.length>=t)return e;const n=[];for(;n.length<t;)n.push(...e);return n.slice(0,t)},bie=(e,t)=>e.length>0?eN(e):t?[t]:[],Cr={POKEMON:"pokemon",REWARDS:"rewards",FREESPINS:"freespins",PHYSICAL:"physical"},tN=e=>e===mn.PHYSICAL_ITEM?Cr.PHYSICAL:e===mn.FREESPIN||e===mn.ORIGINAL_GAME_FREEBET?Cr.FREESPINS:Cr.REWARDS,nN=new Set(Object.values(mn)),sN=e=>{var t;return(e==null?void 0:e.type)!==mn.PHYSICAL_ITEM||!Array.isArray((t=e.productDetails)==null?void 0:t.variants)?[]:e.productDetails.variants.filter(n=>typeof(n==null?void 0:n.key)=="string"&&n.key!==""&&Array.isArray(n.values))},Pw=[mn.CRYPTO,mn.TOKEN,mn.NFT],rN=e=>{var t;return!e||!Pw.includes(e.type)?"":typeof((t=e.productDetails)==null?void 0:t.network)=="string"?e.productDetails.network.trim():""},aN=e=>{var t;return(e==null?void 0:e.type)!==mn.ORIGINAL_GAME_FREEBET?"":typeof((t=e.productDetails)==null?void 0:t.gameType)=="string"?e.productDetails.gameType.trim():""},Dw=e=>{const t=e.item,n=String(e.costInUsd??(t==null?void 0:t.costInUsd)??"0"),s=(t==null?void 0:t.type)??e.lootboxItemType??"",r=e.productDetails,a=Number(r==null?void 0:r.bet_count);return{id:e.id,image:(t==null?void 0:t.image)??"",name:(t==null?void 0:t.name)??"",subtitle:(t==null?void 0:t.description)??"",tierName:(t==null?void 0:t.rarity)??"",odds:t?h1(t.odds):"",badgeColor:t?Ew[t.rarity]??Ti[0]:Ti[
20],label:t?h4(t):"",value:n,category:tN(s),sellable:e.sellable===!0,deliverable:e.deliverable===!0,shippingUsd:oN(t==null?void 0:t.shippingInUsd),variants:sN(t),itemType:s,redemptionType:e.lootboxItemType??s,status:e.status??st.AVAILABLE,withdrawable:e.withdrawable===!0,gameCode:typeof(r==null?void 0:r.game_code)=="string"?r.game_code:"",freespinGameName:typeof(r==null?void 0:r.name)=="string"?r.name:"",betCount:Number.isFinite(a)&&a>0?a:0,alreadyClaimed:e.alreadyClaimed===!0,network:rN(t),freebetGameType:aN(t)}},oN=e=>{const t=typeof e=="string"?parseFloat(e):e;return typeof t=="number"&&Number.isFinite(t)&&t>0?t:0},p1=e=>e.itemType!==e.redemptionType,Fw=e=>nN.has(e.redemptionType)&&!p1(e)&&(e.deliverable||e.redemptionType===mn.PHYSICAL_ITEM),p4=e=>e.status===st.AVAILABLE,iN=e=>e.sellable&&p4(e),_d=e=>e.redemptionType===mn.FREESPIN&&!p1(e),jw=e=>_d(e)&&e.withdrawable&&!e.alreadyClaimed&&e.status===st.AVAILABLE,vie=e=>_d(e)&&e.alreadyClaimed&&e.status===st.AVAILABLE,$w=e=>_d(e)&&e.status===st.ACTIVATED,lN=e=>e.redemptionType===mn.DEPOSIT&&!p1(e),Bw=e=>lN(e)&&e.status===st.AVAILABLE,cN=e=>Pw.includes(e.redemptionType)&&!p1(e),Uw=e=>cN(e)&&e.withdrawable&&e.network!==""&&e.status===st.AVAILABLE,g4=e=>e.redemptionType===mn.ORIGINAL_GAME_FREEBET&&!p1(e),Hw=e=>g4(e)&&e.withdrawable&&e.freebetGameType!==""&&e.status===st.AVAILABLE,Vw=e=>g4(e)&&e.freebetGameType!==""&&e.status===st.ACTIVATED,Yn={CLAIM:"claim",ACTIVATING:"activating",PLAY:"play",NONE:"none"},dN=e=>_d(e)?jw(e)?Yn.CLAIM:e.status===st.ACTIVATING?Yn.ACTIVATING:$w(e)?Yn.PLAY:Yn.NONE:Yn.NONE,uN=e=>g4(e)?Hw(e)?Yn.CLAIM:e.status===st.ACTIVATING?Yn.ACTIVATING:Vw(e)?Yn.PLAY:Yn.NONE:Yn.NONE,t5=(e,t)=>t.status===""?e:e.map(n=>n.id===t.id?{...n,status:t.status}:n),fN=(e,t)=>e.map(n=>n.id===t?{...n,alreadyClaimed:!0}:n),mN={[st.AVAILABLE]:0,[st.ACTIVATING]:1,[st.ACTIVATED]:2,[st.WITHDRAWN]:3},O8=e=>e==null?void 0:mN[e],hN=(e,t)=>{const n=new Map(e.map(s=>[s.id,s.status]));return t.map(s=>{const r=n.get(s.id),a=O8(r),i=O8(s.status);return a!==void 0&&i!==void 0&&a>i?{...s,status:r}:s})},Vt={ALL:"all",POKEMON:Cr.POKEMON,REWARDS:Cr.REWARDS,FREESPINS:Cr.FREESPINS,SHIPMENTS:"shipments"},pN=[Vt.ALL,Vt.POKEMON,Vt.REWARDS,Vt.FREESPINS,Vt.SHIPMENTS],gN=[Vt.POKEMON,Vt.REWARDS,Vt.FREESPINS],la=e=>parseFloat(e.value)||0,n5=(e,t)=>e.filter(n=>n.category===t).length,wN=e=>({[Vt.ALL]:e.length,[Vt.POKEMON]:n5(e,Cr.POKEMON),[Vt.REWARDS]:n5(e,Cr.REWARDS),[Vt.FREESPINS]:n5(e,Cr.FREESPINS),[Vt.SHIPMENTS]:0}),Ww=(e,t)=>!gN.includes(e)||t[e]>0,Eie=e=>pN.filter(t=>Ww(t,e)),Sie=(e,t)=>Ww(e,t)?e:Vt.ALL,CN=({cards:e,tab:t,search:n,sortDesc:s})=>{if(t===Vt.SHIPMENTS)return[];const r=n.trim().toLowerCase();return e.filter(a=>t===Vt.ALL||a.category===t).filter(a=>!r||a.name.toLowerCase().includes(r)||(a.subtitle??"").toLowerCase().includes(r)).slice().sort((a,i)=>s?la(i)-la(a):la(a)-la(i))},P8=e=>e.reduce((t,n)=>t+la(n),0),xN=e=>new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e),I3=e=>`$${xN(e)}`,Lie=e=>I3(parseFloat(e??"")||0),yN=e=>({inventoryValue:I3(P8(e)),buybackValue:I3(P8(e.filter(iN)))}),bN=e=>{var t,n,s,r,a,i,l;return{id:e.id,name:((t=e.item)==null?void 0:t.name)??"",image:((n=e.item)==null?void 0:n.image)??"",subtitle:((s=e.item)==null?void 0:s.description)??"",status:e.status??st.REQUESTED_DELIVERY,destination:[(r=e.shippingDetails)==null?void 0:r.city,(a=e.shippingDetails)==null?void 0:a.country].filter(Boolean).join(", "),trackingNumber:((l=(i=e.shippingDetails)==null?void 0:i.trackingNumber)==null?void 0:l.trim())||void 0}},vN=e=>e===st.REQUESTED_DELIVERY||e===st.PROCESSING_DELIVERY||e===st.SHIPPED,EN=e=>e.filter(t=>vN(t.status??"")).length,bc={DELIVERED:"delivered",IN_TRANSIT:"in_transit",PREPARING:"preparing"},SN=e=>e===st.DELIVERED?bc.DELIVERED:e===st.SHIPPED?bc.IN_TRANSIT:bc.PREPARING,LN=4,Aie=e=>{const t=SN(e);return t===bc.DELIVERED?LN:t===bc.IN_TRANSIT?2:0},AN={inventory:[],deliveries:[],inventoryTotal:0,deliveryTotal:0},TN=8,_N=()=>1+Math.floor(Math.random()*59),RN=(e,t=_N)=>{const n=e.flatMap(({pack:s,items:r})=>r.map(a=>({pack:s,item:a,min:t()})));return n.sort((s,r)=>s.min-r.min),n.map(({pack:s,item:r,min:a})=>({id:`${s.id}-${r.id}`,image:r.image,pack:s.image,name:r.name,chance:r.odds?h1(r.odds):"",timeAgo:`${a}m ago`}))},s5=e=>{var t;return Number(e.costInUsd??((t=e.item)==null?void 0:t.costInUsd)??0)},NN=(e,t)=>{const n=new Map;for(const i of[...e,...t])n.set(i.id,i);const s=[...n.values()].filter(i=>{var l,c;return((c=(l=i.lootbox)==null?void 0:l.tags)==null?void 0:c.includes(En.POKEMON))&&i.status!==st.SOLD&&i.status!==st.REFUNDED&&i.status!==st.WITHDRAWN}),r=s.length?s.reduce((i,l)=>s5(l)>s5(i)?l:i):null;if(!r)return{bestPull:null,count:0};const a=r.item;return{count:s.length,bestPull:{card:(a==null?void 0:a.name)??"",subtitle:(a==null?void 0:a.description)??"",rarity:(a==null?void 0:a.rarity)??"",odds:a!=null&&a.odds?h1(a.odds):"",value:String(s5(r)),slab:(a==null?void 0:a.image)??""}}},kN=3e4,IN=(e,t)=>e!==null&&t-e<kN,ps={ADDRESS:0,BUYBACKS:1,ITEMS:2,SHIPPING:3,REVIEW:4},Tie=[ps.ADDRESS,ps.BUYBACKS,ps.ITEMS,ps.SHIPPING,ps.REVIEW],Rd=ps.ADDRESS,Zw=
2ps.REVIEW,MN=e=>({nameFirst:e.nameFirst,nameLast:e.nameLast,email:e.email,phone:e.phone,phoneCode:e.phoneCode,postalAddress:e.postalAddress,postalCode:e.postalCode,country:e.country,city:e.city}),ON="addr-last",PN=(e,t=ON)=>({id:t,nameFirst:e.nameFirst??"",nameLast:e.nameLast??"",email:e.email??"",phone:e.phone??"",phoneCode:e.phoneCode??"",postalAddress:e.postalAddress??"",city:e.city??"",postalCode:e.postalCode??"",country:e.country??""}),DN=e=>{const t=e.find(n=>{var s;return(((s=n.shippingDetails)==null?void 0:s.postalAddress)??"").trim()!==""});return t!=null&&t.shippingDetails?PN(t.shippingDetails):null},FN=["BY","RU","UA"],jN=e=>FN.includes(e.trim().toUpperCase()),$N=["nameFirst","nameLast","email","phone","postalAddress","city","postalCode","country"],_ie=e=>$N.every(t=>e[t].trim()!=="")&&!jN(e.country),Mc=[{id:ZR,nameKey:"lootbox.collectibles.claim_flow.shipping_method_standard",etaKey:"lootbox.collectibles.claim_flow.shipping_eta_standard"}];var Vg;const BN=((Vg=Mc.find(e=>e.recommended))==null?void 0:Vg.id)??Mc[0].id,UN=e=>Mc.find(t=>t.id===e)??Mc[0],w4=(e,t)=>e*t,HN=(e,t)=>e*t,VN=25,Gw=()=>({step:Rd,addresses:[],selectedAddressId:null,items:[],claimItemIds:[],selectedBuybackIds:[],shippingMethodId:BN,productChoices:{},soldItems:[],submitting:!1,loaded:!1}),zw=e=>e.filter(t=>Fw(t)&&p4(t)),D8=(e,t)=>{const n=zw(t),s=new Set(n.map(r=>r.id));return{...e,items:n,loaded:!0,claimItemIds:e.claimItemIds.filter(r=>s.has(r)),selectedBuybackIds:e.selectedBuybackIds.filter(r=>s.has(r)),productChoices:WN(n,e.productChoices)}},WN=(e,t)=>{const n={};return e.forEach(s=>{const r=t[s.id];if(!r)return;const a=qw(s,r);Object.keys(a).length>0&&(n[s.id]=a)}),n},qw=(e,t)=>{const n={};
2return e.variants.forEach(s=>{const r=t[s.key];r!==void 0&&s.values.some(a=>a.value===r)&&(n[s.key]=r)}),n},ZN=(e,t)=>e.items.some(n=>n.id===t)&&!e.claimItemIds.includes(t)?{...e,claimItemIds:[...e.claimItemIds,t]}:e,Oc=e=>e.addresses.find(t=>t.id===e.selectedAddressId)??e.addresses[0]??null,GN=e=>UN(e.shippingMethodId),Er=e=>e.items.filter(t=>e.claimItemIds.includes(t.id)),zN=e=>e.items.filter(t=>e.selectedBuybackIds.includes(t.id)),qN=e=>e.variants.filter(t=>t.values.length>0),Rie=(e,t,n)=>{var s;return((s=e.productChoices[t])==null?void 0:s[n])??""},YN=(e,t)=>qN(e).filter(n=>!n.values.some(s=>s.value===(t==null?void 0:t[n.key]))).map(n=>n.key),KN=e=>Er(e).filter(t=>YN(t,e.productChoices[t.id]).length>0),C4=e=>KN(e).length===0,Yw=(e,t)=>e.reduce((n,s)=>n+HN(la(s),t),0),XN=e=>e.reduce((t,n)=>t+la(n),0),JN=(e,t)=>Yw(e.items,t),Nie=(e,t)=>Yw(zN(e),t),Kw=e=>XN(Er(e)),Xw=e=>Er(e).reduce((t,n)=>t+n.shippingUsd,0),kie=(e,t)=>Er(e).length===0?0:w4(Kw(e),t.withdrawalFeeRate)+Xw(e),Iie=(e,t)=>{const n=w4(Kw(e),t.withdrawalFeeRate),s=Xw(e);return{withdrawalFees:n,shipping:s,total:n+s}},r5={OK:"ok",EMPTY:"empty",INSUFFICIENT:"insufficient"},Mie=({shippingUsd:e,balanceUsd:t,itemCount:n})=>n===0?r5.EMPTY:t!==null&&e>0&&e>t?r5.INSUFFICIENT:r5.OK,Oie=(e,t)=>Math.floor(JN(e,t)/VN),QN=e=>e.loaded&&e.items.length===0,Jw=(e,t)=>{switch(t){case ps.ADDRESS:return Oc(e)!==null;case ps.BUYBACKS:return e.items.length>0;case ps.ITEMS:return Er(e).length>0&&C4(e);case ps.SHIPPING:return!0;default:return!1}},Qw=e=>Jw(e,e.step),ek=e=>{let t=Rd;for(;t<Zw&&Jw(e,t);)t=t+1;return t},tk=e=>Qw(e)?{...e,step:e.step+1}:e,nk=e=>e.step===Rd?e:{...e,step:e.step-1},sk=(e,t)=>{if(!Number.isInteger(t)||t<Rd||t>Zw)return e;const n=t<=e.step?t:Math.min(t,ek(e));return n===e.step?e:{...e,step:n}},eC=(e,t)=>({...e,addresses:[t],selectedAddressId:t.id}),rk=(e,t)=>t===null||e.addresses.length>0?e:eC(e,t),tC=(e,t)=>e.includes(t)?e.filter(n=>n!==t):[...e,t],ak=(e,t)=>e.items.some(n=>n.id===t)?{...e,selectedBuybackIds:tC(e.selectedBuybackIds,t)}:e,ok=(e,t)=>e.items.some(n=>n.id===t)?{...e,claimItemIds:tC(e.claimItemIds,t)}:e,ik=(e,t)=>({...e,claimItemIds:e.claimItemIds.filter(n=>n!==t)}),lk=(e,{id:t,key:n,value:s})=>{const r=e.items.find(a=>a.id===t);return!r||!r.variants.some(a=>a.key===n&&a.values.some(i=>i.value===s))?e:{...e,productChoices:{...e.productChoices,[t]:{...e.productChoices[t],[n]:s}}}},ck=e=>({...e,claimItemIds:[]}),dk=(e,t)=>Mc.some(n=>n.id===t)?{...e,shippingMethodId:t}:e,uk=(e,t)=>{const n=e.items.filter(a=>t.includes(a.id));if(n.length===0)return e;const s=new Set(n.map(a=>a.id)),r=Object.fromEntries(Object.entries(e.productChoices).filter(([a])=>!s.has(Number(a))));return{...e,items:e.items.filter(a=>!s.has(a.id)),claimItemIds:e.claimItemIds.filter(a=>!s.has(a)),selectedBuybackIds:[],productChoices:r,soldItems:[...e.soldItems,...n]}},F8=(e,t)=>({...e,submitting:t}),Pie=(e,t)=>t&&!e.submitting&&Oc(e)!==null&&Er(e).length>0&&C4(e),fk=({items:e,address:t,config:n,productChoices:s})=>{const r=MN(t);return e.map(a=>({lootboxInventoryId:a.id,shippingDetails:{...r,withdrawalFeeUsd:w4(la(a),n.withdrawalFeeRate)},...a.variants.length>0?{productDetails:qw(a,s[a.id]??{})}:{}}))},mk=(e,t)=>t&&Fw(e)&&p4(e),Die=(e,t)=>mk(e,t)||dN(e)!==Yn.NONE||Bw(e)||Uw(e)||uN(e)!==Yn.NONE,Fie=(e,t)=>t&&zw(e).length>0,u0={PENDING:"pending",ALLOWED:"allowed",DENIED:"denied"},jie=({deliveryEnabled:e,isSessionResolved:t,isAuthenticated:n})=>e?t?n?u0.ALLOWED:u0.DENIED:u0.PENDING:u0.DENIED,nC=()=>({pack:null,count:1,demo:!1,currency:"",runId:"",isReal:!1,wonItems:[],openFailed:!1,openError:null,revealedCount:0,myLoot:[],freshKeys:[],landedLoot:null,lootKey:0,lastSold:[]}),hk={image:"",tierName:"Tier 1",odds:"",badgeColor:"#fcc66a",label:"Free Spins",subtitle:"",price:"0",name:"",value:"0"},sC={image:"",tierName:"",odds:"",badgeColor:"#9092b2",label:"",subtitle:"",price:"",name:"",value:""},$ie=e=>e.tiers.flatMap(t=>t.prizes.map(n=>({itemId:n.itemId,image:n.image,tierName:t.name,odds:t.odds,badgeColor:t.badgeColor,label:n.label,subtitle:n.subtitle,price:n.price,name:n.name??n.subtitle,value:n.price}))),Bie=(e,t)=>e[t]??e[0]??hk,pk=({pack:e,count:t,demo:n,currency:s,runId:r})=>({...nC(),pack:e,count:e.tag===En.PHYSICAL?1:t,demo:n,currency:s,runId:r,isReal:!n&&e.id!=null,landedLoot:sC}),gk=(e,t)=>({...e,wonItems:t,openFailed:t.length===0}),wk=(e,t=null)=>({...e,wonItems:[],openFailed:!0,openError:t}),Ck=(e,t)=>({...e,landedLoot:t}),xk=e=>e===null||e===sC,yk=(e,t)=>{const n=e.landedLoot;if(xk(n))return e;const s=e.lootKey;return{...e,myLoot:[...e.myLoot,{...n,key:s,sold:t}],freshKeys:[...e.freshKeys,s],lootKey:s+1}},bk=e=>{const t=yk(e,!1);return{...t,revealedCount:t.revealedCount+1}},vk=e=>e.revealedCount<e.count-1,Ek=e=>e.pack!==null&&!e.isReal,Sk=(e,t)=>{const n=new Set(t),s=e.myLoot.filter(r=>n.has(r.key)&&!r.sold);return s.length?{...e,myLoot:e.myLoot.map(r=>n.has(r.key)?{...r,sold:!0}:r),lastSold:s}:e},Lk=e=>({...e,lastSold:[]}),Nd=e=>e.myLoot.filter(t=>!t.sold),rC=e=>e.sellable!==!1,_i=e=>Nd(e).filter(rC),aC=e=>Math.max(0,e.count-e.myLoot.length),j8=e=>_i(e).map(t=>t.key),$8=(e,t)=>
2{if(!e.isReal)return[];const n=new Set(t);return e.myLoot.filter(s=>n.has(s.key)&&!s.sold&&rC(s)).map(s=>s.inventoryId).filter(s=>s!=null)},kd=(e,t)=>e.reduce((n,s)=>n+(parseFloat(s[t]??"")||0),0),oC=e=>`$${e.toFixed(2).replace(/\.00$/,"")}`,Ak=e=>oC(kd(Nd(e),"value")),Tk=e=>oC(kd(_i(e),"price")),_k=e=>kd(e.myLoot,"value"),Rk=e=>kd(_i(e),"price"),B8=-1,Uie=(e,t)=>{const n=t==null?void 0:t.item;if(!n)return B8;const s=e.findIndex(r=>r.itemId!=null&&r.itemId===n.id);return s>=0?s:n.image?e.findIndex(r=>r.image===n.image):B8},M=Je("collectibles"),U8=M.createEvent("showcaseOpened"),a5=M.createEvent("showcaseCleared"),H8=M.createEvent("landingOpened"),V8=M.createEvent("landingInventoryRequested"),kl=M.createEvent("packRequested"),Fa=M.createEvent("packCleared"),Ht=M.createEvent("collectiblesSessionChanged"),Ga=M.createEvent("collectiblesFreeBetsChanged"),Nk=M.createEvent("inventoryCountRequested"),W8=M.createEvent("openFlowStarted"),kk=M.createEvent("openFlowReset"),Ik=M.createEvent("prizeLanded"),lc=M.createEvent("balanceRefreshRequested"),Mk=M.createEvent("openFailureDismissed"),Z8=M.createEvent("cashierRequested"),Ok=M.createEvent("keepRequested"),Pk=M.createEvent("lootSellRequested"),Dk=M.createEvent("sellAllRequested"),Fk=M.createEvent("sellResultDismissed"),jk=M.createEvent("inventoryRequested"),$k=M.createEvent("inventoryTabSelected"),Bk=M.createEvent("inventorySearchChanged"),Uk=M.createEvent("inventorySortToggled"),Hk=M.createEvent("inventoryCardOpened"),Vk=M.createEvent("inventoryCardClosed"),Wk=M.createEvent("inventoryCardSellRequested"),Zk=M.createEvent("inventorySellResultDismissed"),tr=M.createEvent("collectiblesInventoryCleared"),Gk=M.createEvent("freespinClaimRequested"),iC=M.createEvent("freespinClaimSucceeded"),G8=M.createEvent("freespinClaimFailed"),zk=M.createEvent("freespinPlayRequested"),qk=M.createEvent("freespinPlayConfirmed"),Yk=M.createEvent("freespinPlayFailed"),Kk=M.createEvent("onChainClaimRequested"),Xk=M.createEvent("onChainClaimSucceeded"),Jk=M.createEvent("onChainClaimFailed"),Qk=M.createEvent("freebetPlayRequested"),eI=M.createEvent("freebetPlayConfirmed"),tI=M.createEvent("freebetPlayFailed"),lC=M.createEvent("inventoryItemStatusPushed"),Il=M.createEvent("claimOpened"),o5=M.createEvent("claimClosed"),nI=M.createEvent("claimAdvanced"),sI=M.createEvent("claimRetreated"),rI=M.createEvent("claimStepJumped"),aI=M.createEvent("claimAddressSaved"),oI=M.createEvent("claimBuybackToggled"),iI=M.createEvent("claimBuybackSellRequested"),lI=M.createEvent("claimSellResultDismissed"),cI=M.createEvent("claimItemToggled"),dI=M.createEvent("claimItemRemoved"),uI=M.createEvent("claimProductChoiceSet"),fI=M.createEvent("claimSelectionCleared"),mI=M.createEvent("claimMethodSelected"),hI=M.createEvent("claimSubmitted"),pI=M.createEvent("claimSubmitSucceeded"),gI=M.createEvent("claimSubmitFailed"),wI=M.createEvent("claimSubmitUnderfunded"),jt=()=>kw().http,bo=(e,t)=>{if(!(e>=200&&e<300))throw new Error((t==null?void 0:t.message)??`LOOTBOX_REQUEST_FAILED_${e}`)};
2class si extends Error{constructor(){super("COLLECTIBLES_INSUFFICIENT_FUNDS"),this.name="CollectiblesInsufficientFundsError"}}const cC=(e,t)=>{if(JR(e,t==null?void 0:t.message))throw new si;bo(e,t)},i5=M.createEffect(async()=>{const{status:e,data:t}=await jt().get(VR);return bo(e,t),GR(t)}),ri=M.createEffect(async({currency:e})=>{const{data:t}=await jt().get(m1,f4({currency:e,category:m4()}));return(t==null?void 0:t.data)??[]}),za=M.createEffect(async({slug:e,currency:t})=>{const{data:n}=await jt().get(Rw(e),{currency:t}),s=n==null?void 0:n.data;return s?KR(s):null}),Ml=M.createEffect(async({tag:e,currency:t})=>{const{data:n}=await jt().get(m1,f4({currency:t,category:m4()}));return((n==null?void 0:n.data)??[]).filter(r=>{var a;return(a=r.tags)==null?void 0:a.includes(e)}).map(XR)}),cc=M.createEffect(async({currency:e})=>{const{data:t}=await jt().get(m1,f4({currency:e,category:m4()}));return(t==null?void 0:t.data)??[]}),l5=M.createEffect(async({packs:e,currency:t})=>{const n=await Promise.all(e.slice(0,TN).map(s=>jt().get(Rw(s.urlSlug),{currency:t}).then(({data:r})=>{var a;return{pack:s,items:((a=r==null?void 0:r.data)==null?void 0:a.items)??[]}}).catch(()=>({pack:s,items:[]}))));return RN(n)}),CI=15e3,ja=M.createEffect(async()=>{var a,i,l,c,d,f,u,m;const e={page:1,pageSize:Sw},[t,n]=await d4(CI,p=>Promise.all([jt().get(Aw,e,{signal:p}),jt().get(Tw,e,{signal:p})]));bo(t.status,t.data),bo(n.status,n.data);const s=((a=t.data)==null?void 0:a.data)??[],r=((i=n.data)==null?void 0:i.data)??[];return{inventory:s,deliveries:r,inventoryTotal:((d=(c=(l=t.data)==null?void 0:l.meta)==null?void 0:c.pagination)==null?void 0:d.total)??s.length,deliveryTotal:((m=(u=(f=n.data)==null?void 0:f.meta)==null?void 0:u.pagination)==null?void 0:m.total)??r.length}}),xI=3e4,yI=1e4,z8=M.createEffect(async()=>{await new Promise(e=>setTimeout(e,yI))}),js=M.createEffect(async({id:e,count:t,currency:n,runId:s,freeBet:r})=>{const{status:a,data:i}=await d4(xI,l=>jt().post(WR(e),{amountToOpen:t,currency:n,idempotencyKey:s,freeBet:r},{signal:l}));return cC(a,i),(i==null?void 0:i.data)??[]}),o2=M.createEffect(async({ids:e,lootKeys:t})=>{if(e.length>0){const{status:n,data:s}=await jt().post(Lw,{lootboxInventoryIds:e});bo(n,s)}return{lootKeys:t}}),dC=async({ids:e,cards:t})=>{const{status:n,data:s}=await jt().post(Lw,{lootboxInventoryIds:e});return bo(n,s),{ids:e,cards:t}},ai=M.createEffect(dC),i2=M.createEffect(dC),uC=async()=>{const{data:e}=await jt().get(Aw,{page:1,pageSize:Sw});return(e==null?void 0:e.data)??[]},dc=M.createEffect(uC),uc=M.createEffect(uC),fC=async()=>{const{data:e}=await jt().get(Tw,{page:1,pageSize:$R});return(e==null?void 0:e.data)??[]},fc=M.createEffect(fC),q8=M.createEffect(fC);class l2 extends Error{constructor(){super("ITEM_EXPIRED"),this.name="CollectiblesItemExpiredError"}}class mC extends Error{constructor(){super("ALREADY_CLAIMED"),this.name="CollectiblesItemAlreadyClaimedError"}}const Id=(e,t)=>{if((t==null?void 0:t.error)==="ITEM_EXPIRED"||(t==null?void 0:t.message)==="ITEM_EXPIRED")throw new l2;if((t==null?void 0:t.error)==="ALREADY_CLAIMED"||(t==null?void 0:t.message)==="ALREADY_CLAIMED")throw new mC;bo(e,t)},qa=M.createEffect(async({id:e})=>{var s;const{status:t,data:n}=await jt().post(u4,{lootboxInventoryId:e});return Id(t,n),{id:e,status:((s=n==null?void 0:n.data)==null?void 0:s.status)??""}}),oi=M.createEffect(async({id:e,gameCode:t})=>{var r;const{status:n,data:s}=await jt().post(_w,{lootboxInventoryId:e});return Id(n,s),{id:e,status:((r=s==null?void 0:s.data)==null?void 0:r.status)??"",gameCode:t}}),Ya=M.createEffect(async({id:e,address:t,network:n})=>{var a;const{status:s,data:r}=await jt().post(u4,{lootboxInventoryId:e,shippingDetails:{address:t,network:n}});return Id(s,r),{id:e,status:((a=r==null?void 0:r.data)==null?void 0:a.status)??""}}),ii=M.createEffect(async({id:e})=>{var s;const{status:t,data:n}=await jt().post(_w,{lootboxInventoryId:e});return Id(t,n),{id:e,status:((s=n==null?void 0:n.data)==null?void 0:s.status)??""}}),Ka=M.createEffect(async({items:e,address:t,config:n,productChoices:s})=>{const r=fk({items:e,address:t,config:n,productChoices:s});return(await Promise.all(r.map(i=>
2jt().post(u4,i)))).forEach(({status:i,data:l})=>cC(i,l)),{count:r.length}}),Pn=({issued:e,session:t},{params:n})=>e===n.readSeq&&t===n.session,Y8=M.createStore("",{name:"showcaseCurrency"}),Ri=M.createStore([],{name:"showcaseBoxes"}),hC=M.createStore(!1,{name:"showcaseLoaded"});ri.pending;const bI=[En.POKEMON,En.FREESPIN],pC=(e,t)=>e.map(Ow).filter(n=>n.tags.includes(t)),Hie=Ri.map(e=>e.map(Ow).filter(t=>!bI.some(n=>t.tags.includes(n)))),Vie=Ri.map(e=>pC(e,En.POKEMON)),Wie=Ri.map(e=>pC(e,En.FREESPIN)),Zie=P(Ri,hC,(e,t)=>t&&e.length===0),K8=M.createStore("",{name:"landingCurrency"}),M3=M.createStore([],{name:"landingPacks"});cc.pending;const Gie=M3.map(e=>{var t;return((t=e[0])==null?void 0:t.urlSlug)??""}),X8=M.createStore([],{name:"recentPulls"}),fo=M.createStore(null,{name:"landingInventory"}),f0=M.createStore(null,{name:"landingInventoryLoadedAt"}),gC=fo.map(e=>e===null?null:NN(e.inventory,e.deliveries)),zie=gC.map(e=>(e==null?void 0:e.bestPull)??null),qie=gC.map(e=>(e==null?void 0:e.count)??0),Yie=fo.map(e=>e!==null),Kie=fo.map(e=>(e==null?void 0:e.inventoryTotal)??null),Xie=fo.map(e=>(e==null?void 0:e.deliveryTotal)??null),c5=M.createStore(null,{name:"packDetail"}),d5=M.createStore([],{name:"realSwitchPacks"}),Jie=za.pending,u5=M.createStore({},{name:"packCache"}),f5=M.createStore(null,{name:"packSlug"}),m5=M.createStore(null,{name:"packMissingSlug"}),J8=M.createStore(null,{name:"switchPacksTag"}),h5=M.createStore("",{name:"packCurrency"}),c2=M.createStore(null,{name:"inventoryCount"}),Qie=c2.map(e=>typeof e=="number"&&e>0),Pe=M.createStore(nC(),{name:"openFlow"}),Q8=M.createStore(null,{name:"lastOpenedRunId"}),ele=Pe.map(e=>e.openFailed),tle=Pe.map(e=>e.openError),nle=Pe.map(e=>e.myLoot),sle=Pe.map(e=>e.freshKeys),rle=Pe.map(e=>e.landedLoot),ale=Pe.map(e=>e.revealedCount),ole=Pe.map(e=>e.count),ile=Pe.map(e=>e.isReal),lle=Pe.map(Ek),cle=Pe.map(vk),dle=Pe.map(aC),ule=Pe.map(Nd),fle=Pe.map(Ak);Pe.map(Tk);Pe.map(e=>aC(e)===0&&Nd(e).length>0);const mle=Pe.map(e=>e.revealedCount>=e.count),hle=js.pending,ple=Pe.map(_k),gle=Pe.map(Rk),wle=Pe.map(e=>e.wonItems),Cle=Pe.map(e=>_i(e).length>0),xle=Pe.map(e=>e.lastSold),yle=o2.pending,Yr=M.createStore([],{name:"inventoryRows"}),wC=M.createStore(!1,{name:"inventoryLoaded"}),vI=M.createStore(0,{name:"inventoryLoadSeq"}),$2=M.createStore([],{name:"deliveryRows"}),EI=M.createStore(!1,{name:"deliveriesLoaded"}),CC=M.createStore(Vt.ALL,{name:"inventoryTab"}),xC=M.createStore("",{name:"inventorySearch"}),yC=M.createStore(!0,{name:"inventorySortDesc"}),O3=M.createStore(null,{name:"openInventoryCardId"}),ef=M.createStore(null,{name:"inventoryLastSold"}),ble=dc.pending,vle=fc.pending,Ele=ai.pending,Sle=qa.pending,Lle=oi.pending,Ale=Ya.pending,Tle=ii.pending,Bs=Yr.map(e=>e.map(Dw)),_le=P(Bs,CC,xC,yC,(e,t,n,s)=>CN({cards:e,tab:t,search:n,sortDesc:s})),Rle=Bs.map(yN),Nle=Bs.map(wN),kle=$2.map(EN),Ile=$2.map(e=>e.map(bN)),Mle=P(Bs,O3,(e,t)=>t==null?null:e.find(n=>n.id===t)??null);P(Bs,wC,(e,t)=>t&&e.length===0);const tf=M.createStore(Nw,{name:"deliveryConfig"}),nf=M.createStore(!1,{name:"deliveryConfigLoaded"}),Ie=M.createStore(Gw(),{name:"claim"}),Ole=Ie.map(e=>e.step);Ie.map(e=>e.loaded);Ie.map(e=>e.items);const Ple=Ie.map(Oc);Ie.map(GN);Ie.map(Er);const Dle=Ie.map(Qw),Fle=Ie.map(QN),jle=Ie.map(e=>e.submitting);Ie.map(e=>e.soldItems);const $le=uc.pending;Ka.pending;const sf=M.createStore([],{name:"claimLastSold"}),Ble=i2.pending,rf=M.createStore(null,{name:"claimPreselectedId"});let af=!1;const SI=()=>{if(af)return;af=!0;const e=M.createStore(0,{name:"collectiblesReadSession"});e.on(Ht,S=>S+1);const t=M.createEvent("showcaseReadRequested"),n=M.createStore(0,{name:"showcaseReadIssued"});h({clock:t,source:{issued:n,session:e},fn:({issued:S,session:L},K)=>({currency:K,readSeq:S+1,session:L}),target:ri}),n.on(ri,(S,{readSeq:L})=>L);const s=P({issued:n,session:e}),r=h({clock:ri.done,source:s,filter:Pn,fn:(S,{result:L})=>L}),a=h({clock:ri.fail,source:s,filter:Pn}),i=h({clock:ri.finally,source:s,filter:Pn});h({clock:U8,fn:({currency:S})=>S,target:t}),Y8.on(U8,(S,{currency:L})=>L).reset(a5),Ri.on(r,(S,L)=>L).reset(a5),Ri.on(a,()=>[]),hC.on(i,()=>!0).reset(a5);const l=M.createEvent("landingPacksReadRequested"),c=M.createStore(0,{name:"landingPacksReadIssued"});h({clock:l,source:{issued:c,session:e},fn:({issued:S,session:L},K)=>({currency:K,readSeq:S+1,session:L}),target:cc}),c.on(cc,(S,{readSeq:L})=>L);const d=P({issued:c,session:e}),f=h({clock:cc.done,source:d,filter:Pn,fn:(S,L)=>L}),u=h({clock:cc.fail,source:d,filter:Pn});h({clock:H8,fn:({currency:S})=>S,target:l}),K8.on(H8,(S,{currency:L})=>L),M3.on(f,(S,{result:L})=>L),M3.on(u,()=>[]),h({clock:f,filter:({result:S})=>S.length>0,fn:({params:S,result:L})=>({packs:L,currency:S.currency}),target:l5}),X8.on(l5.doneData,(S,L)=>L),X8.on(l5.fail,()=>[]);const m=M.createStore(0,{name:"landingInventoryReadIssued"}),p=M.createStore([],{name:"landingInventoryReadsInFlight"}),C=M.createStore(!1,{name:"landingInventoryAsked"});C.on(V8,()=>!0).reset(Ht),h({clock:V8,source:{loadedAt:f0,inFlight:p,issued:m,session:e},filter:({loadedAt:S,inFlight:L,session:K})=>!L.some(we=>we.session===K)&&!IN(S,Date.now()),fn:({issued:S,session:L})=>({readSeq:S+1,session:L}),target:ja});const b=M.createEvent("landingInventoryRefreshRequested");h({clock:b,source:{asked:C,issued:m,session:e},filter:({asked:S})=>S,fn:({issued:S,session:L})=>({readSeq:S+1,session:L}),target:ja}),m.on(ja,(S,{readSeq:L})=>L),p.on(ja,(S,L)=>[...S,L]).on(ja.finally,(S,{params:L})=>S.filter(K=>K.readSeq!==L.readSeq));const v=P({issued:m,session:e}),E=h({clock:ja.done,source:v,filter:Pn,fn:(S,{result:L})=>L}),x=h({clock:ja.fail,source:v,filter:Pn});fo.on(E,(S,L)=>L),fo.on(x,S=>S??AN),f0.on(E,()=>Date.now()),f0.reset(js.finally),fo.reset(Ht),f0.reset(Ht),h({clock:[Ht,Ga,js.done],source:Y8,filter:S=>S!=="",target:t}),h({clock:[Ht,Ga,js.done],source:K8,filter:S=>S!=="",target:l}),f5.on(kl,(S,{slug:L})=>L).reset(Fa),h5.on(kl,(S,{currency:L})=>L).reset(Fa),m5.reset(kl,Fa);const g=h({clock:kl,source:u5,filter:(S,{slug:L})=>
2S[L]!=null,fn:(S,{slug:L})=>S[L]}),A=h({clock:kl,source:u5,filter:(S,{slug:L})=>S[L]==null,fn:(S,L)=>L}),k=M.createEvent("packReadRequested"),R=M.createStore({},{name:"packReadLatest"});h({clock:k,source:{latest:R,session:e},fn:({latest:S,session:L},K)=>({...K,readSeq:(S[K.slug]??0)+1,session:L}),target:za}),R.on(za,(S,{slug:L,readSeq:K})=>({...S,[L]:K}));const O=({latest:S,session:L},{params:K})=>S[K.slug]===K.readSeq&&L===K.session,U=P({latest:R,session:e}),V=P({slug:f5,latest:R,session:e});h({clock:A,target:k}),h({clock:A,source:d5,filter:(S,{slug:L})=>S.some(K=>K.urlSlug===L),fn:(S,{slug:L})=>S.find(K=>K.urlSlug===L),target:c5});const z=h({clock:za.done,source:U,filter:O,fn:(S,L)=>L});u5.on(z,(S,{params:L,result:K})=>K?{...S,[L.slug]:K}:S).reset(Fa,Ht,Ga,js.finally),c5.on(Ht,S=>S===null?null:{...S,freeOpensRemaining:void 0,freeOpensRequireVerification:void 0,isRewardOnly:void 0}),h({clock:[Ht,Ga],source:{slug:f5,currency:h5,flow:Pe},filter:({slug:S,flow:L})=>S!=null&&L.runId==="",fn:({slug:S,currency:L})=>({slug:String(S),currency:L}),target:k});const G=h({clock:za.done,source:V,filter:({slug:S,latest:L,session:K},we)=>we.result!=null&&we.params.slug===S&&O({latest:L,session:K},we),fn:(S,{result:L})=>L});c5.on([g,G],(S,L)=>L).reset(Fa),h({clock:za.done,source:V,filter:({slug:S,latest:L,session:K},we)=>we.result==null&&we.params.slug===S&&O({latest:L,session:K},we),fn:(S,{params:L})=>L.slug,target:m5}),h({clock:za.fail,source:V,filter:({slug:S,latest:L,session:K},we)=>we.params.slug===S&&O({latest:L,session:K},we),fn:(S,{params:L})=>L.slug,target:m5}),h({clock:[g,G],source:{loadedTag:J8,currency:h5},filter:({loadedTag:S},L)=>L.tag!==S,fn:({currency:S},L)=>({tag:L.tag,currency:S}),target:Ml}),J8.on(Ml,(S,{tag:L})=>L).reset(Ml.fail,Fa,Ht,Ga),d5.on(Ml.doneData,(S,L)=>L).reset(Fa),d5.on(Ml.fail,()=>[]);const W=M.createEvent("inventoryReadRequested"),I=M.createEvent("deliveriesReadRequested"),H=M.createStore(0,{name:"inventoryReadIssued"}),j=M.createStore(0,{name:"deliveriesReadIssued"});H.on(W,S=>S+1),j.on(I,S=>S+1),h({clock:H.updates,source:e,fn:(S,L)=>({readSeq:L,session:S}),target:dc}),h({clock:j.updates,source:e,fn:(S,L)=>({readSeq:L,session:S}),target:fc});const N=P({issued:H,session:e}),q=P({issued:j,session:e}),ee=h({clock:dc.done,source:N,filter:Pn,fn:(S,{result:L})=>L}),ae=h({clock:dc.fail,source:N,filter:Pn}),Se=h({clock:dc.finally,source:N,filter:Pn}),ce=h({clock:fc.done,source:q,filter:Pn,fn:(S,{result:L})=>L}),be=h({clock:fc.fail,source:q,filter:Pn}),se=h({clock:fc.finally,source:q,filter:Pn});h({clock:Nk,target:W}),c2.on(ee,(S,L)=>L.length),c2.on(ai.doneData,(S,{ids:L})=>Math.max(0,(S??0)-L.length)),c2.reset(Ht),Pe.on(W8,(S,L)=>pk(L)).reset(kk,Ht),Q8.on(js,(S,{runId:L})=>L),h({clock:W8,source:{flow:Pe,lastOpened:Q8,session:e},filter:({flow:S,lastOpened:L})=>{var K;return S.isReal&&((K=S.pack)==null?void 0:K.id)!=null&&S.runId!==L},fn:({flow:S,session:L})=>{var K,we;return{id:(K=S.pack)==null?void 0:K.id,count:S.count,currency:S.currency,runId:S.runId,session:L,freeBet:(((we=S.pack)==null?void 0:we.freeOpensRemaining)??0)>0}},target:js});const Y=P({session:e,runId:Pe.map(({runId:S})=>S)}),ge=({session:S,runId:L},{params:K})=>S===K.session&&L===K.runId,ke=(S,L)=>S.session===L.params.session&&S.runId!==L.params.runId,ot=h({clock:js.done,source:Y,filter:ge,fn:(S,{result:L})=>L}),_t=h({clock:js.fail,source:Y,filter:ge,fn:(S,{error:L})=>L}),Be=h({clock:js.finally,source:Y,filter:ke,fn:()=>{}});Pe.on(ot,gk),Pe.on(_t,(S,L)=>wk(S,L instanceof si?null:L.message)),h({clock:_t,fn:()=>{},target:[W,lc]}),h({clock:Be,target:[W,lc,b]}),h({clock:_t,filter:S=>!(S instanceof si),fn:()=>{},target:z8}),h({clock:z8.done,fn:()=>{},target:[W,lc,Ga]}),h({clock:Mk,fn:()=>{},target:[W,lc]}),h({clock:_t,filter:S=>S instanceof si,fn:()=>{},target:Z8}),Pe.on(Ik,Ck),Pe.on(Ok,bk),h({clock:Pk,source:Pe,filter:(S,L)=>_i(S).some(K=>K.key===L),fn:(S,L)=>({ids:$8(S,[L]),lootKeys:[L]}),target:o2}),h({clock:Dk,source:Pe,filter:S=>_i(S).length>0,fn:S=>({ids:$8(S,j8(S)),lootKeys:j8(S)}),target:o2}),Pe.on(o2.doneData,(S,{lootKeys:L})=>Sk(S,L)),Pe.on(Fk,Lk),h({clock:jk,target:[W,I]}),Yr.on(ee,hN).reset(tr,Ht),Yr.on(ae,()=>[]),wC.on(Se,()=>!0).reset(tr,Ht),vI.on(Se,S=>S+1),$2.on(ce,(S,L)=>L).reset(tr,Ht),$2.on(be,()=>[]),EI.on(se,()=>!0).reset(tr,Ht),CC.on($k,(S,L)=>L).reset(tr),xC.on(Bk,(S,L)=>L).reset(tr),yC.on(Uk,S=>!S).reset(tr),O3.on(Hk,(S,L)=>L).reset(Vk,tr),h({clock:Wk,source:Bs,fn:(S,L)=>({ids:[L],cards:S.filter(K=>K.id===L)}),target:ai}),ef.on(ai.doneData,(S,{cards:L})=>L[0]??null),Yr.on(ai.doneData,(S,{ids:L})=>S.filter(K=>!L.includes(K.id))),ef.reset(Zk,tr),O3.reset(ai.doneData),h({clock:Gk,source:{cards:Bs,pending:qa.pending},filter:({cards:S,pending:L},K)=>{const we=S.find(Rt=>Rt.id===K);return!L&&we!=null&&(jw(we)||Bw(we)||Hw(we))},fn:(S,L)=>({id:L}),target:qa}),h({clock:zk,source:{cards:Bs,pending:oi.pending},filter:({cards:S,pending:L},K)=>{const we=S.find(Rt=>Rt.id===K);return!L&&we!=null&&$w(we)},fn:({cards:S},L)=>{var K;return{id:L,gameCode:((K=S.find(we=>we.id===L))==null?void 0:K.gameCode)??""}},target:oi}),Yr.on([qa.doneData,oi.doneData],(S,{id:L,status:K})=>t5(S,{id:L,status:K})),Yr.on(lC,t5),h({clock:qa.done,fn:()=>{},target:W}),h({clock:qa.done,fn:({params:S,result:L})=>({id:S.id,status:L.status}),target:iC}),h({clock:qa.fail,fn:({params:S,error:L})=>({id:S.id,expired:L instanceof l2,alreadyClaimed:L instanceof mC}),target:G8}),Yr.on(G8,(S,{id:L,alreadyClaimed:K})=>K?fN(S,L):S),h({clock:oi.done,fn:({params:S})=>({id:S.id,gameCode:S.gameCode}),target:qk}),h({clock:oi.fail,fn:({params:S,error:L})=>({id:S.id,expired:L instanceof l2}),target:Yk}),h({clock:Kk,source:{cards:Bs,pending:Ya.pending},filter:({cards:S,pending:L},{id:K,address:we})=>
2{const Rt=S.find(Pr=>Pr.id===K);return!L&&Rt!=null&&Uw(Rt)&&we.trim()!==""},fn:({cards:S},{id:L,address:K})=>{var we;return{id:L,address:K.trim(),network:((we=S.find(Rt=>Rt.id===L))==null?void 0:we.network)??""}},target:Ya}),h({clock:Qk,source:{cards:Bs,pending:ii.pending},filter:({cards:S,pending:L},K)=>{const we=S.find(Rt=>Rt.id===K);return!L&&we!=null&&Vw(we)},fn:(S,L)=>({id:L}),target:ii}),Yr.on([Ya.doneData,ii.doneData],(S,{id:L,status:K})=>t5(S,{id:L,status:K})),h({clock:Ya.done,fn:()=>{},target:[W,I]}),h({clock:Ya.done,fn:({params:S,result:L})=>({id:S.id,status:L.status}),target:Xk}),h({clock:Ya.fail,fn:({params:S})=>({id:S.id}),target:Jk}),h({clock:ii.done,fn:({params:S})=>({id:S.id}),target:eI}),h({clock:ii.fail,fn:({params:S,error:L})=>({id:S.id,expired:L instanceof l2}),target:tI}),h({clock:Il,source:nf,filter:S=>!S,fn:()=>{},target:i5}),tf.on(i5.doneData,(S,L)=>L),nf.on(i5.done,()=>!0),Ie.on(Il,()=>Gw()).reset(o5),h({clock:Il,target:[uc,q8]}),h({clock:q8.doneData,source:Ie,fn:(S,L)=>rk(S,DN(L)),target:Ie}),h({clock:uc.doneData,source:Ie,fn:(S,L)=>D8(S,L.map(Dw)),target:Ie}),h({clock:uc.fail,source:Ie,fn:S=>D8(S,[]),target:Ie}),rf.on(Il,(S,{preselectedId:L})=>L).reset(o5),h({clock:uc.finally,source:{state:Ie,id:rf},filter:({id:S})=>S!=null,fn:({state:S,id:L})=>ZN(S,L),target:Ie}),Ie.on(nI,tk),Ie.on(sI,nk),Ie.on(rI,sk),Ie.on(aI,eC),Ie.on(oI,ak),Ie.on(cI,ok),Ie.on(dI,ik),Ie.on(uI,lk),Ie.on(fI,ck),Ie.on(mI,dk),h({clock:iI,source:Ie,filter:(S,L)=>L.length>0,fn:(S,L)=>({ids:L,cards:S.items.filter(K=>L.includes(K.id))}),target:i2}),sf.on(i2.doneData,(S,{cards:L})=>L),Ie.on(i2.doneData,(S,{ids:L})=>uk(S,L)),sf.reset(lI,Il,o5),h({clock:hI,source:{state:Ie,config:tf},filter:({state:S})=>!S.submitting&&Oc(S)!==null&&Er(S).length>0&&C4(S),fn:({state:S,config:L})=>({items:Er(S),address:Oc(S),config:L,productChoices:S.productChoices}),target:Ka}),Ie.on(Ka,S=>F8(S,!0)),Ie.on(Ka.finally,S=>F8(S,!1)),h({clock:Ka.doneData,target:pI}),h({clock:Ka.failData,filter:S=>S instanceof si,fn:()=>{},target:[Z8,wI]}),h({clock:Ka.failData,filter:S=>!(S instanceof si),fn:()=>{},target:gI})},bC={Live:"live",AllTime:"all-time"},vC=5,Ule=10,LI=100,AI=1e9,TI="WHALE",_I=1,RI="Request withdrawal",of="/affiliate/balance",lf="/affiliate/stats",cf="/affiliate/whale-token",df="/affiliate/all",uf="/affiliate/withdrawal",ff="/earn/top-payouts/all-time",mf="/earn/top-reward-earners",p5="public:live_rewards",NI="live_rewards",kI=e=>`/auth-sync/socket-public/${e}`;let P3=null;const II=e=>{P3=e},x4=()=>{if(!P3)throw new Error("@whale-client/dataflow-earn is not configured. Call configureEarnDataflow() on app boot.");return P3},hf=e=>{var t;return(t=e==null?void 0:e.toString())!=null&&t.length?new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}).format(parseFloat(`${e}`)):"0.00"},Hle=e=>new Intl.NumberFormat("en-us",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(e||0),MI=e=>Math.floor((e||0)/AI),y4=e=>typeof e=="number"?Number.isFinite(e)?e:0:(e==null?void 0:e.total)??0,OI=({pending:e,balance:t})=>e||!(t!=null&&t.commissionBalanceInCurrency)||t.commissionBalanceInCurrency<_I,PI=(e,t)=>[t,...e].slice(0,LI),DI=(e,t)=>({totalEarnWhale:e.totalEarnWhale+(t.currency===TI?t.amount:0),totalEarnUsd:e.totalEarnUsd+t.amountInUsd}),EC=e=>{if(!e||typeof e!="object")return null;const t="data"in e?e.data:e;if(!t||typeof t!="object")return null;const n=t,s=Number(n.amount),r=Number(n.amountInUsd);return{name:typeof n.name=="string"?n.name:"",source:typeof n.source=="string"?n.source:"",amount:Number.isFinite(s)?s:0,amountInUsd:Number.isFinite(r)?r:0,currency:typeof n.currency=="string"?n.currency:""}},Ne=Je("earn"),pf=Ne.createEvent("earnPageOpened"),gf=Ne.createEvent("rafBalanceRequested"),wf=Ne.createEvent("rafStatsRequested"),Cf=Ne.createEvent("whaleTokenStatsRequested"),xf=Ne.createEvent("affiliatesPageRequested"),D3=Ne.createEvent("withdrawalRequested"),yf=Ne.createEvent("liveRewardsOpened"),bf=Ne.createEvent("allTimeRewardsRequested"),vf=Ne.createEvent("topEarnersRequested"),FI=Ne.createEvent("liveRewardsTabChanged"),Ef=Ne.createEvent("liveRewardsSubscriptionRequested"),Sf=Ne.createEvent("liveRewardsSubscriptionDropped"),F3=Ne.createEvent("liveRewardReceived"),li=Ne.createEvent("earnStateReset"),ko=()=>x4().http,Yi=async(e,t)=>{try{const n=await t();return n.status!==200?(console.error(`[Earn] ${e} failed`,n.status),null):n.data??null}catch(n){return console.error(`[Earn] ${e} threw`,n),null}}
2,j3=Ne.createEffect(()=>Yi(`GET ${of}`,()=>ko().get(of))),$3=Ne.createEffect(()=>Yi(`GET ${lf}`,()=>ko().get(lf))),Lf=Ne.createEffect(()=>Yi(`GET ${cf}`,()=>ko().get(cf))),d2=Ne.createEffect(({page:e,limit:t})=>Yi(`GET ${df}`,()=>ko().get(df,{page:e,limit:t}))),B2=Ne.createEffect(async()=>{const{status:e}=await ko().post(uf);if(e!==200)throw new Error(`POST ${uf} failed with ${e}`)}),u2=Ne.createEffect(async()=>{var n,s;const e=await Yi(`GET ${ff}`,()=>ko().get(ff));return e?{rows:(Array.isArray(e.rows)?e.rows:[]).map(EC).filter(r=>r!==null),total:{totalEarnWhale:((n=e.total)==null?void 0:n.totalEarnWhale)??0,totalEarnUsd:((s=e.total)==null?void 0:s.totalEarnUsd)??0}}:null}),B3=Ne.createEffect(async()=>{const e=await Yi(`GET ${mf}`,()=>ko().get(mf));return Array.isArray(e)?e:[]});let vc=null;const Af=Ne.createEffect(async()=>{vc&&(Gi(vc),vc=null)}),Tf=Ne.createEffect(async()=>{if(vc)return!0;const e=x4(),{data:t}=await e.http.get(kI(NI));if(!(t!=null&&t.connection)||!(t!=null&&t.subscription))return console.error(`[Live rewards] Failed to obtain tokens for ${p5}`),!1;const n=await d1({socketUrl:e.getSocketUrl(),connectionToken:t.connection,subscriptionToken:t.subscription,channelName:p5,contextId:`Live rewards ${p5}`,handlers:{onPublication:s=>{const r=EC(s.data);r&&F3(r)}}});return n?(vc=n,!0):!1}),jI={current:1,total:1,perPage:vC},$I={totalEarnWhale:0,totalEarnUsd:0},$a=e=>e!==null,fr=Ne.createStore(null,{name:"rafBalance"}),Pc=Ne.createStore(null,{name:"rafStats"}),_f=Ne.createStore(null,{name:"whaleTokenStats"});j3.pending;$3.pending;const Vle=fr.map(e=>(e==null?void 0:e.rewardLevel)??"RAF"),BI=fr.map(e=>(e==null?void 0:e.commissionCurrency)??"USDT"),Wle=Pc.map(e=>y4(e==null?void 0:e.affiliates)),Zle=Pc.map(e=>y4(e==null?void 0:e.wagering));Pc.map(e=>y4(e==null?void 0:e.commission));const Rf=Ne.createStore([],{name:"affiliates"}),Nf=Ne.createStore(jI,{name:"affiliatesPage"}),Gle=d2.pending,UI=B2.pending,zle=P(UI,fr,(e,t)=>OI({pending:e,balance:t})),SC=Ne.createStore([],{name:"liveRewards"}),LC=Ne.createStore([],{name:"allTimeRewards"}),U3=Ne.createStore($I,{name:"liveRewardTotals"}),AC=Ne.createStore(bC.Live,{name:"liveRewardsTab"}),HI=Ne.createStore(!1,{name:"liveRewardsConnected"});u2.pending;const qle=P(AC,SC,LC,(e,t,n)=>e===bC.Live?t:n),Yle=U3.map(e=>MI(e.totalEarnWhale)),VI=Ne.createStore([],{name:"topEarners"}),Kle=B3.pending;let kf=!1;const WI=()=>{if(kf)return;kf=!0;const e=Ne.createEffect(({name:t,properties:n})=>{x4().trackEvent(t,n)});h({clock:pf,target:[gf,Cf,wf]}),h({clock:pf,fn:()=>({page:1,limit:vC}),target:xf}),h({clock:gf,target:j3}),h({clock:wf,target:$3}),h({clock:Cf,target:Lf}),h({clock:xf,target:d2}),h({clock:j3.doneData,filter:$a,target:fr}),h({clock:$3.doneData,filter:$a,target:Pc}),h({clock:Lf.doneData,filter:$a,target:_f}),h({clock:d2.doneData,filter:$a,fn:t=>Array.isArray(t.data)?t.data:[],target:Rf}),h({clock:d2.doneData,filter:t=>!!(t!=null&&t.page),fn:t=>t.page,target:Nf}),h({clock:D3,target:B2}),h({clock:D3,source:fr,fn:t=>({name:RI,properties:{amount:(t==null?void 0:t.commissionBalanceInCurrency)||0}}),target:e}),h({clock:B2.done,source:fr,filter:$a,fn:t=>({...t,commissionBalanceInCurrency:0}),target:fr}),h({clock:yf,target:[bf,vf]}),h({clock:yf,target:Ef}),h({clock:bf,target:u2}),h({clock:vf,target:B3}),h({clock:u2.doneData,filter:$a,fn:t=>t.rows,target:LC}),h({clock:u2.doneData,filter:$a,fn:t=>t.total,target:U3}),h({clock:B3.doneData,target:VI}),h({clock:Ef,target:Tf}),h({clock:Sf,target:Af}),HI.on(Tf.doneData,(t,n)=>n).reset(Af),SC.on(F3,PI).reset(Sf),U3.on(F3,DI),AC.on(FI,(t,n)=>n),fr.reset(li),Pc.reset(li),_f.reset(li),Rf.reset(li),Nf.reset(li)},g5={UBERLEGENDARY:"uberlegendary",LEGENDARY:"legendary",RARE:"rare"},ZI=[g5.UBERLEGENDARY,g5.LEGENDARY,g5.RARE],Xle=e=>!!e&&ZI.includes(e),w5={NFT:"NFT",TOKEN:"TOKEN",CRYPTO:"CRYPTO",PHYSICAL_ITEM:"PHYSICAL_ITEM",FREESPIN:"FREESPIN",DEPOSIT:"DEPOSIT",ORIGINAL_GAME_FREEBET:"ORIGINAL_GAME_FREEBET"},GI=[w5.CRYPTO,w5.NFT,w5.TOKEN],Jle=e=>!!e&&GI.includes(e),ea={TOKEN:"TOKEN",NFT:"NFT",TON:"TON",HOT:"HOT",NEW:"NEW",REWARD:"REWARD"},Ol={AVAILABLE:"AVAILABLE",ACTIVATING:"ACTIVATING",ACTIVATED:"ACTIVATED",SOLD:"SOLD",WITHDRAWN:"WITHDRAWN",REQUESTED_DELIVERY:"REQUESTED_DELIVERY",PROCESSING_DELIVERY:"PROCESSING_DELIVERY",SHIPPED:"SHIPPED",DELIVERED:"DELIVERED",REFUNDED:"REFUNDED"},Qle=["newest","oldest","price-low","price-high"],TC="price-high",zI="newest",ece=["all",ea.TOKEN,ea.NFT,ea.TON,ea.HOT,ea.NEW,ea.REWARD],tce=["all",Ol.AVAILABLE,Ol.ACTIVATED,Ol.SOLD,Ol.WITHDRAWN,Ol.REFUNDED],qI=50,YI=16,KI=8,XI=8,JI=8,QI=7,H3=4,If=5,b4=30,nce=7,sce=3,rce=164,ace=4500,oce=5500,ice=1e3,lce="cub
2ic-bezier(0, 0, 0.2, 1)",eM=["BY","RU","UA"],tM=406,V3="ITEM_EXPIRED",W3="ALREADY_CLAIMED",g1="/lootbox",nM="/lootbox/batch",sM="/lootbox/sell",rM="/lootbox/withdraw",aM="/lootbox/withdraw/confirm",oM="/lootbox/withdraw/cancel",iM="/lootbox/inventory",lM="/lootbox/unboxing-history",cM="/lootbox/deliveries",dM=e=>`${g1}/${encodeURIComponent(e)}`,uM=e=>`${g1}/${e}/open`,C5="public:live_lootbox_rewards",fM="live_lootbox_rewards";let Z3=null;const mM=e=>{Z3=e},w1=()=>{if(!Z3)throw new Error("@whale-client/dataflow-lootbox is not configured. Call configureLootboxDataflow() on app boot.");return Z3},_C=e=>{switch(e){case"price-low":return{sort:"ASC",sortField:"costInUsd"};case"price-high":return{sort:"DESC",sortField:"costInUsd"};case"oldest":return{sort:"ASC",sortField:"createdAt"};case"newest":default:return{sort:"DESC",sortField:"createdAt"}}},hM=({filters:e,page:t,pageSize:n,currency:s,category:r})=>{const{sort:a,sortField:i}=_C(e.sort??TC);return{page:t,pageSize:n,currency:s,sort:a,sortField:i,...e.collection&&e.collection!=="all"?{tags:e.collection}:{},...r?{category:r}:{}}},pM=({filters:e,page:t,pageSize:n})=>{const{sort:s,sortField:r}=_C(e.sort);return{page:t,pageSize:n,sort:s,sortField:r,...e.status&&e.status!=="all"?{status:e.status}:{}}},cce=e=>e>=10?Number(e.toFixed(2)):e>=1?Number(e.toFixed(3)):e>=.01?Number(e.toFixed(4)):Number(e.toFixed(6)),Mf={uberlegendary:{primary:"#FBB63Fe0",secondary:"#fcb12fe0"},legendary:{primary:"#FF6659e0",secondary:"#ff4f3fe0"},rare:{primary:"#FF70BAe0",secondary:"#fd52aae0"},uncommon:{primary:"#B545FFe0",secondary:"#a929ffe0"},common:{primary:"#6077F2e0",secondary:"#425effe0"},trash:{primary:"#9092B2e0",secondary:"#595b7ee0"}},dce=e=>Mf[e??""]??Mf.trash,gM=(e,t=b4)=>{const n=e.reduce((r,a)=>r+a.odds,0);if(n<=0)return e.map(()=>1);const s=t/n;return e.map(r=>Math.max(1,Math.floor(r.odds*s)))},wM=(e,t)=>{const n=[...e];for(let s=n.length-1;s>0;s-=1){const r=Math.floor(t()*(s+1));[n[s],n[r]]=[n[r],n[s]]}return n};let Of=0;const CM=()=>(Of+=1,`slot-${Of}`),RC=(e,t=!1,n=!1)=>({id:CM(),lootboxItemId:e.id,isWinner:t,isPlaceholder:n,rarity:e.rarity}),xM=(e,t=b4,n=!1,s=Math.random)=>{if(e.length===0)return[];const r=gM(e,t),a=[];return e.forEach((i,l)=>{for(let c=0;c<r[l];c+=1)a.push(RC(i,!1,n))}),wM(a,s)},uce=(e,t,n=Math.random)=>{const s=xM(e,b4,!1,n);return s.splice(If,1,RC(t,!0)),{slots:s,targetIndex:s.length-If-1}},Pf=(e,t)=>{let n=!1;const s=e.map(r=>r.id!==Number(t.lootboxInventoryId)||r.status===t.status?r:(n=!0,{...r,status:t.status}));return n?s:e},yM=(e,t)=>e.map(n=>n.id===t.id?t:n),bM=(e,t)=>e.map(n=>n.id===t?{...n,isExpired:!0}:n),vM=e=>[...e].sort((t,n)=>+(t.isExpired===!0)-+(n.isExpired===!0)),fce=e=>eM.includes((e??"").toUpperCase()),mce=(e,t)=>e?t&&(t==="CRYPTO"||t==="TOKEN"||t==="NFT")?!e.network&&!e.address?[]:[{label:e.network??"",value:e.address??""}]:t==="PHYSICAL_ITEM"?[{value:`${e.nameFirst??""} ${e.nameLast??""}`.trim(),label:""},{value:[e.postalAddress,e.city,e.postalCode].filter(Boolean).join(" ")},{value:`Tel: ${e.phoneCode??""} ${e.phone??""}`.trim(),hideOnMobile:!0},{value:`Email: ${e.email??""}`.trim(),hideOnMobile:!0}].filter(n=>n.value.length>0):[]:[],Df=({series:e,openedCount:t=0,isRewardBox:n,maxAllowed:s})=>{let r=e.map(a=>({...a}));for(;;){const a=r[0],i=(a==null?void 0:a.remainingFreeBetsCount)??0;if(i<=0)return{series:r,remainingFreeBetsCount:0,maxCountToOpen:s,isDisabled:n};const l=i-t;if(l>0)return r[0]={remainingFreeBetsCount:l},{series:r,remainingFreeBetsCount:l,maxCountToOpen:Math.min(l,s),isDisabled:!1};r=r.slice(1),t=0}},EM=e=>(e??[]).map(t=>({remainingFreeBetsCount:Number(t.betCount)-Number(t.usedCount)})),hce=(e,t)=>t!=="LEVEL_TWO_PASSED"&&!!(e!=null&&e.some(n=>n.verificationRequired)),pce=e=>{const t=e==null?void 0:e[0];if(!t)return 0;const n=Number(t.betCount)-Number(t.usedCount);return Number.isFinite(n)?Math.max(0,n):0},SM=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}-${Math.random().toString(36).slice(2)}`,LM=(e,t)=>e.lootboxId===t.lootboxId&&e.currency===t.currency,AM=(e,t)=>e&&LM(e,t)?e:{...t,idempotencyKey:SM()}
2,Z=Je("lootbox"),x5=Z.createEvent("lobbyOpened"),Ff=Z.createEvent("lobbyFiltersChanged"),TM=Z.createEvent("lobbyNextPageRequested"),jf=Z.createEvent("lobbyCurrencyChanged"),y5=Z.createEvent("lobbyReset"),m0=Z.createEvent("lootboxSearchQueryChanged"),b5=Z.createEvent("lootboxSearchReset"),NC=Z.createEvent("homeSectionRequested"),v5=Z.createEvent("lootboxRequested"),nr=Z.createEvent("lootboxCleared"),$f=Z.createEvent("openCountChanged"),Pl=Z.createEvent("openRequested"),h0=Z.createEvent("spinFinished"),_M=Z.createEvent("openErrorCleared"),RM=Z.createEvent("cashierRequested"),Bf=Z.createEvent("inventoryOpened"),Uf=Z.createEvent("inventoryFiltersChanged"),NM=Z.createEvent("inventoryNextPageRequested"),kM=Z.createEvent("inventoryItemPatched"),Hf=Z.createEvent("inventoryItemExpired"),Dl=Z.createEvent("inventoryReset"),G3=Z.createEvent("lootboxItemUpdated");Z.createEvent("freespinPlayRequested");const IM=Z.createEvent("historyPageRequested"),MM=Z.createEvent("deliveriesPageRequested"),OM=Z.createEvent("deliveryCancelRequested"),PM=Z.createEvent("sellRequested"),DM=Z.createEvent("withdrawRequested"),z3=Z.createEvent("balanceRefreshRequested"),FM=Z.createEvent("liveRewardsSubscriptionRequested"),Vf=Z.createEvent("liveRewardsSubscriptionDropped"),kC=Z.createEvent("liveRewardsReceived"),Xa=Z.createEvent("lootboxUserStateReset"),jM={page:1,pageSize:0,pageCount:0,total:0},Md=(e,t)=>{var n;return{items:(e==null?void 0:e.data)??[],meta:((n=e==null?void 0:e.meta)==null?void 0:n.pagination)??{...jM,page:t},page:t}},Hn=()=>w1().http,IC=()=>{const e=w1().lootboxCategory;return e?{category:e}:{}},Ja=Z.createEffect(async({filters:e,page:t,currency:n})=>{const s=hM({filters:e,page:t,pageSize:qI,currency:n,category:w1().lootboxCategory}),{data:r}=await Hn().get(g1,s);return Md(r,t)}),p0=Z.createEffect(async e=>{const{data:t}=await Hn().get(g1,{page:1,pageSize:JI,currency:e,sort:"DESC",sortField:"createdAt",...IC()});return(t==null?void 0:t.data)??[]}),q3=Z.createEffect(async({query:e,currency:t})=>{const{data:n}=await Hn().get(g1,{name:e,currency:t,...IC()});return(n==null?void 0:n.data)??[]}),$M=Z.createEffect(async e=>{if(e.length===0)return[];const{data:t}=await Hn().get(nM,{ids:e.join(",")});return(t==null?void 0:t.lootboxes)??[]}),ci=Z.createEffect(async({slug:e,currency:t})=>{const{status:n,data:s}=await Hn().get(dM(e),{currency:t});if(n!==200||!(s!=null&&s.data))throw new Error(`Failed to load lootbox ${e}`);return s.data});class Ec extends Error{constructor(){super("LOOTBOX_INSUFFICIENT_FUNDS"),this.name="InsufficientFundsError"}}const BM=3e4,UM=1e4,Wf=Z.createEffect(async()=>{await new Promise(e=>setTimeout(e,UM))}),HM=409;
2class MC extends Error{constructor(t,n){super(t),this.status=n,this.name="OpenRejectedError"}}const VM=e=>e instanceof Ec||e instanceof MC,Yt=Z.createEffect(async({lootboxId:e,amountToOpen:t,currency:n,idempotencyKey:s,freeBet:r})=>{var l;const{status:a,data:i}=await d4(BM,c=>Hn().post(uM(e),{amountToOpen:t,currency:n,idempotencyKey:s,freeBet:r},{signal:c}));if(a===tM)throw new Ec;if(a===HM)throw new MC((i==null?void 0:i.message)??"LOOTBOX_OPEN_FAILED",a);if(a!==200)throw new Error((i==null?void 0:i.message)??"LOOTBOX_OPEN_FAILED");return{items:(i==null?void 0:i.data)??[],replayed:((l=i==null?void 0:i.meta)==null?void 0:l.replayed)===!0}});class WM extends Error{constructor(){super(V3),this.name="ItemExpiredError"}}class ZM extends Error{constructor(){super(W3),this.name="ItemAlreadyClaimedError"}}const Od=(e,t)=>{if(e!==200)throw(t==null?void 0:t.error)===V3||(t==null?void 0:t.message)===V3?new WM:(t==null?void 0:t.error)===W3||(t==null?void 0:t.message)===W3?new ZM:new Error((t==null?void 0:t.message)??"LOOTBOX_REQUEST_FAILED")},g0=Z.createEffect(async({ids:e})=>{const{status:t,data:n}=await Hn().post(sM,{lootboxInventoryIds:e});return Od(t,n),{ids:e,count:Array.isArray(n==null?void 0:n.data)?n.data.length:e.length}}),w0=Z.createEffect(async({lootboxInventoryId:e,shippingDetails:t,productDetails:n})=>{var a;const{status:s,data:r}=await Hn().post(rM,{lootboxInventoryId:e,shippingDetails:t,...n?{productDetails:n}:{}});return Od(s,r),{lootboxInventoryId:e,status:(a=r==null?void 0:r.data)==null?void 0:a.status}}),Zf=Z.createEffect(async e=>{var s;const{status:t,data:n}=await Hn().post(aM,{lootboxInventoryId:e});return Od(t,n),{lootboxInventoryId:e,status:(s=n==null?void 0:n.data)==null?void 0:s.status}}),C0=Z.createEffect(async e=>{var s;const{status:t,data:n}=await Hn().post(oM,{lootboxInventoryId:e});return Od(t,n),{lootboxInventoryId:e,status:(s=n==null?void 0:n.data)==null?void 0:s.status}}),$s=Z.createEffect(async({filters:e,page:t})=>{const n=pM({filters:e,page:t,pageSize:YI}),{data:s}=await Hn().get(iM,n),r=Md(s,t);return{...r,items:vM(r.items)}}),f2=Z.createEffect(async e=>{const{data:t}=await Hn().get(lM,{page:e,pageSize:KI});return Md(t,e)}),di=Z.createEffect(async e=>{const{data:t}=await Hn().get(cM,{page:e,pageSize:XI});return Md(t,e)});let Sc=null;const GM=e=>`/auth-sync/socket-public/${e}`,zM=Z.createEffect(async()=>{Sc&&(Gi(Sc),Sc=null)}),qM=Z.createEffect(async()=>{if(Sc)return!0;const e=w1(),{data:t}=await e.http.get(GM(fM));if(!(t!=null&&t.connection)||!(t!=null&&t.subscription))return console.error(`[Live lootbox rewards] Failed to obtain tokens for ${C5}`),!1;const n=await d1({socketUrl:e.getSocketUrl(),connectionToken:t.connection,subscriptionToken:t.subscription,channelName:C5,contextId:`Live lootbox rewards ${C5}`,handlers:{onPublication:s=>{var a;const r=(a=s.data)==null?void 0:a.items;Array.isArray(r)&&kC(r)}}});return n?(Sc=n,!0):!1}),YM={sort:TC,collection:"all"},KM={sort:zI,status:"all"},XM=(e,t)=>e.page===1&&e.filters.sort===t.sort&&e.filters.status===t.status,Gf=Z.createStore(YM,{name:"lobbyFilters"}),zf=Z.createStore("USDT",{name:"lobbyCurrency"}),qf=Z.createStore([],{name:"lobbyItems"}),E5=Z.createStore(0,{name:"lobbyPage"}),x0=Z.createStore(!0,{name:"lobbyHasMore"}),gce=Ja.pending,Yf=Z.createStore([],{name:"searchResults"}),JM=Z.createStore("",{name:"searchQuery"});q3.pending;const OC=Z.createStore([],{name:"homeSection"}),Kf=Z.createStore([],{name:"homeSectionRequestsInFlight"}),Xf=Z.createStore([],{name:"liveRewards"}),Fl=Z.createStore(null,{name:"lootbox"});ci.pending;const QM=Z.createStore(null,{name:"lootboxError"}),Qa=Z.createStore({series:[],remainingFreeBetsCount:0,maxCountToOpen:H3,isDisabled:!1},{name:"freeBets"}),S5=Z.createStore(1,{name:"openCount"}),Jf=Z.createStore(null,{name:"openError"}),L5=Z.createStore([],{name:"wonItems"}),PC=Z.createStore(!1,{name:"isSpinning"}),eO=Z.createStore(!1,{name:"isSpinCompleted"}),U2=Z.createStore(null,{name:"openIntent"}),wce=U2.map(e=>e!==null),A5=Z.createStore(!1,{name:"lastOpenReplayed"}),tO=P(Qa,PC,U2,(e,t,n)=>!t&&(!e.isDisabled||n!==null)),y0=Z.createStore(KM,{name:"inventoryFilters"}),jr=Z.createStore([],{name:"inventoryItems"}),T5=Z.createStore(!1,{name:"inventoryOpen"}),_5=Z.createStore(0,{name:"inventoryPage"}),b0=Z.createStore(!0,{name:"inventoryHasMore"}),Cce=$s.pending,Qf=Z.createStore([],{name:"historyItems"}),nO=Z.createStore(null,{name:"historyMeta"}),xce=f2.pending,em=Z.createStore([],{name:"deliveryItems"}),R5=Z.createStore(null,{name:"deliveriesMeta"}),yce=di.pending,tm=Z.createStore({},{name:"rewardLootboxes"});let nm=!1;const sO=()=>{if(nm)return;nm=!0;
2const e=Z.createEffect(({name:x,properties:g})=>{w1().trackEvent(x,g)});zf.on([x5.map(({currency:x})=>x),jf],(x,g)=>g),Gf.on(Ff,(x,g)=>({...x,...g}));const t=Z.createEvent("lobbyRestarted");h({clock:[x5,Ff,jf],target:t}),qf.reset(t,y5),E5.on(t,()=>0).reset(y5),x0.on(t,()=>!0).reset(y5),h({clock:[t,TM],source:P({filters:Gf,currency:zf,page:E5,hasMore:x0,pending:Ja.pending}),filter:({hasMore:x,pending:g})=>x&&!g,fn:({filters:x,currency:g,page:A})=>({filters:x,currency:g,page:A+1}),target:Ja}),qf.on(Ja.doneData,(x,{items:g})=>g.length?[...x,...g]:x),E5.on(Ja.doneData,(x,{page:g,items:A})=>A.length?g:x),x0.on(Ja.doneData,(x,{page:g,meta:A,items:k})=>k.length===0?!1:g<A.pageCount),x0.on(Ja.fail,()=>!1),h({clock:x5,fn:()=>({name:"Lootbox Page"}),target:e}),JM.on(m0,(x,{query:g})=>g).reset(b5),Yf.reset(b5),h({clock:m0,filter:({query:x})=>x.trim().length>=4,target:q3}),h({clock:m0,filter:({query:x})=>x.trim().length<4,target:b5}),Yf.on(q3.doneData,(x,g)=>g),h({clock:m0,filter:({query:x})=>x.trim().length>=4,fn:({query:x})=>({name:"Search",properties:{searchValue:x,length:x.length}}),target:e}),Kf.on(p0,(x,g)=>[...x,g]).on(p0.finally,(x,{params:g})=>{const A=x.indexOf(g);return A===-1?x:[...x.slice(0,A),...x.slice(A+1)]}),h({clock:NC,source:Kf,filter:(x,g)=>!x.includes(g),fn:(x,g)=>g,target:p0}),OC.on(p0.doneData,(x,g)=>g),tm.on($M.doneData,(x,g)=>g.reduce((A,k)=>(A[k.id]=k,A),{...x})),h({clock:FM,target:qM}),h({clock:Vf,target:zM}),Xf.on(kC,(x,g)=>[...g,...x].slice(0,QI)),Xf.reset(Vf);const n=Z.createStore(0,{name:"openGeneration"});n.on(Yt,x=>x+1);const s=Z.createStore(0,{name:"lootboxReadIssued"});h({clock:v5,source:P({openGeneration:n,issued:s}),fn:({openGeneration:x,issued:g},A)=>({...A,openGeneration:x,readSeq:g+1}),target:ci}),s.on(ci,(x,{readSeq:g})=>g);const r=P({generation:n,issued:s}),a=({generation:x,issued:g},{params:A})=>x===A.openGeneration&&g===A.readSeq,i=h({clock:ci.done,source:r,filter:a,fn:(x,{result:g})=>g}),l=h({clock:ci.fail,source:r,filter:a,fn:(x,{error:g})=>g.message});Fl.on(i,(x,g)=>g).reset(nr),QM.on(l,(x,g)=>g).reset(ci,nr),h({clock:i,fn:x=>Df({series:EM(x.freeBets),isRewardBox:x.tags.includes(ea.REWARD),maxAllowed:H3}),target:Qa}),S5.on($f,(x,g)=>g).on(Qa.updates,(x,g)=>Math.min(x,g.maxCountToOpen)).reset(nr),Jf.reset(_M,Pl,nr),eO.on(h0,()=>!0).reset(Pl,nr),L5.reset(Pl,nr),h({clock:Pl,source:P({lootbox:Fl,count:S5,canOpen:tO,freeBets:Qa,intent:U2}),filter:({lootbox:x,canOpen:g})=>!!x&&g,fn:({lootbox:x,count:g,freeBets:A,intent:k},{currency:R})=>AM(k,{lootboxId:x.id,amountToOpen:g,currency:R,freeBet:A.remainingFreeBetsCount>0}),target:Yt}),U2.on(Yt,(x,g)=>g).on(Yt.failData,(x,g)=>VM(g)?null:x).on($f,(x,g)=>x&&x.amountToOpen===g?x:null).reset(Yt.done,nr,Xa),PC.on(Yt,()=>!0).on([Yt.fail,h0],()=>!1),L5.on(Yt.doneData,(x,{items:g})=>g),A5.on(Yt.doneData,(x,{replayed:g})=>g).reset(Pl,nr),h({clock:[Yt.done,g0.done,w0.done,C0.done],target:z3}),h({clock:Yt.failData,filter:x=>x instanceof Ec,fn:()=>"lootbox",target:RM}),h({clock:Yt.failData,filter:x=>!(x instanceof Ec),fn:x=>x.message,target:Jf});const c=Z.createEvent("openRecoveryRefetchDue");h({clock:Yt.failData,source:n,filter:(x,g)=>!(g instanceof Ec),fn:x=>x,target:Wf}),h({clock:Wf.done,source:n,filter:(x,{params:g})=>x===g,fn:()=>{},target:c}),h({clock:[Yt.fail,c],target:z3}),h({clock:[Yt.fail,c],source:Fl,filter:x=>x!==null,fn:x=>({slug:x.urlSlug,currency:x.currency}),target:v5}),h({clock:h0,source:P({freeBets:Qa,lootbox:Fl,count:S5,replayed:A5}),filter:({freeBets:x,replayed:g})=>!g&&x.remainingFreeBetsCount>0,fn:({freeBets:x,lootbox:g,count:A})=>Df({series:x.series,openedCount:A,isRewardBox:!!(g!=null&&g.tags.includes(ea.REWARD)),maxAllowed:H3}),target:Qa}),h({clock:h0,source:P({lootbox:Fl,replayed:A5}),filter:({lootbox:x,replayed:g})=>
2g&&x!==null,fn:({lootbox:x})=>({slug:x.urlSlug,currency:x.currency}),target:v5}),Qa.reset(nr),y0.on(Uf,(x,g)=>({...x,...g}));const d=Z.createEvent("inventoryRestartRequested"),f=Z.createEvent("inventoryRestartSettled"),u=Z.createEvent("inventoryRestarted"),m=Z.createStore(!1,{name:"inventoryRestartQueued"}),p=Z.createStore(0,{name:"inventoryRestartEpoch"});p.on(u,x=>x+1),h({clock:[Bf,Uf],target:d}),T5.on(Bf,()=>!0).reset(Dl),h({clock:[Yt.fail,c],source:T5,filter:x=>x,fn:()=>{},target:d}),h({clock:d,source:$s.pending,filter:x=>!x,fn:()=>{},target:u}),h({clock:d,source:$s.pending,filter:x=>x,fn:()=>!0,target:m}),h({clock:$s.finally,source:P({queued:m,filters:y0}),filter:({queued:x})=>x,fn:({filters:x},g)=>({satisfied:g.status==="done"&&XM(g.params,x)}),target:f}),m.on(f,()=>!1).reset(Dl),h({clock:f,filter:({satisfied:x})=>!x,fn:()=>{},target:u}),jr.reset(u,Dl),_5.on(u,()=>0).reset(Dl),b0.on(u,()=>!0).reset(Dl),h({clock:p.updates,source:P({filters:y0,openGeneration:n}),fn:({filters:x,openGeneration:g},A)=>({filters:x,page:1,openGeneration:g,restartEpoch:A}),target:$s}),h({clock:NM,source:P({filters:y0,page:_5,hasMore:b0,pending:$s.pending,openGeneration:n,restartEpoch:p}),filter:({hasMore:x,pending:g})=>x&&!g,fn:({filters:x,page:g,openGeneration:A,restartEpoch:k})=>({filters:x,page:g+1,openGeneration:A,restartEpoch:k}),target:$s});const C=P({openGeneration:n,restartEpoch:p,open:T5}),b=({restartEpoch:x},{params:g})=>x===g.restartEpoch,v=({openGeneration:x},{params:g})=>g.page===1&&x!==g.openGeneration,E=h({clock:$s.done,source:C,filter:(x,g)=>b(x,g)&&!v(x,g),fn:(x,{result:g})=>g});h({clock:$s.done,source:C,filter:(x,g)=>x.open&&b(x,g)&&v(x,g),fn:()=>{},target:d}),jr.on(E,(x,{items:g})=>g.length?[...x,...g]:x),_5.on(E,(x,{page:g,items:A})=>A.length?g:x),b0.on(E,(x,{page:g,meta:A,items:k})=>k.length===0?!1:g<A.pageCount),b0.on($s.fail,()=>!1),jr.on(G3,Pf),jr.on(kM,yM),jr.on(Hf,bM),h({clock:[w0.doneData,Zf.doneData,C0.doneData],fn:({lootboxInventoryId:x,status:g})=>({lootboxInventoryId:x,status:g}),target:G3}),h({clock:[w0.fail,Zf.fail],filter:({error:x})=>x.name==="ItemExpiredError",fn:({params:x})=>typeof x=="number"?x:x.lootboxInventoryId,target:Hf}),h({clock:PM,target:g0}),h({clock:DM,target:w0}),h({clock:OM,target:C0}),h({clock:g0.doneData,source:jr,fn:(x,{ids:g})=>g.reduce((A,k)=>Pf(A,{lootboxInventoryId:k,status:"SOLD"}),x),target:jr}),h({clock:IM,target:f2}),Qf.on(f2.doneData,(x,{items:g})=>g),nO.on(f2.doneData,(x,{meta:g})=>g),h({clock:MM,target:di}),em.on(di.doneData,(x,{items:g})=>g),R5.on(di.doneData,(x,{meta:g})=>g),h({clock:C0.done,source:R5,filter:x=>!!x,fn:x=>x.page,target:di}),h({clock:g0.done,source:R5,filter:x=>!!x,fn:x=>x.page,target:di}),jr.reset(Xa),Qf.reset(Xa),em.reset(Xa),L5.reset(Xa),tm.reset(Xa)},rO=["promotions","wtf","trash"],aO=e=>rO.includes(e),Dc="/promotions",oO=e=>`${Dc}/${encodeURIComponent(e)}`,iO=100,lO="en",Y3={OK:200,MULTIPLE_CHOICES:300,NOT_FOUND:404},cO="notification.toast.error.title",dO="http.try_later";let K3=null;const uO=e=>{K3=e},C1=()=>{if(!K3)throw new Error("@whale-client/dataflow-promotions is not configured. Call configurePromotionsDataflow() on app boot.");return K3},v4=e=>e>=Y3.OK&&e<Y3.MULTIPLE_CHOICES,fO=e=>{if(!e||typeof e!="object")return null;const{locale:t,imageUrlWeb:n,imageUrlMobile:s}=e;return typeof t!="string"?null:{locale:t,imageUrlWeb:typeof n=="string"?n:null,imageUrlMobile:typeof s=="string"?s:null}},DC=e=>{if(!e||typeof e!="object")return null;const t=e;return typeof t.slug!="string"||!t.slug||!aO(t.category)?null:{id:typeof t.id=="number"?t.id:0,slug:t.slug,category:t.category,titleKey:t.titleKey??"",descriptionKey:t.descriptionKey??"",contentKey:t.contentKey??"",endDateKey:t.endDateKey??"",images:Array.isArray(t.images)?t.images.map(fO).filter(n=>n!==null):[]}},FC=e=>{const t=e==null?void 0:e.data;return Array.isArray(t)?t.map(DC).filter(n=>n!==null):[]},bce=(e,t)=>{const n=e.images??[],s=n.find(a=>a.locale===t)??n.find(a=>a.locale===lO),{resolveAssetUrl:r}=C1();return{imageUrlWeb:s!=null&&s.imageUrlWeb?r(s.imageUrlWeb):"",imageUrlMobile:s!=null&&s.imageUrlMobile?r(s.imageUrlMobile):""}},Vn=Je("promotions"),sm=Vn.createEvent("promotionsRequested"),rm=Vn.createEvent("promotionRequested"),am=Vn.createEvent("promotionCleared"),jC=Vn.createEvent("footerPromotionsRequested"),E4=(e,t)=>
2new Error(`GET ${e} answered ${t}`),ui=Vn.createEffect(async e=>{const{http:t}=C1(),n=await t.get(Dc,{limit:iO,category:e?e.category:void 0});if(!v4(n.status))throw E4(Dc,n.status);return FC(n.data)}),mc=Vn.createEffect(async e=>{var r;const{http:t}=C1(),n=oO(e),s=await t.get(n);if(s.status===Y3.NOT_FOUND)return null;if(!v4(s.status))throw E4(n,s.status);return DC((r=s.data)==null?void 0:r.data)}),N5=Vn.createEffect(async()=>{const{http:e}=C1(),t=await e.get(Dc,{showInFooter:!0});if(!v4(t.status))throw E4(Dc,t.status);return FC(t.data)}),om=Vn.createStore([]);ui.pending;const im=Vn.createStore(!1),lm=Vn.createStore(!1),k5=Vn.createStore(null);mc.pending;const I5=Vn.createStore(!1),$C=Vn.createStore([]),mO=$C.map(e=>e.length>0);let cm=!1;const hO=()=>{cm||(cm=!0,h({clock:sm,fn:()=>!1,target:[lm,im]}),h({clock:sm,target:ui}),h({clock:ui.doneData,target:om}),h({clock:ui.fail,fn:()=>[],target:om}),h({clock:ui.fail,fn:()=>!0,target:im}),h({clock:ui.finally,fn:()=>!0,target:lm}),h({clock:rm,fn:()=>!1,target:I5}),h({clock:rm,target:mc}),h({clock:mc.doneData,target:k5}),h({clock:mc.fail,fn:()=>null,target:k5}),h({clock:mc.finally,fn:()=>!0,target:I5}),h({clock:am,fn:()=>null,target:k5}),h({clock:am,fn:()=>!1,target:I5}),h({clock:jC,source:mO,filter:e=>!e,target:N5}),h({clock:N5.doneData,target:$C}),N5.fail.watch(()=>{const{toast:e,translate:t}=C1();e.error(t(cO),t(dO))}))},pO="season-5",gO="btsg_sportbetting",wO=9,vce=.05,S4=24*60*60*1e3,CO=200,xO=10,yO=S4,bO=5e3,vO=250,dm=100,EO=7*S4,BC={PRODUCED_NOTIFICATIONS:"produced_notifications"},SO="whale:hidden-claimable-reward-ids",UC=e=>`${SO}:${e}`,LO="whale:hidden-token-print-ids",HC=e=>`${LO}:${e}`,VC="bonus.token_print.claimable",AO="bonus",TO="notification.tokenPrint.claimable",_O="WHALE",RO="/token",um=e=>`token-print-${e}`,fm="reward-notification-hidden-",NO="true",Pd={level:0,xp:0,cashbackPercents:5},Ece="https://www.trustpilot.com/review/whale.io",mm="https://whale.io",Sce=e=>e&&e!=="en"?`${mm}/${e}`:mm,gs={REWARDS:"/rewards",EARN:"/earn",CASINO:"/casino",SPORTSBOOK:"/sportsbook",LOOTBOX:"/lootbox",GAMES:"/games"},It={BATTLE_PASS:"battle-pass",FREE_SPINS:"free-spins",CASHBACK:"cashback",BOOST_CASHBACK:"boost-cashback",ORIGINAL_GAME_FREE_BETS:"original-game-free-bets",DEPOSIT:"deposit",CUSTOM:"custom",DELIVERABLE_ITEM:"deliverable-item",LOOT_BOX:"loot-box"},Jn={TelegramId:"telegramId",UserId:"userId",UserRole:"userRole",AlwaysTrue:"alwaysTrue",AffiliatedByCode:"affiliatedByCode",AffiliatesCount:"affiliatesCount",AffiliateType:"affiliatedType",BattlePass:"battlePass",KYC:"kyc",EmailVerified:"emailVerified",LatestCountry:"latestCountry",Level:"level",XP:"xp",WageringTotal:"wageringTotal",WageringGame:"wageringGame",DepositTotal:"depositTotal",Platform:"platform",UserCreatedAt:"createdAt",RewardsLimit:"rewardsLimit",Lootbox:"lootbox",ActionDailyStreak:"actionDailyStreak",ActionDeposit:"actionDeposit",ActionRedeemBonusCode:"bonusCode",ActionRedeemPromoCode:"promoCode",ActionFollowX:"actionFollowX",ActionFollowTikTok:"actionFollowTikTok",ActionFollowYoutube:"actionFollowYoutube",ActionFollowTwitch:"actionFollowTwitch",ActionFollowInstagram:"actionFollowInstagram",ActionFollowDiscord:"actionFollowDiscord",ActionLevelUp:"actionLevelUp",ActionWager:"actionWager",ActionKycPassed:"actionKycPassed",ActionEmailVerified:"actionEmailVerified",ActionSignUp:"actionSignUp",ActionLoginApk:"actionLoginApk",ActionLogin:"actionLogin",ActionRetweet:"actionRetweet",ActionReviewWhale:"actionReviewWhale",ActionClaimCashback:"actionClaimCashback"},Qt={FREESPINS:"freespin",CASHBACK:"cashback",PERIODIC_BONUS:"periodicBonus",CUSTOM:"custom",NOTIFICATION:"notification",AddEmail:"addEmail",REWARD_UPDATE:"rewardUpdate",TOURNAMENT_PRIZE_UPDATE:"tournamentPrizeUpdate"},WC="add-email",kO={Credited:"credited",Claimable:"claimable"},IO={MULTIPLE_CHOICES:300},MO="/rewards/available",OO="/rewards/claimable",PO="/rewards/battlepass/public",DO="/rewards/missions",FO="/rewards/activateByCode",jO="/rewards/claim",$O="/rewards/check",BO="/ranks",UO="/bonus/level",HO="/bonus/rewards-summary",VO="/bonus/deposit-bonus-config",WO="/bonus",ZO="/cashback/active",GO="/cashback",zO="/periodic-bonus/active",qO="/periodic-bonus",YO="/tournament-prizes/claimable",KO="/tournament-prizes",XO="/original-games/free-bets/unclaimed",JO="/lootbox/batch",QO="/battle-pass/current",eP="/battle-pass/buy",tP="/battle-pass/bought",nP="/battle-pass/purchases/last-day",sP="/daily-streaks",rP="/daily-streaks/coins/purchase",aP="/daily-streaks/coins/cost",M5="/notifications/acknowledged",hm="/notifications/acknowledge",tt={EXPIRED:"expired",ALREADY_CLAIMED:"already_claimed",NOT_AVAILABLE_YET:"not_available_yet",NOT_FOUND:"not_found",CONDITIONS_NOT_MET:"conditions_not_met",INSUFFICIENT_FUNDS:"insufficient_funds",G
2ENERIC:"generic"},oP=e=>e.toLowerCase().replace(/\bwith id\s+\d+\b/g,"").replace(/\s+/g," ").trim(),iP={"user reward is expired":tt.EXPIRED,"reward is expired":tt.EXPIRED,"user reward is already claimed":tt.ALREADY_CLAIMED,"user reward is already applied":tt.ALREADY_CLAIMED,"user reward is not available yet":tt.NOT_AVAILABLE_YET,"reward is not available yet":tt.NOT_AVAILABLE_YET,"user reward not found":tt.NOT_FOUND,"reward not found":tt.NOT_FOUND,"user reward is not owned by user":tt.NOT_FOUND,"claim rules are not met":tt.CONDITIONS_NOT_MET,"cannot change user balance to negative value":tt.INSUFFICIENT_FUNDS};class m2 extends Error{constructor(n,s){super(s);er(this,"code");this.name="TournamentPrizeClaimError",this.code=n}}const lP=409,cP=404,dP="tournament_prize_expired",uP="not_found",fP=(e,t)=>{const n=[t==null?void 0:t.message,t==null?void 0:t.code].filter(r=>typeof r=="string"),s=n[0]??`tournament prize claim answered ${e}`;return e===lP||n.includes(dP)?new m2(tt.EXPIRED,s):e===cP||n.includes(uP)?new m2(tt.NOT_FOUND,s):new m2(tt.GENERIC,s)},ZC=e=>{if(e instanceof m2)return e.code;const t=e instanceof Error?e.message:typeof e=="string"?e:"";return t?iP[oP(t)]??tt.GENERIC:tt.GENERIC},mP={[tt.EXPIRED]:"notification.toast.error.expired",[tt.ALREADY_CLAIMED]:"notification.toast.error.already_claimed",[tt.NOT_AVAILABLE_YET]:"notification.toast.error.not_available_yet",[tt.NOT_FOUND]:"notification.toast.error.not_found",[tt.CONDITIONS_NOT_MET]:"notification.toast.error.conditions_not_met",[tt.INSUFFICIENT_FUNDS]:"rewards.buttons.not_enough_funds",[tt.GENERIC]:"notification.toast.error.body"},hP=e=>mP[ZC(e)],Fc={NOT_FOUND:"not_found",ALREADY_USED:"already_used",EXPIRED:"expired",NOT_AVAILABLE_YET:"not_available_yet",CONDITIONS_NOT_MET:"conditions_not_met",UNKNOWN:"unknown"},pP=new Set(Object.values(Fc)),gP=new Set(Object.values(Jn)),wP=e=>typeof e=="object"&&e!==null&&typeof e.type=="string"&&gP.has(e.type);class X3 extends Error{constructor(n){super(`Code redemption failed: ${n.reason}`);er(this,"reason");er(this,"conditions");this.name="RewardCodeRedemptionError",this.reason=n.reason,this.conditions=n.conditions}}const CP=(e,t)=>{const n=typeof t=="object"&&t!==null?t:{},s=Array.isArray(n.conditions)?n.conditions.filter(wP):[];return typeof n.reason=="string"&&pP.has(n.reason)?{reason:n.reason,conditions:s}:{reason:e===404?Fc.NOT_FOUND:Fc.UNKNOWN,conditions:s}},xP=e=>e instanceof X3?{reason:e.reason,conditions:e.conditions}:{reason:Fc.UNKNOWN,conditions:[]};let J3=null;const yP=e=>{J3=e},pe=()=>{if(!J3)throw new Error("@whale-client/dataflow-rewards is not configured. Call configureRewardsDataflow() on app boot.");return J3},Nr=e=>e>=IO.MULTIPLE_CHOICES,Dd=(e,t)=>e instanceof Error&&e.message?e.message:t,GC=(e,t=Date.now())=>!!e.endTime&&new Date(String(e.endTime)).getTime()<=t,bP=(e,t)=>e.claimedAtTimestamp===null&&(e.availableUntilTimestamp===null||e.availableUntilTimestamp>t),L4=(e,t=Date.now())=>e.applies.filter(n=>bP(n,t)),A4=(e,t=Date.now())=>L4(e,t).length>0,vP=e=>e.applies.length>0&&e.applies.every(t=>t.claimedAtTimestamp!==null),EP=(e,t=Date.now())=>GC(e,t)?!1:A4(e,t)?!0:!vP(e),SP=e=>e.conditions.filter(t=>!t.conditionMet),zC=e=>SP(e)[0],LP=e=>e.conditions.some(t=>t.type===Jn.BattlePass&&!t.conditionMet),AP=e=>e.conditions.some(t=>(t.type===Jn.ActionDeposit||t.type===Jn.DepositTotal)&&!t.conditionMet),qC=new Set([Jn.WageringTotal,Jn.WageringGame,Jn.ActionWager]),pm=e=>e.conditions.some(t=>qC.has(t.type)),TP=e=>{const t=zC(e);return t!==void 0&&qC.has(t.type)},_P=e=>{var t;return e.type===It.FREE_SPINS&&((t=e.metadata)==null?void 0:t.isBonusBuy)===!0},T4=e=>{var t;return e.type===It.FREE_SPINS&&((t=e.metadata)==null?void 0:t.game_code)===gO},_4=e=>{var t;return e.type===It.LOOT_BOX||((t=e.metadata)==null?void 0:t.gameType)==="lootbox"},RP=e=>e.type===It.ORIGINAL_GAME_FREE_BETS,NP=e=>{var t;return e.type===It.DEPOSIT&&((t=e.metadata)==null?void 0:t.currency)==="WHA
2LE"},Lce=e=>e.type===It.BATTLE_PASS?"battle-pass":T4(e)?"sportsbook-free-bet":e.type===It.FREE_SPINS?"free-spins":_4(e)?"lootbox":RP(e)?"originals-free-bets":e.type===It.CASHBACK||e.type===It.BOOST_CASHBACK?"cashback":NP(e)?"whale-token":e.type===It.DEPOSIT?"deposit":"generic",Ace=e=>e/1e5,kP=e=>e.split("-").map(t=>t&&`${t[0].toUpperCase()}${t.slice(1)}`).join(" "),Tce=e=>_4(e)?"Lootbox":kP(e.type),IP=e=>e==="crock_dentist"?`${gs.GAMES}/crock-dentist`:`${gs.GAMES}/${e}`,MP=e=>{var n;const t=(n=e==null?void 0:e.lootbox)==null?void 0:n.urlSlug;return t?`${gs.LOOTBOX}/${t}`:gs.LOOTBOX},O5="WHALE",Q3="USDT",OP=({battlePass:e,selectedCurrency:t,beastMode:n})=>{var c,d,f,u;const s=(n?e==null?void 0:e.beastModePrices:e==null?void 0:e.prices)??{},r=(n?e==null?void 0:e.beastModePriceInUsd:e==null?void 0:e.priceInUsd)??0,a=(c=s[t])==null?void 0:c.amount,i=typeof a=="number"?a:r,l=(n?(f=(d=e==null?void 0:e.beastModePrices)==null?void 0:d[Q3])==null?void 0:f.originalAmount:void 0)||null;return t===O5?{amount:((u=s[O5])==null?void 0:u.amount)??0,displayCurrency:O5,originalAmount:l,chargedAmount:i}:{amount:r,displayCurrency:Q3,originalAmount:l,chargedAmount:i}},YC=new Set([It.CASHBACK,It.BOOST_CASHBACK]),PP=(e,t=Date.now())=>YC.has(e.type)?!1:e.conditions.length===0?A4(e,t):EP(e,t),DP=e=>[...e].sort((t,n)=>Number(pm(n))-Number(pm(t))),FP=(e,t=Date.now())=>A4(e,t)?!0:!e.conditions.some(s=>s.type===Jn.ActionLevelUp)&&TP(e),jP=(e,t=Date.now())=>DP(e.filter(n=>!YC.has(n.type)&&FP(n,t))),$P=(e,t=Date.now())=>e.claimable&&e.claimedAtTimestamp===null&&(e.claimableUntilTimestamp===null||e.claimableUntilTimestamp>t),BP=(e,t=Date.now())=>e.claimable&&e.claimedAtTimestamp===null&&e.amount!==null&&e.currency!==null&&e.claimableUntilTimestamp!==null&&e.claimableUntilTimestamp>t,UP=e=>e.status==="accruing",_ce=e=>{const t=new Date(e.periodEndTimestamp);return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),wO)).getTime()},R4=e=>!Number.isFinite(e)||e<0?0:e>1?1:e,Rce=(e,t=Date.now())=>e.claimableUntilTimestamp===null?1:R4((e.claimableUntilTimestamp-t)/S4),Nce=(e,t)=>t<=0?0:R4(e/t)*100,KC=(e,t)=>e.find(n=>n.level===t),kce=(e,t)=>{var n;return((n=KC(e,t))==null?void 0:n.cashbackPercentage)??0},Ice=(e,t)=>[...e].sort((n,s)=>s.level-n.level).find(n=>n.level<=Math.max(1,t))??null,Mce=(e,t,n)=>{var s;return Math.max(0,(((s=KC(e,t))==null?void 0:s.xp)??0)-n)},HP=(e,t=Date.now())=>{if(!e)return[];let n;try{n=JSON.parse(e)}catch{return[]}return Array.isArray(n)?n.filter(s=>!!s&&typeof s=="object"&&typeof s.id=="string"&&typeof s.producedAt=="number"&&t-s.producedAt<yO).map(({id:s,producedAt:r,userId:a})=>typeof a=="number"&&Number.isInteger(a)?{id:s,producedAt:r,userId:a}:{id:s,producedAt:r}):[]},XC=(e,t)=>t===null||e.userId===void 0||e.userId===t,VP=(e,t,n=Date.now(),s=null)=>[...e.filter(r=>r.id!==t||!XC(r,s)),s===null?{id:t,producedAt:n}:{id:t,producedAt:n,userId:s}],WP=(e,t,n=null)=>e.some(s=>s.id===t&&XC(s,n)),ZP=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.length>0):[],GP=(e,t)=>e.userId===t&&e.status==="settled",zP=(e,t,n)=>e.userId===n&&e.ids.includes(t),qP=(e,t)=>typeof e.id=="string"&&e.id?e.id:t,YP=(e,t,n=Date.now())=>{const s=Date.parse(e.createdAt??"");return!Number.isNaN(s)&&n-s>t},KP=(e,t=Date.now())=>{if(!e.deliverAfter)return!0;const n=new Date(e.deliverAfter).getTime();return Number.isNaN(n)||n<=t},JC=(e,t,n=null)=>{const s=e.i18nValues??{},r=a=>{var l;const i=e[a];return i||(e.i18nKey?t(`${e.i18nKey}.${a}`,s):(l=e.payload)==null?void 0:l[a])};return{...e,userId:e.userId??n??0,activeUntil:e.expiresAt??e.activeUntil??"",payload:{...e.payload,title:r("title"),body:r("body"),entityId:typeof e.entityId=="number"?e.entityId:void 0,values:s,actions:{}}}},Oce=(e,t=Date.now())=>{if(!e.createdAt||!e.activeUntil)return 1;const n=new Date(e.createdAt).getTime(),s=new Date(e.activeUntil).getTime();return Number.isNaN(n)||Number.isNaN(s)||s<=n?1:R4((s-t)/(s-n))},XP=(e,t=Date.now())=>typeof e.availableUntilTimestamp=="number"&&e.availableUntilTimestamp<=t,Ki=(e,t)=>{const n=t.filter(s=>!e.includes(s));return n.length===0?e:[...e,...n]},JP=e=>{if(e===null)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="number"&&Number.isInteger(n)):[]}catch{return[]}},gm=e=>{if(!e.startsWith(fm))return null;const t=e.slice(fm.length),n=Number(t);return t!==""&&Number.isInteger(n)?n:null},QC=(e,t)=>
2JP(e.get(UC(t))),N4=(e,t,n)=>{const s=UC(t);if(n.length===0){e.remove(s);return}e.set(s,JSON.stringify(n))},ex=(e,t)=>{const n=QC(e,t),s=e.keys().filter(i=>gm(i)!==null);if(s.length===0)return n;const r=s.filter(i=>e.get(i)===NO).map(i=>gm(i)).filter(i=>i!==null),a=Ki(n,r);return s.forEach(i=>e.remove(i)),N4(e,t,a),a},QP=(e,t,n=Date.now())=>t.includes(e.userRewardId)||e.claimedAtTimestamp!==null?!1:!XP(e,n),xr=e=>{if(e.notificationType!==VC)return null;const{entityId:t}=e;return t==null||t===""?null:String(t)},eD=(e,t,n)=>JC({id:um(e.printerId),type:Qt.NOTIFICATION,payload:{},createdAt:e.releasedAt,category:AO,notificationType:VC,i18nKey:TO,amount:{value:e.amount,currency:_O},entityId:e.printerId,dedupeId:um(e.printerId),cta:{deeplink:RO}},t,n),tD="tournament.winnings",tx=e=>{var t;return e.notificationType===tD&&((t=e.context)==null?void 0:t.payoutStatus)===kO.Claimable},nD=(e,t,n)=>{if(e.type===Qt.REWARD_UPDATE||tx(e))return!1;const s=xr(e);return s===null||!t.includes(s)&&!n.includes(s)},sD=e=>{if(e===null)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},nx=(e,t)=>sD(e.get(HC(t))),sx=(e,t,n)=>{const s=HC(t);if(n.length===0){e.remove(s);return}e.set(s,JSON.stringify(n))},eo=e=>{const t=typeof e=="string"&&e.trim()!==""?Number(e):e;return typeof t=="number"&&Number.isFinite(t)?t:null},rD=e=>{if(!e||typeof e!="object")return null;const t=eo(e.id),n=eo(e.amountUsd),s=eo(e.expiresAtTimestamp);return t===null||n===null||s===null?null:{id:t,tournamentId:eo(e.tournamentId)??0,tournamentName:typeof e.tournamentName=="string"?e.tournamentName:"",slug:typeof e.slug=="string"?e.slug:"",imageUrl:typeof e.imageUrl=="string"&&e.imageUrl?e.imageUrl:null,rank:eo(e.rank)??0,amountUsd:n,currency:typeof e.currency=="string"&&e.currency?e.currency:"USDT",issuedAtTimestamp:eo(e.issuedAtTimestamp)??0,expiresAtTimestamp:s}},aD=e=>Array.isArray(e)?e.map(t=>rD(t)).filter(t=>t!==null):[],oD=(e,t=Date.now())=>e.expiresAtTimestamp>t,iD=(e,t,n=Date.now())=>e.filter(s=>!t.includes(s.id)&&oD(s,n)),lD=new Set(["claimed","already_claimed","expired"]),cD=e=>{const t=eo(e.payoutId),{status:n}=e;return t===null||typeof n!="string"||!lD.has(n)?null:{payoutId:t,status:n}},D=Je("rewards"),k4=D.createEvent("bonusCenterMounted"),rx=D.createEvent("rewardsDataflowInitialised"),Ee=D.createEvent("rewardsUserStateReset"),dD=D.createEvent("availableRewardsRequested"),I4=D.createEvent("claimableRewardsRequested"),ax=D.createEvent("missionsRequested"),M4=D.createEvent("levelDataRequested"),uD=D.createEvent("ranksRequested"),O4=D.createEvent("cashbacksRequested"),P4=D.createEvent("periodicBonusesRequested"),ox=D.createEvent("rewardsSummaryRequested"),D4=D.createEvent("depositBonusConfigRequested"),fD=D.createEvent("claimableFreeBetsRequested"),F4=D.createEvent("tournamentPrizesRequested"),mD=D.createEvent("missionsMarkedStale"),hD=D.createEvent("rewardClaimRequested"),pD=D.createEvent("userRewardClaimRequested"),gD=D.createEvent("cashbackClaimRequested"),wD=D.createEvent("periodicBonusClaimRequested"),CD=D.createEvent("bonusNotificationClaimRequested"),xD=D.createEvent("tournamentPrizeClaimRequested"),Fd=D.createEvent("tournamentPrizeResolved"),yD=D.createEvent("missionConditionCheckRequested"),j4=D.createEvent("rewardCodeSubmitted"),ix=D.createEvent("rewardCodeFeedbackCleared"),lx=D.createEvent("currentBattlePassRequested");D.createEvent("boughtBattlePassesRequested");const cx=D.createEvent("recentPurchasesRequested"),dx=D.createEvent("battlePassPurchaseRequested"),ux=D.createEvent("battlePassPurchaseErrorCleared"),Ni=D.createEvent("userNotificationReceived"),fx=D.createEvent("notificationDismissed"),bD=D.createEvent("notificationsMarkedRead"),mx=D.createEvent("claimableRewardHidden"),hx=D.createEvent("claimableTokenPrintsSynced"),px=D.createEvent("tokenPrintHidden"),jd=D.createEvent("tokenPrintClaimed"),vD=D.createEvent("notificationCenterToggled"),gx=D.createEvent("notificationCenterClosed"),$4=D.createEvent("notificationAcknowledgementsRequested"),wx=D.createEvent("userChannelNotificationDeferred"),Cx=D.createEvent("deferredUserChannelNotificationsFlushed"),$d=D.createEvent("notificationAcknowledgementQueued"),ED=D.createEvent("dailyStreaksRequested"),SD=D.createEvent("dailyStreakSaveCoinPurchaseRequested");
2D.createEvent("dailyStreakSaveCoinCostRequested");const Ys=(e,t)=>{var n;if(Nr(e.status))throw new Error(((n=e.data)==null?void 0:n.message)??t);return e.data},Io=D.createEffect(async()=>{const{data:e}=await pe().http.get(MO);return Array.isArray(e==null?void 0:e.rewards)?e.rewards:[]}),B4=D.createEffect(async()=>{const{data:e}=await pe().http.get(PO);return Array.isArray(e==null?void 0:e.rewards)?e.rewards:[]}),va=D.createEffect(async()=>{const{data:e}=await pe().http.get(OO);return Array.isArray(e==null?void 0:e.rewards)?e.rewards:[]}),xx=D.createEffect(e=>{const{storage:t,getUserId:n}=pe(),s=n();if(s===null)return[];const r=ex(t,s);if(e.length===0)return r;const a=e.map(i=>i.userRewardId).filter(i=>r.includes(i));return a.length!==r.length&&N4(t,s,a),a}),U4=D.createEffect(e=>{const{storage:t,getUserId:n}=pe(),s=n();if(s===null)return[];const r=nx(t,s);if(e.length===0)return r;const a=r.filter(i=>e.some(l=>l.printerId===i));return a.length!==r.length&&sx(t,s,a),a}),H4=D.createEffect(e=>{const{translate:t,getUserId:n}=pe(),s=n();return e.map(r=>eD(r,t,s))}),LD=D.createEffect(()=>{const{storage:e,getUserId:t}=pe(),n=t();return n===null?[]:ex(e,n)}),Xi=D.createEffect(async()=>{const{data:e}=await pe().http.get(DO);return Array.isArray(e==null?void 0:e.rewards)?e.rewards:[]}),gn=D.createEffect(async e=>{const t=await pe().http.post(jO,{rewardId:e.userRewardId}),n=Ys(t,"Failed to claim the reward");return{...e,userReward:n.userReward}}),Ji=D.createEffect(async e=>{var s;const t=await pe().http.post(FO,{code:e});if(Nr(t.status))throw new X3(CP(t.status,t.data));const n=Array.isArray((s=t.data)==null?void 0:s.rewards)?t.data.rewards:[];if(!n.length)throw new X3({reason:Fc.NOT_FOUND,conditions:[]});return n}),yx=D.createEffect(async({conditionType:e,value:t})=>{await pe().http.post(`${$O}/${e}`,{value:t})}),Qi=D.createEffect(async()=>{const e=await pe().http.get(UO);return Ys(e,"Failed to load level data")}),jc=D.createEffect(async()=>{const e=await pe().http.get(BO);return Ys(e,"Failed to load ranks").ranks??[]}),pa=D.createEffect(async()=>{const e=await pe().http.get(HO);return Ys(e,"Failed to load the rewards summary")}
2),e6=D.createEffect(async()=>{const e=await pe().http.get(VO);return Ys(e,"Failed to load the deposit-bonus config")}),Bd=D.createEffect(async e=>{const t=await pe().http.post(`${WO}/${e}`);return Ys(t,"Failed to claim the bonus"),e}),Ud=D.createEffect(async()=>{const{data:e}=await pe().http.get(ZO);return Array.isArray(e==null?void 0:e.cashbacks)?e.cashbacks:[]}),el=D.createEffect(async e=>{const t=await pe().http.post(`${GO}/${e}`);return Ys(t,"Failed to claim the cashback"),e}),V4=D.createEffect(async()=>{const{status:e,data:t}=await pe().http.get(zO);return Nr(e)?[]:Array.isArray(t==null?void 0:t.bonuses)?t.bonuses:[]}),tl=D.createEffect(async e=>{const t=await pe().http.post(`${qO}/${e}`);return Ys(t,"Failed to claim the bonus"),e}),Hd=D.createEffect(async()=>{const{status:e,data:t}=await pe().http.get(YO);return Nr(e)?[]:aD(t==null?void 0:t.prizes)}),ga=D.createEffect(async e=>{var n;const t=await pe().http.post(`${KO}/${e}/claim`);if(Nr(t.status))throw fP(t.status,t.data);return{payoutId:e,status:((n=t.data)==null?void 0:n.status)==="already_claimed"?"already_claimed":"claimed"}}),W4=D.createEffect(async()=>{const e=pe(),{data:t}=await e.http.get(XO),n=Array.isArray(t==null?void 0:t.freeBets)?t.freeBets:[],s=[...new Set(n.filter(i=>i.gameType==="lootbox").map(i=>i.gameId))];if(!s.length)return n;const{data:r}=await e.http.get(JO,{ids:s.join(",")}),a=new Map(((r==null?void 0:r.lootboxes)??[]).map(i=>[i.id,i]));return n.map(i=>i.gameType==="lootbox"&&a.has(i.gameId)?{...i,lootbox:a.get(i.gameId)}:i)}),$c=D.createEffect(async()=>{const e=await pe().http.get(QO),t=Ys(e,"Failed to load the current battle pass");if(!(t!=null&&t.battlePass))throw new Error("Failed to load the current battle pass");return t.battlePass}),AD=D.createEffect(async()=>{const{data:e}=await pe().http.get(tP);return Array.isArray(e==null?void 0:e.battlePasses)?e.battlePasses:[]}),bx=D.createEffect(async()=>{const{data:e}=await pe().http.get(nP);return typeof(e==null?void 0:e.count)=="number"?e.count:0}),wa=D.createEffect(async({currency:e,beastMode:t})=>{var s,r;const n=await pe().http.post(eP,{code:pO,currency:e,beastMode:t});if(Nr(n.status))throw new Error(((s=n.data)==null?void 0:s.message)??"purchase_battlepass_modal.error.description");return((r=n.data)==null?void 0:r.battlePass)??null}),Z4=D.createEffect(async()=>{const{status:e,data:t}=await pe().http.get(sP);return Nr(e)?null:t});D.createEffect(async e=>{const{data:t}=await pe().http.get(aP,{currency:e});return typeof(t==null?void 0:t.cost)=="number"?t.cost:0});const vx=D.createEffect(async e=>{const t=await pe().http.post(rP,{currency:e});Ys(t,"Failed to purchase the save coin")}),h2=D.createEffect(async e=>{var s;let t;const n=new Promise((r,a)=>{t=setTimeout(()=>a(new Error(`GET ${M5} timed out`)),bO)});try{const r=await Promise.race([pe().http.get(M5),n]);if(Nr(r.status))throw new Error(`GET ${M5} answered ${r.status}`);return{userId:e,ids:ZP((s=r.data)==null?void 0:s.ids)}}finally{clearTimeout(t)}}),Ex=D.createEffect(async e=>{const{http:t}=pe();for(let n=0;n<e.length;n+=dm)try{const s=await t.post(hm,{ids:e.slice(n,n+dm)});if(Nr(s.status)){console.warn(`[Rewards] POST ${hm} answered ${s.status}`);return}}catch(s){console.error("[Rewards] Failed to acknowledge notifications",s);return}}),Sx=D.createStore(Pd,{name:"userLevel"}).on(Qi.doneData,(e,t)=>t.userLevel).reset(Ee),Pce=D.createStore(Pd,{name:"nextLevel"}).on(Qi.doneData,(e,t)=>t.nextLevel).reset(Ee);D.createStore(Pd,{name:"currentCashbackLevel"}).on(Qi.doneData,(e,t)=>t.currentLevel).reset(Ee);const Dce=D.createStore(Pd,{name:"nextCashbackLevel"}).on(Qi.doneData,(e,t)=>t.nextCashbackLevel).reset(Ee);Qi.pending;Sx.map(e=>e.cashbackPercents);const TD=D.createStore([],{name:"ranks"}).on(jc.doneData,(e,t)=>t);jc.pending;const Fce=D.createStore(null,{name:"ranksError"}).on(jc.failData,(e,t)=>t instanceof Error?t.message:"Failed to load ranks").reset(jc),Vd=D.createStore([],{name:"availableRewards"}).on(gn.done,(e,{params:{userRewardId:t}})=>e.map(n=>n.applies.some(s=>s.id===t)?{...n,applies:n.applies.map(s=>s.id===t?{...s,claimedAtTimestamp:Date.now()}:s)}:n)).reset(Ee);
2P(Io.pending,B4.pending,(e,t)=>e||t);const _D=D.createStore([],{name:"claimableRewards"}).on(va.doneData,(e,t)=>t).on(gn.done,(e,{params:{userRewardId:t}})=>e.filter(n=>n.userRewardId!==t)).reset(Ee);va.pending;const RD=D.createStore([],{name:"hiddenClaimableRewardIds"}).on(mx,(e,t)=>e.includes(t)?e:[...e,t]).on(xx.doneData,(e,t)=>Ki(e,t)).reset(Ee),ND=P(_D,RD,(e,t)=>e.filter(n=>QP(n,t))),jce=D.createStore([],{name:"claimingUserRewardIds"}).on(gn,(e,{userRewardId:t})=>e.includes(t)?e:[...e,t]).on(gn.finally,(e,{params:t})=>e.filter(n=>n!==t.userRewardId)).reset(Ee);D.createStore(null,{name:"claimError"}).on(gn.failData,(e,t)=>Dd(t,"notification.toast.error.title")).reset(gn,Ee);const $ce=D.createStore([],{name:"missions"}).on(Xi.doneData,(e,t)=>t.filter(n=>PP(n))).on(gn.done,(e,{params:{userRewardId:t}})=>e.map(n=>n.applies.some(s=>s.id===t)?{...n,applies:n.applies.map(s=>s.id===t?{...s,claimedAtTimestamp:Date.now()}:s)}:n)).reset(Ee);Xi.pending;D.createStore(!1,{name:"missionsStale"}).on(mD,()=>!0).reset(ax,Ee);D.createStore([],{name:"checkingConditions"}).reset(Ee);const Lx=D.createStore([],{name:"cashbacks"}).on(Ud.doneData,(e,t)=>t).on(el.doneData,(e,t)=>e.map(n=>n.id===t?{...n,claimable:!1,claimedAtTimestamp:Date.now()}:n)).reset(Ee),kD=Lx.map(e=>e.filter(t=>$P(t))),Bce=Lx.map(e=>e.find(t=>t.type==="daily")??null);Ud.pending;const Uce=el.pending,Wd=D.createStore([],{name:"periodicBonuses"}).on(V4.doneData,(e,t)=>t).on(tl.doneData,(e,t)=>e.map(n=>n.id===t?{...n,claimable:!1,claimedAtTimestamp:Date.now()}:n)).reset(Ee),ID=Wd.map(e=>e.filter(t=>BP(t))),Hce=Wd.map(e=>e.filter(UP));Wd.map(e=>e.find(t=>t.type==="weekly")??null);Wd.map(e=>e.find(t=>t.type==="monthly")??null);const Vce=tl.pending,MD=D.createStore([],{name:"tournamentPrizes"}).on(Hd.doneData,(e,t)=>t).reset(Ee),OD=D.createStore([],{name:"resolvedTournamentPrizeIds"}).on(Fd,(e,{payoutId:t})=>e.includes(t)?e:[...e,t]).reset(Ee),PD=P(MD,OD,(e,t)=>iD(e,t)),Wce=D.createStore([],{name:"claimingTournamentPrizeIds"}).on(ga,(e,t)=>e.includes(t)?e:[...e,t]).on(ga.finally,(e,{params:t})=>e.filter(n=>n!==t)).reset(Ee);ga.pending;Hd.pending;const Zd=D.createStore(null,{name:"rewardsSummary"}).on(pa.doneData,(e,t)=>t).reset(Ee),Zce=D.createStore(!1,{name:"rewardsSummaryLoaded"}).on(pa.finally,()=>!0).reset(Ee),Ax=D.createStore(null,{name:"depositBonusConfig"}).on(e6.doneData,(e,t)=>t).reset(Ee);Zd.map(e=>!!e&&!e.firstDepositBonus.hasFirstDeposit);const DD=P(Zd,Ax,(e,t)=>{const n=e==null?void 0:e.depositBonus;if(n&&!n.eligible)return null;if(n)return{percent:n.percent,minDepositUsd:n.minDepositUsd,isFirstDeposit:n.isFirstDeposit};const s=!(e!=null&&e.firstDepositBonus.hasFirstDeposit);return t?!s&&!t.subsequentEnabled?null:{percent:s?t.firstPercent:t.subsequentPercent,minDepositUsd:t.minDepositUsd,isFirstDeposit:s}:{percent:CO,minDepositUsd:xO,isFirstDeposit:s}});D.createStore([],{name:"claimableFreeBets"}).on(W4.doneData,(e,t)=>t).reset(Ee);const FD=D.createStore(null,{name:"currentBattlePass"}).on($c.doneData,(e,t)=>t),jD=D.createStore(null,{name:"battlePassPriceError"}).on($c.failData,(e,t)=>Dd(t,"purchase_battlepass_modal.error.description")).reset($c),$D=$c.pending;D.createStore([],{name:"boughtBattlePasses"}).on(AD.doneData,(e,t)=>t).reset(Ee);const BD=D.createStore(0,{name:"recentPurchasesCount"}).on(bx.doneData,(e,t)=>t),UD=wa.pending,HD=D.createStore(null,{name:"battlePassPurchaseError"}).on(wa.failData,(e,t)=>Dd(t,"purchase_battlepass_modal.error.description")).reset(wa,ux,Ee),VD=D.createStore(!1,{name:"beastModeExpired"}).on(wa.failData,(e,t)=>Dd(t,"")==="Beast mode offer has expired").reset(wa,ux,Ee),Gce=Ji.pending,zce=D.createStore(null,{name:"rewardCodeError"}).on(Ji.failData,(e,t)=>xP(t)).reset(j4,ix,Ee),qce=D.createStore(!1,{name:"rewardCodeSuccess"}).on(Ji.done,()=>!0).reset(j4,ix,Ee),G4=D.createStore([],{name:"notifications"}).on(Ni,(e,t)=>[...e.filter(n=>n.id!==t.id),t]).on(fx,(e,t)=>e.filter(n=>n.id!==t)).on(Bd.doneData,(e,t)=>e.filter(n=>{var s;return((s=n.payload)==null?void 0:s.entityId)!==t})).on(jd,(e,t)=>e.filter(n=>xr(n)!==t)).on(H4.doneData,(e,t)=>{const n=t.map(r=>xr(r)),s=e.filter(r=>!n.includes(xr(r)??""));return s.length===e.length?e:s}).reset(Ee),Tx=D.createStore([],{name:"tokenPrintNotifications"}).on(H4.doneData,(e,t)=>t).on(jd,(e,t)=>e.filter(n=>xr(n)!==t)).reset(Ee),WD=D.createStore([],{name:"hiddenTokenPrintIds"}).on(px,(e,t)=>e.includes(t)?e:[...e,t]).on(U4.doneData,(e,t)=>Ki(e,t)).reset(Ee),ZD=D.createStore([],{name:"claimedTokenPrintIds"}).on(jd,(e,t)=>e.includes(t)?e:[...e,t]).reset(Ee),_x=P(WD,ZD,(e,t)=>Ki(e,t)),GD=Tx.map(e=>e.map(t=>xr(t)).filter(t=>t!==null)),Rx=P(Tx,_x,(e,t)=>e.filter(n=>!t.includes(xr(n)??""))),Nx=P(G4,GD,_x,(e,t,n)=>e.filter(s=>nD(s,t,n))),z4=D.createStore([],{name:"readNotificationIds"}).reset(Ee),zD={userId:null,status:"idle",ids:[]},Gd=D.createStore(zD,{name:"notificationAcknowledgements"}).on(h2,(e,t)=>({userId:t,status:"pending",ids:[]})).on(h2.done,(e,{params:t,result:n})=>
2e.userId===t?{userId:t,status:"settled",ids:n.ids}:e).on(h2.fail,(e,{params:t})=>e.userId===t?{...e,status:"settled"}:e).reset(Ee),qD=D.createStore([],{name:"deferredUserChannelNotifications"}).on(wx,(e,t)=>[...e,t]).reset(Cx,Ee),YD=D.createStore([],{name:"unsentNotificationAcknowledgementIds"}).on($d,(e,t)=>e.includes(t)?e:[...e,t]).reset(Ex,Ee),Yce=D.createStore(!1,{name:"notificationCenterOpen"}).on(vD,e=>!e).reset(gx,Ee);P(G4,z4,(e,t)=>e.filter(n=>!t.includes(n.id)));const Kce=P(Nx,Rx,(e,t)=>[...e,...t]),KD=P({shown:Nx,readIds:z4,prints:Rx,rewards:ND,cashbacks:kD,bonuses:ID,tournamentPrizes:PD},({shown:e,readIds:t,prints:n,rewards:s,cashbacks:r,bonuses:a,tournamentPrizes:i})=>e.filter(l=>!t.includes(l.id)).length+n.length+s.length+r.length+a.length+i.length);KD.map(e=>e>0);const XD=D.createStore(null,{name:"dailyStreaks"}).on(Z4.doneData,(e,t)=>t).reset(Ee);XD.map(e=>e!=null&&e.streaks.length?Math.max(...e.streaks.map(t=>t.streak)):0);Vd.map(e=>e.filter(t=>L4(t).length>0));const Xce=Vd.map(e=>jP(e));h({clock:dD,target:Io});h({clock:ax,target:Xi});h({clock:fD,target:W4});h({clock:lx,target:$c});h({clock:cx,target:bx});h({clock:ED,target:Z4});const JD=300,x1=(e,t)=>{const n=D.createStore(0).on(t.done,()=>Date.now()).reset(Ee);h({clock:e,source:{pending:t.pending,lastLoadedAt:n},filter:({pending:s,lastLoadedAt:r})=>!s&&Date.now()-r>=JD,target:t})};x1(I4,va);x1(O4,Ud);x1(P4,V4);x1(M4,Qi);x1(F4,Hd);h({clock:ox,source:{summary:Zd,pending:pa.pending},filter:({summary:e,pending:t})=>e===null&&!t,target:pa});h({clock:D4,source:{config:Ax,pending:e6.pending},filter:({config:e,pending:t})=>e===null&&!t,target:e6});h({clock:uD,filter:TD.map(e=>e.length===0),target:jc});h({clock:k4,filter:$t,target:[M4,Io,I4,Xi,O4,P4,F4,pa,W4]});h({clock:k4,filter:$t.map(e=>!e),target:B4});h({clock:k4,target:D4});h({clock:Io.doneData,source:$t,filter:e=>e,fn:(e,t)=>t,target:Vd});h({clock:B4.doneData,source:$t,filter:e=>!e,fn:(e,t)=>t,target:Vd});const QD=(e,t)=>({userRewardId:t,type:e.type,metadata:e.metadata}),eF=Ye(e=>{var l;const{navigation:t,isSelfExcluded:n,getGameHref:s}=pe();if(n()){t.openModal("selfExclusionNotice");return}if(LP(e)){t.getPathname().startsWith(gs.REWARDS)?t.openModal("purchaseBattlepass"):t.navigate(gs.REWARDS);return}if(GC(e))return;const r=L4(e);if(r.length>0){gn(QD(e,r[0].id));return}if(AP(e)){t.openModal("wallet",{tab:"deposit",openReason:"rewards"});return}const a=zC(e);if(!a)return;if(a.type===Jn.ActionKycPassed||a.type===Jn.KYC){t.openModal("settings",{tab:"verification"});return}if(a.type===Jn.ActionEmailVerified||a.type===Jn.EmailVerified){t.openModal("settings",{tab:"account"});return}if(T4(e)){t.navigate(gs.SPORTSBOOK);return}const i=(l=a.metadata)==null?void 0:l.gameCode;if(typeof i=="string"&&i){t.navigate(s(i)??gs.CASINO);return}t.navigate(gs.CASINO)});h({clock:hD,target:eF});h({clock:pD,target:gn});const tF=Ye(({type:e,metadata:t})=>{const{navigation:n,toast:s,translate:r,refreshBalances:a}=pe();if(a(),T4({type:e,metadata:t})){s.success(r("notification.toast.success.title"),r("notification.toast.success.free_bet.body")),n.navigate(gs.SPORTSBOOK);return}if(e===It.FREE_SPINS){n.openModal("rewardClaimedFreeSpins",{gameCode:String(t.game_code??""),..._P({type:e,metadata:t})?{bonusBuy:"true"}:{}});return}if(e===It.CUSTOM||e===It.DELIVERABLE_ITEM){n.openModal("rewardClaimedCustom",{name:String(t.name??"")});return}if(_4({type:e,metadata:t})){s.success(r("notification.toast.success.title"),r("notification.toast.success.free_bet.body")),n.navigate(MP(t));return}if(e===It.ORIGINAL_GAME_FREE_BETS){n.navigate(IP(String(t.gameType??"")));return}if(e===It.DEPOSIT){s.success(r("notification.toast.success.title"),r("notification.toast.success.deposit.body",{currency:String(t.currency??"")}));return}s.success(r("notification.toast.success.title"))});h({clock:gn.doneData,target:tF});h({clock:gn.done,target:[va,Io,pa]});h({clock:gn.done,target:gx});const q4=Ye(({error:e,id:t})=>{const{toast:n,translate:s}=pe();n.error(s("notification.toast.error.title"),s(hP(e),{id:t}))});h({clock:gn.fail,fn:({error:e,params:t})=>({error:e,id:t.userRewardId}),target:q4});h({clock:gD,target:el});h({clock:wD,target:tl});h({clock:CD,target:Bd});const kx=Ye(()=>{const{refreshBalances:e,toast:t,translate:n}=pe();e(),t.success(n("notification.toast.success.title"))});h({clock:[el.done,tl.done,Bd.done],target:[kx,pa]});h({clock:el.done,target:Ud});h({clock:tl.done,target:V4});h({clock:[el.fail,tl.fail,Bd.fail],fn:({error:e,params:t})=>({error:e,id:t}),target:q4});h({clock:xD,target:ga});h({clock:ga.done,target:[kx,pa]});h({clock:ga.doneData,fn:({payoutId:e,status:t})=>({payoutId:e,status:t}),target:Fd});const nF=new Set([tt.EXPIRED,tt.NOT_FOUND]);h({clock:ga.fail,filter:({error:e})=>nF.has(ZC(e)),fn:({params:e})=>({payoutId:e,status:"expired"}),target:Fd});h({clock:ga.fail,fn:({error:e,params:t})=>({error:e,id:t}),target:q4});h({clock:Ni,filter:e=>tx(e),target:Hd});h({clock:yD,target:yx});h({clock:yx.done,target:Xi});h({clock:j4,target:Ji});const sF=Ye(e=>{const{navigation:t,toast:n,translate:s,isTelegram:r}=pe();if(r()&&e.some(a=>a.type===It.DEPOSIT)){t.openModal("rewardsClaimInWeb");return}e.forEach(a=>{var i;if(a.type===It.DEPOSIT&&((i=a.metadata)==null?void 0:i.amount)!==void 0){t.openModal("rewardsClaimDeposit",{amount:String(a.metadata.amount),currency:String(a.metadata.currency??""),rewardId:String(a.userRewardId)});return}n.success(s("notification.toast.success.title"))})});h({clock:Ji.doneData,fn:e=>e.map(t=>({userRewardId:t.userRewardId,type:t.type,metadata:t.metadata??{}})),target:sF});h({clock:Ji.done,target:[va,Io]});h({clock:dx,target:wa});const rF=Ye(()=>{const{navigation:e,refreshProfile:t}=pe();t();const n=e.getQueryParam("isPaywall")==="true";e.openModal("purchaseBattlepassComplete",{isPaywall:n?"true":void 0,redirect:e.getPathname()})});h({clock:wa.done,target:[rF,Io]});const aF=Ye(e=>{const{toast:t,translate:n}=pe(),s=e instanceof Error?e.message:"",r=s==="Cannot change user balance to negative value"?"rewards.buttons.not_enough_funds":s==="Beast mode offer has expired"?"purchase_battlepass_modal.error.beast_mode_expired":"purchase_battlepass_modal.error.description";t.error(n("purchase_battlepass_modal.error.title"),n(r))});h({clock:wa.failData,target:aF});h({clock:SD,target:vx});h({clock:vx.done,target:Z4});h({clock:bD,source:G4,fn:e=>e.map(t=>
2t.id),target:z4});const oF=Ye(e=>{const{storage:t,getUserId:n}=pe(),s=n();s!==null&&N4(t,s,Ki(QC(t,s),[e]))});h({clock:mx,target:oF});h({clock:rx,target:LD});h({clock:va.doneData,target:xx});h({clock:hx,target:[H4,U4]});h({clock:Ni,filter:e=>xr(e)!==null,fn:()=>[],target:U4});const iF=Ye(e=>{const{storage:t,getUserId:n}=pe(),s=n();s!==null&&sx(t,s,Ki(nx(t,s),[e]))});h({clock:px,target:iF});const lF=new Set([Qt.FREESPINS,Qt.CASHBACK,Qt.PERIODIC_BONUS,Qt.CUSTOM,Qt.NOTIFICATION,Qt.AddEmail,Qt.REWARD_UPDATE,Qt.TOURNAMENT_PRIZE_UPDATE]),Ix=()=>HP(pe().storage.get(BC.PRODUCED_NOTIFICATIONS)),cF=e=>{const{storage:t,getUserId:n}=pe();t.set(BC.PRODUCED_NOTIFICATIONS,JSON.stringify(VP(Ix(),e,Date.now(),n())))},dF=(e,t,n)=>{const s=e,r=e.type===Qt.AddEmail?WC:String(s.id??""),a=qP(e,r),{translate:i}=pe();if(!(!r||!KP(s)||n&&YP(s,EO)||WP(Ix(),r,t)||t!==null&&zP(Gd.getState(),a,t))){if(cF(r),t!==null&&$d(a),e.type===Qt.NOTIFICATION){Ni(JC({...s,id:r},i,t));return}Ni({...s,id:r}),e.type===Qt.FREESPINS&&va()}},Mx=(e,t={replayed:!1})=>{if(!e.type||!lF.has(e.type))return!1;if(e.type===Qt.REWARD_UPDATE)return va(),pe().navigation.getPathname().startsWith(gs.EARN)&&Xi(),!0;if(e.type===Qt.TOURNAMENT_PRIZE_UPDATE){const s=cD(e);return s&&Fd(s),!0}if(e.type===Qt.CASHBACK)return!0;const n=pe().getUserId();return n!==null&&!GP(Gd.getState(),n)?(wx({payload:e,replayed:t.replayed}),$4(n),!0):(dF(e,n,t.replayed),!0)};
2y3(Mx);const uF=Ye(e=>{Cx(),e.forEach(({payload:t,replayed:n})=>Mx(t,{replayed:n}))});h({clock:$4,source:Gd,filter:(e,t)=>e.userId!==t||e.status==="idle",fn:(e,t)=>t,target:h2});h({clock:Gd.updates,source:qD,filter:(e,t)=>t.status==="settled"&&e.length>0,fn:e=>e,target:uF});h({clock:fx,filter:e=>e!==WC,target:$d});const t6=Ye(()=>new Promise(e=>setTimeout(e,vO)));h({clock:$d,filter:t6.pending.map(e=>!e),target:t6});h({clock:t6.done,source:YD,filter:e=>e.length>0,target:Ex});const Ox={MULTIPLE_CHOICES:300,LOCKED:423},fF="/wagering/stats",mF="/bonus/level",hF="/user/profile",Px="/user/avatar",pF="/user/self-exclusion",gF="/transactions",wF="/withdraw/cancel",CF="/kyc/request",xF="/2fa/generate",yF="/2fa/confirm-setup",bF="/2fa/email-generate",vF="/2fa/init-disable",EF="/2fa/disable",SF="/2fa/validate/init",LF="/2fa/validate/verify",AF=7,v0=15,TF=["24h","7d","30d"],wm={LEVEL_ONE_PASSED:"LEVEL_ONE_PASSED",LEVEL_TWO_PASSED:"LEVEL_TWO_PASSED"},_F="Invalid old password";let n6=null;const RF=e=>{n6=e},Zt=()=>{if(!n6)throw new Error("@whale-client/dataflow-settings is not configured. Call configureSettingsDataflow() on boot.");return n6},NF=e=>e>=Ox.MULTIPLE_CHOICES,Dx=e=>{if(!e)return"";const t=e.lastIndexOf("@");return t<0?`${e.charAt(0)}***`:`${e.slice(0,t).charAt(0)}***${e.slice(t)}`},Y4=e=>!!e&&new Date(String(e)).getTime()>Date.now(),kF=(e,t,n)=>{const s=(n||0)-(t||0),a=Math.max((e||0)-(t||0),0)/s*100;return Number.isFinite(a)?a>100?100:a:0},Fx=e=>e.type==="withdrawal"&&e.status==="pending",IF=(e,t)=>t&&Fx(e)&&e.id!==null,Cm=6,xm=4,ym="...",MF=e=>e.length<=Cm+xm+ym.length?e:`${e.slice(0,Cm)}${ym}${e.slice(-xm)}`,OF=e=>!!(e.transactionHash&&e.transactionHash!=="N/A"&&e.transactionHash.length>10&&e.network&&["withdrawal","deposit"].includes(e.type)&&["completed","pending"].includes(e.status)),PF=e=>{if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":`${t.getUTCMonth()+1}/${t.getUTCDate()}/${t.getUTCFullYear()}`},jl=e=>{const t=e==null||e===""?0:parseFloat(`${e}`);return new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number.isNaN(t)?0:t)},Pt=(e,t)=>e instanceof Error&&e.message?e.message:t,F=Je("settings"),jx=F.createEvent("settingsModalOpened"),K4=F.createEvent("settingsUserSynced"),X4=F.createEvent("twoFaAppStatusChanged"),J4=F.createEvent("twoFaEmailStatusChanged"),ra=F.createEvent("profileRefreshRequested"),$x=F.createEvent("profileStatsRequested"),Q4=F.createEvent("usernameSubmitted"),e7=F.createEvent("avatarUploadRequested"),t7=F.createEvent("avatarRemoveRequested"),Bx=F.createEvent("avatarErrorCleared"),s6=F.createEvent("transactionsRequested"),Ea=F.createEvent("transactionsReset"),Ux=F.createEvent("withdrawalCancelRequested"),Hx=F.createEvent("selfExclusionPeriodSelected"),Vx=F.createEvent("selfExclusionRequested"),n7=F.createEvent("selfExclusionExpired"),DF=F.createEvent("selfExclusionErrorCleared"),r6=F.createEvent("kycUrlRequested"),s7=F.createEvent("kycUrlCleared"),zd=F.createEvent("kycFrameDismissed"),Ca=F.createEvent("twoFaFlowReset"),y1=F.createEvent("twoFaProviderSet"),Wx=F.createEvent("twoFaSecureEmailSet"),mo=F.createEvent("accountFlowReset"),vo=F.createEvent("accountStateSet"),Eo=F.createEvent("accountErrorSet"),Bc=F.createEvent("accountContextPatched"),FF=F.createEvent("accountAddEmailSubmitted"),Zx=F.createEvent("accountChangeEmailOpened"),jF=F.createEvent("accountNewEmailSubmitted"),$F=F.createEvent("accountTwoFaCodeSubmitted"),BF=F.createEvent("accountVerifyCodeSubmitted"),Gx=F.createEvent("accountCodeResendRequested"),a6=F.createEvent("accountSuccessAcknowledged"),zx=F.createEvent("accountBackRequested"),wi=F.createEvent("securityFlowReset"),Lt=F.createEvent("securityStateSet"),_n=F.createEvent("securityErrorSet"),Uc=F.createEvent("securityContextPatched"),r7=F.createEvent("securityBackRequested"),bm=F.createEvent("securityLandingRequested"),qx=F.createEvent("twoFaEnableClicked"),Yx=F.createEvent("twoFaMethodChosen"),Kx=F.createEvent("twoFaAppSetupAcknowledged"),UF=F.createEvent("twoFaEmailSubmitted"),HF=F.createEvent("twoFaSetupCodeSubmitted"),Xx=F.createEvent("twoFaSetupSuccessAcknowledged"),Jx=F.createEvent("twoFaAddMethodRequested"),o6=F.createEvent("twoFaDeleteRequested"),VF=F.createEvent("twoFaDeleteCodeSubmitted"),Qx=F.createEvent("passwordActionRequested"),WF=F.createEvent("passwordChangeSubmitted"),ZF=F.createEvent("passwordAddSubmitted"),GF=F.createEvent("passwordTwoFaCodeSubmitted"),zF=F.createEvent("passwordVerifyCodeSubmitted"),ey=F.createEvent("passwordCodeResendRequested"),ty=F.createEvent("passwordSuccessAcknowledged"),rn=(e,t)=>{var n;if(NF(e.status))throw new Error(((n=e.data)==null?void 0:n.message)??t);return e.data}
2,ny=F.createEffect(async()=>{const e=await Zt().http.get(fF);return rn(e,"Failed to load wagering stats")}),sy=F.createEffect(async()=>{const e=await Zt().http.get(mF);return rn(e,"Failed to load level stats")}),i6=F.createEffect(async()=>{const{trackEvent:e}=Zt();await Promise.all([ny().catch(t=>{e("Error",{type:"Wagering Stats",error:t})}),sy().catch(t=>{e("Error",{type:"Level Stats",error:t})})])}),Hc=F.createEffect(async e=>{const t=await Zt().http.put(hF,{username:e});return rn(t,"Failed to update the username")}),Vc=F.createEffect(async e=>{const t=await Zt().http.post(Px,{image:e});if(t.status===Ox.LOCKED)throw new Error("avatar_upload_not_allowed");return rn(t,"Failed to upload the avatar")}),Wc=F.createEffect(async()=>{const e=await Zt().http.delete(Px);return rn(e,"Failed to remove the avatar")}),So=F.createEffect(async e=>{const t=await Zt().http.get(gF,{offset:e,limit:AF});return rn(t,"Failed to load transactions")}),ki=F.createEffect(async e=>{const t=await Zt().http.post(wF,{withdrawalId:e});return rn(t,"Failed to cancel the withdrawal"),e}),Ii=F.createEffect(async e=>{const t=await Zt().http.post(pF,{period:e});return rn(t,"Failed to activate self-exclusion")}),Zc=F.createEffect(async()=>{const e=await Zt().http.get(CF);return rn(e,"Failed to open the KYC form").url}),H2=F.createEffect(async()=>{const e=await Zt().http.put(xF);return rn(e,"Failed to generate the 2FA secret")}),V2=F.createEffect(async e=>{const t=await Zt().http.post(yF,e);rn(t,"Failed to confirm the 2FA setup")}),W2=F.createEffect(async e=>{const t=await Zt().http.post(bF,{email:e});return rn(t,"Failed to send the 2FA email code").oneTime2FAToken}),Gc=F.createEffect(async e=>{const t=await Zt().http.post(vF,{method:e});return rn(t,"Failed to start disabling 2FA").oneTime2FAToken}),Z2=F.createEffect(async e=>{const t=await Zt().http.post(EF,e);rn(t,"Failed to disable 2FA")}),Mi=F.createEffect(async e=>{const t=await Zt().http.post(SF,e);return rn(t,"Failed to initiate verification").oneTime2FAToken}),Oi=F.createEffect(async e=>{const t=await Zt().http.post(LF,e);return rn(t,"Failed to verify action").validatedActionToken}),rs=F.createStore(null,{name:"settingsUser"}).on(K4,(e,t)=>t).on(X4,(e,t)=>e&&{...e,appAuthenticatorStatus:t}).on(J4,(e,{status:t,secureEmail:n})=>e&&{...e,twoFAEmailStatus:t,secondEmailSecure:n??e.secondEmailSecure}),qd=rs.map(e=>(e==null?void 0:e.appAuthenticatorStatus)==="ENABLED"||(e==null?void 0:e.twoFAEmailStatus)==="ENABLED"),qF=rs.map(e=>(e==null?void 0:e.appAuthenticatorStatus)==="ENABLED"),YF=rs.map(e=>(e==null?void 0:e.twoFAEmailStatus)==="ENABLED"),ry=rs.map(e=>(e==null?void 0:e.appAuthenticatorStatus)==="ENABLED"?"APP":"EMAIL"),Pi=rs.map(e=>e!=null&&e.canChangePassword?"change":"add"),KF=rs.map(e=>!!(e!=null&&e.verifiedEmail)),XF=rs.map(e=>(e==null?void 0:e.canCancelWithdrawal)??!1),JF=rs.map(e=>({needsVerification:(e==null?void 0:e.needsVerification)??!1,isLevelOneVerified:(e==null?void 0:e.kycStatus)===wm.LEVEL_ONE_PASSED,isLevelTwoVerified:(e==null?void 0:e.kycStatus)===wm.LEVEL_TWO_PASSED})),QF=F.createStore(null,{name:"wageringStats"}).on(ny.doneData,(e,t)=>t),ej=F.createStore(null,{name:"levelStats"}).on(sy.doneData,(e,t)=>t),tj=i6.pending;Hc.pending;const nj=F.createStore(null,{name:"usernameError"}).on(Hc.failData,(e,t)=>Pt(t,"Failed to update the username")).reset(Q4,Hc.done),sj=F.createStore(!1,{name:"avatarBusy"}).on([Vc,Wc],()=>!0).on([Vc.finally,Wc.finally],()=>!1),rj=F.createStore(null,{name:"avatarError"}).on(Vc.failData,(e,t)=>Pt(t,"avatar_upload_failed")).on(Wc.failData,(e,t)=>Pt(t,"avatar_remove_failed")).reset(Bx,e7,t7),aj=F.createStore([],{name:"transactions"}).on(So.doneData,(e,t)=>[...e,...t.data]).on(ki.doneData,(e,t)=>e.map(n=>n.id===t?{...n,status:"cancelled"}:n)).reset(Ea),ay=F.createStore(0,{name:"transactionsTotal"}).on(So.doneData,(e,t)=>t.count).reset(Ea),oy=F.createStore(0,{name:"transactionsOffset"}).on(So.doneData,(e,t)=>e+t.data.length).reset(Ea),oj=So.pending,ij=F.createStore(!1,{name:"transactionsLoaded"}).on(So.done,()=>!0).reset(Ea),iy=F.createStore([],{name:"cancellingWithdrawalIds"}).on(ki,(e,t)=>e.includes(t)?e:[...e,t]).on(ki.finally,(e,{params:t})=>e.filter(n=>n!==t)).reset(Ea),lj=F.createStore(null,{name:"withdrawalCancelError"}).on(ki.failData,(e,t)=>Pt(t,"Failed to cancel the withdrawal")).reset(Ea,ki),ly=F.createStore("24h",{name:"selfExclusionPeriod"}).on(Hx,(e,t)=>t),cy=F.createStore(null,{name:"selfExclusionUntil"}).on(K4,(e,t)=>(t==null?void 0:t.selfExclusionUntil)??null).on(Ii.doneData,(e,{selfExclusionUntil:t})=>t).on(n7,()=>null),cj=cy.map(Y4),dj=Ii.pending,uj=F.createStore(null,{name:"selfExclusionError"}).on(Ii.failData,(e,t)=>Pt(t,"self_exclusion_failed")).reset(DF,Ii),fj=F.createStore(null,{name:"kycUrl"}).on(Zc.doneData,(e,t)=>t).reset(s7,zd);Zc.pending;const mj=F.createStore(null,{name:"kycError"}).on(Zc.failData,(e,t)=>Pt(t,"kyc_request_failed")).reset(s7,zd,Zc),dy=F.createStore(null,{name:"twoFaAppSecret"}).on(H2.doneData,(e,t)=>t).on(Gc.doneData,(e,t)=>e?{...e,oneTime2FAToken:t}:{clientSecret:"",uri:"",oneTime2FAToken:t}).on([V2.done,Z2.done],()=>null).reset(Ca),hj=F.createStore(null,{name:"twoFaEmailOneTimeToken"}).on([W2.doneData,Gc.doneData],(e,t)=>t).reset(Ca),uy=F.createStore(null,{name:"twoFaValidateToken"}).on(Mi.doneData,(e,t)=>t).on(Mi.failData,()=>null).reset(Ca),fy=F.createStore(null,{name:"twoFaValidatedActionToken"}).on(Oi.doneData,(e,t)=>t).on(Oi.failData,()=>null).reset(Ca),Yd=F.createStore("APP",{name:"twoFaProvider"}).on(y1,(e,t)=>t).reset(Ca),pj=F.createStore("",{name:"twoFaSecureEmail"}).on(Wx,(e,t)=>t).reset(Ca);F.createStore(!1,{name:"twoFaLoading"}).on([H2,V2,W2,Gc,Z2,Mi,Oi],()=>!0).on([H2.finally,V2.finally,W2.finally,Gc.finally,Z2.finally,Mi.finally,Oi.finally],()=>!1);const my=F.createStore("BASE",{name:"accountState"}).on(vo,(e,t)=>t).reset(mo),a7=F.createStore({},{name:"accountContext"}).on(Bc,(e,t)=>({...e,...t})).reset(mo),o7=F.createStore(null,{name:"accountError"}).on(Eo,(e,t)=>t).reset(mo,vo),G2=F.createStore("DISABLED",{name:"securityState"}).on(Lt,(e,t)=>t),i7=F.createStore({},{name:"securityContext"}).on(Uc,(e,t)=>({...e,...t})).reset(wi),Kd=F.createStore(null,{name:"securityError"}).on(_n,(e,t)=>t).reset(wi,Lt),p2=()=>qd.getState()?"ENABLED":"DISABLED",vm=e=>e==="ENABLED"||e==="DISABLED",hy=()=>{var e;return Yd.getState()==="EMAIL"?hj.getState():((e=dy.getState())==null?void 0:e.oneTime2FAToken)??null},l7=async(e,t,n)=>{const{hash:s}=t?await QA({email:e,validatedActionToken:n}):await eT({email:e,validatedActionToken:n});return s},py=async(e,t)=>{Bc({email:e,secureEmail:Dx(e),fromState:t?"CHANGE_EMAIL":"BASE"});try{if(qd.getState()){const s=ry.getState();return y1(s),await Mi({method:s,action:t?"change_email":"verify_email"}),vo("CONFIRMING_2FA"),!0}const n=await l7(e,t);return Bc({verificationHash:n}),vo("VERIFY_EMAIL"),!0}catch(n){return Eo(Pt(n,"errors.generic")),!1}}
2,gy=F.createEffect(e=>py(e,!1)),wy=F.createEffect(e=>py(e,!0)),Cy=F.createEffect(async e=>{var n;const t=uy.getState();if(!t)return Eo("errors.verification_failed"),!1;try{const s=await Oi({code:e,oneTime2FAToken:t}),r=a7.getState(),a=r.fromState==="CHANGE_EMAIL",i=r.email||((n=rs.getState())==null?void 0:n.keepInTouchEmail)||"",l=await l7(i,a,s);return Bc({verificationHash:l}),vo("VERIFY_EMAIL"),!0}catch(s){return Eo(Pt(s,"errors.verification_failed")),!1}}),xy=F.createEffect(async e=>{const t=a7.getState(),n=t.verificationHash;if(!n)return Eo("errors.verification_failed"),!1;try{return t.fromState==="CHANGE_EMAIL"?await YA({hash:n,code:e}):await KA({hash:n,code:e}),vo("VERIFY_SUCCESS"),!0}catch(s){return Eo(Pt(s,"errors.verification_failed")),!1}}),gj=F.createEffect(async()=>{const e=a7.getState();if(!e.email)return;const t=fy.getState()??void 0;try{const n=await l7(e.email,e.fromState==="CHANGE_EMAIL",t);Bc({verificationHash:n})}catch(n){Eo(Pt(n,"errors.generic"))}}),Em=F.createEffect(async e=>{if(y1(e),e==="EMAIL")return Lt("PENDING_EMAIL"),!0;try{return await H2(),Lt("PENDING_APP"),!0}catch(t){return _n(Pt(t,"errors.generic")),!1}}),yy=F.createEffect(async e=>{try{return await W2(e),Wx(Dx(e)),Lt("CONFIRMING"),!0}catch(t){return _n(Pt(t,"settings.2fa.can_not_use_primary_email")),!1}}),by=F.createEffect(async e=>{const t=hy();if(!t)return _n("errors.verification_failed"),!1;try{return await V2({code:e,oneTime2FAToken:t}),Yd.getState()==="EMAIL"?J4({status:"ENABLED",secureEmail:pj.getState()}):X4("ENABLED"),Lt("SUCCESS"),ra(),!0}catch(n){return _n(Pt(n,"errors.verification_failed")),!1}}),wj=F.createEffect(async e=>{y1(e);try{return await Gc(e),Lt("DELETING"),!0}catch(t){return _n(Pt(t,"errors.generic")),!1}}),l6=F.createEffect(async e=>{const t=hy();if(!t)return _n("errors.verification_failed"),!1;try{return await Z2({code:e,oneTime2FAToken:t}),Yd.getState()==="EMAIL"?J4({status:"DISABLED"}):X4("DISABLED"),Lt(p2()),ra(),!0}catch(n){return _n(Pt(n,"errors.verification_failed")),!1}}),vy=async(e,t)=>{const n=Pi.getState();try{if(qd.getState()){const r=ry.getState();return y1(r),await Mi({method:r,action:n==="change"?"change_password":"add_password"}),Uc({pendingPasswordChange:{currentPassword:e,newPassword:t}}),Lt("CONFIRMING_2FA"),!0}const{hash:s}
2=n==="change"?await o4({oldPassword:e,newPassword:t}):await i4({newPassword:t});return Uc({pendingPasswordChange:{currentPassword:e,newPassword:t},passwordHash:s,fromState:n==="change"?"CHANGE_PASSWORD":"ADD_PASSWORD"}),Lt("VERIFY_PASSWORD_EMAIL"),!0}catch(s){return _n(Pt(s,"errors.generic")),!1}},Ey=F.createEffect(({currentPassword:e,newPassword:t})=>vy(e,t)),Sy=F.createEffect(e=>vy("",e)),Ly=F.createEffect(async e=>{const t=i7.getState().pendingPasswordChange,n=uy.getState();if(!t||!n)return _n("errors.verification_failed"),!1;const s=Pi.getState();try{const r=await Oi({code:e,oneTime2FAToken:n}),{hash:a}=s==="change"?await o4({oldPassword:t.currentPassword||"",newPassword:t.newPassword,validatedActionToken:r}):await i4({newPassword:t.newPassword,validatedActionToken:r});return Uc({passwordHash:a,fromState:s==="change"?"CHANGE_PASSWORD":"ADD_PASSWORD"}),Lt("VERIFY_PASSWORD_EMAIL"),!0}catch(r){return _n(Pt(r,"errors.verification_failed")),!1}}),Ay=F.createEffect(async e=>{const t=i7.getState(),n=t.passwordHash;if(!n)return _n("errors.verification_failed"),!1;try{return t.fromState==="ADD_PASSWORD"?await XA({hash:n,code:e}):await JA({hash:n,code:e}),Lt("PASSWORD_SUCCESS"),!0}catch(s){return _n(Pt(s,"errors.verification_failed")),!1}}),Cj=F.createEffect(async()=>{const e=i7.getState(),t=e.pendingPasswordChange;if(!t)return;const n=fy.getState()??void 0;try{const{hash:s}=e.fromState==="ADD_PASSWORD"?await i4({newPassword:t.newPassword,validatedActionToken:n}):await o4({oldPassword:t.currentPassword||"",newPassword:t.newPassword,validatedActionToken:n});Uc({passwordHash:s})}catch(s){_n(Pt(s,"errors.generic"))}});let Sm=!1;const xj=()=>{Sm||(Sm=!0,h({clock:jx,target:[mo,wi,Ea]}),h({clock:mo,target:Ca}),h({clock:wi,fn:p2,target:Lt}),h({clock:bm,fn:p2,target:Lt}),h({clock:Lt,filter:vm,target:Ca}),h({clock:qd.updates,source:G2,filter:e=>vm(e),fn:(e,t)=>t?"ENABLED":"DISABLED",target:Lt}),h({clock:$x,source:i6.pending,filter:e=>!e,target:i6}),h({clock:Q4,target:Hc}),h({clock:e7,target:Vc}),h({clock:t7,target:Wc}),h({clock:[Hc.done,Vc.done,Wc.done],target:ra}),h({clock:s6,source:{offset:oy,total:ay,loaded:ij,isLoading:So.pending},filter:({offset:e,total:t,loaded:n,isLoading:s})=>!s&&(!n||e<t),fn:({offset:e})=>e,target:So}),h({clock:Ux,source:iy,filter:(e,t)=>Fx(t)&&t.id!==null&&!e.includes(t.id),fn:(e,t)=>Number(t.id),target:ki}),h({clock:Vx,source:ly,target:Ii}),h({clock:Ii.done,target:ra}),h({clock:r6,target:Zc}),h({clock:zd,target:ra}),h({clock:FF,target:gy}),h({clock:jF,target:wy}),h({clock:$F,target:Cy}),h({clock:BF,target:xy}),h({clock:Gx,target:gj}),h({clock:Zx,fn:()=>"CHANGE_EMAIL",target:vo}),h({clock:[zx,a6],target:mo}),h({clock:a6,target:ra}),h({clock:qx,fn:()=>"CHOOSE_METHOD",target:Lt}),h({clock:Yx,target:Em}),h({clock:Jx,source:rs,filter:e=>(e==null?void 0:e.appAuthenticatorStatus)!=="ENABLED"||(e==null?void 0:e.twoFAEmailStatus)!=="ENABLED",fn:e=>(e==null?void 0:e.appAuthenticatorStatus)==="ENABLED"?"EMAIL":"APP",target:Em}),h({clock:Kx,fn:()=>"CONFIRMING",target:Lt}),h({clock:UF,target:yy}),h({clock:HF,target:by}),h({clock:Xx,target:bm}),h({clock:o6,target:wj}),h({clock:VF,target:l6}),h({clock:Qx,source:Pi,fn:e=>e==="change"?"CHANGE_PASSWORD":"ADD_PASSWORD",target:Lt}),h({clock:WF,target:Ey}),h({clock:ZF,target:Sy}),h({clock:GF,target:Ly}),h({clock:zF,target:Ay}),h({clock:ey,target:Cj}),h({clock:ty,target:[wi,ra]}),h({clock:r7,source:{state:G2,provider:Yd,mode:Pi},fn:({state:e,provider:t,mode:n})=>{switch(e){case"PENDING_APP":case"PENDING_EMAIL":return"CHOOSE_METHOD";case"CONFIRMING":return t==="EMAIL"?"PENDING_EMAIL":"PENDING_APP";case"CONFIRMING_2FA":return n==="change"?"CHANGE_PASSWORD":"ADD_PASSWORD";case"DELETING":return"ENABLED";default:return p2()}},target:Lt}))},rt=Je("telegram"),yj=rt.createEvent("telegramRouteChanged"),c7=rt.createEvent("telegramWebAppReady"),Ty=rt.createEvent("telegramBackButtonClicked"),_y=rt.createEvent("telegramBackButtonVisibilityChanged"),bj=rt.createEvent("telegramBackButtonVisibilityRecheckRequested"),Ry=rt.createEvent("telegramWidgetAuthReceived"),d7=rt.createEvent("telegramSessionAuthenticated"),Xd=rt.createEvent("telegramTwoFactorRequired"),u7=rt.createEvent("telegramSsoRedirectRequested"),nl=rt.createEvent("telegramStateReset"),Ny=rt.createEvent("telegramAuthFailed"),vj=rt.createEvent("telegramAuthRetryRequested");var c6=(e=>(e.TELEGRAM_DESKTOP="tdesktop",e.MACOS="macos",e))(c6||{});const Ej="https://telegram.org/js/telegram-web-app.js",Sj="https://telegram.org/js/telegram-widget.js?22",Lj="/auth-sync/tgapp-sync",Aj="/auth-sync/tg-sync",d6="tg_user",Tj="external_id",_j=1/96,Rj=8,Nj={MULTIPLE_CHOICES:300},u6=200,Lm="modal",kj="redirectTo";let f6=null;const Ij=e=>{f6=e},Sa=()=>
2{if(!f6)throw new Error("@whale-client/dataflow-telegram is not configured. Call configureTelegramDataflow() on app boot.");return f6},ky=e=>e>=Nj.MULTIPLE_CHOICES,Iy=e=>e==="/"||e==="/home"||/^\/[a-z]{2}(\/home)?\/?$/.test(e),Mj=e=>e.replace(/^\/[a-z]{2}(\/|$)/,"/"),Oj=e=>{const t=Mj(e);return/^\/casino\/[^/]+\/[^/]+\/?$/.test(t)||/^\/tribesog\/[^/]+\/?$/.test(t)},Pj=e=>Iy(e)?"close":Oj(e)?"casino":"history",Dj=(e,t)=>t?"drawer":Pj(e),My=e=>e===c6.TELEGRAM_DESKTOP||e===c6.MACOS,Fj=e=>!My(e),jj=e=>{try{const t=new URL(e);return t.searchParams.has(Lm)?(t.searchParams.delete(Lm),t.toString()):null}catch{return null}},$j=e=>({platform:(e==null?void 0:e.platform)??null,telegramVersion:(e==null?void 0:e.version)??null}),Bj=e=>e instanceof Error?{errorName:e.name,errorMessage:e.message.slice(0,u6)}:{errorName:"UnknownError",errorMessage:String(e).slice(0,u6)},Uj=e=>{if(!e||typeof e!="object")return null;const{message:t}=e;return typeof t=="string"?t.slice(0,u6):null},Am=rt.createStore(!1,{name:"telegramWebAppReady"}).on(c7,()=>!0).reset(nl),Hj=rt.createStore(null,{name:"telegramPlatform"}).on(c7,(e,t)=>t).reset(nl),Jce=Hj.map(e=>My(e));rt.createStore(!1,{name:"telegramBackButtonShown"}).on(_y,(e,t)=>t).reset(nl);rt.createStore(null,{name:"telegramTwoFactorToken"}).on(Xd,(e,t)=>t).reset(nl);rt.createStore(null,{name:"telegramSsoRedirectUrl"}).on(u7,(e,t)=>t).reset(nl);const Qce=rt.createStore(null,{name:"telegramAuthFailure"}).on(Ny,(e,t)=>t).reset(d7,Xd,nl),Ci={authenticated:!1,twoFAEnabled:!1},g2=rt.createEffect(e=>{var a;const t=Sa(),n=t.getWebApp(),s=((a=t.isDrawerOpen)==null?void 0:a.call(t))??!1,r=Iy(e)&&!s;return n&&(r?n.BackButton.hide():n.BackButton.show()),!r}),Vj=rt.createEffect(async()=>{var n,s,r,a;const e=Sa();if(!e.isTelegramDevice())return!1;const t=await e.loadWebApp();if(!t)throw new Error("Telegram WebApp bridge is missing after loading telegram-web-app.js");return t.ready(),t.enableClosingConfirmation(),t.expand(),(n=t.disableVerticalSwipes)==null||n.call(t),c7(t.platform??null),await g2(e.getPathname()),Fj(t.platform)&&((s=t.disableVerticalSwipes)==null||s.call(t),(r=t.requestFullscreen)==null||r.call(t)),t.isVersionAtLeast(Rj)?((a=t.lockOrientation)==null||a.call(t),t.onEvent("fullscreenFailed",()=>e.trackEvent("Fullscreen failed")),t.onEvent("fullscreenChanged",()=>e.trackEvent("Fullscreen changed"))):e.trackEvent("Feature not supported",{featureName:"Telegram WebApp v8.0"}),t.onEvent("backButtonClicked",()=>Ty()),!0}),Wj=rt.createEffect(()=>{var n,s,r;const e=Sa(),t=Dj(e.getPathname(),((n=e.isDrawerOpen)==null?void 0:n.call(e))??!1);if(t==="drawer"){(s=e.closeDrawer)==null||s.call(e);return}if(t==="close"){(r=e.getWebApp())==null||r.close();return}if(t==="casino"){e.navigateToCasino();return}e.goBack()}),Zj=rt.createEffect(async()=>{var i,l;const e=Sa(),t=e.getWebApp(),n=((i=t==null?void 0:t.initDataUnsafe)==null?void 0:i.start_param)||(t==null?void 0:t.startParam)||null,s=t==null?void 0:t.initData,r=$j(t);if(!s)return console.error("authentication_failed"),e.trackEvent("Telegram auth failed",{reason:"missing_init_data",stage:"launch",...r}),{...Ci,failure:"missing_init_data"};let a;try{a=await e.http.post(Lj,{data:s,botId:e.getBotId(),startParam:n,...e.getTrackingData()})}catch(c){return console.error("authentication_failed",c),e.trackEvent("Telegram auth failed",{reason:"request_failed",stage:"transport",...Bj(c),...r}),{...Ci,failure:"request_failed"}}return ky(a.status)?(console.error("authentication_failed",a),e.trackEvent("Telegram auth failed",{reason:"request_failed",status:a.status,stage:"response",serverMessage:Uj(a.data),...r}),{...Ci,failure:"request_failed",status:a.status}):(e.clearSignUpSourceData(),(l=a.data)!=null&&l.oneTime2FAToken?{authenticated:!1,twoFAEnabled:!0,oneTime2FAToken:a.data.oneTime2FAToken}:{authenticated:!0,twoFAEnabled:!1})}),Gj=rt.createEffect(async()=>{var l;const e=Sa(),t=e.cookies.get(d6);if(!t)return console.error("authentication_failed"),Ci;let n;try{n=JSON.parse(t)}catch(c){return console.error("authentication_failed",c),Ci}e.cookies.remove(d6);const s=e.getAdFormUid(),r={...n,...e.getSignUpSource()??{},...s?{adFormUid:s}:{},...e.getTrackingData(),...e.getUtmParams(),botId:e.getBotId(),externalId:e.cookies.get(Tj)},a=await e.http.post(Aj,r);if(ky(a.status))return console.error("authentication_failed",a),Ci;e.clearSignUpSourceData();const i=e.getSearchParam(kj);return i&&u7(i),(l=a.data)!=null&&l.oneTime2FAToken?{authenticated:!1,twoFAEnabled:!0,oneTime2FAToken:a.data.oneTime2FAToken}:(i&&e.hardNavigate(i),{authenticated:!0,twoFAEnabled:!1})}
2),Oy=rt.createEffect(async()=>{const t=Sa().isTelegramDevice()?await Zj():await Gj();return t.authenticated&&d7(),t.twoFAEnabled&&t.oneTime2FAToken&&Xd(t.oneTime2FAToken),t}),zj=rt.createEffect(e=>{const t=Sa();t.cookies.set(d6,JSON.stringify(e),{expiresInDays:_j,path:"/",sameSite:"Lax"});const n=jj(t.getHref());if(n){t.hardNavigate(n);return}t.reload()});let Tm=!1;const qj=()=>{Tm||(Tm=!0,h({clock:yj,source:Am,filter:e=>e,fn:(e,t)=>t,target:g2}),h({clock:bj,source:Am,filter:e=>e,fn:()=>Sa().getPathname(),target:g2}),h({clock:g2.doneData,target:_y}),h({clock:Ty,target:Wj}),h({clock:Ry,target:zj}))},Py=1e9,Yj=1e4,Kj=200,z2=24*60*60*1e3,w2=60*1e3,e1e=w2,t1e="https://mintwhale.io/",n1e=[{id:"coinmarketcap",url:"https://coinmarketcap.com/currencies/whale-token/"},{id:"bitcoincom",url:"https://news.bitcoin.com/5-million-players-are-collecting-whale-token-before-the-launch/"},{id:"investingcom",url:"https://www.investing.com/news/cryptocurrency-news/whaleio-accelerates-into-battlepass-season-2-with-double-lamborghinis-and-epic-rewards-3994880"},{id:"reuters",url:"https://www.reuters.com/press-releases/whale-casino-unveils-transformative-multiplayer-game-tribes-2025-01-27/"},{id:"binance",url:"https://www.binance.com/en/square/post/19034820062394"}],s1e=[{videoId:"c15lNEM6gHU",key:"byuback"},{videoId:"-wG9t8b1lRI",key:"gameplay"},{videoId:"eZzv1aki7tg",key:"stacking"}],r1e=10,a1e=e=>`https://www.youtube.com/embed/${e}?theme=dark&autohide=2`,Dy={OK:200,MULTIPLE_CHOICES:300},f7="/locked-tokens",Xj="/locked-tokens/rules",Jj="/token-dashboard/general-stats",Qj="/token-dashboard/live-transactions";let m6=null;const e$=e=>{m6=e},Ts=()=>
2{if(!m6)throw new Error("@whale-client/dataflow-token is not configured. Call configureTokenDataflow() on app boot.");return m6},sl=e=>e>=Dy.MULTIPLE_CHOICES,Fy=(e,t)=>e instanceof Error&&e.message?e.message:t,jy=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(typeof e!="string"||e.trim()==="")return 0;const t=Number(e);return Number.isFinite(t)?t:0},q2=e=>jy(e)/Py,_m=9,t$=e=>{if(!Number.isFinite(e)||e<=0)return 0;const t=e.toString();if(t.includes("e")||t.includes("E"))return Math.floor(e*Py);const[n,s=""]=t.split("."),r=s.padEnd(_m,"0").slice(0,_m);return+`${n}${r}`},n$=e=>[...e].sort((t,n)=>t.multiplier-n.multiplier),s$=e=>n$(e.filter(t=>t.active)),h6=(e,t)=>e.find(n=>n.multiplier===t),$y=e=>{const t=e!=null&&e.minLockAmount?Math.ceil(q2(e.minLockAmount)):0;return Math.max(Yj,t)},By=e=>Math.max(1,Math.floor(Math.max(0,e)/Kj)),o1e=e=>e>0?Math.floor((e-1)/2):0,r$=(e,t,n)=>{if(n<t)return e;if(e>=n)return n;if(e<=t)return t;const s=By(n);return Math.min(n,t+Math.floor((e-t)/s)*s)},a$=(e,t)=>{if(t<=e)return Math.max(1,t);const n=By(t);return e+Math.ceil((t-e)/n)*n},i1e=(e,t,n)=>n>=t&&e>=n?a$(t,n):e,l1e=(e,t)=>{const n=$y(t);return r$(Math.max(n,Math.floor(Math.max(0,e)/2)),n,e)},c1e=(e,t)=>Math.floor(Math.max(0,e)*((t==null?void 0:t.multiplier)??0)),o$=({isLoggedIn:e,isSelfExcluded:t,ruleCount:n})=>e&&!t&&n>0,d1e=({amountTokens:e,maxTokens:t,rule:n,rules:s,isLoggedIn:r,isSelfExcluded:a})=>{if(!o$({isLoggedIn:r,isSelfExcluded:a,ruleCount:s.length})||!n)return!1;const i=$y(n);return t>=i&&e>=i&&e<=t},p6=2,u1e=(e,t=p6)=>{const n={minimumFractionDigits:0,maximumFractionDigits:t};if(!Number.isFinite(e))return new Intl.NumberFormat("en-US",n).format(0);const s=10**t,r=Number((e*s).toPrecision(15));return new Intl.NumberFormat("en-US",n).format(Math.floor(r)/s+0)},f1e=e=>new Intl.NumberFormat("en-US",{minimumFractionDigits:p6,maximumFractionDigits:p6}).format(Number.isFinite(e)?e:0),i$=e=>!Number.isFinite(e)||e<0?0:e>1?1:e,l$=e=>{const t=Math.max(0,e),n=Math.floor(t/z2),s=Math.floor(t%z2/(60*w2)),r=Math.floor(t%(60*w2)/w2);return`${n}d ${s}h ${r}m`},m1e=(e,t=Date.now())=>{const n=new Date(e.unlockTimeUTC).getTime(),s=Math.max(1,e.lockingPeriodInDays*z2),r=n-s,a=i$((t-r)/s),i=q2(e.initiallyLockedAmount),l=q2(e.finalAmount),c=l-i,d=c*a;return{walletId:e.walletId,multiplier:e.multiplier,progress:a,isClaimable:t>=n,createdAtMs:r,releaseAtMs:n,lockedWhale:i,rewardWhale:c,earnedWhale:d,currentWhale:i+d,finalWhale:l,apyPercent:e.apyInDecimal*100,daysLeft:Math.max(0,Math.ceil((n-t)/z2)),timeLeftLabel:l$(n-t)}},c$=e=>[...e].sort((t,n)=>n.walletId-t.walletId),Y2=e=>String(e).padStart(2,"0"),Uy=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?null:t},h1e=e=>{const t=Uy(e);if(!t)return"";const n=t.getHours();return`${Y2(n%12||12)}:${Y2(t.getMinutes())} ${n<12?"AM":"PM"}`},p1e=e=>{const t=Uy(e);return t?`${Y2(t.getDate())}.${Y2(t.getMonth()+1)}.${t.getFullYear()}`:""},g1e=e=>`x${(Number.isFinite(e)?e:0).toFixed(2)}`,d$=(e,t)=>{const n=new Date(e.unlockTimeUTC).getTime();return!Number.isNaN(n)&&t>=n},Ze=Je("token"),u$=Ze.createEvent("tokenDashboardMounted"),f$=Ze.createEvent("printerRulesRequested"),m$=Ze.createEvent("printersRequested"),m7=Ze.createEvent("printersRefreshRequested"),h7=Ze.createEvent("printersRefreshed"),h$=Ze.createEvent("generalStatsRequested"),p$=Ze.createEvent("printerCreateFormOpened"),p7=Ze.createEvent("printerCreateFormReset"),Hy=Ze.createEvent("printingRequested"),g$=Ze.createEvent("printerClaimRequested"),w$=Ze.createEvent("printingErrorCleared"),La=Ze.createEvent("tokenUserStateReset"),b1=Ze.createEffect(async()=>{const{status:e,data:t}=await Ts().http.get(Xj);return sl(e)?[]:Array.isArray(t==null?void 0:t.data)?t.data:[]}),Vy=()=>Ts().http.get(f7),kr=Ze.createEffect(async()=>{const{status:e,data:t}=await Vy();return sl(e)?[]:Array.isArray(t==null?void 0:t.data)?t.data:[]}),g6=Ze.createEffect(async()=>{const{status:e,data:t}=await Vy();if(sl(e))throw new Error("locked-tokens refresh failed");return Array.isArray(t==null?void 0:t.data)?t.data:[]}),Sr=Ze.createEffect(async e=>{const{status:t,data:n}=await Ts().http.post(f7,e);if(sl(t))throw new Error((n==null?void 0:n.message)??"whale_token_dashboard.printing_failed");if(!(n!=null&&n.walletId))throw new Error("whale_token_dashboard.printing_failed");return n}
2),bs=Ze.createEffect(async({walletId:e,finalAmount:t})=>{const{status:n,data:s}=await Ts().http.patch(`${f7}/${e}`);if(n!==Dy.OK)throw new Error((s==null?void 0:s.message)??"whale_token_dashboard.claim_failed");return{walletId:e,claimedInternal:jy(t)}}),Jd=Ze.createEffect(async()=>{const{status:e,data:t}=await Ts().http.get(Jj);return sl(e)?0:typeof(t==null?void 0:t.totalUsersWithWhaleToken)=="number"?t.totalUsersWithWhaleToken:0}),w6=Ze.createEffect(async()=>{const{status:e,data:t}=await Ts().http.get(Qj);return sl(e)?[]:Array.isArray(t==null?void 0:t.data)?t.data:[]}),Wy=Ze.createStore([],{name:"printerRules"}).on(b1.doneData,(e,t)=>s$(t));b1.pending;const C$=Ze.createStore(!1,{name:"printersLoaded"}).on(kr.finally,()=>!0).reset(La),w1e=P(C$,kr.pending,(e,t)=>t||!e),Zy=Ze.createStore([],{name:"printers"}).on([kr.doneData,h7],(e,t)=>c$(t)).on(Sr.doneData,(e,t)=>e.some(n=>n.walletId===t.walletId)?e:[t,...e]).on(bs.doneData,(e,{walletId:t})=>e.filter(n=>n.walletId!==t)).reset(La);Zy.map(e=>e.length);const x$=Ze.createStore(0,{name:"printersLoadedAtMs"}).on([kr.done,h7],()=>Date.now()).reset(La),Gy=Ze.createStore(0,{name:"printersRevision"}).on([kr,Sr.done,bs.done,La],e=>e+1),y$=P(Zy,x$,(e,t)=>e.filter(n=>d$(n,t))),C1e=Ze.createStore("empty",{name:"printerCreateMode"}).on(p$,()=>"form").reset(p7,La),x1e=Sr.pending,y1e=Ze.createStore(null,{name:"printingError"}).on(Sr.failData,(e,t)=>Fy(t,"whale_token_dashboard.printing_failed")).reset(Sr,w$,p7,La),b1e=Ze.createStore([],{name:"claimingWalletIds"}).on(bs,(e,{walletId:t})=>e.includes(t)?e:[...e,t]).on(bs.finally,(e,{params:t})=>e.filter(n=>n!==t.walletId)).reset(La);Ze.createStore(null,{name:"claimError"}).on(bs.failData,(e,t)=>Fy(t,"whale_token_dashboard.claim_failed")).reset(bs,La);const v1e=Ze.createStore(0,{name:"totalUsersWithWhaleToken"}).on(Jd.doneData,(e,t)=>t);Jd.pending;const E1e=Ze.createStore([],{name:"liveTransactions"}).on(w6.doneData,(e,t)=>t).reset(w6.fail);h({clock:u$,target:[b1,kr,Jd,w6]});h({clock:f$,target:b1});h({clock:m$,target:kr});h({clock:m7,source:{revision:Gy,isLoading:kr.pending,isRefreshing:g6.pending},filter:({isLoading:e,isRefreshing:t})=>!e&&!t,fn:({revision:e})=>e,target:g6});h({clock:g6.done,source:Gy,filter:(e,{params:t})=>e===t,fn:(e,{result:t})=>t,target:h7});h({clock:h$,target:Jd});h({clock:Hy,source:Wy,filter:(e,{multiplier:t})=>!!h6(e,t),fn:(e,{amountTokens:t,multiplier:n})=>({amount:t$(t),ruleId:h6(e,n).id}),target:Sr});const b$=Ye(({multiplier:e})=>{Ts().trackEvent("printing_failed",{reason:"rule_not_found",multiplier:e})});h({clock:Hy,source:Wy,filter:(e,{multiplier:t})=>!h6(e,t),fn:(e,t)=>t,target:b$});const v$=Ye(({amount:e,ruleId:t})=>{Ts().trackEvent("printing_success",{amount:e,ruleId:t})});h({clock:Sr.done,fn:({params:e})=>e,target:v$});h({clock:Sr.done,target:p7});const E$=Ye(({params:e,error:t})=>{const{trackEvent:n,toast:s,translate:r}=Ts();n("printing_failed",{reason:t.message,amount:e.amount,ruleId:e.ruleId}),s.error(r("notification.toast.error.title"),r(t.message))});h({clock:Sr.fail,target:E$});h({clock:g$,target:bs});const S$=Ye(({claimedInternal:e})=>{const{refreshBalances:t,toast:n,translate:s}=Ts();t(),n.success(s("notification.toast.success.title"),s("whale_token_dashboard.earnings_collected",{amount:q2(e)}))});h({clock:bs.doneData,target:S$});h({clock:bs.done,target:[kr,b1]});const L$=Ye(e=>{const{toast:t,translate:n}=Ts();t.error(n("notification.toast.error.title"),n(e instanceof Error?e.message:"whale_token_dashboard.claim_failed"))});h({clock:bs.failData,target:L$});var $l={},Bl={},Rm;function A$(){return Rm||(Rm=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.regionAPIs=void 0,Bl.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])),Bl}var sr={},Nm;function T$(){if(Nm)return sr;Nm=1;var e=sr&&sr.__awaiter||function(i,l,c,d){function f(u){return u instanceof c?u:new c(function(m){m(u)})}return new(c||(c=Promise))(function(u,m){function p(v){try{b(d.next(v))}catch(E){m(E)}}function C(v){try{b(d.throw(v))}catch(E){m(E)}}function b(v){v.done?u(v.value):f(v.value).then(p,C)}b((d=d.apply(i,l||[])).next())})};
2Object.defineProperty(sr,"__esModule",{value:!0}),sr.ref=sr.init=void 0;const t="_intercom_npm_loader",n=function(){n.loaderQueue(arguments)};n.q=[],n.loaderQueue=function(i){n.q.push(i)};const s=function(i){var l,c,d=document;if(!d.getElementById(t)){var f=d.createElement("script");f.type="text/javascript",f.async=!0,f.id=t,f.src=i||"https://widget.intercom.io/widget/"+((l=window.intercomSettings)===null||l===void 0?void 0:l.app_id);var u=d.getElementsByTagName("script")[0];(c=u.parentNode)===null||c===void 0||c.insertBefore(f,u)}},r=()=>document.readyState==="complete"||document.readyState==="interactive",a=(...i)=>e(void 0,[...i],void 0,function*(l={}){var c=window,d=c.Intercom;c.intercomSettings&&(c.intercomSettings.installation_type="npm-package"),typeof d=="function"?(d("reattach_activator"),d("update",c.intercomSettings)):(c.Intercom=n,r()?s(l.widgetUrl):(document.addEventListener("readystatechange",function(){r()&&s(l.widgetUrl)}),c.attachEvent?c.attachEvent("onload",()=>s(l.widgetUrl)):c.addEventListener("load",()=>s(l.widgetUrl),!1)))});return sr.init=a,sr.ref=void 0,sr}var km;function _$(){return km||(km=1,function(e){var t=$l&&$l.__rest||function(I,H){var j={};for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&H.indexOf(N)<0&&(j[N]=I[N]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,N=Object.getOwnPropertySymbols(I);q<N.length;q++)H.indexOf(N[q])<0&&Object.prototype.propertyIsEnumerable.call(I,N[q])&&(j[N[q]]=I[N[q]]);return j};Object.defineProperty(e,"__esModule",{value:!0}),e.hideNotifications=e.onUserEmailSupplied=e.showConversation=e.showTicket=e.startChecklist=e.startSurvey=e.showNews=e.showArticle=e.startTour=e.whoami=e.getVisitorId=e.trackEvent=e.onUnreadCountChange=e.onShow=e.onHide=e.showNewMessage=e.showMessages=e.showSpace=e.show=e.hide=e.update=e.shutdown=e.boot=e.Intercom=void 0;const n=A$(),s=T$(),r=(I,...H)=>{if(typeof window!==void 0&&window.Intercom)return window.Intercom(I,...H);console.warn("Please ensure Intercom is setup and running on client-side!")},a=I=>{if(typeof I!="object"){console.warn("Intercom initialiser called with invalid parameters.");return}const{region:H="us",widgetUrl:j}=I,N=t(I,["region","widgetUrl"]);typeof window<"u"&&!s.ref&&(window.intercomSettings=Object.assign(Object.assign({},N),{api_base:n.regionAPIs.get(H)}),(0,s.init)({widgetUrl:j}))};e.Intercom=a,e.default=e.Intercom;const i=I=>r("boot",I);e.boot=i;const l=()=>r("shutdown");e.shutdown=l;const c=I=>r("update",I);e.update=c;const d=()=>r("hide");e.hide=d;const f=()=>r("show");e.show=f;const u=I=>r("showSpace",I);e.showSpace=u;const m=()=>r("showMessages");e.showMessages=m;const p=I=>r("showNewMessage",I);e.showNewMessage=p;const C=I=>r("onHide",I);e.onHide=C;const b=I=>r("onShow",I);e.onShow=b;const v=I=>r("onUnreadCountChange",I);e.onUnreadCountChange=v;const E=(...I)=>r("trackEvent",...I);e.trackEvent=E;const x=()=>r("getVisitorId");e.getVisitorId=x;const g=()=>r("whoami");e.whoami=g;const A=I=>r("startTour",I);e.startTour=A;const k=I=>r("showArticle",I);e.showArticle=k;const R=I=>r("showNews",I);e.showNews=R;const O=I=>r("startSurvey",I);e.startSurvey=O;const U=I=>r("startChecklist",I);e.startChecklist=U;const V=I=>r("showTicket",I);e.showTicket=V;const z=I=>r("showConversation",I);e.showConversation=z;const G=I=>r("onUserEmailSupplied",I);e.onUserEmailSupplied=G;const W=I=>r("hideNotifications",I);e.hideNotifications=W}($l)),$l}var Di=_$();const R$=Sd(Di);
2class hc extends Error{}hc.prototype.name="InvalidTokenError";function N$(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function k$(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return N$(t)}catch{return atob(t)}}function I$(e,t){if(typeof e!="string")throw new hc("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new hc(`Invalid token specified: missing part #${n+1}`);let r;try{r=k$(s)}catch(a){throw new hc(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(r)}catch(a){throw new hc(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}const zc="intercom_jwt",zy=As("intercomInitializedChanged"),qy=As("intercomIsLoggedInChanged"),Yy=Ls(!1,{name:"intercomInitialized"}).on(zy,(e,t)=>t),Im=Ls(null,{name:"intercomIsLoggedIn"}).on(qy,(e,t)=>t),Ky=e=>{zy(e)},g7=e=>{qy(e)},Lr=(e,t,n="error")=>{n==="error"?console.error(`[Intercom] ${e}`,t):console.warn(`[Intercom] ${e}`,t)},M$=e=>{try{const{exp:t}=I$(e);return t>=Math.floor(Date.now()/1e3)}catch{return!1}},Xy=(e={})=>{Di.boot({...e,app_id:No.intercomAppId,BrandSource:"Whale"})},O$=()=>{typeof document>"u"||Ws()!==vr.TELEGRAM||document.getElementById("intercom-telegram-padding")||setTimeout(()=>{const e=document.createElement("style");e.id="intercom-telegram-padding",e.textContent=`
3			iframe[name="intercom-messenger-frame"] {
4				margin-top: 6rem !important;
5				height: calc(100% - 6rem) !important;
6			}
7		`,document.head.appendChild(e)},0)},P$=async()=>{try{return(await _e.get("/user/intercom")).token}catch(e){throw Lr("Failed to request JWT",e,"error"),e}},D$=async()=>{const e=zi(zc);if(e&&M$(e))return e;const t=await P$();return Ld(zc,t),t},F$=async()=>{try{await _e.post("/user/intercom",{})}catch(e){Lr("Failed to request update user data",e,"error")}},Wo=(e,t)=>{try{t?Di.trackEvent(e,t):Di.trackEvent(e)}catch(n){Lr(`Failed to track "${e}"`,n,"warn")}},j$=()=>{R$({app_id:No.intercomAppId}),Ky(!0)},Jy=async()=>{zi(zc)&&u1(zc);try{Xy(),g7(!1)}catch(e){Lr("Failed to boot guest",e,"error")}},Mm=async()=>{try{const e=await D$();if(!e)throw new Error("No token");Xy({intercom_user_jwt:e}),await F$(),g7(!0)}catch(e){Lr("Failed to initialize as user, falling back to guest",e,"error"),await Jy()}},Qy=()=>{try{Di.shutdown()}catch(e){Lr("Failed to shut down",e,"error")}u1(zc),Ky(!1),g7(null)},S1e=()=>{try{Yy.getState()?(Di.show(),O$()):Lr("Intercom is not initialized",void 0,"warn")}catch(e){Lr("Failed to show Intercom",e,"error")}},$$=e=>typeof window>"u"?()=>{}:e(t=>{(async()=>{try{if(!Yy.getState()){j$(),await(t?Mm():Jy());return}if(t&&!Im.getState()){await Mm();return}!t&&Im.getState()&&Qy()}catch(n){Lr("Intercom effect failed",n,"error")}})()}),E0=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},B$={get:e=>E0(()=>_e.get(e)),post:(e,t)=>E0(()=>_e.post(e,t)),put:(e,t)=>E0(()=>_e.put(e,t)),delete:e=>E0(()=>_e.delete(e))};let Om=!1;const U$=()=>{Om||(Om=!0,tT({http:B$,apiUrl:nT(),origin:typeof window>"u"?"":window.location.origin,getLocalePrefix:()=>sT(),navigate:e=>{typeof window<"u"&&(window.location.href=e)},cookies:{get:zi,set:Ld,remove:e=>u1(e)},storage:{removeLocal:e=>{typeof window<"u"&&window.localStorage.removeItem(e)},removeSession:e=>{typeof window<"u"&&window.sessionStorage.removeItem(e)}},getTrackingData:Yg,getSignUpSource:qg,clearSignUpSourceData:zg,getUtmParams:Gg,getAdFormUid:Zg,stopSupport:Qy}))},Pm=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},H$={get:e=>Pm(()=>_e.get(e)),post:(e,t)=>Pm(()=>_e.post(e,t))};let Dm=!1;const V$=e=>{if(Dm)return;Dm=!0;const t=Ws()===vr.OPERA_MINI_APP;rT({http:H$,storage:{get:n=>typeof window>"u"?null:window.localStorage.getItem(n),set:(n,s)=>{typeof window<"u"&&window.localStorage.setItem(n,s)}},cookies:{get:zi,set:(n,s,r)=>
7Ld(n,s,{...r,secure:!0}),remove:n=>u1(n)},getSocketUrl:qi,getUserId:e,isFeatureEnabled:n=>Ad(n),trackEvent:Te,fallbackCurrency:t?fe.CUSD:fe.USDT,fallbackNetwork:t?"CELO":Kg[fe.USDT],forceFallbackNetwork:t})},W$={get:(e,t)=>_e.get(e,{query:t}),post:(e,t)=>_e.post(e,t)};let Fm=!1;const Z$=()=>{Fm||(Fm=!0,eR({http:W$,isDev:No.isDev,getHost:()=>oT(window.location.host),getSocketUrl:qi,getLanguage:aT,trackEvent:Te}))};class Mo extends Error{}class G$ extends Mo{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class z$ extends Mo{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class q$ extends Mo{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class mi extends Mo{}class eb extends Mo{constructor(t){super(`Invalid unit ${t}`)}}class vn extends Mo{}class $r extends Mo{constructor(){super("Zone is an abstract class")}}const X="numeric",vs="short",$n="long",K2={year:X,month:X,day:X},tb={year:X,month:vs,day:X},Y$={year:X,month:vs,day:X,weekday:vs},nb={year:X,month:$n,day:X},sb={year:X,month:$n,day:X,weekday:$n},rb={hour:X,minute:X},ab={hour:X,minute:X,second:X},ob={hour:X,minute:X,second:X,timeZoneName:vs},ib={hour:X,minute:X,second:X,timeZoneName:$n},lb={hour:X,minute:X,hourCycle:"h23"},cb={hour:X,minute:X,second:X,hourCycle:"h23"},db={hour:X,minute:X,second:X,hourCycle:"h23",timeZoneName:vs},ub={hour:X,minute:X,second:X,hourCycle:"h23",timeZoneName:$n},fb={year:X,month:X,day:X,hour:X,minute:X},mb={year:X,month:X,day:X,hour:X,minute:X,second:X},hb={year:X,month:vs,day:X,hour:X,minute:X},pb={year:X,month:vs,day:X,hour:X,minute:X,second:X},K$={year:X,month:vs,day:X,weekday:vs,hour:X,minute:X},gb={year:X,month:$n,day:X,hour:X,minute:X,timeZoneName:vs},wb={year:X,month:$n,day:X,hour:X,minute:X,second:X,timeZoneName:vs},Cb={year:X,month:$n,day:X,weekday:$n,hour:X,minute:X,timeZoneName:$n},xb={year:X,month:$n,day:X,weekday:$n,hour:X,minute:X,second:X,timeZoneName:$n};class v1{get type(){throw new $r}get name(){throw new $r}get ianaName(){return this.name}get isUniversal(){throw new $r}offsetName(t,n){throw new $r}formatOffset(t,n){throw new $r}offset(t){throw new $r}equals(t){throw new $r}get isValid(){throw new $r}}let P5=null;class Qd extends v1{static get instance(){return P5===null&&(P5=new Qd),P5}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return _b(t,n,s)}formatOffset(t,n){return Lc(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let C2={};function X$(e){return C2[e]||(C2[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),C2[e]}const J$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Q$(e,t){const n=e.format(t).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,a,i,l,c,d,f]=s;return[i,r,a,l,c,d,f]}function eB(e,t){const n=e.formatToParts(t),s=[];for(let r=0;r<n.length;r++){const{type:a,value:i}=n[r],l=J$[a];a==="era"?s[l]=i:Ce(l)||(s[l]=parseInt(i,10))}return s}let S0={};class Ar extends v1{static create(t){return S0[t]||(S0[t]=new Ar(t)),S0[t]}static resetCache(){S0={},C2={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Ar.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return _b(t,n,s,this.name)}formatOffset(t,n){return Lc(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const s=X$(this.name);let[r,a,i,l,c,d,f]=s.formatToParts?eB(s,n):Q$(s,n);l==="BC"&&(r=-Math.abs(r)+1);const m=tu({year:r,month:a,day:i,hour:c===24?0:c,minute:d,second:f,millisecond:0});let p=+n;const C=p%1e3;return p-=C>=0?C:1e3+C,(m-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let jm={};function tB(e,t={}){const n=JSON.stringify([e,t]);let s=jm[n];return s||(s=new Intl.ListFormat(e,t),jm[n]=s),s}let C6={};function x6(e,t={}){const n=JSON.stringify([e,t]);let s=C6[n];return s||(s=new Intl.DateTimeFormat(e,t),C6[n]=s),s}let y6={};function nB(e,t={}){const n=JSON.stringify([e,t]);let s=y6[n];return s||(s=new Intl.NumberFormat(e,t),y6[n]=s),s}let b6={};function sB(e,t={}){const{base:n,...s}=t,r=JSON.stringify([e,s]);let a=b6[r];return a||(a=new Intl.RelativeTimeFormat(e,t),b6[r]=a),a}let pc=null;function rB(){return pc||(pc=new Intl.DateTimeFormat().resolvedOptions().locale,pc)}let $m={};function aB(e){let t=$m[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,$m[e]=t}return t}function oB(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let s,r;try{s=x6(e).resolvedOptions(),r=e}catch{const c=e.substring(0,n);s=x6(c).resolvedOptions(),r=c}const{numberingSystem:a,calendar:i}=s;return[r,a,i]}}function iB(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function lB(e){const t=[];for(let n=1;n<=12;n++){const s=xe.utc(2009,n,1);t.push(e(s))}return t}function cB(e){const t=[];for(let n=1;n<=7;n++){const s=xe.utc(2016,11,13+n);t.push(e(s))}return t}function L0(e,t,n,s){const r=e.listingMode();return r==="error"?null:r==="en"?n(t):s(t)}function dB(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class uB{constructor(t,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:a,...i}=s;
7if(!n||Object.keys(i).length>0){const l={useGrouping:!1,...s};s.padTo>0&&(l.minimumIntegerDigits=s.padTo),this.inf=nB(t,l)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):y7(t,3);return St(n,this.padTo)}}}class fB{constructor(t,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const i=-1*(t.offset/60),l=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&Ar.create(l).valid?(r=l,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||r,this.dtf=x6(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class mB{constructor(t,n,s){this.opts={style:"long",...s},!n&&Ab()&&(this.rtf=sB(t,s))}format(t,n){return this.rtf?this.rtf.format(t,n):MB(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const hB={firstDay:1,minimalDays:4,weekend:[6,7]};class qe{static fromOpts(t){return qe.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,s,r,a=!1){const i=t||xt.defaultLocale,l=i||(a?"en-US":rB()),c=n||xt.defaultNumberingSystem,d=s||xt.defaultOutputCalendar,f=v6(r)||xt.defaultWeekSettings;return new qe(l,c,d,f,i)}static resetCache(){pc=null,C6={},y6={},b6={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return qe.create(t,n,s,r)}constructor(t,n,s,r,a){const[i,l,c]=oB(t);this.locale=i,this.numberingSystem=n||l||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=iB(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=dB(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:qe.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,v6(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return L0(this,t,kb,()=>{const s=n?{month:t,day:"numeric"}:{month:t},r=n?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=lB(a=>this.extract(a,s,"month"))),this.monthsCache[r][t]})}weekdays(t,n=!1){return L0(this,t,Ob,()=>{const s=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=cB(a=>this.extract(a,s,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return L0(this,void 0,()=>Pb,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[xe.utc(2016,11,13,9),xe.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return L0(this,t,Db,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[xe.utc(-40,1,1),xe.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[t]})}extract(t,n,s){const r=this.dtFormatter(t,n),a=r.formatToParts(),i=a.find(l=>l.type.toLowerCase()===s);return i?i.value:null}numberFormatter(t={}){return new uB(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new fB(t,this.intl,n)}relFormatter(t={}){return new mB(this.intl,this.isEnglish(),t)}listFormatter(t={}){return tB(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tb()?aB(this.locale):hB}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let D5=null;
vendor: 14,578 bytes, line 7
7class fn extends v1{static get utcInstance(){return D5===null&&(D5=new fn(0)),D5}static instance(t){return t===0?fn.utcInstance:new fn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new fn(nu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Lc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Lc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Lc(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class pB extends v1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function aa(e,t){if(Ce(e)||e===null)return t;if(e instanceof v1)return e;if(CB(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Qd.instance:n==="utc"||n==="gmt"?fn.utcInstance:fn.parseSpecifier(n)||Ar.create(e)}else return ho(e)?fn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new pB(e)}let Bm=()=>Date.now(),Um="system",Hm=null,Vm=null,Wm=null,Zm=60,Gm,zm=null;class xt{static get now(){return Bm}static set now(t){Bm=t}static set defaultZone(t){Um=t}static get defaultZone(){return aa(Um,Qd.instance)}static get defaultLocale(){return Hm}static set defaultLocale(t){Hm=t}static get defaultNumberingSystem(){return Vm}static set defaultNumberingSystem(t){Vm=t}static get defaultOutputCalendar(){return Wm}static set defaultOutputCalendar(t){Wm=t}static get defaultWeekSettings(){return zm}static set defaultWeekSettings(t){zm=v6(t)}static get twoDigitCutoffYear(){return Zm}static set twoDigitCutoffYear(t){Zm=t%100}static get throwOnInvalid(){return Gm}static set throwOnInvalid(t){Gm=t}static resetCaches(){qe.resetCache(),Ar.resetCache()}}class ws{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const yb=[0,31,59,90,120,151,181,212,243,273,304,334],bb=[0,31,60,91,121,152,182,213,244,274,305,335];function Qn(e,t){return new ws("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function w7(e,t,n){const s=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function vb(e,t,n){return n+(E1(e)?bb:yb)[t-1]}function Eb(e,t){const n=E1(e)?bb:yb,s=n.findIndex(a=>a<t),r=t-n[s];return{month:s+1,day:r}}function C7(e,t){return(e-t+7)%7+1}function X2(e,t=4,n=1){const{year:s,month:r,day:a}=e,i=vb(s,r,a),l=C7(w7(s,r,a),n);let c=Math.floor((i-l+14-t)/7),d;return c<1?(d=s-1,c=qc(d,t,n)):c>qc(s,t,n)?(d=s+1,c=1):d=s,{weekYear:d,weekNumber:c,weekday:l,...su(e)}}function qm(e,t=4,n=1){const{weekYear:s,weekNumber:r,weekday:a}=e,i=C7(w7(s,1,t),n),l=xi(s);let c=r*7+a-i-7+t,d;c<1?(d=s-1,c+=xi(d)):c>l?(d=s+1,c-=xi(s)):d=s;const{month:f,day:u}=Eb(d,c);return{year:d,month:f,day:u,...su(e)}}function F5(e){const{year:t,month:n,day:s}=e,r=vb(t,n,s);return{year:t,ordinal:r,...su(e)}}function Ym(e){const{year:t,ordinal:n}=e,{month:s,day:r}=Eb(t,n);return{year:t,month:s,day:r,...su(e)}}function Km(e,t){if(!Ce(e.localWeekday)||!Ce(e.localWeekNumber)||!Ce(e.localWeekYear)){if(!Ce(e.weekday)||!Ce(e.weekNumber)||!Ce(e.weekYear))throw new mi("Cannot mix locale-based week fields with ISO-based week fields");return Ce(e.localWeekday)||(e.weekday=e.localWeekday),Ce(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ce(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function gB(e,t=4,n=1){const s=eu(e.weekYear),r=es(e.weekNumber,1,qc(e.weekYear,t,n)),a=es(e.weekday,1,7);return s?r?a?!1:Qn("weekday",e.weekday):Qn("week",e.weekNumber):Qn("weekYear",e.weekYear)}function wB(e){const t=eu(e.year),n=es(e.ordinal,1,xi(e.year));return t?n?!1:Qn("ordinal",e.ordinal):Qn("year",e.year)}function Sb(e){const t=eu(e.year),n=es(e.month,1,12),s=es(e.day,1,J2(e.year,e.month));return t?n?s?!1:Qn("day",e.day):Qn("month",e.month):Qn("year",e.year)}function Lb(e){const{hour:t,minute:n,second:s,millisecond:r}=e,a=es(t,0,23)||t===24&&n===0&&s===0&&r===0,i=es(n,0,59),l=es(s,0,59),c=es(r,0,999);return a?i?l?c?!1:Qn("millisecond",r):Qn("second",s):Qn("minute",n):Qn("hour",t)}function Ce(e){return typeof e>"u"}function ho(e){return typeof e=="number"}function eu(e){return typeof e=="number"&&e%1===0}function CB(e){return typeof e=="string"}function xB(e){return Object.prototype.toString.call(e)==="[object Date]"}function Ab(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Tb(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yB(e){return Array.isArray(e)?e:[e]}function Xm(e,t,n){if(e.length!==0)return e.reduce((s,r)=>{const a=[t(r),r];return s&&n(s[0],a[0])===s[0]?s:a},null)[1]}function bB(e,t){return t.reduce((n,s)=>(n[s]=e[s],n),{})}function Fi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v6(e){if(e==null)return null;if(typeof e!="object")throw new vn("Week settings must be an object");if(!es(e.firstDay,1,7)||!es(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!es(t,1,7)))throw new vn("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function es(e,t,n){return eu(e)&&e>=t&&e<=n}function vB(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){const n=e<0;let s;return n?s="-"+(""+-e).padStart(t,"0"):s=(""+e).padStart(t,"0"),s}function ta(e){if(!(Ce(e)||e===null||e===""))return parseInt(e,10)}function Ba(e){if(!(Ce(e)||e===null||e===""))return parseFloat(e)}function x7(e){if(!(Ce(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function y7(e,t,n=!1){const s=10**t;return(n?Math.trunc:Math.round)(e*s)/s}function E1(e){return e%4===0&&(e%100!==0||e%400===0)}function xi(e){return E1(e)?366:365}function J2(e,t){const n=vB(t-1,12)+1,s=e+(t-n)/12;return n===2?E1(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tu(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Jm(e,t,n){return-C7(w7(e,1,t),n)+t-1}function qc(e,t=4,n=1){const s=Jm(e,t,n),r=Jm(e+1,t,n);return(xi(e)-s+r)/7}function E6(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function _b(e,t,n,s=null){const r=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(a.timeZone=s);const i={timeZoneName:t,...a},l=new Intl.DateTimeFormat(n,i).formatToParts(r).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function nu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const s=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Rb(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vn(`Invalid unit value ${e}`);return t}function Q2(e,t){const n={};for(const s in e)if(Fi(e,s)){const r=e[s];if(r==null)continue;n[t(s)]=Rb(r)}return n}function Lc(e,t){const n=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${St(n,2)}:${St(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${St(n,2)}${St(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function su(e){return bB(e,["hour","minute","second","millisecond"])}const EB=["January","February","March","April","May","June","July","August","September","October","November","December"],Nb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SB=["J","F","M","A","M","J","J","A","S","O","N","D"];function kb(e){switch(e){case"narrow":return[...SB];case"short":return[...Nb];case"long":return[...EB];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ib=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mb=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LB=["M","T","W","T","F","S","S"];function Ob(e){switch(e){case"narrow":return[...LB];case"short":return[...Mb];case"long":return[...Ib];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Pb=["AM","PM"],AB=["Before Christ","Anno Domini"],TB=["BC","AD"],_B=["B","A"];function Db(e){switch(e){case"narrow":return[..._B];case"short":return[...TB];case"long":return[...AB];default:return null}}function RB(e){return Pb[e.hour<12?0:1]}function NB(e,t){return Ob(t)[e.weekday-1]}function kB(e,t){return kb(t)[e.month-1]}function IB(e,t){return Db(t)[e.year<0?0:1]}function MB(e,t,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const u=e==="days";switch(t){case 1:return u?"tomorrow":`next ${r[e][0]}`;case-1:return u?"yesterday":`last ${r[e][0]}`;case 0:return u?"today":`this ${r[e][0]}`}}const i=Object.is(t,-0)||t<0,l=Math.abs(t),c=l===1,d=r[e],f=s?c?d[1]:d[2]||d[1]:c?r[e][0]:e;return i?`${l} ${f} ago`:`in ${l} ${f}`}function Qm(e,t){let n="";for(const s of e)s.literal?n+=s.val:n+=t(s.val);return n}const OB={D:K2,DD:tb,DDD:nb,DDDD:sb,t:rb,tt:ab,ttt:ob,tttt:ib,T:lb,TT:cb,TTT:db,TTTT:ub,f:fb,ff:hb,fff:gb,ffff:Cb,F:mb,FF:pb,FFF:wb,FFFF:xb};class en{static create(t,n={}){return new en(t,n)}static parseFormat(t){let n=null,s="",r=!1;const a=[];for(let i=0;i<t.length;i++){const l=t.charAt(i);l==="'"?(s.length>0&&a.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||l===n?s+=l:(s.length>0&&a.push({literal:/^\s+$/.test(s),val:s}),s=l,n=l)}return s.length>0&&a.push({literal:r||/^\s+$/.test(s),val:s}),a}static macroTokenToFormatOpts(t){return OB[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return St(t,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(p,C)=>this.loc.extract(t,p,C),i=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",l=()=>s?RB(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,C)=>s?kB(t,p):a(C?{month:p}:{month:p,day:"numeric"},"month"),d=(p,C)=>s?NB(t,p):a(C?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),f=p=>{const C=en.macroTokenToFormatOpts(p);return C?this.formatWithSystemDefault(t,C):p},u=p=>s?IB(t,p):a({era:p},"era"),m=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return r?a({day:"numeric"},"day"):this.num(t.day);case"dd":return r?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return r?a({month:"numeric"},"month"):this.num(t.month);case"MM":return r?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return r?a({year:"numeric"},"year"):this.num(t.year);case"yy":return r?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return f(p)}};return Qm(en.parseFormat(n),m)}formatDurationFromString(t,n){const s=c=>
7{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=c=>d=>{const f=s(d);return f?this.num(c.get(f),d.length):d},a=en.parseFormat(n),i=a.reduce((c,{literal:d,val:f})=>d?c:c.concat(f),[]),l=t.shiftTo(...i.map(s).filter(c=>c));return Qm(a,r(l))}}const Fb=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function rl(...e){const t=e.reduce((n,s)=>n+s.source,"");return RegExp(`^${t}$`)}function al(...e){return t=>e.reduce(([n,s,r],a)=>{const[i,l,c]=a(t,r);return[{...n,...i},l||s,c]},[{},null,1]).slice(0,2)}function ol(e,...t){if(e==null)return[null,null];for(const[n,s]of t){const r=n.exec(e);if(r)return s(r)}return[null,null]}function jb(...e){return(t,n)=>{const s={};let r;for(r=0;r<e.length;r++)s[e[r]]=ta(t[n+r]);return[s,null,n+r]}}const $b=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,PB=`(?:${$b.source}?(?:\\[(${Fb.source})\\])?)?`,b7=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Bb=RegExp(`${b7.source}${PB}`),v7=RegExp(`(?:T${Bb.source})?`),DB=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,FB=/(\d{4})-?W(\d\d)(?:-?(\d))?/,jB=/(\d{4})-?(\d{3})/,$B=jb("weekYear","weekNumber","weekDay"),BB=jb("year","ordinal"),UB=/(\d{4})-(\d\d)-(\d\d)/,Ub=RegExp(`${b7.source} ?(?:${$b.source}|(${Fb.source}))?`),HB=RegExp(`(?: ${Ub.source})?`);function yi(e,t,n){const s=e[t];return Ce(s)?n:ta(s)}function VB(e,t){return[{year:yi(e,t),month:yi(e,t+1,1),day:yi(e,t+2,1)},null,t+3]}function il(e,t){return[{hours:yi(e,t,0),minutes:yi(e,t+1,0),seconds:yi(e,t+2,0),milliseconds:x7(e[t+3])},null,t+4]}function S1(e,t){const n=!e[t]&&!e[t+1],s=nu(e[t+1],e[t+2]),r=n?null:fn.instance(s);return[{},r,t+3]}function L1(e,t){const n=e[t]?Ar.create(e[t]):null;return[{},n,t+1]}const WB=RegExp(`^T?${b7.source}$`),ZB=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function GB(e){const[t,n,s,r,a,i,l,c,d]=e,f=t[0]==="-",u=c&&c[0]==="-",m=(p,C=!1)=>p!==void 0&&(C||p&&f)?-p:p;return[{years:m(Ba(n)),months:m(Ba(s)),weeks:m(Ba(r)),days:m(Ba(a)),hours:m(Ba(i)),minutes:m(Ba(l)),seconds:m(Ba(c),c==="-0"),milliseconds:m(x7(d),u)}]}const zB={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function E7(e,t,n,s,r,a,i){const l={year:t.length===2?E6(ta(t)):ta(t),month:Nb.indexOf(n)+1,day:ta(s),hour:ta(r),minute:ta(a)};return i&&(l.second=ta(i)),e&&(l.weekday=e.length>3?Ib.indexOf(e)+1:Mb.indexOf(e)+1),l}const qB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function YB(e){const[,t,n,s,r,a,i,l,c,d,f,u]=e,m=E7(t,r,s,n,a,i,l);let p;return c?p=zB[c]:d?p=0:p=nu(f,u),[m,new fn(p)]}function KB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const XB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,JB=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,QB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function eh(e){const[,t,n,s,r,a,i,l]=e;return[E7(t,r,s,n,a,i,l),fn.utcInstance]}function eU(e){const[,t,n,s,r,a,i,l]=e;return[E7(t,l,n,s,r,a,i),fn.utcInstance]}const tU=rl(DB,v7),nU=rl(FB,v7),sU=rl(jB,v7),rU=rl(Bb),Hb=al(VB,il,S1,L1),aU=al($B,il,S1,L1),oU=al(BB,il,S1,L1),iU=al(il,S1,L1);function lU(e){return ol(e,[tU,Hb],[nU,aU],[sU,oU],[rU,iU])}function cU(e){return ol(KB(e),[qB,YB])}function dU(e){return ol(e,[XB,eh],[JB,eh],[QB,eU])}function uU(e){return ol(e,[ZB,GB])}const fU=al(il);function mU(e){return ol(e,[WB,fU])}const hU=rl(UB,HB),pU=rl(Ub),gU=al(il,S1,L1);
vendor: 8,018 bytes, line 7
7function wU(e){return ol(e,[hU,Hb],[pU,gU])}const th="Invalid Duration",Vb={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},CU={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Vb},Gn=146097/400,Zo=146097/4800,xU={years:{quarters:4,months:12,weeks:Gn/7,days:Gn,hours:Gn*24,minutes:Gn*24*60,seconds:Gn*24*60*60,milliseconds:Gn*24*60*60*1e3},quarters:{months:3,weeks:Gn/28,days:Gn/4,hours:Gn*24/4,minutes:Gn*24*60/4,seconds:Gn*24*60*60/4,milliseconds:Gn*24*60*60*1e3/4},months:{weeks:Zo/7,days:Zo,hours:Zo*24,minutes:Zo*24*60,seconds:Zo*24*60*60,milliseconds:Zo*24*60*60*1e3},...Vb},io=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yU=io.slice(0).reverse();function Br(e,t,n=!1){const s={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Oe(s)}function Wb(e,t){let n=t.milliseconds??0;for(const s of yU.slice(1))t[s]&&(n+=t[s]*e[s].milliseconds);return n}function nh(e,t){const n=Wb(e,t)<0?-1:1;io.reduceRight((s,r)=>{if(Ce(t[r]))return s;if(s){const a=t[s]*n,i=e[r][s],l=Math.floor(a/i);t[r]+=l*n,t[s]-=l*i*n}return r},null),io.reduce((s,r)=>{if(Ce(t[r]))return s;if(s){const a=t[s]%1;t[s]-=a,t[r]+=a*e[s][r]}return r},null)}function bU(e){const t={};for(const[n,s]of Object.entries(e))s!==0&&(t[n]=s);return t}class Oe{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let s=n?xU:CU;t.matrix&&(s=t.matrix),this.values=t.values,this.loc=t.loc||qe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(t,n){return Oe.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new vn(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Oe({values:Q2(t,Oe.normalizeUnit),loc:qe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ho(t))return Oe.fromMillis(t);if(Oe.isDuration(t))return t;if(typeof t=="object")return Oe.fromObject(t);throw new vn(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[s]=uU(t);return s?Oe.fromObject(s,n):Oe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[s]=mU(t);return s?Oe.fromObject(s,n):Oe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new vn("need to specify a reason the Duration is invalid");const s=t instanceof ws?t:new ws(t,n);if(xt.throwOnInvalid)throw new q$(s);return new Oe({invalid:s})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new eb(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?en.create(this.loc,s).formatDurationFromString(this,t):th}toHuman(t={}){if(!this.isValid)return th;const n=io.map(s=>{const r=this.values[s];return Ce(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=y7(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},xe.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Wb(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Oe.fromDurationLike(t),s={};for(const r of io)(Fi(n.values,r)||Fi(this.values,r))&&(s[r]=n.get(r)+this.get(r));return Br(this,{values:s},!0)}minus(t){if(!this.isValid)return this;const n=Oe.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Rb(t(this.values[s],s));return Br(this,{values:n},!0)}get(t){return this[Oe.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Q2(t,Oe.normalizeUnit)};return Br(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const i={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:s};return Br(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return nh(this.matrix,t),Br(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=bU(this.normalize().shiftToAll().toObject());return Br(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>Oe.normalizeUnit(i));const n={},s={},r=this.toObject();let a;for(const i of io)if(t.indexOf(i)>=0){a=i;let l=0;for(const d in s)l+=this.matrix[d][i]*s[d],s[d]=0;ho(r[i])&&(l+=r[i]);const c=Math.trunc(l);n[i]=c,s[i]=(l*1e3-c*1e3)/1e3}else ho(r[i])&&(s[i]=r[i]);for(const i in s)s[i]!==0&&(n[a]+=i===a?s[i]:s[i]/this.matrix[a][i]);return nh(this.matrix,n),Br(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Br(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}
7for(const s of io)if(!n(this.values[s],t.values[s]))return!1;return!0}}const Go="Invalid Interval";function vU(e,t){return!e||!e.isValid?pt.invalid("missing or invalid start"):!t||!t.isValid?pt.invalid("missing or invalid end"):t<e?pt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class pt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new vn("need to specify a reason the Interval is invalid");const s=t instanceof ws?t:new ws(t,n);if(xt.throwOnInvalid)throw new z$(s);return new pt({invalid:s})}static fromDateTimes(t,n){const s=Hl(t),r=Hl(n),a=vU(s,r);return a??new pt({start:s,end:r})}static after(t,n){const s=Oe.fromDurationLike(n),r=Hl(t);return pt.fromDateTimes(r,r.plus(s))}static before(t,n){const s=Oe.fromDurationLike(n),r=Hl(t);return pt.fromDateTimes(r.minus(s),r)}static fromISO(t,n){const[s,r]=(t||"").split("/",2);if(s&&r){let a,i;try{a=xe.fromISO(s,n),i=a.isValid}catch{i=!1}let l,c;try{l=xe.fromISO(r,n),c=l.isValid}catch{c=!1}if(i&&c)return pt.fromDateTimes(a,l);if(i){const d=Oe.fromISO(r,n);if(d.isValid)return pt.after(a,d)}else if(c){const d=Oe.fromISO(s,n);if(d.isValid)return pt.before(l,d)}}return pt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(t,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(s,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?pt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Hl).filter(i=>this.contains(i)).sort((i,l)=>i.toMillis()-l.toMillis()),s=[];let{s:r}=this,a=0;for(;r<this.e;){const i=n[a]||this.e,l=+i>+this.e?this.e:i;s.push(pt.fromDateTimes(r,l)),r=l,a+=1}return s}splitBy(t){const n=Oe.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,a;const i=[];for(;s<this.e;){const l=this.start.plus(n.mapUnits(c=>c*r));a=+l>+this.e?this.e:l,i.push(pt.fromDateTimes(s,a)),s=a,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,s=this.e<t.e?this.e:t.e;return n>=s?null:pt.fromDateTimes(n,s)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,s=this.e>t.e?this.e:t.e;return pt.fromDateTimes(n,s)}static merge(t){const[n,s]=t.sort((r,a)=>r.s-a.s).reduce(([r,a],i)=>a?a.overlaps(i)||a.abutsStart(i)?[r,a.union(i)]:[r.concat([a]),i]:[r,i],[[],null]);return s&&n.push(s),n}static xor(t){let n=null,s=0;const r=[],a=t.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),i=Array.prototype.concat(...a),l=i.sort((c,d)=>c.time-d.time);for(const c of l)s+=c.type==="s"?1:-1,s===1?n=c.time:(n&&+n!=+c.time&&r.push(pt.fromDateTimes(n,c.time)),n=null);return pt.merge(r)}difference(...t){return pt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Go}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
vendor: 5,756 bytes, line 7
7toLocaleString(t=K2,n={}){return this.isValid?en.create(this.s.loc.clone(n),t).formatInterval(this):Go}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Go}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Go}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Go}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Go}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Oe.invalid(this.invalidReason)}mapEndpoints(t){return pt.fromDateTimes(t(this.s),t(this.e))}}class A0{static hasDST(t=xt.defaultZone){const n=xe.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Ar.isValidZone(t)}static normalizeZone(t){return aa(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||qe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||qe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||qe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||qe.create(n,s,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||qe.create(n,s,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||qe.create(n,s,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||qe.create(n,s,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return qe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return qe.create(n,null,"gregory").eras(t)}static features(){return{relative:Ab(),localeWeek:Tb()}}}function sh(e,t){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(t)-n(e);return Math.floor(Oe.fromMillis(s).as("days"))}function EU(e,t,n){const s=[["years",(c,d)=>d.year-c.year],["quarters",(c,d)=>d.quarter-c.quarter+(d.year-c.year)*4],["months",(c,d)=>d.month-c.month+(d.year-c.year)*12],["weeks",(c,d)=>{const f=sh(c,d);return(f-f%7)/7}],["days",sh]],r={},a=e;let i,l;for(const[c,d]of s)n.indexOf(c)>=0&&(i=c,r[c]=d(e,t),l=a.plus(r),l>t?(r[c]--,e=a.plus(r),e>t&&(l=e,r[c]--,e=a.plus(r))):e=l);return[e,r,l,i]}function SU(e,t,n,s){let[r,a,i,l]=EU(e,t,n);const c=t-r,d=n.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(i<t&&(i=r.plus({[l]:1})),i!==r&&(a[l]=(a[l]||0)+c/(i-r)));const f=Oe.fromObject(a,s);return d.length>0?Oe.fromMillis(c,s).shiftTo(...d).plus(f):f}const S7={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},rh={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},LU=S7.hanidec.replace(/[\[|\]]/g,"").split("");function AU(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);if(e[n].search(S7.hanidec)!==-1)t+=LU.indexOf(e[n]);else for(const r in rh){const[a,i]=rh[r];s>=a&&s<=i&&(t+=s-a)}}return parseInt(t,10)}else return t}function ds({numberingSystem:e},t=""){return new RegExp(`${S7[e||"latn"]}${t}`)}const TU="missing Intl.DateTimeFormat.formatToParts support";function je(e,t=n=>n){return{regex:e,deser:([n])=>t(AU(n))}}const _U=" ",Zb=`[ ${_U}]`,Gb=new RegExp(Zb,"g");function RU(e){return e.replace(/\./g,"\\.?").replace(Gb,Zb)}function ah(e){return e.replace(/\./g,"").replace(Gb," ").toLowerCase()}function us(e,t){return e===null?null:{regex:RegExp(e.map(RU).join("|")),deser:([n])=>e.findIndex(s=>ah(n)===ah(s))+t}}function oh(e,t){return{regex:e,deser:([,n,s])=>nu(n,s),groups:t}}function T0(e){return{regex:e,deser:([t])=>t}}function NU(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function kU(e,t){const n=ds(t),s=ds(t,"{2}"),r=ds(t,"{3}"),a=ds(t,"{4}"),i=ds(t,"{6}"),l=ds(t,"{1,2}"),c=ds(t,"{1,3}"),d=ds(t,"{1,6}"),f=ds(t,"{1,9}"),u=ds(t,"{2,4}"),m=ds(t,"{4,6}"),p=v=>({regex:RegExp(NU(v.val)),deser:([E])=>E,literal:!0}),b=(v=>{if(e.literal)return p(v);switch(v.val){case"G":return us(t.eras("short"),0);case"GG":return us(t.eras("long"),0);case"y":return je(d);case"yy":return je(u,E6);case"yyyy":return je(a);case"yyyyy":return je(m);case"yyyyyy":return je(i);case"M":return je(l);case"MM":return je(s);case"MMM":return us(t.months("short",!0),1);case"MMMM":return us(t.months("long",!0),1);case"L":return je(l);case"LL":return je(s);case"LLL":return us(t.months("short",!1),1);case"LLLL":return us(t.months("long",!1),1);case"d":return je(l);case"dd":return je(s);case"o":return je(c);case"ooo":return je(r);case"HH":return je(s);case"H":return je(l);case"hh":return je(s);case"h":return je(l);case"mm":return je(s);case"m":return je(l);case"q":return je(l);case"qq":return je(s);case"s":return je(l);case"ss":return je(s);case"S":return je(c);case"SSS":return je(r);case"u":return T0(f);case"uu":return T0(l);case"uuu":return je(n);case"a":return us(t.meridiems(),0);case"kkkk":return je(a);case"kk":return je(u,E6);case"W":return je(l);
7case"WW":return je(s);case"E":case"c":return je(n);case"EEE":return us(t.weekdays("short",!1),1);case"EEEE":return us(t.weekdays("long",!1),1);case"ccc":return us(t.weekdays("short",!0),1);case"cccc":return us(t.weekdays("long",!0),1);case"Z":case"ZZ":return oh(new RegExp(`([+-]${l.source})(?::(${s.source}))?`),2);case"ZZZ":return oh(new RegExp(`([+-]${l.source})(${s.source})?`),2);case"z":return T0(/[a-z_+-/]{1,256}?/i);case" ":return T0(/[^\S\n\r]/);default:return p(v)}})(e)||{invalidReason:TU};return b.token=e,b}const IU={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function MU(e,t,n){const{type:s,value:r}=e;if(s==="literal"){const c=/^\s+$/.test(r);return{literal:!c,val:c?" ":r}}const a=t[s];let i=s;s==="hour"&&(t.hour12!=null?i=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?i="hour12":i="hour24":i=n.hour12?"hour12":"hour24");let l=IU[i];if(typeof l=="object"&&(l=l[a]),l)return{literal:!1,val:l}}function OU(e){return[`^${e.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,e]}function PU(e,t,n){const s=e.match(t);if(s){const r={};let a=1;for(const i in n)if(Fi(n,i)){const l=n[i],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(r[l.token.val[0]]=l.deser(s.slice(a,a+c))),a+=c}return[s,r]}else return[s,{}]}function DU(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return Ce(e.z)||(n=Ar.create(e.z)),Ce(e.Z)||(n||(n=new fn(e.Z)),s=e.Z),Ce(e.q)||(e.M=(e.q-1)*3+1),Ce(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ce(e.u)||(e.S=x7(e.u)),[Object.keys(e).reduce((a,i)=>{const l=t(i);return l&&(a[l]=e[i]),a},{}),n,s]}let j5=null;function FU(){return j5||(j5=xe.fromMillis(1555555555555)),j5}function jU(e,t){if(e.literal)return e;const n=en.macroTokenToFormatOpts(e.val),s=Yb(n,t);return s==null||s.includes(void 0)?e:s}function zb(e,t){return Array.prototype.concat(...e.map(n=>jU(n,t)))}function qb(e,t,n){const s=zb(en.parseFormat(n),e),r=s.map(i=>kU(i,e)),a=r.find(i=>i.invalidReason);if(a)return{input:t,tokens:s,invalidReason:a.invalidReason};{const[i,l]=OU(r),c=RegExp(i,"i"),[d,f]=PU(t,c,l),[u,m,p]=f?DU(f):[null,null,void 0];if(Fi(f,"a")&&Fi(f,"H"))throw new mi("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:s,regex:c,rawMatches:d,matches:f,result:u,zone:m,specificOffset:p}}}function $U(e,t,n){const{result:s,zone:r,specificOffset:a,invalidReason:i}=qb(e,t,n);return[s,r,a,i]}function Yb(e,t){if(!e)return null;const s=en.create(t,e).dtFormatter(FU()),r=s.formatToParts(),a=s.resolvedOptions();return r.map(i=>MU(i,e,a))}const $5="Invalid DateTime",ih=864e13;function _0(e){return new ws("unsupported zone",`the zone "${e.name}" is not supported`)}function B5(e){return e.weekData===null&&(e.weekData=X2(e.c)),e.weekData}function U5(e){return e.localWeekData===null&&(e.localWeekData=X2(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Ua(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new xe({...n,...t,old:n})}function Kb(e,t,n){let s=e-t*60*1e3;const r=n.offset(s);if(t===r)return[s,t];s-=(r-t)*60*1e3;const a=n.offset(s);return r===a?[s,r]:[e-Math.min(r,a)*60*1e3,Math.max(r,a)]}function R0(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function x2(e,t,n){return Kb(tu(e),t,n)}function lh(e,t){const n=e.o,s=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:s,month:r,day:Math.min(e.c.day,J2(s,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Oe.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=tu(a);let[c,d]=Kb(l,n,e.zone);return i!==0&&(c+=i,d=e.zone.offset(c)),{ts:c,o:d}}function Ul(e,t,n,s,r,a){const{setZone:i,zone:l}=n;if(e&&Object.keys(e).length!==0||t){const c=t||l,d=xe.fromObject(e,{...n,zone:c,specificOffset:a});return i?d:d.setZone(l)}else return xe.invalid(new ws("unparsable",`the input "${r}" can't be parsed as ${s}`))}function N0(e,t,n=!0){return e.isValid?en.create(qe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function H5(e,t){const n=e.c.year>9999||e.c.year<0;let s="";return n&&e.c.year>=0&&(s+="+"),s+=St(e.c.year,n?6:4),t?(s+="-",s+=St(e.c.month),s+="-",s+=St(e.c.day)):(s+=St(e.c.month),s+=St(e.c.day)),s}function ch(e,t,n,s,r,a){let i=St(e.c.hour);return t?(i+=":",i+=St(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(i+=":")):i+=St(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(i+=St(e.c.second),(e.c.millisecond!==0||!s)&&(i+=".",i+=St(e.c.millisecond,3))),r&&(e.isOffsetFixed&&e.offset===0&&!a?i+="Z":e.o<0?(i+="-",i+=St(Math.trunc(-e.o/60)),i+=":",i+=St(Math.trunc(-e.o%60))):(i+="+",i+=St(Math.trunc(e.o/60)),i+=":",i+=St(Math.trunc(e.o%60)))),a&&(i+="["+e.zone.ianaName+"]"),i}const Xb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},BU={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},UU={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Jb=["year","month","day","hour","minute","second","millisecond"],HU=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],VU=["year","ordinal","hour","minute","second","millisecond"];function WU(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new eb(e);return t}function dh(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return WU(e)}}function uh(e,t){const n=aa(t.zone,xt.defaultZone),s=qe.fromObject(t),r=xt.now();let a,i;if(Ce(e.year))a=r;else{for(const d of Jb)Ce(e[d])&&(e[d]=Xb[d]);const l=Sb(e)||Lb(e);
vendor: 14,226 bytes, line 7
7if(l)return xe.invalid(l);const c=n.offset(r);[a,i]=x2(e,c,n)}return new xe({ts:a,zone:n,loc:s,o:i})}function fh(e,t,n){const s=Ce(n.round)?!0:n.round,r=(i,l)=>(i=y7(i,s||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(i,l)),a=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(a(n.unit),n.unit);for(const i of n.units){const l=a(i);if(Math.abs(l)>=1)return r(l,i)}return r(e>t?-0:0,n.units[n.units.length-1])}function mh(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class xe{constructor(t){const n=t.zone||xt.defaultZone;let s=t.invalid||(Number.isNaN(t.ts)?new ws("invalid input"):null)||(n.isValid?null:_0(n));this.ts=Ce(t.ts)?xt.now():t.ts;let r=null,a=null;if(!s)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,a]=[t.old.c,t.old.o];else{const l=n.offset(this.ts);r=R0(this.ts,l),s=Number.isNaN(r.year)?new ws("invalid input"):null,r=s?null:r,a=s?null:l}this._zone=n,this.loc=t.loc||qe.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=a,this.isLuxonDateTime=!0}static now(){return new xe({})}static local(){const[t,n]=mh(arguments),[s,r,a,i,l,c,d]=n;return uh({year:s,month:r,day:a,hour:i,minute:l,second:c,millisecond:d},t)}static utc(){const[t,n]=mh(arguments),[s,r,a,i,l,c,d]=n;return t.zone=fn.utcInstance,uh({year:s,month:r,day:a,hour:i,minute:l,second:c,millisecond:d},t)}static fromJSDate(t,n={}){const s=xB(t)?t.valueOf():NaN;if(Number.isNaN(s))return xe.invalid("invalid input");const r=aa(n.zone,xt.defaultZone);return r.isValid?new xe({ts:s,zone:r,loc:qe.fromObject(n)}):xe.invalid(_0(r))}static fromMillis(t,n={}){if(ho(t))return t<-ih||t>ih?xe.invalid("Timestamp out of range"):new xe({ts:t,zone:aa(n.zone,xt.defaultZone),loc:qe.fromObject(n)});throw new vn(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ho(t))return new xe({ts:t*1e3,zone:aa(n.zone,xt.defaultZone),loc:qe.fromObject(n)});throw new vn("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const s=aa(n.zone,xt.defaultZone);if(!s.isValid)return xe.invalid(_0(s));const r=qe.fromObject(n),a=Q2(t,dh),{minDaysInFirstWeek:i,startOfWeek:l}=Km(a,r),c=xt.now(),d=Ce(n.specificOffset)?s.offset(c):n.specificOffset,f=!Ce(a.ordinal),u=!Ce(a.year),m=!Ce(a.month)||!Ce(a.day),p=u||m,C=a.weekYear||a.weekNumber;if((p||f)&&C)throw new mi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&f)throw new mi("Can't mix ordinal dates with month/day");const b=C||a.weekday&&!p;let v,E,x=R0(c,d);b?(v=HU,E=BU,x=X2(x,i,l)):f?(v=VU,E=UU,x=F5(x)):(v=Jb,E=Xb);let g=!1;for(const z of v){const G=a[z];Ce(G)?g?a[z]=E[z]:a[z]=x[z]:g=!0}const A=b?gB(a,i,l):f?wB(a):Sb(a),k=A||Lb(a);if(k)return xe.invalid(k);const R=b?qm(a,i,l):f?Ym(a):a,[O,U]=x2(R,d,s),V=new xe({ts:O,zone:s,o:U,loc:r});return a.weekday&&p&&t.weekday!==V.weekday?xe.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${V.toISO()}`):V}static fromISO(t,n={}){const[s,r]=lU(t);return Ul(s,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[s,r]=cU(t);return Ul(s,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[s,r]=dU(t);return Ul(s,r,n,"HTTP",n)}static fromFormat(t,n,s={}){if(Ce(t)||Ce(n))throw new vn("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:a=null}=s,i=qe.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),[l,c,d,f]=$U(i,t,n);return f?xe.invalid(f):Ul(l,c,s,`format ${n}`,t,d)}static fromString(t,n,s={}){return xe.fromFormat(t,n,s)}static fromSQL(t,n={}){const[s,r]=wU(t);return Ul(s,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new vn("need to specify a reason the DateTime is invalid");const s=t instanceof ws?t:new ws(t,n);if(xt.throwOnInvalid)throw new G$(s);return new xe({invalid:s})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const s=Yb(t,qe.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return zb(en.parseFormat(t),qe.fromObject(n)).map(r=>r.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?B5(this).weekYear:NaN}get weekNumber(){return this.isValid?B5(this).weekNumber:NaN}get weekday(){return this.isValid?B5(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?U5(this).weekday:NaN}get localWeekNumber(){return this.isValid?U5(this).weekNumber:NaN}get localWeekYear(){return this.isValid?U5(this).weekYear:NaN}get ordinal(){return this.isValid?F5(this.c).ordinal:NaN}get monthShort(){return this.isValid?A0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?A0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?A0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?A0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,s=tu(this.c),r=this.zone.offset(s-t),a=this.zone.offset(s+t),i=this.zone.offset(s-r*n),l=this.zone.offset(s-a*n);if(i===l)return[this];const c=s-i*n,d=s-l*n,f=R0(c,i),u=R0(d,l);return f.hour===u.hour&&f.minute===u.minute&&f.second===u.second&&f.millisecond===u.millisecond?[Ua(this,{ts:c}),Ua(this,{ts:d})]:[this]}get isInLeapYear(){return E1(this.year)}get daysInMonth(){return J2(this.year,this.month)}get daysInYear(){return this.isValid?xi(this.year):NaN}get weeksInWeekYear(){return this.isValid?qc(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?qc(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:s,calendar:r}=en.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(fn.instance(t),n)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(t=aa(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||s){const a=t.offset(this.ts),i=this.toObject();[r]=x2(i,a,t)}return Ua(this,{ts:r,zone:t})}else return xe.invalid(_0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:s});return Ua(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Q2(t,dh),{minDaysInFirstWeek:s,startOfWeek:r}=Km(n,this.loc),a=!Ce(n.weekYear)||!Ce(n.weekNumber)||!Ce(n.weekday),i=!Ce(n.ordinal),l=!Ce(n.year),c=!Ce(n.month)||!Ce(n.day),d=l||c,f=n.weekYear||n.weekNumber;if((d||i)&&f)throw new mi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&i)throw new mi("Can't mix ordinal dates with month/day");let u;a?u=qm({...X2(this.c,s,r),...n},s,r):Ce(n.ordinal)?(u={...this.toObject(),...n},Ce(n.day)&&(u.day=Math.min(J2(u.year,u.month),u.day))):u=Ym({...F5(this.c),...n});const[m,p]=x2(u,this.o,this.zone);return Ua(this,{ts:m,o:p})}plus(t){if(!this.isValid)return this;const n=Oe.fromDurationLike(t);return Ua(this,lh(this,n))}minus(t){if(!this.isValid)return this;const n=Oe.fromDurationLike(t).negate();return Ua(this,lh(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=Oe.normalizeUnit(t);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:i}=this;i<a&&(s.weekNumber=this.weekNumber-1),s.weekday=a}else s.weekday=1;if(r==="quarters"){const a=Math.ceil(this.month/3);s.month=(a-1)*3+1}return this.set(s)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?en.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):$5}toLocaleString(t=K2,n={}){return this.isValid?en.create(this.loc.clone(n),t).formatDateTime(this):$5}toLocaleParts(t={}){return this.isValid?en.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const i=t==="extended";let l=H5(this,i);return l+="T",l+=ch(this,i,n,s,r,a),l}toISODate({format:t="extended"}={}){return this.isValid?H5(this,t==="extended"):null}toISOWeekDate(){return N0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:a=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+ch(this,i==="extended",n,t,s,a):null}toRFC2822(){return N0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return N0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?H5(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(s&&(r+=" "),n?r+="z":t&&(r+="ZZ")),N0(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():$5}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",s={}){if(!this.isValid||!t.isValid)return Oe.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},a=yB(n).map(Oe.normalizeUnit),i=t.valueOf()>this.valueOf(),l=i?this:t,c=i?t:this,d=SU(l,c,a,r);return i?d.negate():d}diffNow(t="milliseconds",n={}){return this.diff(xe.now(),t,n)}until(t){return this.isValid?pt.fromDateTimes(this,t):this}hasSame(t,n,s){if(!this.isValid)return!1;const r=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,s)<=r&&r<=a.endOf(n,s)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||xe.fromObject({},{zone:this.zone}),s=t.padding?this<n?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(r=t.unit,a=void 0),fh(n,this.plus(s),{...t,numeric:"always",units:r,unit:a})}toRelativeCalendar(t={}){return this.isValid?fh(t.base||xe.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(xe.isDateTime))throw new vn("min requires all arguments be DateTimes");return Xm(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(xe.isDateTime))throw new vn("max requires all arguments be DateTimes");return Xm(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,s={}){const{locale:r=null,numberingSystem:a=null}=s,i=qe.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});return qb(i,t,n)}static fromStringExplain(t,n,s={}){return xe.fromFormatExplain(t,n,s)}static get DATE_SHORT(){return K2}static get DATE_MED(){return tb}static get DATE_MED_WITH_WEEKDAY(){return Y$}static get DATE_FULL(){return nb}static get DATE_HUGE(){return sb}static get TIME_SIMPLE(){return rb}static get TIME_WITH_SECONDS(){return ab}static get TIME_WITH_SHORT_OFFSET(){return ob}static get TIME_WITH_LONG_OFFSET(){return ib}static get TIME_24_SIMPLE(){return lb}static get TIME_24_WITH_SECONDS(){return cb}static get TIME_24_WITH_SHORT_OFFSET(){return db}static get TIME_24_WITH_LONG_OFFSET(){return ub}static get DATETIME_SHORT(){return fb}static get DATETIME_SHORT_WITH_SECONDS(){return mb}static get DATETIME_MED(){return hb}static get DATETIME_MED_WITH_SECONDS(){return pb}static get DATETIME_MED_WITH_WEEKDAY(){return K$}static get DATETIME_FULL(){return gb}static get DATETIME_FULL_WITH_SECONDS(){return wb}static get DATETIME_HUGE(){return Cb}static get DATETIME_HUGE_WITH_SECONDS(){return xb}}function Hl(e){if(xe.isDateTime(e))return e;if(e&&e.valueOf&&ho(e.valueOf()))return xe.fromJSDate(e);if(e&&typeof e=="object")return xe.fromObject(e);throw new vn(`Unknown datetime argument: ${e}, of type ${typeof e}`)}
7const ne=iT("chat"),cr=ne.createEvent("initRoomChat"),V5=ne.createEvent("connectToChat"),Qb=ne.createEvent("disconnectFromChat"),y2=ne.createEvent("receiveMessage"),hh=ne.createEvent("publishTextMessage"),ph=ne.createEvent("publishStickerMessage"),gh=ne.createEvent("publishGifMessage"),ZU=ne.createEvent("deleteMessage"),GU=ne.createEvent("banUser"),wh=ne.createEvent("loadMoreMessages"),gc=ne.createEvent("setActiveChatId"),ev=ne.createEvent("setIsAdmin"),zU=ne.createEvent("resetChatState"),qU=ne.createEvent("chatConnectionError"),Ch=ne.createEvent("chatConnectionSuccess"),YU=ne.createEvent(),xh=ne.createEvent(),tv=ne.createEvent("setChatParticipantsCount"),nv=ne.createEvent("chatParticipantJoined"),sv=ne.createEvent("chatParticipantLeft"),KU=ne.createEvent("sendChatReaction"),XU=ne.createEvent("removeUserReaction"),S6=ne.createEvent("saveChatReaction"),L6=ne.createEvent("deleteChatReaction"),JU=ne.createEvent("removeOptimisticMessage"),W5=ne.createEvent("sendMessageError"),rv=ne.createEvent("setPinnedPollMessageId"),QU=ne.createEvent("pinPoll"),eH=ne.createEvent("unpinPoll");var $e=(e=>(e.TEXT="text",e.STICKER="sticker",e.GIF="gif",e.BIG_WIN_ALERT="bigWinAlert",e.JOIN_TRIBES_ALERT="joinTribesAlert",e.POLL="poll",e.SPLASH="splash",e))($e||{}),tH=(e=>(e.MODERATOR="moderator",e.TRIBE_HOST="tribeHost",e))(tH||{});const L1e=500,kn="/chat";var av=(e=>(e.LIKE="like",e.DISLIKE="dislike",e.LOVE="love",e.LAUGH="laugh",e.SAD="sad",e.ANGRY="angry",e.THANKS="thanks",e.HIGH_FIVE="high-five",e.CONFUSED="confused",e.SHOCKED="shocked",e.CELEBRATE="celebrate",e.WHALE="whale",e.COOL="cool",e.CRY="cry",e.NOPE="nope",e.COIN="coin",e.FIRE="fire",e.CLAP="clap",e.HEART_EYES="heart-eyes",e.STAR="star",e.ROCKET="rocket",e.PARTY_POPPER="party-popper",e.SMIRK="smirk",e.WINK="wink",e.ZZZ="zzz",e.SUNGLASSES="sunglasses",e.THINKING="thinking",e.FACEPALM="facepalm",e.PRAY="pray",e.FLEX="flex",e.OK_HAND="ok-hand",e.PINCHED_FINGERS="pinched-fingers",e.RAISED_HANDS="raised-hands",e.EYES="eyes",e.SKULL="skull",e.RAINBOW="rainbow",e.UNICORN="unicorn",e.MONEY_FACE="money-face",e.MONEY_BAG="money-bag",e.DOLLAR_BILLS="dollar-bills",e.CASH_FLYING="cash-flying",e))(av||{});const dr=e=>{const t=e.contentType;return[$e.TEXT,$e.BIG_WIN_ALERT,$e.GIF,$e.STICKER,$e.JOIN_TRIBES_ALERT,$e.SPLASH,$e.POLL].includes(t)},nH=e=>{var t;return((t=e.data)==null?void 0:t.type)==="deposit"},sH=e=>{var t;return((t=e.data)==null?void 0:t.type)==="withdrawal"},rH=e=>{var t;return((t=e.data)==null?void 0:t.type)==="banUserFromChat"},aH=e=>{var t;return((t=e.data)==null?void 0:t.type)==="deleteMessage"},oH=e=>e.contentType===$e.BIG_WIN_ALERT,iH=e=>e.contentType===$e.SPLASH,A1e=async({searchTerm:e,offset:t=0})=>(await Nn().get(`${kn}/gifs?searchTerm=${encodeURIComponent(e)}&offset=${t}`)).data,lH=e=>!e||typeof e!="object"||!("type"in e)||typeof e.type!="string"?!1:(e==null?void 0:e.type)==="add_reaction",cH=e=>!e||typeof e!="object"||!("type"in e)||typeof e.type!="string"?!1:(e==null?void 0:e.type)==="remove_reaction",ov=e=>Object.values(av).includes(e),dH=e=>!e||typeof e!="object"||!("type"in e)||typeof e.type!="string"?!1:e.type==="pollPinned",uH=[$e.TEXT,$e.GIF,$e.STICKER,$e.POLL],fH=[$e.BIG_WIN_ALERT,$e.SPLASH,$e.JOIN_TRIBES_ALERT],mH=e=>e.type==="default"?uH.includes(e.contentType)?e.contentType===$e.TEXT?typeof e.content=="string"&&e.content.trim().length>0:!0:!1:e.type==="system"?fH.includes(e.contentType):!1,yh=(e,t)=>t===null||t<=0||e.length<=t?e:e.slice(e.length-t);let yn=null;const bh=ne.createEffect(async()=>(await Nn().get(`${kn}/stickers`)).data),k0=ne.createEffect(async e=>{if(yn&&yn.chatId===e)try{Gi(yn),await new Promise(t=>{setTimeout(()=>{yn=null,t()},200)})}catch{yn=null}}),Ha=ne.createEffect(async e=>{try{yn&&(Gi(yn),await new Promise(r=>{setTimeout(()=>{yn=null,r()},200)}));const t=await Nn().get(`${kn}/${e.chatId}/tokens`),n=t.data.tokens,s=await d1({socketUrl:e.socketUrl,connectionToken:n.connection,subscriptionToken:n.subscription,channelName:`chat:${e.chatId}`,contextId:`WebSocket chat ${e.chatId}`,handlers:{onPublication:r=>
7{if((yn==null?void 0:yn.chatId)===e.chatId){if(lH(r.data)){S6(r.data);return}if(cH(r.data)){L6(r.data);return}if(dH(r.data)){rv(r.data.messageId);return}y2({message:{...r.data,chatId:e.chatId}})}},onJoin:()=>nv(),onLeave:()=>sv(),onSubscribed:async()=>{},onDisconnected:r=>{console.error(`WebSocket chat ${e.chatId} disconnected:`,r)}}});if(!s)return yn=null,null;yn={...s,chatId:e.chatId};try{const r=await s.subscription.presenceStats();tv(r.numClients)}catch{}return{chatId:e.chatId,token:n.subscription,pinnedPollMessageId:t.data.pinnedPollMessageId??null}}catch{return yn=null,null}}),I0=ne.createEffect(async e=>{const{data:t,chatId:n,replyToMessageId:s}=e;await Nn().post(`${kn}/${n}/messages`,{contentType:$e.STICKER,data:t,replyToMessageId:s})}),M0=ne.createEffect(async e=>{const{data:t,chatId:n,replyToMessageId:s}=e;await Nn().post(`${kn}/${n}/messages`,{contentType:$e.GIF,data:t,replyToMessageId:s})}),O0=ne.createEffect(async e=>{const{message:t,chatId:n,replyToMessageId:s}=e;await Nn().post(`${kn}/${n}/messages`,{content:t,replyToMessageId:s,contentType:$e.TEXT})});ne.createEffect(async e=>{const{pollId:t,chatId:n,replyToMessageId:s}=e;await Nn().post(`${kn}/${n}/messages`,{contentType:$e.POLL,data:{pollId:t},replyToMessageId:s})});const vh=ne.createEffect(async e=>(await Nn().post(`${kn}/${e.chatId}/banUserFromChat`,{userId:e.userId}),{userId:e.userId})),Eh=ne.createEffect(async e=>(await Nn().delete(`${kn}/${e.chatId}/messages`,{data:{messageId:e.messageId}}),{messageId:e.messageId})),fs=ne.createEffect(async e=>{try{const t=e.lastSeenMessageId?`?lastSeenMessageId=${e.lastSeenMessageId}`:"",n=`${kn}/${e.chatId}/messages${t}`,s=await Nn().get(n),a=s.data.messages.map(l=>({...l,chatId:e.chatId}));return{hasMoreMessages:s.data.hasMoreMessages,messages:a}}catch(t){if(e.isTribesChat)return{hasMoreMessages:!1,messages:[]};throw t}}),hH=ne.createEffect(async e=>(await Nn().patch(`${kn}/${e.chatId}/pin-poll`,{messageId:e.messageId}),{messageId:e.messageId})),pH=ne.createEffect(async e=>{await Nn().patch(`${kn}/${e.chatId}/pin-poll`,{messageId:null})}),Sh=ne.createEffect(async e=>{var s;const t=`${kn}/${e.chatId}/messages/${e.messageId}/reactions`,n=await Nn().post(t,{reactionCode:e.reactionCode});if(!((s=n.data)!=null&&s.reaction))throw new Error("Failed to send chat reaction");return{...n.data.reaction,messageId:e.messageId}}),Lh=ne.createEffect(async e=>{const t=`${kn}/${e.chatId}/messages/${e.messageId}/reactions/${e.reactionId}`;return await Nn().delete(t),{messageId:e.messageId,reactionId:e.reactionId}}),Z5=()=>`temp_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,Dn=ne.createStore(null),Ah=ne.createStore(!1),Th=ne.createStore(""),wc=ne.createStore(0),ur=ne.createStore(null),ze=ne.createStore(null),_h=ne.createStore([]),Ve=ne.createStore([]),Rh=ne.createStore(null),Kr=ne.createStore([]),Xr=ne.createStore([]),zo=ne.createStore(!0),qo=ne.createStore(null),Yo=ne.createStore(!1),Ko=ne.createStore(!1),Vl=ne.createStore(!1),P0=ne.createStore(null),Va=ne.createStore(!1),Wl=ne.createStore(null),to=ne.createStore(!1),T1e=Et(Dn,e=>!!e),gH=Et(Ve,Kr,Xr,Dn,ze,(e,t,n,s,r)=>e.filter(i=>i.chatId&&i.chatId!==r?!1:!t.includes(i.messageId)).filter(i=>{var l;return!n.includes((l=i.author)==null?void 0:l.id)}).filter(i=>dr(i)).filter(i=>mH(i)).map(i=>{var l;return{...i,isOwn:((l=i.author)==null?void 0:l.id)===s}}).sort((i,l)=>new Date(i.createdAt).getTime()-new Date(l.createdAt).getTime())),_1e=Et(Ve,ur,(e,t)=>{if(!t)return null;const n=e.find(s=>s.messageId===t);return n?{...n,replyToMessage:null}:null}),R1e=e=>Et(Ve,Dn,(t,n)=>{const s=t.find(r=>Number(r.messageId)===Number(e));return!s||!s.reactions?{}:s.reactions.reduce((r,a)=>{if(!ov(a.reactionCode))return r;const i=r[a.reactionCode]||{count:0,hasReacted:!1};return a.authorUserId===n&&(i.hasReacted=!0,i.id=a.id),i.count+=1,r[a.reactionCode]=i,r},{})}),N1e=Et(gH,e=>{if(e.length===0)return[];const t=[];let n=null;for(const s of e){const r=new Date(s.createdAt);(!n||!xe.fromJSDate(n.date).hasSame(xe.fromJSDate(r),"day"))&&(n={date:r,messages:[]},t.push(n)),n.messages.push(s)}return t});let Nh=!1;const wH=()=>{Nh||(Nh=!0,Q({clock:cr,fn:()=>!0,target:to}),Q({clock:cr,fn:e=>e.currentUserId||null,target:Dn}),Q({clock:cr,fn:e=>!!e.isAdmin,target:Ah}),Q({clock:cr,fn:e=>e.liveMessageCap??null,target:Rh}),Q({clock:ev,target:Ah}),Q({clock:cr,fn:e=>e.chatSocketUrl,filter:e=>!!e.chatSocketUrl,target:Th}),Q({clock:bh.doneData,target:_h}),Q({clock:cr,target:[Ve.reinit,Kr.reinit,Xr.reinit,zo.reinit,qo.reinit,Yo.reinit,Ko.reinit,Vl.reinit,Va.reinit,Wl.reinit,P0.reinit]}),Q({clock:cr,fn:e=>e.chatId,filter:e=>!!e.chatId,target:ze}),Q({clock:cr,fn:e=>e.chatId,filter:e=>!!e.chatId,target:V5}),Q({clock:Ha.finally,source:to,filter:e=>e,fn:()=>!1,target:to}),Q({clock:gc,source:Et(ze,to),filter:([e,t],n)=>!t&&e!==null&&e!==n,fn:([e])=>e,target:k0}),Q({clock:gc,source:Et(ze,to),filter:([e,t],n)=>
7!t&&e!==n&&n!==null,fn:()=>{},target:[Ve.reinit,Kr.reinit,Xr.reinit,zo.reinit,qo.reinit,Yo.reinit,Ko.reinit,Vl.reinit,Va.reinit,Wl.reinit,P0.reinit]}),Q({clock:gc,source:Et(to,ze),filter:([e,t],n)=>!e&&n!==null&&typeof n=="number"&&t!==n,fn:(e,t)=>t,target:V5}),Q({clock:gc,target:ze}),Q({clock:zU,target:[Ve.reinit,Kr.reinit,Xr.reinit,zo.reinit,qo.reinit,Yo.reinit,Ko.reinit,Vl.reinit]}),Q({clock:V5,source:Th,fn:(e,t)=>({socketUrl:e,chatId:t}),filter:e=>!!e,target:Ha}),Q({clock:Qb,target:k0}),Q({clock:Ha.doneData,fn:e=>(e==null?void 0:e.token)||null,filter:e=>!!e,target:Wl}),Q({clock:Ha.doneData,filter:e=>!!e,fn:()=>!0,target:Va}),Q({clock:Ha.failData,fn:()=>!1,target:Va}),Q({clock:k0.done,fn:()=>!1,target:Va}),Q({clock:k0.done,fn:()=>null,target:Wl}),Q({clock:Ha.doneData,source:Et(ze,Ve),filter:([e,t],n)=>!!n&&!!e&&n.chatId===e&&t.length===0,fn:([e])=>({chatId:e,lastSeenMessageId:null}),target:fs}),Q({clock:fs,source:Ve,filter:e=>e.length===0,fn:()=>!0,target:Ko}),Q({clock:fs.finally,source:Ko,filter:e=>e,fn:()=>!1,target:Ko}),Q({clock:fs,fn:()=>!1,target:Vl}),Q({clock:fs.fail,fn:()=>!0,target:Vl}),Q({clock:wh,source:Et(zo,ze,Yo,qo),filter:([e,t,n])=>e&&!!t&&!n,fn:([e,t,n,s])=>({chatId:t,lastSeenMessageId:s}),target:fs}),Q({clock:fs,fn:()=>!0,target:Yo}),Q({clock:fs.finally,fn:()=>!1,target:Yo}),Q({clock:fs.doneData,source:Et(Ve,ze),fn:([e,t],n)=>{const s=n.messages.filter(i=>!i.chatId||i.chatId===t),r=new Set(e.map(i=>i.messageId));return[...s.filter(i=>!r.has(i.messageId)),...e]},target:Ve}),Q({clock:fs.doneData,fn:e=>{const t=e.messages.length>0?e.messages[0]:null;return(t==null?void 0:t.messageId)||null},target:qo}),Q({clock:fs.doneData,fn:e=>e.hasMoreMessages,target:zo}),Q({clock:y2,source:Et(Ve,ze,Dn,Rh),fn:([e,t,n,s],{message:r})=>{var a;if(r.chatId&&r.chatId!==t)return e;if((dr(r)||nH(r)||sH(r)||oH(r)||iH(r))&&!e.some(l=>l.messageId===r.messageId)){if(dr(r)&&((a=r.author)==null?void 0:a.id)===n){const c=e.filter(d=>{var f;return!(d.isPending&&((f=d.author)==null?void 0:f.id)===n&&d.contentType===r.contentType)});return yh([...c,r],s)}return yh([...e,r],s)}return e},target:Ve}),Q({clock:y2,source:Et(Xr,ze),fn:([e,t],{message:n})=>{var s;return n.chatId&&n.chatId!==t?e:rH(n)&&((s=n.data)!=null&&s.userId)&&!e.includes(n.data.userId)?[...e,n.data.userId]:e},target:Xr}),Q({clock:y2,source:Et(Kr,ze),fn:([e,t],{message:n})=>{var s;return n.chatId&&n.chatId!==t?e:aH(n)&&((s=n.data)!=null&&s.messageId)&&!e.includes(n.data.messageId)?[...e,n.data.messageId]:e},target:Kr}),Q({clock:hh,source:Et(Ve,ze,Dn,ur),filter:([,e,t])=>!!e&&!!t,fn:([e,t,n,s],{message:r})=>{const a=e.filter(c=>{var d;return dr(c)&&((d=c.author)==null?void 0:d.id)===n}).sort((c,d)=>new Date(d.createdAt).getTime()-new Date(c.createdAt).getTime())[0];if(!a||!dr(a))return e;const i=Z5(),l={content:r||"",contentType:$e.TEXT,type:"default",createdAt:new Date().toISOString(),messageId:-1*Date.now(),author:a.author,chatId:t,isOwn:!0,isPending:!0,tempId:i,replyToMessage:s&&e.find(c=>c.messageId===s)||null};return[...e,l]},target:Ve}),Q({clock:hh,source:[ze,ur],filter:([e])=>!!e,fn:([e,t],{message:n})=>({chatId:e,replyToMessageId:t,message:n}),target:O0}),Q({clock:ph,source:Et(Ve,ze,Dn,ur,_h),filter:([,e,t])=>!!e&&!!t,fn:([e,t,n,s,r],{data:a})=>{const i=e.filter(f=>{var u;return dr(f)&&((u=f.author)==null?void 0:u.id)===n}).sort((f,u)=>new Date(u.createdAt).getTime()-new Date(f.createdAt).getTime())[0];if(!i||!dr(i))return e;const l=a?r.find(f=>f.id===a.stickerId):void 0,c=Z5(),d={content:"",contentType:$e.STICKER,type:"default",createdAt:new Date().toISOString(),messageId:-1*Date.now(),author:i.author,chatId:t,data:a?{...a,animationData:a.animationData??(l==null?void 0:l.animationData)}:null,isOwn:!0,isPending:!0,tempId:c,replyToMessage:s&&e.find(f=>f.messageId===s)||null};return[...e,d]},target:Ve}),Q({clock:ph,source:[ze,ur],filter:([e,t])=>!!e,fn:([e,t],{data:n})=>({chatId:e,replyToMessageId:t,data:n}),target:I0}),Q({clock:gh,source:Et(Ve,ze,Dn,ur),filter:([,e,t])=>!!e&&!!t,fn:([e,t,n,s],{data:r})=>{const a=e.filter(c=>{var d;return dr(c)&&((d=c.author)==null?void 0:d.id)===n}).sort((c,d)=>new Date(d.createdAt).getTime()-new Date(c.createdAt).getTime())[0];if(!a||!dr(a))return e;const i=Z5(),l={content:"",contentType:$e.GIF,type:"default",createdAt:new Date().toISOString(),messageId:-1*Date.now(),author:a.author,chatId:t,data:r||null,isOwn:!0,isPending:!0,tempId:i,replyToMessage:s&&e.find(c=>c.messageId===s)||null};return[...e,l]},target:Ve}),Q({clock:gh,source:[ze,ur],filter:([e,t])=>!!e,fn:([e,t],{data:n})=>({chatId:e,replyToMessageId:t,data:n}),target:M0}
7),Q({clock:[O0.pending,M0.pending,I0.pending],target:xh}),Q({clock:O0.fail,fn:()=>({contentType:$e.TEXT}),target:W5}),Q({clock:O0.fail,source:Et(Ve,Dn),fn:([e,t])=>{const n=e.filter(r=>{var a;return r.isPending&&((a=r.author)==null?void 0:a.id)===t&&r.contentType===$e.TEXT});if(n.length===0)return e;const s=n.sort((r,a)=>new Date(a.createdAt).getTime()-new Date(r.createdAt).getTime())[0];return e.filter(r=>r.tempId!==s.tempId)},target:Ve}),Q({clock:I0.fail,fn:()=>({contentType:$e.STICKER}),target:W5}),Q({clock:I0.fail,source:Et(Ve,Dn),fn:([e,t])=>{const n=e.filter(r=>{var a;return r.isPending&&((a=r.author)==null?void 0:a.id)===t&&r.contentType===$e.STICKER});if(n.length===0)return e;const s=n.sort((r,a)=>new Date(a.createdAt).getTime()-new Date(r.createdAt).getTime())[0];return e.filter(r=>r.tempId!==s.tempId)},target:Ve}),Q({clock:M0.fail,fn:()=>({contentType:$e.GIF}),target:W5}),Q({clock:M0.fail,source:Et(Ve,Dn),fn:([e,t])=>{const n=e.filter(r=>{var a;return r.isPending&&((a=r.author)==null?void 0:a.id)===t&&r.contentType===$e.GIF});if(n.length===0)return e;const s=n.sort((r,a)=>new Date(a.createdAt).getTime()-new Date(r.createdAt).getTime())[0];return e.filter(r=>r.tempId!==s.tempId)},target:Ve}),Q({clock:JU,source:Ve,fn:(e,{tempId:t})=>e.filter(n=>n.tempId!==t),target:Ve}),Q({clock:ZU,source:ze,filter:e=>!!e,fn:(e,{messageId:t})=>({chatId:e,messageId:t}),target:Eh}),Q({clock:Eh.doneData,source:Kr,fn:(e,{messageId:t})=>e.includes(t)?e:[...e,t],target:Kr}),Q({clock:GU,source:ze,filter:e=>!!e,fn:(e,{userId:t})=>({chatId:e,userId:t}),target:vh}),Q({clock:vh.doneData,source:Xr,fn:(e,{userId:t})=>e.includes(t)?e:[...e,t],target:Xr}),Q({clock:Ch,fn:({token:e})=>e,target:Wl}),Q({clock:Ch,fn:()=>!0,target:Va}),Q({clock:qU,fn:()=>!1,target:Va}),Q({clock:YU,target:ur}),Q({clock:xh,fn:()=>null,target:ur}),qo.reset(ze),zo.reset(ze),wc.reset(ze),Q({clock:ze,target:wh}),wc.on(nv,e=>e+1),wc.on(sv,e=>Math.max(e-1,0)),Q({clock:tv,target:wc}),Q({clock:KU,source:[ze,Ve,Dn],filter:([e,t,n],s)=>{var i;if(!e)return!1;const r=t.find(l=>Number(l.messageId)===Number(s.messageId));return!(!r||((i=r.reactions)==null?void 0:i.find(l=>Number(l.authorUserId)===Number(n)&&l.reactionCode===s.reactionCode)))},fn:([e],t)=>({chatId:e,messageId:t.messageId,reactionCode:t.reactionCode}),target:Sh}),Q({clock:Sh.doneData,fn:e=>({id:e.id,messageId:e.messageId,reactionCode:e.reactionCode,authorUserId:e.authorUserId}),target:S6}),Ve.on(S6,(e,t)=>{const n=t.reactionCode;return ov(n)?e.map(s=>{var a;if(s.messageId!==t.messageId)return s;const r={id:t.id,reactionCode:n,authorUserId:t.authorUserId};return(a=s.reactions)!=null&&a.some(i=>i.id===r.id)?s:{...s,reactions:[...s.reactions||[],r]}}):e}),Q({clock:XU,source:[ze,Ve,Dn],filter:([e,t,n],s)=>{if(!e)return!1;const r=t.find(i=>Number(i.messageId)===Number(s.messageId));if(!r||!r.reactions)return!1;const a=r.reactions.find(i=>i.id===s.reactionId);return!(!a||a.authorUserId!==n)},fn:([e],t)=>({chatId:e,messageId:t.messageId,reactionId:t.reactionId}),target:Lh}),Q({clock:Lh.doneData,fn:e=>({id:e.reactionId,messageId:e.messageId}),target:L6}),Ve.on(L6,(e,{id:t,messageId:n})=>e.map(s=>{if(s.messageId!==n||!s.reactions)return s;const r=s.reactions.filter(a=>a.id!==t);return{...s,reactions:r}})),Q({clock:rv,target:P0}),Q({clock:Ha.doneData,filter:e=>!!e,fn:e=>e.pinnedPollMessageId,target:P0}),Q({clock:QU,source:ze,filter:e=>!!e,fn:(e,{messageId:t})=>({chatId:e,messageId:t}),target:hH}),Q({clock:eH,source:ze,filter:e=>!!e,fn:e=>({chatId:e}),target:pH}),bh())},CH="/chat/channels",xH=e=>`/chat/${e}/permissions`,iv="selectedChatId",kh=43,yH=200,bH=2e3;let oa=null;const vH=e=>{oa=e},ru=()=>{if(!oa)throw new Error("@whale-client/dataflow-chat-channels is not configured. Call configureChatChannelsDataflow() on app boot.");return oa},lv=()=>{var e;return((e=oa==null?void 0:oa.random)==null?void 0:e.call(oa))??Math.random()},EH=e=>e.map(t=>t.id).sort(),SH=({channelIds:e,cachedChatId:t,useCachedId:n=!0})=>n&&t&&e.includes(t)?t:e.length>0?e[0]:null,LH=e=>{const t=Number(e);return Number.isFinite(t)&&t>0?t:null},AH=(e,t)=>{const n=e.map(s=>({value:s.id.toString(),title:s.name}));return t?[{value:t.id.toString(),title:t.name},...n]:n},TH=(e,t=lv)=>Math.floor(e*kh+t()*kh),_H=(e,t)=>{if(e===t||e===0)return t;const n=t-e,s=Math.max(1,Math.floor(Math.abs(n)/100));return n>0?Math.min(e+s,t):Math.max(e-s,t)},RH=(e,t=yH,n=bH)=>{let s=null,r=!0;const a=()=>Math.floor(lv()*(n-t+1))+t,i=()=>{r&&(e(),s=setTimeout(i,a()))};return s=setTimeout(i,a()),()=>{r=!1,s&&clearTimeout(s)}},ft=Je("chatChannels"),NH=ft.createEvent("chatChannelsDataflowInitialised"),kH=ft.createEvent("channelsRequested"),D0=ft.createEvent("chatSelected"),G5=ft.createEvent("defaultChatRequested"),Ih=ft.createEvent("defaultChatResolved"),Mh=ft.createEvent("privateChannelSet"),Oh=ft.createEvent("privateChannelCleared"),Cc=ft.createEvent("permissionsRequested"),A6=ft.createEvent("participantsCountReported"),Ph=ft.createEvent("visibleParticipantsTicked"),F0=ft.createEvent("visibleParticipantsSet"),Xo=ft.createEffe
7ct(async()=>{const e=await ru().http.get(CH);return(e==null?void 0:e.channels)??[]}),j0=ft.createEffect(async e=>{const t=await ru().http.get(xH(e));return{canDeleteMessages:(t==null?void 0:t.canDeleteMessages)??!1,canBanUsers:(t==null?void 0:t.canBanUsers)??!1}}),IH=ft.createEffect(e=>{ru().storage.set(iv,String(e))}),Yc=ft.createStore([]),MH=ft.createStore(!0),ed=ft.createStore(null),td=ft.createStore(null),cv=ft.createStore(!1),Dh=ft.createStore(!1),Fh=ft.createStore(null),OH=ft.createStore(0),z5=ft.createStore(0),PH=P(Yc,EH),k1e=P(Yc,ed,AH),I1e=P(Yc,ed,td,(e,t,n)=>n===null?null:t&&t.id===n?t:e.find(s=>s.id===n)??null);let b2=null,$0=0;const jh=()=>{b2&&(b2(),b2=null)};let $h=!1;const DH=()=>{$h||($h=!0,Yc.on(Xo.doneData,(e,t)=>t),MH.on(Xo,()=>!0).on(Xo.finally,()=>!1),h({clock:[NH,kH],source:Yc,filter:e=>e.length===0&&!Xo.inFlight.getState(),target:Xo}),h({clock:Xo.done,fn:()=>({useCachedId:!0}),target:G5}),h({clock:G5,source:{channelIds:PH,privateChannel:ed},filter:({privateChannel:e})=>e===null,fn:({channelIds:e},t)=>SH({channelIds:e,cachedChatId:LH(ru().storage.get(iv)),useCachedId:(t==null?void 0:t.useCachedId)!==!1}),target:Ih}),h({clock:Ih,filter:e=>e!==null,target:D0}),td.on(D0,(e,t)=>t),h({clock:D0,target:IH}),ed.on(Mh,(e,t)=>t).reset(Oh),h({clock:Mh,fn:e=>e.id,target:D0}),h({clock:Oh,fn:()=>({useCachedId:!0}),target:G5}),h({clock:Cc,filter:e=>e!==null,target:j0}),cv.on(j0.doneData,(e,t)=>t.canDeleteMessages).on(j0.failData,()=>!1).on(Cc,(e,t)=>t===null?!1:e),Fh.on(Cc,(e,t)=>t),Dh.on(Cc,()=>!1),h({clock:j0.done,source:Fh,filter:(e,{params:t})=>e===t,fn:(e,{result:t})=>t.canBanUsers,target:Dh}),OH.on(A6,(e,t)=>t),z5.on(F0,(e,t)=>t),h({clock:Ph,source:z5,fn:e=>{const t=_H(e,$0);return t===$0&&jh(),t},target:F0}),A6.watch(e=>{if(jh(),e===0){F0(0);return}if($0=TH(e),z5.getState()===0){F0($0);return}b2=RH(()=>Ph())}))},FH=As("chatSurfaceOpened"),jH=As("chatSurfaceClosed"),dv=As("chatUserChanged"),uv=As("chatSurfaceCloseSettled");jH.watch(()=>{queueMicrotask(()=>uv())});const $H=Ls(0).on(FH,e=>e+1).on(uv,e=>Math.max(e-1,0)),BH=$H.map(e=>e>0),Bh=Ls(null).on(dv,(e,t)=>t),UH={get:e=>_e.get(e)},HH={get:e=>{try{return window.localStorage.getItem(e)}catch{return null}},set:(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}}},VH=200;let Wa=null;const WH=(e,t)=>e.chatId===t.chatId&&e.userId===t.userId&&e.isAdmin===t.isAdmin,ZH=(e,t)=>e.userId===t.userId,GH=(e,t,n)=>{if(!t||e===null){Wa&&(n.disconnect(Wa.chatId),Wa=null);return}if(Wa&&WH(Wa,e))return;const s=Wa;if(Wa=e,s===null||!ZH(s,e)){n.init(e);return}s.chatId!==e.chatId&&n.switchChannel(e),s.isAdmin!==e.isAdmin&&n.setAdmin(e.isAdmin)};let Uh=!1;const zH=()=>{Uh||(Uh=!0,lT(),vH({http:UH,storage:HH}),DH(),wH(),h({clock:P(td,Bh,(e,t)=>t===null?null:e),target:Cc}),h({clock:wc.updates,target:A6}),P({chatId:td,userId:Bh,isAdmin:cv,isOpen:BH}).watch(({chatId:e,userId:t,isAdmin:n,isOpen:s})=>{const r=a=>
7cr({chatSocketUrl:qi(),chatId:a.chatId,currentUserId:a.userId??void 0,isAdmin:a.isAdmin,liveMessageCap:VH});GH(e===null?null:{chatId:e,userId:t,isAdmin:n},s,{init:r,switchChannel:a=>{if(to.getState()){r(a);return}gc(a.chatId)},setAdmin:a=>ev(a),disconnect:a=>Qb(a)})}))},Hh=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},qH={get:(e,t,n)=>Hh(()=>_e.get(e,{query:t,signal:n==null?void 0:n.signal})),post:(e,t,n)=>Hh(()=>_e.post(e,t,n))};let Vh=!1;const YH=()=>{Vh||(Vh=!0,zR({http:qH,trackEvent:Te,lootboxCategory:f1?Xg:void 0}),h({clock:lc,target:co}))},KH=["WHALE","TON","BTC","ETH","SOL","BNB","BONK","NOT","TRUMP"],XH="WHALE",Wh=8,M1e="#54D149",O1e="#FF6659",fv=.01,P1e="10,000x",JH="/currency/rates/all/24h";let T6=null;const QH=e=>{T6=e},eV=()=>{if(!T6)throw new Error("@whale-client/dataflow-crypto-markets is not configured. Call configureCryptoMarketsDataflow() on app boot.");return T6},tV=e=>[...e].sort((t,n)=>new Date(t.createdAt).getTime()-new Date(n.createdAt).getTime()),Zh=e=>Number(e.rate),nV=(e,t)=>{if(t.length<Wh)return null;const n=tV(t),s=n.map(Zh).filter(c=>Number.isFinite(c));if(s.length<Wh)return null;const r=s[0],a=s[s.length-1],i=a-r,l=r>0?i/r*100:0;return{currency:e,rate:a,change:i,changePercent:l,series:n.map(c=>({time:c.createdAt,rate:Zh(c)})),min:Math.min(...s),max:Math.max(...s),isUp:i>=0}},sV=e=>{const t=[];for(const n of KH){if(n===XH){t.push({currency:n,rate:0,change:0,changePercent:0,series:[],min:0,max:0,isUp:!0});continue}const s=nV(n,(e==null?void 0:e[n])??[]);s&&t.push(s)}return t},D1e=e=>Number.isFinite(e)?Math.abs(e)<fv?`$${e.toFixed(8)}`:new Intl.NumberFormat("en-us",{style:"currency",currency:"USD"}).format(e):"$0.00",F1e=e=>{if(!Number.isFinite(e))return"+0.00";const t=Math.abs(e),n=t<fv?8:2;return`${e>=0?"+":"-"}${t.toFixed(n)}`},j1e=e=>Number.isFinite(e)?`(${e>=0?"+":"-"}${Math.abs(e).toFixed(2)}%)`:"(+0.00%)",au=Je("cryptoMarkets"),rV=au.createEvent("cryptoMarketsMounted"),Kc=au.createEffect(async()=>{const{status:e,data:t}=await eV().http.get(JH);return e!==200||!t||typeof t!="object"?{}:t}),aV=au.createStore({},{name:"marketRates"}).on(Kc.doneData,(e,t)=>t),$1e=aV.map(e=>sV(e));Kc.pending;au.createStore(!1,{name:"marketRatesLoaded"}).on(Kc.finally,()=>!0);h({clock:rV,source:Kc.pending,filter:e=>!e,target:Kc});const oV=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},iV={get:e=>oV(()=>_e.get(e))};let Gh=!1;const lV=()=>{Gh||(Gh=!0,QH({http:iV}))};var mv=cT();const cV=Sd(mv);function dV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const uV=e=>{switch(e){case"success":return hV;case"info":return gV;case"warning":return pV;case"error":return wV;default:return null}},fV=Array(12).fill(0),mV=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},fV.map((n,s)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),hV=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),pV=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),gV=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),wV=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),CV=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),xV=()=>{const[e,t]=$.useState(document.hidden);return $.useEffect(()=>{const n=()=>{t(document.hidden)};
7return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e};let yV=1;const bV=100,zh=e=>{var t;return typeof(e==null?void 0:e.id)=="number"||(e==null||(t=e.id)==null?void 0:t.length)>0?e.id:yV++};class vV{constructor(){this.subscribe=t=>(this.subscribers.push(t),this.getActiveToasts().forEach(n=>t(n)),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t],this.trimHistory()},this.trimHistory=()=>{let t=this.toasts.length-bV;t<=0||(this.toasts=this.toasts.filter(n=>t>0&&this.dismissedToasts.has(n.id)?(this.dismissedToasts.delete(n.id),t--,!1):!0))},this.create=t=>{const{message:n,...s}=t,r=zh(t),a=this.pendingDismissals.get(r);a!==void 0&&(cancelAnimationFrame(a),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));const i=this.dismissedToasts.has(r),l=t.dismissible===void 0?!0:t.dismissible;return i&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(d=>d.id!==r)),(i?void 0:this.toasts.find(d=>d.id===r))?this.toasts=this.toasts.map(d=>d.id===r?(this.publish({...d,...t,id:r,title:n}),{...d,...t,id:r,dismissible:l,title:n}):d):this.addToast({title:n,...s,dismissible:l,id:r}),r},this.dismiss=t=>
7{if(t==null)return this.getActiveToasts().forEach(s=>{this.dismissedToasts.add(s.id),this.subscribers.forEach(r=>r({id:s.id,dismiss:!0}))}),t;this.dismissedToasts.add(t);const n=this.pendingDismissals.get(t);return n!==void 0&&cancelAnimationFrame(n),this.pendingDismissals.set(t,requestAnimationFrame(()=>{this.pendingDismissals.delete(t),this.subscribers.forEach(s=>s({id:t,dismiss:!0}))})),t},this.message=(t,n)=>this.create({...n,message:t,type:void 0}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let a=s!==void 0,i;const l=r.then(async d=>{if(i=["resolve",d],$.isValidElement(d))a=!1,this.create({id:s,type:"default",message:d});else if(SV(d)&&!d.ok){a=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,C=typeof u=="object"&&!$.isValidElement(u)?u:{message:u};this.create({id:s,type:"error",description:m,...C})}else if(d instanceof Error){a=!1;const u=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,C=typeof u=="object"&&!$.isValidElement(u)?u:{message:u};this.create({id:s,type:"error",description:m,...C})}else if(n.success!==void 0){a=!1;const u=typeof n.success=="function"?await n.success(d):n.success,m=typeof n.description=="function"?await n.description(d):n.description,C=typeof u=="object"&&!$.isValidElement(u)?u:{message:u};this.create({id:s,type:"success",description:m,...C})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){a=!1;const f=typeof n.error=="function"?await n.error(d):n.error,u=typeof n.description=="function"?await n.description(d):n.description,p=typeof f=="object"&&!$.isValidElement(f)?f:{message:f};this.create({id:s,type:"error",description:u,...p})}}).finally(()=>{a&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((d,f)=>l.then(()=>i[0]==="reject"?f(i[1]):d(i[1])).catch(f));return typeof s!="string"&&typeof s!="number"?{unwrap:c}:Object.assign(s,{unwrap:c})},this.custom=(t,n)=>{const s=zh(n);return this.create({...n,jsx:t(s),id:s,type:void 0}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}const bn=new vV,EV=(e,t)=>bn.message(e,t),SV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LV=EV,AV=()=>bn.toasts,TV=()=>bn.getActiveToasts(),_V=Object.assign(LV,{success:bn.success,info:bn.info,warning:bn.warning,error:bn.error,custom:bn.custom,message:bn.message,promise:bn.promise,dismiss:bn.dismiss,loading:bn.loading},{getHistory:AV,getToasts:TV});dV
vendor: 14,921 bytes, line 7
7("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
vendor: 1,449 bytes, line 7
7function B0(e){return e.label!==void 0}const RV=3,NV="24px",kV="16px",qh=4e3,IV=356,MV=14,OV=45,PV=200;function Ds(...e){return e.filter(Boolean).join(" ")}function DV(e){const[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}const FV=e=>{var t,n,s,r,a,i,l,c,d;const{invert:f,toast:u,unstyled:m,interacting:p,setHeights:C,visibleToasts:b,heights:v,index:E,toasts:x,expanded:g,removeToast:A,defaultRichColors:k,closeButton:R,style:O,cancelButtonStyle:U,actionButtonStyle:V,className:z="",descriptionClassName:G="",duration:W,position:I,gap:H,expandByDefault:j,classNames:N,icons:q,closeButtonAriaLabel:ee="Close toast"}=e,[ae,Se]=$.useState(null),[ce,be]=$.useState(null),[se,Y]=$.useState(!1),[ge,ke]=$.useState(!1),[ot,_t]=$.useState(!1),[Be,S]=$.useState(!1),[L,K]=$.useState(!1),[we,Rt]=$.useState(0),[Pr,te]=$.useState(0),Qe=$.useRef(u.duration||W||qh),Na=$.useRef(null),In=$.useRef(null),bl=E===0,Dr=E+1<=b,Dt=u.type,Do=Dt??"default",Zn=u.dismissible!==!1,X1=u.className||"",J1=u.descriptionClassName||"",ka=$.useMemo(()=>v.findIndex(me=>me.toastId===u.id)||0,[v,u.id]),Q1=$.useMemo(()=>{var me;return(me=u.closeButton)!=null?me:R},[u.closeButton,R]),vl=$.useMemo(()=>u.duration||W||qh,[u.duration,W]),Fo=$.useRef(0),Xs=$.useRef(0),El=$.useRef(0),De=$.useRef(null),[Sl,ls]=I.split("-"),Ia=$.useMemo(()=>v.reduce((me,Ct,Nt)=>Nt>=ka?me:me+Ct.height,0),[v,ka]),Ll=xV(),Mn=$.useMemo(()=>{var me;return(me=e.swipeDirections)!=null?me:DV(I)}
vendor: 7,615 bytes, line 7
7,[e.swipeDirections,I]),Ma=u.invert||f,Fr=Dt==="loading";Xs.current=$.useMemo(()=>ka*H+Ia,[ka,Ia]),$.useEffect(()=>{Qe.current=vl},[vl]),$.useEffect(()=>{Y(!0)},[]),$.useEffect(()=>{const me=In.current;if(me){const Ct=me.getBoundingClientRect().height;return te(Ct),C(Nt=>[{toastId:u.id,height:Ct,position:u.position},...Nt]),()=>C(Nt=>Nt.filter(qt=>qt.toastId!==u.id))}},[C,u.id]),$.useLayoutEffect(()=>{if(!se)return;const me=In.current,Ct=me.style.height;me.style.height="auto";const Nt=me.getBoundingClientRect().height;me.style.height=Ct,te(Nt),C(qt=>qt.find(vt=>vt.toastId===u.id)?qt.map(vt=>vt.toastId===u.id?{...vt,height:Nt}:vt):[{toastId:u.id,height:Nt,position:u.position},...qt])},[se,u.title,u.description,C,u.id,u.jsx,u.action,u.cancel]);const cs=$.useCallback(()=>{ke(!0),Rt(Xs.current),C(me=>me.filter(Ct=>Ct.toastId!==u.id)),setTimeout(()=>{A(u)},PV)},[u,A,C,Xs]);$.useEffect(()=>{if(u.promise&&Dt==="loading"||u.duration===1/0||u.type==="loading")return;let me;return g||p||Ll?(()=>{if(El.current<Fo.current){const qt=new Date().getTime()-Fo.current;Qe.current=Qe.current-qt}El.current=new Date().getTime()})():(()=>{Qe.current!==1/0&&(Fo.current=new Date().getTime(),me=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),cs()},Qe.current))})(),()=>clearTimeout(me)},[g,p,u,Dt,Ll,cs]),$.useEffect(()=>{u.delete&&(cs(),u.onDismiss==null||u.onDismiss.call(u,u))},[cs,u.delete]);function e0(){var me;if(q!=null&&q.loading){var Ct;return $.createElement("div",{className:Ds(N==null?void 0:N.loader,u==null||(Ct=u.classNames)==null?void 0:Ct.loader,"sonner-loader"),"data-visible":Dt==="loading"},q.loading)}return $.createElement(mV,{className:Ds(N==null?void 0:N.loader,u==null||(me=u.classNames)==null?void 0:me.loader),visible:Dt==="loading"})}const Al=u.icon||(q==null?void 0:q[Dt])||uV(Dt);var Js,Oa;return $.createElement("li",{tabIndex:0,ref:In,className:Ds(z,X1,N==null?void 0:N.toast,u==null||(t=u.classNames)==null?void 0:t.toast,N==null?void 0:N[Do],u==null||(n=u.classNames)==null?void 0:n[Do]),"data-sonner-toast":"","data-rich-colors":(Js=u.richColors)!=null?Js:k,"data-styled":!(u.jsx||u.unstyled||m),"data-mounted":se,"data-promise":!!u.promise,"data-swiped":L,"data-removed":ge,"data-visible":Dr,"data-y-position":Sl,"data-x-position":ls,"data-index":E,"data-front":bl,"data-swiping":ot,"data-dismissible":Zn,"data-type":Dt,"data-invert":Ma,"data-swipe-out":Be,"data-swipe-direction":ce,"data-expanded":!!(g||j&&se),"data-testid":u.testId,style:{"--index":E,"--toasts-before":E,"--z-index":x.length-E,"--offset":`${ge?we:Xs.current}px`,"--initial-height":j?"auto":`${Pr}px`,...O,...u.style},onDragEnd:()=>{_t(!1),Se(null),De.current=null},onPointerDown:me=>{me.button!==2&&(Fr||!Zn||(Na.current=new Date,Rt(Xs.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(_t(!0),De.current={x:me.clientX,y:me.clientY})))},onPointerUp:()=>{var me,Ct,Nt;if(Be||!Zn)return;De.current=null;const qt=Number(((me=In.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qs=Number(((Ct=In.current)==null?void 0:Ct.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),vt=new Date().getTime()-((Nt=Na.current)==null?void 0:Nt.getTime()),Cn=ae==="x"?qt:Qs,xn=Math.abs(Cn)/vt;if((ae==="x"?Mn.includes(qt>0?"right":"left"):Mn.includes(Qs>0?"bottom":"top"))&&(Math.abs(Cn)>=OV||xn>.11)){Rt(Xs.current),u.onDismiss==null||u.onDismiss.call(u,u),be(ae==="x"?qt>0?"right":"left":Qs>0?"down":"up"),cs(),S(!0);return}else{var cn,$o;(cn=In.current)==null||cn.style.setProperty("--swipe-amount-x","0px"),($o=In.current)==null||$o.style.setProperty("--swipe-amount-y","0px")}K(!1),_t(!1),Se(null)},onPointerMove:me=>{var Ct,Nt,qt;if(!De.current||!Zn||((Ct=window.getSelection())==null?void 0:Ct.toString().length)>0)return;const vt=me.clientY-De.current.y,Cn=me.clientX-De.current.x;!ae&&(Math.abs(Cn)>1||Math.abs(vt)>1)&&Se(Math.abs(Cn)>Math.abs(vt)?"x":"y");let xn={x:0,y:0};const jo=cn=>1/(1.5+Math.abs(cn)/20);if(ae==="y"){if(Mn.includes("top")||Mn.includes("bottom"))if(Mn.includes("top")&&vt<0||Mn.includes("bottom")&&vt>0)xn.y=vt;else{const cn=vt*jo(vt);xn.y=Math.abs(cn)<Math.abs(vt)?cn:vt}}else if(ae==="x"&&(Mn.includes("left")||Mn.includes("right")))if(Mn.includes("left")&&Cn<0||Mn.includes("right")&&Cn>0)xn.x=Cn;else{const cn=Cn*jo(Cn);xn.x=Math.abs(cn)<Math.abs(Cn)?cn:Cn}(Math.abs(xn.x)>0||Math.abs(xn.y)>0)&&K(!0),(Nt=In.current)==null||Nt.style.setProperty("--swipe-amount-x",`${xn.x}px`),(qt=In.current)==null||qt.style.setProperty("--swipe-amount-y",`${xn.y}px`)}},Q1&&!u.jsx&&Dt!=="loading"?$.createElement("button",{"aria-label":ee,"data-disabled":Fr,"data-close-button":!0,onClick:Fr||!Zn?()=>{}:()=>{cs(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Ds(N==null?void 0:N.closeButton,u==null||(s=u.classNames)==null?void 0:s.closeButton)},(Oa=q==null?void 0:q.close)!=null?Oa:CV):null,(Dt||u.icon||u.promise)&&u.icon!==null&&((q==null?void 0:q[Dt])!==null||u.icon)?$.createElement("div",{"data-icon":"",className:Ds(N==null?void 0:N.icon,u==null||(r=u.classNames)==null?void 0:r.icon)},Dt==="loading"?u.icon||e0():u.promise?e0():null,Dt!=="loading"?Al:null):null,$.createElement("div",{"data-content":"",className:Ds(N==null?void 0:N.content,u==null||(a=u.classNames)==null?void 0:a.content)},$.createElement("div",{"data-title":"",className:Ds(N==null?void 0:N.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?$.createElement("div",{"data-description":"",className:Ds(G,J1,N==null?void 0:N.description,u==null||(l=u.classNames)==null?void 0:l.description)},typeof u.description=="function"?u.description():u.description):null),$.isValidElement(u.cancel)?u.cancel:u.cancel&&B0(u.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||U,onClick:me=>{B0(u.cancel)&&Zn&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,me),cs())},className:Ds(N==null?void 0:N.cancelButton,u==null||(c=u.classNames)==null?void 0:c.cancelButton)},u.cancel.label):null,$.isValidElement(u.action)?u.action:u.action&&B0(u.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||V,onClick:me=>{B0(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,me),!me.defaultPrevented&&cs())},className:Ds(N==null?void 0:N.actionButton,u==null||(d=u.classNames)==null?void 0:d.actionButton)},u.action.label):null)};function Yh(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function jV(e,t){const n={};return[e,t].forEach((s,r)=>{const a=r===1,i=a?"--mobile-offset":"--offset",l=a?kV:NV;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof s=="number"||typeof s=="string"?c(s):typeof s=="object"?["top","right","bottom","left"].forEach(d=>{s[d]===void 0?n[`${i}-${d}`]=l:n[`${i}-${d}`]=typeof s[d]=="number"?`${s[d]}px`:s[d]}):c(l)}),n}const B1e=$.forwardRef(function(t,n){const{id:s,invert:r,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:f,mobileOffset:u,theme:m="light",richColors:p,duration:C,style:b,visibleToasts:v=RV,toastOptions:E,dir:x=Yh(),gap:g=MV,icons:A,customAriaLabel:k,containerAriaLabel:R="Notifications"}=t,[O,U]=$.useState([]),V=$.useMemo(()=>s?O.filter(Y=>Y.toasterId===s):O.filter(Y=>!Y.toasterId),[O,s]),z=$.useMemo(()=>Array.from(new Set([a].concat(V.filter(Y=>Y.position).map(Y=>
7Y.position)))),[V,a]),[G,W]=$.useState([]),[I,H]=$.useState(!1),[j,N]=$.useState(!1),[q,ee]=$.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ae=$.useRef(null),Se=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),ce=$.useRef(null),be=$.useRef(!1),se=$.useCallback(Y=>{U(ge=>{var ke;return(ke=ge.find(ot=>ot.id===Y.id))!=null&&ke.delete||bn.dismiss(Y.id),ge.filter(({id:ot})=>ot!==Y.id)})},[]);return $.useEffect(()=>bn.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{U(ge=>ge.map(ke=>ke.id===Y.id?{...ke,delete:!0}:ke))});return}setTimeout(()=>{cV.flushSync(()=>{U(ge=>{const ke=ge.findIndex(ot=>ot.id===Y.id);return ke!==-1?[...ge.slice(0,ke),{...ge[ke],...Y},...ge.slice(ke+1)]:[Y,...ge]})})})}),[]),$.useEffect(()=>{if(m!=="system"){ee(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ee("dark"):ee("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:ge})=>{ee(ge?"dark":"light")})}catch{Y.addListener(({matches:ke})=>{try{ee(ke?"dark":"light")}catch(ot){console.error(ot)}})}},[m]),$.useEffect(()=>{O.length<=1&&H(!1)},[O]),$.useEffect(()=>{const Y=ge=>{var ke;if(i.length>0&&i.every(Be=>ge[Be]||ge.code===Be)){var _t;H(!0),(_t=ae.current)==null||_t.focus()}ge.code==="Escape"&&(document.activeElement===ae.current||(ke=ae.current)!=null&&ke.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[i]),$.useEffect(()=>{if(ae.current)return()=>{ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null,be.current=!1)}},[ae.current]),$.createElement("section",{ref:n,"aria-label":k??`${R} ${Se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},z.map((Y,ge)=>{var ke;const[ot,_t]=Y.split("-");return V.length?$.createElement("ol",{key:Y,dir:x==="auto"?Yh():x,tabIndex:-1,ref:ae,className:d,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":ot,"data-x-position":_t,style:{"--front-toast-height":`${((ke=G[0])==null?void 0:ke.height)||0}px`,"--width":`${IV}px`,"--gap":`${g}px`,...b,...jV(f,u)},onBlur:Be=>{be.current&&!Be.currentTarget.contains(Be.relatedTarget)&&(be.current=!1,ce.current&&(ce.current.focus({preventScroll:!0}),ce.current=null))},onFocus:Be=>{Be.target instanceof HTMLElement&&Be.target.dataset.dismissible==="false"||be.current||(be.current=!0,ce.current=Be.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{j||H(!1)},onDragEnd:()=>H(!1),onPointerDown:Be=>{Be.target instanceof HTMLElement&&Be.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},V.filter(Be=>!Be.position&&ge===0||Be.position===Y).map((Be,S)=>{var L,K;return $.createElement(FV,{key:Be.id,icons:A,index:S,toast:Be,defaultRichColors:p,duration:(L=E==null?void 0:E.duration)!=null?L:C,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:r,visibleToasts:v,closeButton:(K=E==null?void 0:E.closeButton)!=null?K:c,interacting:j,position:Y,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:se,toasts:V.filter(we=>we.position==Be.position),heights:G.filter(we=>we.position==Be.position),setHeights:W,expandByDefault:l,gap:g,expanded:I,swipeDirections:t.swipeDirections})})):null}))}),$V=6e3,hn=As(),BV=Ye(({level:e,title:t,body:n})=>{_V[e](t,{description:n})});h({clock:hn,target:BV});const Kh=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},UV={get:(e,t)=>Kh(()=>_e.get(e,{query:t})),post:(e,t)=>Kh(()=>_e.post(e,t))},HV=Ls(0).on(h({clock:D3,source:fr}),(e,t)=>(t==null?void 0:t.commissionBalanceInCurrency)??0),VV=Ls(0).on(h({clock:uT,source:dT}),(e,t)=>t.available);let Xh=!1;const WV=()=>
7{Xh||(Xh=!0,II({http:UV,getSocketUrl:qi,trackEvent:Te}),h({clock:B2.done,source:{amount:HV,currency:BI},fn:({amount:e,currency:t})=>({level:"success",title:w("notification.toast.success.title"),body:w("modals.refer.claimed",{amount:hf(e),currency:t})}),target:hn}),h({clock:z9.done,source:VV,fn:e=>({level:"success",title:w("notification.toast.success.title"),body:w("modals.refer.tribes.claimed",{amount:hf(e),currency:"USDT"})}),target:hn}),h({clock:z9.fail,fn:()=>({level:"error",title:"Error",body:"Something went wrong"}),target:hn}))},Bn={AUTOPLAY:"autoplay",MANUAL:"manual"},hv={BATTLEPASS_REQUIRED:"E1003"},U0={CURRENCY_NOT_ALLOWED:"currency-not-allowed",BAD_MIN_AMOUNT:"bad-min-amount",BAD_MAX_AMOUNT:"bad-max-amount",NOT_ENOUGH_BALANCE:"not-enough-balance"},no={EASY:"easy",MEDIUM:"medium",HARD:"hard"},so={EASY:"easy",MEDIUM:"medium",HARD:"hard"},L7={LOW:"low",MEDIUM:"medium",HIGH:"high"},Xc={LEFT:"left",RIGHT:"right"},ro={EASY:"easy",MEDIUM:"medium",HARD:"hard"},nd=2,ZV=2,Sn={BET_PLACED:"bet_placed",BET_CASHOUT:"bet_cashout"},Kn={DEAL:"deal",HIT:"hit",STAND:"stand",DOUBLE:"double",SPLIT:"split",INSURANCE:"insurance"},bi={LEFT:"left",CENTER:"center",RIGHT:"right"},GV=[bi.LEFT,bi.CENTER,bi.RIGHT],zV={FINISHED:"finished"},U1e={WIN:"win",LOSE:"lose",PUSH:"push",BLACKJACK:"blackjack",SURRENDER:"surrender"},pv=["A","2","3","4","5","6","7","8","9","T","J","Q","K"],gv=["s","h","d","c"],ye={PLAYER:"player",BANKER:"banker",TIE:"tie",PLAYER_PAIR:"player_pair",BANKER_PAIR:"banker_pair",PERFECT_PAIR_PLAYER:"perfect_pair_player",PERFECT_PAIR_BANK:"perfect_pair_bank"},ou=[ye.PLAYER_PAIR,ye.PERFECT_PAIR_PLAYER,ye.PERFECT_PAIR_BANK,ye.BANKER_PAIR],wv=[ye.PLAYER,ye.TIE,ye.BANKER],Aa=Object.values(ye),mr={PLAYER:"player",BANKER:"banker",TIE:"tie"},qV={COMMISSION_FREE:"commission_free"},gt={BET_COLLECTION_OPEN:"bet_collection_open",BET_COLLECTION_CLOSED:"bet_collection_closed",ANIMATION_STARTED:"animation_started",COOLDOWN:"cooldown",TICK:"tick"},sd={BET:"bet",GAME_STATE:"game_state"},YV=10,q5="original-games",as={PROVABLY_FAIR:`/${q5}/provably-fair`,GAMES:`/${q5}/games`,TRANSACTION:`/${q5}/transaction`},Cv={betAmountInUsd:{min:.1,max:5e3,default:5}},KV=10,XV=2e3,JV=500,A7=300,iu=50,H1e=8,QV=2e3,eW=5e3,tW=200,nW=2500,sW=1e3,rW=800,V1e=300,W1e={COL_WIDTH:170,GAP:8,ANIMATION_SPEED_MS:400,ROADBLOCK_ANIMATION_SPEED_MS:500,CAR_ANIMATION_SPEED_MS:1e3,ANIMATION_DELAY_MS:0},xv=e=>`${e}:audio:state`,Jh=3,aW=e=>`/auth-sync/socket-public/${e}`,oW=e=>`original_games_${e}`,Z1e={THRESHOLD_SECONDS:3,OFFSET_SECONDS:.67,INTERVAL_MS:33},G1e=6,z1e={MIN_MULTIPLIER:5,VISIBLE_MS:250},Zl={LOW_PROBABILITY_REPETITIONS:1,HIGH_PROBABILITY_REPETITIONS:7,SET_REPETITIONS:12,LOW_PROBABILITY_THRESHOLD:.1,ROLL_DURATION_MS:5500,MIN_SCROLL_DISTANCE_PX:1e4},q1e={DURATION_MS:500,STEP_MS:21};class T7 extends Error{constructor(){super(hv.BATTLEPASS_REQUIRED),this.name="BattlepassRequiredError"}}/*!
8 *  decimal.js v10.6.0
9 *  An arbitrary-precision Decimal type for JavaScript.
10 *  https://github.com/MikeMcl/decimal.js
11 *  Copyright (c) 2025 Michael Mclaughlin <[email protected]>
12 *  MIT Licence
13 */var hi=9e15,Ta=1e9,_6="0123456789abcdef",rd="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ad="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823
13066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",R6={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-hi,maxE:hi,crypto:!1},yv,pr,he=!0,lu="[DecimalError] ",xa=lu+"Invalid argument: ",bv=lu+"Precision limit exceeded",vv=lu+"crypto unavailable",Ev="[object Decimal]",tn=Math.floor,kt=Math.pow,iW=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,lW=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,cW=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Sv=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xs=1e7,de=7,dW=9007199254740991,uW=rd.length-1,N6=ad.length-1,B={toStringTag:Ev};B.absoluteValue=B.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),oe(e)};B.ceil=function(){return oe(new this.constructor(this),this.e+1,2)};B.clampedTo=B.clamp=function(e,t){var n,s=this,r=s.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(xa+t);return n=s.cmp(e),n<0?e:s.cmp(t)>0?t:new r(s)};B.comparedTo=B.cmp=function(e){var t,n,s,r,a=this,i=a.d,l=(e=new a.constructor(e)).d,c=a.s,d=e.s;if(!i||!l)return!c||!d?NaN:c!==d?c:i===l?0:!i^c<0?1:-1;if(!i[0]||!l[0])return i[0]?c:l[0]?-d:0;if(c!==d)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(s=i.length,r=l.length,t=0,n=s<r?s:r;t<n;++t)if(i[t]!==l[t])return i[t]>l[t]^c<0?1:-1;return s===r?0:s>r^c<0?1:-1};B.cosine=B.cos=function(){var e,t,n=this,s=n.constructor;return n.d?n.d[0]?(e=s.precision,t=s.rounding,s.precision=e+Math.max(n.e,n.sd())+de,s.rounding=1,n=fW(s,Rv(s,n)),s.precision=e,s.rounding=t,oe(pr==2||pr==3?n.neg():n,e,t,!0)):new s(1):new s(NaN)};B.cubeRoot=B.cbrt=function(){var e,t,n,s,r,a,i,l,c,d,f=this,u=f.constructor;if(!f.isFinite()||f.isZero())return new u(f);for(he=!1,a=f.s*kt(f.s*f,1/3),!a||Math.abs(a)==1/0?(n=Wt(f.d),e=f.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=kt(n,1/3),e=tn((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),s=new u(n),s.s=f.s):s=new u(a.toString()),i=(e=u.precision)+3;;)if(l=s,c=l.times(l).times(l),d=c.plus(f),s=Ke(d.plus(f).times(l),d.plus(c),i+2,1),Wt(l.d).slice(0,i)===(n=Wt(s.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!r&&n=="4999"){if(!r&&(oe(l,e+1,0),l.times(l).times(l).eq(f))){s=l;break}i+=4,r=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(oe(s,e+1,1),t=!s.times(s).times(s).eq(f));break}return he=!0,oe(s,e,u.rounding,t)};B.decimalPlaces=B.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-tn(this.e/de))*de,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};B.dividedBy=B.div=function(e){return Ke(this,new this.constructor(e))};B.dividedToIntegerBy=B.divToInt=function(e){var t=this,n=t.constructor;return oe(Ke(t,new n(e),0,1,1),n.precision,n.rounding)};B.equals=B.eq=function(e){return this.cmp(e)===0};B.floor=function(){return oe(new this.constructor(this),this.e+1,3)};B.greaterThan=B.gt=function(e){return this.cmp(e)>0};B.greaterThanOrEqualTo=B.gte=function(e){var t=this.cmp(e);return t==1||t===0};B.hyperbolicCosine=B.cosh=function(){var e,t,n,s,r,a=this,i=a.constructor,l=new i(1);if(!a.isFinite())return new i(a.s?1/0:NaN);if(a.isZero())return l;n=i.precision,s=i.rounding,i.precision=n+Math.max(a.e,a.sd())+4,i.rounding=1,r=a.d.length,r<32?(e=Math.ceil(r/3),t=(1/du(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=ji(i,1,a.times(t),new i(1),!0);for(var c,d=e,f=new i(8);d--;)c=a.times(a),a=l.minus(c.times(f.minus(c.times(f))));
vendor: 4,868 bytes, line 13
13return oe(a,i.precision=n,i.rounding=s,!0)};B.hyperbolicSine=B.sinh=function(){var e,t,n,s,r=this,a=r.constructor;if(!r.isFinite()||r.isZero())return new a(r);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(r.e,r.sd())+4,a.rounding=1,s=r.d.length,s<3)r=ji(a,2,r,r,!0);else{e=1.4*Math.sqrt(s),e=e>16?16:e|0,r=r.times(1/du(5,e)),r=ji(a,2,r,r,!0);for(var i,l=new a(5),c=new a(16),d=new a(20);e--;)i=r.times(r),r=r.times(l.plus(i.times(c.times(i).plus(d))))}return a.precision=t,a.rounding=n,oe(r,t,n,!0)};B.hyperbolicTangent=B.tanh=function(){var e,t,n=this,s=n.constructor;return n.isFinite()?n.isZero()?new s(n):(e=s.precision,t=s.rounding,s.precision=e+7,s.rounding=1,Ke(n.sinh(),n.cosh(),s.precision=e,s.rounding=t)):new s(n.s)};B.inverseCosine=B.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),s=t.precision,r=t.rounding;return n!==-1?n===0?e.isNeg()?Us(t,s,r):new t(0):new t(NaN):e.isZero()?Us(t,s+4,r).times(.5):(t.precision=s+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=s,t.rounding=r,e.times(2))};B.inverseHyperbolicCosine=B.acosh=function(){var e,t,n=this,s=n.constructor;return n.lte(1)?new s(n.eq(1)?0:NaN):n.isFinite()?(e=s.precision,t=s.rounding,s.precision=e+Math.max(Math.abs(n.e),n.sd())+4,s.rounding=1,he=!1,n=n.times(n).minus(1).sqrt().plus(n),he=!0,s.precision=e,s.rounding=t,n.ln()):new s(n)};B.inverseHyperbolicSine=B.asinh=function(){var e,t,n=this,s=n.constructor;return!n.isFinite()||n.isZero()?new s(n):(e=s.precision,t=s.rounding,s.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,s.rounding=1,he=!1,n=n.times(n).plus(1).sqrt().plus(n),he=!0,s.precision=e,s.rounding=t,n.ln())};B.inverseHyperbolicTangent=B.atanh=function(){var e,t,n,s,r=this,a=r.constructor;return r.isFinite()?r.e>=0?new a(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=a.precision,t=a.rounding,s=r.sd(),Math.max(s,e)<2*-r.e-1?oe(new a(r),e,t,!0):(a.precision=n=s-r.e,r=Ke(r.plus(1),new a(1).minus(r),n+e,1),a.precision=e+4,a.rounding=1,r=r.ln(),a.precision=e,a.rounding=t,r.times(.5))):new a(NaN)};B.inverseSine=B.asin=function(){var e,t,n,s,r=this,a=r.constructor;return r.isZero()?new a(r):(t=r.abs().cmp(1),n=a.precision,s=a.rounding,t!==-1?t===0?(e=Us(a,n+4,s).times(.5),e.s=r.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,r=r.div(new a(1).minus(r.times(r)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=s,r.times(2)))};B.inverseTangent=B.atan=function(){var e,t,n,s,r,a,i,l,c,d=this,f=d.constructor,u=f.precision,m=f.rounding;if(d.isFinite()){if(d.isZero())return new f(d);if(d.abs().eq(1)&&u+4<=N6)return i=Us(f,u+4,m).times(.25),i.s=d.s,i}else{if(!d.s)return new f(NaN);if(u+4<=N6)return i=Us(f,u+4,m).times(.5),i.s=d.s,i}for(f.precision=l=u+10,f.rounding=1,n=Math.min(28,l/de+2|0),e=n;e;--e)d=d.div(d.times(d).plus(1).sqrt().plus(1));for(he=!1,t=Math.ceil(l/de),s=1,c=d.times(d),i=new f(d),r=d;e!==-1;)if(r=r.times(c),a=i.minus(r.div(s+=2)),r=r.times(c),i=a.plus(r.div(s+=2)),i.d[t]!==void 0)for(e=t;i.d[e]===a.d[e]&&e--;);return n&&(i=i.times(2<<n-1)),he=!0,oe(i,f.precision=u,f.rounding=m,!0)};B.isFinite=function(){return!!this.d};B.isInteger=B.isInt=function(){return!!this.d&&tn(this.e/de)>this.d.length-2};B.isNaN=function(){return!this.s};B.isNegative=B.isNeg=function(){return this.s<0};B.isPositive=B.isPos=function(){return this.s>0};B.isZero=function(){return!!this.d&&this.d[0]===0};B.lessThan=B.lt=function(e){return this.cmp(e)<0};B.lessThanOrEqualTo=B.lte=function(e){return this.cmp(e)<1};B.logarithm=B.log=function(e){var t,n,s,r,a,i,l,c,d=this,f=d.constructor,u=f.precision,m=f.rounding,p=5;if(e==null)e=new f(10),t=!0;else{if(e=new f(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new f(NaN);t=e.eq(10)}if(n=d.d,d.s<0||!n||!n[0]||d.eq(1))return new f(n&&!n[0]?-1/0:d.s!=1?NaN:n?0:1/0);if(t)if(n.length>1)a=!0;else{for(r=n[0];r%10===0;)r/=10;a=r!==1}if(he=!1,l=u+p,i=ca(d,l),s=t?od(f,l+10):ca(e,l),c=Ke(i,s,l,1),Jc(c.d,r=u,m))do if(l+=10,i=ca(d,l),s=t?od(f,l+10):ca(e,l),c=Ke(i,s,l,1),!a){+Wt(c.d).slice(r+1,r+15)+1==1e14&&(c=oe(c,u+1,0));break}while(Jc(c.d,r+=10,m));return he=!0,oe(c,u,m)};B.minus=B.sub=function(e){var t,n,s,r,a,i,l,c,d,f,u,m,p=this,C=p.constructor;if(e=new C(e),!p.d||!e.d)return!p.s||!e.s?e=new C(NaN):p.d?e.s=-e.s:e=new C(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(d=p.d,m=e.d,l=C.precision,c=C.rounding,!d[0]||!m[0]){if(m[0])e.s=-e.s;else if(d[0])e=new C(p);else return new C(c===3?-0:0);return he?oe(e,l,c):e}if(n=tn(e.e/de),f=tn(p.e/de),d=d.slice(),a=f-n,a){for(u=a<0,u?(t=d,a=-a,i=m.length):(t=m,n=f,i=d.length),s=Math.max(Math.ceil(l/de),i)+2,a>s&&(a=s,t.length=1),t.reverse(),s=a;s--;)t.push(0);t.reverse()}else{for(s=d.length,i=m.length,u=s<i,u&&(i=s),s=0;s<i;s++)if(d[s]!=m[s]){u=d[s]<m[s];break}a=0}for(u&&(t=d,d=m,m=t,e.s=-e.s),i=d.length,s=m.length-i;s>0;--s)d[i++]=0;for(s=m.length;s>a;){if(d[--s]<m[s]){for(r=s;r&&d[--r]===0;)d[r]=xs-1;--d[r],d[s]+=xs}
vendor: 4,299 bytes, line 13
13d[s]-=m[s]}for(;d[--i]===0;)d.pop();for(;d[0]===0;d.shift())--n;return d[0]?(e.d=d,e.e=cu(d,n),he?oe(e,l,c):e):new C(c===3?-0:0)};B.modulo=B.mod=function(e){var t,n=this,s=n.constructor;return e=new s(e),!n.d||!e.s||e.d&&!e.d[0]?new s(NaN):!e.d||n.d&&!n.d[0]?oe(new s(n),s.precision,s.rounding):(he=!1,s.modulo==9?(t=Ke(n,e.abs(),0,3,1),t.s*=e.s):t=Ke(n,e,0,s.modulo,1),t=t.times(e),he=!0,n.minus(t))};B.naturalExponential=B.exp=function(){return k6(this)};B.naturalLogarithm=B.ln=function(){return ca(this)};B.negated=B.neg=function(){var e=new this.constructor(this);return e.s=-e.s,oe(e)};B.plus=B.add=function(e){var t,n,s,r,a,i,l,c,d,f,u=this,m=u.constructor;if(e=new m(e),!u.d||!e.d)return!u.s||!e.s?e=new m(NaN):u.d||(e=new m(e.d||u.s===e.s?u:NaN)),e;if(u.s!=e.s)return e.s=-e.s,u.minus(e);if(d=u.d,f=e.d,l=m.precision,c=m.rounding,!d[0]||!f[0])return f[0]||(e=new m(u)),he?oe(e,l,c):e;if(a=tn(u.e/de),s=tn(e.e/de),d=d.slice(),r=a-s,r){for(r<0?(n=d,r=-r,i=f.length):(n=f,s=a,i=d.length),a=Math.ceil(l/de),i=a>i?a+1:i+1,r>i&&(r=i,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for(i=d.length,r=f.length,i-r<0&&(r=i,n=f,f=d,d=n),t=0;r;)t=(d[--r]=d[r]+f[r]+t)/xs|0,d[r]%=xs;for(t&&(d.unshift(t),++s),i=d.length;d[--i]==0;)d.pop();return e.d=d,e.e=cu(d,s),he?oe(e,l,c):e};B.precision=B.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(xa+e);return n.d?(t=Lv(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t};B.round=function(){var e=this,t=e.constructor;return oe(new t(e),e.e+1,t.rounding)};B.sine=B.sin=function(){var e,t,n=this,s=n.constructor;return n.isFinite()?n.isZero()?new s(n):(e=s.precision,t=s.rounding,s.precision=e+Math.max(n.e,n.sd())+de,s.rounding=1,n=hW(s,Rv(s,n)),s.precision=e,s.rounding=t,oe(pr>2?n.neg():n,e,t,!0)):new s(NaN)};B.squareRoot=B.sqrt=function(){var e,t,n,s,r,a,i=this,l=i.d,c=i.e,d=i.s,f=i.constructor;if(d!==1||!l||!l[0])return new f(!d||d<0&&(!l||l[0])?NaN:l?i:1/0);for(he=!1,d=Math.sqrt(+i),d==0||d==1/0?(t=Wt(l),(t.length+c)%2==0&&(t+="0"),d=Math.sqrt(t),c=tn((c+1)/2)-(c<0||c%2),d==1/0?t="5e"+c:(t=d.toExponential(),t=t.slice(0,t.indexOf("e")+1)+c),s=new f(t)):s=new f(d.toString()),n=(c=f.precision)+3;;)if(a=s,s=a.plus(Ke(i,a,n+2,1)).times(.5),Wt(a.d).slice(0,n)===(t=Wt(s.d)).slice(0,n))if(t=t.slice(n-3,n+1),t=="9999"||!r&&t=="4999"){if(!r&&(oe(a,c+1,0),a.times(a).eq(i))){s=a;break}n+=4,r=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(oe(s,c+1,1),e=!s.times(s).eq(i));break}return he=!0,oe(s,c,f.rounding,e)};B.tangent=B.tan=function(){var e,t,n=this,s=n.constructor;return n.isFinite()?n.isZero()?new s(n):(e=s.precision,t=s.rounding,s.precision=e+10,s.rounding=1,n=n.sin(),n.s=1,n=Ke(n,new s(1).minus(n.times(n)).sqrt(),e+10,0),s.precision=e,s.rounding=t,oe(pr==2||pr==4?n.neg():n,e,t,!0)):new s(NaN)};B.times=B.mul=function(e){var t,n,s,r,a,i,l,c,d,f=this,u=f.constructor,m=f.d,p=(e=new u(e)).d;if(e.s*=f.s,!m||!m[0]||!p||!p[0])return new u(!e.s||m&&!m[0]&&!p||p&&!p[0]&&!m?NaN:!m||!p?e.s/0:e.s*0);for(n=tn(f.e/de)+tn(e.e/de),c=m.length,d=p.length,c<d&&(a=m,m=p,p=a,i=c,c=d,d=i),a=[],i=c+d,s=i;s--;)a.push(0);for(s=d;--s>=0;){for(t=0,r=c+s;r>s;)l=a[r]+p[s]*m[r-s-1]+t,a[r--]=l%xs|0,t=l/xs|0;a[r]=(a[r]+t)%xs|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=cu(a,n),he?oe(e,u.precision,u.rounding):e};B.toBinary=function(e,t){return _7(this,2,e,t)};B.toDecimalPlaces=B.toDP=function(e,t){var n=this,s=n.constructor;return n=new s(n),e===void 0?n:(Rn(e,0,Ta),t===void 0?t=s.rounding:Rn(t,0,8),oe(n,e+n.e+1,t))};B.toExponential=function(e,t){var n,s=this,r=s.constructor;return e===void 0?n=Gs(s,!0):(Rn(e,0,Ta),t===void 0?t=r.rounding:Rn(t,0,8),s=oe(new r(s),e+1,t),n=Gs(s,!0,e+1)),s.isNeg()&&!s.isZero()?"-"+n:n};B.toFixed=function(e,t){var n,s,r=this,a=r.constructor;return e===void 0?n=Gs(r):(Rn(e,0,Ta),t===void 0?t=a.rounding:Rn(t,0,8),s=oe(new a(r),e+r.e+1,t),n=Gs(s,!1,e+s.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n};B.toFraction=function(e){var t,n,s,r,a,i,l,c,d,f,u,m,p=this,C=p.d,b=p.constructor;if(!C)return new b(p);if(d=n=new b(1),s=c=new b(0),t=new b(s),a=t.e=Lv(C)-p.e-1,i=a%de,t.d[0]=kt(10,i<0?de+i:i),e==null)e=a>0?t:d;else{if(l=new b(e),!l.isInt()||l.lt(d))throw Error(xa+l);e=l.gt(t)?a>0?t:d:l}for(he=!1,l=new b(Wt(C)),f=b.precision,b.precision=a=C.length*de*2;u=Ke(l,t,0,1,1),r=n.plus(u.times(s)),r.cmp(e)!=1;
vendor: 1,143 bytes, line 13
13)n=s,s=r,r=d,d=c.plus(u.times(r)),c=r,r=t,t=l.minus(u.times(r)),l=r;return r=Ke(e.minus(n),s,0,1,1),c=c.plus(r.times(d)),n=n.plus(r.times(s)),c.s=d.s=p.s,m=Ke(d,s,a,1).minus(p).abs().cmp(Ke(c,n,a,1).minus(p).abs())<1?[d,s]:[c,n],b.precision=f,he=!0,m};B.toHexadecimal=B.toHex=function(e,t){return _7(this,16,e,t)};B.toNearest=function(e,t){var n=this,s=n.constructor;if(n=new s(n),e==null){if(!n.d)return n;e=new s(1),t=s.rounding}else{if(e=new s(e),t===void 0?t=s.rounding:Rn(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(he=!1,n=Ke(n,e,0,t,1).times(e),he=!0,oe(n)):(e.s=n.s,n=e),n};B.toNumber=function(){return+this};B.toOctal=function(e,t){return _7(this,8,e,t)};B.toPower=B.pow=function(e){var t,n,s,r,a,i,l=this,c=l.constructor,d=+(e=new c(e));if(!l.d||!e.d||!l.d[0]||!e.d[0])return new c(kt(+l,d));if(l=new c(l),l.eq(1))return l;if(s=c.precision,a=c.rounding,e.eq(1))return oe(l,s,a);if(t=tn(e.e/de),t>=e.d.length-1&&(n=d<0?-d:d)<=dW)return r=Av(c,l,n,s),e.s<0?new c(1).div(r):oe(r,s,a);if(i=l.s,i<0){if(t<e.d.length-1)return new c(NaN);if((e.d[t]&1)==0&&(i=1),l.e==0&&l.d[0]==1&&l.d.length==1)return l.s=i,l}
vendor: 5,520 bytes, line 13
13return n=kt(+l,d),t=n==0||!isFinite(n)?tn(d*(Math.log("0."+Wt(l.d))/Math.LN10+l.e+1)):new c(n+"").e,t>c.maxE+1||t<c.minE-1?new c(t>0?i/0:0):(he=!1,c.rounding=l.s=1,n=Math.min(12,(t+"").length),r=k6(e.times(ca(l,s+n)),s),r.d&&(r=oe(r,s+5,1),Jc(r.d,s,a)&&(t=s+10,r=oe(k6(e.times(ca(l,t+n)),t),t+5,1),+Wt(r.d).slice(s+1,s+15)+1==1e14&&(r=oe(r,s+1,0)))),r.s=i,he=!0,c.rounding=a,oe(r,s,a))};B.toPrecision=function(e,t){var n,s=this,r=s.constructor;return e===void 0?n=Gs(s,s.e<=r.toExpNeg||s.e>=r.toExpPos):(Rn(e,1,Ta),t===void 0?t=r.rounding:Rn(t,0,8),s=oe(new r(s),e,t),n=Gs(s,e<=s.e||s.e<=r.toExpNeg,e)),s.isNeg()&&!s.isZero()?"-"+n:n};B.toSignificantDigits=B.toSD=function(e,t){var n=this,s=n.constructor;return e===void 0?(e=s.precision,t=s.rounding):(Rn(e,1,Ta),t===void 0?t=s.rounding:Rn(t,0,8)),oe(new s(n),e,t)};B.toString=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};B.truncated=B.trunc=function(){return oe(new this.constructor(this),this.e+1,1)};B.valueOf=B.toJSON=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};function Wt(e){var t,n,s,r=e.length-1,a="",i=e[0];if(r>0){for(a+=i,t=1;t<r;t++)s=e[t]+"",n=de-s.length,n&&(a+=na(n)),a+=s;i=e[t],s=i+"",n=de-s.length,n&&(a+=na(n))}else if(i===0)return"0";for(;i%10===0;)i/=10;return a+i}function Rn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(xa+e)}function Jc(e,t,n,s){var r,a,i,l;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=de,r=0):(r=Math.ceil((t+1)/de),t%=de),a=kt(10,de-t),l=e[r]%a|0,s==null?t<3?(t==0?l=l/100|0:t==1&&(l=l/10|0),i=n<4&&l==99999||n>3&&l==49999||l==5e4||l==0):i=(n<4&&l+1==a||n>3&&l+1==a/2)&&(e[r+1]/a/100|0)==kt(10,t-2)-1||(l==a/2||l==0)&&(e[r+1]/a/100|0)==0:t<4?(t==0?l=l/1e3|0:t==1?l=l/100|0:t==2&&(l=l/10|0),i=(s||n<4)&&l==9999||!s&&n>3&&l==4999):i=((s||n<4)&&l+1==a||!s&&n>3&&l+1==a/2)&&(e[r+1]/a/1e3|0)==kt(10,t-3)-1,i}function v2(e,t,n){for(var s,r=[0],a,i=0,l=e.length;i<l;){for(a=r.length;a--;)r[a]*=t;for(r[0]+=_6.indexOf(e.charAt(i++)),s=0;s<r.length;s++)r[s]>n-1&&(r[s+1]===void 0&&(r[s+1]=0),r[s+1]+=r[s]/n|0,r[s]%=n)}return r.reverse()}function fW(e,t){var n,s,r;if(t.isZero())return t;s=t.d.length,s<32?(n=Math.ceil(s/3),r=(1/du(4,n)).toString()):(n=16,r="2.3283064365386962890625e-10"),e.precision+=n,t=ji(e,1,t.times(r),new e(1));for(var a=n;a--;){var i=t.times(t);t=i.times(i).minus(i).times(8).plus(1)}return e.precision-=n,t}var Ke=function(){function e(s,r,a){var i,l=0,c=s.length;for(s=s.slice();c--;)i=s[c]*r+l,s[c]=i%a|0,l=i/a|0;return l&&s.unshift(l),s}function t(s,r,a,i){var l,c;if(a!=i)c=a>i?1:-1;else for(l=c=0;l<a;l++)if(s[l]!=r[l]){c=s[l]>r[l]?1:-1;break}return c}function n(s,r,a,i){for(var l=0;a--;)s[a]-=l,l=s[a]<r[a]?1:0,s[a]=l*i+s[a]-r[a];for(;!s[0]&&s.length>1;)s.shift()}return function(s,r,a,i,l,c){var d,f,u,m,p,C,b,v,E,x,g,A,k,R,O,U,V,z,G,W,I=s.constructor,H=s.s==r.s?1:-1,j=s.d,N=r.d;if(!j||!j[0]||!N||!N[0])return new I(!s.s||!r.s||(j?N&&j[0]==N[0]:!N)?NaN:j&&j[0]==0||!N?H*0:H/0);for(c?(p=1,f=s.e-r.e):(c=xs,p=de,f=tn(s.e/p)-tn(r.e/p)),G=N.length,V=j.length,E=new I(H),x=E.d=[],u=0;N[u]==(j[u]||0);u++);if(N[u]>(j[u]||0)&&f--,a==null?(R=a=I.precision,i=I.rounding):l?R=a+(s.e-r.e)+1:R=a,R<0)x.push(1),C=!0;else{if(R=R/p+2|0,u=0,G==1){for(m=0,N=N[0],R++;(u<V||m)&&R--;u++)O=m*c+(j[u]||0),x[u]=O/N|0,m=O%N|0;C=m||u<V}else{for(m=c/(N[0]+1)|0,m>1&&(N=e(N,m,c),j=e(j,m,c),G=N.length,V=j.length),U=G,g=j.slice(0,G),A=g.length;A<G;)g[A++]=0;W=N.slice(),W.unshift(0),z=N[0],N[1]>=c/2&&++z;do m=0,d=t(N,g,G,A),d<0?(k=g[0],G!=A&&(k=k*c+(g[1]||0)),m=k/z|0,m>1?(m>=c&&(m=c-1),b=e(N,m,c),v=b.length,A=g.length,d=t(b,g,v,A),d==1&&(m--,n(b,G<v?W:N,v,c))):(m==0&&(d=m=1),b=N.slice()),v=b.length,v<A&&b.unshift(0),n(g,b,A,c),d==-1&&(A=g.length,d=t(N,g,G,A),d<1&&(m++,n(g,G<A?W:N,A,c))),A=g.length):d===0&&(m++,g=[0]),x[u++]=m,d&&g[0]?g[A++]=j[U]||0:(g=[j[U]],A=1);while((U++<V||g[0]!==void 0)&&R--);C=g[0]!==void 0}x[0]||x.shift()}if(p==1)E.e=f,yv=C;else{for(u=1,m=x[0];m>=10;m/=10)u++;E.e=u+f*p-1,oe(E,l?a+E.e+1:a,i,C)}return E}}();function oe(e,t,n,s){var r,a,i,l,c,d,f,u,m,p=e.constructor;e:if(t!=null){if(u=e.d,!u)return e;for(r=1,l=u[0];l>=10;l/=10)r++;if(a=t-r,a<0)a+=de,i=t,f=u[m=0],c=f/kt(10,r-i-1)%10|0;else if(m=Math.ceil((a+1)/de),l=u.length,m>=l)if(s){for(;l++<=m;)u.push(0);f=c=0,r=1,a%=de,i=a-de+1}else break e;else{for(f=l=u[m],r=1;l>=10;l/=10)r++;a%=de,i=a-de+r,c=i<0?0:f/kt(10,r-i-1)%10|0}if(s=s||t<0||u[m+1]!==void 0||(i<0?f:f%kt(10,r-i-1)),d=n<4?(c||s)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||s||n==6&&(a>0?i>0?f/kt(10,r-i):0:u[m-1])%10&1||n==(e.s<0?8:7)),t<1||!u[0])return u.length=0,d?(t-=e.e+1,u[0]=kt(10,(de-t%de)%de),e.e=-t||0):u[0]=e.e=0,e;if(a==0?(u.length=m,l=1,m--):(u.length=m+1,l=kt(10,de-a),u[m]=i>0?(f/kt(10,r-i)%kt(10,i)|0)*l:0),d)for(;;)if(m==0){for(a=1,i=u[0];i>=10;i/=10)a++;for(i=u[0]+=l,l=1;i>=10;i/=10)l++;a!=l&&(e.e++,u[0]==xs&&(u[0]=1));break}else{if(u[m]+=l,u[m]!=xs)break;u[m--]=0,l=1}for(a=u.length;u[--a]===0;)u.pop()}return he&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function Gs(e,t,n){if(!e.isFinite())return _v(e);var s,r=e.e,a=Wt(e.d),i=a.length;return t?(n&&(s=n-i)>0?a=a.charAt(0)+"."+a.slice(1)+na(s):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):r<0?(a="0."+na(-r-1)+a,n&&(s=n-i)>0&&(a+=na(s))):r>=i?(a+=na(r+1-i),n&&(s=n-r-1)>0&&(a=a+"."+na(s))):((s=r+1)<i&&(a=a.slice(0,s)+"."+a.slice(s)),n&&(s=n-i)>0&&(r+1===i&&(a+="."),a+=na(s))),a}function cu(e,t){var n=e[0];for(t*=de;n>=10;n/=10)t++;return t}
vendor: 8,651 bytes, line 13
13function od(e,t,n){if(t>uW)throw he=!0,n&&(e.precision=n),Error(bv);return oe(new e(rd),t,1,!0)}function Us(e,t,n){if(t>N6)throw Error(bv);return oe(new e(ad),t,n,!0)}function Lv(e){var t=e.length-1,n=t*de+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function na(e){for(var t="";e--;)t+="0";return t}function Av(e,t,n,s){var r,a=new e(1),i=Math.ceil(s/de+4);for(he=!1;;){if(n%2&&(a=a.times(t),ep(a.d,i)&&(r=!0)),n=tn(n/2),n===0){n=a.d.length-1,r&&a.d[n]===0&&++a.d[n];break}t=t.times(t),ep(t.d,i)}return he=!0,a}function Qh(e){return e.d[e.d.length-1]&1}function Tv(e,t,n){for(var s,r,a=new e(t[0]),i=0;++i<t.length;){if(r=new e(t[i]),!r.s){a=r;break}s=a.cmp(r),(s===n||s===0&&a.s===n)&&(a=r)}return a}function k6(e,t){var n,s,r,a,i,l,c,d=0,f=0,u=0,m=e.constructor,p=m.rounding,C=m.precision;if(!e.d||!e.d[0]||e.e>17)return new m(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(he=!1,c=C):c=t,l=new m(.03125);e.e>-2;)e=e.times(l),u+=5;for(s=Math.log(kt(2,u))/Math.LN10*2+5|0,c+=s,n=a=i=new m(1),m.precision=c;;){if(a=oe(a.times(e),c,1),n=n.times(++f),l=i.plus(Ke(a,n,c,1)),Wt(l.d).slice(0,c)===Wt(i.d).slice(0,c)){for(r=u;r--;)i=oe(i.times(i),c,1);if(t==null)if(d<3&&Jc(i.d,c-s,p,d))m.precision=c+=10,n=a=l=new m(1),f=0,d++;else return oe(i,m.precision=C,p,he=!0);else return m.precision=C,i}i=l}}function ca(e,t){var n,s,r,a,i,l,c,d,f,u,m,p=1,C=10,b=e,v=b.d,E=b.constructor,x=E.rounding,g=E.precision;if(b.s<0||!v||!v[0]||!b.e&&v[0]==1&&v.length==1)return new E(v&&!v[0]?-1/0:b.s!=1?NaN:v?0:b);if(t==null?(he=!1,f=g):f=t,E.precision=f+=C,n=Wt(v),s=n.charAt(0),Math.abs(a=b.e)<15e14){for(;s<7&&s!=1||s==1&&n.charAt(1)>3;)b=b.times(e),n=Wt(b.d),s=n.charAt(0),p++;a=b.e,s>1?(b=new E("0."+n),a++):b=new E(s+"."+n.slice(1))}else return d=od(E,f+2,g).times(a+""),b=ca(new E(s+"."+n.slice(1)),f-C).plus(d),E.precision=g,t==null?oe(b,g,x,he=!0):b;for(u=b,c=i=b=Ke(b.minus(1),b.plus(1),f,1),m=oe(b.times(b),f,1),r=3;;){if(i=oe(i.times(m),f,1),d=c.plus(Ke(i,new E(r),f,1)),Wt(d.d).slice(0,f)===Wt(c.d).slice(0,f))if(c=c.times(2),a!==0&&(c=c.plus(od(E,f+2,g).times(a+""))),c=Ke(c,new E(p),f,1),t==null)if(Jc(c.d,f-C,x,l))E.precision=f+=C,d=i=b=Ke(u.minus(1),u.plus(1),f,1),m=oe(b.times(b),f,1),r=l=1;else return oe(c,E.precision=g,x,he=!0);else return E.precision=g,c;c=d,r+=2}}function _v(e){return String(e.s*e.s/0)}function E2(e,t){var n,s,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(n<0&&(n=s),n+=+t.slice(s+1),t=t.substring(0,s)):n<0&&(n=t.length),s=0;t.charCodeAt(s)===48;s++);for(r=t.length;t.charCodeAt(r-1)===48;--r);if(t=t.slice(s,r),t){if(r-=s,e.e=n=n-s-1,e.d=[],s=(n+1)%de,n<0&&(s+=de),s<r){for(s&&e.d.push(+t.slice(0,s)),r-=de;s<r;)e.d.push(+t.slice(s,s+=de));t=t.slice(s),s=de-t.length}else s-=r;for(;s--;)t+="0";e.d.push(+t),he&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function mW(e,t){var n,s,r,a,i,l,c,d,f;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Sv.test(t))return E2(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(lW.test(t))n=16,t=t.toLowerCase();else if(iW.test(t))n=2;else if(cW.test(t))n=8;else throw Error(xa+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),i=a>=0,s=e.constructor,i&&(t=t.replace(".",""),l=t.length,a=l-a,r=Av(s,new s(n),a,a*2)),d=v2(t,n,xs),f=d.length-1,a=f;d[a]===0;--a)d.pop();return a<0?new s(e.s*0):(e.e=cu(d,f),e.d=d,he=!1,i&&(e=Ke(e,r,l*4)),c&&(e=e.times(Math.abs(c)<54?kt(2,c):bt.pow(2,c))),he=!0,e)}function hW(e,t){var n,s=t.d.length;if(s<3)return t.isZero()?t:ji(e,2,t,t);n=1.4*Math.sqrt(s),n=n>16?16:n|0,t=t.times(1/du(5,n)),t=ji(e,2,t,t);for(var r,a=new e(5),i=new e(16),l=new e(20);n--;)r=t.times(t),t=t.times(a.plus(r.times(i.times(r).minus(l))));return t}function ji(e,t,n,s,r){var a,i,l,c,d=e.precision,f=Math.ceil(d/de);for(he=!1,c=n.times(n),l=new e(s);;){if(i=Ke(l.times(c),new e(t++*t++),d,1),l=r?s.plus(i):s.minus(i),s=Ke(i.times(c),new e(t++*t++),d,1),i=l.plus(s),i.d[f]!==void 0){for(a=f;i.d[a]===l.d[a]&&a--;);if(a==-1)break}a=l,l=s,s=i,i=a}return he=!0,i.d.length=f+1,i}function du(e,t){for(var n=e;--t;)n*=e;return n}function Rv(e,t){var n,s=t.s<0,r=Us(e,e.precision,1),a=r.times(.5);if(t=t.abs(),t.lte(a))return pr=s?4:1,t;if(n=t.divToInt(r),n.isZero())pr=s?3:2;else{if(t=t.minus(n.times(r)),t.lte(a))return pr=Qh(n)?s?2:3:s?4:1,t;pr=Qh(n)?s?1:4:s?3:2}return t.minus(r).abs()}function _7(e,t,n,s){var r,a,i,l,c,d,f,u,m,p=e.constructor,C=n!==void 0;if(C?(Rn(n,1,Ta),s===void 0?s=p.rounding:Rn(s,0,8)):(n=p.precision,s=p.rounding),!e.isFinite())f=_v(e);else{for(f=Gs(e),i=f.indexOf("."),C?(r=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):r=t,i>=0&&(f=f.replace(".",""),m=new p(1),m.e=f.length-i,m.d=v2(Gs(m),10,r),m.e=m.d.length),u=v2(f,10,r),a=c=u.length;u[--c]==0;)u.pop();if(!u[0])f=C?"0p+0":"0";else{if(i<0?a--:(e=new p(e),e.d=u,e.e=a,e=Ke(e,m,n,s,0,r),u=e.d,a=e.e,d=yv),i=u[n],l=r/2,d=d||u[n+1]!==void 0,d=s<4?(i!==void 0||d)&&(s===0||s===(e.s<0?3:2)):i>l||i===l&&(s===4||d||s===6&&u[n-1]&1||s===(e.s<0?8:7)),u.length=n,d)for(;++u[--n]>r-1;)u[n]=0,n||(++a,u.unshift(1));for(c=u.length;!u[c-1];--c);for(i=0,f="";i<c;i++)f+=_6.charAt(u[i]);if(C){if(c>1)if(t==16||t==8){for(i=t==16?4:3,--c;c%i;c++)f+="0";for(u=v2(f,r,t),c=u.length;!u[c-1];--c);for(i=1,f="1.";i<c;i++)f+=_6.charAt(u[i])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>c)for(a-=c;a--;)f+="0";else a<c&&(f=f.slice(0,a)+"."+f.slice(a))}f=(t==16?"0x":t==2?"0b":t==8?"0o":"")+f}return e.s<0?"-"+f:f}function ep(e,t){if(e.length>t)return e.length=t,!0}function pW(e){return new this(e).abs()}function gW(e){return new this(e).acos()}function wW(e){return new this(e).acosh()}function CW(e,t){return new this(e).plus(t)}function xW(e){return new this(e).asin()}function yW(e){return new this(e).asinh()}function bW(e){return new this(e).atan()}function vW(e){return new this(e).atanh()}function EW(e,t){e=new this(e),t=new this(t);var n,s=this.precision,r=this.rounding,a=s+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=Us(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?Us(this,s,r):new this(0),n.s=e.s):!e.d||t.isZero()?(n=Us(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(Ke(e,t,a,1)),t=Us(this,a,1),this.precision=s,this.rounding=r,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Ke(e,t,a,1)),n}function SW(e){return new this(e).cbrt()}function LW(e){return oe(e=new this(e),e.e+1,2)}function AW(e,t,n){return new this(e).clamp(t,n)}function TW(e){if(!e||typeof e!="object")throw Error(lu+"Object expected");var t,n,s,r=e.defaults===!0,a=["precision",1,Ta,"rounding",0,8,"toExpNeg",-hi,0,"toExpPos",0,hi,"maxE",0,hi,"minE",-hi,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(n=a[t],r&&(this[n]=R6[n]),(s=e[n])!==void 0)if(tn(s)===s&&s>=a[t+1]&&s<=a[t+2])this[n]=s;else throw Error(xa+n+": "+s);if(n="crypto",r&&(this[n]=R6[n]),(s=e[n])!==void 0)if(s===!0||s===!1||s===0||s===1)if(s)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(vv);else this[n]=!1;else throw Error(xa+n+": "+s);return this}function _W(e){return new this(e).cos()}function RW(e){return new this(e).cosh()}function Nv(e){var t,n,s;function r(a){var i,l,c,d=this;if(!(d instanceof r))return new r(a);if(d.constructor=r,tp(a)){d.s=a.s,he?!a.d||a.e>r.maxE?(d.e=NaN,d.d=null):a.e<r.minE?(d.e=0,d.d=[0]):(d.e=a.e,d.d=a.d.slice()):(d.e=a.e,d.d=a.d?a.d.slice():a.d);return}if(c=typeof a,c==="number"){if(a===0){d.s=1/a<0?-1:1,d.e=0,d.d=[0];return}if(a<0?(a=-a,d.s=-1):d.s=1,a===~~a&&a<1e7){for(i=0,l=a;l>=10;l/=10)i++;he?i>r.maxE?(d.e=NaN,d.d=null):i<r.minE?(d.e=0,d.d=[0]):(d.e=i,d.d=[a]):(d.e=i,d.d=[a]);return}if(a*0!==0){a||(d.s=NaN),d.e=NaN,d.d=null;return}return E2(d,a.toString())}if(c==="string")return(l=a.charCodeAt(0))===45?(a=a.slice(1),d.s=-1):(l===43&&(a=a.slice(1)),d.s=1),Sv.test(a)?E2(d,a):mW(d,a);if(c==="bigint")return a<0?(a=-a,d.s=-1):d.s=1,E2(d,a.toString());throw Error(xa+a)}if(r.prototype=B,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=TW,r.clone=Nv,r.isDecimal=tp,r.abs=pW,r.acos=gW,r.acosh=wW,r.add=CW,r.asin=xW,r.asinh=yW,r.atan=bW,r.atanh=vW,r.atan2=EW,r.cbrt=SW,r.ceil=LW,r.clamp=AW,r.cos=_W,r.cosh=RW,r.div=NW,r.exp=kW,r.floor=IW,r.hypot=MW,r.ln=OW,r.log=PW,r.log10=FW,r.log2=DW,r.max=jW,r.min=$W,r.mod=BW,r.mul=UW,r.pow=HW,r.random=VW,r.round=WW,r.sign=ZW,r.sin=GW,r.sinh=zW,r.sqrt=qW,r.sub=YW,r.sum=KW,r.tan=XW,r.tan
13h=JW,r.trunc=QW,e===void 0&&(e={}),e&&e.defaults!==!0)for(s=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<s.length;)e.hasOwnProperty(n=s[t++])||(e[n]=this[n]);return r.config(e),r}function NW(e,t){return new this(e).div(t)}function kW(e){return new this(e).exp()}function IW(e){return oe(e=new this(e),e.e+1,3)}function MW(){var e,t,n=new this(0);for(he=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return he=!0,new this(1/0);n=t}return he=!0,n.sqrt()}function tp(e){return e instanceof bt||e&&e.toStringTag===Ev||!1}function OW(e){return new this(e).ln()}function PW(e,t){return new this(e).log(t)}function DW(e){return new this(e).log(2)}function FW(e){return new this(e).log(10)}function jW(){return Tv(this,arguments,-1)}function $W(){return Tv(this,arguments,1)}function BW(e,t){return new this(e).mod(t)}function UW(e,t){return new this(e).mul(t)}function HW(e,t){return new this(e).pow(t)}function VW(e){var t,n,s,r,a=0,i=new this(1),l=[];if(e===void 0?e=this.precision:Rn(e,1,Ta),s=Math.ceil(e/de),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(s));a<s;)r=t[a],r>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:l[a++]=r%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(s*=4);a<s;)r=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),r>=214e7?crypto.randomBytes(4).copy(t,a):(l.push(r%1e7),a+=4);a=s/4}else throw Error(vv);else for(;a<s;)l[a++]=Math.random()*1e7|0;for(s=l[--a],e%=de,s&&e&&(r=kt(10,de-e),l[a]=(s/r|0)*r);l[a]===0;a--)l.pop();if(a<0)n=0,l=[0];else{for(n=-1;l[0]===0;n-=de)l.shift();for(s=1,r=l[0];r>=10;r/=10)s++;s<de&&(n-=de-s)}return i.e=n,i.d=l,i}function WW(e){return oe(e=new this(e),e.e+1,this.rounding)}function ZW(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function GW(e){return new this(e).sin()}function zW(e){return new this(e).sinh()}function qW(e){return new this(e).sqrt()}function YW(e,t){return new this(e).sub(t)}function KW(){var e=0,t=arguments,n=new this(t[e]);for(he=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return he=!0,oe(n,this.precision,this.rounding)}function XW(e){return new this(e).tan()}function JW(e){return new this(e).tanh()}function QW(e){return oe(e=new this(e),e.e+1,1)}B[Symbol.for("nodejs.util.inspect.custom")]=B.toString;B[Symbol.toStringTag]="Decimal";var bt=B.constructor=Nv(R6);rd=new bt(rd);ad=new bt(ad);let I6=null;const eZ=e=>{I6=e},Ln=()=>{if(!I6)throw new Error("@whale-client/dataflow-fair-games is not configured. Call configureFairGamesDataflow() on app boot.");return I6},Hs=(...e)=>e.reduce((t,n)=>bt.mul(t,n),new bt(1)).toNumber(),yr=(...e)=>{const t=[...e],n=t.shift()??0;return t.reduce((s,r)=>s.toNumber()===0?new bt(0):Number(r)===0?new bt(NaN):bt.div(s,r),new bt(n)).toNumber()},Qc=(...e)=>{const t=[...e],n=t.shift()??0;return t.reduce((s,r)=>bt.sub(s,r),new bt(n)).toNumber()},un=(...e)=>e.reduce((t,n)=>bt.sum(t,n),new bt(0)).toNumber(),kv=(e,t)=>bt.pow(e,t).toNumber(),Lo=(e,t=0)=>new bt(e).toDecimalPlaces(t,bt.ROUND_DOWN).toNumber(),tZ=(e,t=0)=>new bt(e).toDecimalPlaces(t,bt.ROUND_UP).toNumber(),An=(e,t=0)=>new bt(e).toDecimalPlaces(t,bt.ROUND_HALF_EVEN).toNumber(),A1=e=>`${An(e,2)}`,Iv=e=>/^E\d{4}$/.test(e),nZ=(e,t,n,s)=>{let r=e;return e<n&&(r=n),e>s&&(r=s),Lo(Math.min(r,t),2)},M6=(e,t)=>t?An(e,2):e,np=({amount:e,balance:t,min:n,max:s,halfEvenRounding:r=!0})=>nZ(M6(e,r),t,n,s),sZ=({betAmount:e,betCurrency:t,gameSettings:n,gameConstraints:s,isFreeBet:r,userBalanceInUsd:a})=>{if(n&&!n.allowedCurrencies.includes(t))return U0.CURRENCY_NOT_ALLOWED;if(r)return null;const i=(s==null?void 0:s.betAmountInUsd)??Cv.betAmountInUsd;return i.min>e?U0.BAD_MIN_AMOUNT:i.max<e?U0.BAD_MAX_AMOUNT:!a||a<e?U0.NOT_ENOUGH_BALANCE:null},Mv=()=>l4.getState().currency,Ov=()=>{var t;const e=Mv();return((t=xo.getState().find(n=>n.currency===e))==null?void 0:t.availableAmount)??0},Pv=e=>Ai.getState()[e]??0,rZ=(e,t)=>Hs(Pv(t),e),Gl=()=>{const e=Mv(),t=yo(Ov(),e);return Lo(rZ(t,e),2)},aZ=e=>ia.get(xv(e))!=="off",oZ=(e,t)=>{ia.set(xv(e),t?"on":"off")},uu=(e,t)=>{const n=[];for(let s=0;s<e;s+=1)t.includes(s)||n.push(s);return n[Math.floor(Math.random()*n.length)]??-1},R7=e=>
13new Promise(t=>{if(e<=0){t();return}setTimeout(t,e)}),N7=(e,t)=>{let n=0,s=null,r=null;const a=()=>(n=Date.now(),s=e().finally(()=>{s=null}),s);return()=>{const i=Date.now()-n;if(r)return r;if(i>=t&&!s)return a();const l=Math.max(0,t-i);return r=R7(l).then(()=>s?s.then(()=>{}):void 0).then(()=>a()).finally(()=>{r=null}),r}},fu=(e,t)=>{const n=Number(e==null?void 0:e.minesCount);return!t||!Number.isInteger(n)||n<Number(t.min)||n>Number(t.max)?null:n},ll=(e,t)=>t.find(n=>n===(e==null?void 0:e.difficulty))??null,T1=(e,t)=>{var n;return e!=null&&e.round&&((n=e.result)==null?void 0:n.roundClosed)===!1?null:(t==null?void 0:t.metadata)??null},_1=(e,t)=>{let n=0,s=!1;const r=Ye(async()=>{const a=++n,i=e.$activeFreebet.getState(),l=e.$gameConfig.getState();if(!i||!l||!e.$isGameInitialised.getState()||e.$isRoundOpen.getState())return;const c=t.resolve(i.metadata,l);if(c===null||c===t.read()&&!s)return;s=!0;const d=()=>a===n;try{await Promise.resolve(),d()&&(await t.apply(c,d),d()&&(s=!1))}catch(f){console.error("[Originals freebet] re-pricing the pinned settings failed",f)}});h({clock:[e.$activeFreebet.updates,e.$gameConfig.updates,e.$isGameInitialised.updates,e.$isRoundOpen.updates],fn:()=>{},target:r})};/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */function iZ(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function sp(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function Y5(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function zl(e,t,n=""){const s=iZ(e),r=e==null?void 0:e.length,a=t!==void 0;if(!s||a&&r!==t){const i=n&&`"${n}" `,l=a?` of length ${t}`:"",c=s?`length=${r}`:`type=${typeof e}`;throw new Error(i+"expected Uint8Array"+l+", got "+c)}return e}function ua(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function lZ(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function cZ(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function rp(e){return Uint8Array.from(e)}const Dv=e=>Uint8Array.from(e.split(""),t=>t.charCodeAt(0)),dZ=Dv("expand 16-byte k"),uZ=Dv("expand 32-byte k"),fZ=ua(dZ),mZ=ua(uZ);function Fe(e,t){return e<<t|e>>>32-t}function O6(e){return e.byteOffset%4===0}const H0=64,hZ=16,Fv=2**32-1,ap=Uint32Array.of();function pZ(e,t,n,s,r,a,i,l){const c=r.length,d=new Uint8Array(H0),f=ua(d),u=O6(r)&&O6(a),m=u?ua(r):ap,p=u?ua(a):ap;for(let C=0;C<c;i++){if(e(t,n,s,f,i,l),i>=Fv)throw new Error("arx: counter overflow");const b=Math.min(H0,c-C);if(u&&b===H0){const v=C/4;if(C%4!==0)throw new Error("arx: invalid block position");for(let E=0,x;E<hZ;E++)x=v+E,p[x]=m[x]^f[E];C+=H0;continue}for(let v=0,E;v<b;v++)E=C+v,a[E]=r[E]^d[v];C+=b}}function gZ(e,t){const{allowShortKeys:n,extendNonceFn:s,counterLength:r,counterRight:a,rounds:i}=cZ({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return Y5(r),Y5(i),sp(a),sp(n),(l,c,d,f,u=0)=>{zl(l,void 0,"key"),zl(c,void 0,"nonce"),zl(d,void 0,"data");const m=d.length;if(f===void 0&&(f=new Uint8Array(m)),zl(f,void 0,"output"),Y5(u),u<0||u>=Fv)throw new Error("arx: counter overflow");if(f.length<m)throw new Error(`arx: output (${f.length}) is shorter than data (${m})`);const p=[];let C=l.length,b,v;if(C===32)p.push(b=rp(l)),v=mZ;else if(C===16&&n)b=new Uint8Array(32),b.set(l),b.set(l,16),v=fZ,p.push(b);else throw zl(l,32,"arx key"),new Error("invalid key size");O6(c)||p.push(c=rp(c));const E=ua(b);if(s){if(c.length!==24)throw new Error("arx: extended nonce must be 24 bytes");s(v,E,ua(c.subarray(0,16)),E),c=c.subarray(16)}const x=16-r;if(x!==c.length)throw new Error(`arx: nonce must be ${x} or 16 bytes`);if(x!==12){const A=new Uint8Array(12);A.set(c,a?0:12-c.length),c=A,p.push(c)}const g=ua(c);return pZ(e,v,E,g,d,f,u,i),lZ(...p),f}}function wZ(e,t,n,s,r,a=20){let i=e[0],l=e[1],c=e[2],d=e[3],f=t[0],u=t[1],m=t[2],p=t[3],C=t[4],b=t[5],v=t[6],E=t[7],x=r,g=n[0],A=n[1],k=n[2],R=i,O=l,U=c,V=d,z=f,G=u,W=m,I=p,H=C,j=b,N=v,q=E,ee=x,ae=g,Se=A,ce=k;for(let se=0;se<a;se+=2)R=R+z|0,ee=Fe(ee^R,16),H=H+ee|0,z=Fe(z^H,12),R=R+z|0,ee=Fe(ee^R,8),H=H+ee|0,z=Fe(z^H,7),O=O+G|0,ae=Fe(ae^O,16),j=j+ae|0,G=Fe(G^j,12),O=O+G|0,ae=Fe(ae^O,8),j=j+ae|0,G=Fe(G^j,7),U=U+W|0,Se=Fe(Se^U,16),N=N+Se|0,W=Fe(W^N,12),U=U+W|0,Se=Fe(Se^U,8),N=N+Se|0,W=Fe(W^N,7),V=V+I|0,ce=Fe(ce^V,16),q=q+ce|0,I=Fe(I^q,12),V=V+I|0,ce=Fe(ce^V,8),q=q+ce|0,I=Fe(I^q,7),R=R+G|0,ce=Fe(ce^R,16),N=N+ce|0,G=Fe(G^N,12),R=R+G|0,ce=Fe(ce^R,8),N=N+ce|0,G=Fe(G^N,7),O=O+W|0,ee=Fe(ee^O,16),q=q+ee|0,W=Fe(W^q,12),O=O+W|0,ee=Fe(ee^O,8),q=q+ee|0,W=Fe(W^q,7),U=U+I|0,ae=Fe(ae^U,16),H=H+ae|0,I=Fe(I^H,12),U=U+I|0,ae=Fe(ae^U,8),H=H+ae|0,I=Fe(I^H,7),V=V+z|0,Se=Fe(Se^V,16),j=j+Se|0,z=Fe(z^j,12),V=V+z|0,Se=Fe(Se^V,8),j=j+Se|0,z=Fe(z^j,7);let be=0;s[be++]=i+R|0,s[be++]=l+O|0,s[be++]=c+U|0,s[be++]=d+V|0,s[be++]=f+z|0,s[be++]=u+G|0,s[be++]=m+W|0,s[be++]=p+I|0,s[be++]=C+H|0,s[be++]=b+j|0,s[be++]=v+N|0,s[be++]=E+q|0,s[be++]=x+ee|0,s[be++]=g+ae|0,s[be++]=A+Se|0,s[be++]=k+ce|0}const CZ=gZ(wZ,{counterRight:!1,counterLength:4,allowShortKeys:!1}),Jo=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function xZ(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function op(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function cl(e,...t){if(!xZ(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function yZ(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");op(e.outputLen),op(e.blockLen)}function id(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function bZ(e,t){cl(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Y1e(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function $i(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function K5(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Fs(e,t){return e<<32-t|e>>>t}const vZ=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function EZ(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function SZ(e){for(let t=0;t<e.length;t++)e[t]=EZ(e[t]);return e}const K1e=vZ?e=>e:SZ,jv=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",LZ=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function AZ(e){if(cl(e),jv)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=LZ[e[n]];return t}const rr={_0:48,_9:57,A:65,F:70,a:97,f:102};function ip(e){if(e>=rr._0&&e<=rr._9)return e-rr._0;if(e>=rr.A&&e<=rr.F)return e-(rr.A-10);if(e>=rr.a&&e<=rr.f)return e-(rr.a-10)}function X1e(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(jv)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const s=new Uint8Array(n);for(let r=0,a=0;r<n;r++,a+=2){const i=ip(e.charCodeAt(a)),l=ip(e.charCodeAt(a+1));if(i===void 0||l===void 0){const c=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+a)}s[r]=i*16+l}return s}function S2(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function k7(e){return typeof e=="string"&&(e=S2(e)),cl(e),e}function J1e(...e){let t=0;for(let s=0;s<e.length;s++){const r=e[s];cl(r),t+=r.length}const n=new Uint8Array(t);for(let s=0,r=0;
vendor: 7,553 bytes, line 13
13s<e.length;s++){const a=e[s];n.set(a,r),r+=a.length}return n}class $v{}function I7(e){const t=s=>e().update(k7(s)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Q1e(e=32){if(Jo&&typeof Jo.getRandomValues=="function")return Jo.getRandomValues(new Uint8Array(e));if(Jo&&typeof Jo.randomBytes=="function")return Uint8Array.from(Jo.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class Bv extends $v{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,yZ(t);const s=k7(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,a=new Uint8Array(r);a.set(s.length>r?t.create().update(s).digest():s);for(let i=0;i<a.length;i++)a[i]^=54;this.iHash.update(a),this.oHash=t.create();for(let i=0;i<a.length;i++)a[i]^=106;this.oHash.update(a),$i(a)}update(t){return id(this),this.iHash.update(t),this}digestInto(t){id(this),cl(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:s,finished:r,destroyed:a,blockLen:i,outputLen:l}=this;return t=t,t.finished=r,t.destroyed=a,t.blockLen=i,t.outputLen=l,t.oHash=n._cloneInto(t.oHash),t.iHash=s._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const P6=(e,t,n)=>new Bv(e,t).update(n).digest();P6.create=(e,t)=>new Bv(e,t);function TZ(e,t,n,s){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,s);const r=BigInt(32),a=BigInt(4294967295),i=Number(n>>r&a),l=Number(n&a),c=s?4:0,d=s?0:4;e.setUint32(t+c,i,s),e.setUint32(t+d,l,s)}function _Z(e,t,n){return e&t^~e&n}function RZ(e,t,n){return e&t^e&n^t&n}class Uv extends $v{constructor(t,n,s,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=s,this.isLE=r,this.buffer=new Uint8Array(t),this.view=K5(this.buffer)}update(t){id(this),t=k7(t),cl(t);const{view:n,buffer:s,blockLen:r}=this,a=t.length;for(let i=0;i<a;){const l=Math.min(r-this.pos,a-i);if(l===r){const c=K5(t);for(;r<=a-i;i+=r)this.process(c,i);continue}s.set(t.subarray(i,i+l),this.pos),this.pos+=l,i+=l,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){id(this),bZ(t,this),this.finished=!0;const{buffer:n,view:s,blockLen:r,isLE:a}=this;let{pos:i}=this;n[i++]=128,$i(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(s,0),i=0);for(let u=i;u<r;u++)n[u]=0;TZ(s,r-8,BigInt(this.length*8),a),this.process(s,0);const l=K5(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<d;u++)l.setUint32(4*u,f[u],a)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const s=t.slice(0,n);return this.destroy(),s}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:s,length:r,finished:a,destroyed:i,pos:l}=this;return t.destroyed=i,t.finished=a,t.length=r,t.pos=l,r%n&&t.buffer.set(s),t}clone(){return this._cloneInto()}}const Ur=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Kt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Xt=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),V0=BigInt(2**32-1),lp=BigInt(32);function NZ(e,t=!1){return t?{h:Number(e&V0),l:Number(e>>lp&V0)}:{h:Number(e>>lp&V0)|0,l:Number(e&V0)|0}}function kZ(e,t=!1){const n=e.length;let s=new Uint32Array(n),r=new Uint32Array(n);for(let a=0;a<n;a++){const{h:i,l}=NZ(e[a],t);[s[a],r[a]]=[i,l]}return[s,r]}const cp=(e,t,n)=>e>>>n,dp=(e,t,n)=>e<<32-n|t>>>n,Qo=(e,t,n)=>e>>>n|t<<32-n,ei=(e,t,n)=>e<<32-n|t>>>n,W0=(e,t,n)=>e<<64-n|t>>>n-32,Z0=(e,t,n)=>e>>>n-32|t<<64-n,e0e=(e,t,n)=>e<<n|t>>>32-n,t0e=(e,t,n)=>t<<n|e>>>32-n,n0e=(e,t,n)=>t<<n-32|e>>>64-n,s0e=(e,t,n)=>e<<n-32|t>>>64-n;function ar(e,t,n,s){const r=(t>>>0)+(s>>>0);return{h:e+n+(r/2**32|0)|0,l:r|0}}const IZ=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),MZ=(e,t,n,s)=>t+n+s+(e/2**32|0)|0,OZ=(e,t,n,s)=>(e>>>0)+(t>>>0)+(n>>>0)+(s>>>0),PZ=(e,t,n,s,r)=>t+n+s+r+(e/2**32|0)|0,DZ=(e,t,n,s,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(s>>>0)+(r>>>0),FZ=(e,t,n,s,r,a)=>t+n+s+r+a+(e/2**32|0)|0,jZ=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Hr=new Uint32Array(64);class $Z extends Uv{constructor(t=32){super(64,t,8,!1),this.A=Ur[0]|0,this.B=Ur[1]|0,this.C=Ur[2]|0,this.D=Ur[3]|0,this.E=Ur[4]|0,this.F=Ur[5]|0,this.G=Ur[6]|0,this.H=Ur[7]|0}get(){const{A:t,B:n,C:s,D:r,E:a,F:i,G:l,H:c}=this;return[t,n,s,r,a,i,l,c]}set(t,n,s,r,a,i,l,c){this.A=t|0,this.B=n|0,this.C=s|0,this.D=r|0,this.E=a|0,this.F=i|0,this.G=l|0,this.H=c|0}process(t,n){for(let u=0;u<16;u++,n+=4)Hr[u]=t.getUint32(n,!1);for(let u=16;u<64;u++){const m=Hr[u-15],p=Hr[u-2],C=Fs(m,7)^Fs(m,18)^m>>>3,b=Fs(p,17)^Fs(p,19)^p>>>10;Hr[u]=b+Hr[u-7]+C+Hr[u-16]|0}let{A:s,B:r,C:a,D:i,E:l,F:c,G:d,H:f}=this;for(let u=0;u<64;u++){const m=Fs(l,6)^Fs(l,11)^Fs(l,25),p=f+m+_Z(l,c,d)+jZ[u]+Hr[u]|0,b=(Fs(s,2)^Fs(s,13)^Fs(s,22))+RZ(s,r,a)|0;f=d,d=c,c=l,l=i+p|0,i=a,a=r,r=s,s=p+b|0}s=s+this.A|0,r=r+this.B|0,a=a+this.C|0,i=i+this.D|0,l=l+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(s,r,a,i,l,c,d,f)}roundClean(){$i(Hr)}destroy(){this.set(0,0,0,0,0,0,0,0),$i(this.buffer)}}const Hv=kZ(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
135771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),BZ=Hv[0],UZ=Hv[1],Vr=new Uint32Array(80),Wr=new Uint32Array(80);class Vv extends Uv{constructor(t=64){super(128,t,16,!1),this.Ah=Xt[0]|0,this.Al=Xt[1]|0,this.Bh=Xt[2]|0,this.Bl=Xt[3]|0,this.Ch=Xt[4]|0,this.Cl=Xt[5]|0,this.Dh=Xt[6]|0,this.Dl=Xt[7]|0,this.Eh=Xt[8]|0,this.El=Xt[9]|0,this.Fh=Xt[10]|0,this.Fl=Xt[11]|0,this.Gh=Xt[12]|0,this.Gl=Xt[13]|0,this.Hh=Xt[14]|0,this.Hl=Xt[15]|0}get(){const{Ah:t,Al:n,Bh:s,Bl:r,Ch:a,Cl:i,Dh:l,Dl:c,Eh:d,El:f,Fh:u,Fl:m,Gh:p,Gl:C,Hh:b,Hl:v}=this;return[t,n,s,r,a,i,l,c,d,f,u,m,p,C,b,v]}set(t,n,s,r,a,i,l,c,d,f,u,m,p,C,b,v){this.Ah=t|0,this.Al=n|0,this.Bh=s|0,this.Bl=r|0,this.Ch=a|0,this.Cl=i|0,this.Dh=l|0,this.Dl=c|0,this.Eh=d|0,this.El=f|0,this.Fh=u|0,this.Fl=m|0,this.Gh=p|0,this.Gl=C|0,this.Hh=b|0,this.Hl=v|0}process(t,n){for(let g=0;g<16;g++,n+=4)Vr[g]=t.getUint32(n),Wr[g]=t.getUint32(n+=4);for(let g=16;g<80;g++){const A=Vr[g-15]|0,k=Wr[g-15]|0,R=Qo(A,k,1)^Qo(A,k,8)^cp(A,k,7),O=ei(A,k,1)^ei(A,k,8)^dp(A,k,7),U=Vr[g-2]|0,V=Wr[g-2]|0,z=Qo(U,V,19)^W0(U,V,61)^cp(U,V,6),G=ei(U,V,19)^Z0(U,V,61)^dp(U,V,6),W=OZ(O,G,Wr[g-7],Wr[g-16]),I=PZ(W,R,z,Vr[g-7],Vr[g-16]);Vr[g]=I|0,Wr[g]=W|0}let{Ah:s,Al:r,Bh:a,Bl:i,Ch:l,Cl:c,Dh:d,Dl:f,Eh:u,El:m,Fh:p,Fl:C,Gh:b,Gl:v,Hh:E,Hl:x}=this;for(let g=0;g<80;g++){const A=Qo(u,m,14)^Qo(u,m,18)^W0(u,m,41),k=ei(u,m,14)^ei(u,m,18)^Z0(u,m,41),R=u&p^~u&b,O=m&C^~m&v,U=DZ(x,k,O,UZ[g],Wr[g]),V=FZ(U,E,A,R,BZ[g],Vr[g]),z=U|0,G=Qo(s,r,28)^W0(s,r,34)^W0(s,r,39),W=ei(s,r,28)^Z0(s,r,34)^Z0(s,r,39),I=s&a^s&l^a&l,H=r&i^r&c^i&c;E=b|0,x=v|0,b=p|0,v=C|0,p=u|0,C=m|0,{h:u,l:m}=ar(d|0,f|0,V|0,z|0),d=l|0,f=c|0,l=a|0,c=i|0,a=s|0,i=r|0;const j=IZ(z,W,H);s=MZ(j,V,G,I),r=j|0}({h:s,l:r}=ar(this.Ah|0,this.Al|0,s|0,r|0)),{h:a,l:i}=ar(this.Bh|0,this.Bl|0,a|0,i|0),{h:l,l:c}=ar(this.Ch|0,this.Cl|0,l|0,c|0),{h:d,l:f}=ar(this.Dh|0,this.Dl|0,d|0,f|0),{h:u,l:m}=ar(this.Eh|0,this.El|0,u|0,m|0),{h:p,l:C}=ar(this.Fh|0,this.Fl|0,p|0,C|0),{h:b,l:v}=ar(this.Gh|0,this.Gl|0,b|0,v|0),{h:E,l:x}=ar(this.Hh|0,this.Hl|0,E|0,x|0),this.set(s,r,a,i,l,c,d,f,u,m,p,C,b,v,E,x)}roundClean(){$i(Vr,Wr)}destroy(){$i(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class HZ extends Vv{constructor(){super(48),this.Ah=Kt[0]|0,this.Al=Kt[1]|0,this.Bh=Kt[2]|0,this.Bl=Kt[3]|0,this.Ch=Kt[4]|0,this.Cl=Kt[5]|0,this.Dh=Kt[6]|0,this.Dl=Kt[7]|0,this.Eh=Kt[8]|0,this.El=Kt[9]|0,this.Fh=Kt[10]|0,this.Fl=Kt[11]|0,this.Gh=Kt[12]|0,this.Gl=Kt[13]|0,this.Hh=Kt[14]|0,this.Hl=Kt[15]|0}}const X5=I7(()=>new $Z),r0e=I7(()=>new Vv),a0e=I7(()=>new HZ),ql=64,J5=4294967296,Q5=1e6,VZ=32,WZ=new Set(Object.values(ue)),ZZ=e=>{const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n+=1)t[n]=Number.parseInt(e.slice(n*2,n*2+2),16);return t};class Ir{constructor(t,n){er(this,"buffer",new Uint8Array(0));er(this,"offset",0);er(this,"counter",0);er(this,"key");er(this,"nonce");if(this.domain=n,!WZ.has(n))throw new Error("Invalid domain");if(!t.serverSeed)throw new Error("Empty server seed");if(!t.clientSeed)throw new Error("Empty client seed");if(!Number.isInteger(t.nonce)||t.nonce<0)throw new Error("Invalid nonce");if(!/^[0-9a-fA-F]+$/.test(t.serverSeed)||t.serverSeed.length!==VZ*2)throw new Error("Server seed must be 32 bytes hex string");const{key:s,nonce:r}=this.deriveChaChaParams(t.serverSeed,t.clientSeed,t.nonce);this.key=s,this.nonce=r}deriveChaChaParams(t,n,s){const r=AZ(X5(S2(n))),a=ZZ(t),i=P6(X5,a,S2(`key=${this.domain}
14client=${r}
15nonce=${s}
16`)).subarray(0,32),l=P6(X5,a,S2(`iv=${this.domain}
17client=${r}
18nonce=${s}
19`)).subarray(0,12);if(i.length!==32)throw new Error("ChaCha20 key must be 32 bytes");if(l.length!==12)throw new Error("ChaCha20 nonce must be 12 bytes");return{key:new Uint8Array(i),nonce:new Uint8Array(l)}}refill(t=ql){if(t<=0)throw new Error("Bytes must be > 0");const n=t%ql===0?t:Math.ceil(t/ql)*ql,s=new Uint8Array(n),r=new 
19Uint8Array(n);CZ(this.key,this.nonce,s,r,this.counter),this.buffer=r,this.offset=0;const a=n/ql;if(this.counter=this.counter+a>>>0,this.counter===0&&a>0)throw new Error("Too many blocks generated with the same key+nonce, rekey required")}nextU8(){this.offset>=this.buffer.length&&this.refill();const t=this.buffer[this.offset];return this.offset+=1,t}nextU32(){this.offset+4>this.buffer.length&&this.refill();const t=this.buffer[this.offset],n=this.buffer[this.offset+1],s=this.buffer[this.offset+2],r=this.buffer[this.offset+3];return this.offset+=4,(t|n<<8|s<<16|r<<24)>>>0}nextFloat(){const t=this.nextU32()>>>5,n=this.nextU32()>>>6;return(t*2**26+n)/2**53}intInRange(t,n){if(!Number.isInteger(t)||!Number.isInteger(n)||n<t)throw new Error("Invalid range");const s=n-t+1;if(s<=0||s>J5)throw new Error("Range too large");const r=s>>>0,a=J5-J5%r;for(;;){const i=this.nextU32();if(i<a)return t+i%r}}bytes(t){if(!Number.isInteger(t)||t<0)throw new Error("Invalid byte count");const n=new Uint8Array(t);for(let s=0;s<t;s+=1)n[s]=this.nextU8();return n}fisherYatesShuffle(t){const n=t.slice();for(let s=n.length-1;s>0;s-=1){const r=this.intInRange(0,s);[n[s],n[r]]=[n[r],n[s]]}return n}fisherYatesIndices(t){if(!Number.isInteger(t)||t<0)throw new Error("Invalid n");return this.fisherYatesShuffle(Array.from({length:t},(n,s)=>s))}pickKIndices(t,n){if(!Number.isInteger(t)||t<0)throw new Error("Invalid n");if(!Number.isInteger(n)||n<0||n>t)throw new Error("Invalid k");return this.fisherYatesIndices(t).slice(0,n)}pickWeightedIndex(t,n=!1){if(!Array.isArray(t)||t.length===0)throw new Error("Empty probabilities");let s=0;for(const d of t){if(!Number.isFinite(d)||d<0)throw new Error("Invalid probability");s+=d}if(s<=0)throw new Error("Probabilities sum must be > 0");if(!n&&Math.abs(s-1)>1e-12)throw new Error(`Probabilities sum is not 1 (sum=${s})`);const r=n?s:1,a=t.map((d,f)=>{const u=d/r*Q5,m=Math.floor(u);return{index:f,base:m,fraction:u-m}});let i=Q5-a.reduce((d,f)=>d+f.base,0);if(i<0)throw new Error("Internal error: remaining < 0");a.sort((d,f)=>f.fraction-d.fraction);for(let d=0;d<a.length&&i>0;d+=1,i-=1)a[d].base+=1;const l=this.intInRange(0,Q5-1);a.sort((d,f)=>d.index-f.index);let c=0;for(const d of a)if(c+=d.base,l<c)return d.index;throw new Error("Failed to pick weighted index")}geometricFatalLine(t,n){if(!Number.isInteger(t)||t<=0)throw new Error("Invalid linesCount");if(!Number.isFinite(n)||!(n>0&&n<1))throw new Error("Invalid probability");const s=this.nextFloat(),r=Math.floor(Math.log1p(-s)/Math.log(n))+1;return r>t?t+1:r}geometricFatalLineWithInstantFail(t,n,s){if(!Number.isInteger(t)||t<=0)throw new Error("Invalid linesCount");if(!Number.isFinite(n)||!(n>0&&n<1))throw new Error("Invalid p");if(!Number.isFinite(s)||!(s>=0&&s<1))throw new Error("Invalid q");return this.nextFloat()<s?0:this.geometricFatalLine(t,n)}bandedFatalLine(t,n=1){if(!Array.isArray(t)||t.length===0)throw new Error("Invalid hazards");if(!Number.isInteger(n)||n<1)throw new Error("Invalid firstFloor");for(let s=0;s<t.length;s+=1){const r=t[s];if(!Number.isFinite(r)||!(r>0&&r<1))throw new Error("Invalid hazard");if(this.nextFloat()<r)return n+s}return n+t.length}}const Ae=Je("fairGames"),Wv=Ae.createEvent("battlepassRequired"),M7=Ae.createEvent("gameErrorToasted"),R1=e=>{if(e&&typeof e=="object"&&"message"in e){const{message:t}=e;return typeof t=="string"?t:""}return""},N1=e=>{if(e===hv.BATTLEPASS_REQUIRED)throw Wv(),new T7;M7(e)},GZ=1200,zZ=4,Zv=async e=>{let t=await e();for(let n=1;n<zZ&&t.status===429;n+=1)await new Promise(s=>setTimeout(s,GZ)),t=await e();return t},Gv=async e=>{const{status:t,data:n}=await Ln().http.get(e),s=R1(n);return t>=400||s?N1(s):n==null?void 0:n.data},k1=async(e,t)=>{const{status:n,data:s}=await Ln().http.post(e,t),r=R1(s);return n>=400||r?N1(r):s==null?void 0:s.data},zv=async e=>{const{status:t,data:n}=await Zv(()=>Ln().http.get(e)),s=R1(n);return t>=400||s?N1(s):n==null?void 0:n.data},qZ=async(e,t)=>{const{status:n,data:s}=await Zv(()=>Ln().http.post(e,t)),r=R1(s);return n>=400||r?N1(r):s==null?void 0:s.data},YZ=Ae.createEffect(async e=>{const t=await Gv(`${as.GAMES}/${e}`);if(!t)throw new Error(`Failed to load ${e}`);return t}
19),up=Ae.createEffect(async e=>{const t=await Gv(`${as.GAMES}/${e}/metrics`);if(!t)throw new Error(`Failed to load metrics for ${e}`);return t}),_s=Ae.createEffect(async({gameCode:e,betSettings:t,bet:n})=>k1(`${as.GAMES}/${e}/list-multipliers`,{betSettings:t,bet:n})),KZ=Ae.createEffect(async({gameCode:e,payload:t})=>k1(`${as.GAMES}/${e}/constraints`,t)),XZ=Ae.createEffect(async({gameCode:e,payload:t})=>k1(`${as.TRANSACTION}/${e}/bet`,t)),JZ=Ae.createEffect(async({gameCode:e,payload:t})=>k1(`${as.TRANSACTION}/${e}/bet`,t)),QZ=Ae.createEffect(async({gameCode:e,round:t,isRoom:n})=>k1(`${as.TRANSACTION}/${e}/cashout/${t}`,{isRoom:n})),xc=Ae.createEffect(async({gameCode:e,page:t,pageSize:n})=>{const{status:s,data:r}=await Ln().http.get(`${as.GAMES}/${e}/rounds?page=${t}&pageSize=${n}`);if(s>=400||!Array.isArray(r==null?void 0:r.rounds))throw N1(R1(r)),new Error(`Failed to load closed rounds for ${e}`);return{rounds:r.rounds,pagination:r.pagination}}),L2=Ae.createEffect(async()=>zv(`${as.PROVABLY_FAIR}/current-seeds`)),G0=Ae.createEffect(async()=>{const e=await zv(`${as.PROVABLY_FAIR}/seeds`);if(!Array.isArray(e))throw new Error("Failed to load provably-fair seed history");return e}),fi=Ae.createEffect(async e=>qZ(`${as.PROVABLY_FAIR}/seeds`,{clientSeed:e})),eG=Ae.createEvent("seedsRequested"),tG=Ae.createEvent("seedHistoryRequested"),nG=Ae.createEvent("seedRotationRequested"),sG=Ae.createEvent("seedRotationErrorCleared"),Yl=Ae.createEvent("seedsToVerifySet"),rG=Ae.createEvent("clientSeedToVerifyChanged"),aG=Ae.createEvent("serverSeedToVerifyChanged"),oG=Ae.createEvent("nonceToVerifyChanged"),iG=Ae.createEvent("minesCountToVerifyChanged"),Zr=Ae.createEvent("provablyFairStateReset"),e3=Ae.createStore(null,{name:"currentSeed"}),fp=Ae.createStore([],{name:"oldSeeds"}),Kl=Ae.createStore("",{name:"clientSeedToVerify"}),Xl=Ae.createStore("",{name:"serverSeedToVerify"}),Jl=Ae.createStore("",{name:"nonceToVerify"}),mp=Ae.createStore("",{name:"roundIdToVerify"}),t3=Ae.createStore(0,{name:"minesCountToVerify"}),lG=Ae.createStore(null,{name:"seedRotationError"});L2.pending;const o0e=fi.pending,cG=Ae.createStore(null,{name:"seedTripleToVerify"});let hp=!1;const dG=()=>{hp||(hp=!0,h({clock:eG,source:L2.pending,filter:e=>!e,target:L2}),h({clock:tG,source:G0.pending,filter:e=>!e,target:G0}),e3.on(L2.doneData,(e,t)=>t??e),fp.on(G0.doneData,(e,t)=>t.map((n,s)=>({...n,index:s}))),h({clock:nG,target:fi}),e3.on(fi.doneData,(e,t)=>t??e),h({clock:fi.doneData,filter:e=>!!e,target:G0}),lG.on(fi.failData,(e,t)=>t.message).reset(fi,sG,Zr),Kl.on(rG,(e,t)=>t),Xl.on(aG,(e,t)=>t),Jl.on(oG,(e,t)=>t),t3.on(iG,(e,t)=>t),Kl.on(Yl,(e,{clientSeed:t})=>t),Xl.on(Yl,(e,{serverSeed:t})=>t),Jl.on(Yl,(e,{nonce:t})=>t),mp.on(Yl,(e,{round:t})=>t??e),t3.on(Yl,(e,{minesCount:t})=>t??e),h({clock:[Kl,Xl,Jl],source:{clientSeed:Kl,serverSeed:Xl,nonce:Jl},fn:({clientSeed:e,serverSeed:t,nonce:n})=>{const s=Number(n);return!e||!t||n===""||!Number.isInteger(s)||s<0?null:{clientSeed:e,serverSeed:t,nonce:s}},target:cG}),e3.reset(Zr),fp.reset(Zr),Kl.reset(Zr),Xl.reset(Zr),Jl.reset(Zr),mp.reset(Zr),t3.reset(Zr))},i0e=e=>e.length>8?`${e.slice(0,4)}...${e.slice(-4)}`:e,l0e=e=>typeof e.serverSeed=="string"&&e.serverSeed!=="",c0e=e=>e.serverSeed??e.serverSeedHash??"",ld=new Map,n3=new Map,qv=async({gameCode:e,onPublication:t})=>{if(ld.has(e))return!0;const n=n3.get(e);if(n)return n;const s=uG({gameCode:e,onPublication:t}).finally(()=>n3.delete(e));return n3.set(e,s),s},uG=async({gameCode:e,onPublication:t})=>{const n=oW(e),s=`public:${n}`,r=Ln();for(let a=1;a<=Jh;a+=1){const{data:i}=await r.http.get(aW(n));if(!(i!=null&&i.connection)||!(i!=null&&i.subscription)){console.error(`[Originals socket] Failed to obtain tokens for ${s} (attempt ${a})`);continue}const l=await d1({socketUrl:r.getSocketUrl(),connectionToken:i.connection,subscriptionToken:i.subscription,channelName:s,contextId:`Originals ${s}`,handlers:{onPublication:c=>t(c.data)}});if(l)return ld.set(e,l),!0}return console.error(`[Originals socket] Giving up on ${s} after ${Jh} attempts`),!1},Yv=e=>{const t=ld.get(e);t&&(ld.delete(e),Gi(t))},pp=Ae.createEvent("closedRoundsRequested"),s3=Ae.createEvent("closedRoundsReset"),fG=Ae.createStore(null,{name:"closedRounds"}),mG=Ae.createStore(1,{name:"closedRoundsPage"}),d0e=xc.pending,hG=Ae.createStore(null,{name:"closedRoundsError"});let gp=!1;const pG=()=>
19{gp||(gp=!0,h({clock:pp,fn:({gameCode:e,page:t})=>({gameCode:e,page:t,pageSize:YV}),target:xc}),mG.on(pp,(e,{page:t})=>t).reset(s3),fG.on(xc.doneData,(e,t)=>t).reset(s3),hG.on(xc.failData,(e,t)=>t.message).reset(xc,s3))},u0e=e=>{const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`},ms=(e,t,n)=>e.createStore(t,{name:n}),Rs=({gameCode:e,capabilities:t,hooks:n,resetsBetAmountOnLoad:s=!1,roundsBetAmountHalfEven:r=!0})=>{const a=Je(`fairGames/${e}`),i=a.createStore(null,{name:"gameSettings"}),l=a.createStore(null,{name:"gameInfo"}),c=a.createStore(null,{name:"gameConfig"}),d=a.createStore(null,{name:"metrics"}),f=a.createStore(null,{name:"gameConstraints"}),u=a.createStore(!1,{name:"isAutoplayPlaying"}),m=t.turbo?a.createStore(!1,{name:"isTurboMode"}):ms(a,!1,"isTurboMode.disabled"),p=a.createStore(!1,{name:"isMaxBetOn"}),C=a.createStore(Bn.MANUAL,{name:"gameplayMode"}),b=a.createStore(1,{name:"betAmount"}),v=a.createStore(fe.USDT,{name:"betCurrency"}),E=a.createStore(0,{name:"currencyRate"}),x=a.createStore(0,{name:"numberOfAutoplayBets"}),g=a.createStore(0,{name:"counterOfRemainingAutoplayBets"}),A=a.createStore(0,{name:"stopOnLoss"}),k=a.createStore(0,{name:"stopOnProfit"}),R=a.createStore(0,{name:"totalWinAmount"}),O=a.createStore(0,{name:"totalLossAmount"}),U=a.createStore(null,{name:"round"}),V=a.createStore(null,{name:"result"}),z=a.createStore(null,{name:"bet"}),G=a.createStore(null,{name:"betSettings"}),W=a.createStore(null,{name:"nextMultiplier"}),I=a.createStore(null,{name:"balance"}),H=a.createStore(null,{name:"outcome"}),j=a.createStore(null,{name:"availableFreebet"}),N=a.createStore(!1,{name:"isGameInitialised"}),q=a.createStore(!1,{name:"isActionLoading"}),ee=a.createStore(!1,{name:"isRequestPending"}),ae=a.createStore(null,{name:"lastAccountedRound"}),Se=j.map(_=>_!==null),ce=t.multipliers?a.createStore(null,{name:"multipliers"}):ms(a,null,"multipliers.disabled"),be=t.cashoutAt?a.createStore(0,{name:"cashoutAt"}):ms(a,0,"cashoutAt.disabled"),se=t.betAvailability?n.betAvailable??ms(a,!0,"isBetAvailable.missing"):ms(a,!0,"isBetAvailable.disabled"),Y=t.audio?a.createStore(aZ(e),{name:"isAudioOn"}):ms(a,!1,"isAudioOn.disabled"),ge=P(U,V,(_,T)=>!!_&&(T==null?void 0:T.roundClosed)===!1),ke=n.busy??ms(a,!1,"busy.absent"),ot=t.async?n.isPlaying??ms(a,!1,"isPlaying.async.missing"):t.cashout?P(ge,ee,ke,(_,T,le)=>_||T||le):P(ee,ke,(_,T)=>_||T),_t=t.cashout?P(ge,n.cashoutReady??ms(a,!0,"cashoutReady.absent"),(_,T)=>_&&T):ms(a,!1,"isCashoutAvailable.disabled"),Be=P(R,O,(_,T)=>An(Qc(_,T),2)),S=P(j,v,(_,T)=>T===fe.WHALE?!1:!!(_&&Number(_.betCount)-Number(_.usedBetCount)>0)),L=j.map(_=>(_==null?void 0:_.freeBetId)??null),K=j.map(_=>_?Number(_.betCount)-Number(_.usedBetCount):0),we=P(j,S,(_,T)=>T?_:null),Rt=P(b,E,(_,T)=>T?An(yr(_,T),2):0),Pr=P(V,G,(_,T)=>_?{winAmount:Number(_.winAmount??0),multiplier:A1(Number(_.multiplier??0)),roundClosed:_.roundClosed===!0,winAmountInUsd:Number(_.winAmountInUsd??0),betCurrency:T==null?void 0:T.betCurrency,isConstrained:_.isConstrained??!1}:null),te=U.map(_=>_),Qe=P(u,C,n.autoplayReady??ms(a,!0,"autoplayReady.absent"),(_,T,le)=>T===Bn.AUTOPLAY&&_===!1&&le),Na=i.map(_=>_?Object.values(fe).filter(T=>!_.allowedCurrencies.includes(T)):[]),In=a.createStore(null,{name:"amountError"}),bl=a.createEvent("betCurrencySet"),Dr=a.createEvent("betAmountSet"),Dt=a.createEvent("gameplayModeSet"),Do=a.createEvent("autoplayStopped"),Zn=a.createEvent("numberOfAutoplayBetsSet"),X1=a.createEvent("metricsRequested"),J1=a.createEvent("multipliersCleared"),ka=a.createEvent("audioToggled"),Q1=a.createEvent("stopOnLossSet"),vl=a.createEvent("stopOnProfitSet"),Fo=a.createEvent("cashoutAtSet"),Xs=a.createEvent("turboModeToggled"),El=a.createEvent("maxBetToggled"),De=a.createEvent("gameUnmounted"),Sl=a.createEvent("betSettled"),ls=a.createEvent("currentStateApplied"),Ia=a.createEvent("autoplayStarted"),Ll=a.createEvent("autoplayFinished"),Mn=a.createEvent("autoplayBetCounted"),Ma=()=>v.getState()===fe.WHALE?yo(Ov(),fe.WHALE):Gl(),Fr=()=>{var _;return((_=f.getState())==null?void 0:_.betAmountInUsd)??Cv.betAmountInUsd},cs=_=>{const{min:T,max:le}=Fr();Js(np({amount:_,balance:Ma(),min:T,max:le,halfEvenRounding:r}))},e0=_=>{if(Ma()>0){cs(_);return}const{min:T,max:le}=Fr();Js(An(Math.min(Math.max(M6(_,r),T),le),2))},Al=()=>{const{min:_,max:T,default:le}=Fr();Js(An(Math.min(Math.max(le,_),T),2))},Js=a.createEvent("betAmountApplied");let Oa=0,me=0;const Ct=async(_=()=>!0)=>
19{if(!_()||n.canRequestConstraints&&!n.canRequestConstraints())return;const T=Oa,le=++me,Ue=v.getState(),He=U.getState(),On=await KZ({gameCode:e,payload:{betCurrency:v.getState(),betSettings:n.readBetSettings(),bet:(n.readConstraintsBet??n.readBet)()}});On&&_()&&T===Oa&&le===me&&Ue===v.getState()&&He===U.getState()&&Nt(On)},Nt=a.createEvent("constraintsReceived"),qt=N7(Ct,A7),Qs=_=>_?Ct(_):qt(),vt=_=>{var On;const T=(On=i.getState())==null?void 0:On.allowedCurrencies,le=Pa=>!!Pa&&(!T||T.includes(Pa));let He=[_,b3.getState(),fT()].find(le)??void 0;He||(He=fe.USDT,Ln().isInTribes()||Jg(He)),xn({currency:He,rate:Pv(He)})},Cn=a.createEffect(async _=>{vt(_),await Qs(),Dr(void 0)}),xn=a.createEvent("betCurrencyApplied"),jo=a.createEffect(_=>{var le;if(_===void 0){const Ue=j.getState();if(Ue&&S.getState()){Js(Ue.betAmountInUsd);return}}const T=_===void 0?(le=G.getState())==null?void 0:le.betAmountInUsd:M6(_,r);if(!T){Al();return}if(_===void 0){e0(T);return}cs(T)}),cn=(_,T=!1)=>{var le,Ue;ls({state:_,onInitialLoad:T}),(le=n.onCurrentState)==null||le.call(n,_,{onInitialLoad:T}),((Ue=_==null?void 0:_.result)==null?void 0:Ue.roundClosed)===!0&&p.getState()&&!S.getState()&&jo(Gl())},$o=a.createEffect(async()=>{var Ue;cn(null),Bo();const _=await YZ(e),{settings:T,...le}=_.game;t.async||cn(_.currentState??null,!0),Tl({settings:T,gameInfo:le,config:_.config,metrics:_.metrics}),vt(void 0),await((Ue=n.onGameLoaded)==null?void 0:Ue.call(n,_)),await Qs(),Dr(void 0),s&&!S.getState()&&Al(),H9()}),Bo=a.createEvent("gameReset");Bo.watch(()=>{Oa+=1}),De.watch(()=>{Oa+=1});const Tl=a.createEvent("gameLoaded"),H9=a.createEvent("initialisationCompleted"),V9=async()=>{var _;_l();try{const T=L.getState(),le=!ge.getState()&&!!(S.getState()&&T),Ue=await XZ({gameCode:e,payload:{round:ge.getState()?U.getState():null,betAmount:{betCurrency:v.getState(),betAmount:b.getState(),isFreeBet:le,freeBetId:le?T:void 0},betSettings:n.readBetSettings(),bet:n.readBet(),isRoom:Ln().isInTribes()}});if(!Ue){Z9();return}cn(Ue),(_=n.onBetSettled)==null||_.call(n,Ue),Sl(Ue)}finally{Uo()}},W9=a.createEffect(async()=>{var _;ee.getState()||ge.getState()||((_=n.onPlaceBet)==null||_.call(n),await V9())}),jA=a.createEffect(async()=>{ee.getState()||!ge.getState()||await V9()}),_l=a.createEvent("betRequestStarted"),Uo=a.createEvent("betRequestFinished"),Z9=a.createEvent("betRejected"),$A=a.createEffect(async _=>{if(t.async){_l();try{const T=S.getState(),le=L.getState(),Ue=!!(T&&le),He=await JZ({gameCode:e,payload:{betAmount:{betCurrency:_.betCurrency??v.getState(),betAmount:_.betAmount??b.getState(),isFreeBet:Ue,freeBetId:Ue?le:void 0},betSettings:_.betSettings??n.readBetSettings(),bet:_.bet,isRoom:Ln().isInTribes()}});return He?(Zu(He),He):void 0}finally{Uo()}}}),Zu=a.createEvent("asyncBetAcknowledged"),BA=a.createEffect(async()=>{var T;if(!t.cashout)return;const _=U.getState();if(!(!_||ee.getState()||!_t.getState())){_l();try{const le=await QZ({gameCode:e,round:_,isRoom:Ln().isInTribes()});if(!le)return;cn(le),(T=n.onBetSettled)==null||T.call(n,le),Sl(le)}finally{Uo()}}}),UA=a.createEffect(async()=>{var He;if(!t.autoplay||ot.getState()||u.getState()||!Qe.getState())return;Ia();const _=n.autoplayIteration??(()=>W9()),T=g.getState()||Number.MAX_SAFE_INTEGER,le=n.autoplayPacing??{normal:XV,turbo:JV},Ue=m.getState()?le.turbo:le.normal;try{for(let On=0;On<T;On+=1){const Pa=Be.getState(),Rl=k.getState(),n0=A.getState();if(Rl&&Pa>=Rl||n0&&Pa<=0-n0||!u.getState())break;const VA=Date.now();if(await _(),!u.getState())break;await R7(Ue-(Date.now()-VA)),Mn()}await((He=n.onAutoplayFinished)==null?void 0:He.call(n))}finally{Ll()}});i.on(Tl,(_,{settings:T})=>T),l.on(Tl,(_,{gameInfo:T})=>T),c.on(Tl,(_,{config:T})=>T),d.on(Tl,(_,{metrics:T})=>T),i.reset(Bo),c.reset(Bo),d.reset(Bo),N.on(H9,()=>!0).reset($o.fail,De),h({clock:X1,fn:()=>e,target:up}),d.on(up.doneData,(_,T)=>T),h({clock:Na,target:q9}),h({clock:ot,target:Y9}),h({clock:De,fn:()=>[],target:q9}),h({clock:De,fn:()=>!1,target:Y9}),U.on(ls,(_,{state:T})=>(T==null?void 0:T.round)??null),V.on(ls,(_,{state:T})=>(T==null?void 0:T.result)??null),z.on(ls,(_,{state:T})=>(T==null?void 0:T.bet)??null),G.on(ls,(_,{state:T})=>(T==null?void 0:T.betSettings)??null),W.on(ls,(_,{state:T})=>(T==null?void 0:T.nextMultiplier)??null),I.on(ls,(_,{state:T})=>(T==null?void 0:T.balance)??null),H.on(ls,(_,{state:T})=>(T==null?void 0:T.determinedOutcome)??null),j.on(Zu,(_,T)=>T.availableFreebet??null),I.on(Zu,(_,T)=>T.balance??_),j.on(ls,(_,{state:T,onInitialLoad:le})=>{var Ue;return!(T!=null&&T.round)||((Ue=T==null?void 0:T.result)==null?void 0:Ue.roundClosed)===!0||le?(T==null?void 0:T.availableFreebet)??null:_}),ee.on(_l,()=>!0).on(Uo,()=>!1),ee.reset(De),h({clock:_l,source:u,filter:_=>!_,fn:()=>!0,target:q}),q.on(Uo,()=>!1).reset(De),t.multipliers&&(ce.on(_s.done,(_,{params:T,result:le})=>
19T.gameCode===e&&(!T.isCurrent||T.isCurrent())?le??_:_),ce.reset(Bo,J1)),f.on(Nt,(_,T)=>T),b.on(Js,(_,T)=>T),h({clock:Dr,target:jo}),h({clock:bl,target:Cn}),v.on(xn,(_,{currency:T})=>T),E.on(xn,(_,{rate:T})=>T),h({clock:Ai.updates,source:v,fn:(_,T)=>T[_]??0,target:E}),p.on(El,(_,T)=>T).reset(De),t.turbo&&m.on(Xs,(_,T)=>T),h({clock:[b,v,f,i,xo,Ai,E,N,S],source:{betAmount:b,betCurrency:v,gameSettings:i,gameConstraints:f,isInitialised:N,isFreeBet:S},fn:({betAmount:_,betCurrency:T,gameSettings:le,gameConstraints:Ue,isInitialised:He,isFreeBet:On})=>He?sZ({betAmount:_,betCurrency:T,gameSettings:le,gameConstraints:Ue,isFreeBet:On,userBalanceInUsd:Ma()}):null,target:In}),h({clock:b3.updates,source:N,filter:_=>_,fn:(_,T)=>T,target:bl});const G9=({isMaxBetOn:_,isInitialised:T,isRoundOpen:le})=>_&&T&&!le,HA=()=>{const{min:_,max:T}=Fr();return np({amount:Gl(),balance:Ma(),min:_,max:T,halfEvenRounding:r})};h({clock:xo.updates,source:{isMaxBetOn:p,isInitialised:N,isRoundOpen:ge,isRequestPending:ee,isFreeBet:S},filter:({isRequestPending:_,isFreeBet:T,...le})=>G9(le)&&!T&&!(_&&!t.async),fn:()=>Gl(),target:Dr}),h({clock:Uo,source:{isMaxBetOn:p,isInitialised:N,isRoundOpen:ge,isFreeBet:S,betAmount:b},filter:({isFreeBet:_,betAmount:T,...le})=>G9(le)&&!_&&T!==HA(),fn:()=>Gl(),target:Dr}),h({clock:j.updates,source:K,filter:(_,T)=>!!T,fn:(_,T)=>({amount:T.betAmountInUsd,remaining:_}),target:a.createEffect(({amount:_,remaining:T})=>{Js(_),Zn(T)})}),h({clock:Se.updates,source:N,filter:(_,T)=>_&&!T,target:a.createEffect(()=>{Al(),Zn(KV)})}),u.on(Ia,()=>!0).on([Ll,Do,Z9],()=>!1),u.reset(De),R.reset(Ia,De),O.reset(Ia,De),g.on(Mn,_=>_-1),x.on(Zn,(_,T)=>T),g.on(Zn,(_,T)=>T),C.on(Dt,(_,T)=>T),R.reset(C.updates),O.reset(C.updates),k.on(vl,(_,T)=>T).reset(De),h({clock:Q1,fn:_=>{const T=Ma();return _==="max"?T:Math.min(Number(_),T)},target:A}),A.reset(De),h({clock:V.updates,source:{round:U,lastAccountedRound:ae,betSettings:G,mode:C,win:R,loss:O},filter:({round:_,lastAccountedRound:T,betSettings:le,mode:Ue},He)=>!!(le&&(He==null?void 0:He.roundClosed)===!0&&_!==T&&Ue===Bn.AUTOPLAY),fn:({round:_,betSettings:T,win:le,loss:Ue},He)=>{const On=(T==null?void 0:T.betCurrency)===fe.WHALE,Pa=Number(On?(T==null?void 0:T.betAmount)??0:(T==null?void 0:T.betAmountInUsd)??0),Rl=Number((He==null?void 0:He.multiplier)??0),n0=Rl>0?Number(On?(He==null?void 0:He.winAmount)??0:(He==null?void 0:He.winAmountInUsd)??0):0;return{round:_,loss:Lo(un(Ue,Pa),2),win:Rl>0?Lo(un(le,n0),2):le}},target:a.createEffect(({round:_,win:T,loss:le})=>{t0({round:_,win:T,loss:le})})});const t0=a.createEvent("roundAccounted");return R.on(t0,(_,{win:T})=>T),O.on(t0,(_,{loss:T})=>T),ae.on(t0,(_,{round:T})=>T),ae.reset(De),t.audio&&(Y.on(ka,_=>!_),Y.updates.watch(_=>oZ(e,_))),t.cashoutAt&&be.on(Fo,(_,T)=>T),h({clock:De,target:Do}),U.reset(De),V.reset(De),z.reset(De),G.reset(De),W.reset(De),I.reset(De),H.reset(De),j.reset(De),In.reset(De),De.watch(()=>{var _;(_=n.onReset)==null||_.call(n)}),{gameId:e,isAutoplayAvailable:t.autoplay,capabilities:t,$multipliers:ce,$totalProfitAmount:Be,$
19stopOnLoss:A,$stopOnProfit:k,$cashoutAt:be,$roundId:te,$isPlaying:ot,$isCashoutAvailable:_t,$isBetAvailable:se,$isFreeBet:S,$isAudioOn:Y,$isTurboMode:m,$remainingFreebetCount:K,$betAmountInCurrency:Rt,$betAmount:b,$betCurrency:v,$gameSettings:i,$gameInfo:l,$gameConfig:c,$metrics:d,$numberOfAutoplayBets:x,$counterOfRemainingAutoplayBets:g,$roundResult:Pr,$gameplayMode:C,$isRunningAutoplayAvailable:Qe,$isAutoplayPlaying:u,$isMaxBetOn:p,$gameConstraints:f,initGameFx:$o,betCurrencySet:bl,betAmountSet:Dr,placeBetFx:W9,cashOutFx:BA,gameplayModeSet:Dt,startAutoplayFx:UA,autoplayStopped:Do,numberOfAutoplayBetsSet:Zn,metricsRequested:X1,multipliersCleared:J1,audioToggled:ka,stopOnLossSet:Q1,stopOnProfitSet:vl,cashoutAtSet:Fo,turboModeToggled:Xs,maxBetToggled:El,$amountError:In,$restrictedCurrencies:Na,$isGameInitialised:N,$isActionLoading:q,$isRequestPending:ee,$isRoundOpen:ge,continueRoundFx:jA,submitAsyncBetFx:$A,$outcome:H,$bet:z,$betSettings:G,$availableFreebet:j,$activeFreebet:we,betSettled:Sl,gameUnmounted:De,refreshConstraints:Qs}},fa={ABOVE:"above",BELOW:"below"},f0e="#54D149",m0e="#FF6659",h0e=(e,t)=>{const n=Number(t.diceRange.min),s=Number(t.diceRange.max),r=Number(t.diceRange.step),a=new Ir(e,ue.WhaleDice).intInRange(n,s);if(a<n||a>s)throw new Error("Dice number out of range");if(a%r!==0)throw new Error("Dice number not divisible by step");return{diceNumber:a}},p0e=(e,t,n)=>e===fa.ABOVE?t>n:t<n,Ns=Je("fairGames/whale_dice/dice"),I1=Ns.createStore(fa.ABOVE,{name:"diceDirection"}),M1=Ns.createStore(0,{name:"diceNumber"}),Kv=Ns.createStore([],{name:"previousRolls"}),mu=Ns.createEvent("diceNumberApplied"),O7=Ns.createEvent("diceDirectionApplied"),Xv=Ns.createEvent("rollRecorded"),P7=Ns.createEvent("diceStateReset");M1.on(mu,(e,t)=>t);I1.on(O7,(e,t)=>t);Kv.on(Xv,(e,t)=>[t,...e].slice(0,iu));Kv.reset(P7);I1.reset(P7);const Cs=Rs({gameCode:ue.WhaleDice,capabilities:{autoplay:!0,audio:!1,turbo:!0,cashout:!1,cashoutAt:!1,multipliers:!0,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({diceDirection:I1.getState()}),readBet:()=>({diceNumber:M1.getState()}),onGameLoaded:async e=>{var l,c,d,f;const t=e.config,n=(c=(l=e.currentState)==null?void 0:l.betSettings)==null?void 0:c.diceDirection,s=n===fa.BELOW||n===fa.ABOVE?n:fa.ABOVE;O7(s);const r=t.diceDirectionRange[s],a=(f=(d=e.currentState)==null?void 0:d.bet)==null?void 0:f.diceNumber,i=typeof a=="number"?a:t.diceRange.default;mu(Math.min(Math.max(i,r.min),r.max)),await _s({gameCode:ue.WhaleDice,betSettings:{diceDirection:s}})},onBetSettled:e=>{var t,n,s;Xv({diceNumber:((t=e.determinedOutcome)==null?void 0:t.diceNumber)??0,winAmount:((n=e.result)==null?void 0:n.winAmount)??0,multiplier:Number(((s=e.result)==null?void 0:s.multiplier)??0)})},onReset:()=>{P7()}}}),Jv=(e,t)=>(e==null?void 0:e[String(t)])??null,g0e=P(M1,Cs.$multipliers,(e,t)=>{const n=Jv(t,e);return n!=null&&n.probability?Number((Number(n.probability)*100).toFixed(2)):null}),gG=P(M1,Cs.$multipliers,(e,t)=>{const n=Jv(t,e);return n!=null&&n.multiplier?A1(n.multiplier):null}),w0e=P(gG,Cs.$betAmount,(e,t)=>An(Hs(e??0,t),2)),wG=P(I1,Cs.$gameConfig,(e,t)=>{const n=t;return n?{min:n.diceRange.min,max:n.diceRange.max,step:n.diceRange.step,allowedMin:n.diceDirectionRange[e].min,allowedMax:n.diceDirectionRange[e].max}:null}),CG=Ns.createEvent("diceNumberSelected"),xG=Ns.createEvent("diceDirectionInverted"),yG=Ns.createEffect(async e=>{const t=wG.getState(),n=t?Math.min(Math.max(e,t.allowedMin),t.allowedMax):e;mu(n),await Cs.refreshConstraints()}),bG=Ns.createEffect(async()=>{if(Cs.$isPlaying.getState()||Cs.$isAutoplayPlaying.getState())return;const e=Cs.$gameConfig.getState(),t=I1.getState()===fa.ABOVE?fa.BELOW:fa.ABOVE,n=e==null?void 0:e.diceDirectionRange[t];n&&mu(Math.min(Math.max(M1.getState(),n.min),n.max)),O7(t),await _s({gameCode:ue.WhaleDice,betSettings:{diceDirection:t}}),await Cs.refreshConstraints()});h({clock:CG,source:P(Cs.$isPlaying,Cs.$isAutoplayPlaying,(e,t)=>e||t),filter:e=>!e,fn:(e,t)=>t,target:yG});h({clock:xG,target:bG});const Gt=Je("fairGames/whale_mines/mines"),hu=Gt.createStore(0,{name:"minesCount"}),pu=Gt.createStore([],{name:"selectedCells"}),e1=Gt.createStore([],{name:"selectedAutoplayCells"}),A2=Gt.createStore([],{name:"pendingCells"}),Qv=Gt.createStore([],{name:"outgoingCells"}),D7=Gt.createEvent("minesCountApplied"),vi=Gt.createEvent("minesSelectedCellsApplied"),eE=Gt.createEvent("minesAutoplayCellsApplied"),da=Gt.createEvent("minesPendingCellsApplied"),Ac=Gt.createEvent("minesOutgoingCellsApplied"),Bi=Gt.createEvent("minesStateReset");hu.on(D7,(e,t)=>t);pu.on(vi,(e,t)=>t).reset(Bi);e1.on(eE,(e,t)=>t).reset(Bi);A2.on(da,(e,t)=>t).reset(Bi);Qv.on(Ac,(e,t)=>t).reset(Bi);
19const Mt=Rs({gameCode:ue.WhaleMines,capabilities:{autoplay:!0,audio:!1,turbo:!0,cashout:!0,cashoutAt:!1,multipliers:!1,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({minesCount:hu.getState()}),readBet:()=>({selectedCells:Qv.getState()}),readConstraintsBet:()=>({selectedCells:[]}),cashoutReady:P(pu,e=>e.length>0),autoplayReady:P(e1,e=>e.length>0),onGameLoaded:e=>{var i,l,c,d;const t=e.config,n=(l=(i=e.currentState)==null?void 0:i.betSettings)==null?void 0:l.minesCount,s=T1(e.currentState,Mt.$activeFreebet.getState()),r=fu(s,t.minesCount);D7(r??(typeof n=="number"&&n>0?n:Number(t.minesCount.default)));const a=(d=(c=e.currentState)==null?void 0:c.bet)==null?void 0:d.selectedCells;vi(Array.isArray(a)?a:[]),da([]),Ac([])},onPlaceBet:()=>{if(Mt.$gameplayMode.getState()===Bn.AUTOPLAY){const e=e1.getState();da(e),Ac(e);return}vi([]),da([]),Ac([])},onBetSettled:e=>{var n,s;const t=Array.isArray((n=e.bet)==null?void 0:n.selectedCells)?(s=e.bet)==null?void 0:s.selectedCells:[];vi(t),da([])},onCurrentState:e=>{e===null&&Bi()},autoplayIteration:async()=>{await Mt.placeBetFx(),await Mt.cashOutFx()},onAutoplayFinished:async()=>{await Mt.cashOutFx()},onReset:()=>{Bi()}}}),tE=P(Mt.$gameplayMode,pu,e1,(e,t,n)=>e===Bn.AUTOPLAY?n:t),nE=P(Mt.$gameConfig,tE,hu,(e,t,n)=>Number((e==null?void 0:e.cellsCount)??0)-n>t.length),C0e=Mt.$outcome.map(e=>(e==null?void 0:e.minedCells)??[]),x0e=Mt.$gameConfig.map(e=>{const t=e;if(!t)return[];const n=Number(t.minesCount.min),s=Number(t.cellsCount),r=[];for(let a=n;a<s;a+=1)r.push(a);return r}),vG=Gt.createEvent("minesCountSelected"),F7=Gt.createEvent("minesCellSelected"),EG=Gt.createEvent("minesRandomCellPicked"),sE=async(e,t)=>{t&&!t()||(D7(e),await Mt.refreshConstraints(t))},SG=Gt.createEffect(async e=>{var n;await sE(e);const t=((n=Mt.$gameConstraints.getState())==null?void 0:n.betAmountInUsd.max)??0;Mt.$betAmount.getState()>t&&Mt.betAmountSet(t)}),LG=Gt.createEffect(e=>{const t=[...e1.getState()],n=t.indexOf(e);n!==-1?t.splice(n,1):(nE.getState()||t.pop(),t.push(e)),eE(t),da(t)}),AG=Gt.createEffect(async e=>{const t=pu.getState();if(e<0||t.includes(e)||!nE.getState()||!Mt.$isRoundOpen.getState())return;const n=[...t,e];vi(n),da([...A2.getState(),e]),Ac(n),await Mt.continueRoundFx(),A2.getState().includes(e)&&(vi(t),da(A2.getState().filter(s=>s!==e)))});h({clock:vG,target:SG});h({clock:F7,source:Mt.$gameplayMode,filter:e=>e===Bn.AUTOPLAY,fn:(e,t)=>t,target:LG});h({clock:F7,source:Mt.$gameplayMode,filter:e=>e!==Bn.AUTOPLAY,fn:(e,t)=>t,target:AG});h({clock:EG,source:{config:Mt.$gameConfig,active:tE},fn:({config:e,active:t})=>{const n=Number((e==null?void 0:e.cellsCount)??0);return uu(n,t)},target:F7});_1(Mt,{resolve:(e,t)=>fu(e,t.minesCount),read:()=>hu.getState(),apply:sE});const y0e=({cellIndex:e,phase:t,selectedCells:n,drawnCells:s})=>{const r=n.includes(e);if(t===ts.LOADED)return"initial";if(t===ts.SELECTION)return r?"selected":"initial";const a=s.includes(e);return!r&&a?"missed":r&&a?"matched":r?"selected":"initial"}
19,ts={LOADED:"loaded",SELECTION:"selection",REVEALING:"revealing",OVER:"over"},TG=e=>e?{stepMs:0,gameOverDelayMs:0}:{stepMs:tW,gameOverDelayMs:QV},b0e=(e,t)=>{const n=Number(t.cellsCount),s=Number(t.cellsCountToDraw),r=new Ir(e,ue.WhaleKeno).pickKIndices(n,s);if(!r.length||r.length!==s||r.some(a=>a<0||a>=n))throw new Error("Invalid drawn cells generated");return{drawnCells:r}},mt=Je("fairGames/whale_keno/keno"),gu=mt.createStore(no.EASY,{name:"difficulty"}),Xn=mt.createStore([],{name:"selectedCells"}),j7=mt.createStore([],{name:"drawnCells"}),$7=mt.createStore(0,{name:"revealedCount"}),B7=mt.createStore(ts.LOADED,{name:"phase"}),_G=mt.createStore(!1,{name:"showResultCard"}),U7=mt.createEvent("kenoDifficultyApplied"),O1=mt.createEvent("kenoSelectedCellsApplied"),po=mt.createEvent("kenoDrawnCellsApplied"),hr=mt.createEvent("kenoRevealedCountApplied"),go=mt.createEvent("kenoPhaseApplied"),wo=mt.createEvent("kenoResultCardShown"),Ao=mt.createEvent("kenoStateReset"),wp=mt.createEvent("kenoCellRevealed"),RG=mt.createEvent("kenoCellPicked");gu.on(U7,(e,t)=>t);Xn.on(O1,(e,t)=>t).reset(Ao);j7.on(po,(e,t)=>t).reset(Ao);$7.on(hr,(e,t)=>t).reset(Ao);B7.on(go,(e,t)=>t).reset(Ao);_G.on(wo,(e,t)=>t).reset(Ao);let lo=null,Tc=null,_c=null;const Ei=()=>{lo&&(clearInterval(lo),lo=null),Tc&&(clearTimeout(Tc),Tc=null),_c&&(clearTimeout(_c),_c=null)},Tn=Rs({gameCode:ue.WhaleKeno,capabilities:{autoplay:!0,audio:!0,turbo:!0,cashout:!1,cashoutAt:!1,multipliers:!0,betAvailability:!0,async:!1},hooks:{readBetSettings:()=>({difficulty:gu.getState()}),readBet:()=>({selectedCells:Xn.getState()}),canRequestConstraints:()=>Xn.getState().length>0,betAvailable:Xn.map(e=>e.length>0),autoplayReady:Xn.map(e=>e.length>0),busy:P(B7,e=>e===ts.REVEALING),onGameLoaded:async e=>{var r,a;const t=(a=(r=e.currentState)==null?void 0:r.betSettings)==null?void 0:a.difficulty,n=T1(e.currentState,Tn.$activeFreebet.getState()),s=ll(n,Object.values(no))??(t===no.EASY||t===no.MEDIUM||t===no.HARD?t:no.EASY);U7(s),O1([]),po([]),hr(0),go(ts.LOADED)},onPlaceBet:()=>{Ei(),wo(!1),po([]),hr(0),go(ts.REVEALING)},onBetSettled:e=>{var a,i;const t=Array.isArray((a=e.determinedOutcome)==null?void 0:a.drawnCells)?(i=e.determinedOutcome)==null?void 0:i.drawnCells:[];po(t),hr(0);const n=Xn.getState(),{stepMs:s,gameOverDelayMs:r}=TG(Tn.$isTurboMode.getState());s===0?(t.forEach(l=>wp({cell:l,isMatched:n.includes(l)})),hr(t.length)):lo=setInterval(()=>{const l=$7.getState()+1;hr(l);const c=t[l-1];typeof c=="number"&&wp({cell:c,isMatched:n.includes(c)}),l>=t.length&&lo&&(clearInterval(lo),lo=null)},s),Tc=setTimeout(()=>{go(ts.OVER),wo(!0),Tc=null,_c=setTimeout(()=>{wo(!1),_c=null},eW)},r)},onCurrentState:e=>{e===null&&(Ei(),Ao())},onReset:()=>{Ei(),Ao()}}}),NG=P(Tn.$gameConfig,Xn,(e,t)=>{const n=e;return Number((n==null?void 0:n.cellsCountToSelect.max)??0)>t.length}),v0e=P(j7,$7,(e,t)=>e.slice(0,t)),E0e=P(B7,j7,Xn,(e,t,n)=>e!==ts.OVER?null:t.filter(s=>n.includes(s)).length),S0e=Tn.$multipliers.map(e=>Object.entries(e??{}).map(([t,n])=>({matches:Number(t),multiplier:Number(n.multiplier)})).sort((t,n)=>t.matches-n.matches)),kG=mt.createEvent("kenoDifficultySelected"),IG=mt.createEvent("kenoCellToggled"),MG=mt.createEvent("kenoRandomCellsPicked"),OG=mt.createEvent("kenoSelectionCleared"),rE=async(e=()=>!0)=>{const t=gu.getState(),n=Xn.getState();!e()||!t||n.length===0||await _s({isCurrent:e,gameCode:ue.WhaleKeno,betSettings:{difficulty:t},bet:{selectedCells:n}})},aE=N7(rE,A7),H7=()=>{var t;
19const e=((t=Tn.$gameConstraints.getState())==null?void 0:t.betAmountInUsd.max)??0;!Tn.$isFreeBet.getState()&&e&&Tn.$betAmount.getState()>e&&Tn.betAmountSet(e)},oE=mt.createEffect(async({cell:e,reprice:t})=>{const n=[...Xn.getState()],s=n.indexOf(e);if(Ei(),wo(!1),po([]),hr(0),go(ts.SELECTION),s!==-1)n.splice(s,1);else{if(!NG.getState()||e<0)return;n.push(e),RG(e)}O1(n),t&&(await aE(),await Tn.refreshConstraints(),H7())}),PG=mt.createEffect(async()=>{const e=Tn.$gameConfig.getState();if(!e)return;O1([]);const t=Number(e.cellsCountToSelect.max);for(let n=0;n<t;n+=1){const s=uu(Number(e.cellsCount),Xn.getState());if(s<0)break;await oE({cell:s,reprice:n===t-1})}}),DG=mt.createEffect(async()=>{Ei(),wo(!1),Tn.multipliersCleared(),O1([]),po([]),hr(0),go(ts.SELECTION),await Tn.refreshConstraints(),H7()}),iE=async(e,t)=>{t&&!t()||(U7(e),await(t?rE(t):aE()),await Tn.refreshConstraints(t))},FG=mt.createEffect(async e=>{Ei(),wo(!1),po([]),hr(0),go(Xn.getState().length>0?ts.SELECTION:ts.LOADED),await iE(e),H7()});h({clock:kG,target:FG});h({clock:IG,fn:e=>({cell:e,reprice:!0}),target:oE});h({clock:MG,target:PG});h({clock:OG,target:DG});_1(Tn,{resolve:e=>ll(e,Object.values(no)),read:()=>gu.getState(),apply:iE});const jG=({rtp:e,maxMultiplier:t,linesCount:n})=>kv(yr(yr(Number(e),100),Number(t)),yr(1,Number(n))),L0e=(e,t,n,s)=>{const r=Number(n.maxMultiplier[t.difficulty]),a=Number(n.linesCount[t.difficulty]),i=jG({rtp:s,maxMultiplier:r,linesCount:a}),l=new Ir(e,ue.WhaleDuck).geometricFatalLine(a,i);if(l<1||l>a+1)throw new Error("Fatal line out of range");return{fatalLine:l}},A0e=({lineNumber:e,selectedLines:t,isRoundClosed:n})=>n?!1:t.length===0?e===1:Math.max(...t)+1===e,T2={STEP:"step",WIN:"win",CRASH:"crash"},an=Je("fairGames/whale_duck/duck"),wu=an.createStore(so.MEDIUM,{name:"difficulty"}),P1=an.createStore([],{name:"selectedLines"}),lE=an.createStore([],{name:"pendingLines"}),cE=an.createStore([],{name:"outgoingLines"}),$G=an.createStore([],{name:"previousRolls"}),V7=an.createEvent("duckDifficultyApplied"),_2=an.createEvent("duckSelectedLinesApplied"),Rc=an.createEvent("duckPendingLinesApplied"),cd=an.createEvent("duckOutgoingLinesApplied"),dE=an.createEvent("duckRollRecorded"),Ui=an.createEvent("duckStateReset"),D6=an.createEvent("duckSoundRequested");wu.on(V7,(e,t)=>t);P1.on(_2,(e,t)=>t).reset(Ui);lE.on(Rc,(e,t)=>t).reset(Ui);cE.on(cd,(e,t)=>t).reset(Ui);$G.on(dE,(e,t)=>[t,...e].slice(0,iu)).reset(Ui);
19const At=Rs({gameCode:ue.WhaleDuck,capabilities:{autoplay:!1,audio:!0,turbo:!1,cashout:!0,cashoutAt:!1,multipliers:!0,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({difficulty:wu.getState()}),readBet:()=>({selectedLines:cE.getState()}),readConstraintsBet:()=>({selectedLines:[]}),cashoutReady:P(P1,e=>e.length>0),onGameLoaded:async e=>{var a,i,l,c;const t=(i=(a=e.currentState)==null?void 0:a.betSettings)==null?void 0:i.difficulty,n=T1(e.currentState,At.$activeFreebet.getState()),s=ll(n,Object.values(so))??(t===so.EASY||t===so.MEDIUM||t===so.HARD?t:so.MEDIUM);V7(s),await _s({gameCode:ue.WhaleDuck,betSettings:{difficulty:s}});const r=(c=(l=e.currentState)==null?void 0:l.bet)==null?void 0:c.selectedLines;_2(Array.isArray(r)?r:[]),Rc([]),cd([])},onPlaceBet:()=>{_2([]),Rc([]),cd([])},onBetSettled:e=>{var s,r,a,i,l;const t=Array.isArray((s=e.bet)==null?void 0:s.selectedLines)?(r=e.bet)==null?void 0:r.selectedLines:[];if(_2(t),Rc([]),((a=e.result)==null?void 0:a.roundClosed)!==!0){t.length>0&&D6(T2.STEP);return}const n=Number(((i=e.result)==null?void 0:i.multiplier)??0);dE({winAmount:Number(((l=e.result)==null?void 0:l.winAmountInUsd)??0),multiplier:n}),D6(n>0?T2.WIN:T2.CRASH)},onCurrentState:e=>{e===null&&Ui()},onReset:()=>{Ui()}}}),F6=P(wu,At.$gameConfig,(e,t)=>{var n;return Number(((n=t==null?void 0:t.linesCount)==null?void 0:n[e])??0)}),uE=P1.map(e=>Math.max(...e,0)),BG=uE.map(e=>e+1),T0e=At.$roundResult.map(e=>Number(A1(Number((e==null?void 0:e.multiplier)??0)))),UG=P(P1,F6,(e,t)=>e.length<t),_0e=At.$roundResult.map(e=>(e==null?void 0:e.roundClosed)===!0&&Number(e.winAmount??0)>0),R0e=At.$roundResult.map(e=>(e==null?void 0:e.roundClosed)===!0&&Number(e.winAmount??0)===0),HG=At.$multipliers.map(e=>Object.entries(e??{}).map(([t,n])=>({line:Number(t),multiplier:Number(n.multiplier)})).filter(({line:t})=>t>0).sort((t,n)=>t.line-n.line)),N0e=P(At.$gameConstraints,HG,(e,t)=>{const n=(e==null?void 0:e.betAmountInUsd.max)??0,s=t.reduce((r,{multiplier:a})=>Math.max(r,a),0);return Hs(s,n)}),VG=an.createEvent("duckDifficultySelected"),WG=an.createEvent("duckLineAdvanced"),fE=async(e,t)=>{t&&!t()||(V7(e),await _s({isCurrent:t,gameCode:ue.WhaleDuck,betSettings:{difficulty:e}}),await At.refreshConstraints(t))},ZG=an.createEffect(async e=>{var n;await fE(e);const t=((n=At.$gameConstraints.getState())==null?void 0:n.betAmountInUsd.max)??0;At.$betAmount.getState()>t&&At.betAmountSet(t)}),mE=an.createEffect(async()=>{if(At.$isRequestPending.getState()||!At.$isRoundOpen.getState()||!UG.getState())return;const e=P1.getState(),t=BG.getState();if(e.includes(t))return;const n=[...e,t];Rc([...lE.getState(),t]),cd(n),await At.continueRoundFx(),At.$isRoundOpen.getState()&&uE.getState()===F6.getState()&&F6.getState()>0&&await At.cashOutFx()});h({clock:VG,target:ZG});h({clock:WG,target:mE});h({clock:At.placeBetFx.done,target:mE});h({clock:At.cashOutFx.done,filter:()=>{var e;return((e=At.$roundResult.getState())==null?void 0:e.roundClosed)===!0},fn:()=>T2.WIN,target:D6});_1(At,{resolve:e=>ll(e,Object.values(so)),read:()=>wu.getState(),apply:fE});const GG=({rtp:e,maxMultiplier:t,tickCount:n})=>{const s=yr(Number(e),100),r=Qc(1,s);return{p:kv(yr(s,Hs(Qc(1,r),Number(t))),yr(1,Number(n))),q:r}},k0e=(e,t,n)=>{const s=Number(t.tickCount),{p:r,q:a}=GG({rtp:n,maxMultiplier:Number(t.maxMultiplier),tickCount:s}),i=new Ir(e,ue.WhaleCrash).geometricFatalLineWithInstantFail(s,r,a);if(!Number.isInteger(i)||i<0||i>s+1)throw new Error("Fatal tick out of range");return{fatalTick:i}},zG=e=>{if(!e)return[];const t=(s,r)=>Math.round(s/r)*r,n=new Set;return Object.values(e).forEach(({multiplier:s})=>{const r=Number(s);let a=0;r>=0&&r<10&&(a=t(r,1)),r>=10&&r<100&&(a=t(r,5)),r>=100&&r<1e3&&(a=t(r,50)),r>=1e3&&(a=t(r,500)),n.add(a)}),Array.from(n).sort((s,r)=>s-r)},qG=(e,t)=>{if(e.length===0)return 0;const n=Number(t);if(!n)return 0;const s=e[0],r=e[e.length-1];if(n<=s)return 0;if(n>=r)return 100;let a=0,i=e.length-1;for(let m=0;m<e.length;m+=1)if(e[m]<=n)a=m;else{i=m;break}const l=e.length-1,c=a/l*100;if(n===e[a])return c;const d=i/l*100,f=e[i]-e[a],u=f?(n-e[a])/f:0;return c+(d-c)*u},I0e=e=>e===void 0?"-":Number(e)===0?"x":`${Number(e).toFixed(2)}x`,Cp={BET:"bet",WIN:"win",COUNTDOWN:"countdown"},Ge=Je("fairGames/whale_crash/crash"),dd=[1,2],hE={count:0,usersCount:0,totalAmountInUsd:0},Cu=e=>{const t=e.betCurrency===fe.WHALE;return{user:e.user,bet:e.bet,betAmount:t?yo(e.betAmount,fe.WHALE):Number(e.betAmountInUsd),betCurrency:e.betCurrency,result:e.result?{multiplier:Number(e.result.multiplier??0),winAmount:t?yo(Number(e.result.winAmount??0),fe.WHALE):Number(e.result.winAmountInUsd??0)}:null}},dl=Ge.createStore(null,{name:"gameState"}),pE=Ge.createStore(null,{name:"round"}),YG=Ge.createStore(null,{name:"nextStateAtTimestamp"}),xu=Ge.createStore(null,{name:"currentTick"}),KG=Ge.createStore([],{name:"previousResults"}),gE=Ge.createStore(hE,{name:"roundTotals"}),W7=Ge.createStore([],{name:"placedBets"}),zs=Ge.createStore({1:null,2:null},{name:"activeBets"}),yu=Ge.createStore({1:null,2:null},{name:"betsForNextRound"}),wE=new WeakSet,bu=Ge.createEvent("crashGameStateApplied"),j6=Ge.createEvent("crashTickApplied"),Z7=Ge.createEvent("crashPreviousResultsApplied"),t1=Ge.createEvent("crashRoundTotalsApplied"),ud=Ge.createEvent("crashPlacedBetsApplied"),CE=Ge.createEvent("crashPlacedBetAppended"),Hi=Ge.createEvent("crashActiveBetApplied"),xE=Ge.createEvent("crashActiveBetsCleared"),yE=Ge.createEvent("crashNextRoundBetApplied"),bE=Ge.createEvent("crashNextRoundBetsCleared"),ks=Ge.createEvent("crashStateReset"),XG=Ge.createEvent("crashSoundRequested");dl.on(bu,(e,{state:t})=>t).reset(ks);pE.on(bu,(e,{round:t})=>t).reset(ks);YG.on(bu,(e,{nextStateAtTimestamp:t})=>t).reset(ks);xu.on(j6,(e,t)=>t).reset(ks);KG.on(Z7,(e,t)=>t).reset(ks);gE.on(t1,(e,t)=>t).reset(ks);W7.on(ud,(e,t)=>t).on(CE,(e,t)=>[...e,t]).reset(ks);zs.on(Hi,(e,{betId:t,bet:n})=>({...e,[t]:n})).on(xE,()=>({1:null,2:null})).reset(ks);yu.on(yE,(e,{betId:t,bet:n})=>({...e,[t]:n})).on(bE,()=>({1:null,2:null})).reset(ks);const JG=dl.map(e=>
19e===gt.ANIMATION_STARTED||e===gt.TICK),Tr=Rs({gameCode:ue.WhaleCrash,capabilities:{autoplay:!1,audio:!0,turbo:!1,cashout:!1,cashoutAt:!1,multipliers:!0,betAvailability:!1,async:!0},hooks:{readBetSettings:()=>({}),readBet:()=>({}),isPlaying:JG,onGameLoaded:async e=>{await _s({gameCode:ue.WhaleCrash,betSettings:{}}),QG(e.currentState)},onReset:()=>{ks()}}}),QG=e=>{!e||Object.keys(e).length===0||(e.roundTotals&&t1(e.roundTotals),e.placedBets&&ud(e.placedBets.map(Cu)),e.previousResults&&Z7(e.previousResults),e.lastPublishedState&&EE(e.lastPublishedState),vE(e.placedBets??[]))},vE=e=>{const t=Ln().getUserId();e.forEach(n=>{if(n.user.id!==t)return;const{user:s,...r}=Cu(n);Hi({betId:n.bet.betId,bet:r})})},ez=()=>{const e=zs.getState();dd.forEach(t=>{const n=e[t];n&&wE.has(n)&&Hi({betId:t,bet:null})})},EE=e=>{if(!(e!=null&&e.state))return;if(bu({state:e.state,round:e.round,nextStateAtTimestamp:e.nextStateAtTimestamp}),e.state===gt.TICK){const s=e.metadata;s&&j6(s);return}if(![gt.BET_COLLECTION_OPEN,gt.BET_COLLECTION_CLOSED,gt.COOLDOWN].includes(e.state))return;const n=e.metadata;n!=null&&n.previousResults&&Z7(n.previousResults),e.state===gt.COOLDOWN&&(t1(hE),ud([]),xE(),j6(null)),e.state===gt.BET_COLLECTION_OPEN&&lz(),e.state===gt.BET_COLLECTION_CLOSED&&n&&(t1(n.roundTotals),ud(n.placedBets.map(Cu)),vE(n.placedBets),ez())},tz=e=>{var s;if(e.round!==pE.getState()||e.gameCode!==ue.WhaleCrash)return;const t=Cu(e),n=Ln().getUserId();if(e.user.id===n){const{user:r,...a}=t;Hi({betId:e.bet.betId,bet:a}),XG(Number(((s=t.result)==null?void 0:s.multiplier)??0)>0?Cp.WIN:Cp.BET)}if(CE(t),dl.getState()===gt.BET_COLLECTION_OPEN){const r=gE.getState(),a=new Set(W7.getState().map(i=>i.user.id));t1({count:r.count+1,usersCount:a.size,totalAmountInUsd:un(r.totalAmountInUsd,Number(e.betAmountInUsd??0))})}},nz=Ge.createEvent("crashChannelSubscriptionRequested"),sz=Ge.createEvent("crashChannelSubscriptionDropped"),SE=Ge.createEffect(async()=>qv({gameCode:ue.WhaleCrash,onPublication:e=>{if(e.type===sd.GAME_STATE){EE(e);return}e.type===sd.BET&&tz(e)}})),rz=Ge.createEffect(()=>{Yv(ue.WhaleCrash)});h({clock:nz,target:SE});h({clock:sz,target:rz});SE.doneData.map(e=>e);const az=Tr.$multipliers.map(zG),oz=P(Tr.$multipliers,xu,(e,t)=>{var n;return Number(((n=e==null?void 0:e[String((t==null?void 0:t.currentTick)??0)])==null?void 0:n.multiplier)??0)}),M0e=P(Tr.$multipliers,xu,(e,t)=>{const n=e?Object.keys(e).length:0;return n?((t==null?void 0:t.currentTick)??0)/n*100:0}),O0e=P(az,oz,qG),G7=P(dl,zs,(e,t)=>{var n,s;return{1:e===gt.TICK&&t[1]!==null&&((n=t[1])==null?void 0:n.bet.betType)===Sn.BET_PLACED,2:e===gt.TICK&&t[2]!==null&&((s=t[2])==null?void 0:s.bet.betType)===Sn.BET_PLACED}}),z7=P(dl,zs,(e,t)=>({1:e===gt.BET_COLLECTION_OPEN&&t[1]===null,2:e===gt.BET_COLLECTION_OPEN&&t[2]===null})),LE=P(dl,zs,yu,(e,t,n)=>{var s,r;return{1:e!==gt.BET_COLLECTION_OPEN&&(t[1]===null||((s=t[1])==null?void 0:s.bet.betType)===Sn.BET_CASHOUT)&&n[1]===null,2:e!==gt.BET_COLLECTION_OPEN&&(t[2]===null||((r=t[2])==null?void 0:r.bet.betType)===Sn.BET_CASHOUT)&&n[2]===null}}),P0e=zs.map(e=>{var t,n,s,r;return{1:e[1]!==null&&((t=e[1])==null?void 0:t.bet.betType)===Sn.BET_CASHOUT&&((n=e[1])==null?void 0:n.result)!==null,2:e[2]!==null&&((s=e[2])==null?void 0:s.bet.betType)===Sn.BET_CASHOUT&&((r=e[2])==null?void 0:r.result)!==null}}),D0e=W7.map(e=>[...e].sort((t,n)=>{var s,r;return n.betAmount*(((s=n.result)==null?void 0:s.multiplier)??1)-t.betAmount*(((r=t.result)==null?void 0:r.multiplier)??1)})),F0e=P({canCashout:G7,canPlace:z7,canQueue:LE,slots:zs,queued:yu},({canCashout:e,canPlace:t,canQueue:n,slots:s,queued:r})=>{if(e[1]||e[2])return null;const a=i=>{var l;return!!s[i]&&((l=s[i])==null?void 0:l.bet.betType)===Sn.BET_PLACED};for(const i of dd)if(t[i]&&!a(i))return i;for(const i of dd)if(n[i]&&r[i]===null)return i;return null}),AE=Ge.createEvent("crashNextRoundBetQueued"),iz=Ge.createEvent("crashSlotActioned"),$6=Ge.createEffect(async({betId:e,betType:t,betAmount:n,betCurrency:s})=>{const r=zs.getState()[e],a=xu.getState();if(t===Sn.BET_PLACED&&(!n||!s||!z7.getState()[e])||t===Sn.BET_CASHOUT&&(!a||!G7.getState()[e]))return;const i={betId:e,betType:t,selectedTick:t===Sn.BET_CASHOUT?(a==null?void 0:a.currentTick)??null:null},l={betAmount:n,betCurrency:s,result:(r==null?void 0:r.result)??null,...r,bet:i};Hi({betId:e,bet:l});let c=!1,d=!1;try{const f=await Tr.submitAsyncBetFx({bet:i,betSettings:{},betAmount:n,betCurrency:s});c=!0,d=!!f}catch(f){throw c=f instanceof T7,f}finally{const f=c||t===Sn.BET_CASHOUT,u=!d&&zs.getState()[e]===l;u&&f?Hi({betId:e,bet:r}):u&&wE.add(l)}}),lz=async()=>{const e=yu.getState();bE();for(const t of dd){const n=e[t];n!=null&&n.betAmount&&(n!=null&&n.betCurrency)&&await $6({betId:t,betType:Sn.BET_PLACED,betAmount:n.betAmount,betCurrency:n.betCurrency})}};h({clock:AE,source:{betAmount:Tr.$betAmount,betCurrency:Tr.$betCurrency},fn:({betAmount:e,betCurrency:t},n)=>({betId:n,bet:{betAmount:e,betCurrency:t}}),target:yE});
19const B6=Ge.createEffect(async e=>{if(G7.getState()[e]){const t=zs.getState()[e];if(!t)return;await $6({betId:e,betType:Sn.BET_CASHOUT,betAmount:t.betAmount,betCurrency:t.betCurrency});return}if(z7.getState()[e]){await $6({betId:e,betType:Sn.BET_PLACED,betAmount:Tr.$betAmount.getState(),betCurrency:Tr.$betCurrency.getState()});return}LE.getState()[e]&&AE(e)}),cz=Ge.createStore({1:!1,2:!1},{name:"slotActionPending"}).on(B6,(e,t)=>({...e,[t]:!0})).on(B6.finally,(e,{params:t})=>({...e,[t]:!1})).reset(ks);h({clock:iz,source:cz,filter:(e,t)=>!e[t],fn:(e,t)=>t,target:B6});Tr.$gameConfig.map(e=>e);const j0e=(e,t)=>{var a;if(!t.length)throw new Error("Roulette items are not loaded");const n=t.map(i=>Number(i.probability)),s=new Ir(e,ue.WhaleRoulette).pickWeightedIndex(n),r=Number((a=t[s])==null?void 0:a.id);if(Number.isNaN(r))throw new Error("Invalid winner item index");return{winnerItemId:r}},q7=e=>{if(e.length<3)return[...e];const[t,...n]=[...e].sort((s,r)=>s.probability-r.probability);return[n[0],t,n[1]]},xp=(e,t)=>q7(t).map(n=>{var s;return{winnerItemId:n.id,count:((s=e.find(r=>r.winnerItemId===n.id))==null?void 0:s.count)??0}}),dz=e=>{if(!e.length)return[];const t=q7(e),n=t.filter(a=>a.probability<=Zl.LOW_PROBABILITY_THRESHOLD),s=t.filter(a=>a.probability>Zl.LOW_PROBABILITY_THRESHOLD),r=[...Array.from({length:Zl.LOW_PROBABILITY_REPETITIONS},()=>n).flat(),...Array.from({length:Zl.HIGH_PROBABILITY_REPETITIONS},()=>s).flat()];return Array.from({length:Zl.SET_REPETITIONS},()=>r).flat()},$0e=e=>(Math.trunc(Number(e)*100)/100).toFixed(2),uz={ct:"#4983D9",whale:"#D43D3D",t:"#FEAA06"},B0e=e=>uz[e.toLowerCase()]??"#1F232D",TE={BET:"bet",WIN:"win",COUNTDOWN:"countdown"},Xe=Je("fairGames/whale_roulette/roulette"),_E=e=>({id:e.user.id,displayName:e.user.displayName,avatarSrc:e.user.avatarSrc,level:e.user.level,hasBattlePass:e.user.hasBattlePass,betAmountInUsd:Number(e.betAmountInUsd??0),betCurrency:e.betCurrency,betAmount:Number(e.betAmount??0)}),ul=Xe.createStore([],{name:"items"}),vu=Xe.createStore(null,{name:"gameState"}),RE=Xe.createStore(null,{name:"round"}),fz=Xe.createStore(null,{name:"nextStateAtTimestamp"}),mz=Xe.createStore(null,{name:"roundResult"}),hz=Xe.createStore(0,{name:"spinOffset"}),pz=Xe.createStore([],{name:"previousWins"}),gz=Xe.createStore([],{name:"previousWinCounts"}),wz=Xe.createStore({},{name:"bettorsBySelection"}),NE=Xe.createStore(null,{name:"settledRound"}),Y7=Xe.createEvent("rouletteItemsApplied"),Eu=Xe.createEvent("rouletteGameStateApplied"),fd=Xe.createEvent("rouletteAnimationApplied"),Su=Xe.createEvent("rouletteHistoryApplied"),kE=Xe.createEvent("rouletteBettorsApplied"),IE=Xe.createEvent("rouletteBettorAppended"),ME=Xe.createEvent("rouletteBettorsCleared"),K7=Xe.createEvent("roulettePayoutApplied"),Is=Xe.createEvent("rouletteStateReset"),OE=Xe.createEvent("rouletteSoundRequested");ul.on(Y7,(e,t)=>t).reset(Is);vu.on(Eu,(e,{state:t})=>t).reset(Is);RE.on(Eu,(e,{round:t})=>t).reset(Is);fz.on(Eu,(e,{nextStateAtTimestamp:t})=>t).reset(Is);mz.on(fd,(e,t)=>t.determinedOutcome).reset(Is);hz.on(fd,(e,t)=>{var n;return Number(((n=t.animationState)==null?void 0:n.offset)??0)}).reset(Is);pz.on(Su,(e,t)=>t.previousWins??[]).reset(Is);gz.on(Su,(e,t)=>xp(t.previousWinCounts??[],ul.getState())).on(Y7,(e,t)=>xp(e,t)).reset(Is);wz.on(kE,(e,t)=>t).on(IE,(e,{selectedItemId:t,bettor:n})=>{const s=e[t]??[],r=s.findIndex(a=>a.id===n.id);if(r!==-1){const a=[...s];return a[r]={...a[r],betAmount:An(un(a[r].betAmount,n.betAmount),2),betAmountInUsd:An(un(a[r].betAmountInUsd,n.betAmountInUsd),2)},{...e,[t]:a}}return{...e,[t]:[...s,n]}}).on(K7,(e,{winnerItemId:t,multiplier:n})=>({...e,[t]:(e[t]??[]).map(s=>({...s,betAmountInUsd:An(s.betAmountInUsd*n,2)}))})).on(ME,()=>({})).reset(Is);NE.on(K7,(e,{round:t})=>t).reset(Is);const U0e=ul.map(q7),H0e=ul.map(dz),Cz=vu.map(e=>e===gt.ANIMATION_STARTED),xz=vu.map(e=>e===gt.BET_COLLECTION_OPEN),V0e=vu.map(e=>e===gt.COOLDOWN),PE=Rs({gameCode:ue.WhaleRoulette,capabilities:{autoplay:!1,audio:!0,turbo:!1,cashout:!1,cashoutAt:!1,multipliers:!1,betAvailability:!1,async:!0},hooks:{readBetSettings:()=>({}),readBet:()=>{var e;return{selectedItemId:((e=ul.getState()[0])==null?void 0:e.id)??0}},isPlaying:Cz,onGameLoaded:async e=>{Y7(e.items??[]),yz(e.currentState),await FE()},onReset:()=>{Is()}},roundsBetAmountHalfEven:!1}),yz=e=>
19{!e||Object.keys(e).length===0||(Su({previousWins:e.previousWins??[],previousWinCounts:e.previousWinCounts??[]}),e.lastPublishedState&&DE(e.lastPublishedState))},DE=e=>{var n;if(!(e!=null&&e.state))return;if(Eu({state:e.state,round:e.round,nextStateAtTimestamp:e.nextStateAtTimestamp}),e.state===gt.BET_COLLECTION_OPEN){const s=e.metadata;ME(),Su({previousWins:(s==null?void 0:s.previousWins)??[],previousWinCounts:(s==null?void 0:s.previousWinCounts)??[]});return}const t=e.metadata;if(e.state===gt.ANIMATION_STARTED&&(t!=null&&t.determinedOutcome)){fd(t);return}if(e.state===gt.COOLDOWN&&(t!=null&&t.determinedOutcome)){fd(t);const{winnerItemId:s}=t.determinedOutcome,r=Number(((n=ul.getState().find(a=>a.id===s))==null?void 0:n.multiplier)??1);NE.getState()!==e.round&&K7({round:e.round,winnerItemId:s,multiplier:r}),OE(TE.WIN)}},bz=e=>{if(e.gameCode!==ue.WhaleRoulette)return;const t=RE.getState();if(t&&e.round!==t)return;const n=_E(e);IE({selectedItemId:Number(e.bet.selectedItemId),bettor:n}),n.id===Ln().getUserId()&&OE(TE.BET)},FE=Xe.createEffect(async()=>{const{status:e,data:t}=await Ln().http.get(`${as.GAMES}/roulette/${ue.WhaleRoulette}/bets`);return e>=400||!Array.isArray(t)?{}:t.reduce((n,s)=>{var a;const r=Number((a=s.bet)==null?void 0:a.selectedItemId);return r?{...n,[r]:[...n[r]??[],_E(s)]}:n},{})});h({clock:FE.doneData,target:kE});const vz=Xe.createEvent("rouletteChannelSubscriptionRequested"),Ez=Xe.createEvent("rouletteChannelSubscriptionDropped"),jE=Xe.createEffect(async()=>qv({gameCode:ue.WhaleRoulette,onPublication:e=>{if(e.type===sd.GAME_STATE){DE(e);return}e.type===sd.BET&&bz(e)}})),Sz=Xe.createEffect(()=>{Yv(ue.WhaleRoulette)});h({clock:vz,target:jE});h({clock:Ez,target:Sz});jE.doneData.map(e=>e);const Lz=Xe.createEvent("rouletteItemBetPlaced"),$E=Xe.createEffect(async e=>{await PE.submitAsyncBetFx({bet:{selectedItemId:e},betSettings:{}})});h({clock:Lz,filter:xz,target:$E});h({clock:$E.failData,filter:e=>!(e instanceof T7),fn:e=>e instanceof Error&&Iv(e.message)?e.message:"",target:M7});const W0e=PE.$gameConfig,fl=()=>({dealerCards:[],dealerTotal:[0,0],hands:GV.map(e=>({name:`${e}-0`,spot:e,bet:0,cards:[],total:[0,0],isActive:!1,canHit:!1,canStand:!1,canDouble:!1,canSplit:!1,canInsurance:!1,initialBet:0})),gamePhase:"betting",activeSpot:bi.CENTER,selectedChip:null,betCurrency:null}),Az=e=>{var d,f;const t=fl();if(!e)return t;const n=e.currentActionView,s=((d=e.betSettings)==null?void 0:d.betCurrency)??null,r=e.result?{multiplier:A1(Number(e.result.multiplier??0)),winAmount:Number(e.result.winAmount??0),winAmountInUsd:Number(e.result.winAmountInUsd??0),roundClosed:e.result.roundClosed===!0,isConstrained:e.result.isConstrained??!1}:void 0;if(!n)return{...t,betCurrency:s,roundResult:r};const a=((f=e.result)==null?void 0:f.roundClosed)===!0,i=n.player??[],l=a?"finished":i.length>0&&i[0].cards.length>0?"playerTurn":"betting",c=i.map(u=>{var p;const m=u.allowedActions??[];return{name:u.handId,spot:u.spot,bet:u.betAmount,cards:u.cards,total:u.total,isActive:u.handId===n.nextHandId,canHit:m.includes(Kn.HIT),canStand:m.includes(Kn.STAND),canDouble:m.includes(Kn.DOUBLE),canSplit:m.includes(Kn.SPLIT),canInsurance:m.includes(Kn.INSURANCE)&&!u.insuranceStake&&u.status!==zV.FINISHED,insuranceStakeInUsd:u.insuranceStake,result:u.result,initialBet:((p=n.initialBet[u.spot])==null?void 0:p.betAmount)??0}});return{dealerCards:n.dealer.cards,dealerTotal:n.dealer.total,hands:c,gamePhase:l,activeSpot:l==="betting"?bi.CENTER:null,selectedChip:null,betCurrency:s,roundResult:r}},Tz=e=>({action:Kn.DEAL,hands:Object.fromEntries(e.filter(t=>t.bet>0).map(t=>[t.spot,{betAmount:t.bet}]))}),_z=(e,t)=>({action:e,handId:t}),Rz=e=>({action:Kn.INSURANCE,hands:e}),Nz=2,kz=({hands:e,roundResult:t,betCurrency:n})=>{const s=e.filter(c=>c.result);if(!t||!s.length)return"lose";const r=n===fe.WHALE,a=r?yo(t.winAmount,fe.WHALE):t.winAmountInUsd,i=r?mT(fe.WHALE):Nz,l=un(...s.map(c=>un(c.bet,c.insuranceStakeInUsd??0)));return a>tZ(l,i)?"win":a<Lo(l,i)?"lose":"push"},Iz=e=>{const t=e.find(i=>i.isActive),n=t?t.name.split("-")[0]:null,s=new Map;for(const i of e){const[l,c]=i.name.split("-"),d=Number(c),f=s.get(l);(f===void 0||d>f)&&s.set(l,d)}const r=[],a=[];for(const i of e){const[l,c]=i.name.split("-"),d=Number(c);if(l===n){(i.isActive?r:a).push(i);continue}
19(d===s.get(l)?r:a).push(i)}return{visibleHands:r,queueHands:a}},Mz={darkgray:{top:"#57595C",middle:"#67686B",bottom:"#515253"},gray:{top:"#ADAFCE",middle:"#73748B",bottom:"#3A3A46"},pink:{top:"#FF7070",middle:"#E64242",bottom:"#961900"},green:{top:"#73DA69",middle:"#3D9335",bottom:"#1F4A1B"},purple:{top:"#A970FF",middle:"#8E43FF",bottom:"#4C00BE"},orange:{top:"#FF974D",middle:"#B46934",bottom:"#5A351A"},red:{top:"#DB3D2E",middle:"#B1463D",bottom:"#59231F"}},Oz=["darkgray","gray","pink","green","purple","orange","red"],Pz=[0,1e3,1e4,1e5,1e6,1e7,1e8],Dz=[0,1,10,100,1e3,1e4,1e5],Fz=[0,1e3,1e4,1e5,1e6,1e7],jz=[0,1,10,100,1e3,1e4],$z=e=>e===fe.WHALE?Pz:Dz,Bz=e=>e===fe.WHALE?Fz:jz,Z0e=(e,t)=>{const n=$z(t).indexOf(e);return Mz[Oz[n]??"gray"]},G0e=(e,t)=>{if(e<=0)return[];if(e<1)return[1];for(const n of t){const s=Math.floor(e/n);if(s>0&&s<=7)return new Array(s).fill(n)}for(const n of t)if(e>=n){const s=Math.floor(e/n);return new Array(Math.min(s,7)).fill(n)}return[]},z0e=e=>e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e===0?"X":`${e}`,q0e=e=>e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:`${e}`,Y0e=e=>{const[t,n]=e??[0,0],s=n>21?t:n;return{label:n!==t?`${t}/${n}`:`${s}`,bust:s>21}},K0e=e=>e==="T"?"10":e,X0e=e=>e==="h"||e==="d",BE=({betCurrency:e,balanceInternal:t,currencyRate:n,totalBet:s})=>{const r=yo(t,e),a=e===fe.WHALE?r:Lo(Hs(n,r),2);return Qc(a,s)},UE=(e,t,n)=>({...e,hands:e.hands.map(s=>s.spot===t?{...s,bet:n}:s)}),Uz=(e,t,n)=>{if(n<t)return e;const s={...e,selectedChip:t};if(e.activeSpot===null)return s;const r=e.hands.find(a=>a.spot===e.activeSpot);return r?UE(s,e.activeSpot,t===0?0:r.bet+t):s},Hz=(e,t)=>{if(t===null||e.gamePhase!=="betting")return e.hands;const n=e.activeSpot??bi.CENTER;return e.hands.map(s=>({...s,bet:s.spot===n?t:0}))},Vz=(e,t)=>({...e,activeSpot:t}),Wz=e=>({...e,selectedChip:null,hands:e.hands.map(t=>({...t,bet:0}))}),Zz=e=>e.activeSpot===null?e:{...UE(e,e.activeSpot,0),selectedChip:null},Gz=(e,t,n)=>{const s=e.hands.filter(a=>a.name.split("-")[1]==="0").map(a=>({spot:a.spot,bet:n===e.betCurrency?a.initialBet*(t?2:1):0})),r=fl();return{...r,hands:r.hands.map(a=>{var i;return{...a,bet:((i=s.find(l=>l.spot===a.spot))==null?void 0:i.bet)??0}})}},zz=6,qz=e=>{const t=e%52,n=Math.floor(t/13),s=t%13;return`${pv[s]}${gv[n]}`},Yz=e=>{const t=52*e,n=new Array(t);for(let s=0;s<t;s+=1)n[s]=s;return n},J0e=(e,t)=>{const n=Number((t==null?void 0:t.decksCount)??zz),s=Yz(n),r=new Ir(e,ue.WhaleBlackjack).fisherYatesShuffle(s);if(!r.length||r.length!==s.length)throw new Error("Invalid deck ids generated");return{deckIds:r,deckCards:r.map(qz)}},Tt=Je("fairGames/whale_blackjack/blackjack"),ct=Tt.createStore(fl(),{name:"gameState"}),HE=Tt.createStore(null,{name:"response"}),VE=Tt.createStore(!1,{name:"insuranceDismissed"}),WE=Tt.createStore(null,{name:"outgoingBet"}),ZE=Tt.createEvent("responseSet"),Lu=Tt.createEvent("outgoingBetSet"),D1=Tt.createEvent("stateReset"),Kz=Tt.createEvent("chipAdded"),Xz=Tt.createEvent("spotActivated"),Jz=Tt.createEvent("handsCleared"),Qz=Tt.createEvent("spotCleared"),eq=Tt.createEvent("rebetRequested"),GE=Tt.createEvent("gameStateReset"),zE=Tt.createEvent("dealRequested"),tq=Tt.createEvent("handActionRequested"),nq=Tt.createEvent("insuranceRequested"),qE=Tt.createEvent("insuranceDismissed"),sq=ct.map(e=>e.gamePhase),_r=Rs({gameCode:ue.WhaleBlackjack,capabilities:{autoplay:!1,audio:!0,turbo:!0,cashout:!1,cashoutAt:!1,multipliers:!1,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({}),readBet:()=>WE.getState()??{action:Kn.DEAL,hands:{}},canRequestConstraints:()=>!1,busy:sq.map(e=>e!=="betting"),onCurrentState:e=>ZE(e),onReset:()=>D1()}}),Au=P(_r.$isFreeBet,_r.$availableFreebet,(e,t)=>e&&t?Number(t.betAmountInUsd):null),Tu=P(ct,Au,Hz),rq=ct.map(e=>e.hands.reduce((t,n)=>t+n.bet,0)),Q0e=Tu.map(e=>e.reduce((t,n)=>t+n.bet,0)),YE=P(xo,_r.$betCurrency,Ai,rq,(e,t,n,s)=>{var a;const r=((a=e.find(i=>i.currency===t))==null?void 0:a.availableAmount)??0;return BE({betCurrency:t,balanceInternal:r,currencyRate:n[t]??0,totalBet:s})}),e2e=P(YE,_r.$betCurrency,Au,(e,t,n)=>Bz(t).map(s=>({chip:s,disabled:n!==null||e<s}))),t2e=Tu.map(e=>
19Iz(e)),_u=ct.map(e=>e.hands.find(t=>t.isActive)??null),n2e=ct.map(e=>e.activeSpot),s2e=ct.map(e=>e.selectedChip),KE=ct.map(e=>e.dealerCards),r2e=ct.map(e=>e.dealerTotal),a2e=KE.map(e=>e.length===1),o2e=KE.map(e=>e.length>0),i2e=Tu.map(e=>e.some(t=>t.bet>0)),l2e=_u.map(e=>(e==null?void 0:e.canHit)??!1),c2e=_u.map(e=>(e==null?void 0:e.canStand)??!1),d2e=_u.map(e=>(e==null?void 0:e.canDouble)??!1),u2e=_u.map(e=>(e==null?void 0:e.canSplit)??!1),aq=P(ct,VE,(e,t)=>e.hands.every(n=>n.canInsurance)&&!t),f2e=ct.map(e=>{var t,n;return{winAmount:((t=e.roundResult)==null?void 0:t.winAmount)??0,winAmountInUsd:((n=e.roundResult)==null?void 0:n.winAmountInUsd)??0}}),m2e=ct.map(e=>e.gamePhase==="finished"?kz(e):null),oq=Tt.createEffect(async()=>{const e=Tu.getState().filter(t=>t.bet>0);e.length&&(Lu(Tz(e)),await _r.placeBetFx())}),iq=(e,t)=>{switch(e){case Kn.HIT:return t.canHit;case Kn.STAND:return t.canStand;case Kn.DOUBLE:return t.canDouble;case Kn.SPLIT:return t.canSplit;default:return!1}},lq=Tt.createEffect(async e=>{const t=ct.getState().hands.find(n=>n.isActive);!t||!iq(e,t)||(Lu(_z(e,t.name)),await _r.continueRoundFx())}),cq=Tt.createEffect(async e=>{!aq.getState()||!e.length||(Lu(Rz(e)),await _r.continueRoundFx(),qE())});HE.on(ZE,(e,t)=>t).reset(D1);h({clock:HE,fn:Az,target:ct});h({clock:Kz,source:{state:ct,available:YE,freebetStake:Au},filter:({freebetStake:e})=>e===null,fn:({state:e,available:t},n)=>Uz(e,n,t),target:ct});h({clock:Xz,source:ct,fn:(e,t)=>Vz(e,t),target:ct});ct.on(Jz,e=>Wz(e));ct.on(Qz,e=>Zz(e));h({clock:eq,source:{state:ct,currency:_r.$betCurrency,freebetStake:Au},filter:({freebetStake:e})=>e===null,fn:({state:e,currency:t},{x2:n})=>Gz(e,n,t),target:ct});ct.on(GE,()=>fl());ct.on(D1,()=>fl());ct.on(_r.$betCurrency.updates,()=>fl());WE.on(Lu,(e,t)=>t).reset(D1);h({clock:zE,target:oq});h({clock:tq,target:lq});h({clock:nq,target:cq});VE.on(qE,()=>!0).on(zE,()=>!1).reset(GE,D1);const Ql={OPEN:"open",ANGRY:"angry",HAPPY:"happy"},h2e=({cellIndex:e,isPlaying:t,isAutoplayPlaying:n,mines:s,selectedCells:r,selectedCellsWithNoResult:a,isAutoPlay:i})=>{const l=r.includes(e),c=s.includes(e);return i&&!n?l?"autoPlaySelected":"initial":t?l?a.includes(e)?"selected":c?i?"autoPlaySelectedMine":"selectedMine":i?"autoPlaySelectedDiamond":"selectedDiamond":"initial":r.length===0?"initial":l?a.includes(e)?"selected":c?i?"autoPlaySelectedMine":"selectedMine":i?"autoPlaySelectedDiamond":"selectedDiamond":c?i?"autoPlayResultMine":"resultMine":i?"autoPlayResultDiamond":"resultDiamond"},dq=new Set(["selectedMine","resultMine","autoPlaySelectedMine","autoPlayResultMine"]),p2e=e=>dq.has(e),uq=new Set(["selected","autoPlaySelected","selectedDiamond","autoPlaySelectedDiamond"]),g2e=e=>uq.has(e),w2e=(e,t,n)=>{const s=Number(n.cellsCount),r=Number(t.minesCount),a=new Ir(e,ue.WhaleCrockDentist).pickKIndices(s,r);if(!a.length||a.length!==r||a.some(i=>i<0||i>=s))throw new Error("Invalid mined cells generated");return{minedCells:a}},R2={GAME_START:"gameStart",SELECT_TOOTH:"selectTooth",BITING:"biting",WIN:"win",TOOTH_HOVER:"toothHover"},dt=Je("fairGames/whale_crock_dentist/crock"),fq=500,mq=250,F1=dt.createStore(0,{name:"minesCount"}),n1=dt.createStore([],{name:"selectedCells"}),s1=dt.createStore([],{name:"autoplayCells"}),N2=dt.createStore([],{name:"pendingCells"}),XE=dt.createStore([],{name:"outgoingCells"}),k2=dt.createStore(0,{name:"cashoutAt"}),hq=dt.createStore([],{name:"autoplayResults"}),X7=dt.createEvent("crockMinesCountApplied"),Co=dt.createEvent("crockSelectedCellsApplied"),J7=dt.createEvent("crockAutoplayCellsApplied"),gr=dt.createEvent("crockPendingCellsApplied"),Si=dt.createEvent("crockOutgoingCellsApplied"),JE=dt.createEvent("crockAutoplayResultRecorded"),Q7=dt.createEvent("crockAutoplayResultsReset"),ya=dt.createEvent("crockStateReset"),U6=dt.createEvent("crockSoundRequested"),e9=dt.createEvent("crockCashoutAtSelected");F1.on(X7,(e,t)=>t);n1.on(Co,(e,t)=>t).reset(ya);s1.on(J7,(e,t)=>t).reset(ya);N2.on(gr,(e,t)=>t).reset(ya);XE.on(Si,(e,t)=>t).reset(ya);k2.on(e9,(e,t)=>t).reset(ya);hq.on(JE,(e,t)=>[...e,t]).reset(Q7,ya);
19const We=Rs({gameCode:ue.WhaleCrockDentist,capabilities:{autoplay:!0,audio:!0,turbo:!0,cashout:!0,cashoutAt:!0,multipliers:!0,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({minesCount:F1.getState()}),readBet:()=>({selectedCells:XE.getState()}),readConstraintsBet:()=>({selectedCells:[]}),cashoutReady:P(n1,e=>e.length>0),autoplayReady:P(s1,k2,(e,t)=>e.length>0||t>0),onGameLoaded:async e=>{var i,l,c,d;const t=e.config,n=(l=(i=e.currentState)==null?void 0:i.betSettings)==null?void 0:l.minesCount,s=T1(e.currentState,We.$activeFreebet.getState()),r=fu(s,t.minesCount)??(typeof n=="number"&&n>0?n:Number(t.minesCount.default));X7(r),await _s({gameCode:ue.WhaleCrockDentist,betSettings:{minesCount:r}});const a=(d=(c=e.currentState)==null?void 0:c.bet)==null?void 0:d.selectedCells;Co(Array.isArray(a)?a:[]),gr([]),Si([])},onPlaceBet:()=>{if(U6(R2.GAME_START),We.$gameplayMode.getState()===Bn.AUTOPLAY&&k2.getState()===0){const e=s1.getState();gr(e),Si(e);return}Co([]),gr([]),Si([])},onBetSettled:e=>{var s,r,a,i;const t=Array.isArray((s=e.bet)==null?void 0:s.selectedCells)?(r=e.bet)==null?void 0:r.selectedCells:[];if(Co(t),gr([]),((a=e.result)==null?void 0:a.roundClosed)!==!0)return;const n=Number(((i=e.result)==null?void 0:i.multiplier)??0);if(U6(n>0?R2.WIN:R2.BITING),We.$gameplayMode.getState()===Bn.AUTOPLAY){const l=e.betSettings,c=(l==null?void 0:l.betCurrency)===fe.WHALE;JE({betCurrency:(l==null?void 0:l.betCurrency)??fe.USDT,betAmount:Number(c?(l==null?void 0:l.betAmount)??0:(l==null?void 0:l.betAmountInUsd)??0),multiplier:n})}},onCurrentState:e=>{e===null&&ya()},autoplayIteration:async()=>{await We.placeBetFx();const e=k2.getState();if(e>0){const t=We.$isTurboMode.getState()?mq:fq,n=We.$gameConfig.getState(),s=Number((n==null?void 0:n.cellsCount)??0);for(let r=0;r<e&&!(!We.$isAutoplayPlaying.getState()||!We.$isRoundOpen.getState());r+=1)await tS(uu(s,n1.getState())),await R7(t)}await We.cashOutFx()},onAutoplayFinished:async()=>{await We.cashOutFx()},onReset:()=>{ya()}}}),QE=P(We.$gameplayMode,n1,s1,(e,t,n)=>e===Bn.AUTOPLAY?n:t),pq=P(We.$gameConfig,QE,F1,(e,t,n)=>Number((e==null?void 0:e.cellsCount)??0)-n>t.length),C2e=We.$outcome.map(e=>(e==null?void 0:e.minedCells)??[]),x2e=P(We.$gameplayMode,We.$roundResult,(e,t)=>e===Bn.AUTOPLAY?Ql.OPEN:t?t.roundClosed===!1?Ql.OPEN:Number(t.multiplier)>0?Ql.HAPPY:Ql.ANGRY:Ql.HAPPY),y2e=We.$gameConfig.map(e=>{const t=e;if(!t)return[];const n=Number(t.minesCount.min),s=Math.min(Number(t.minesCount.max),Number(t.cellsCount)-1),r=[];for(let a=n;a<=s;a+=1)r.push(a);return r}),gq=dt.createEvent("crockMinesCountSelected"),t9=dt.createEvent("crockCellSelected"),wq=dt.createEvent("crockRandomCellPicked"),eS=async(e,t)=>{t&&!t()||(X7(e),await _s({isCurrent:t,gameCode:ue.WhaleCrockDentist,betSettings:{minesCount:e}}),await We.refreshConstraints(t))},Cq=dt.createEffect(async e=>{var n;await eS(e);const t=((n=We.$gameConstraints.getState())==null?void 0:n.betAmountInUsd.max)??0;We.$betAmount.getState()>t&&We.betAmountSet(t)}),xq=dt.createEffect(e=>{We.cashoutAtSet(e),e>0&&(Co([]),gr([]),Si([]),J7([]))}),yq=dt.createEffect(e=>{e9(0);const t=[...s1.getState()],n=t.indexOf(e);n!==-1?t.splice(n,1):(pq.getState()||t.pop(),t.push(e)),J7(t),gr(t)}),tS=dt.createEffect(async e=>{const t=n1.getState(),n=We.$gameConfig.getState(),r=Number((n==null?void 0:n.cellsCount)??0)-F1.get
19State()>t.length;if(e<0||t.includes(e)||!r||!We.$isRoundOpen.getState())return;const a=[...t,e];Co(a),gr([...N2.getState(),e]),Si(a),U6(R2.SELECT_TOOTH),await We.continueRoundFx(),N2.getState().includes(e)&&(Co(t),gr(N2.getState().filter(i=>i!==e)))});h({clock:gq,target:Cq});h({clock:e9,target:xq});h({clock:t9,source:We.$gameplayMode,filter:e=>e===Bn.AUTOPLAY,fn:(e,t)=>t,target:yq});h({clock:t9,source:We.$gameplayMode,filter:e=>e!==Bn.AUTOPLAY,fn:(e,t)=>t,target:tS});h({clock:wq,source:{config:We.$gameConfig,active:QE},fn:({config:e,active:t})=>{const n=Number((e==null?void 0:e.cellsCount)??0);return uu(n,t)},target:t9});h({clock:We.startAutoplayFx,target:Q7});h({clock:We.$gameplayMode.updates,target:Q7});_1(We,{resolve:(e,t)=>fu(e,t.minesCount),read:()=>F1.getState(),apply:eS});const bq=(e,t)=>{const{floorsCount:n,bands:s,difficulties:r}=e,a=r[t];if(!a)throw new Error(`No hazard settings configured for difficulty ${t}`);const i=new Array(n+1).fill(0);for(let l=nd;l<=n;l+=1){if(l===n){i[l]=a.cliffHazard;continue}const c=s.find(d=>l>=d.fromFloor&&l<=d.toFloor);if(!c)throw new Error(`No hazard band configured for floor ${l}`);i[l]=a.baseHazard*c.factor}return i},vq=(e,t)=>bq(e,t).slice(nd),b2e=(e,t,n)=>{const s=vq(n,t.difficulty),r=new Ir(e,ue.WhaleTower).bandedFatalLine(s,nd);if(r<nd||r>n.floorsCount+1)throw new Error("Collapse floor out of range");return{collapseFloor:r}},H6=e=>Array.from({length:Math.max(e,0)},(t,n)=>n+1),yp={LAND:"land",WIN:"win",COLLAPSE:"collapse"},on=Je("fairGames/whale_tower/tower"),n9=on.createStore(ro.MEDIUM,{name:"difficulty"}),Ru=on.createStore([],{name:"builtFloors"}),nS=on.createStore([],{name:"pendingFloors"}),sS=on.createStore([],{name:"outgoingFloors"}),Eq=on.createStore([],{name:"previousRolls"}),s9=on.createEvent("towerDifficultyApplied"),I2=on.createEvent("towerBuiltFloorsApplied"),Nc=on.createEvent("towerPendingFloorsApplied"),md=on.createEvent("towerOutgoingFloorsApplied"),rS=on.createEvent("towerRollRecorded"),Vi=on.createEvent("towerStateReset"),Sq=on.createEvent("towerSoundRequested");n9.on(s9,(e,t)=>t);Ru.on(I2,(e,t)=>t).reset(Vi);nS.on(Nc,(e,t)=>t).reset(Vi);sS.on(md,(e,t)=>t).reset(Vi);Eq.on(rS,(e,t)=>[t,...e].slice(0,iu)).reset(Vi);const pn=Rs({gameCode:ue.WhaleTower,capabilities:{autoplay:!1,audio:!0,turbo:!1,cashout:!0,cashoutAt:!1,multipliers:!0,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({difficulty:n9.getState()}),readBet:()=>({builtFloors:sS.getState()}),readConstraintsBet:()=>({builtFloors:H6(1)}),cashoutReady:P(Ru,e=>e.length>=ZV),onGameLoaded:async e=>{var a,i,l,c;const t=(i=(a=e.currentState)==null?void 0:a.betSettings)==null?void 0:i.difficulty,n=T1(e.currentState,pn.$activeFreebet.getState()),s=ll(n,Object.values(ro))??(t===ro.EASY||t===ro.MEDIUM||t===ro.HARD?t:ro.MEDIUM);s9(s),await _s({gameCode:ue.WhaleTower,betSettings:{difficulty:s}});const r=(c=(l=e.currentState)==null?void 0:l.bet)==null?void 0:c.builtFloors;I2(Array.isArray(r)?r:[]),Nc([]),md([])},onPlaceBet:()=>{const e=H6(1);I2([]),Nc(e),md(e)},onBetSettled:e=>{var s,r,a,i,l,c;const t=Array.isArray((s=e.bet)==null?void 0:s.builtFloors)?(r=e.bet)==null?void 0:r.builtFloors:[];I2(t),Nc([]);const n=Number(((a=e.result)==null?void 0:a.winAmountInUsd)??0)>0;((i=e.result)==null?void 0:i.roundClosed)===!0&&(rS({winAmount:Number(((l=e.result)==null?void 0:l.winAmountInUsd)??0),multiplier:Number(((c=e.result)==null?void 0:c.multiplier)??0)}),Sq(n?yp.WIN:yp.COLLAPSE))},onCurrentState:e=>{e===null&&Vi()},onReset:()=>{Vi()}}}),Lq=pn.$gameConfig.map(e=>Number((e==null?void 0:e.floorsCount)??0)),Aq=Ru.map(e=>Math.max(...e,0)),Tq=Aq.map(e=>e+1),v2e=pn.$roundResult.map(e=>Number(A1(Number((e==null?void 0:e.multiplier)??0)))),_q=P(Ru,Lq,(e,t)=>t>0&&e.length<t),E2e=pn.$roundResult.map(e=>(e==null?void 0:e.roundClosed)===!0&&Number(e.winAmount??0)>0),S2e=pn.$roundResult.map(e=>(e==null?void 0:e.roundClosed)===!0&&Number(e.winAmount??0)===0),Rq=pn.$multipliers.map(e=>Object.entries(e??{}).map(([t,n])=>({floor:Number(t),multiplier:Number(n.multiplier)})).filter(({floor:t})=>t>0).sort((t,n)=>t.floor-n.floor)),L2e=P(pn.$gameConstraints,Rq,(e,t)=>{const n=(e==null?void 0:e.betAmountInUsd.max)??0,s=t.reduce((r,{multiplier:a})=>Math.max(r,a),0);return Hs(s,n)}),Nq=on.createEvent("towerDifficultySelected"),kq=on.createEvent("towerFloorBuilt"),aS=async(e,t)=>{t&&!t()||(s9(e),await _s({isCurrent:t,gameCode:ue.WhaleTower,betSettings:{difficulty:e}}),await pn.refreshConstraints(t))}
19,Iq=on.createEffect(async e=>{var n;await aS(e);const t=((n=pn.$gameConstraints.getState())==null?void 0:n.betAmountInUsd.max)??0;pn.$betAmount.getState()>t&&pn.betAmountSet(t)}),Mq=on.createEffect(async()=>{if(pn.$isRequestPending.getState()||!pn.$isRoundOpen.getState()||!_q.getState())return;const e=Tq.getState(),t=H6(e);Nc([...nS.getState(),e]),md(t),await pn.continueRoundFx()});h({clock:Nq,target:Iq});h({clock:kq,target:Mq});_1(pn,{resolve:e=>ll(e,Object.values(ro)),read:()=>n9.getState(),apply:aS});const r9=(e,t)=>{var i,l,c;const n=Number(((i=e==null?void 0:e.rows)==null?void 0:i.min)??8),s=Number(((l=e==null?void 0:e.rows)==null?void 0:l.max)??16),r=Number(((c=e==null?void 0:e.rows)==null?void 0:c.default)??12),a=Number(t??r);return Number.isFinite(a)?Math.min(s,Math.max(n,Math.round(a))):r},Oq=(e,t,n)=>{var a;const s=(e==null?void 0:e.riskLevels)??[];return{riskLevel:[n==null?void 0:n.riskLevel,t==null?void 0:t.riskLevel].find(i=>i&&s.includes(i))??s[0]??L7.MEDIUM,rows:r9(e,(n==null?void 0:n.rows)??(t==null?void 0:t.rows)??((a=e==null?void 0:e.rows)==null?void 0:a.default))}},oS=(e,t,n)=>{var s,r;return((r=(s=e==null?void 0:e.multipliers)==null?void 0:s[t])==null?void 0:r[String(n)])??[]},A2e=(e,t,n)=>{const{riskLevel:s,rows:r}=t;if(!Number.isInteger(r)||r<=0)throw new Error("Invalid rows");const a=oS(n,s,r);if(!a.length)throw new Error("Multipliers missing for risk level or row count");if(a.length!==r+1)throw new Error("Multiplier table does not match the row count");const i=new Ir(e,ue.WhalePlinko),l=[];for(let d=0;d<r;d+=1)l.push(i.intInRange(0,1)===1?Xc.RIGHT:Xc.LEFT);const c=Pq(l);return{path:l,bucketIndex:c,multiplier:a[c]}},Pq=e=>e.reduce((t,n)=>n===Xc.RIGHT?t+1:t,0),Dq={8:1.2,9:1.125,10:1.075,11:1.025,12:1,13:.96,14:.925,15:.9,16:.875},Fq=e=>Dq[e]??1,jq=1,T2e=(e,t=rW)=>{const n=Fq(e),s=10*n,r=13*n;return{rows:e,size:t,scale:n,pegRadius:s,ballRadius:r,gap:s*2*(3*n),contactRadius:s+r,bucketRow:e+1}},iS=e=>e+2,lS=(e,t)=>t*e.gap,cS=(e,t,n)=>{const s=iS(t);return(e.size-e.gap*s)/2+n*e.gap+e.gap/2},_2e=e=>{const t=[];for(let n=1;n<=e.rows;n+=1){const s=lS(e,n);for(let r=0;r<iS(n);r+=1)t.push({x:cS(e,n,r),y:s})}return t},R2e=(e,t)=>{const n=[];let s=jq;for(let r=0;r<=t.length;r+=1){const a=r+1;n.push({x:cS(e,a,s),y:lS(e,a)}),r<t.length&&t[r]===Xc.RIGHT&&(s+=1)}return n},$q=e=>({x:e.size/2,y:0}),Bq=1e3/60,Uq=.001*Bq**2,bp=.99,vp=1,Hq=-3,Vq=2,N2e=e=>e?Vq:1,k2e=e=>{const t=$q(e);return{x:t.x,y:t.y,vx:0,vy:0,contacts:0,landed:!1}},I2e=(e,t,n,s)=>{if(e.landed)return{ball:e,reached:null,landed:!1};const r=n[e.contacts];if(!r)return{ball:{...e,landed:!0},reached:null,landed:!0};const a=e.vx*bp,i=e.vy*bp+Uq,l=e.x+a,c=e.y+i;if(e.contacts>=s.length)return c<r.y?{ball:{...e,x:l,y:c,vx:a,vy:i},reached:null,landed:!1}:{ball:{...e,x:r.x,y:r.y,vx:0,vy:0,landed:!0},reached:r,landed:!0};const f=r.x-l,u=r.y-c;if(!(f*f+u*u<=t.contactRadius*t.contactRadius)&&c<r.y)return{ball:{...e,x:l,y:c,vx:a,vy:i},reached:null,landed:!1};const p=s[e.contacts];return{ball:{x:r.x,y:r.y-t.contactRadius,vx:p===Xc.RIGHT?vp:-vp,vy:Hq*t.scale,contacts:e.contacts+1,landed:!1},reached:r,landed:!1}},z0=["#ffdd62","#febc5b","#fe9d54","#fe7c4d","#ff5244"],M2e=(e,t)=>{if(t<=1)return z0[0];const n=(t-1)/2,s=Math.abs(e-n)/n;return z0[Math.min(z0.length-1,Math.round(s*(z0.length-1)))]},O2e=e=>Math.max(8,Math.min(13,Math.round(e/49))),P2e=e=>Math.max(18,Math.min(32,Math.round(e/20))),D2e={PEG:"#E2E2E2",PEG_HIT:"#ffffff",GLOW:"255, 221, 98",BALL:"#ffdd62"},wt=Je("fairGames/whale_plinko/plinko"),j1=wt.createStore(L7.MEDIUM,{name:"riskLevel"}),ml=wt.createStore(12,{name:"rows"}),Wq=wt.createStore([],{name:"previousRolls"}),Zq=wt.createStore(null,{name:"drop"}),Gq=wt.createStore(null,{name:"landingSignal"}),dS=wt.createStore(0,{name:"activeBallCount"}),r1=wt.createStore(null,{name:"pendingSettings"}),a9=wt.createEvent("plinkoRiskLevelApplied"),o9=wt.createEvent("plinkoRowsApplied"),uS=wt.createEvent("plinkoRollRecorded"),i9=wt.createEvent("plinkoDropDispatched"),ma=wt.createEvent("plinkoStateReset"),F2e=wt.createEvent("plinkoBallSpawned"),zq=wt.createEvent("plinkoBallRemoved"),fS=wt.createEvent("plinkoBallLanded");let Ep=0;const qq=()=>(Ep+=1,Ep);j1.on(a9,(e,t)=>t);ml.on(o9,(e,t)=>t);Wq.on(uS,(e,t)=>[t,...e].slice(0,iu)).reset(ma);Zq.on(i9,(e,t)=>t).reset(ma);Gq.on(fS,(e,t)=>({id:t.id,bucketIndex:t.bucketIndex})).reset(ma);dS.on(i9,e=>e+1).on(zq,e=>Math.max(0,e-1)).reset(ma);const Nu=dS.map(e=>e>0);h({clock:fS,fn:e=>({bucketIndex:e.bucketIndex,multiplier:e.multiplier,winAmount:e.winAmount,winAmountInUsd:e.winAmountInUsd}),target:uS});const Yq=()=>new Promise(e=>{if(r1.getState()===null){e();return}const t=()=>{n(),s(),e()},n=r1.updates.watch(r=>{r===null&&t()}),s=yt.$isAutoplayPlaying.updates.watch(r=>{r||t()})}
19),yt=Rs({gameCode:ue.WhalePlinko,resetsBetAmountOnLoad:!0,capabilities:{autoplay:!0,audio:!0,turbo:!0,cashout:!1,cashoutAt:!1,multipliers:!1,betAvailability:!1,async:!1},hooks:{readBetSettings:()=>({riskLevel:j1.getState(),rows:ml.getState()}),readBet:()=>({}),autoplayPacing:{normal:nW,turbo:sW},busy:r1.map(e=>e!==null),autoplayIteration:async()=>{await Yq(),yt.$isAutoplayPlaying.getState()&&await yt.placeBetFx()},onGameLoaded:e=>{var s,r;const{riskLevel:t,rows:n}=Oq(e.config,(s=e.currentState)==null?void 0:s.betSettings,(r=yt.$activeFreebet.getState())==null?void 0:r.metadata);a9(t),o9(n),ma()},onBetSettled:e=>{var n,s;const t=e.determinedOutcome;!t||!Array.isArray(t.path)||i9({id:qq(),path:t.path,bucketIndex:Number(t.bucketIndex),multiplier:Number(t.multiplier),winAmount:Number(((n=e.result)==null?void 0:n.winAmount)??0),winAmountInUsd:Number(((s=e.result)==null?void 0:s.winAmountInUsd)??0)})},onCurrentState:e=>{e===null&&ma()},onReset:()=>{ma()}}}),j2e=P(yt.$gameConfig,j1,ml,(e,t,n)=>oS(e,t,n)),$2e=yt.$gameConfig.map(e=>(e==null?void 0:e.riskLevels)??Object.values(L7)),B2e=yt.$gameConfig.map(e=>{const t=e==null?void 0:e.rows;return{min:Number((t==null?void 0:t.min)??8),max:Number((t==null?void 0:t.max)??16),step:Number((t==null?void 0:t.step)??1)}}),U2e=P(yt.$isPlaying,yt.$isFreeBet,Nu,(e,t,n)=>e||t||n),Kq=wt.createEvent("plinkoRiskLevelSelected"),Xq=wt.createEvent("plinkoRowsSelected"),l9=N7(async()=>{var t;await yt.refreshConstraints();const e=((t=yt.$gameConstraints.getState())==null?void 0:t.betAmountInUsd.max)??0;!yt.$isFreeBet.getState()&&e&&yt.$betAmount.getState()>e&&yt.betAmountSet(e)},A7),Jq=wt.createEffect(async e=>{yt.$isAutoplayPlaying.getState()||Nu.getState()||(a9(e),await l9())}),Qq=wt.createEffect(async e=>{if(yt.$isAutoplayPlaying.getState()||Nu.getState())return;const t=r9(yt.$gameConfig.getState(),e);t!==ml.getState()&&(o9(t),await l9())});h({clock:Kq,target:Jq});h({clock:Xq,target:Qq});const c9=wt.createEvent("plinkoPinRequested"),$1=wt.createEvent("plinkoPinApplied");r1.on(c9,(e,t)=>t).reset($1,ma);j1.on($1,(e,{riskLevel:t})=>t);ml.on($1,(e,{rows:t})=>t);const eY=(e,t,n)=>{if(!(n!=null&&n.metadata))return null;const s={riskLevel:n.metadata.riskLevel,rows:r9(e,n.metadata.rows)};return s.riskLevel===t.riskLevel&&s.rows===t.rows?null:s};h({clock:yt.$activeFreebet.updates,source:{config:yt.$gameConfig,riskLevel:j1,rows:ml},filter:(e,t)=>!!(t!=null&&t.metadata)&&yt.$isGameInitialised.getState(),fn:({config:e,riskLevel:t,rows:n},s)=>eY(e,{riskLevel:t,rows:n},s),target:c9});const Sp=P(Nu,yt.$isRequestPending,(e,t)=>!e&&!t);h({clock:[c9,Sp.updates],source:{pending:r1,quiet:Sp},filter:({pending:e,quiet:t})=>e!==null&&t,fn:({pending:e})=>e,target:$1});h({clock:$1,target:wt.createEffect(()=>l9())});const tY={A:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,T:0,J:0,Q:0,K:0},nY={s:"♠",h:"♥",d:"♦",c:"♣"},H2e=e=>nY[e]??e,sY=e=>{const t=(e%52+52)%52,n=pv[t%13],s=gv[Math.floor(t/13)];return{rank:n,suit:s,isRed:s==="h"||s==="d",value:tY[n],label:`${n}${s}`}},V2e=e=>e.map(sY),W2e=e=>e.reduce((t,n)=>t+n.value,0)%10,rY=e=>e.playerCards.length===2&&e.bankerCards.length===2&&(e.playerTotal>=8||e.bankerTotal>=8),aY={[ye.PLAYER]:2,[ye.BANKER]:1.95,[ye.TIE]:9,[ye.PLAYER_PAIR]:12,[ye.BANKER_PAIR]:12,[ye.PERFECT_PAIR_PLAYER]:51,[ye.PERFECT_PAIR_BANK]:51,bankerSix:1.5},oY=2,V6=1,mS=e=>(e==null?void 0:e.payouts)??aY,iY=(e,t,n)=>{const s=mS(n);switch(e){case ye.PLAYER:return t.winner===mr.PLAYER?s[ye.PLAYER]:t.winner===mr.TIE?V6:0;case ye.BANKER:return t.winner===mr.BANKER?(n==null?void 0:n.commissionMode)===qV.COMMISSION_FREE?t.bankerTotal===6?s.bankerSix:oY:s[ye.BANKER]:t.winner===mr.TIE?V6:0;case ye.TIE:return t.winner===mr.TIE?s[ye.TIE]:0;case ye.PLAYER_PAIR:return t.playerPair?s[ye.PLAYER_PAIR]:0;case ye.BANKER_PAIR:return t.bankerPair?s[ye.BANKER_PAIR]:0;case ye.PERFECT_PAIR_PLAYER:return t.perfectPairPlayer?s[ye.PERFECT_PAIR_PLAYER]:0;case ye.PERFECT_PAIR_BANK:return t.perfectPairBank?s[ye.PERFECT_PAIR_BANK]:0;default:return 0}},Z2e=(e,t,n=null)=>!!t&&iY(e,t,n)>V6,G2e=(e,t)=>(t==null?void 0:t.winner)===mr.TIE&&(e===ye.PLAYER||e===ye.BANKER),lY={minBet:1,minSideBet:.5,maxBySpot:{[ye.PLAYER]:3e6,[ye.BANKER]:3e6,[ye.TIE]:375e3},maxLiability:3e6},cY={minBet:1e3,minSideBet:500,maxBySpot:{[ye.PLAYER]:1e8,[ye.BANKER]:1e8,[ye.TIE]:125e5},maxLiability:1e8},dY=e=>e===fe.WHALE?cY:lY,uY=.5,hS=e=>wv.reduce((t,n)=>un(t,e[n]),0),Lp=(e,t)=>An(mS(t)[e]-1,4),fY=[1,5,10,50,100,1e3,1e4],mY=[1e3,1e6,1e7,1e8],pS=e=>e===fe.WHALE?mY:fY,hY={.5:{top:"#323a4c",middle:"#212632",bottom:"#11141a"},1:{top:"#adafce",middle:"#73748b",bottom:"#3a3a46"}
19,5:{top:"#ff7070",middle:"#e64242",bottom:"#961900"},10:{top:"#73da69",middle:"#3d9335",bottom:"#1f4a1b"},50:{top:"#a970ff",middle:"#8e43ff",bottom:"#4c00be"},100:{top:"#7086ff",middle:"#4e5fd6",bottom:"#24317a"},1e3:{top:"#ff974d",middle:"#b46934",bottom:"#5a351a"},1e4:{top:"#db3d2e",middle:"#b1463d",bottom:"#59231f"},1e6:{top:"#a970ff",middle:"#8e43ff",bottom:"#4c00be"},1e7:{top:"#db3d2e",middle:"#b1463d",bottom:"#59231f"},1e8:{top:"#e2b61a",middle:"#a88510",bottom:"#5a4708"}},Ap=[.5,1,5,10,50,100,1e3,1e4,1e6,1e7,1e8],z2e=e=>{let t=Ap[0];for(const n of Ap)n<=e&&(t=n);return hY[t]},q2e=e=>e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:`${e}`,Tp=.5,pY=e=>Hs(Lo(yr(e,Tp),0),Tp),gY=e=>pY(yr(Math.max(...wv.map(t=>B1(e[t]))),2)),wY=({bets:e,spot:t,limits:n})=>{if(!ou.includes(t))return null;const s=gY(e);if(s<n.minSideBet)return null;const r=An(Qc(s,B1(e[t])),2);return r>0?r:null},Y2e=e=>(e??[]).slice(-6),B1=e=>An((e??[]).reduce((t,n)=>un(t,n),0),2),ku=e=>Aa.reduce((t,n)=>(t[n]=B1(e[n]),t),{}),Wi=e=>An(Aa.reduce((t,n)=>un(t,B1(e[n])),0),2),d9=e=>{const t={};for(const n of Aa){const s=e[n];s!=null&&s.length&&(t[n]=[...s])}return t},CY=(e,t,n)=>({...e,[t]:[...e[t]??[],n]}),xY=(e,t)=>{const n=d9(e);return delete n[t],n},gS=e=>{const t={};for(const n of Aa){const s=e[n];s!=null&&s.length&&(t[n]=[...s,...s])}return t},yY=e=>{const t={};for(const n of Aa){const s=B1(e[n]);s>0&&(t[n]=s)}return t},bY=e=>{const t=ku(e),n=t[ye.PLAYER]>0,s=t[ye.BANKER]>0,r=hS(t);return Aa.filter(a=>a===ye.PLAYER&&s||a===ye.BANKER&&n?!0:ou.includes(a)&&r<=0)},u9=(e,t)=>t!==null&&e>t,vY=({bets:e,spot:t,chip:n,limits:s,config:r,freebetStakeLimit:a=null,balanceLimit:i=null})=>{const l=ku(e),c=un(l[t],n),d=s.maxBySpot[t];if(a!==null&&un(Wi(e),n)>a)return{reason:"freebet-stake",limit:a};if(d!==void 0&&c>d)return{reason:"spot-max",limit:d};if(ou.includes(t)&&c>Hs(hS(l),uY))return{reason:"side-bet-ratio"};const f=Aa.reduce((u,m)=>un(u,Hs(l[m],Lp(m,r))),0);return un(f,Hs(n,Lp(t,r)))>s.maxLiability?{reason:"liability",limit:s.maxLiability}:i!==null&&un(Wi(e),n)>i?{reason:"balance",limit:i}:null},EY=(e,t)=>ou.includes(e)?t.minSideBet:t.minBet,K2e=(e,t)=>{const n=ku(e);return Aa.find(s=>n[s]>0&&n[s]<EY(s,t))??null},SY=e=>({round:e.round,winner:e.outcome.winner,playerPair:e.outcome.playerPair,bankerPair:e.outcome.bankerPair,natural:rY(e.outcome),stake:e.stake,winAmountInUsd:e.winAmountInUsd,multiplier:e.multiplier}),_p=({pending:e,committed:t,history:n,maxHistory:s})=>!e||e.round===t?null:{round:e.round,history:[SY(e),...n].slice(0,s)},X2e=e=>{const t=[];let n=null;for(const s of e){if(s.winner===mr.TIE){n&&(n.ties+=1);continue}const r=s.winner===mr.PLAYER?"player":"banker",a={side:r,natural
19:s.natural,pairPlayer:s.playerPair,pairBank:s.bankerPair,ties:0};!n||n.side!==r?t.push([a]):t[t.length-1].push(a),n=a}return t},Bt=Je("fairGames/whale_baccarat/baccarat"),Rp=60,nn=Bt.createStore({},{name:"spotBets"}),Iu=Bt.createStore({},{name:"lastBet"}),W6=Bt.createStore(pS(null)[0],{name:"selectedChip"}),U1=Bt.createStore(null,{name:"settledRound"}),wS=Bt.createStore([],{name:"history"}),CS=Bt.createStore(null,{name:"committedRound"}),LY=Bt.createEvent("chipSelected"),xS=Bt.createEvent("chipPlaced"),AY=Bt.createEvent("spotCleared"),TY=Bt.createEvent("betsCleared"),yS=Bt.createEvent("newBetRequested"),bS=Bt.createEvent("rebetRequested"),vS=Bt.createEvent("betsDoubled"),_Y=Bt.createEvent("dealRequested"),RY=Bt.createEvent("roundCommitted"),hl=Bt.createEvent("stateReset"),f9=Bt.createEvent("settledRoundSet"),NY=nn.map(ku),ES=nn.map(Wi),J2e=nn.map(bY),Q2e=U1.map(Boolean),SS=ES.map(e=>e>0),Es=Rs({gameCode:ue.WhaleBaccarat,capabilities:{autoplay:!1,audio:!0,turbo:!1,cashout:!1,cashoutAt:!1,multipliers:!1,betAvailability:!0,async:!1},hooks:{readBetSettings:()=>({}),readBet:()=>yY(nn.getState()),readConstraintsBet:()=>({}),betAvailable:SS,onBetSettled:e=>FY(e),onReset:()=>hl()}}),LS=Es.$betCurrency.map(dY),kY=Es.$betCurrency.map(pS),IY=P(xo,Es.$betCurrency,Ai,(e,t,n)=>{var s;return BE({betCurrency:t,balanceInternal:((s=e.find(r=>r.currency===t))==null?void 0:s.availableAmount)??0,currencyRate:n[t]??0,totalBet:0})}),Mu=P(IY,Es.$isFreeBet,(e,t)=>t?null:e),MY=P(ES,Mu,u9),OY=P(Iu,Mu,(e,t)=>!u9(Wi(e),t)),PY=P(nn,Mu,(e,t)=>!u9(Wi(gS(e)),t)),DY=Es.$gameConfig.map(e=>e??null),ede=P(U1,Es.$betCurrency,(e,t)=>{if(!e)return{value:0,isWin:!1};const n=t===fe.WHALE?e.winAmount:e.winAmountInUsd;return{value:n,isWin:n>0}}),tde=P(U1,NY,(e,t)=>(e==null?void 0:e.outcome.winner)===mr.TIE&&t[ye.TIE]<=0),FY=e=>{const t=e.determinedOutcome;!t||!e.result||f9({round:e.round??"",outcome:t,winAmount:Number(e.result.winAmount??0),winAmountInUsd:Number(e.result.winAmountInUsd??0),multiplier:Number(e.result.multiplier??0),stake:Wi(nn.getState())})},jY=(e,t)=>{var n;return vY({bets:nn.getState(),spot:e,chip:t,limits:LS.getState(),config:DY.getState(),freebetStakeLimit:Es.$isFreeBet.getState()?((n=Es.$availableFreebet.getState())==null?void 0:n.betAmountInUsd)??null:null,balanceLimit:Mu.getState()})},nde=e=>{const t=nn.getState(),n=wY({bets:t,spot:e,limits:LS.getState()});return n===null?null:jY(e,n)===null?n:null};W6.on(LY,(e,t)=>t);h({clock:kY,source:W6,filter:(e,t)=>!t.includes(e),fn:(e,t)=>t[0],target:W6});nn.on(xS,(e,{spot:t,chip:n})=>CY(e,t,n));nn.on(AY,(e,t)=>xY(e,t));nn.on([TY,yS],()=>({}));h({clock:vS,source:{bets:nn,canDouble:PY},filter:({canDouble:e})=>e,fn:({bets:e})=>gS(e),target:nn});h({clock:bS,source:{lastBet:Iu,canRebet:OY},filter:({canRebet:e})=>e,fn:({lastBet:e})=>d9(e),target:nn});nn.reset(Es.$betCurrency.updates,hl);U1.on(f9,(e,t)=>t).reset(xS,yS,bS,vS,Es.$betCurrency.updates,hl);h({clock:_Y,source:{canDeal:SS,isOverBalance:MY},filter:({canDeal:e,isOverBalance:t})=>e&&!t,fn:()=>{},target:Es.placeBetFx});h({clock:f9,source:nn,fn:d9,target:Iu});Iu.reset(hl);const m9=Bt.createEvent("roundRecorded");h({clock:RY,source:{pending:U1,history:wS,committed:CS},filter:e=>_p({...e,maxHistory:Rp})!==null,fn:e=>_p({...e,maxHistory:Rp}),target:m9});wS.on(m9,(e,{history:t})=>t).reset(hl);CS.on(m9,(e,{round:t})=>t).reset(hl);const Np=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},$Y={get:(e,t)=>Np(()=>_e.get(e,{query:t})),post:(e,t)=>Np(()=>_e.post(e,t))};let pi={getPathname:()=>wr(),getQueryParam:e=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(e),navigate:()=>{},openModal:()=>{}};const sde=e=>{pi=e},BY=(e,t)=>{pi.openModal(e,t)};let kp=!1;const UY=e=>{kp||(kp=!0,yP({http:$Y,storage:{get:t=>ia.get(t),set:(t,n)=>void ia.set(t,n),remove:t=>void ia.remove(t),keys:()=>ia.keys()},navigation:{getPathname:()=>pi.getPathname(),getQueryParam:t=>pi.getQueryParam(t),navigate:t=>pi.navigate(t),openModal:(t,n)=>pi.openModal(t,n)},toast:{success:(t,n)=>hn({level:"success",title:t,body:n}),error:(t,n)=>hn({level:"error",title:t,body:n})},translate:(t,n)=>w(t,n),isFeatureEnabled:t=>Ad(t),isTelegram:()=>!1,getGameHref:vw,getUserId:e.getUserId,isSelfExcluded:e.isSelfExcluded,refreshBalances:e.refreshBalances,refreshProfile:e.refreshProfile}))},rde="/",ade="/home",HY="/casino",ode="/casino/providers",ide="/live-casino",lde="/crypto-games",AS="/originals",Mr="/sportsbook",cde="/sportsbook-beta",h9="/lootbox",dde=`${h9}/inventory`,ude=`${h9}/collectibles`,fde=`${h9}
19/claim`,mde="/nft",hde="/tournaments",pde="/tribes",gde="/tribesog",wde="/tribes-frame",Cde="/rewards",xde="/earn",TS="/thedailyfinn",yde="/token",bde="/games",vde="/category",Ede="/casino/marbles/zcl3u_lobby",VY=(e,t)=>`/casino/${e}/${t}`,Sde=e=>e==="originals"?AS:`/casino/${e}`,_S={TERMS_AND_CONDITIONS:"/terms-and-conditions",RESPONSIBLE_GAMING:"/responsible-gaming",FAIRNESS:"/fairness",RESTRICTED_JURISDICTIONS:"/restricted-jurisdictions",AML_POLICY:"/aml-policy",PRIVACY_POLICY:"/privacy-policy"},WY=_S.RESPONSIBLE_GAMING,Lde="/most-popular",Ade="/newarrivals",Tde="/buyfeature",_de="/megaways",Rde="/whalespecials",Nde=`${TS}/wtf`,kde=`${TS}/all`,Ide="/apk",Mde="/bonuses",Ode="/oauth",Pde="/auth/otp-email",Dde=`${Mr}/?setIframePath=/live`,Fde=`${Mr}/?setIframePath=/football`,jde=`${Mr}/?setIframePath=/tennis`,$de=`${Mr}/?setIframePath=/csgo`,Bde=`${Mr}/?setIframePath=/hockey`,Ude=`${Mr}/?setIframePath=/basketball`,Hde=`${Mr}/?setIframePath=/dota2`,Vde=`${Mr}/?setIframePath=/mma`,Wde=`${Mr}/?setIframePath=/boxing`,ZY=["auth","wallet","purchaseBattlepass","purchaseBattlepassComplete","rankPerks","rewardsClaimDeposit","rewardsClaimInWeb","rewardClaimedFreeSpins","rewardClaimedCustom","selfExclusionNotice","provably-fair","provably-fair-rounds","game-rules","duck-rules","duck-how-to-play","tower-rules","tower-how-to-play","baccarat-rules","blackjack-rules","user","settings","verification","lootboxTutorial","lootboxKyc","lootboxWin","lootboxSell","lootboxWithdraw","lootboxDelivery","tournamentTerms","tournamentLeaderboard","tribeCreate","tribeHowItWorks","tribeDripRules","tribeCashier","tribePlayers"],Zde=e=>typeof e=="string"&&ZY.includes(e),H1=e=>({...e,component:e.component}),r3="modal";var a3={exports:{}},o3={},i3={exports:{}},l3={};/**
20 * @license React
21 * use-sync-external-store-shim.production.js
22 *
23 * Copyright (c) Meta Platforms, Inc. and affiliates.
24 *
25 * This source code is licensed under the MIT license found in the
26 * LICENSE file in the root directory of this source tree.
27 */var Ip;function GY(){if(Ip)return l3;Ip=1;var e=Qg();function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var n=typeof Object.is=="function"?Object.is:t,s=e.useState,r=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(u,m){var p=m(),C=s({inst:{value:p,getSnapshot:m}}),b=C[0].inst,v=C[1];return a(function(){b.value=p,b.getSnapshot=m,c(b)&&v({inst:b})},[u,p,m]),r(function(){return c(b)&&v({inst:b}),u(function(){c(b)&&v({inst:b})})},[u]),i(p),p}function c(u){var m=u.getSnapshot;u=u.value;try{var p=m();return!n(u,p)}catch{return!0}}function d(u,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return l3.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,l3}var Mp;function RS(){return Mp||(Mp=1,i3.exports=GY()),i3.exports}/**
28 * @license React
29 * use-sync-external-store-shim/with-selector.production.js
30 *
31 * Copyright (c) Meta Platforms, Inc. and affiliates.
32 *
33 * This source code is licensed under the MIT license found in the
34 * LICENSE file in the root directory of this source tree.
35 */var Op;function zY(){if(Op)return o3;Op=1;var e=Qg(),t=RS();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var s=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,a=e.useRef,i=e.useEffect,l=e.useMemo,c=e.useDebugValue;return o3.useSyncExternalStoreWithSelector=function(d,f,u,m,p){var C=a(null);if(C.current===null){var b={hasValue:!1,value:null};C.current=b}else b=C.current;C=l(function(){function E(R){if(!x){if(x=!0,g=R,R=m(R),p!==void 0&&b.hasValue){var O=b.value;if(p(O,R))return A=O}return A=R}if(O=A,s(g,R))return O;var U=m(R);return p!==void 0&&p(O,U)?(g=R,O):(g=R,A=U)}var x=!1,g,A,k=u===void 0?null:u;return[function(){return E(f())},k===null?void 0:function(){return E(k())}]},[f,u,m,p]);var v=r(d,C[0],C[1]);return i(function(){b.hasValue=!0,b.value=v},[v]),c(v),v},o3}var Pp;function qY(){return Pp||(Pp=1,a3.exports=zY()),a3.exports}var YY=qY();const KY=Sd(YY);var XY=RS();const JY=Sd(XY);function QY(e,t){const n=s0.unit(e);let s={};n?s={unit:e}:"@@unitShape"in e?typeof e["@@unitShape"]=="function"?s=e["@@unitShape"]():Dp("expect @@unitShape to be a function"):s=e;const r=Array.isArray(s),a=$.useRef({stale:1,justSubscribed:0,scope:t}),[i,l,c,d,f]=$.useMemo(()=>{a.current.stale=1;const C=Array.isArray(s)?[]:{},b=[],v=[],E=[],x=[];for(const g in s){if(!{}.hasOwnProperty.call(s,g))continue;const A=s[g];s0.unit(A)||Dp(`expect useUnit ${n?"argument":`value in key "${g}"`} to be a unit`),s0.event(A)||s0.effect(A)?(C[g]=t?hT(A,{scope:t}):A,E.push(g),x.push(A)):(C[g]=null,b.push(g),v.push(A))}return[C,b,v,E,x]},[a,t,...Object.keys(s),...Object.values(s)]),u=$.useRef({value:i,storeKeys:l,eventKe
35ys:d,eventValues:f}),m=$.useCallback(C=>{const b=a.current;return b.justSubscribed=1,pT({unit:c,fn:()=>{b.stale||(b.stale=1,C())},scope:t,batch:1})},[c,t,u,a]),p=$.useCallback(()=>{const C=u.current,b=a.current;let v,E=0;const x=C.value,g=C.storeKeys,A=C.eventKeys,k=C.eventValues,R=t!==b.scope;if(b.stale||b.justSubscribed||R){E=!b.justSubscribed||R,v=r?[...i]:{...i},g.length===l.length&&A.length===d.length||(E=1);for(let O=0;O<l.length;O++){const U=nK(c[O],t),V=l[O];E||(E=g.includes(V)?x[V]!==U:1),v[V]=U}for(let O=0;O<d.length;O++){const U=f[O],V=d[O];E||(E=A.includes(V)?k[A.indexOf(V)]!==U:1)}}return E&&(C.value=v),C.storeKeys=l,C.eventKeys=d,C.eventValues=f,b.stale=0,b.justSubscribed=!E,b.scope=t,n?C.value.unit:C.value},[m,c,f,t,u,a]);return tK(m,p,p)}function eK(e){return $.useContext(NS)}function Me(e,t){return QY(e,eK())}const Dp=e=>{throw Error(e)};typeof window<"u"?$.useLayoutEffect:$.useEffect;const{useSyncExternalStore:tK}=JY,{useSyncExternalStoreWithSelector:Gde}=KY,nK=(e,t)=>t?t.getState(e):e.getState(),NS=$.createContext(null),{Provider:zde}=NS;function kS(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=kS(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function sK(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kS(e))&&(s&&(s+=" "),s+=t);return s}const p9="-",rK=e=>{const t=oK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const l=i.split(p9);return l[0]===""&&l.length!==1&&l.shift(),IS(l,t)||aK(i)},getConflictingClassGroupIds:(i,l)=>{const c=n[i]||[];return l&&s[i]?[...c,...s[i]]:c}}},IS=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?IS(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(p9);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},Fp=/^\[(.+)\]$/,aK=e=>{if(Fp.test(e)){const t=Fp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oK=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return lK(Object.entries(e.classGroups),n).forEach(([a,i])=>{Z6(i,s,a,t)}),s},Z6=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:jp(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(iK(r)){Z6(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,i])=>{Z6(i,jp(t,a),n,s)})})},jp=(e,t)=>{let n=e;return t.split(p9).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},iK=e=>e.isThemeGetter,lK=(e,t)=>t?e.map(([n,s])=>{const r=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[n,r]}):e,cK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,s=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return r(a,i),i},set(a,i){n.has(a)?n.set(a,i):r(a,i)}}},MS="!",dK=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],a=t.length,i=l=>{const c=[];let d=0,f=0,u;
vendor: 4,405 bytes, line 35
35for(let v=0;v<l.length;v++){let E=l[v];if(d===0){if(E===r&&(s||l.slice(v,v+a)===t)){c.push(l.slice(f,v)),f=v+a;continue}if(E==="/"){u=v;continue}}E==="["?d++:E==="]"&&d--}const m=c.length===0?l:l.substring(f),p=m.startsWith(MS),C=p?m.substring(1):m,b=u&&u>f?u-f:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:C,maybePostfixModifierPosition:b}};return n?l=>n({className:l,parseClassName:i}):i},uK=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},fK=e=>({cache:cK(e.cacheSize),parseClassName:dK(e),...rK(e)}),mK=/\s+/,hK=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,a=[],i=e.trim().split(mK);let l="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{modifiers:f,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=n(d);let C=!!p,b=s(C?m.substring(0,p):m);if(!b){if(!C){l=d+(l.length>0?" "+l:l);continue}if(b=s(m),!b){l=d+(l.length>0?" "+l:l);continue}C=!1}const v=uK(f).join(":"),E=u?v+MS:v,x=E+b;if(a.includes(x))continue;a.push(x);const g=r(b,C);for(let A=0;A<g.length;++A){const k=g[A];a.push(E+k)}l=d+(l.length>0?" "+l:l)}return l};function pK(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=OS(t))&&(s&&(s+=" "),s+=n);return s}const OS=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=OS(e[s]))&&(n&&(n+=" "),n+=t);return n};function gK(e,...t){let n,s,r,a=i;function i(c){const d=t.reduce((f,u)=>u(f),e());return n=fK(d),s=n.cache.get,r=n.cache.set,a=l,l(c)}function l(c){const d=s(c);if(d)return d;const f=hK(c,n);return r(c,f),f}return function(){return a(pK.apply(null,arguments))}}const et=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},PS=/^\[(?:([a-z-]+):)?(.+)\]$/i,wK=/^\d+\/\d+$/,CK=new Set(["px","full","screen"]),xK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yK=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,or=e=>Li(e)||CK.has(e)||wK.test(e),Gr=e=>pl(e,"length",kK),Li=e=>!!e&&!Number.isNaN(Number(e)),c3=e=>pl(e,"number",Li),ec=e=>!!e&&Number.isInteger(Number(e)),SK=e=>e.endsWith("%")&&Li(e.slice(0,-1)),ve=e=>PS.test(e),zr=e=>xK.test(e),LK=new Set(["length","size","percentage"]),AK=e=>pl(e,LK,DS),TK=e=>pl(e,"position",DS),_K=new Set(["image","url"]),RK=e=>pl(e,_K,MK),NK=e=>pl(e,"",IK),tc=()=>!0,pl=(e,t,n)=>{const s=PS.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},kK=e=>yK.test(e)&&!bK.test(e),DS=()=>!1,IK=e=>vK.test(e),MK=e=>EK.test(e),OK=()=>{const e=et("colors"),t=et("spacing"),n=et("blur"),s=et("brightness"),r=et("borderColor"),a=et("borderRadius"),i=et("borderSpacing"),l=et("borderWidth"),c=et("contrast"),d=et("grayscale"),f=et("hueRotate"),u=et("invert"),m=et("gap"),p=et("gradientColorStops"),C=et("gradientColorStopPositions"),b=et("inset"),v=et("margin"),E=et("opacity"),x=et("padding"),g=et("saturate"),A=et("scale"),k=et("sepia"),R=et("skew"),O=et("space"),U=et("translate"),V=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",ve,t],W=()=>[ve,t],I=()=>["",or,Gr],H=()=>["auto",Li,ve],j=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",ve],Se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Li,ve];return{cacheSize:500,separator:":",theme:{colors:[tc],spacing:[or,Gr],blur:["none","",zr,ve],brightness:ce(),borderColor:[e],borderRadius:["none","","full",zr,ve],borderSpacing:W(),borderWidth:I(),contrast:ce(),grayscale:ae(),hueRotate:ce(),invert:ae(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[SK,Gr],inset:G(),margin:G(),opacity:ce(),padding:W(),saturate:ce(),scale:ce(),sepia:ae(),skew:ce(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}
vendor: 11,188 bytes, line 35
35],container:["container"],columns:[{columns:[zr]}],"break-after":[{"break-after":Se()}],"break-before":[{"break-before":Se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...j(),ve]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ec,ve]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",ec,ve]}],"grid-cols":[{"grid-cols":[tc]}],"col-start-end":[{col:["auto",{span:["full",ec,ve]},ve]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[tc]}],"row-start-end":[{row:["auto",{span:[ec,ve]},ve]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,t]}],"min-w":[{"min-w":[ve,t,"min","max","fit"]}],"max-w":[{"max-w":[ve,t,"none","full","min","max","fit","prose",{screen:[zr]},zr]}],h:[{h:[ve,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zr,Gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",c3]}],"font-family":[{font:[tc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",Li,c3]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",or,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",or,Gr]}],"underline-offset":[{"underline-offset":["auto",or,ve]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...j(),TK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",AK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},RK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:N()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[or,ve]}],"outline-w":[{outline:[or,Gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[or,Gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zr,NK]}],"shadow-color":[{shadow:[tc]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",zr,ve]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[g]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[ec,ve]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
35],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[or,Gr,c3]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},PK=gK(OK),ie=(...e)=>PK(sK(e)),DK=3e3,$p=["cashback","rewards_instant","rtp","rank","tribe","tokens","vip","rewards","explore_more"],FK="og_battlepass_required",jK=({isPaywall:e,isNovice:t})=>{const n=e?[FK,...$p]:[...$p],[s,r]=y.useState(0),[a,i]=y.useState(!1);y.useEffect(()=>{if(a||n.length<2)return;const m=window.setInterval(()=>r(p=>(p+1)%n.length),DK);return()=>window.clearInterval(m)},[a,n.length]);const l=n[s]??n[0],c=`battlepass_perk_carousel.${l}.novice_title`,d=`battlepass_perk_carousel.${l}.novice_description`,f=t&&w(c)!==c?c:`battlepass_perk_carousel.${l}.title`,u=t&&w(d)!==d?d:`battlepass_perk_carousel.${l}.description`;return o.jsxs("div",{"data-testid":"perk-carousel",className:"flex flex-col items-center gap-3",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[o.jsxs("div",{className:"flex min-h-[76px] flex-col items-center gap-2 px-4 text-center",children:[o.jsx("p",{"data-testid":"perk-title",className:"text-base font-semibold text-white",children:w(f)}),o.jsx("p",{className:"text-sm font-medium text-brandblue-100",children:w(u)})]}),o.jsx("div",{className:"flex items-center gap-1.5",children:n.map((m,p)=>o.jsx("button",{type:"button","aria-label":w(`battlepass_perk_carousel.${m}.title`),className:ie("h-1.5 rounded-full transition-all",p===s?"w-4 bg-brand-tertiary":"w-1.5 bg-highlight"),onClick:()=>r(p)},m))})]})},$K="/assets/celo-Tf5Hf6-g.webp",BK=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M10.0003 18.9981C14.9707 18.9979 18.9999 14.9688 18.9997 9.99883C18.9995 5.02886 14.9701 1.00006 9.99967 1.00024C5.02929 1.00042 1.00015 5.02952 1.00033 9.99949C1.00051 14.9694 5.02995 18.9983 10.0003 18.9981Z",fill:"#0088CC"}),o.jsx("path",{d:"M10.0003 18.9981C14.9707 18.9979 18.9999 14.9688 18.9997 9.99883C18.9995 5.02886 14.9701 1.00006 9.99967 1.00024C5.02929 1.00042 1.00015 5.02952 1.00033 9.99949C1.00051 14.9694 5.02995 18.9983 10.0003 18.9981Z",fill:"#30A1F5"}
35),o.jsx("g",{clipPath:"url(#clip0_2012_1641)",children:o.jsx("path",{d:"M11.9821 5.56035C12.51 5.56035 12.7746 5.55975 13.0133 5.63359C13.2248 5.69896 13.4211 5.8065 13.5905 5.94902C13.7817 6.10994 13.925 6.33184 14.2106 6.77617L15.4704 8.73711C15.6589 9.03053 15.7532 9.17745 15.7789 9.33183C15.8016 9.468 15.7869 9.60784 15.736 9.73613C15.6782 9.88154 15.5548 10.0052 15.3082 10.2518L10.6237 14.9363C10.4056 15.1545 10.2963 15.2636 10.1705 15.3045C10.0597 15.3405 9.93963 15.3405 9.82875 15.3045C9.70297 15.2635 9.59373 15.1543 9.37563 14.9363L4.69106 10.2518C4.44438 10.0052 4.32114 9.88152 4.26332 9.73613C4.21237 9.60784 4.19777 9.46799 4.22035 9.33183C4.24607 9.17757 4.34036 9.03053 4.52895 8.73711L5.78969 6.77617C6.07514 6.33215 6.21763 6.10991 6.40883 5.94902C6.57815 5.8065 6.77453 5.69896 6.98598 5.63359C7.22484 5.55973 7.48924 5.56035 8.01723 5.56035L11.9821 5.56035ZM11.6071 7.10722C11.5428 6.93322 11.2965 6.93322 11.2321 7.10722L10.7868 8.31035C10.7736 8.34587 10.7529 8.37822 10.7262 8.40507C10.6993 8.43202 10.6662 8.45337 10.6305 8.4666L9.42738 8.91093C9.25326 8.97537 9.25326 9.22247 9.42738 9.28691L10.6305 9.73125C10.6662 9.74445 10.6993 9.76583 10.7262 9.79277C10.7529 9.81958 10.7736 9.85196 10.7868 9.8875L11.2321 11.0906C11.2964 11.2647 11.5426 11.2647 11.6071 11.0906L12.0524 9.8875C12.0656 9.85194 12.0862 9.81958 12.1129 9.79277C12.1399 9.76583 12.1729 9.74445 12.2086 9.73125L13.4118 9.28691C13.5857 9.22253 13.5857 8.97541 13.4118 8.91093L12.2086 8.4666C12.1729 8.45337 12.1399 8.43202 12.1129 8.40507C12.0862 8.37822 12.0656 8.34589 12.0524 8.31035L11.6071 7.10722Z",fill:"white"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_2012_1641",children:o.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(4 4.2)"})})})]}),UK=e=>o.jsxs("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("g",{id:"usdt-svgrepo-com (2) 1",clipPath:"url(#clip0_10893_24117)",children:o.jsxs("g",{id:"Group",children:[o.jsx("path",{id:"Vector",d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"#26A17B"}),o.jsx("path",{id:"Vector_2",fillRule:"evenodd",clipRule:"evenodd",d:"M11.2013 10.8644V10.8632C11.1325 10.8682 10.7781 10.8894 9.9875 10.8894C9.35625 10.8894 8.91187 10.8707 8.75562 10.8632V10.865C6.32562 10.7582 4.51187 10.335 4.51187 9.82878C4.51187 9.32315 6.32562 8.90003 8.75562 8.79128V10.4438C8.91437 10.455 9.36937 10.4819 9.99812 10.4819C10.7525 10.4819 11.1306 10.4507 11.2013 10.4444V8.79253C13.6263 8.90065 15.4356 9.32378 15.4356 9.82878C15.4356 10.335 13.6263 10.7569 11.2013 10.8644ZM11.2013 8.62065V7.1419H14.585V4.8869H5.37188V7.1419H8.75562V8.62003C6.00562 8.74628 3.9375 9.29128 3.9375 9.94378C3.9375 10.5963 6.00562 11.1407 8.75562 11.2675V16.0063H11.2013V11.2663C13.9469 11.14 16.01 10.5957 16.01 9.94378C16.01 9.2919 13.9469 8.74753 11.2013 8.62065Z",fill:"white"})]})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_10893_24117",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Bp=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33 32",...e,children:[o.jsx("path",{d:"M32.1877 19.8706C30.0505 28.442 21.3681 33.6585 12.7947 31.521C4.22477 29.384 -0.99229 20.7021 1.14594 12.1312C3.28216 3.55876 11.9646 -1.65819 20.5355 0.478793C29.1084 2.61577 34.325 11.2987 32.1877 19.8706Z",fill:"#F7931A"}),o.jsx("path",{d:"M23.7218 13.7206C24.0403 11.5916 22.4192 10.4472 20.2024 9.68366L20.9215 6.79969L19.1658 6.36219L18.4658 9.17016C18.0042 9.05516 17.5301 8.94667 17.0591 8.83917L17.7642 6.01269L16.0095 5.5752L15.2899 8.45816C14.9079 8.37116 14.5328 8.28518 14.1688 8.19468L14.1708 8.18567L11.7495 7.58117L11.2825 9.45615C11.2825 9.45615 12.5851 9.75465 12.5576 9.77315C13.2687 9.95065 13.3972 10.4211 13.3757 10.7941L12.5566 14.0796C12.6056 14.0921 12.6691 14.1101 12.7391 14.1381C12.6806 14.1236 12.6181 14.1076 12.5536 14.0921L11.4055 18.6946C11.3185 18.9106 11.098 19.2346 10.6009 19.1116C10.6184 19.1371 9.32478 18.7931 9.32478 18.7931L8.45319 20.8026L10.7379 21.372C11.163 21.4785 11.5795 21.59 11.9896 21.695L11.263 24.612L13.0167 25.0495L13.7362 22.1635C14.2153 22.2935 14.6803 22.4135 15.1354 22.5265L14.4183 25.399L16.174 25.8365L16.9006 22.925C19.8944 23.4915 22.1456 23.263 23.0932 20.5555C23.8568 18.3756 23.0552 17.1181 21.4801 16.2981C22.6272 16.0336 23.4913 15.2791 23.7218 13.7206ZM19.7104 19.3451C19.1678 21.525 15.4969 20.3465 14.3068 20.051L15.2709 16.1866C16.461 16.4836 20.2774 17.0716 19.7104 19.3451ZM20.2534 13.6891C19.7584 15.6721 16.7031 14.6646 15.712 14.4176L16.5861 10.9127C17.5772 11.1596 20.769 11.6206 20.2534 13.6891Z",fill:"white"})]}),HK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33 32",...e,children:[o.jsx("circle",{cx:"16.3333",cy:"16",r:"16",fill:"#547FEF"}),o.jsx("path",{d:"M16.3322 5.71423L16.1907 6.18303V19.7853L16.3322 19.923L22.8055 16.1908L16.3322 5.71423Z",fill:"#BFCCF9"}),o.jsx("path",{d:"M16.3306 5.71423L9.85712 16.1908L16.3306 19.923V13.3208V5.71423Z",fill:"white"}),o.jsx("path",{d:"M16.3322 21.1183L16.2525 21.2132V26.0585L16.3322 26.2856L22.8095 17.3881L16.3322 21.1183Z",fill:"#C1CEFB"}),o.jsx("path",{d:"M16.3306 26.2856V21.1183L9.85712 17.3881L16.3306 26.2856Z",fill:"white"}),o.jsx("path",{d:"M16.3297 19.9229L22.8031 16.1907L16.3297 13.3207V19.9229Z",fill:"#7799F2"}),o.jsx("path",{d:"M9.85712 16.1907L16.3306 19.9229V13.3207L9.85712 16.1907Z",fill:"#BFCCF9"})]}),VK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33 32",...e,children:[o.jsx("circle",{cx:"16.6667",cy:"16",r:"16",fill:"black"}),o.jsx("g",{clipPath:"url(#clip0_1044_3054)",children:o.jsx("path",{d:"M24.5843 20.2559L21.943 23.0461C21.8856 23.1067 21.8161 23.155 21.7389 23.1881C21.6617 23.2211 21.5785 23.2381 21.4943 23.2381H8.97332C8.91358 23.2381 8.85513 23.2209 8.80517 23.1886C8.75521 23.1563 8.71591 23.1104 8.6921 23.0564C8.66829 23.0024 8.661 22.9428 8.67113 22.8848C8.68126 22.8268 8.70837 22.773 8.74913 22.73L11.3924 19.9398C11.4497 19.8793 11.5189 19.8311 11.5959 19.7981C11.6728 19.7651 11.7558 19.748 11.8398 19.7478H24.3601C24.4198 19.7478 24.4782 19.765 24.5282 19.7973C24.5781 19.8295 24.6174 19.8755 24.6413 19.9295C24.6651 19.9834 24.6724 20.0431 24.6623 20.1011C24.6521 20.1591 24.625 20.2129 24.5843 20.2559ZM21.943 14.6373C21.8856 14.5767 21.8161 14.5283 21.7389 14.4953C21.6617 14.4623 21.5785 14.4453 21.4943 14.4453H8.97332C8.91358 14.4453 8.85513 14.4625 8.80517 14.4948C8.75521 14.5271 8.71591 14.573 8.6921 14.627C8.66829 14.6809 8.661 14.7406 8.67113 14.7986C8.68126 14.8566 8.70837 14.9104 8.74913 14.9534L11.3924 17.7436C11.4497 17.8041 11.5189 17.8523 11.5959 17.8853C11.6728 17.9183 11.7558 17.9354 11.8398 17.9356H24.3601C24.4198 17.9356 24.4782 17.9184 24.5282 17.8861C24.5781 17.8538 24.6174 17.8079 24.6413 17.7539C24.6651 17.6999 24.6724 17.6403 24.6623 17.5823C24.6521 17.5243 24.625 17.4705 24.5843 17.4275L21.943 14.6373ZM8.97332 12.6331H21.4943C21.5785 12.6331 21.6617 12.6161 21.7389 12.5831C21.8161 12.55 21.8856 12.5017 21.943 12.4411L24.5843 9.65092C24.625 9.6079 24.6521 9.55408 24.6623 9.49608C24.6724 9.43809 24.6651 9.37844 24.6413 9.32447C24.6174 9.2705 24.5781 9.22456 24.5282 9.19229C24.4782 9.16002 24.4198 9.14282 24.3601 9.14282H11.8398C11.7558 9.14296 11.6728 9.16007 11.5959 9.19309C11.5189 9.22611 11.4497 9.27434 11.3924 9.33479L8.74981 12.125C8.70909 12.1679 8.68199 12.2217 8.67184 12.2796C8.66168 12.3376 8.66891 12.3972 8.69264 12.4511C8.71637 12.5051 8.75557 12.551 8.80543 12.5833C8.85529 12.6156 8.91364 12.6329 8.97332 12.6331Z",fill:"url(#paint0_linear_1044_3054)"})}),o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"paint0_linear_1044_3054",x1:"10.0173",y1:"23.574",x2:"22.9259",y2:"8.80061",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.08",stopColor:"#9945FF"}),o.jsx("stop",{offset:"0.3",stopColor:"#8752F3"}),o.jsx("stop",{offset:"0.5",stopColor:"#5497D5"}),o.jsx("stop",{offset:"0.6",stopColor:"#43B4CA"}),o.jsx("stop",{offset:"0.72",stopColor:"#28E0B9"}),o.jsx("stop",{offset:"0.97",stopColor:"#19FB9B"})]}),o.jsx("clipPath",{id:"clip0_1044_3054",children:o.jsx("rect",{width:"16",height:"14.0952",fill:"white",transform:"translate(8.66669 9.14282)"})})]})]}),WK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",...e,children:[o.jsx("path",{d:"M10.0004 19.9989C15.523 19.9987 19.9998 15.5215 19.9996 9.9989C19.9994 4.47626 15.5223 -0.000568009 9.99963 -0.000365918C4.47699 -0.000163827 0.000163827 4.47699 0.000365918 9.99963C0.000568009 15.5223 4.47772 19.9991 10.0004 19.9989Z",fill:"white"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.78271 14.4476L13.2653 14.4478C13.4946 14.4478 13.7238 14.4141 13.9633 14.3025C14.2504 14.1687 14.4026 13.9577 14.5093 13.8018C14.5176 13.7896 14.5254 13.7771 14.5325 13.7643C14.6579 13.5411 14.7226 13.3001 14.7226 13.0408C14.7226 12.7944 14.664 12.526 14.5326 12.2921C14.5314 12.2899 14.5301 12.2877 14.5288 12.2854L10.4335 5.24997C10.3432 5.09484 10.1769 4.99965 9.99742 5.00026C9.8179 5.00091 9.65233 5.09725 9.56312 5.25303L5.54249 12.2732C5.54134 12.2751 5.54018 12.277 5.53903 12.2789C5.44701 12.4305 5.30471 12.665 5.27981 12.9676C5.25693 13.2458 5.31946 13.5246 5.45926 13.7663C5.59906 14.0081 5.80954 14.2014 6.06269 14.3197C6.33414 14.4466 6.60922 14.4476 6.78271 14.4476ZM9.49636 13.4426L6.78275 13.4425C6.60446 13.4425 6.53603 13.4315 6.48818 13.4092C6.42202 13.3783 6.36646 13.3275 6.32931 13.2632C6.29216 13.199 6.27536 13.1245 6.28147 13.05C6.28499 13.0072 6.30241 12.9583 6.40516 12.7889C6.4073 12.7853 6.40941 12.7818 6.41147 12.7782L9.49658 7.39147L9.49636 13.4426ZM10.5014 13.4427L10.5016 7.36488L13.6578 12.787C13.6934 12.8517 13.7176 12.9452 13.7176 13.0408C13.7176 13.1182 13.7015 13.1855 13.6656 13.2549C13.6279 13.3091 13.6049 13.3378 13.5857 13.3574C13.5693 13.3742 13.5566 13.3832 13.5387 13.3915C13.4641 13.4263 13.3877 13.4428 13.2653 13.4428L10.5014 13.4427Z",fill:"black"})]}),Up=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e,children:[o.jsx("rect",{width:"20",height:"20",fill:"url(#pattern0_5113_2908)"}),o.jsxs("defs",{children:[o.jsx("pattern",{id:"pattern0_5113_2908",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:o.jsx("use",{xlinkHref:"#image0_5113_2908",transform:"scale(0.015625)"})}),o.jsx("image",{id:"image0_5113_2908",width:"64",height:"64",xlinkHref:$K})]})]}),ZK=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#clip0_16841_17768)",children:[o.jsx("path",{d:"M23.0625 10.05C22.1625 4.7625 17.55 0.75 12 0.75C6.45 0.75 1.8375 4.7625 0.9375 10.05L12 4.5L23.0625 10.05ZM0.9375 13.95C1.8375 19.2375 6.45 23.25 12 23.25C17.55 23.25 22.1625 19.2375 23.0625 13.95L12 19.5L0.9375 13.95Z",fill:"#699635"}),o.jsx("path",{d:"M12 4.5L0.9375 10.05C0.825 10.6875 0.75 11.325 0.75 12C0.75 12.675 0.825 13.3125 0.9375 13.95L12 19.5L23.0625 13.95C23.175 13.3125 23.25 12.675 23.25 12C23.25 11.325 23.175 10.6875 23.0625 10.05L12 4.5Z",fill:"#FFE62E"}),o.jsx("path",{d:"M9.75 10.6484C8.55 10.6484 7.425 10.9109 6.4125 11.3609C6.375 11.5859 6.375 11.7734 6.375 11.9984C6.375 15.1109 8.8875 17.6234 12 17.6234C14.1 17.6234 15.9375 16.4609 16.9125 14.7734C15.525 12.3359 
3512.825 10.6484 9.75 10.6484Z",fill:"#428BC1"}),o.jsx("path",{d:"M17.55 12.9C17.5875 12.6 17.625 12.3 17.625 12C17.625 8.8875 15.1125 6.375 12 6.375C9.7875 6.375 7.875 7.65 6.9375 9.525C7.8375 9.2625 8.775 9.1125 9.75 9.1125C12.9375 9.1125 15.75 10.6125 17.55 12.9Z",fill:"#428BC1"}),o.jsx("path",{d:"M9.74998 9.11328C8.77498 9.11328 7.83748 9.26328 6.93748 9.52578C6.67498 10.0883 6.48748 10.6883 6.41248 11.3633C7.42498 10.9133 8.54998 10.6508 9.74998 10.6508C12.825 10.6508 15.525 12.3008 16.9125 14.7383C17.25 14.1758 17.4375 13.5383 17.55 12.9008C15.75 10.6133 12.9375 9.11328 9.74998 9.11328Z",fill:"white"}),o.jsx("path",{d:"M8.25 12.375C8.45711 12.375 8.625 12.2071 8.625 12C8.625 11.7929 8.45711 11.625 8.25 11.625C8.04289 11.625 7.875 11.7929 7.875 12C7.875 12.2071 8.04289 12.375 8.25 12.375Z",fill:"white"}),o.jsx("path",{d:"M9.75 14.625C9.95711 14.625 10.125 14.4571 10.125 14.25C10.125 14.0429 9.95711 13.875 9.75 13.875C9.54289 13.875 9.375 14.0429 9.375 14.25C9.375 14.4571 9.54289 14.625 9.75 14.625Z",fill:"white"}),o.jsx("path",{d:"M12 14.625C12.2071 14.625 12.375 14.4571 12.375 14.25C12.375 14.0429 12.2071 13.875 12 13.875C11.7929 13.875 11.625 14.0429 11.625 14.25C11.625 14.4571 11.7929 14.625 12 14.625Z",fill:"white"}),o.jsx("path",{d:"M12 16.125C12.2071 16.125 12.375 15.9571 12.375 15.75C12.375 15.5429 12.2071 15.375 12 15.375C11.7929 15.375 11.625 15.5429 11.625 15.75C11.625 15.9571 11.7929 16.125 12 16.125Z",fill:"white"}),o.jsx("path",{d:"M15 14.625C15.2071 14.625 15.375 14.4571 15.375 14.25C15.375 14.0429 15.2071 13.875 15 13.875C14.7929 13.875 14.625 14.0429 14.625 14.25C14.625 14.4571 14.7929 14.625 15 14.625Z",fill:"white"}),o.jsx("path",{d:"M15 16.125C15.2071 16.125 15.375 15.9571 15.375 15.75C15.375 15.5429 15.2071 15.375 15 15.375C14.7929 15.375 14.625 15.5429 14.625 15.75C14.625 15.9571 14.7929 16.125 15 16.125Z",fill:"white"}),o.jsx("path",{d:"M13.5 15.375C13.7071 15.375 13.875 15.2071 13.875 15C13.875 14.7929 13.7071 14.625 13.5 14.625C13.2929 14.625 13.125 14.7929 13.125 15C13.125 15.2071 13.2929 15.375 13.5 15.375Z",fill:"white"}),o.jsx("path",{d:"M8.25 13.875C8.45711 13.875 8.625 13.7071 8.625 13.5C8.625 13.2929 8.45711 13.125 8.25 13.125C8.04289 13.125 7.875 13.2929 7.875 13.5C7.875 13.7071 8.04289 13.875 8.25 13.875Z",fill:"white"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_16841_17768",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),GK=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"size-4",...e,"aria-label":"TRUMP",children:o.jsx("image",{href:"/coins/trump.webp",width:"24",height:"24"})}),zK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 196 196",className:"size-4",...e,"aria-label":"USD1",children:[o.jsx("rect",{width:"196",height:"196",rx:"98",fill:"#262626"}),o.jsxs("g",{clipPath:"url(#clip0_10289_9115)",children:[o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.2115 99.1702C76.6214 99.2367 76.902 99.6507 76.8429 100.094C76.7802 100.538 76.3998 100.845 75.9899 100.778L54.2471 97.1521C56.5809 100.227 60.1444 102.763 63.7744 103.613L88.981 108.27L57.1201 125.76C61.0011 127.494 65.3918 127.158 68.9959 124.888L69.6569 124.445L81.4035 116.538C81.7284 116.32 82.1605 116.428 82.3636 116.779C82.5667 117.134 82.467 117.596 82.142 117.817L69.9523 126.023C73.3127 127.527 77.1347 127.039 80.0667 124.777L89.3465 117.034C89.6493 116.779 90.0888 116.842 90.3214 117.17C90.5577 117.499 90.4987 117.973 90.1959 118.228L80.724 126.13C84.0216 126.522 88.3717 125.527 91.0821 123.369C94.2172 120.656 98.1315 116.701 101.558 114.897C103.682 113.781 106.045 113.212 109.003 113.622C111.019 114.376 113.142 114.735 115.273 114.676C116.676 114.934 117.906 115.818 118.671 117.097C119.114 115.042 118.294 112.657 116.425 112.048C116.451 111.301 116.119 110.61 115.569 110.203L115.063 109.933L101.555 102.752C95.2143 99.3809 88.8739 96.0063 82.5334 92.6354C79.6864 91.2013 76.7137 90.0777 73.6635 89.283C71.8171 88.8025 70.1923 88.5438 68.3127 88.2185L22.6484 80.2939C25.1558 83.7572 28.4682 85.6608 32.4157 86.3372L64.6496 91.874C65.0594 91.9442 65.3364 92.3582 65.2699 92.8017C65.2035 93.2453 64.8231 93.5447 64.4132 93.4744L38.8263 89.0797C40.717 91.8038 43.4902 93.6408 46.581 94.2285L47.0722 94.3098L76.2115 99.1702Z",fill:"url(#paint0_linear_10289_9115)"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M157.738 89.0317L131.837 93.5779C131.438 93.6445 131.065 93.3451 131.006 92.9015C130.943 92.458 131.216 92.044 131.615 91.9775L164.739 86.1634C168 85.4501 170.895 83.3507 172.793 80.2939L125.452 88.8653C125.452 88.8653 125.452 88.8653 125.448 88.8653C121.652 89.5528 119.119 90.5064 115.67 92.3212L100.234 100.442L113.041 107.18C120.279 105.764 126.925 104.785 134.167 103.369C137.631 102.585 140.673 100.279 142.586 96.9562L120.463 100.841C120.064 100.907 119.691 100.608 119.632 100.164C119.57 99.7209 119.843 99.307 120.242 99.2404L148.986 94.1952C152.306 93.5188 155.367 91.7188 157.745 89.0354L157.738 89.0317Z",fill:"url(#paint1_linear_10289_9115)"})]}),o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"paint0_linear_10289_9115",x1:"22.6484",y1:"103.591",x2:"118.774",y2:"103.591",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"#C99A4F"}),o.jsx("stop",{offset:"0.25",stopColor:"#F5E17B"}),o.jsx("stop",{offset:"0.52",stopColor:"#F6F2C1"}),o.jsx("stop",{offset:"0.78",stopColor:"#F5E17B"}),o.jsx("stop",{offset:"1",stopColor:"#C99A4F"})]}),o.jsxs("linearGradient",{id:"paint1_linear_10289_9115",x1:"100.231",y1:"93.7369",x2:"172.789",y2:"93.7369",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"#C99A4F"}),o.jsx("stop",{offset:"0.25",stopColor:"#F5E17B"}),o.jsx("stop",{offset:"0.52",stopColor:"#F6F2C1"}),o.jsx("stop",{offset:"0.78",stopColor:"#F5E17B"}),o.jsx("stop",{offset:"1",stopColor:"#C99A4F"})]}),o.jsx("clipPath",{id:"clip0_10289_9115",children:o.jsx("rect",{width:"150.294",height:"46.9412",fill:"white",transform:"translate(22.6484 80.2939)"})})]})]}),qK=e=>o.jsxs("svg",{version:"1.1",id:"CIRCLE_OUTLINE_BLACK",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",x:"0px",y:"0px",viewBox:"0 0 512 512",xmlSpace:"preserve",...e,children:[o.jsx("style",{children:`
36			.st0 {
37				fill: #fdde00;
38			}
39			.st1 {
40				fill: #3c2d0c;
41			}
42			.st2 {
43				fill: #e78c19;
44			}
45			.st3 {
46				fill: #efb99d;
47			}
48			.st4 {
49				fill: #fbfbfb;
50			}
51			.st5 {
52				fill: #e72d36;
53			}
54		`}),o.jsx("circle",{className:"st0",cx:"256",cy:"256",r:"256"}),o.jsx("path",{className:"st1",d:`M131.4,181c0,0-13.2,16.7-8.8,92.2c0,0-28.9,74-19.1,111.8c9.8,37.7,48,35.8,48,35.8s61.3,53.9,108.3,6.4
55		c47.1-47.6-39.2-231.9-39.2-231.9l-10.8-63.7c0,0-11.8,9.3-10.3,70.6s-24,18.1-24,18.1L131.4,181z`}),o.jsx("path",{className:"st2",d:`M136.3,247.7l-16.2,45.6l-5.9,31.9c0,0-20.1,71.1,62.8,70.1c0,0,64.7,5
557.9,106.9,19.1l11.3-12.3l19.6-30.4
56		l32.4-96.6c0,0-10.3-66.2-75.5-93.6c0,0-5.4-2.9-15.2,1c0,0-27-60.8-44.1-53.4c0,0-14.7,7.8-2,67.7l-23,10.3
57		c0,0-25.2-47.8-48.5-38.2C117.2,177.6,136.3,247.7,136.3,247.7z`}),o.jsx("path",{className:"st3",d:`M220.1,158.9l2,26.5c0,0,1.5,15.2,17.6,9.8c4.6-1.5,8.6-4.7,8.2-9.9c-0.3-3.9-3-7.5-4.8-10.8
58		c-3.3-6.3-6-13-9.9-19.1c-2-3.1-6.1-10-10.6-9.2C222.6,146.2,219.2,145.2,220.1,158.9z`}),o.jsx("path",{className:"st3",d:`M149.3,188.7c0.3-0.2,6.9-8.5,20.6,11.7c13.7,20.2,12.3,17.6,12.3,17.6s7.4,8.1-7.7,18.5
59		c-3.3,2.4-6.9,4.4-10.7,6c-2.4,0.9-4.9,1.4-7.4,1.4c-2.9-0.1-4.2-1.6-4.9-4.3c-2.3-8.8-4.9-17.6-6.2-26.6
60		C144.3,206,142.3,193.2,149.3,188.7z`}),o.jsx("path",{className:"st4",d:"M308.5,229.4c0,4.8-7,8.7-15.7,8.7c-8.7,0-15.7-3.9-15.7-8.7s7.2-11.9,15.8-11.9S308.5,224.6,308.5,229.4z"}),o.jsx("ellipse",{transform:"matrix(0.4925 -0.8703 0.8703 0.4925 -121.8385 314.1253)",className:"st4",cx:"208.4",cy:"261.5",rx:"17.1",ry:"11"}),o.jsx("path",{className:"st4",d:`M240.2,306.7l42.9-22.3c0,0,53.4-27.9,66.4-6.4s0,54.4,0,54.4s-5.6,38.5-44.9,41.9l-21.1,2.9l-27,0.7
61		c0,0-43.4,2.5-75.3-21.1l-10.1-12.3c0,0-20.3-27.9-6.1-48s62.8,11,62.8,11S234.6,311.2,240.2,306.7z`}),o.jsx("circle",{className:"st5",cx:"337.5",cy:"185.2",r:"10.3"}),o.jsx("circle",{className:"st5",cx:"314.7",cy:"159.9",r:"10.3"}),o.jsx("circle",{className:"st5",cx:"278.2",cy:"151.8",r:"10.3"}),o.jsx("path",{className:"st5",d:`M286.3,78.8c2.2,30.4-2.2,57.9-9.6,57.9s-17.2-29.7-17.2-57.9c0-11.6,6.1-13.5,13.5-13.5
62		C280.5,65.3,285.5,67.2,286.3,78.8z`}),o.jsx("path",{className:"st5",d:`M354.5,97.7c-11.2,28.3-27.1,51.2-33.7,48c-6.6-3.2-2.6-34.2,9.7-59.6c5.1-10.5,11.4-9.5,18-6.3
63		C355.1,83.1,358.8,86.9,354.5,97.7z`}),o.jsx("path",{className:"st5",d:`M403.3,152.9c-24.7,17.9-50.3,28.7-54.2,22.4c-3.9-6.3,16.2-30.2,40.1-45.1c9.9-6.1,14.7-1.9,18.6,4.3
64		C411.6,140.8,412.7,146,403.3,152.9z`}),o.jsx("path",{d:`M238.2,276.8c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8
65		c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C252.5,278.8,246,276.2,238.2,276.8z`}),o.jsx("path",{d:`M292.4,263.4c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8
66		c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C306.8,265.4,300.2,262.8,292.4,263.4z`}),o.jsx("path",{d:`M310.2,279.3c0,0-21.5,6.3-20.2,18.4s27.2,18.4,27.2,18.4s7,2.8,11-3.9c4-6.6,9.9-15.6,8.3-28.5
67		C336.5,283.7,336,274.1,310.2,279.3z`})]}),YK=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e,children:o.jsxs("g",{fill:"none",children:[o.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"#F3BA2F"}),o.jsx("path",{fill:"#FFF",d:"M12.116 14.404L16 10.52l3.886 3.886l2.26-2.26L16 6l-6.144 6.144l2.26 2.26zM6 16l2.26-2.26L10.52 16l-2.26 2.26L6 16zm6.116 1.596L16 21.48l3.886-3.886l2.26 2.259L16 26l-6.144-6.144l-.003-.003l2.263-2.257zM21.48 16l2.26-2.26L26 16l-2.26 2.26L21.48 16zm-3.188-.002h.002V16L16 18.294l-2.291-2.29l-.004-.004l.004-.003l.401-.402l.195-.195L16 13.706l2.293 2.293z"})]})}),KK=e=>o.jsxs("svg",{"data-name":"86977684-12db-4850-8f30-233a7c267d11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000",width:"1em",height:"1em",...e,children:[o.jsx("path",{d:"M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z",fill:"#2775ca"}),o.jsx("path",{d:"M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z",fill:"#fff"}),o.jsx("path",{d:"M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zM1229.17 295.83c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z",fill:"#fff"})]}),XK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:[o.jsx("path",{d:"M10.0033 19.4759C11.1852 19.4759 12.3555 19.237 13.4475 18.7728C14.5394 18.3086 15.5316 17.6283 16.3673 16.7706C17.203 15.9129 17.8659 14.8947 18.3182 13.7741C18.7705 12.6536 19.0033 11.4525 19.0033 10.2396C19.0033 9.02665 18.7705 7.8256 18.3182 6.70501C17.8659 5.58441 17.203 4.56621 16.3673 3.70854C15.5316 2.85087 14.5394 2.17053 13.4475 1.70637C12.3555 1.2422 11.1852 1.0033 10.0033 1.0033C7.61638 1.0033 5.32719 1.9764 3.63936 3.70854C1.95154 5.44068 1.00333 7.78996 1.00333 10.2396C1.00333 12.6892 1.95154 15.0385 3.63936 16.7706C5.32719 18.5028 7.61638 19.4759 10.0033 19.4759Z",fill:"url(#paint0_linear_2166_92)"}
67),o.jsx("g",{filter:"url(#filter0_di_2166_92)",children:o.jsx("path",{d:"M10.0033 19.0033C11.1852 19.0033 12.3555 18.7705 13.4475 18.3182C14.5394 17.8659 15.5316 17.203 16.3673 16.3673C17.203 15.5315 17.8659 14.5394 18.3182 13.4474C18.7705 12.3555 19.0033 11.1852 19.0033 10.0033C19.0033 8.8214 18.7705 7.65107 18.3182 6.55914C17.8659 5.46721 17.203 4.47506 16.3673 3.63933C15.5316 2.80361 14.5394 2.14067 13.4475 1.68838C12.3555 1.23609 11.1852 1.0033 10.0033 1.0033C7.61638 1.0033 5.32719 1.95151 3.63936 3.63933C1.95154 5.32716 1.00333 7.61635 1.00333 10.0033C1.00333 12.3902 1.95154 14.6794 3.63936 16.3673C5.32719 18.0551 7.61638 19.0033 10.0033 19.0033Z",fill:"url(#paint1_linear_2166_92)"})}),o.jsx("g",{filter:"url(#filter1_i_2166_92)",children:o.jsx("path",{d:"M17.5031 10.0033C17.5031 11.9924 16.713 13.9001 15.3064 15.3066C13.8999 16.7131 11.9923 17.5033 10.0031 17.5033C8.01402 17.5033 6.10636 16.7131 4.69984 15.3066C3.29332 13.9001 2.50314 11.9924 2.50314 10.0033C2.50314 8.01417 3.29332 6.10652 4.69984 4.69999C6.10636 3.29347 8.01402 2.5033 10.0031 2.5033C11.9923 2.5033 13.8999 3.29347 15.3064 4.69999C16.713 6.10652 17.5031 8.01417 17.5031 10.0033Z",fill:"#D66C07"})}),o.jsx("path",{d:"M8.8526 5.06383C8.88379 5.07064 8.92161 5.08777 8.96588 5.11266C9.0108 5.13792 9.06549 5.17255 9.12994 5.21813C9.80691 5.69725 9.90537 6.43633 9.97272 6.98668C10.0474 7.5959 9.96474 8.15643 9.87799 8.55992C10.0015 8.51209 10.1255 8.46759 10.2471 8.42613L10.2579 8.42223C10.1781 8.38639 10.1114 8.32019 10.0753 8.2318C10.0008 8.04901 10.086 7.83876 10.2657 7.76305C10.2843 7.75522 10.3033 7.74891 10.3223 7.74449L10.2208 5.74449C10.2196 5.72114 10.2369 5.7009 10.2598 5.69957C10.2828 5.69836 10.3026 5.71619 10.3038 5.73961L10.4053 7.7357C10.5415 7.73783 10.6702 7.82121 10.7256 7.95738C10.7728 8.07345 10.7553 8.20075 10.6905 8.29723C11.3596 8.13374 12.265 8.04849 13.0118 8.40465L13.1592 8.4818L13.3458 8.60289C13.5277 8.73541 13.694 8.90305 13.8379 9.11168C14.6318 10.2629 14.1767 10.9984 13.6563 11.642C13.6563 11.642 13.176 11.4936 12.4337 11.6302C12.3994 11.6365 12.3649 11.6448 12.3301 11.6537L12.1436 11.7113C11.7128 11.8662 11.3139 12.1462 11.3116 12.1478C11.3168 12.1462 11.7564 12.0081 12.1993 11.9183L12.4688 11.8705C12.5563 11.8578 12.6403 11.8489 12.7169 11.8451C13.2928 11.8168 13.5817 11.8398 13.7598 11.9056C13.9308 11.9693 13.9775 12.0714 13.9024 12.2171C13.7132 12.5878 13.2792 12.7959 12.835 12.9711C12.8791 13.253 12.8883 13.9278 12.6544 14.3754C12.4164 14.8305 11.971 15.3639 11.2217 15.4418C10.8794 15.4775 10.4396 15.4235 9.50787 15.0482C9.42466 15.0147 9.3375 14.9786 9.24615 14.9398C8.52454 14.6328 7.71982 15.1789 7.46783 15.35C7.41381 15.3866 7.38547 15.406 7.38873 15.3959C7.62111 14.7757 7.84646 14.3236 8.32233 13.9349C8.68482 13.639 9.04824 
6713.5883 9.4483 13.64C9.54404 13.6524 9.64201 13.6599 9.73932 13.6634C9.70741 13.604 9.67736 13.5429 9.64947 13.4818C9.56862 13.4795 9.48461 13.4771 9.39752 13.474C9.06818 13.4623 8.77867 13.3794 8.47858 13.2943L8.44733 13.2865C8.22533 13.5059 8.03886 13.6154 7.89557 13.6566C7.81092 13.6809 7.73903 13.6818 7.68365 13.6654C7.62836 13.6489 7.58627 13.6128 7.57233 13.5638C7.56501 13.538 7.56729 13.5093 7.5733 13.4828C7.57952 13.4556 7.59036 13.4255 7.60358 13.3939C7.62706 13.3378 7.66067 13.2719 7.69635 13.2015L7.70612 13.183C7.69983 13.179 7.69295 13.1747 7.68561 13.1703L7.67877 13.1664L7.67389 13.1634L7.66998 13.1605C7.64696 13.1465 7.62025 13.1293 7.5899 13.1048C7.47342 13.0938 7.35067 13.0897 7.22076 13.0931C7.06866 13.0976 6.54735 13.2512 6.44147 13.8216C6.39347 14.0796 6.37285 14.3359 6.35455 14.5629C6.32486 14.9312 6.30068 15.2238 6.17584 15.3285C6.09928 15.3927 5.8727 15.1107 5.76276 14.7513C5.72284 14.6212 5.70091 14.5043 5.68463 14.4173C5.66209 14.2969 5.64987 14.2329 5.61432 14.265C5.18418 14.6524 4.84863 14.8623 4.75787 14.6996C4.6709 14.5417 4.99157 13.8464 5.32623 13.4173C5.47931 13.2212 5.63373 13.0885 5.76666 12.975C5.93203 12.8337 6.06361 12.721 6.11725 12.5492C6.25701 12.0995 6.43036 11.668 6.64069 11.266C6.63259 11.2147 6.62801 11.1621 6.62604 11.1127C6.62199 11.0105 6.62878 10.916 6.63776 10.8578C6.66035 10.7104 6.70809 10.5432 6.88873 10.3099C6.91804 10.2718 6.99421 10.1809 7.09479 10.0697C7.08832 10.067 7.08167 10.0639 7.07526 10.0609C6.95849 10.0064 6.86744 9.91983 6.81647 9.82164C6.76553 9.72344 6.75383 9.61172 6.79889 9.51207C6.88959 9.31169 7.1583 9.2593 7.38776 9.36559C7.39164 9.3674 7.39564 9.36955 7.39948 9.37145C7.34755 9.22371 7.37239 9.06318 7.48737 8.97008C7.64095 8.84587 7.87367 8.90822 8.00983 9.08141C8.04592 9.12756 8.07348 9.1793 8.09088 9.2318C8.10831 9.22301 8.12531 9.21449 8.14166 9.20738C8.23956 9.16489 8.32647 9.14942 8.40436 9.18004C8.4334 9.19135 8.45825 9.20742 8.47955 9.22789C8.5093 9.20978 8.53911 9.19164 8.5694 9.17418C8.78347 9.0507 9.04753 8.91721 9.33111 8.78942C9.25614 8.66969 9.11663 8.50642 8.83697 8.23277C8.78103 8.17821 8.66113 8.09309 8.52643 8.00133C8.48674 7.97429 8.44576 7.94655 8.40533 7.9193L8.14752 7.74156C8.12871 7.72801 8.11146 7.71251 8.10162 7.69371C8.08996 7.67137 8.09026 7.64714 8.1026 7.62535C8.11276 7.60749 8.12903 7.59453 8.14362 7.58531C8.15903 7.57559 8.17775 7.56602 8.19733 7.55699C8.21017 7.55108 8.22409 7.54475 8.23834 7.53844C8.31391 7.50497 8.40718 7.46358 8.48834 7.39391C8.66612 7.24122 8.84961 6.9707 8.95709 6.66735C9.06468 6.36363 9.09382 6.03449 8.97467 5.76305C8.95184 5.71102 8.92897 5.66014 8.90729 5.61168C8.87587 5.54147 8.84606 5.47567 8.82135 5.41735C8.78013 5.32002 8.74825 5.23515 8.74127 5.17613C8.73796 5.14811 8.73844 5.11211 8.7608 5.08629C8.78574 5.05755 8.82262 5.05732 8.8526 5.06383ZM10.6866 9.53258C10.6692 9.54802 10.6675 9.57547 10.6827 9.59313L11.1378 10.1224C11.1161 10.1242 11.0903 10.1264 11.0616 10.1283C10.9649 10.1347 10.8316 10.1398 10.6866 10.1371C10.5414 10.1344 10.3851 10.1232 10.2413 10.0961C10.097 10.0689 9.96866 10.0266 9.87701 9.96324C9.85798 9.95006 9.83141 9.95466 9.81842 9.97399C9.80544 9.99338 9.81108 10.0204 9.83014 10.0336C9.90911 10.0882 10.008 10.1276 10.1153 10.1556C10.1051 10.2074 10.0862 10.3286 10.1094 10.4379C10.1748 10.743 10.4584 10.9118 10.7227 10.8588C11.099 10.7835 11.0773 10.3389 11.0635 10.2132H11.0665C11.1157 10.21 11.1559 10.2061 11.1837 10.2035C11.1975 10.2022 11.2085 10.2013 11.2159 10.2005L11.2247 10.1996L11.2266 10.1986H11.2276C11.2428 10.1966 11.2562 10.1868 11.2618 10.1722C11.2673 10.1576 11.264 10.1411 11.254 10.1293L10.7452 9.53649C10.73 9.5192 10.7038 9.5175 10.6866 9.53258ZM10.9258 10.2201C10.955 10.2445 10.9775 10.2794 10.9883 10.3207C11.0139 10.419 10.9618 10.5173 10.8721 10.5414C10.7825 10.5645 10.6891 10.5042 10.6641 10.4066C10.6458 10.3364 10.6675 10.2662 10.7139 10.223C10.7895 10.2239 10.8612 10.2224 10.9258 10.2201Z",fill:"white"}),o.jsxs("defs",{children:[o.jsxs("filter",{id:"filter0_di_2166_92",x:"1.00333",y:"1.0033",width:"18",height:"18.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[o.jsx("feFlood",{floodOpacity:"0",result:"Backgroun
67dImageFix"}),o.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.jsx("feOffset",{dy:"0.5"}),o.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),o.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.704167 0 0 0 0 0.344328 0 0 0 0 0 0 0 0 1 0"}),o.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2166_92"}),o.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2166_92",result:"shape"}),o.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.jsx("feOffset",{dy:"0.5"}),o.jsx("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.75 0"}),o.jsx("feBlend",{mode:"overlay",in2:"shape",result:"effect2_innerShadow_2166_92"})]}),o.jsxs("filter",{id:"filter1_i_2166_92",x:"2.50314",y:"2.5033",width:"15",height:"15",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[o.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),o.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.jsx("feOffset",{dy:"0.5"}),o.jsx("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),o.jsx("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_2166_92"})]}),o.jsxs("linearGradient",{id:"paint0_linear_2166_92",x1:"10.0033",y1:"1.0033",x2:"10.0033",y2:"19.4759",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"#FFC839"}),o.jsx("stop",{offset:"1",stopColor:"#FF8819"})]}),o.jsxs("linearGradient",{id:"paint1_linear_2166_92",x1:"10.0033",y1:"1.0033",x2:"10.0033",y2:"19.0033",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"#FFC839"}),o.jsx("stop",{offset:"1",stopColor:"#FF8819"})]})]})]}),JK=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:[o.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"#26A17B"}),o.jsx("text",{x:"16",y:"18",fill:"#FFFFFF","font-size":"24","font-family":"Arial, sans-serif","font-weight":"bold","text-anchor":"middle","dominant-baseline":"middle",children:"$"})]}),QK=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#eur-clip0_4_7151)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#0052B4"}),o.jsx("path",{d:"M256.001 100.174L264.29 125.683H291.11L269.411 141.448L277.7 166.957L256.001 151.191L234.301 166.957L242.59 141.448L220.891 125.683H247.712L256.001 100.174Z",fill:"#FFDA44"}),o.jsx("path",{d:"M145.813 145.814L169.713 157.99L188.678 139.026L184.481 165.516L208.38 177.693L181.889 181.889L177.693 208.381L165.516 184.482L139.026 188.679L157.991 169.714L145.813 145.814Z",fill:"#FFDA44"}),o.jsx("path",{d:"M100.175 256L125.684 247.711V220.89L141.448 242.59L166.958 234.301L151.191 256L166.958 277.699L141.448 269.411L125.684 291.11V264.289L100.175 256Z",fill:"#FFDA44"}),o.jsx("path",{d:"M145.813 366.186L157.99 342.286L139.026 323.321L165.517 327.519L177.692 303.62L181.889 330.111L208.379 334.307L184.483 346.484L188.678 372.974L169.713 354.009L145.813 366.186Z",fill:"#FFDA44"}),o.jsx("path",{d:"M256.001 411.826L247.711 386.317H220.891L242.591 370.552L234.301 345.045L256.001 360.809L277.7 345.045L269.411 370.552L291.11 386.317H264.289L256.001 411.826Z",fill:"#FFDA44"}),o.jsx("path",{d:"M366.187 366.186L342.288 354.01L323.322 372.975L327.519 346.483L303.622 334.307L330.112 330.111L334.308 303.62L346.484 327.519L372.974 323.321L354.009 342.288L366.187 366.186Z",fill:"#FFDA44"}),o.jsx("path",{d:"M411.826 256L386.317 264.289V291.11L370.552 269.41L345.045 277.699L360.81 256L345.045 234.301L370.553 242.59L386.317 220.89V247.712L411.826 256Z",fill:"#FFDA44"}),o.jsx("path",{d:"M366.187 145.814L354.01 169.714L372.975 188.679L346.483 184.481L334.308 208.38L330.112 181.889L303.622 177.692L327.519 165.516L323.322 139.027L342.289 157.991L366.187 145.814Z",fill:"#FFDA44"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"eur-clip0_4_7151",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),eX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#usd-clip0_1_8071)",children:[o.jsx("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M9.56445 9.99934H19.9992C19.9992 9.09676 19.8789 8.22238 19.6547 7.39062H9.56445V9.99934Z",fill:"#D80027"}),o.jsx("path",{d:"M9.56445 4.78254H18.5315C17.9193 3.78363 17.1366 2.9007 16.2241 2.17383H9.56445V4.78254Z",fill:"#D80027"}),o.jsx("path",{d:"M9.99828 20.0001C12.3518 20.0001 14.5149 19.1866 16.2231 17.8262H3.77344C5.48164 19.1866 7.6448 20.0001 9.99828 20.0001Z",fill:"#D80027"}),o.jsx("path",{d:"M1.46699 15.2181H18.5315C19.023 14.4162 19.4041 13.5396 19.6548 12.6094H0.34375C0.594414 13.5396 0.975547 14.4162 1.46699 15.2181Z",fill:"#D80027"}),o.jsx("path",{d:"M4.63219 1.56164H5.54348L4.69582 2.17746L5.01961 3.17391L4.17199 2.55809L3.32437 3.17391L3.60406 2.31309C2.85773 2.93477 2.20359 3.66313 1.66453 4.47469H1.95652L1.41695 4.86668C1.33289 5.00691 1.25227 5.14937 1.175 5.29395L1.43266 6.08695L0.951953 5.7377C0.832461 5.99086 0.723164 6.24973 0.624922 6.51398L0.908789 7.38773H1.95652L1.10887 8.00356L1.43266 9L0.585039 8.38418L0.
670773047 8.75309C0.0264844 9.1616 0 9.57769 0 10H10C10 4.47719 10 3.82609 10 0C8.02453 0 6.18301 0.573047 4.63219 1.56164ZM5.01961 9L4.17199 8.38418L3.32437 9L3.64816 8.00356L2.80051 7.38773H3.84824L4.17199 6.39129L4.49574 7.38773H5.54348L4.69582 8.00356L5.01961 9ZM4.69582 5.09051L5.01961 6.08695L4.17199 5.47113L3.32437 6.08695L3.64816 5.09051L2.80051 4.47469H3.84824L4.17199 3.47824L4.49574 4.47469H5.54348L4.69582 5.09051ZM8.60656 9L7.75895 8.38418L6.91133 9L7.23512 8.00356L6.38746 7.38773H7.4352L7.75895 6.39129L8.0827 7.38773H9.13043L8.28277 8.00356L8.60656 9ZM8.28277 5.09051L8.60656 6.08695L7.75895 5.47113L6.91133 6.08695L7.23512 5.09051L6.38746 4.47469H7.4352L7.75895 3.47824L8.0827 4.47469H9.13043L8.28277 5.09051ZM8.28277 2.17746L8.60656 3.17391L7.75895 2.55809L6.91133 3.17391L7.23512 2.17746L6.38746 1.56164H7.4352L7.75895 0.565195L8.0827 1.56164H9.13043L8.28277 2.17746Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"usd-clip0_1_8071",children:o.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"white"})})})]}),tX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("mask",{id:"inr-mask0_11218_11192",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:o.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"url(#inr-paint0_linear_11218_11192)"})}),o.jsxs("g",{mask:"url(#inr-mask0_11218_11192)",children:[o.jsx("circle",{cx:"10",cy:"10",r:"12",fill:"#FAFAFB"}),o.jsx("rect",{x:"-2.85742",y:"-1.85718",width:"26.1429",height:"8.57143",fill:"#E78E3C"}),o.jsx("circle",{cx:"10",cy:"10",r:"1.5",stroke:"#3570E3"}),o.jsx("rect",{x:"-2.85742",y:"12.8574",width:"26.1429",height:"8.57143",fill:"#15C183"})]}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"inr-paint0_linear_11218_11192",x1:"3.19441",y1:"2.49997",x2:"17.7778",y2:"18.6111",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{stopColor:"#FFC300"}),o.jsx("stop",{offset:"0.411458",stopColor:"#F36A60"}),o.jsx("stop",{offset:"1",stopColor:"#E600D2"})]})})]}),nX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#try-clip0_11218_11256)",children:[o.jsx("path",{d:"M12 23.25C18.2132 23.25 23.25 18.2132 23.25 12C23.25 5.7868 18.2132 0.75 12 0.75C5.7868 0.75 0.75 5.7868 0.75 12C0.75 18.2132 5.7868 23.25 12 23.25Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M15.4875 14.625L15.525 12.6L13.5 12L15.525 11.4L15.4875 9.375L16.725 10.9875L18.75 10.3875L17.5125 12L18.75 13.6125L16.725 13.0125L15.4875 14.625Z",fill:"white"}),o.jsx("path",{d:"M12.45 16.5C9.975 16.5 7.9875 14.475 7.9875 12C7.9875 9.525 9.975 7.5 12.45 7.5C13.3875 7.5 14.25 7.8 15 8.2875C13.9875 7.125 12.4875 6.375 10.8 6.375C7.725 6.375 5.25 8.8875 5.25 12C5.25 15.1125 7.725 17.625 10.8 17.625C12.4875 17.625 13.9875 16.875 15 15.7125C14.2875 16.2 13.425 16.5 12.45 16.5Z",fill:"white"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"try-clip0_11218_11256",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),sX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#aed-clip0_12484_10146)",children:[o.jsx("path",{d:"M10.9996 0.6875C8.86931 0.690209 6.7921 1.35261 5.05348 2.58366C3.31485 3.81472 2.00015 5.554 1.29004 7.5625H20.7108C20.0006 5.55376 18.6856 3.8143 16.9467 2.58323C15.2078 1.35215 13.1302 0.689899 10.9996 0.6875Z",fill:"#479951"}),o.jsx("path",{d:"M1.29039 7.5625C0.895594 8.66576 0.69171 9.82824 0.6875 11C0.691227 12.1717 0.894602 13.3342 1.28889 14.4375H20.7096C21.1044 13.3342 21.3083 12.1718 21.3125 11C21.3088 9.82832 21.1054 8.66585 20.7111 7.5625H1.29039Z",fill:"white"}),o.jsx("path",{d:"M1.28906 14.4375C1.99926 16.4462 3.31419 18.1857 5.05312 19.4168C6.79204 20.6478 8.86959 21.3101 11.0002 21.3125C13.1305 21.3098 15.2077 20.6474 16.9463 19.4163C18.685 18.1853 19.9997 16.446 20.7098 14.4375H1.28906Z",fill:"#222222"}),o.jsx("path",{d:"M7.5625 1.28906C5.55376 1.99926 3.8143 3.31419 2.58323 5.05312C1.35215 6.79204 0.689899 8.86959 0.6875 11.0002C0.690209 13.1305 1.35261 15.2077 2.58366 16.9463C3.81472 18.685 5.554 19.9997 7.5625 20.7098V1.28906Z",fill:"#E74C3C"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"aed-clip0_12484_10146",children:o.jsx("rect",{width:"22",height:"22",fill:"white"})})})]}),rX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#mxn-clip0_12484_10309)",children:[o.jsx("path",{d:"M23.25 12.0002C23.25 7.08769 20.1375 2.9252 15.75 1.3877V22.6127C20.1375 21.0752 23.25 16.9127 23.25 12.0002Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M0.75 12.0002C0.75 16.9127 3.9 21.0752 8.25 22.6127V1.3877C3.9 2.9252 0.75 7.08769 0.75 12.0002Z",fill:"#75A843"}),o.jsx("path",{d:"M15.75 1.3875C14.5875 0.975 13.3125 0.75 12 0.75C10.6875 0.75 9.4125 0.975 8.25 1.3875V22.6125C9.4125 23.025 10.6875 23.25 12 23.25C13.3125 23.25 14.5875 23.025 15.75 22.6125V1.3875Z",fill:"white"}),o.jsx("path",{d:"M15.2624 11.8871C15.2249 11.7746 15.1874 11.9246 15.1874 11.9621C15.1874 11.8496 15.1499 11.7746 15.0749 11.6621C14.9624 11.7746 14.9249 11.9246 14.9249 12.0746C14.8874 11.9621 14.8499 11.8496 14.7374 11.8121C14.8124 11.9246 14.7749 11.9996 14.7749 12.1121C14.7749 12.2621 14.8874 12.3746 14.8874 12.5246C14.8874 12.6746 14.8
67124 12.7871 14.6999 12.8996V12.7871C14.3249 12.9371 14.3999 13.1246 14.3999 13.4621C14.3999 13.7996 14.2124 13.7246 13.9874 13.9121C14.0249 13.8371 14.0249 13.7246 13.9874 13.6496C13.9874 13.8746 13.6874 13.8746 13.6499 14.0621C13.6124 14.1371 13.6499 14.2871 13.5374 14.3246C13.4624 14.3621 13.3499 14.4371 13.3499 14.5121C13.2749 14.4746 13.1999 14.4746 13.0874 14.4746C13.1249 14.4371 13.1624 14.4371 13.1999 14.3996C12.8249 14.2121 12.7124 14.6246 12.3749 14.6621C12.2624 14.6621 11.9999 14.5121 11.9999 14.6621C12.3374 14.6621 12.4874 14.9621 12.7499 14.9621C12.9749 14.9621 13.1624 14.7746 13.3874 14.7746C13.3499 14.7746 13.2374 14.6996 13.1249 14.6996C13.3124 14.5871 13.4249 14.3621 13.6499 14.3621C14.0249 14.3621 14.2124 14.2871 14.3249 13.9121C14.2874 13.9121 14.2499 13.9121 14.2124 13.9496C14.2124 13.7996 14.3624 13.6121 14.5124 13.5371C14.8874 13.4621 14.8499 13.1621 15.0749 12.8996C14.9999 12.8996 14.9249 12.9371 14.8499 13.0121C14.8499 12.7871 14.8124 12.5621 14.9999 12.4121C15.3749 12.2246 15.3374 12.1496 15.2624 11.8871ZM8.73741 11.8871C8.66241 12.1871 8.62491 12.2621 8.92491 12.4496C9.14991 12.5996 9.07491 12.8246 9.07491 13.0496C8.99991 12.9746 8.96241 12.9371 8.84991 12.9371C9.07491 13.1621 9.03741 13.4996 9.41241 13.5746C9.52491 13.6496 9.71241 13.8371 9.71241 13.9871C9.67491 13.9871 9.63741 13.9496 9.59991 13.9496C9.71241 14.3246 9.89991 14.3996 10.2749 14.3996C10.4999 14.3996 10.6124 14.6246 10.7999 14.7371C10.6874 14.7371 10.5749 14.7746 10.5374 14.8121C10.7624 14.8121 10.9499 15.0371 11.1749 14.9996C11.4374 14.9996 11.6249 14.6996 11.9249 14.6996C11.9249 14.5496 11.6624 14.6996 11.5499 14.6996C11.2499 14.6246 11.1374 14.2496 10.7249 14.3996C10.7624 14.4371 10.7999 14.4746 10.8374 14.4746C10.7624 14.4746 10.6499 14.4371 10.5749 14.5121C10.5374 14.4371 10.4624 14.3621 10.3874 14.3246C10.3124 14.2496 10.3124 14.1371 10.2749 14.0621C10.1999 13.8746 9.93741 13.8371 9.93741 13.6496C9.89991 13.7246 9.89991 13.8371 9.93741 13.9121C9.71241 13.7246 9.52491 13.7996 9.52491 13.4621C9.52491 13.1621 9.59991 12.9371 9.22491 12.7871V12.8996C9.11241 12.7871 9.03741 12.7121 9.03741 12.5246C9.03741 12.3746 9.18741 12.2621 9.14991 12.1121C9.14991 11.9996 9.11241 11.9246 9.18741 11.8121C9.07491 11.8496 9.03741 11.9621 8.99991 12.0746C8.99991 11.9246 8.96241 11.7746 8.84991 11.6621C8.81241 11.7371 8.77491 11.8496 8.73741 11.9621C8.77491 11.8871 8.73741 11.7746 8.73741 11.8871Z",fill:"#75A843"}),o.jsx("path",{d:"M13.0129 14.1373C12.9379 14.1373 12.9004 14.0623 12.8629 14.0248C12.8629 13.9498 13.1629 13.8748 13.2004 13.8748V13.7998C12.7129 13.9498 11.2504 14.0623 10.9504 13.5373C10.8004 13.7623 10.5379 13.6123 10.2754 13.4248C10.3129 13.4998 10.4629 13.8748 10.4629 13.8373C10.5379 13.8748 11.0254 13.9873 11.0254 14.0998L10.9129 14.2123C11.7004 14.4748 12.1879 14.5498 13.0129 14.1373Z",fill:"#428BC1"}),o.jsx("path",{d:"M12.525 14.1372C12.5625 14.0997 12.5625 14.0622 12.5625 13.9872L12.525 13.8747C12.6 13.7997 12.525 13.6122 12.4125 13.6497C12.3375 13.6872 12.375 13.6872 12.3 13.6497C12.2625 13.6497 12.2625 13.6122 12.225 13.6122H11.55C11.475 13.6122 11.475 13.5747 11.4 13.5747C11.325 13.5372 11.2875 13.6122 11.25 13.6497C11.25 13.7247 11.2875 13.7247 11.2875 13.7622C11.2875 13.7997 11.25 13.8372 11.25 13.9122C11.25 13.9872 11.2875 14.0247 11.325 14.0622C11.175 14.1747 11.325 14.3622 11.475 14.2497C11.5125 14.3247 11.625 14.3247 11.7375 14.3247H12.15C12.225 14.3247 12.375 14.3622 12.4125 14.2497C12.525 14.4372 12.675 14.2122 12.525 14.1372Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M13.7254 13.1624C13.4254 12.7874 13.2754 13.3499 12.9379 13.3124C13.0129 12.8624 12.3379 13.0124 12.1504 13.1249C12.1879 13.0874 12.2254 13.0124 12.2629 12.9374C12.1129 12.9374 11.9254 13.0124 11.8129 12.8999C11.5879 12.7499 11.2879 12.6749 11.1004 12.9374C10.9504 12.7124 10.5379 12.4874 10.3129 12.7124C10.3129 12.4874 10.0879 12.1499 9.82536 12.1874C9.52536 12.2249 9.63786 12.5999 9.78786 12.7499C9.90036 12.8624 10.0504 12.8999 10.2004 12.8999C10.2004 12.9749 10.2379 13.0124 10.2754 13.0499C10.4629 13.1999 10.8379 13.2374 11.0254 13.0874C11.0254 13.4624 11.7754 13.4624 11.9629 13.2749C11.8879 13.4624 11.8129 13.8374 12.0754 13.8374C12.3004 13.8374 12.2254 13.6124 12.4129 13.5374C12.5629 13.4624 12.7504 13.4249 12.9004 13.4999C13.1629 13.6499 13.9879 13.6124 13.7254 13.1624Z",fill:"#75A843"}),o.jsx("path",{d:"M10.6497 12.2251C10.6122 12.1501 10.5372 12.0751 10.5372 12.0751C10.3872 12.1126 10.3872 12.0001 10.3497 11.8876C10.3122 11.7001 10.0497 11.6251 10.0497 11.4751C10.0497 11.3251 10.1997 11.1751 10.0872 11.0251C9.97468 10.8751 9.78719 10.8001 9.78719 10.8751C9.74969 10.9501 9.93719 10.9501 9.93719 11.1376C9.93719 11.3626 9.71219 11.5501 9.97469 11.7376C10.1247 11.9626 10.1247 12.3751 10.3872 12.3751C10.4997 12.3751 10.6122 12.3376 10.6497 12.2251Z",fill:"#75A843"}),o.jsx("path",{d:"M11.2126 12.0378C11.1376 11.8878 11.2126 11.6628 11.0626 11.5503C10.8751 11.4003 10.5001 11.7003 10.4626 11.3253C10.462
676 11.2503 10.8751 10.8003 10.9501 10.7628C11.0626 10.6128 11.0251 10.3503 10.9126 10.2753C10.7626 10.2003 10.7251 10.2753 10.6126 10.4253C10.6501 10.4628 10.8001 10.5378 10.8001 10.5753C10.6876 10.8378 10.3501 10.8753 10.2751 11.1378C10.2001 11.3253 10.2376 11.6253 10.4251 11.7378C10.5376 11.8128 10.6126 11.8128 10.7251 11.8128C11.0626 11.7753 10.8751 11.8503 10.9126 11.9253C10.9126 12.0003 11.0251 12.2628 11.2126 12.0378ZM10.0876 10.2003C10.0876 10.4253 10.3126 10.3878 10.4626 10.3503C10.4626 10.2753 10.4626 10.2003 10.5001 10.1253C10.4251 10.1628 10.3126 10.1628 10.2751 10.1253C10.1626 10.0503 10.5376 9.90033 10.5001 9.90033C10.5001 9.90033 10.1251 10.0878 10.2751 9.86282C10.3126 9.78782 10.3876 9.71283 10.4251 9.63783C10.4626 9.56283 10.3126 9.63783 10.3126 9.63783C10.2751 9.63783 10.2376 9.63782 10.2001 9.67532C9.97513 9.86282 10.0501 9.97533 10.0876 10.2003Z",fill:"#75A843"}),o.jsx("path",{d:"M14.0626 10.2C13.8751 9.9375 13.1626 9.075 12.1501 9C12.0376 9 11.7376 9.1125 11.6251 9.15C11.2876 9.375 12.0001 9.5625 12.0376 9.7125C12.0376 9.7875 12.0751 9.825 12.0751 9.9C11.9626 9.7125 11.8501 9.6 11.8126 9.525C11.6251 9.6 11.3251 9.4875 11.2876 9.3C11.2501 9.375 11.2501 9.4125 11.1751 9.4875C11.1751 9.375 11.1376 9.375 11.1001 9.3C11.1001 9.4125 11.1001 9.5625 10.9876 9.6C11.0251 9.525 10.9876 9.45 10.9501 9.375C10.9501 9.4875 10.9501 9.5625 10.8751 9.6375C10.9126 9.5625 10.8376 9.525 10.8376 9.45C10.8001 9.75 10.3876 9.8625 10.8001 9.975C10.9501 10.0125 11.0251 9.975 11.1751 10.05C11.2126 10.0875 11.2876 10.1625 11.2876 10.125C11.2876 10.1625 11.1376 10.3125 11.2501 10.35C11.2126 10.3875 11.1001 10.6125 11.1001 10.6125C11.2126 10.6125 11.1376 10.6875 11.0626 10.7625C10.9501 10.95 11.0626 11.1375 11.1001 11.3625C11.1001 11.2875 11.2126 11.4 11.2126 11.5125C11.2126 11.6625 11.3626 11.7375 11.4001 11.85C11.2126 11.6625 11.1751 11.85 11.4001 11.9625C11.2126 11.9625 11.1751 12.075 11.3626 12.15C10.9126 12.15 11.2876 12.3375 11.3626 12.375C11.6626 12.45 11.8876 12.225 11.8876 12.1875C11.8876 12.1875 12.4876 12.7875 12.5251 12.7875C12.5626 12.7875 12.8626 12.6375 12.9376 12.7125C13.0126 12.825 13.0876 12.7125 13.1626 12.75C13.2376 12.825 13.5376 12.75 13.6126 12.7125C13.6501 12.7125 14.0251 12.6375 13.9501 12.5625C13.7626 12.4125 13.5376 12.2625 13.3501 12.1125C13.1626 11.9625 12.9751 11.85 12.8251 11.7C12.7501 11.625 12.7501 11.475 12.7126 11.3625C13.0501 11.7 13.3876 11.8875 13.3501 11.25C13.5751 11.4375 14.0251 12.4875 14.0626 12.4875C14.1751 12.4875 14.0626 11.3625 14.0626 11.25C14.2126 11.4 14.2126 12.6375 14.2501 12.6375C14.4376 12.675 14.7001 11.025 14.0626 10.2Z",fill:"#89664C"}),o.jsx("path",{d:"M11.3623 12.112C11.3248 12.112 11.1373 11.8495 11.1373 11.812C11.2498 12.262 10.7998 11.9995 10.9123 11.812C10.7623 11.7745 10.3873 11.9995 10.5373 12.2245C10.4623 12.3745 11.0623 12.262 11.0998 12.187C11.2498 12.5245 11.6248 12.1495 11.3623 12.112ZM13.1248 13.237C13.3123 12.9745 12.5248 12.8995 12.5998 12.5995C12.4873 12.6745 12.3373 12.937 12.1873 12.862C12.1123 12.8245 11.8123 13.012 11.9623 13.1245C11.9623 12.9745 12.0373 13.087 12.1498 13.0495C12.1123 13.162 11.9998 13.2745 12.1873 13.3495C12.1123 13.1245 12.4123 13.237 12.3748 13.1245C12.2998 13.0495 12.6373 13.0495 12.6748 13.0495C12.7873 13.0495 13.1623 13.162 13.0123 13.2745C13.0123 13.2745 13.0873 13.2745 13.1248 13.237ZM10.6123 10.012C10.5748 10.087 10.4248 10.1995 10.4248 10.312C10.4248 10.387 10.6123 10.5745 10.6873 10.462C10.4623 10.312 10.7248 10.1995 10.8373 10.1995C10.8748 10.1995 10.8748 10.2745 10.8748 10.2745C10.9123 10.312 11.2123 10.1995 11.1748 10.1245C11.2123 9.97454 10.7248 9.97454 10.6123 10.
67012Z",fill:"#FFCE31"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"mxn-clip0_12484_10309",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),aX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#vnd-clip0_14424_16143)",children:[o.jsx("path",{d:"M12 23.25C18.2132 23.25 23.25 18.2132 23.25 12C23.25 5.7868 18.2132 0.75 12 0.75C5.7868 0.75 0.75 5.7868 0.75 12C0.75 18.2132 5.7868 23.25 12 23.25Z",fill:"#F42F4C"}),o.jsx("path",{d:"M12 14.625L15.7125 17.25L14.325 12.975L18 10.2H13.425L12 6L10.6125 10.2H6L9.675 12.975L8.2875 17.25L12 14.625Z",fill:"#FFE62E"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"vnd-clip0_14424_16143",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),oX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#ngn-clip0_14807_14814)",children:[o.jsx("path",{d:"M0.75 12.0002C0.75 16.9127 3.9 21.0752 8.25 22.6127V1.3877C3.9 2.9252 0.75 7.08769 0.75 12.0002ZM23.25 12.0002C23.25 7.08769 20.1375 2.9252 15.75 1.3877V22.6127C20.1375 21.0752 23.25 16.9127 23.25 12.0002Z",fill:"#009A49"}),o.jsx("path",{d:"M8.25 22.6125C9.4125 23.025 10.6875 23.25 12 23.25C13.3125 23.25 14.5875 23.025 15.75 22.6125V1.3875C14.5875 0.975 13.3125 0.75 12 0.75C10.6875 0.75 9.4125 0.975 8.25 1.3875V22.6125Z",fill:"#F9F9F9"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"ngn-clip0_14807_14814",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),iX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{id:"pen-24-peru",clipPath:"url(#pen-clip0_16071_6033)",children:[o.jsx("path",{id:"pen-Vector",d:"M23.25 11.9992C23.25 7.08672 20.1375 2.92422 15.75 1.38672V22.6117C20.1375 21.0742 23.25 16.9117 23.25 11.9992ZM0.75 11.9992C0.75 16.9117 3.9 21.0742 8.25 22.6117V1.38672C3.9 2.92422 0.75 7.08672 0.75 11.9992Z",fill:"#ED4C5C"}),o.jsx("path",{id:"pen-Vector_2",d:"M15.75 1.3875C14.5875 0.975 13.3125 0.75 12 0.75C10.6875 0.75 9.4125 0.975 8.25 1.3875V22.6125C9.4125 23.025 10.6875 23.25 12 23.25C13.3125 23.25 14.5875 23.025 15.75 22.6125V1.3875Z",fill:"#F9F9F9"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"pen-clip0_16071_6033",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),lX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{id:"cop-24-colombia",clipPath:"url(#cop-clip0_16071_1337)",children:[o.jsx("path",{id:"cop-Vector",d:"M23.25 12H0.75C0.75 14.0625 1.3125 15.975 2.25 17.625H21.75C22.725 15.975 23.25 14.0625 23.25 12Z",fill:"#2A5F9E"}),o.jsx("path",{id:"cop-Vector_2",d:"M12 0.75C5.8125 0.75 0.75 5.775 0.75 12H23.25C23.25 5.775 18.225 0.75 12 0.75Z",fill:"#FFE62E"}),o.jsx("path",{id:"cop-Vector_3",d:"M12 23.25C16.1625 23.25 19.8 21 21.75 17.625H2.25C4.2375 21 7.8375 23.25 12 23.25Z",fill:"#ED4C5C"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"cop-clip0_16071_1337",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),cX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{id:"clp-24-chile",clipPath:"url(#clp-clip0_16071_3070)",children:[o.jsx("path",{id:"clp-Vector",d:"M0.75 12C0.75 18.225 5.775 23.25 12 23.25C18.225 23.25 23.25 18.225 23.25 12H0.75Z",fill:"#ED4C5C"}),o.jsx("path",{id:"clp-Vector_2",d:"M12 0.75C18.225 0.75 23.25 5.775 23.25 12H12V0.75Z",fill:"#F9F9F9"}),o.jsx("path",{id:"clp-Vector_3",d:"M12 0.75C5.775 0.75 0.75 5.775 0.75 12H12V0.75Z",fill:"#2A5F9E"}),o.jsx("path",{id:"clp-Vector_4",d:"M7.5 8.1375L9.3375 9.375L8.6625 7.3875L10.5 6.075H8.2125L7.5 4.125L6.825 6.075H4.5L6.3375 7.3875L5.6625 9.375L7.5 8.1375Z",fill:"#F9F9F9"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clp-clip0_16071_3070",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),dX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M22.4927 11.9736V12.0005C22.4927 17.7874 17.8042 22.4936 12.0005 22.4936C6.19122 22.4936 1.50732 17.7809 1.50732 12.0005V11.9736L12.4412 10.4336L22.4927 11.9736Z",fill:"white"}),o.jsx("path",{d:"M22.4927 11.9731H1.50732C1.52214 6.21772 6.18751 1.50781 12.0005 1.50781C17.8227 1.50781 22.4778 6.227 22.4927 11.9731Z",fill:"#F42525"}),o.jsx("path",{d:"M22.4927 11.9736V12.0005C22.4927 17.7874 17.8042 22.4936 12.0005 22.4936C6.19122 22.4936 1.50732 17.7809 1.50732 12.0005V11.9736L12.4412 10.4336L22.4927 11.9736Z",fill:"#E1E1E1"}),o.jsx("path",{d:"M22.4927 11.9731H1.50732C1.52214 6.21772 6.18751 1.50781 12.0005 1.50781C17.8227 1.50781 22.4778 6.227 22.4927 11.9731Z",fill:"#F42525"})]}),uX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#kes-clip0_17490_20728)",children:[o.jsx("path",{d:"M12 0.75C7.3875 0.75 3.4125 3.525 1.6875 7.5H22.3125C20.5875 3.525 16.6125 0.75 12 0.75Z",fill:"#3E4347"}),o.jsx("path",{d:"M12 23.25C16.6125 23.25 20.5875 20.475 22.3125 16.5H1.6875C3.4125 20.475 7.3875 23.25 12 23.25Z",fill:"#75A843"}),o.jsx("path",{d:"M23.25 12C23.25 10.95 23.1 9.9375 22.8375 9H1.1625C0.9 9.9375 0.75 10.95 0.75 12C0.75 13.05 0.9 14.0625 1.1625 15H22.8375C23.1 14.0625 23.25 13.05 23.25 12Z",fill:"#C94747"}),o.jsx("path",{d:"M1.38748 15.75C1.46248 16.0125 1.57498 16.2375 1.68748 16.5H22.3125C22.425 16.2375 22.5375 16.0125 22.6125 15.75C22.6875 15.4875 22.7625 15.2625 22.8375 15H1.16248C1.23748 15.2625 1.31248 15.4875 1.38748 15.75ZM22.6125 8.25C22.5375 7.9875 22.425 7.7625 22.3125 7.5H1.68748C1.57498 7.7625 1.46248 7.9875 1.38748 8.25C1.31248 8.5125 1.23748 8.7375 1.16248 9H22.8375C22.7625 8.7375 22.6875 8.5125 22.6125 8.25Z",fill:"white"}),o.jsx("path",{d:"M7.57495 19.6141L7.83745 19.7641L15.075 7.23906C15.4875 7.12656 15.7125 6.71406 15.975 6.33906C16.125 6.07656 16.7625 4.98906 17.025 3.601
6756C15.9375 4.53906 15.3375 5.58906 15.1875 5.88906C14.9625 6.30156 14.7375 6.67656 14.85 7.12656L7.57495 19.6141Z",fill:"white"}),o.jsx("path",{d:"M16.425 19.6141L16.1625 19.7641L8.92498 7.23906C8.51248 7.12656 8.28748 6.71406 8.02498 6.33906C7.87498 6.07656 7.23748 4.98906 6.97498 3.60156C8.06248 4.53906 8.66248 5.58906 8.81248 5.88906C9.03748 6.30156 9.26248 6.67656 9.14998 7.12656L16.425 19.6141Z",fill:"white"}),o.jsx("path",{d:"M15 12C15 16.125 12 19.5 12 19.5C12 19.5 9 16.125 9 12C9 7.875 12 4.5 12 4.5C12 4.5 15 7.875 15 12Z",fill:"#C94747"}),o.jsx("path",{d:"M9.7875 15C10.425 14.3625 10.875 13.275 10.875 12C10.875 10.725 10.4625 9.6375 9.7875 9C9.525 9.8625 9.375 10.9125 9.375 12C9.375 13.0875 9.525 14.1375 9.7875 15ZM14.2125 9C13.575 9.6375 13.125 10.725 13.125 12C13.125 13.275 13.5375 14.3625 14.2125 15C14.475 14.1375 14.625 13.0875 14.625 12C14.625 10.9125 14.475 9.8625 14.2125 9Z",fill:"#3E4347"}),o.jsx("path",{d:"M12 12.8977C12.3314 12.8977 12.6 12.4947 12.6 11.9977C12.6 11.5006 12.3314 11.0977 12 11.0977C11.6687 11.0977 11.4 11.5006 11.4 11.9977C11.4 12.4947 11.6687 12.8977 12 12.8977Z",fill:"white"}),o.jsx("path",{d:"M11.775 4.76172C11.55 5.39922 11.4 6.59922 11.4 7.91172C11.4 9.26172 11.55 10.4242 11.775 11.0617C11.85 10.1242 11.925 9.07422 11.925 7.91172C11.925 6.78672 11.8875 5.69922 11.775 4.76172ZM12.225 4.76172C12.45 5.39922 12.6 6.59922 12.6 7.91172C12.6 9.26172 12.45 10.4242 12.225 11.0617C12.15 10.1242 12.075 9.07422 12.075 7.91172C12.075 6.78672 12.1125 5.69922 12.225 4.76172ZM11.775 12.8992C11.55 13.5367 11.4 14.7367 11.4 16.0492C11.4 17.3992 11.55 18.5617 11.775 19.1992C11.85 18.2617 11.925 17.2117 11.925 16.0492C11.925 14.9242 11.8875 13.8367 11.775 12.8992ZM12.225 12.8992C12.45 13.5367 12.6 14.7367 12.6 16.0492C12.6 17.3992 12.45 18.5617 12.225 19.1992C12.15 18.2617 12.075 17.2117 12.075 16.0492C12.075 14.9242 12.1125 13.8367 12.225 12.8992Z",fill:"white"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"kes-clip0_17490_20728",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),fX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#zar-clip0_16961_1849)",children:[o.jsx("path",{d:"M22.8375 14.9984C23.1 14.0609 23.25 13.0484 23.25 11.9984C23.25 10.9484 23.1 9.93594 22.8375 8.99844H11.8875L5.55001 2.77344C4.05001 3.82344 2.81251 5.24844 1.95001 6.89844L7.12501 11.9984L1.98751 17.0984C2.81251 18.7484 4.05001 20.1734 5.58751 21.2234L11.8875 14.9984H22.8375Z",fill:"#699635"}),o.jsx("path",{d:"M1.3125 8.4375C0.9375 9.5625 0.75 10.7625 0.75 12C0.75 13.2375 0.9375 14.4375 1.3125 15.5625L4.9125 12L1.3125 8.4375Z",fill:"#3E4347"}),o.jsx("path",{d:"M6.86249 22.0109C8.39999 22.7984 10.1625 23.2484 12 23.2484C16.6125 23.2484 20.5875 20.4734 22.3125 16.4609H12.525L6.86249 22.0109Z",fill:"#428BC1"}),o.jsx("path",{d:"M22.3125 7.5375C20.5875 3.525 16.6125 0.75 12 0.75C10.1625 0.75 8.39999 1.2 6.86249 1.9875L12.525 7.5375H22.3125Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M22.6875 8.51328C22.575 8.17578 22.4625 7.83828 22.3125 7.53828H12.525L6.86249 1.98828C6.59999 2.10078 6.37499 2.25078 6.11249 2.40078C5.92499 2.51328 5.73749 2.66328 5.54999 2.77578L11.8875 9.00078H22.8375C22.8 8.85078 22.7625 8.66328 22.6875 8.51328Z",fill:"white"}),o.jsx("path",{d:"M1.98748 6.89844C1.94998 6.97344 1.91248 7.04844 1.87498 7.16094C1.68748 7.57344 1.49998 7.98594 1.34998 8.43594L4.94998 11.9984L1.34998 15.5609C1.49998 16.0109 1.64998 16.4234 1.87498 16.8359C1.91248 16.9109 1.94998 16.9859 1.98748 17.0984L7.12498 11.9984L1.98748 6.89844Z",fill:"#FFCE31"}),o.jsx("path",{d:"M11.8875 15L5.54999 21.225C5.66249 21.3 5.81249 21.4125 5.92499 21.4875C6.22499 21.675 6.52499 21.8625 6.86249 22.0125L12.525 16.4625H22.3125C22.4625 16.087
675 22.6125 15.7125 22.7625 15.3C22.8 15.1875 22.8 15.1125 22.8375 15H11.8875Z",fill:"white"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"zar-clip0_16961_1849",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),mX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{id:"thb-24-thb-thailand",clipPath:"url(#thb-clip0_21495_8956)",children:[o.jsx("path",{id:"thb-Vector",d:"M19.65 3.75C17.625 1.875 14.9625 0.75 12 0.75C9.03748 0.75 6.37498 1.875 4.34998 3.75H19.65ZM4.34998 20.25C6.37498 22.125 9.03748 23.25 12 23.25C14.9625 23.25 17.625 22.125 19.65 20.25H4.34998Z",fill:"#ED4C5C"}),o.jsx("path",{id:"thb-Vector_2",d:"M0.75 12C0.75 13.6125 1.0875 15.1125 1.6875 16.5H22.3125C22.9125 15.1125 23.25 13.6125 23.25 12C23.25 10.3875 22.9125 8.8875 22.3125 7.5H1.6875C1.0875 8.8875 0.75 10.3875 0.75 12Z",fill:"#2A5F9E"}),o.jsx("path",{id:"thb-Vector_3",d:"M4.35002 20.25H19.6125C20.7375 19.2 21.675 17.925 22.275 16.5H1.65002C2.32502 17.925 3.22502 19.2 4.35002 20.25ZM19.65 3.75H4.35002C3.22502 4.8 2.28752 6.075 1.68752 7.5H22.3125C21.675 6.075 20.775 4.8 19.65 3.75Z",fill:"#F9F9F9"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"thb-clip0_21495_8956",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),hX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#myr-clip0_22559_45124)",children:[o.jsx("path",{d:"M21 5.25H12V7.5H22.3125C21.975 6.7125 21.525 5.925 21 5.25Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M23.025 14.25C23.175 13.5375 23.25 12.7875 23.25 12H0.75C0.75 12.7875 0.825 13.5375 0.975 14.25H23.025Z",fill:"#F9F9F9"}),o.jsx("path",{d:"M12 0.75V3H18.75C16.875 1.575 14.55 0.75 12 0.75Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M12 5.25H21C20.3625 4.3875 19.6125 3.6375 18.75 3H12V5.25ZM22.3125 7.5H12V9.75H23.025C22.875 8.9625 22.6125 8.2125 22.3125 7.5Z",fill:"#F9F9F9"}),o.jsx("path",{d:"M12 9.75V12H23.25C23.25 11.2125 23.175 10.4625 23.025 9.75H12ZM1.68748 16.5H22.3125C22.6125 15.7875 22.875 15.0375 23.025 14.25H0.974976C1.12498 15.0375 1.38748 15.7875 1.68748 16.5Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M3 18.75H21C21.525 18.075 21.975 17.2875 22.3125 16.5H1.6875C2.025 17.2875 2.475 18.075 3 18.75Z",fill:"#F9F9F9"}),o.jsx("path",{d:"M3 18.75C3.6375 19.6125 4.3875 20.3625 5.25 21H18.75C19.6125 20.3625 20.3625 19.6125 21 18.75H3Z",fill:"#ED4C5C"}),o.jsx("path",{d:"M5.25 21C7.125 22.425 9.45 23.25 12 23.25C14.55 23.25 16.875 22.425 18.75 21H5.25Z",fill:"#F9F9F9"}),o.jsx("path",{d:"M12 0.75C5.775 0.75 0.75 5.775 0.75 12H12V0.75Z",fill:"#2A5F9E"}),o.jsx("path",{d:"M7.4625 9.6C6.3375 9.6 5.4 8.6625 5.4 7.5C5.4 6.3375 6.3375 5.4 7.4625 5.4C7.9125 5.4 8.2875 5.55 8.625 5.775C8.1375 5.2125 7.4625 4.875 6.675 4.875C5.25 4.875 4.125 6.0375 4.125 7.5C4.125 8.9625 5.2875 10.125 6.675 10.125C7.4625 10.125 8.1375 9.7875 8.625 9.225C8.2875 9.45 7.875 9.6 7.4625 9.6ZM9.75 7.05L10.0125 6.375L9.9375 7.0875L10.4625 6.6L10.0875 7.2375L10.7625 7.0125L10.1625 7.3875L10.875 7.5L10.1625 7.6125L10.7625 7.9875L10.0875 7.7625L10.4625 8.4L9.9375 7.9125L10.0125 8.625L9.75 7.95L9.4875 8.625L9.5625 7.9125L9.0375 8.4L9.4125 7.7625L8.7375 7.9875L9.3375 7.6125L8.625 7.5L9.3375 7.3875L8.7375 7.0125L9.4125 7.2375L9.0375 6.6L9.5625 7.0875L9.4875 6.375L9.75 7.05Z",fill:"#FFE62E"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"myr-clip0_22559_45124",children:o.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),pX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#pln-clip0_4_7258)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M512 256C512 397.384 397.384 512 256 512C114.616 512 0 397.384 0 256",fill:"#D80027"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"pln-clip0_4_7258",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),gX=e=>o.jsxs("svg",{viewBox:"0 0 513 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#sek-clip0_4_7300)",children:[o.jsx("path",{d:"M256.578 511.999C397.963 511.999 512.578 397.384 512.578 255.999C512.578 114.614 397.963 -0.000976562 256.578 -0.000976562C115.193 -0.000976562 0.578125 114.614 0.578125 255.999C0.578125 397.384 115.193 511.999 256.578 511.999Z",fill:"#FFDA44"}),o.jsx("path",{d:"M200.927 222.608H510.411C494.048 97.001 386.645 -0.000976562 256.578 -0.000976562C237.464 -0.000976562 218.845 2.11202 200.926 6.08402V222.608H200.927Z",fill:"#0052B4"}),o.jsx("path",{d:"M134.143 222.607V31.126C63.8491 69.48 13.5281 139.831 2.74512 222.608H134.143V222.607Z",fill:"#0052B4"}),o.jsx("path",{d:"M134.142 289.39H2.74512C13.5281 372.167 63.8491 442.518 134.143 480.871L134.142 289.39Z",fill:"#0052B4"}),o.jsx("path",{d:"M200.926 289.391V505.914C218.845 509.886 237.464 511.999 256.578 511.999C386.645 511.999 494.048 414.997 510.411 289.39H200.926V289.391Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"sek-clip0_4_7300",children:o.jsx("rect",{width:"512",height:"512",fill:"white",transform:"translate(0.578125 -0.000976562)"})})})]}),wX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#sgd-clip0_4_7281)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M0 256.001C0 114.616 114.616 0 256 0C397.384 0 512 114.616 512 256.001",fill:"#D80027"}),o.jsx("path",{d:"M155.826 133.564C155.826 96.266 182.039 65.108 217.043 57.463C211.663 56.289 206.082 55.652 200.347 55.652C157.316 55.652 122.434 90.534 122.434 133.565C122.434 176.596 157.316 211.478 200.347 211.478C206.08 211.478 211.662 210.841 217.043 209.666C182.039 202.021 155.826 170.863 
67155.826 133.564Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256 61.217L261.526 78.222H279.407L264.94 88.733L270.466 105.738L256 95.229L241.534 105.738L247.06 88.733L232.594 78.222H250.474L256 61.217Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M212.625 94.608L218.15 111.614H236.031L221.565 122.124L227.091 139.129L212.625 128.62L198.157 139.129L203.684 122.124L189.217 111.614H207.098L212.625 94.608Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M299.376 94.608L304.903 111.614H322.783L308.316 122.124L313.843 139.129L299.376 128.62L284.91 139.129L290.436 122.124L275.97 111.614H293.85L299.376 94.608Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M282.681 144.695L288.207 161.701H306.087L291.621 172.211L297.147 189.216L282.681 178.707L268.215 189.216L273.741 172.211L259.275 161.701H277.154L282.681 144.695Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M229.32 144.695L234.845 161.701H252.727L238.26 172.211L243.787 189.216L229.32 178.707L214.853 189.216L220.379 172.211L205.913 161.701H223.794L229.32 144.695Z",fill:"#F0F0F0"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"sgd-clip0_4_7281",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),CX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#gbp-clip0_4_7321)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M52.92 100.142C32.811 126.305 17.648 156.46 8.81897 189.219H141.997L52.92 100.142Z",fill:"#0052B4"}),o.jsx("path",{d:"M503.181 189.219C494.352 156.461 479.188 126.306 459.08 100.143L370.005 189.219H503.181Z",fill:"#0052B4"}),o.jsx("path",{d:"M8.81897 322.784C17.649 355.542 32.812 385.697 52.92 411.859L141.994 322.784H8.81897Z",fill:"#0052B4"}),o.jsx("path",{d:"M411.858 52.9208C385.695 32.8118 355.541 17.6488 322.782 8.81885V141.996L411.858 52.9208Z",fill:"#0052B4"}),o.jsx("path",{d:"M100.142 459.079C126.305 479.188 156.46 494.351 189.218 503.181V370.005L100.142 459.079Z",fill:"#0052B4"}),o.jsx("path",{d:"M189.217 8.81885C156.459 17.6488 126.304 32.8118 100.142 52.9198L189.217 141.995V8.81885Z",fill:"#0052B4"}),o.jsx("path",{d:"M322.783 503.181C355.541 494.351 385.696 479.188 411.858 459.08L322.783 370.005V503.181Z",fill:"#0052B4"}),o.jsx("path",{d:"M370.005 322.784L459.08 411.86C479.188 385.698 494.352 355.542 503.181 322.784H370.005Z",fill:"#0052B4"}),o.jsx("path",{d:"M509.833 222.609H289.393H289.392V2.167C278.461 0.744 267.317 0 256 0C244.681 0 233.539 0.744 222.609 2.167V222.607V222.608H2.167C0.744 233.539 0 244.683 0 256C0 267.319 0.744 278.461 2.167 289.391H222.607H222.608V509.833C233.539 511.256 244.681 512 256 512C267.317 512 278.461 511.257 289.391 509.833V289.393V289.392H509.833C511.256 278.461 512 267.319 512 256C512 244.683 511.256 233.539 509.833 222.609Z",fill:"#D80027"}),o.jsx("path",{d:"M322.783 322.784L437.019 437.02C442.273 431.768 447.285 426.277 452.067 420.585L354.265 322.783H322.783V322.784Z",fill:"#D80027"}),o.jsx("path",{d:"M189.217 322.784H189.215L74.98 437.019C80.232 442.273 85.723 447.285 91.415 452.067L189.217 354.263V322.784Z",fill:"#D80027"}),o.jsx("path",{d:"M189.217 189.219V189.217L74.981 74.98C69.727 80.232 64.715 85.723 59.933 91.415L157.736 189.218H189.217V189.219Z",fill:"#D80027"}),o.jsx("path",{d:"M322.783 189.219L437.02 74.9811C431.768 69.7271 426.277 64.7151 420.585 59.9341L322.783 157.737V189.219Z",fill:"#D80027"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"gbp-clip0_4_7321",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),xX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#ron-clip0_4_7265)",children:[o.jsx("path",{d:"M345.043 15.922C317.309 5.633 287.314 1.33097e-07 256 1.33097e-07C224.686 -0.000999867 194.69 5.633 166.957 15.922L144.696 255.999L166.957 496.076C194.689 506.368 224.685 512 256 512C287.313 512 317.31 506.368 345.043 496.076L367.303 256L345.043 15.922Z",fill:"#FFDA44"}),o.jsx("path",{d:"M512 256C512 145.93 442.528 52.093 345.043 15.923V496.079C442.528 459.905 511.999 366.072 512 256Z",fill:"#D80027"}
67),o.jsx("path",{d:"M0 255.999C0 366.072 69.472 459.905 166.955 496.078L166.956 15.924C69.472 52.094 0 145.928 0 255.999H0Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"ron-clip0_4_7265",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),yX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#huf-clip0_4_7178)",children:[o.jsx("path",{d:"M15.923 166.957C5.633 194.691 0 224.686 0 256C0 287.314 5.633 317.311 15.923 345.043L256 367.304L496.077 345.043C506.367 317.311 512 287.314 512 256C512 224.686 506.367 194.691 496.077 166.957L256 144.696L15.923 166.957Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256 0C145.93 0 52.0938 69.472 15.9238 166.957H496.079C459.906 69.472 366.072 0 256 0Z",fill:"#D80027"}),o.jsx("path",{d:"M256 512C366.072 512 459.906 442.528 496.078 345.043H15.9238C52.0938 442.528 145.93 512 256 512Z",fill:"#6DA544"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"huf-clip0_4_7178",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),bX=e=>o.jsxs("svg",{viewBox:"0 0 512 513",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#jpy-clip0_4_7189)",children:[o.jsx("path",{d:"M256 512.989C397.385 512.989 512 398.374 512 256.989C512 115.604 397.385 0.989258 256 0.989258C114.615 0.989258 0 115.604 0 256.989C0 398.374 114.615 512.989 256 512.989Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256 368.293C317.472 368.293 367.304 318.461 367.304 256.989C367.304 195.518 317.472 145.685 256 145.685C194.529 145.685 144.696 195.518 144.696 256.989C144.696 318.461 194.529 368.293 256 368.293Z",fill:"#D80027"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"jpy-clip0_4_7189",children:o.jsx("rect",{width:"512",height:"512",fill:"white",transform:"translate(0 0.989258)"})})})]}),vX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#aud-clip0_4_7086)",children:[o.jsx("path",{d:"M512 256C512 397.384 397.384 512 256 512C114.616 512 0 397.384 0 256C0 256.06 256 0.029 256 0C397.384 0 512 114.616 512 256Z",fill:"#0052B4"}),o.jsx("path",{d:"M256 0C255.986 0 255.971 0.001 255.957 0.001L256 0Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M255.315 256H256C256 255.768 256 255.546 256 255.315C255.772 255.544 255.544 255.772 255.315 256Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256 133.566C256 88.521 256 59.004 256 0.000976562H255.957C114.592 0.0239766 0 114.629 0 256H133.565V180.788L208.777 256H255.316C255.545 255.7
6772 255.773 255.544 256.001 255.315C256.001 238.068 256.001 222.679 256.001 208.779L180.788 133.566H256Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M129.515 33.3911C89.4756 56.1901 56.1896 89.4761 33.3906 129.515V256H100.174V100.175V100.174H256C256 79.1111 256 59.0451 256 33.3911H129.515Z",fill:"#D80027"}),o.jsx("path",{d:"M255.999 224.519L165.046 133.567H133.565C133.565 133.566 133.565 133.567 133.565 133.567L255.998 256H255.999C255.999 256 255.999 234.295 255.999 224.519Z",fill:"#D80027"}),o.jsx("path",{d:"M154.395 300.522L168.445 329.9L200.172 322.567L185.964 351.869L211.478 372.102L179.711 379.262L179.8 411.826L154.395 391.453L128.991 411.826L129.08 379.262L97.3115 372.102L122.827 351.869L108.617 322.567L140.346 329.9L154.395 300.522Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M383.283 356.174L390.308 370.863L406.172 367.196L399.067 381.847L411.825 391.964L395.941 395.544L395.985 411.826L383.283 401.639L370.581 411.826L370.625 395.544L354.742 391.964L367.499 381.847L360.395 367.196L376.258 370.863L383.283 356.174Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M317.933 200.348L324.957 215.038L340.821 211.37L333.717 226.021L346.474 236.138L330.591 239.718L330.634 256L317.933 245.813L305.231 256L305.274 239.718L289.391 236.138L302.148 226.021L295.044 211.37L310.908 215.038L317.933 200.348Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M383.283 111.304L390.308 125.994L406.172 122.327L399.068 136.978L411.824 147.094L395.941 150.675L395.985 166.957L383.283 156.77L370.581 166.957L370.625 150.675L354.742 147.094L367.498 136.978L360.395 122.327L376.258 125.994L383.283 111.304Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M440.367 178.087L447.391 192.777L463.255 189.109L456.151 203.76L468.908 213.877L453.024 217.458L453.068 233.739L440.367 223.553L427.665 233.739L427.708 217.458L411.825 213.877L424.582 203.76L417.478 189.109L433.341 192.777L440.367 178.087Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M399.55 256L405.075 273.006H422.957L408.49 283.517L414.017 300.522L399.55 290.012L385.084 300.522L390.609 283.517L376.143 273.006H394.024L399.55 256Z",fill:"#F0F0F0"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"aud-clip0_4_7086",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),EX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#hkd-clip0_4_7177)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#D80027"}),o.jsx("path",{d:"M282.429 193.668C276.611 217.867 266.274 213.252 261.201 234.356C231.318 227.171 212.915 197.121 220.1 167.236C227.282 137.353 257.334 118.949 287.218 126.134C277.071 168.341 287.634 172.025 282.429 193.668Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M204.887 211.6C226.104 224.61 218.52 233.017 237.022 244.364C220.954 270.565 186.689 278.78 160.487 262.713C134.286 246.646 126.069 212.379 142.137 186.178C179.143 208.87 185.908 199.963 204.887 211.6Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M197.978 290.892C216.909 274.734 222.558 284.544 239.067 270.454C259.022 293.831 256.246 328.959 232.87 348.914C209.492 368.869 174.364 366.09 154.412 342.715C187.426 314.532 181.045 305.343 197.978 290.892Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M271.254 321.965C261.734 298.968 272.81 296.624 264.511 276.571C292.91 264.818 325.462 278.312 337.216 306.711C348.969 335.11 335.473 367.661 307.074 379.415C290.477 339.306 279.768 342.535 271.254 321.965Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M323.45 261.876C298.637 263.823 299.828 252.563 278.193 254.261C275.79 223.622 298.684 196.831 329.325 194.426C359.965 192.027 386.755 214.919 389.157 245.561C345.88 248.954 345.641 260.137 323.45 261.876Z",fill:"#F0F0F0"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"hkd-clip0_4_7177",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),SX=e=>o.jsxs("svg",{viewBox:"0 0 513 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#nzd-clip0_4_7236)",children:[o.jsx("path",{d:"M512.988 256C512.988 397.384 398.372 512 256.988 512C115.604 512 0.988281 397.384 0.988281 256C0.988281 256.061 256.988 0.028 256.988 0C398.372 0 512.988 114.616 512.988 256Z",fill:"#0052B4"}),o.jsx("path",{d:"M256.303 256H256.988C256.988 255.77 256.988 255.546 256.988 255.315C256.76 255.544 256.532 255.772 256.303 256Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256.988 133.565C256.988 88.52 256.988 59.005 256.988 0H256.945C115.58 0.024 0.988281 114.629 0.988281 256H134.553V180.789L209.765 256H256.304C256.532 255.772 256.761 255.544 256.989 255.315C256.989 238.068 256.989 222.679 256.989 208.778L181.776 133.565H256.988Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M130.503 33.3911C90.4644 56.1901 57.1784 89.4761 34.3794 129.515V256H101.162V100.176V100.174H256.988
67C256.988 79.1111 256.988 59.0451 256.988 33.3911H130.503Z",fill:"#D80027"}),o.jsx("path",{d:"M256.988 224.519L166.035 133.566C166.035 133.566 134.554 133.568 134.554 133.566V133.568L256.987 256H256.988C256.988 256 256.988 234.293 256.988 224.519Z",fill:"#D80027"}),o.jsx("path",{d:"M444.318 189.959L449.843 206.965H467.724L453.258 217.475L458.784 234.48L444.318 223.971L429.851 234.48L435.377 217.475L420.91 206.965H438.791L444.318 189.959Z",fill:"#D80027"}),o.jsx("path",{d:"M380.399 312.393L388.688 337.903H415.509L393.809 353.667L402.099 379.176L380.399 363.411L358.699 379.176L366.989 353.667L345.289 337.903H372.11L380.399 312.393Z",fill:"#D80027"}),o.jsx("path",{d:"M382.813 112.046L389.721 133.305H412.072L393.988 146.44L400.896 167.698L382.813 154.559L364.731 167.698L371.638 146.44L353.556 133.305H375.906L382.813 112.046Z",fill:"#D80027"}),o.jsx("path",{d:"M321.31 189.217L329.598 214.727H356.42L334.72 230.491L343.01 256L321.31 240.235L299.61 256L307.9 230.491L286.2 214.727H313.021L321.31 189.217Z",fill:"#D80027"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"nzd-clip0_4_7236",children:o.jsx("rect",{width:"512",height:"512",fill:"white",transform:"translate(0.988281)"})})})]}),LX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#czk-clip0_4_7136)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M233.739 256C233.739 256 75.1305 437.055 74.9805 437.019C121.306 483.346 185.307 512 256 512C397.384 512 512 397.384 512 256H233.739Z",fill:"#D80027"}),o.jsx("path",{d:"M74.9795 74.98C-24.9945 174.954 -24.9945 337.045 74.9795 437.02C116.293 395.707 156.026 355.974 256 256L74.9795 74.98Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"czk-clip0_4_7136",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),AX=e=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("rect",{width:"20",height:"20",fill:"#1C1C1C"}),o.jsxs("g",{id:"dkk-dropdown",children:[o.jsx("rect",{x:"-12",y:"-240",width:"108",height:"576",rx:"8",fill:"#252A35"}),o.jsx("g",{id:"dkk-Frame-1597882482",children:o.jsx("g",{id:"dkk-Frame-1597882485",children:o.jsx("g",{id:"dkk-Frame-1597882478",children:o.jsxs("g",{id:"dkk-flags",clipPath:"url(#dkk-clip0_1_6089)",children:[o.jsx("path",{id:"dkk-Vector",d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"#F0F0F0"}),o.jsxs("g",{id:"dkk-Group",children:[o.jsx("path",{id:"dkk-Vector_2",d:"M7.82621 8.69566H19.9154C19.2763 3.78914 15.0808 0 10.0001 0C9.2534 0 8.52617 0.0825391 7.82617 0.237695V8.69566H7.82621Z",fill:"#D80027"}),o.jsx("path",{id:"dkk-Vector_3",d:"M5.21769 8.69555V1.21582C2.47187 2.71402 0.506172 5.46211 0.0849609 8.69559H5.21769V8.69555Z",fill:"#D80027"}),o.jsx("path",{id:"dkk-Vector_4",d:"M5.21766 11.3042H0.0849609C0.506172 14.5377 2.47187 17.2858 5.21769 18.7839L5.21766 11.3042Z",fill:"#D80027"}),o.jsx("path",{id:"dkk-Vector_5",d:"M7.82617 11.3042V19.7622C8.52617 19.9173 9.2534 19.9999 10.0001 19.9999C15.0808 19.9999 19.2763 16.2107 19.9154 11.3042H7.82617V11.3042Z",fill:"#D80027"})]})]})})})})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"dkk-clip0_1_6089",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),TX=e=>o.jsxs("svg",{viewBox:"0 0 513 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#chf-clip0_4_7301)",children:[o.jsx("path",{d:"M256.578 512C397.963 512 512.578 397.385 512.578 256C512.578 114.615 397.963 0 256.578 0C115.193 0 0.578125 114.615 0.578125 256C0.578125 397.385 115.193 512 256.578 512Z",fill:"#D80027"}),o.jsx("path",{d:"M390.143 211.479H301.1V122.435H212.056V211.479H123.013V300.522H212.056V389.565H301.1V300.522H390.143V211.479Z",fill:"#F0F0F0"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"chf-clip0_4_7301",children:o.jsx("rect",{width:"512",height:"512",fill:"white",transform:"translate(0.578125)"})})})]}),_X=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#cad-clip0_4_7116)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M512 256C512 154.506 452.935 66.8101 367.304 25.4021V486.597C452.935 445.19 512 357.494 512 256Z",fill:"#D80027"}),o.jsx("path",{d:"M0 256C0 357.494 59.065 445.19 144.696 486.598
67V25.4021C59.065 66.8101 0 154.506 0 256Z",fill:"#D80027"}),o.jsx("path",{d:"M300.522 289.391L345.043 267.13L322.783 256V233.739L278.261 256L300.522 211.478H278.261L256 178.087L233.739 211.478H211.478L233.739 256L189.217 233.739V256L166.957 267.13L211.478 289.391L200.348 311.652H244.87V345.043H267.13V311.652H311.652L300.522 289.391Z",fill:"#D80027"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"cad-clip0_4_7116",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),RX=e=>o.jsxs("svg",{viewBox:"0 0 513 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#bgn-clip0_4_7111)",children:[o.jsx("path",{d:"M512.989 256C512.989 224.686 507.357 194.689 497.066 166.957L256.989 155.826L16.9123 166.956C6.62226 194.689 0.989258 224.686 0.989258 256C0.989258 287.314 6.62226 317.311 16.9123 345.043L256.989 356.174L497.066 345.044C507.357 317.311 512.989 287.314 512.989 256Z",fill:"#496E2D"}),o.jsx("path",{d:"M256.989 512C367.06 512 460.895 442.528 497.066 345.043H16.9121C53.0831 442.528 146.918 512 256.989 512Z",fill:"#D80027"}),o.jsx("path",{d:"M16.9121 166.957H497.067C460.895 69.472 367.06 0 256.989 0C146.918 0 53.0831 69.472 16.9121 166.957Z",fill:"#F0F0F0"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"bgn-clip0_4_7111",children:o.jsx("rect",{width:"512",height:"512",fill:"white",transform:"translate(0.989258)"})})})]}),NX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#ils-clip0_4_7186)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M352.393 200.348H288.13L256 144.696L223.871 200.348H159.607L191.741 256L159.607 311.652H223.871L256 367.304L288.13 311.652H352.393L320.259 256L352.393 200.348ZM295.475 256L275.739 290.188H236.264L216.525 256L236.263 221.812H275.738L295.475 256ZM256 187.623L263.346 200.347H248.656L256 187.623ZM196.786 221.812H211.478L204.132 234.536L196.786 221.812ZM196.786 290.188L204.133 277.464L211.479 290.188H196.786ZM256 324.376L248.655 311.652H263.346L256 324.376ZM315.214 290.188H300.522L307.869 277.464L315.214 290.188ZM300.522 221.812H315.214L307.868 234.536L300.522 221.812Z",fill:"#0052B4"}),o.jsx("path",{d:"M415.357 55.6519H96.6432C73.2802 74.2599 53.2442 96.8619 37.5742 122.435H474.426C458.755 96.8629 438.719 74.2599 415.357 55.6519Z",fill:"#0052B4"}),o.jsx("path",{d:"M96.6432 456.348H415.356C438.719 437.74 458.755 415.138 474.425 389.565H37.5742C53.2452 415.137 73.2812 437.74 96.6432 456.348Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"ils-clip0_4_7186",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),kX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#nok-clip0_4_7245)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M8.81885 322.783C23.6308 377.742 56.2759 425.376 100.174 459.105V322.783H8.81885Z",fill:"#D80027"}),o.jsx("path",{d:"M233.739 511.026C241.077 511.658 248.498 512 256 512C374.279 512 473.805 431.779 503.181 322.783H233.739V511.026Z",fill:"#D80027"}),o.jsx("path",{d:"M503.181 189.217C473.805 80.221 374.279 0 256 0C248.498 0 241.077 0.342 233.739 0.974V189.217H503.181Z",fill:"#D80027"}),o.jsx("path",{d:"M100.174 52.895C56.2759 86.625 23.6308 134.258 8.81885 189.217H100.174V52.895Z",fill:"#D80027"}),o.jsx("path",{d:"M509.833 222.609H200.349H200.348V6.08496C176.69 11.331 154.261 19.834 133.565 31.127V222.607V222.608H2.167C0.742 233.539 0 244.683 0 256C0 267.317 0.742 278.461 2.167 289.391H133.564H133.565V480.872C154.261 492.164 176.69 500.669 200.348 505.914V289.394V289.392H509.833C511.256 278.461 512 267.317 512 256C512 244.683 511.256 233.539 509.833 222.609Z",fill:"#0052B4"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"nok-clip0_4_7245",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),IX=e=>o.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsxs("g",{clipPath:"url(#php-clip0_4_7256)",children:[o.jsx("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:"#F0F0F0"}),o.jsx("path",{d:"M256 0V256L74.98 437.02C121.307 483.346 185.307 512 256 512C397.384 512 512 397.384 512 256C512 114.616 256 0 256 0Z",fill:"#D80027"}),o.jsx("path",{d:"M256 0C185.307 0 121.307 28.654 74.98 74.98C137.79 137.79 160.087 160.088 256 256H512C512 114.616 397.384 0 256 0Z",fill:"#0052B4"}),o.jsx("path",{d:"M175.291 256L144.027 241.294L160.676 211.015L126.726 217.51L122.424 183.213L98.776 208.437L75.129 183.213L70.826 217.51L36.877 211.014L53.526 241.294L22.261 256L53.526 270.706L36.877 300.985L70.829 294.491L75.128 328.787L98.776 303.563L122.424 328.787L126.726 294.491L160.674 300.986L144.026 270.707L175.291 256Z",fill:"#FFDA44"}),o.jsx("path",{d:"M68.273 100.174L78.677 114.717L95.722 109.318L85.104 123.706L95.508 138.249L78.542 132.598L67.925 146.985L68.058 129.105L51.093 123.453L68.141 118.054L68.273 100.174Z",fill:"#FFDA44"}),o.jsx("path",{d:"M68.273 365.015L78.677 379.558L95.722 374.158L85.104 388.547L95.508 403.09L78.542 397.439L67.925 411.826L68.058 393.946L51.093 388.294L68.141 382.895L68.273 365.015Z",fill:"#FFDA44"}),o.jsx("path",{d:"M216.666 232.595L206.263 247.138L189.217 241.737L199.835 256.126L189.431 270.67L206.397 265.018L217.015 279.405L216.881 261.526L233.846 255.874L216.799 250.475L216.666 232.595Z",fill:"#FFDA44"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"php-clip0_4_7256",children:o.jsx("rect",{width:"512",height:"512",fill:"white"})})})]}),Hp={[fe.TON]:BK,[fe.USDT]:UK,[fe.BTC]:Bp,[fe.ETH]:HK,[fe.SOL]:VK,[fe.NOT]:WK,[fe.CUSD]:Up,[fe.CELO]:Up,[fe.TRUMP]:GK,[fe.USD1]:zK,[fe.BONK]:qK,[fe.BNB]:YK,[fe.USDC]:KK,[fe.WHALE]:XK,[fe.MBTC]:Bp,[fe.ROOM_CURRENCY]:JK,[Re.EUR]:QK,[Re.USD]:eX,[Re.INR]:tX,[Re.TRY]:nX,[Re.AED]:sX,[Re.MXN]:rX,[Re.VND]:aX,[Re.NGN]:oX,[Re.BRL]:ZK,[Re.PEN]:iX,[Re.COP]:lX,[Re.CLP]:cX,[Re.IDR]:dX,[Re.KES]:uX,[Re.ZAR]:fX,[Re.THB]:mX,[Re.MYR]:hX,[Re.PLN]:pX,[Re.SEK]:gX,[Re.SGD]:wX,[Re.GBP]:CX,[Re.RON]:xX,[Re.HUF]:yX,[Re.JPY]:bX,[Re.AUD]:vX,[Re.HKD]:EX,[Re.NZD]:SX,[Re.CZK]:LX,[Re.DKK]:AX,[Re.CHF]:TX,[Re.CAD]:_X,[Re.BGN]:RX,[Re.ILS]:NX,[Re.NOK]:kX,[Re.PHP]:IX},MX={RAF_ROOM_USDT:fe.USDT,RAF_COMMISSION_USD:fe.USDT,GRAM:fe.TON},OX=e=>Hp[e]??Hp[MX[e]??""],Zi=({currency:e,grayscale:t=!1,className:n=""})=>{const s=OX(e),r=n.trim()?n:"size-5";return o.jsx("div",{className:ie(r,t?"filter-grayscale":""),children:s?o.jsx(s,{className:r,"data-currency-icon":e}):o.jsx("div",{"data-currency-fallback":e,className:"flex size-full items-center justify-center rounded-full bg-gray-200 text-xs text-gray-500",children:"?"})})},PX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18",fill:"
67currentColor",...e,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.87533 7.37886V5.66669C2.87533 2.56009 5.39372 0.041687 8.50033 0.041687C11.6069 0.041687 14.1253 2.56009 14.1253 5.66669V7.37886C15.0543 7.44824 15.6592 7.62339 16.1014 8.06559C16.8337 8.79782 16.8337 9.97633 16.8337 12.3334C16.8337 14.6904 16.8337 15.8689 16.1014 16.6011C15.3692 17.3334 14.1907 17.3334 11.8337 17.3334H5.16699C2.80997 17.3334 1.63146 17.3334 0.899225 16.6011C0.166992 15.8689 0.166992 14.6904 0.166992 12.3334C0.166992 9.97633 0.166992 8.79782 0.899225 8.06559C1.34142 7.62339 1.94636 7.44824 2.87533 7.37886ZM4.12533 5.66669C4.12533 3.25044 6.08408 1.29169 8.50033 1.29169C10.9166 1.29169 12.8753 3.25044 12.8753 5.66669V7.33633C12.5561 7.33335 12.2099 7.33335 11.8337 7.33335H5.16699C4.79073 7.33335 4.4445 7.33335 4.12533 7.33633V5.66669ZM5.16699 13.1667C5.62723 13.1667 6.00033 12.7936 6.00033 12.3334C6.00033 11.8731 5.62723 11.5 5.16699 11.5C4.70675 11.5 4.33366 11.8731 4.33366 12.3334C4.33366 12.7936 4.70675 13.1667 5.16699 13.1667ZM8.50033 13.1667C8.96056 13.1667 9.33366 12.7936 9.33366 12.3334C9.33366 11.8731 8.96056 11.5 8.50033 11.5C8.04009 11.5 7.66699 11.8731 7.66699 12.3334C7.66699 12.7936 8.04009 13.1667 8.50033 13.1667ZM12.667 12.3334C12.667 12.7936 12.2939 13.1667 11.8337 13.1667C11.3734 13.1667 11.0003 12.7936 11.0003 12.3334C11.0003 11.8731 11.3734 11.5 11.8337 11.5C12.2939 11.5 12.667 11.8731 12.667 12.3334Z",fill:"currentColor"})}),DX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"14",viewBox:"0 0 17 14",fill:"
67currentColor",...e,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.1433 1.30962C0.166992 2.28593 0.166992 3.85728 0.166992 6.99998C0.166992 10.1427 0.166992 11.714 1.1433 12.6903C2.11961 13.6666 3.69096 13.6666 6.83366 13.6666H10.167C13.3097 13.6666 14.881 13.6666 15.8573 12.6903C16.8337 11.714 16.8337 10.1427 16.8337 6.99998C16.8337 3.85728 16.8337 2.28593 15.8573 1.30962C14.881 0.333313 13.3097 0.333313 10.167 0.333313H6.83366C3.69096 0.333313 2.11961 0.333313 1.1433 1.30962ZM5.16699 7.83331C5.62723 7.83331 6.00033 7.46022 6.00033 6.99998C6.00033 6.53974 5.62723 6.16665 5.16699 6.16665C4.70675 6.16665 4.33366 6.53974 4.33366 6.99998C4.33366 7.46022 4.70675 7.83331 5.16699 7.83331ZM9.33366 6.99998C9.33366 7.46022 8.96056 7.83331 8.50033 7.83331C8.04009 7.83331 7.66699 7.46022 7.66699 6.99998C7.66699 6.53974 8.04009 6.16665 8.50033 6.16665C8.96056 6.16665 9.33366 6.53974 9.33366 6.99998ZM11.8337 7.83331C12.2939 7.83331 12.667 7.46022 12.667 6.99998C12.667 6.53974 12.2939 6.16665 11.8337 6.16665C11.3734 6.16665 11.0003 6.53974 11.0003 6.99998C11.0003 7.46022 11.3734 7.83331 11.8337 7.83331Z",fill:"currentColor"})}),FX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"73",height:"73",viewBox:"0 0 73 73",fill:"currentColor",...e,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.5005 36.5C66.5005 53.0685 53.069 66.5 36.5005 66.5C19.9319 66.5 6.50049 53.0685 6.50049 36.5C6.50049 19.9315 19.9319 6.5 36.5005 6.5C53.069 6.5 66.5005 19.9315 66.5005 36.5ZM48.5915 27.409C49.4701 28.2877 49.4701 29.7123 48.5915 30.591L33.5915 45.591C32.7128 46.4697 31.2882 46.4697 30.4095 45.591L24.4095 39.591C23.5308 38.7123 23.5308 37.2877 24.4095 36.409C25.2882 35.5303 26.7128 35.5303 27.5915 36.409L32.0005 40.818L38.705 34.1135L45.4095 27.409C46.2882 26.5303 47.7128 26.5303 48.5915 27.409Z",fill:"currentColor"})}),jX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",...e,children:o.jsx("path",{d:"M8.99966 1C4.58197 1 1 4.58197 1 8.99966C1 13.4174 4.58197 17 8.99966 17C13.4174 17 17 13.4174 17 8.99966C17 4.58197 13.4174 1 8.99966 1ZM10.665 13.3984C10.2532 13.5609 9.92546 13.6842 9.67962 13.7695C9.43445 13.8549 9.14933 13.8975 8.82493 13.8975C8.32648 13.8975 7.93841 13.7756 7.6621 13.5325C7.38578 13.2894 7.2483 12.9812 7.2483 12.6067C7.2483 12.4611 7.25845 12.3121 7.27877 12.1604C7.29977 12.0087 7.33295 11.838 7.37833 11.6463L7.89371 9.8259C7.93909 9.65117 7.97837 9.48525 8.00952 9.33084C8.04068 9.17507 8.05558 9.03217 8.05558 8.90214C8.05558 8.67052 8.00749 8.50798 7.912 8.41655C7.81515 8.32512 7.63297 8.28042 7.3614 8.28042C7.22866 8.28042 7.09185 8.30006 6.95166 8.34138C6.81283 8.38404 6.69228 8.42265 6.5934 8.46057L6.72952 7.89981C7.06679 7.76233 7.38984 7.64449 7.69799 7.54696C8.00614 7.44808 8.29735 7.39932 8.57164 7.39932C9.06671 7.39932 9.44868 7.51987 9.71754 7.75826C9.98506 7.99733 10.1198 8.30819 10.1198 8.69016C10.1198 8.7694 10.1103 8.90891 10.0921 9.10802C10.0738 9.30781 10.0392 9.48999 9.98912 9.65727L9.47644 11.4723C9.43445 11.6179 9.39721 11.7845 9.36334 11.9708C9.33016 12.157 9.3139 12.2992 9.3139 12.3947C9.3139 12.6358 9.36741 12.8004 9.47577 12.8877C9.58277 12.9751 9.77037 13.0191 10.0359 13.0191C10.1611 13.0191 10.3013 12.9968 10.4598 12.9534C10.6169 12.9101 10.7307 12.8715 10.8025 12.8383L10.665 13.3984ZM10.5743 6.03128C10.3352 6.25342 10.0474 6.36449 9.71077 6.36449C9.37486 6.36449 9.08499 6.25342 8.84389 6.03128C8.60415 5.80914 8.48292 5.53892 8.48292 5.22332C8.48292 4.9084 8.60483 4.6375 8.84389 4.41333C9.08499 4.18849 9.37486 4.07674 9.71077 4.07674C10.0474 4.07674 10.3359 4.18849 10.5743 4.41333C10.8133 4.6375 10.9332 4.9084 10.9332 5.22332C10.9332 5.5396 10.8133 5.80914 10.5743 6.03128Z",fill:"#9092B2"})}),hd=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),pd=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}),o.jsx("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}),o.jsx("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}),o.jsx("path",{d:"m2 2 20 20"})]}),$X=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:o.jsx("path",{d:"m6 9 6 6 6-6"})}),BX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:o.jsx("path",{d:"m18 15-6-6-6 6"})}),qde=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:o.jsx("path",{d:"m15 18-6-6 6-6"})}),Yde=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:o.jsx("path",{d:"m9 18 6-6-6-6"})}),UX=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",...e,children:o.jsx("path",{d:"M20 6 9 17l-5-5"})}),a1=e=>o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...e,children:o.jsx("path",{d:"M9.16671 0.833344L0.833374 9.16668M0.833374 0.833344L9.16671 9.16668",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),HX={primary:"bg-gradient-primary text-button-primary-text border-button-primary-border active:opacity-90 p-2 lg:px-3",authMethod:"bg-secondary flex items-center justify-center rounded-lg size-9 max-h-9 max-w-9 !p-0",skyblue:"bg-gradient-skyblue text-white active:opacity-90",ghost:"text-brandblue-100 hover:opacity-90",outline:"border border-highlight text-brandblue-100 hover:bg-highlight active:opacity-90",default:"bg-primary hover:bg-primary-active active:opacity-90","enforce-secondary":"w-full flex items-center justify-center gap-2 bg-buttonv2-nonAccent-bg text-buttonv2-nonAccent-text transition-all duration-200 hover:bg-hover-buttonv2-nonAccent",secondary:"bg-primary text-brandblue-100 border-solid border-1 border-primary hover:text-white hover:border-brand-tertiary hover:bg-secondary-active active:opacity-90","secondary-clean":"bg-highlight text-brandblue-100 hover:text-white hover:bg-secondary-active active:opacity-90",tertiary:"bg-brand-tertiary/10 text-brand-tertiary active:opacity-90",lootbox:"bg-[#252A35] hover:bg-primary-active active:opacity-90 group-hover:bg-gradient-primary hover:text-white border-1 border-[#252A35] group-hover:border-brand-tertiary border-solid group-hover:active:opacity-90",golden:"bg-golde
67n text-primary hover:bg-golden/80 disabled:bg-golden/10 disabled:text-golden active:opacity-90",goldenShine:"bg-[radial-gradient(ellipse_50.00%_29782.34%_at_50.00%_50.00%,_#FCD753_0%,_#E2B61A_100%)] text-primary hover:bg-golden/80 hover:text-primary disabled:bg-golden/10 disabled:text-golden active:opacity-90",gradientgreen:"bg-gradient-green text-highlight border border-green hover:opacity-90 active:opacity-80",highlight:"bg-highlight text-brandblue-100 border-solid border-1 border-highlight hover:text-white hover:border-brand-tertiary hover:bg-secondary-active active:opacity-90",destructive:"bg-error/10 text-error hover:bg-error/5 active:opacity-90"},VX={default:"h-10 p-2",md:"px-3 py-2",sm:"h-8 min-w-8 rounded-md p-2",icon:"size-10",authMethod:""},WX="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",ZX=({variant:e="primary",size:t,className:n})=>ie(WX,VX[t??(e==="authMethod"?"authMethod":"default")],HX[e],n),wn=({variant:e="primary",size:t,className:n,type:s="button",...r})=>o.jsx("button",{type:s,className:ZX({variant:e,size:t,className:n}),...r}),M2=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 20 19",...n,children:o.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M13.333 9.5 10 6.167m0 0L6.667 9.5M10 6.167v6.666M18.333 9.5a8.333 8.333 0 11-16.667 0 8.333 8.333 0 0116.667 0"})}),FS=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 20 20",...n,children:o.jsxs("g",{fill:"none",children:[o.jsx("g",{clipPath:"url(#whaleArrowCircleDown)",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 2.5a7.5 7.5 0 100 15 7.5 7.5 0 000-15M.833 10a9.167 9.167 0 1118.334 0A9.167 9.167 0 01.833 10M10 5.834c.46 0 .833.373.833.833v4.655l1.911-1.911a.833.833 0 111.178 1.178l-3.333 3.334a.833.833 0 01-1.178 0l-3.334-3.334a.833.833 0 111.179-1.178l1.91 1.91V6.668c0-.46.374-.833.834-.833",clipRule:"evenodd"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"whaleArrowCircleDown",children:o.jsx("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]})}),jS=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 20 20",...n,children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("path",{d:"M18.334 7.083c0 2.717-2 4.958-4.6 5.35v-.05c-.259-3.233-2.884-5.858-6.142-6.116h-.025a5.41 5.41 0 015.35-4.6 5.417 5.417 0 015.417 5.416"}),o.jsx("path",{d:"M12.483 12.483a5.424 5.424 0 00-5.4-4.983 5.417 5.417 0 105.4 4.983M7.817 13.65 7.083 15l-.733-1.35L5 12.917l1.35-.734.733-1.35.734 1.35 1.35.734z"})]})}),Vp=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 20 20",...n,children:o.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M18.166 5.833H1.5m0-1.5v6.333c0 .934 0 1.4.181 1.757.16.314.415.569.729.729.356.181.823.181 1.756.181H15.5c.933 0 1.4 0 1.756-.181.314-.16.569-.415.729-.729.181-.356.181-.823.181-1.757V4.333c0-.933 0-1.4-.181-1.756a1.67 1.67 0 00-.729-.729c-.356-.181-.823-.181-1.757-.181H4.166c-.933 0-1.4 0-1.756.181-.314.16-.569.415-.729.729C1.5 2.933 1.5 3.4 1.5 4.333"})}),o1=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:e,height:t,viewBox:"0 0 20 20",...n,children:o.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M10 7.5v3.334m0 3.333h.008M8.846 3.243l-6.854 11.84c-.38.656-.57.984-.542 1.254a.83.83 0 00.338.587c.22.16.599.16 1.358.16h13.708c.759 0 1.138 0 1.357-.16a.83.83 0 00.339-.587c.028-.27-.162-.598-.542-1.255L11.154 3.243c-.38-.654-.569-.981-.816-1.091a.83.83 0 00-.677 0c-.247.11-.436.437-.815 1.091"})}),Ou=({width:e="1em",height:t="1em",...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:e,height:t,viewBox:"0 0 20 20",...n,children:o.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M4.167 12.5c-.777 0-1.165 0-1.472-.127a1.67 1.67 0 01-.902-.902c-.126-.306-.126-.695-.126-1.471V4.333c0-.933 0-1.4.181-1.756.16-.314.415-.569.729-.729.356-.181.823-.181 1.756-.181H10c.776 0 1.165 0 1.471.126.408.17.733.494.902.902.127.307.127.695.127 1.472m-2.334 14.166h5.5c.934 0 1.4 0 1.757-.181.314-.16.569-.415.729-.729.181-.356.181-.823.181-1.756v-5.5c0-.934 0-1.4-.181-1.757a1.67 1.67 0 00-.729-.729C17.067 7.5 16.6 7.5 15.667 7.5h-5.5c-.934 0-1.4 0-1.757.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756v5.5c0 .934 0 1.4.181 1.757.16.314.415.569.729.729.356.181.823.181 1.756.181"})}),Kde=e=>o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M4.5 6.75L9 11.25L13.5 6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),GX=e=>o.jsx("svg",{width:"12",height:"6",viewBox:"0 0 12 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M10.5 0.75L6 5.25L1.5 0.749999",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Xde=e=>o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),zX=()=>o.jsxs("span",{className:"flex items-center justify-between gap-2",children:[o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"20",viewBox:"0 0 33 20",fill:"none",children:[o.jsx("path",{d:"M14.2221 14.9487H11.6328L13.2523 5.08301H15.8415L14.2221 14.9487Z",fill:"currentColor"}),o.jsx("path",{d:"M23.6089 5.32383C23.0982 5.12421 22.2882 4.90381 21.2865 4.90381C18.7295 4.90381 16.9289 6.24715 16.9179 8.16772C16.8967 9.58471 18.2071 10.3717 19.1872 10.8442C20.1889 11.327 20.5295 11.6421 20.5295 12.0725C20.5193 12.7334 19.72 13.038 18.9745 13.038C17.9407 13.038 17.3868 12.881 16.5451 12.5133L16.2041 12.3556L15.8418 14.5703C16.4491 14.8428 17.5679 15.0847 18.7295 15.0953C21.4464 15.0953 23.2152 13.7728 23.2361 11.7261C23.2464 10.603 22.5545 9.74248 21.0627 9.03928C20.1571 8.58787 19.6025 8.2835 19.6025 7.82163C19.6131 7.40175 20.0715 6.97168 21.0938 6.97168C21.9356 6.95062 22.5541 7.14996 23.0226 7.34944L23.2568 7.4542L23.6089 5.32383Z",fill:"currentColor"}),o.jsx("path",{d:"M27.05 11.4536C27.2632 10.8868 28.0837 8.69328 28.0837 8.69328C28.073 8.71434 28.2966 8.11605 28.4244 7.74876L28.6054 8.59884C28.6054 8.59884 29.0957 10.9604 29.2022 11.4536C28.7975 11.4536 27.5614 11.4536 27.05 11.4536ZM30.2461 5.08301H28.2433C27.6257 5.08301 27.1565 5.26128 26.89 5.9
670157L23.0439 14.9485H25.7608C25.7608 14.9485 26.2081 13.7309 26.3042 13.4686C26.6023 13.4686 29.2452 13.4686 29.6286 13.4686C29.703 13.815 29.9376 14.9485 29.9376 14.9485H32.335L30.2461 5.08301Z",fill:"currentColor"}),o.jsx("path",{d:"M9.46985 5.08301L6.93409 11.8104L6.657 10.446C6.18819 8.8717 4.71791 7.16121 3.07715 6.3107L5.39981 14.9382H8.1379L12.2078 5.08301H9.46985Z",fill:"currentColor"}),o.jsx("path",{d:"M4.57961 5.08301H0.413712L0.371094 5.28235C3.62075 6.10104 5.77294 8.07448 6.65717 10.4465L5.75156 5.91231C5.60246 5.28221 5.14427 5.10379 4.57961 5.08301Z",fill:"currentColor"})]}),o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"20",viewBox:"0 0 25 20",fill:"none",children:[o.jsx("path",{d:"M11.8471 15.7974C11.9043 15.8445 11.9655 15.8916 12.0257 15.9377C10.8646 16.6904 9.47063 17.1278 7.97411 17.1278C3.93241 17.1287 0.657227 13.9374 0.657227 10.0002C0.657227 6.06387 3.93241 2.87158 7.97312 2.87158C9.47063 2.87158 10.8646 3.30991 12.0227 4.0616C11.9635 4.11062 11.9043 4.1558 11.8599 4.20579C10.1276 5.66399 9.13621 7.77776 9.13621 10.0002C9.13621 12.2216 10.1237 14.3354 11.8471 15.7974Z",fill:"currentColor"}),o.jsx("path",{opacity:"0.8",d:"M12.2197 4.62195C12.3095 4.54409 12.4012 4.472 12.4959 4.3999C12.5906 4.472 12.6833 4.54505 12.7721 4.62195C14.315 5.92828 15.2887 7.85172 15.2887 10.0001C15.2887 12.1494 14.314 14.0719 12.7721 15.3783C12.6824 15.4551 12.5906 15.5301 12.4959 15.6013C12.4022 15.5301 12.3085 15.4551 12.2197 15.3783C10.6768 14.0719 9.70312 12.1494 9.70312 10.0001C9.70312 7.85172 10.6768 5.92828 12.2197 4.62195Z",fill:"currentColor"}),o.jsx("path",{opacity:"0.6",d:"M12.9678 4.0616C14.126 3.30991 15.5179 2.87158 17.0174 2.871
6758C21.0581 2.87158 24.3333 6.06483 24.3333 10.0002C24.3333 13.9374 21.0581 17.1287 17.0164 17.1278C15.5179 17.1278 14.126 16.6904 12.9648 15.9377C13.025 15.8916 13.0862 15.8445 13.1434 15.7974C14.8668 14.3325 15.8543 12.2206 15.8543 10.0002C15.8543 7.77776 14.8629 5.66399 13.1306 4.20579C13.0862 4.1558 13.027 4.11062 12.9678 4.0616Z",fill:"currentColor"})]}),o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:o.jsx("path",{d:"M3.66667 9.58326V12.9166C3.66667 13.6083 4.225 14.1666 4.91667 14.1666C5.60833 14.1666 6.16667 13.6083 6.16667 12.9166V9.58326C6.16667 8.89159 5.60833 8.33326 4.91667 8.33326C4.225 8.33326 3.66667 8.89159 3.66667 9.58326ZM8.66667 9.58326V12.9166C8.66667 13.6083 9.225 14.1666 9.91667 14.1666C10.6083 14.1666 11.1667 13.6083 11.1667 12.9166V9.58326C11.1667 8.89159 10.6083 8.33326 9.91667 8.33326C9.225 8.33326 8.66667 8.89159 8.66667 9.58326ZM3.25 18.3333H16.5833C17.275 18.3333 17.8333 17.7749 17.8333 17.0833C17.8333 16.3916 17.275 15.8333 16.5833 15.8333H3.25C2.55833 15.8333 2 16.3916 2 17.0833C2 17.7749 2.55833 18.3333 3.25 18.3333ZM13.6667 9.58326V12.9166C13.6667 13.6083 14.225 14.1666 14.9167 14.1666C15.6083 14.1666 16.1667 13.6083 16.1667 12.9166V9.58326C16.1667 8.89159 15.6083 8.33326 14.9167 8.33326C14.225 8.33326 13.6667 8.89159 13.6667 9.58326ZM9.14167 1.2416L2.55833 4.70827C2.21667 4.88327 2 5.2416 2 5.62493C2 6.19993 2.46667 6.6666 3.04167 6.6666H16.8C17.3667 6.6666 17.8333 6.19993 17.8333 5.62493C17.8333 5.2416 17.6167 4.88327 17.275 4.70827L10.6917 1.2416C10.2083 0.983268 9.625 0.983268 9.14167 1.2416Z",fill:"currentColor"})})]}),Wp=144,ba=({id:e,value:t,options:n,onChange:s,disabled:r=!1,empty:a="Select",className:i,withCurrencyIcon:l=!1})=>{var x;const[c,d]=y.useState(!1),[f,u]=y.useState(!1),[m,p]=y.useState(null),C=y.useRef(null),b=y.useRef(null);y.useLayoutEffect(()=>{if(!c||!C.current)return;const g=C.current.getBoundingClientRect();p({top:g.top,bottom:g.bottom,width:C.current.clientWidth}),u(window.innerHeight-g.bottom<Wp&&g.top>Wp)},[c]),y.useEffect(()=>{if(!c)return;const g=A=>{var R,O;const k=A.target;!((R=C.current)!=null&&R.contains(k))&&!((O=b.current)!=null&&O.contains(k))&&d(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[c]);const v=t?(x=n.find(g=>g.value===t))==null?void 0:x.title:void 0,E=g=>{d(!1),s(g)};return o.jsxs(o.Fragment,{children:[o.jsxs("select",{id:`${e}-select`,disabled:r,value:t??"","data-testid":`${e}-native`,onChange:g=>E(g.target.value),className:ie("h-10 w-full rounded-lg bg-secondary px-3 md:hidden",i),children:[t?null:o.jsx("option",{value:"",disabled:!0,children:a}),n.map(g=>o.jsx("option",{value:g.value,children:g.title},g.value))]}),o.jsxs("div",{id:e,ref:C,"data-testid":e,role:"button",tabIndex:r?-1:0,onClick:()=>!r&&d(g=>!g),onKeyDown:g=>{!r&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(A=>!A))},className:ie("hidden h-10 w-full items-center gap-x-2 rounded-lg bg-secondary px-3 md:flex",r?"text-gray-500":"cursor-pointer",i),children:[l===!0&&t?o.jsx(Zi,{currency:t,className:"size-5"}):null,o.jsx("div",{className:"grow truncate",children:v??a}),o.jsx(GX,{className:"text-icon-inactive"})]}),c&&!r&&m?o.jsx("div",{ref:b,"data-testid":`${e}-dropdown`,className:"fixed z-50 max-h-72 max-w-full overflow-auto rounded-lg border border-gray-800 bg-primary",style:f?{bottom:`${window.innerHeight-m.top}px`,width:`${m.width}px`}:{top:`${m.bottom}px`,width:`${m.width}px`},children:o.jsx("div",{className:"max-h-full overflow-y-auto",children:n.map(g=>o.jsxs("button",{type:"button","data-testid":`${e}-option-${g.value}`,className:"flex w-full cursor-pointer items-center gap-2 p-2 hover:bg-gray-700",onClick:()=>E(g.value),children:[l?o.jsx(Zi,{currency:g.value,className:"size-5"}):null,g.title]},g.value))})}):null]})};/**
68 * react-router v7.18.2
69 *
70 * Copyright (c) Remix Software Inc.
71 *
72 * This source code is licensed under the MIT license found in the
73 * LICENSE.md file in the root directory of this source tree.
74 *
75 * @license MIT
76 */var g9=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,$S=/^[\\/]{2}/;function qX(e,t){return t+e.replace(/\\/g,"/")}var Zp="popstate";function Gp(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function YX(e={}){function t(s,r){var d;let a=(d=r.state)==null?void 0:d.masked,{pathname:i,search:l,hash:c}=a||s.location;return G6("",{pathname:i,search:l,hash:c},r.state&&r.state.usr||null,r.state&&r.state.key||"default",a?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function n(s,r){return typeof r=="string"?r:i1(r)}return XX(t,n,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ns(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function KX(){return Math.random().toString(36).substring(2,10)}function zp(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}
76function G6(e,t,n=null,s,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?gl(t):t,state:n,key:t&&t.key||s||KX(),mask:r}}function i1({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function gl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function XX(e,t,n,s={}){let{window:r=document.defaultView,v5Compat:a=!1}=s,i=r.history,l="POP",c=null,d=f();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function f(){return(i.state||{idx:null}).idx}function u(){l="POP";let v=f(),E=v==null?null:v-d;d=v,c&&c({action:l,location:b.location,delta:E})}function m(v,E){l="PUSH";let x=Gp(v)?v:G6(b.location,v,E);d=f()+1;let g=zp(x,d),A=b.createHref(x.mask||x);try{i.pushState(g,"",A)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;r.location.assign(A)}a&&c&&c({action:l,location:b.location,delta:1})}function p(v,E){l="REPLACE";let x=Gp(v)?v:G6(b.location,v,E);d=f();let g=zp(x,d),A=b.createHref(x.mask||x);i.replaceState(g,"",A),a&&c&&c({action:l,location:b.location,delta:0})}function C(v){return JX(r,v)}let b={get action(){return l},get location(){return e(r,i)},listen(v){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(Zp,u),c=v,()=>{r.removeEventListener(Zp,u),c=null}},createHref(v){return t(r,v)},createURL:C,encodeLocation(v){let E=C(v);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:m,replace:p,go(v){return i.go(v)}};return b}function JX(e,t,n=!1){let s="http://localhost";e&&(s=e.location.origin!=="null"?e.location.origin:e.location.href),lt(s,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:i1(t);return r=r.replace(/ $/,"%20"),!n&&$S.test(r)&&(r=s+r),new URL(r,s)}function BS(e,t,n="/"){return QX(e,t,n,!1)}function QX(e,t,n,s,r){let a=typeof t=="string"?gl(t):t,i=Rr(a.pathname||"/",n);if(i==null)return null;let l=eJ(e),c=null,d=uJ(i);for(let f=0;c==null&&f<l.length;++f)c=dJ(l[f],d,s);return c}function eJ(e){let t=US(e);return tJ(t),t}function US(e,t=[],n=[],s="",r=!1){let a=(i,l,c=r,d)=>{let f={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(s)&&c)return;lt(f.relativePath.startsWith(s),`Absolute route path "${f.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(s.length)}let u=ys([s,f.relativePath]),m=n.concat(f);i.children&&i.children.length>0&&(lt(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),US(i.children,t,m,u,c)),!(i.path==null&&!i.index)&&t.push({path:u,score:lJ(u,i.index),routesMeta:m.map((p,C)=>{let[b,v]=WS(p.relativePath,p.caseSensitive,C===m.length-1);return{...p,matcher:b,compiledParams:v}})})};return e.forEach((i,l)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))a(i,l);else for(let d of HS(i.path))a(i,l,!0,d)}),t}function HS(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(s.length===0)return r?[a,""]:[a];let i=HS(s.join("/")),l=[];return l.push(...i.map(c=>c===""?a:[a,c].join("/"))),r&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function tJ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cJ(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}var nJ=/^:[\w-]+$/,sJ=3,rJ=2,aJ=1,oJ=10,iJ=-2,qp=e=>e==="*";function lJ(e,t){let n=e.split("/"),s=n.length;return n.some(qp)&&(s+=iJ),t&&(s+=rJ),n.filter(r=>!qp(r)).reduce((r,a)=>r+(nJ.test(a)?sJ:a===""?aJ:oJ),s)}function cJ(e,t){return e.length===t.length&&e.slice(0,-1).every((s,r)=>s===t[r])?e[e.length-1]-t[t.length-1]:0}function dJ(e,t,n=!1){let{routesMeta:s}=e,r={},a="/",i=[];for(let l=0;l<s.length;++l){let c=s[l],d=l===s.length-1,f=a==="/"?t:t.slice(a.length)||"/",u={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},m=c.matcher&&c.compiledParams?VS(u,f,c.matcher,c.compiledParams):gd(u,f),p=c.route;if(!m&&d&&n&&!s[s.length-1].route.index&&(m=gd({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!m)return null;
76Object.assign(r,m.params),i.push({params:r,pathname:ys([a,m.pathname]),pathnameBase:hJ(ys([a,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(a=ys([a,m.pathnameBase]))}return i}function gd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=WS(e.path,e.caseSensitive,e.end);return VS(e,t,n,s)}function VS(e,t,n,s){let r=t.match(n);if(!r)return null;let a=r[0],i=a.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:s.reduce((d,{paramName:f,isOptional:u},m)=>{if(f==="*"){let C=l[m]||"";i=a.slice(0,a.length-C.length).replace(/(.)\/+$/,"$1")}const p=l[m];return u&&!p?d[f]=void 0:d[f]=(p||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:i,pattern:e}}function WS(e,t=!1,n=!0){ns(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c,d,f)=>{if(s.push({paramName:l,isOptional:c!=null}),c){let u=f.charAt(d+i.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),s]}function uJ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ns(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Rr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function fJ(e,t="/"){let{pathname:n,search:s="",hash:r=""}=typeof e=="string"?gl(e):e,a;return n?(n=ZS(n),n.startsWith("/")?a=Yp(n.substring(1),"/"):a=Yp(n,t)):a=t,{pathname:a,search:pJ(s),hash:gJ(r)}}function Yp(e,t){let n=wd(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function d3(e,t,n,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mJ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w9(e){let t=mJ(e);return t.map((n,s)=>s===t.length-1?n.pathname:n.pathnameBase)}function Pu(e,t,n,s=!1){let r;typeof e=="string"?r=gl(e):(r={...e},lt(!r.pathname||!r.pathname.includes("?"),d3("?","pathname","search",r)),lt(!r.pathname||!r.pathname.includes("#"),d3("#","pathname","hash",r)),lt(!r.search||!r.search.includes("#"),d3("#","search","hash",r)));let a=e===""||r.pathname==="",i=a?"/":r.pathname,l;if(i==null)l=n;else{let u=t.length-1;if(!s&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),u-=1;r.pathname=m.join("/")}l=u>=0?t[u]:"/"}let c=fJ(r,l),d=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}var ZS=e=>e.replace(/[\\/]{2,}/g,"/"),ys=e=>ZS(e.join("/")),wd=e=>e.replace(/\/+$/,""),hJ=e=>wd(e).replace(/^\/*/,"/"),pJ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gJ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,wJ=class{constructor(e,t,n,s=!1){this.status=e,this.statusText=t||"",this.internal=s,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function CJ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function xJ(e){let t=e.map(n=>n.route.path).filter(Boolean);return ys(t)||"/"}var GS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zS(e,t){let n=e;if(typeof n!="string"||!g9.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let s=n,r=!1;if(GS)try{let a=new URL(window.location.href),i=$S.test(n)?new URL(qX(n,a.protocol)):new URL(n),l=Rr(i.pathname,t);i.origin===a.origin&&l!=null?n=l+i.search+i.hash:r=!0}catch{ns(!1,`<Link to="${n}">
76 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qS=["POST","PUT","PATCH","DELETE"];new Set(qS);var yJ=["GET",...qS];new Set(yJ);var bJ=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function vJ(e){try{return bJ.includes(new URL(e).protocol)}catch{return!1}}var wl=y.createContext(null);wl.displayName="DataRouter";var Du=y.createContext(null);Du.displayName="DataRouterState";var YS=y.createContext(!1);function EJ(){return y.useContext(YS)}var KS=y.createContext({isTransitioning:!1});KS.displayName="ViewTransition";var SJ=y.createContext(new Map);SJ.displayName="Fetchers";var LJ=y.createContext(null);LJ.displayName="Await";var Wn=y.createContext(null);Wn.displayName="Navigation";var V1=y.createContext(null);V1.displayName="Location";var os=y.createContext({outlet:null,matches:[],isDataRoute:!1});os.displayName="Route";var C9=y.createContext(null);C9.displayName="RouteError";var XS="REACT_ROUTER_ERROR",AJ="REDIRECT",TJ="ROUTE_ERROR_RESPONSE";function _J(e){if(e.startsWith(`${XS}:${AJ}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function RJ(e){if(e.startsWith(`${XS}:${TJ}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new wJ(t.status,t.statusText,t.data)}catch{}}function NJ(e,{relative:t}={}){lt(Cl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=y.useContext(Wn),{hash:r,pathname:a,search:i}=W1(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:ys([n,a])),s.createHref({pathname:l,search:i,hash:r})}function Cl(){return y.useContext(V1)!=null}function Ms(){return lt(Cl(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(V1).location}var JS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function QS(e){y.useContext(Wn).static||y.useLayoutEffect(e)}function Or(){let{isDataRoute:e}=y.useContext(os);return e?ZJ():kJ()}function kJ(){lt(Cl(),"useNavigate() may be used only in the context of a <Router> component.");let e=y.useContext(wl),{basename:t,navigator:n}=y.useContext(Wn),{matches:s}=y.useContext(os),{pathname:r}=Ms(),a=JSON.stringify(w9(s)),i=y.useRef(!1);return QS(()=>{i.current=!0}),y.useCallback((c,d={})=>{if(ns(i.current,JS),!i.current)return;if(typeof c=="number"){n.go(c);return}let f=Pu(c,JSON.parse(a),r,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ys([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,r,e])}var IJ=y.createContext(null);function MJ(e){let t=y.useContext(os).outlet;return y.useMemo(()=>t&&y.createElement(IJ.Provider,{value:e},t),[t,e])}function Jde(){let{matches:e}=y.useContext(os),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function W1(e,{relative:t}={}){let{matches:n}=y.useContext(os),{pathname:s}=Ms(),r=JSON.stringify(w9(n));return y.useMemo(()=>Pu(e,JSON.parse(r),s,t==="path"),[e,r,s,t])}function OJ(e,t){return eL(e,t)}
76function eL(e,t,n){var v;lt(Cl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(Wn),{matches:r}=y.useContext(os),a=r[r.length-1],i=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",d=a&&a.route;{let E=d&&d.path||"";nL(l,!d||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
77
78Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let f=Ms(),u;if(t){let E=typeof t=="string"?gl(t):t;lt(c==="/"||((v=E.pathname)==null?void 0:v.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${E.pathname}" was given in the \`location\` prop.`),u=E}else u=f;let m=u.pathname||"/",p=m;if(c!=="/"){let E=c.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(E.length).join("/")}let C=n&&n.state.matches.length?n.state.matches.map(E=>Object.assign(E,{route:n.manifest[E.route.id]||E.route})):BS(e,{pathname:p});ns(d||C!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),ns(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=$J(C&&C.map(E=>Object.assign({},E,{params:Object.assign({},i,E.params),pathname:ys([c,s.encodeLocation?s.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:ys([c,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),r,n);return t&&b?y.createElement(V1.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...u},navigationType:"POP"}},b):b}function PJ(){let e=WJ(),t=CJ(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:s},a={padding:"2px 4px",backgroundColor:s},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:a},"ErrorBoundary")," or"," ",y.createElement("code",{style:a},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:r},n):null,i)}var DJ=y.createElement(PJ,null),tL=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=RJ(e.digest);n&&(e=n)}let t=e!==void 0?y.createElement(os.Provider,{value:this.props.routeContext},y.createElement(C9.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?y.createElement(FJ,{error:e},t):t}};tL.contextType=YS;var u3=new WeakMap;function FJ({children:e,error:t}){let{basename:n}=y.useContext(Wn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let s=_J(t.digest);if(s){let r=u3.get(t);if(r)throw r;let a=zS(s.location,n),i=a.absoluteURL||a.to;if(vJ(i))throw new Error("Invalid redirect location");
78if(GS&&!u3.get(t))if(a.isExternal||s.reloadDocument)window.location.href=i;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:s.replace}));throw u3.set(t,l),l}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function jJ({routeContext:e,match:t,children:n}){let s=y.useContext(wl);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(os.Provider,{value:e},n)}function $J(e,t=[],n){let s=n==null?void 0:n.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(t.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let r=e,a=s==null?void 0:s.errors;if(a!=null){let f=r.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);lt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),r=r.slice(0,Math.min(r.length,f+1))}let i=!1,l=-1;if(n&&s){i=s.renderFallback;for(let f=0;f<r.length;f++){let u=r[f];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=f),u.route.id){let{loaderData:m,errors:p}=s,C=u.route.loader&&!m.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||C){n.isStatic&&(i=!0),l>=0?r=r.slice(0,l+1):r=[r[0]];break}}}}let c=n==null?void 0:n.onError,d=s&&c?(f,u)=>{var m,p;c(f,{location:s.location,params:((p=(m=s.matches)==null?void 0:m[0])==null?void 0:p.params)??{},pattern:xJ(s.matches),errorInfo:u})}:void 0;return r.reduceRight((f,u,m)=>{let p,C=!1,b=null,v=null;s&&(p=a&&u.route.id?a[u.route.id]:void 0,b=u.route.errorElement||DJ,i&&(l<0&&m===0?(nL("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,v=null):l===m&&(C=!0,v=u.route.hydrateFallbackElement||null)));let E=t.concat(r.slice(0,m+1)),x=()=>{let g;return p?g=b:C?g=v:u.route.Component?g=y.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=f,y.createElement(jJ,{match:u,routeContext:{outlet:f,matches:E,isDataRoute:s!=null},children:g})};return s&&(u.route.ErrorBoundary||u.route.errorElement||m===0)?y.createElement(tL,{location:s.location,revalidation:s.revalidation,component:b,error:p,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:d}):x()},null)}function x9(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function BJ(e){let t=y.useContext(wl);return lt(t,x9(e)),t}function UJ(e){let t=y.useContext(Du);return lt(t,x9(e)),t}function HJ(e){let t=y.useContext(os);return lt(t,x9(e)),t}function y9(e){let t=HJ(e),n=t.matches[t.matches.length-1];return lt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function VJ(){return y9("useRouteId")}function WJ(){var s;let e=y.useContext(C9),t=UJ("useRouteError"),n=y9("useRouteError");return e!==void 0?e:(s=t.errors)==null?void 0:s[n]}function ZJ(){let{router:e}=BJ("useNavigate"),t=y9("useNavigate"),n=y.useRef(!1);return QS(()=>{n.current=!0}),y.useCallback(async(r,a={})=>{ns(n.current,JS),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var Kp={};function nL(e,t,n){!t&&!Kp[e]&&(Kp[e]=!0,ns(!1,n))}y.memo(GJ);function GJ({routes:e,manifest:t,future:n,state:s,isStatic:r,onError:a}){return eL(e,void 0,{manifest:t,state:s,isStatic:r,onError:a})}function Qde({to:e,replace:t,state:n,relative:s}){lt(Cl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=y.useContext(Wn);ns(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=y.useContext(os),{pathname:i}=Ms(),l=Or(),c=Pu(e,w9(a),i,s==="path"),d=JSON.stringify(c);return y.useEffect(()=>{l(JSON.parse(d),{replace:t,state:n,relative:s})},[l,d,s,t,n]),null}function eue(e){return MJ(e.context)}function zJ(e){lt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function qJ({basename:e="/",children:t=null,location:n,navigationType:s="POP",navigator:r,static:a=!1,useTransitions:i}){lt(!Cl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:r,static:a,useTransitions:i,future:{}}),[l,r,a,i]);typeof n=="string"&&(n=gl(n));let{pathname:d="/",search:f="",hash:u="",state:m=null,key:p="default",mask:C}
78=n,b=y.useMemo(()=>{let v=Rr(d,l);return v==null?null:{location:{pathname:v,search:f,hash:u,state:m,key:p,mask:C},navigationType:s}},[l,d,f,u,m,p,s,C]);return ns(b!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${u}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:y.createElement(Wn.Provider,{value:c},y.createElement(V1.Provider,{children:t,value:b}))}function tue({children:e,location:t}){return OJ(z6(e),t)}function z6(e,t=[]){let n=[];return y.Children.forEach(e,(s,r)=>{if(!y.isValidElement(s))return;let a=[...t,r];if(s.type===y.Fragment){n.push.apply(n,z6(s.props.children,a));return}lt(s.type===zJ,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let i={id:s.props.id||a.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(i.children=z6(s.props.children,a)),n.push(i)}),n}var O2="get",P2="application/x-www-form-urlencoded";function Fu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function YJ(e){return Fu(e)&&e.tagName.toLowerCase()==="button"}function KJ(e){return Fu(e)&&e.tagName.toLowerCase()==="form"}function XJ(e){return Fu(e)&&e.tagName.toLowerCase()==="input"}function JJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QJ(e,t){return e.button===0&&(!t||t==="_self")&&!JJ(e)}function q6(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(r=>[n,r]):[[n,s]])},[]))}function eQ(e,t){let n=q6(e);return t&&t.forEach((s,r)=>{n.has(r)||t.getAll(r).forEach(a=>{n.append(r,a)})}),n}var q0=null;function tQ(){if(q0===null)try{new FormData(document.createElement("form"),0),q0=!1}catch{q0=!0}return q0}var nQ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function f3(e){return e!=null&&!nQ.has(e)?(ns(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${P2}"`),null):e}function sQ(e,t){let n,s,r,a,i;if(KJ(e)){let l=e.getAttribute("action");s=l?Rr(l,t):null,n=e.getAttribute("method")||O2,r=f3(e.getAttribute("enctype"))||P2,a=new FormData(e)}else if(YJ(e)||XJ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(s=c?Rr(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||O2,r=f3(e.getAttribute("formenctype"))||f3(l.getAttribute("enctype"))||P2,a=new FormData(l,e),!tQ()){let{name:d,type:f,value:u}=e;if(f==="image"){let m=d?`${d}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else d&&a.append(d,u)}}else{if(Fu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=O2,s=null,r=P2,i=e}return a&&r==="text/plain"&&(i=a,a=void 0),{action:s,method:n.toLowerCase(),encType:r,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function b9(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sL(e,t,n,s){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${s}`:r.pathname=`${r.pathname}.${s}`:r.pathname==="/"?r.pathname=`_root.${s}`:t&&Rr(r.pathname,t)==="/"?r.pathname=`${wd(t)}/_root.${s}`:r.pathname=`${wd(r.pathname)}.${s}`,r}async function rQ(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
78isSpaMode,window.location.reload(),new Promise(()=>{})}}function aQ(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function oQ(e,t,n){let s=await Promise.all(e.map(async r=>{let a=t.routes[r.route.id];if(a){let i=await rQ(a,n);return i.links?i.links():[]}return[]}));return dQ(s.flat(1).filter(aQ).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Xp(e,t,n,s,r,a){let i=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,l=(c,d)=>{var f;return n[d].pathname!==c.pathname||((f=n[d].route.path)==null?void 0:f.endsWith("*"))&&n[d].params["*"]!==c.params["*"]};return a==="assets"?t.filter((c,d)=>i(c,d)||l(c,d)):a==="data"?t.filter((c,d)=>{var u;let f=s.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(i(c,d)||l(c,d))return!0;if(c.route.shouldRevalidate){let m=c.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((u=n[0])==null?void 0:u.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function iQ(e,t,{includeHydrateFallback:n}={}){return lQ(e.map(s=>{let r=t.routes[s.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))}function lQ(e){return[...new Set(e)]}function cQ(e){let t={},n=Object.keys(e).sort();for(let s of n)t[s]=e[s];return t}function dQ(e,t){let n=new Set;return new Set(t),e.reduce((s,r)=>{let a=JSON.stringify(cQ(r));return n.has(a)||(n.add(a),s.push({key:a,link:r})),s},[])}function v9(){let e=y.useContext(wl);return b9(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function uQ(){let e=y.useContext(Du);return b9(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var E9=y.createContext(void 0);E9.displayName="FrameworkContext";function ju(){let e=y.useContext(E9);return b9(e,"You must render this element inside a <HydratedRouter> element"),e}function fQ(e,t){let n=y.useContext(E9),[s,r]=y.useState(!1),[a,i]=y.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:f,onTouchStart:u}=t,m=y.useRef(null);y.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=E=>{E.forEach(x=>{i(x.isIntersecting)})},v=new IntersectionObserver(b,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),y.useEffect(()=>{if(s){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[s]);let p=()=>{r(!0)},C=()=>{r(!1),i(!1)};return n?e!=="intent"?[a,m,{}]:[a,m,{onFocus:nc(l,p),onBlur:nc(c,C),onMouseEnter:nc(d,p),onMouseLeave:nc(f,C),onTouchStart:nc(u,p)}]:[!1,m,{}]}function nc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mQ({page:e,...t}){let n=EJ(),{nonce:s}=ju(),{router:r}=v9(),a=y.useMemo(()=>BS(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?(t.nonce==null&&s&&(t={...t,nonce:s}),n?y.createElement(pQ,{page:e,matches:a,...t}):y.createElement(gQ,{page:e,matches:a,...t})):null}function hQ(e){let{manifest:t,routeModules:n}=ju(),[s,r]=y.useState([]);return y.useEffect(()=>{let a=!1;return oQ(e,t,n).then(i=>{a||r(i)}),()=>{a=!0}},[e,t,n]),s}function pQ({page:e,matches:t,...n}){let s=Ms(),{future:r}=ju(),{basename:a}=v9(),i=y.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let l=sL(e,a,r.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?c=!0:d.push(f.route.id);return c&&d.length>0&&l.searchParams.set("_routes",d.join(",")),[l.pathname+l.search]},[a,r.v8_trailingSlashAwareDataRequests,e,s,t]);return y.createElement(y.Fragment,null,i.map(l=>y.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function gQ({page:e,matches:t,...n}){let s=Ms(),{future:r,manifest:a,routeModules:i}=ju(),{basename:l}=v9(),{loaderData:c,matches:d}=uQ(),f=y.useMemo(()=>Xp(e,t,d,a,s,"data"),[e,t,d,a,s]),u=y.useMemo(()=>Xp(e,t,d,a,s,"assets"),[e,t,d,a,s]),m=y.useMemo(()=>
78{if(e===s.pathname+s.search+s.hash)return[];let b=new Set,v=!1;if(t.forEach(x=>{var A;let g=a.routes[x.route.id];!g||!g.hasLoader||(!f.some(k=>k.route.id===x.route.id)&&x.route.id in c&&((A=i[x.route.id])!=null&&A.shouldRevalidate)||g.hasClientLoader?v=!0:b.add(x.route.id))}),b.size===0)return[];let E=sL(e,l,r.v8_trailingSlashAwareDataRequests,"data");return v&&b.size>0&&E.searchParams.set("_routes",t.filter(x=>b.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[l,r.v8_trailingSlashAwareDataRequests,c,s,a,f,t,e,i]),p=y.useMemo(()=>iQ(u,a),[u,a]),C=hQ(u);return y.createElement(y.Fragment,null,m.map(b=>y.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),p.map(b=>y.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),C.map(({key:b,link:v})=>y.createElement("link",{key:b,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function wQ(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var CQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CQ&&(window.__reactRouterVersion="7.18.2")}catch{}function nue({basename:e,children:t,useTransitions:n,window:s}){let r=y.useRef();r.current==null&&(r.current=YX({window:s,v5Compat:!0}));let a=r.current,[i,l]=y.useState({action:a.action,location:a.location}),c=y.useCallback(d=>{n===!1?l(d):y.startTransition(()=>l(d))},[n]);return y.useLayoutEffect(()=>a.listen(c),[a,c]),y.createElement(qJ,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a,useTransitions:n})}var S9=y.forwardRef(function({onClick:t,discover:n="render",prefetch:s="none",relative:r,reloadDocument:a,replace:i,mask:l,state:c,target:d,to:f,preventScrollReset:u,viewTransition:m,defaultShouldRevalidate:p,...C},b){let{basename:v,navigator:E,useTransitions:x}=y.useContext(Wn),g=typeof f=="string"&&g9.test(f),A=zS(f,v);f=A.to;let k=NJ(f,{relative:r}),R=Ms(),O=null;if(l){let j=Pu(l,[],R.mask?R.mask.pathname:"/",!0);v!=="/"&&(j.pathname=j.pathname==="/"?v:ys([v,j.pathname])),O=E.createHref(j)}let[U,V,z]=fQ(s,C),G=vQ(f,{replace:i,mask:l,state:c,target:d,preventScrollReset:u,relative:r,viewTransition:m,defaultShouldRevalidate:p,useTransitions:x});function W(j){t&&t(j),j.defaultPrevented||G(j)}let I=!(A.isExternal||a),H=y.createElement("a",{...C,...z,href:(I?O:void 0)||A.absoluteURL||k,onClick:I?W:t,ref:wQ(b,V),target:d,"data-discover":!g&&n==="render"?"true":void 0});return U&&!g?y.createElement(y.Fragment,null,H,y.createElement(mQ,{page:k})):H});S9.displayName="Link";var xQ=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:s="",end:r=!1,style:a,to:i,viewTransition:l,children:c,...d},f){let u=W1(i,{relative:d.relative}),m=Ms(),p=y.useContext(Du),{navigator:C,basename:b}=y.useContext(Wn),v=p!=null&&TQ(u)&&l===!0,E=C.encodeLocation?C.encodeLocation(u).pathname:u.pathname,x=m.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(x=x.toLowerCase(),g=g?g.toLowerCase():null,E=E.toLowerCase()),g&&b&&(g=Rr(g,b)||g);const A=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let k=x===E||!r&&x.startsWith(E)&&x.charAt(A)==="/",R=g!=null&&(g===E||!r&&g.startsWith(E)&&g.charAt(E.length)==="/"),O={isActive:k,isPending:R,isTransitioning:v},U=k?t:void 0,V;typeof s=="function"?V=s(O):V=[s,k?"active":null,R?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(O):a;return y.createElement(S9,{...d,"aria-current":U,className:V,ref:f,style:z,to:i,viewTransition:l},typeof c=="function"?c(O):c)});xQ.displayName="NavLink";var yQ=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:s,replace:r,state:a,method:i=O2,action:l,onSubmit:c,relative:d,preventScrollReset:f,viewTransition:u,defaultShouldRevalidate:m,...p},C)=>{let{useTransitions:b}=y.useContext(Wn),v=LQ(),E=AQ(l,{relative:d}),x=i.toLowerCase()==="get"?"get":"post",g=typeof l=="string"&&g9.test(l),A=k=>{if(c&&c(k),k.defaultPrevented)return;k.preventDefault();let R=k.nativeEvent.submitter,O=(R==null?void 0:R.getAttribute("formmethod"))||i,U=()=>v(R||k.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:r,state:a,relative:d,preventScrollReset:f,viewTransition:u,defaultShouldRevalidate:m});b&&n!==!1?y.startTransition(()=>U()):U()};return y.createElement("form",{ref:C,method:x,action:E,onSubmit:s?c:A,...p,"data-discover":!g&&e==="render"?"true":void 0})});yQ.displayName="Form";function bQ(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rL(e){let t=y.useContext(wl);return lt(t,bQ(e)),t}function vQ(e,{target:t,replace:n,mask:s,state:r,preventScrollReset:a,relative:i,viewTransition:l,defaultShouldRevalidate:c,useTransitions:d}={}){let f=Or(),u=Ms(),m=W1(e,{relative:i});return y.useCallback(p=>{if(QJ(p,t)){p.preventDefault();let C=n!==void 0?n:i1(u)===i1(m),b=()=>f(e,{replace:C,mask:s,state:r,preventScrollReset:a,relative:i,viewTransition:l,defaultShouldRevalidate:c});d?y.startTransition(()=>b()):b()}},[u,f,m,n,s,r,t,e,a,i,l,c,d])}function sue(e){ns(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=y.useRef(q6(e)),n=y.useRef(!1),s=Ms(),r=y.useMemo(()=>eQ(s.search,n.current?null:t.current),[s.search]),a=Or(),i=y.useCallback((l,c)=>{const d=q6(typeof l=="function"?l(new URLSearchParams(r)):l);n.current=!0,a("?"+d,c)},[a,r]);return[r,i]}var EQ=0,SQ=()=>`__${String(++EQ)}__`;function LQ(){let{router:e}=rL("useSubmit"),{basename:t}=y.useContext(Wn),n=VJ(),s=e.fetch,r=e.navigate;return y.useCallback(async(a,i={})=>{let{action:l,method:c,encType:d,formData:f,body:u}=sQ(a,t);
78if(i.navigate===!1){let m=i.fetcherKey||SQ();await s(m,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await r(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[s,r,t,n])}function AQ(e,{relative:t}={}){let{basename:n}=y.useContext(Wn),s=y.useContext(os);lt(s,"useFormAction must be used inside a RouteContext");let[r]=s.matches.slice(-1),a={...W1(e||".",{relative:t})},i=Ms();if(e==null){a.search=i.search;let l=new URLSearchParams(a.search),c=l.getAll("index");if(c.some(f=>f==="")){l.delete("index"),c.filter(u=>u).forEach(u=>l.append("index",u));let f=l.toString();a.search=f?`?${f}`:""}}return(!e||e===".")&&r.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:ys([n,a.pathname])),i1(a)}function TQ(e,{relative:t}={}){let n=y.useContext(KS);lt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=rL("useViewTransitionState"),r=W1(e,{relative:t});if(!n.isTransitioning)return!1;let a=Rr(n.currentLocation.pathname,s)||n.currentLocation.pathname,i=Rr(n.nextLocation.pathname,s)||n.nextLocation.pathname;return gd(r.pathname,i)!=null||gd(r.pathname,a)!=null}const Jp=({onClick:e,disabled:t=!1,label:n,children:s})=>o.jsx(wn,{variant:"authMethod",onClick:e,disabled:t,"aria-label":n,children:s}),aL=()=>o.jsxs("div",{className:"flex w-full gap-2",children:[o.jsx("div",{className:"size-[18px] shrink-0",children:o.jsx(jX,{})}),o.jsx("span",{className:"text-xs text-brandblue-100",children:w("check_spam_notice")})]});class oL extends Error{constructor(t,n){super(`${t} did not settle within ${n}ms`),this.step=t,this.timeoutMs=n,this.name="DeadlineExceededError"}}const _Q=e=>e instanceof oL,RQ=(e,t,n)=>{let s;const r=new Promise((a,i)=>{s=setTimeout(()=>i(new oL(n,t)),t)});return Promise.race([e,r]).finally(()=>clearTimeout(s))},rue=(e,t)=>{let n=null;const s=()=>{n!==null&&(clearTimeout(n),n=null)};return{arm:()=>{s(),n=setTimeout(()=>{n=null,t()},e)},disarm:s}},Qp=new Map,iL=e=>{if(typeof document>"u")return Promise.resolve();const t=Qp.get(e);if(t)return t;const n=new Promise((s,r)=>{const a=document.createElement("script");a.src=e,a.async=!0,a.onload=()=>s(),a.onerror=()=>r(new Error(`Failed to load script ${e}`)),document.head.appendChild(a)});return Qp.set(e,n),n},NQ="https://js.hcaptcha.com/1/api.js?render=onload",kQ="a696f716-644c-4034-b4fa-56dc4f64766e",Y6="captcha-container",IQ=3e4,lL=()=>typeof window<"u"&&typeof window.hcaptcha<"u",MQ=()=>iL(NQ),eg=new WeakSet,OQ=(e=Y6)=>{if(!lL())return;const t=document.getElementById(e);!t||eg.has(t)||(eg.add(t),window.hcaptcha.render(t,{sitekey:kQ,callback:n=>gT(n),theme:"dark"}))},$u=async()=>{if(!(typeof window<"u"&&window.location.hostname==="localhost")){if(!lL())throw new Error("hCaptcha is not available");await RQ(window.hcaptcha.execute({async:!0}),IQ,"hcaptcha.execute")}},cL=async e=>{try{await $u();const t=await wT({email:e});if(!(t!=null&&t.hash))throw new Error(w("auth.error.generic"));return ew(t.hash),""}catch(t){return console.error("OTP request error:",t),CT(xT(t)??0)?w("auth.error.too_many_login_attempts"):w("auth.error.generic")}},Jr=6,m3=e=>e.replace(/\s+/g,"").slice(0,Jr),Z1=({onConfirm:e,code:t="",inputMode:n="text"})=>{const s=y.useRef(null),[r,a]=y.useState(""),[i,l]=y.useState(!0),[c,d]=y.useState(!1),f=y.useRef(!1),u=y.useRef(e);u.current=e;const m=y.useCallback(async b=>{try{await u.current(b)==="error"&&l(!1)}catch(v){console.error(v),l(!1)}},[]);y.useEffect(()=>{const b=v=>{var g;const E=((g=v.clipboardData)==null?void 0:g.getData("text"))??"";if(E.length!==Jr)return;const x=m3(E);v.stopPropagation(),v.preventDefault(),a(x),m(x)};return window.addEventListener("paste",b),()=>window.removeEventListener("paste",b)},[m]),y.useEffect(()=>{var b;
78if((b=s.current)==null||b.focus(),t&&t.length===Jr&&!f.current){const v=m3(t);f.current=!0,a(v),m(v)}},[t,m]);const p=b=>{const v=m3(b.target.value);a(v),v.length===Jr&&m(v)},C=b=>{b.key==="Enter"&&r.length===Jr&&m(r)};return o.jsxs("div",{className:"relative flex flex-row gap-x-2",children:[Array.from({length:Jr}).map((b,v)=>o.jsx("div",{"aria-hidden":!0,className:ie("flex h-14 w-11 items-center justify-center rounded-xl border bg-gunmetal text-center text-white",i?"border-[#323A4C]":"border-[#FF5244]"),children:r[v]??(c&&v===r.length?o.jsx("span",{className:"h-6 w-px animate-otp-caret bg-white"}):null)},v)),o.jsx("input",{ref:s,type:"text",inputMode:n,autoComplete:"one-time-code",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:Jr,value:r,"aria-label":`${Jr}-character verification code`,className:"absolute inset-0 size-full bg-transparent text-transparent caret-transparent outline-none [-webkit-text-fill-color:transparent] focus:outline-none",onChange:p,onKeyDown:C,onFocus:()=>d(!0),onBlur:()=>d(!1)})]})},tg=e=>e===0?60:e===1?120:300,PQ=e=>{if(e<60)return`${e}`;const t=Math.floor(e/60),n=e%60;return`${t}:${n.toString().padStart(2,"0")}`},dL=({onResend:e})=>{const[t,n]=y.useState(0),[s,r]=y.useState(()=>tg(0)),[a,i]=y.useState(!1),[l,c]=y.useState(!1),d=y.useRef(e);d.current=e,y.useEffect(()=>{r(tg(t)),i(!1);const m=setInterval(()=>{r(p=>p<=1?(i(!0),clearInterval(m),0):p-1)},1e3);return()=>clearInterval(m)},[t]);const f=y.useCallback(async()=>{if(!(!a||l)){c(!0);try{await d.current(),n(m=>m+1)}catch(m){console.error("Resend failed:",m)}finally{c(!1)}}},[a,l]),u=l?`${w("auth.resending")}...`:a?w("auth.resend_code"):`${w("auth.resend_code")} (${PQ(s)})`;return o.jsx("button",{type:"button",onClick:()=>void f(),disabled:!a||l,className:ie("text-sm underline transition-colors disabled:cursor-not-allowed disabled:opacity-50",a?"text-white":"text-gray-200"),children:u})},ng=(e,t)=>{try{return(e==null?void 0:e.getItem(t))==="true"}catch{return!1}},DQ=(e,t)=>{try{e==null||e.setItem(t,"true")}catch{}},Cd=()=>typeof window>"u"?void 0:window.localStorage,FQ=()=>typeof window>"u"?void 0:window.sessionStorage,jQ=e=>ng(Cd(),e)||ng(FQ(),e),$Q=e=>DQ(Cd(),e),aue=(e,t)=>{var n,s;try{t?(n=Cd())==null||n.setItem(e,"true"):(s=Cd())==null||s.removeItem(e)}catch{}},BQ=y.createContext(null),Os=()=>{const e=y.useContext(BQ);if(!e)throw new Error("useModals must be used inside <ModalHost />");return e},oue=(e,t,n=()=>{})=>({openModal:(s,r={})=>{const a=n(s);if(a&&jQ(a))return;const i=new URLSearchParams(window.location.search);Object.entries(r).forEach(([l,c])=>{c!==void 0&&i.set(l,c)}),i.set(r3,s),e(`${wr()}?${i.toString()}`)},closeModal:s=>{const r=new URLSearchParams(window.location.search),a=r.get(r3);if(Te(yT(a)),!a||s&&a!==s)return;const i=n(a);i&&$Q(i),r.delete(r3),t(a).forEach(d=>r.delete(d));const l=r.toString(),c=`${wr()}${l?`?${l}`:""}`;c!==`${wr()}${window.location.search}`&&e(c,{replace:!0})}}),UQ=({code:e="",email:t="",mode:n,onChangeEmail:s,onLoginSuccess:r,onTwoFaEnabled:a})=>{const{closeModal:i}=Os(),[l,c]=y.useState(!1),[d,f]=y.useState(""),[u,m]=y.useState(!1),p=n==="verify"?v3():t,C=async x=>{const g=ST();if(Wo(g?"OTP code entered":"No OTP hash"),!g)return c(!0),"error";c(!1);try{const{success:A,playBlocked:k,oneTime2FAToken:R}=await LT({hash:g,code:x});return A?(AT(),l8("email"),R?a(R):r(),"ok"):k?(i(),sw(),"ok"):"error"}catch(A){return console.error("Login OTP error:",A),"error"}},b=async x=>{if(!bT.getState())return console.error("No verification hash found"),Wo("Email verification - No hash"),"error";Wo("Email verification code entered");try{if(!await vT(x)){const k=ET.getState();return console.error("Email verification error:",k),Wo("Email verification failed",{error:k}),"error"}return Wo("Email verified successfully"),l8("email"),r(),nw(!1),"ok"}catch(A){return console.error("Email verification error:",A),Wo("Email verification failed",{error:A}),"error"}},v=async x=>{const g=await(n==="verify"?b(x):C(x));return m(g==="error"),g},E=async()=>{if(n==="login"){const g=await cL(t);if(f(g),g)throw new Error(g);return}const x=v3();x&&await tw({email:x})};return o.jsxs("div",{className:"flex h-full flex-col justify-between",children:[o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3",children:[o.jsx("div",{className:"text-center",children:w("auth.paste_code")}),p||s?o.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-2 text-center text-sm",children:[p?o.jsx("span",{className:"break-all text-gray-200",children:w("auth.code_sent_to",{email:p})}
78):null,s?o.jsx("button",{type:"button",onClick:s,className:"text-[#7086FF] underline",children:w("auth.change_email")}):null]}):null,o.jsx(Z1,{onConfirm:v,code:e}),l?o.jsx("div",{role:"alert",className:"text-center",children:w("auth.otp_open_original_browser")}):u?o.jsx("div",{role:"alert",className:"text-center text-sm text-error",children:w("auth.error.code")}):null,n==="verify"||p?o.jsx(dL,{onResend:E}):null,d?o.jsx("div",{role:"alert",className:"text-center text-sm text-error",children:d}):null]}),o.jsx(aL,{})]})},HQ=["errors.","auth."],VQ="errors.generic",uL=e=>e instanceof Error&&HQ.some(t=>e.message.startsWith(t))?e.message:VQ,WQ=({switchToLogin:e})=>{const[t,n]=y.useState(""),[s,r]=y.useState(!1),[a,i]=y.useState(""),l=async()=>{i("");try{await $u(),await TT(t)}catch(f){i(uL(f));return}r(!0)},c=f=>{f.preventDefault(),f.stopPropagation(),l()},d=o.jsx("button",{type:"button","data-testid":"forgot-password-back-to-login",className:"text-sm text-brandblue-100 underline underline-offset-2 hover:text-white",onClick:e,children:w("auth.back_to_login")});return s?o.jsx("div",{className:"flex h-full flex-col items-center justify-center",children:o.jsxs("div",{className:"flex flex-col items-center gap-6",children:[o.jsx("div",{className:"rounded-full bg-[#1D2A26] p-4",children:o.jsx(FX,{className:"size-14 text-[#73DA69]"})}),o.jsx("div",{className:"items-center justify-center text-center text-xl font-semibold",children:w("auth.reset_link_sent")}),d]})}):o.jsxs("form",{className:"relative flex h-full flex-col items-center justify-between gap-4 md:justify-start",onSubmit:c,children:[o.jsxs("div",{className:"flex w-full flex-1 flex-col",children:[o.jsx("label",{className:"mb-2 w-full text-left text-sm text-input-text",htmlFor:"email_or_username",children:w("auth.we_will_send_email")}),o.jsx("input",{id:"email_or_username",name:"email_or_username",className:"h-10 w-full rounded-lg border-1 border-border-primary bg-input-background p-3 text-[0.72em] text-input-text placeholder:text-input-placeholder",type:"text",placeholder:w("auth.form.email_or_username"),value:t,onChange:f=>n(f.target.value),required:!0})]}),a?o.jsx("div",{className:"mt-2 w-full text-left text-sm text-red-500",children:w(a)}):null,o.jsx(wn,{variant:"primary",className:"mt-2 w-full",type:"submit",children:w("auth.send_reset_link")}),d]})},Vs=({name:e,error:t=null,condensed:n=!1,onFocus:s,onBlur:r,...a})=>{const[i,l]=y.useState(!1),c=!!t&&!i;return o.jsxs("div",{className:"flex w-full flex-col",children:[o.jsx("input",{id:e,name:e,className:ie("h-10 w-full rounded-xl p-3 text-[12px] text-white placeholder:text-[#ADAFCE] focus:border-2 focus:border-[#7086FF] focus:outline-none",c?"bg-[linear-gradient(to_right,_#FF5244_4px,_#323A4C_4px)]":"bg-[#323A4C]",n&&!t?"mb-5":""),onFocus:d=>{l(!0),s==null||s(d)},onBlur:d=>{l(!1),r==null||r(d)},...a}),t?o.jsx("div",{className:"min-h-5 break-words text-sm leading-5 text-[#FF5244]",children:t}):null]})},ZQ=({email:e,initialTab:t="password",onEmailChange:n,onSuccess:s,onTwoFaEnabled:r,switchToRegister:a,switchToEmailVerify:i,switchToForgotPassword:l})=>{const{closeModal:c}=Os(),[d,f]=y.useState(t),[u,m]=y.useState(""),[p,C]=y.useState(""),[b,v]=y.useState(""),[E,x]=y.useState(""),g=async()=>{if(!D2(e)){C(w("auth.error.invalid_email"));return}const R=await cL(e);if(R){C(R);return}i(),rw()},A=async()=>{try{await $u();const R=await _T({identifier:e,password:u});if(R!=null&&R.accountNotFound){v(""),x(e);return}R!=null&&R.playBlocked&&(c(),sw()),R!=null&&R.oneTime2FAToken?r(R.oneTime2FAToken):s()}catch(R){console.error("Login error:",R),x(""),v(w("auth.error.invalid_credentials"))}},k=R=>{R.preventDefault(),d==="password"?A():g()};return o.jsxs("form",{className:"relative flex h-full flex-col items-center justify-between gap-4 md:justify-start",onSubmit:k,children:[o.jsxs("div",{role:"tablist",className:"flex w-full flex-row items-stretch justify-between rounded-lg bg-gunmetal p-1 text-sm font-medium text-[#ADAFCE]",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":d==="password","aria-label":w("auth.form.password"),onClick:R=>{R.preventDefault(),R.stopPropagation(),f("password")},className:ie("flex w-full flex-col items-center justify-center rounded-lg p-1",d==="password"?"bg-[#323A4C]":""),children:o.jsxs("div",{className:ie("flex flex-row items-center justify-center gap-2 text-sm",d==="password"?"text-white":""),children:[o.jsx(PX,{"aria-hidden":!0,
78className:"size-4"}),w("auth.form.password")]})}),o.jsx("button",{type:"button",role:"tab","aria-selected":d==="otp","aria-label":w("auth.form.otp"),onClick:R=>{R.preventDefault(),R.stopPropagation(),f("otp")},className:ie("flex w-full flex-col items-center justify-center rounded-lg",d==="otp"?"bg-[#323A4C]":""),children:o.jsxs("div",{className:ie("flex flex-row items-center justify-center gap-2 pl-2 text-sm",d==="otp"?"text-white":""),children:[o.jsx(DX,{"aria-hidden":!0,className:"size-4"}),w("auth.form.otp")]})})]}),o.jsxs("div",{className:"flex w-full flex-1 flex-col gap-2 md:flex-none",children:[d==="otp"?o.jsx(Vs,{name:"email",type:"email",placeholder:w("auth.form.email"),value:e,onChange:R=>n(R.target.value),required:!0,error:p}):null,d==="password"?o.jsxs(o.Fragment,{children:[o.jsx(Vs,{name:"email_or_username",type:"text",placeholder:w("auth.form.email_or_username"),value:e,onChange:R=>n(R.target.value),required:!0}),o.jsxs("div",{className:"relative w-full",children:[o.jsx(Vs,{name:"password",type:"password",placeholder:w("auth.form.password"),value:u,onChange:R=>m(R.target.value),required:!0,error:b}),o.jsx("button",{type:"button",onClick:l,className:"absolute right-0 top-[10px] flex items-center pr-3 text-xs text-gray-500 underline hover:text-gray-700",children:w("auth.forgot_password")})]}),E?o.jsxs("div",{role:"alert",className:"break-words text-sm text-[#FF5244]",children:[w("auth.error.account_not_found",{identifier:E})," ",o.jsx("button",{type:"button",onClick:()=>a(E),children:o.jsx("span",{className:"cursor-pointer text-[#7086FF] underline",children:w("auth.create_one")})})]}):null]}):null]}),o.jsx(wn,{variant:"primary",className:"mt-2 w-full",type:"submit",children:w("auth.login")}),o.jsxs("div",{className:"text-sm font-medium",children:[w("auth.dont_have_account")," ",o.jsx("button",{type:"button",onClick:()=>a(),children:o.jsx("span",{className:"cursor-pointer text-[#7086FF] underline",children:w("auth.register")})})]})]})},xd=(e,t)=>{const n=e.clipboardData.getData("text"),s=n.trim();if(s===n)return;e.preventDefault();const{value:r,selectionStart:a,selectionEnd:i}=e.currentTarget,l=a??r.length,c=i??r.length;t(`${r.slice(0,l)}${s}${r.slice(c)}`)},GQ={too_short:"auth.error.password_too_short",missing_letter:"auth.error.password_missing_letter",missing_number:"auth.error.password_missing_number",edge_whitespace:"auth.error.password_edge_whitespace"},zQ=!1,qQ=({initialIdentifier:e="",onSuccess:t,switchToLogin:n,switchToEmailVerify:s,loginAndSwitchToEmailVerify:r})=>{const[a,i]=y.useState(e),[l,c]=y.useState(""),[d,f]=y.useState(""),[u,m]=y.useState(!1),[p,C]=y.useState(!1),[b,v]=y.useState(zQ),[E,x]=y.useState(""),[g,A]=y.useState(""),k=async()=>{const O=a.trim(),U=RT(O)?"":w("auth.error.invalid_email_or_username"),V=aw(l),z=V?w(GQ[V]):"";if(x(U),A(z),U||z)return;await $u();const G=await NT({identifier:O,password:l,promocode:d});if(G){if(G.error==="username_exists"){x(w("auth.error.username_exists"));return}if(G.error==="request_failed"){x(w("auth.error.generic"));return}if(G.oneTimeHash){ew(G.oneTimeHash),s();return}kT(O)?(IT(O),r()):(rw(),t())}},R=O=>{O.preventDefault(),k()};return o.jsxs("form",{className:"relative flex h-full flex-col items-center justify-between gap-2 md:justify-start",onSubmit:R,children:[o.jsxs("div",{className:"flex w-full flex-1 flex-col gap-y-2 md:flex-none",children:[o.jsx(Vs,{name:"identifier",type:"text",placeholder:w("auth.form.email_or_username"),value:a,onChange:O=>i(O.target.value),required:!0,error:E}),o.jsxs("div",{className:"relative w-full",children:[o.jsx(Vs,{name:"password",type:u?"text":"password",placeholder:w("auth.form.password"),value:l,onChange:O=>c(O.target.value),onPaste:O=>xd(O,c),required:!0,error:g}),o.jsx("button",{type:"button",onClick:()=>m(O=>!O),className:"absolute right-0 top-[10px] flex items-center pr-3 text-gray-500","aria-label":u?"Hide password":"Show password",children:u?o.jsx(pd,{}):o.jsx(hd,{})}),o.jsxs("div",{className:"flex flex-col items-start gap-2",children:[o.jsx("button",{type:"button",className:"text-[#ADAFCE]",onClick:()=>C(O=>!O),children:o.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 pt-2 text-xs",children:[o.jsx("div",{children:w("auth.form.have_promocode")}),p?o.jsx(BX,{className:"size-4"}):o.jsx($X,{className:"size-4"})]})}),p?o.jsx(Vs,{name:"promocode",type:"text",placeholder:w("auth.form.promocode"),value:d,onChange:O=>f(O.target.value)}):null]})]}),o.jsxs("div",{className:"flex flex-row items-center gap-2",children:[o.jsx("button",{type:"button",id:"terms",role:"checkbox","aria-checked":b,"aria-labelledby":"terms-label",onClick:()=>v(O=>
78!O),className:ie("inline-flex size-5 min-w-[20px] items-center justify-center rounded-xs transition-all duration-150 ease-in-out",b?"bg-brand-tertiary":"border border-border-primary bg-input-background"),children:b?o.jsx(UX,{className:"text-black-50"}):null}),o.jsx("label",{id:"terms-label",htmlFor:"terms",className:"text-xs font-normal leading-none text-label-secondary [&_a]:text-brandblue-300",dangerouslySetInnerHTML:{__html:w("auth.accept_terms")}})]})]}),o.jsx(wn,{variant:"primary",className:"mt-2 w-full",type:"submit",disabled:!b,children:w("auth.create_account")}),o.jsxs("div",{className:"text-sm font-medium",children:[w("auth.already_registered")," ",o.jsx("button",{type:"button",onClick:n,children:o.jsx("span",{className:"cursor-pointer text-[#7086FF] underline",children:w("auth.login")})})]})]})},sg="h-10 w-full rounded-lg border-1 border-border-primary bg-input-background px-3 text-[0.72em] text-input-text placeholder:text-input-placeholder",YQ=({resetPasswordToken:e,onSuccess:t,on2faEnabled:n})=>{const[s,r]=y.useState(""),[a,i]=y.useState(""),[l,c]=y.useState(!1),[d,f]=y.useState(!1),[u,m]=y.useState(!0),[p,C]=y.useState(""),[b,v]=y.useState(""),E=async()=>{if(v(""),s!==a){m(!1);return}const g=aw(s);if(g){C(g==="edge_whitespace"?"auth.error.password_edge_whitespace":"auth.password_requirements");return}let A;try{A=await MT({password:s,token:e})}catch(k){v(uL(k));return}if(A.oneTime2FAToken){n(A.oneTime2FAToken);return}t()},x=g=>{g.preventDefault(),g.stopPropagation(),E()};return o.jsxs("form",{className:"relative flex h-full flex-col items-center justify-between gap-4 md:justify-start",onSubmit:x,children:[o.jsxs("div",{className:"flex w-full flex-1 flex-col gap-2",children:[o.jsx("label",{className:"w-full text-left text-sm",htmlFor:"password",children:w("auth.new_password")}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"password",name:"password",className:sg,type:l?"text":"password",placeholder:w("auth.form.password"),value:s,onChange:g=>r(g.target.value),onPaste:g=>xd(g,r),required:!0}),o.jsx("button",{type:"button",onClick:()=>c(g=>!g),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500 hover:text-gray-700","aria-label":l?"Hide password":"Show password",children:l?o.jsx(pd,{}):o.jsx(hd,{})})]}),o.jsx("label",{className:"w-full text-left text-sm",htmlFor:"confirmationPassword",children:w("auth.confirm_password")}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"confirmationPassword",name:"confirmationPassword",className:sg,type:d?"text":"password",placeholder:w("auth.form.password"),value:a,onChange:g=>i(g.target.value),onPaste:g=>xd(g,i),required:!0}),u?null:o.jsx("div",{className:"mt-1 text-sm text-red-500",children:w("auth.passwords_do_not_match")}),p?o.jsx("div",{className:"mt-1 text-sm text-red-500",children:w(p)}):null,o.jsx("button",{type:"button",onClick:()=>f(g=>!g),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500 hover:text-gray-700","aria-label":d?"Hide password":"Show password",children:d?o.jsx(pd,{}):o.jsx(hd,{})})]})]}),b?o.jsx("div",{className:"mt-2 w-full text-left text-sm text-red-500",children:w(b)}):null,o.jsx(wn,{variant:"primary",className:"mt-2 w-full",type:"submit",children:w("auth.confirm")})]})},KQ=()=>o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"h-px w-full bg-border-primary"}),o.jsx("span",{className:"px-2.5 text-label-secondary",children:w("auth.separator.or")}),o.jsx("span",{className:"h-px w-full bg-border-primary"})]});typeof window<"u"&&(window.onTelegramAuth=e=>Ry(e));const XQ=({visible:e})=>{const t=y.useRef(null);return y.useEffect(()=>{const n=t.current;if(!n||n.childElementCount>0)return;const s=document.createElement("script");s.src=Sj,s.async=!0,s.setAttribute("data-telegram-login",OT()),s.setAttribute("data-size","large"),s.setAttribute("data-radius","8"),s.setAttribute("data-onauth","onTelegramAuth(user)"),s.setAttribute("data-request-access","write"),n.appendChild(s)},[]),o.jsx("div",{ref:t,className:"mx-auto flex flex-col gap-3",style:e?void 0:{display:"none"},"data-testid":"telegram-login-widget"})},JQ=({twoFAToken:e,onFinished:t})=>o.jsx(Z1,{onConfirm:async n=>{const s=await PT({totpCode:n,preAuthToken:e});return t(s),s},inputMode:"numeric"}),QQ="/assets/open-wallet-oW9DTUx5.webp",zn={strokeWidth:.0627743,strokeLinecap:"round",strokeLinejoin:"round"},eee=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsx("path",{d:"M17.2065 2.22852L10.9604 6.86754L12.1155 4.13058L17.2065 2.22852Z",fill:"#E2761B",stroke:"#E2761B",...zn}),o.jsx("path",{d:"M2.78718 2.22852L8.98301 6.91148L7.88446 4.13058L2.78718 2.22852ZM14.9591 12.9818L13.2956 15.5304L16.8549 16.5097L17.8781 13.0383L14.9591 12.9818ZM2.12805 13.0383L3.145 16.5097L6.7043 15.5304L5.04078 12.9818L2.12805 13.0383Z",fill:"#E4761B",stroke:"#E4761B",...zn}),o.jsx("path",{d:"M6.50355 8.67551L5.51172 10.1758L9.04591 10.3328L8.92037 6.53491L6.50355 8.67551ZM13.4903 8.67551L11.0421 6.49097L10.9605 10.3328L14.4885 10.1758L13.4903 8.67551ZM6.70443 15.5305L8.8262 14.4947L6.99319 13.0634L6.70443 15.5305ZM11.1677 14.4947L13.2957 15.5305L13.0007 13.0634L11.1677 14.4947Z",fill:"#E4761B",stroke:"#E4761B",...zn}),o.jsx("path",{d:"M13.2955 15.5304L11.1675 14.4946L11.337 15.8819L11.3181 16.4657L13.2955 15.5304ZM6.70422 15.5304L8.68162 16.4657L8.66906 15.8819L8.826 14.4946L6.70422 15.5304Z",fill:"#D7C1B3",stroke:"#D7C1B3",...zn}
78),o.jsx("path",{d:"M8.71311 12.147L6.94287 11.6259L8.19208 11.0547L8.71311 12.147ZM11.2806 12.147L11.8016 11.0547L13.0571 11.6259L11.2806 12.147Z",fill:"#233447",stroke:"#233447",...zn}),o.jsx("path",{d:"M6.70441 15.5304L7.00573 12.9818L5.04089 13.0383L6.70441 15.5304ZM12.9944 12.9818L13.2957 15.5304L14.9592 13.0383L12.9944 12.9818ZM14.4884 10.1758L10.9605 10.3327L11.2869 12.1469L11.808 11.0546L13.0635 11.6259L14.4884 10.1758ZM6.94296 11.6259L8.19844 11.0546L8.71319 12.1469L9.0459 10.3327L5.5117 10.1758L6.94296 11.6259Z",fill:"#CD6116",stroke:"#CD6116",...zn}),o.jsx("path",{d:"M5.51172 10.1758L6.99319 13.0634L6.94297 11.6259L5.51172 10.1758ZM13.0635 11.6259L13.0007 13.0634L14.4885 10.1758L13.0635 11.6259ZM9.04591 10.3327L8.71321 12.1469L9.12752 14.2875L9.22168 11.4689L9.04591 10.3327ZM10.9605 10.3327L10.791 11.4627L10.8664 14.2875L11.287 12.1469L10.9605 10.3327Z",fill:"#E4751F",stroke:"#E4751F",...zn}),o.jsx("path",{d:"M11.2869 12.147L10.8663 14.2876L11.1676 14.4948L13.0006 13.0635L13.0634 11.626L11.2869 12.147ZM6.94287 11.626L6.99309 13.0635L8.8261 14.4948L9.12742 14.2876L8.71311 12.147L6.94287 11.626Z",fill:"#F6851B",stroke:"#F6851B",...zn}),o.jsx("path",{d:"M11.3181 16.4656L11.337 15.8818L11.18 15.7437H8.81344L8.66906 15.8818L8.68162 16.4656L6.70422 15.5303L7.39474 16.0952L8.79461 17.0682H11.1989L12.605 16.0952L13.2955 15.5303L11.3181 16.4656Z",fill:"#C0AD9E",stroke:"#C0AD9E",...zn}),o.jsx("path",{d:"M11.1676 14.4948L10.8663 14.2876H9.12744L8.82613 14.4948L8.66919 15.8821L8.81357 15.744H11.1802L11.3371 15.8821L11.1676 14.4948Z",fill:"#161616",stroke:"#161616",...zn}),o.jsx("path",{d:"M17.4701 7.16886L18.0037 4.60766L17.2064 2.22852L11.1675 6.7106L13.4902 8.67544L16.7733 9.63589L17.5015 8.78844L17.1876 8.56245L17.6898 8.1042L17.3006 7.80288L17.8028 7.41995L17.4701 7.16886ZM1.99622 4.60766L2.5298 7.16886L2.19082 7.41995L2.69301 7.80288L2.31009 8.1042L2.81228 8.56245L2.49841 8.78844L3.22032 9.63589L6.50341 8.67544L8.82606 6.7106L2.78717 2.22852L1.99622 4.60766Z",fill:"#763D16",stroke:"#763D16",...zn}),o.jsx("path",{d:"M16.7733 9.63593L13.4902 8.67548L14.4883 10.1758L13.0006 13.0634L14.9591 13.0383H17.8781L16.7733 9.63593ZM6.50342 8.67548L3.22033 9.63593L2.12805 13.0383H5.04078L6.99306 13.0634L5.51159 10.1758L6.50342 8.67548ZM10.9604 10.3327L11.1676 6.71064L12.1217 4.13062H7.88446L8.82608 6.71064L9.04579 10.3327L9.12111 11.4752L9.12739 14.2875H10.8662L10.8788 11.4752L10.9604 10.3327Z",fill:"#F6851B",stroke:"#F6851B",...zn})]}),tee=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsxs("g",{clipPath:"url(#phantom-clip)",children:[o.jsx("mask",{id:"phantom-mask",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"-1",width:"20",height:"21",children:o.jsx("path",{d:"M20 9.99976C20 4.47691 15.5228 -0.000244141 10 -0.000244141C4.47715 -0.000244141 0 4.47691 0 9.99976C0 15.5226 4.47715 19.9998 10 19.9998C15.5228 19.9998 20 15.5226 20 9.99976Z",fill:"white"})}),o.jsxs("g",{mask:"url(#phantom-mask)",children:[o.jsx("path",{d:"M20 -0.000244141H0V19.9998H20V-0.000244141Z",fill:"#AB9FF2"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70369 12.7469C7.91841 13.9502 6.60251 15.473 4.85154 15.473C4.02381 15.473 3.22791 15.1322 3.22791 13.652C3.22791 9.88237 8.37471 4.04688 13.1501 4.04688C15.8668 4.04688 16.9492 5.93169 16.9492 8.07209C16.9492 10.8195 15.1664 13.9608 13.3942 13.9608C12.8317 13.9608 12.5558 13.652 12.5558 13.1622C12.5558 13.0344 12.5771 12.896 12.6195 12.7469C12.0146 13.7798 10.8473 14.7382 9.75427 14.7382C8.95837 14.7382 8.55512 14.2377 8.55512 13.5349C8.55512 13.2793 8.60817 13.0131 8.70369 12.7469ZM12.8173 7.99786C12.8173 8.62156 12.4493 8.93339 12.0377 8.93339C11.6198 8.93339 11.2581 8.62156 11.2581 7.99786C11.2581 7.37416 11.6198 7.06231 12.0377 7.06231C12.4493 7.06231 12.8173 7.37416 12.8173 7.99786ZM15.1562 7.99787C15.1562 8.62157 14.7882 8.93342 14.3766 8.93342C13.9587 8.93342 13.5969 8.62157 13.5969 7.99787C13.5969 7.37418 13.9587 7.06234 14.3766 7.06234C14.7882 7.06234 15.1562 7.37418 15.1562 7.99787Z",fill:"#FFFDF8"})]})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"phantom-clip",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),nee=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsx("path",{d:"M0.999756 2.88895L9.84891 0V20C3.52809 17.3337 0.999756 12.2227 0.999756 9.3338V2.88945V2.88895Z",fill:"#0500FF"}),o.jsx("path",{d:"M18.6975 2.88895L9.84839 0V20C16.1692 17.3332 18.6975 12.2222 18.6975 9.3333V2.88895Z",fill:"url(#trust-gradient)"}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"trust-gradient",x1:"16.366",y1:"-1.39367",x2:"9.62674",y2:"19.7161",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.02",stopColor:"#0000FF"}),o.jsx("stop",{offset:"0.08",stopColor:"#0094FF"}),o.jsx("stop",{offset:"0.16",stopColor:"#48FF91"}),o.jsx("stop",{offset:"0.42",stopColor:"#0094FF"}),o.jsx("stop",{offset:"0.68",stopColor:"#0038FF"}),o.jsx("stop",{offset:"0.9",stopColor:"#0500FF"})]})})]}),see=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",children:[o.jsx("g",{clipPath:"url(#walletconnect-clip)",children:o.jsx("path",{d:"M4.09689 2.93701C7.35798 -0.536619 12.6469 -0.536619 15.908 2.93701L16.3002 3.35227C16.4653 3.52623 16.4653 3.80682 16.3002 3.98078L14.9586 5.41175C14.876 5.49593 14.747 5.49593 14.6645 5.41175L14.1227 4.83375C11.8471 2.40951 8.15777 2.40951 5.88223 4.83375L5.30432 5.45104C5.22176 5.53521 5.09276 5.53521 5.0102 5.45104L3.66345 4.02567C3.49833 3.85171 3.49833 3.57113 3.66345 3.39716L4.09689 2.93701ZM18.6841 5.89436L19.8812 7.16821C20.0463 7.34217 20.0463 7.62275 19.8812 7.79671L14.489 13.5375C14.3239 13.7114 14.0608 13.7114 13.9008 13.5375L10.0773 9.46338C10.036 9.41849 9.96892 9.41849 9.92764 9.46338L6.10411 13.5375C5.93899 13.7114 5.67583 13.7114 5.51587 13.5375L0.123717 7.79671C-0.0414017 7.62275 -0.0414017 7.34217 0.123717 7.16821L1.32083 5.89436C1.48595 5.7204 1.7491 5.7204 1.90906 5.89436L5.73259 9.96843C5.77387 10.0133 5.84095 10.0133 5.88223 9.96843L9.70576 5.89436C9.87088 5.7204 10.134 5.7204 10.294 5.89436L14.1175 9.96843C14.1588 10.0133 14.2259 10.0133 14.2672 9.96843L18.0907 5.89436C18.2558 5.7204 18.519 5.7204 18.6841 5.89436Z",fill:"#3B99FC"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"walletconnect-clip",children:o.jsx("rect",{width:"20",height:"13.3333",f
78ill:"white",transform:"translate(-0.00012207 0.333252)"})})})]}),ree=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsxs("g",{clipPath:"url(#telegram-clip)",children:[o.jsx("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47716 15.5228 0 10 0C4.47716 0 0 4.47716 0 10C0 15.5228 4.47716 20 10 20Z",fill:"#34AADF"}),o.jsx("path",{d:"M4.16185 9.91324C4.16185 9.91324 9.16185 7.86124 10.8959 7.13868C11.5607 6.84968 13.815 5.9248 13.815 5.9248C13.815 5.9248 14.8555 5.5202 14.7688 6.50284C14.7398 6.90748 14.5086 8.32364 14.2774 9.85544C13.9306 12.0231 13.5549 14.393 13.5549 14.393C13.5549 14.393 13.4971 15.0578 13.0058 15.1734C12.5144 15.289 11.7052 14.7688 11.5607 14.6531C11.445 14.5664 9.39305 13.2658 8.64161 12.63C8.43929 12.4566 8.20809 12.1098 8.67049 11.7052C9.71097 10.7514 10.9537 9.56644 11.7052 8.815C12.052 8.46816 12.3988 7.65892 10.9537 8.64156C8.90173 10.0578 6.87861 11.3872 6.87861 11.3872C6.87861 11.3872 6.41617 11.6762 5.54913 11.4161C4.68205 11.156 3.67049 10.8092 3.67049 10.8092C3.67049 10.8092 2.97689 10.3757 4.16185 9.91324Z",fill:"white"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"telegram-clip",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),aee=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsx("defs",{children:o.jsx("clipPath",{id:"openwallet-clip",children:o.jsx("rect",{width:"20",height:"20",rx:"10"})})}),o.jsx("g",{clipPath:"url(#openwallet-clip)",children:o.jsx("image",{width:"20",height:"20",preserveAspectRatio:"none",href:QQ})})]}),oee=e=>{const t=e==="ok";return{closeModal:t,completeAuth:t,redirectHome:t}},iue=e=>e instanceof DT&&e.status===423?{kind:"play_block"}:_Q(e)?{kind:"timeout",step:e.step}:e instanceof Error?{kind:"failed",reason:e.message}:{kind:"failed",reason:String(e)},iee=e=>e.kind==="timeout"?"auth.walletconnect_timeout":"auth.walletconnect_failed";let Y0=null;const lee=async e=>{if(Y0){const{setWalletConnectHandlers:s}=await E3(async()=>{const{setWalletConnectHandlers:r}=await import("./walletConnect-CQic-65c.js").then(a=>a.c8);return{setWalletConnectHandlers:r}},__vite__mapDeps([0,1,2,3]));return s(e),Y0}const{walletConnectModal:t,setWalletConnectHandlers:n}=await E3(async()=>{const{walletConnectModal:s,setWalletConnectHandlers:r}=await import("./walletConnect-CQic-65c.js").then(a=>a.c8);return{walletConnectModal:s,setWalletConnectHandlers:r}},__vite__mapDeps([0,1,2,3]));return n(e),Y0=t,Y0},cee="/onboarding/welcome-desktop.webp",dee="/onboarding/welcome-mobile.webp",uee=[{method:"phantom",label:"Phantom",Icon:tee},{method:"metamask",label:"MetaMask",Icon:eee},{method:"openwallet",label:"OpenWallet",Icon:aee},{method:"trust",label:"Trust Wallet",Icon:nee},{method:"walletconnect",label:"WalletConnect",Icon:see}],fee=e=>{const t=Or(),{openModal:n,closeModal:s}=Os(),[r,a]=y.useState(null),[i,l]=y.useState(e.twoFAToken??""),[c,d]=y.useState(""),[f,u]=y.useState(""),[m,p]=y.useState(""),[C,b]=y.useState("password"),[v,E]=y.useState(""),[x,g]=y.useState(""),[A,k]=y.useState("login"),[R,O]=y.useState(""),U=e.redirectTo,V=y.useRef(!1);y.useEffect(()=>{U&&ow(U),MQ().then(()=>OQ(Y6)).catch(()=>{});const I=new URLSearchParams(window.location.search),H=I.get("otp_code"),j=I.get("email"),N=I.get("confirmation_code"),q=I.get("tab");if(e.twoFAToken){a(4);return}if(!V.current){if(H){V.current=!0,I.delete("otp_code"),I.delete("otp_hash"),I.delete("email"),window.history.replaceState(window.history.state,"",`${window.location.pathname}?${I}${window.location.hash}`),E(H),d(j??""),p(j??""),k("login"),a(2);return}if(N){g(N),a(6);return}a((e.tab??q)==="register"?1:0)}},[e.tab,e.twoFAToken,U]);const z=(I=!0)=>{U&&(window.location.href=U),I&&s(),lw()},G=I=>{Te("WalletConnect button click",{method:I}),lee({openTwoFactor:H=>n("auth",{twoFAToken:H,tab:"login"}),closeModal:s,onAuthenticated:()=>z(),getRedirectTo:()=>U??null,onFailure:H=>{Te("WalletConnect sign-in failed",{kind:H.kind,detail:H.kind==="timeout"?H.step:H.reason}),hn({level:"error",title:w(iee(H))})}}).then(H=>{H.open(),s()}).catch(H=>{O(w("auth.walletconnect_unavailable")),console.error("WalletConnect is unavailable",H)})},W=r===0||r===1||r===3;return o.jsxs("div",{className:"relative flex h-full flex-col rounded-2xl md:flex-row md:border-1 md:border-[#323A4C]",children:[o.jsx("button",{type:"button","aria-label":"Close Mod
78al",className:"absolute right-4 top-4 z-10 flex size-8 items-center justify-center rounded-full bg-primary text-brandblue-100 hover:bg-secondary-active hover:text-white",onClick:()=>s(),children:o.jsx(a1,{})}),o.jsx("div",{className:"hidden min-w-[346px] max-w-[346px] md:block",children:o.jsx("img",{src:cee,alt:"Daily cashback",className:"w-full rounded-l-2xl"})}),o.jsx("div",{className:"md:hidden",children:o.jsx("img",{src:dee,alt:"Daily cashback",className:"w-full rounded-t-2xl"})}),r===4?o.jsx("div",{className:"flex flex-1 flex-col items-center justify-center md:h-auto",children:o.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[o.jsx("h2",{className:"text-sm font-medium",children:w("settings.2fa.enter_code")}),o.jsx(JQ,{twoFAToken:i,onFinished:I=>{const H=oee(I);H.closeModal&&s(),H.completeAuth&&z(),H.redirectHome&&t("/home")}})]})}):o.jsxs("div",{className:"flex h-full flex-col gap-4 p-6 md:h-auto md:w-full",children:[o.jsx("h1",{className:"text-lg",children:w("auth.title")}),W?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex w-full items-center justify-center gap-2 md:justify-start",children:[Ad(iw.TelegramAuth)?o.jsx(Jp,{label:"Telegram",onClick:()=>a(3),children:o.jsx(ree,{})}):null,uee.map(({method:I,label:H,Icon:j})=>o.jsx(Jp,{label:H,onClick:()=>G(I),children:o.jsx(j,{})},I))]}),R?o.jsx("div",{className:"text-center text-sm text-error","data-testid":"walletconnect-error",children:R}):null,o.jsx(KQ,{})]}):null,o.jsx(XQ,{visible:r===3}),r===0?o.jsx(ZQ,{email:c,initialTab:C,onEmailChange:d,onSuccess:()=>z(),onTwoFaEnabled:I=>{l(I),a(4)},switchToRegister:I=>{u(I??""),a(1)},switchToEmailVerify:()=>{p(c),k("login"),a(2)},switchToForgotPassword:()=>a(5)}):null,r===6?o.jsx(YQ,{resetPasswordToken:x,onSuccess:()=>z(),on2faEnabled:I=>{l(I),a(4)}}):null,r===2?o.jsx(UQ,{code:v,email:m,mode:A,onChangeEmail:A==="login"?()=>{E(""),b("otp"),a(0)}:void 0,onLoginSuccess:()=>z(),onTwoFaEnabled:I=>{l(I),a(4)}}):null,r===1?o.jsx(qQ,{initialIdentifier:f,onSuccess:()=>z(),switchToLogin:()=>a(0),switchToEmailVerify:()=>{p(""),k("login"),a(2)},loginAndSwitchToEmailVerify:()=>{(async()=>{const I=v3();I&&(nw(!0),z(!1)),await tw({email:I}),k("verify"),a(2)})()}}):null,r===5?o.jsx(WQ,{switchToLogin:()=>a(0)}):null,o.jsx("div",{className:"flex w-full items-center justify-center",children:o.jsx("div",{id:Y6,"data-size":"invisible"})})]})]})},mee="auth",lue=H1({component:fee,removeSearchParams:["tab","twoFAToken","confirmation_code","redirectTo","otp_code","otp_hash","email"],wrapperClass:"md:min-w-[814px] bg-black-50",maxWidth:"fit",hideTitle:!0,omitHeader:!0,hideContentHorizontalPadding:!0,isDrawer:!0,restricted:"notAuthenticated"}),hee="accelerometer; autoplay; camera; microphone; encrypted-media; gyroscope; payment; clipboard-read; clipboard-write",pee="accelerometer; autoplay; camera; encrypted-media; gyroscope; payment; clipboard-read; clipboard-write",gee=800,wee=700,Cee=({src:e,allow:t,heightPx:n})=>o.jsx("iframe",{allow:t,style:{height:`${n}px`},src:e,className:"-mx-6 w-[calc(100%+3rem)] max-w-none md:mx-0 md:w-full",frameBorder:"0",title:"Buy Crypto","data-testid":"buy-widget-iframe","data-modal-full-bleed":!0}),xee=e=>{if(e===""||e===0||e===null||e===void 0)return"0.00";const t=parseFloat(`${e}`.replace(/,/g,""));return new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number.isNaN(t)?0:t)},yee=e=>e.replace(/[^0-9,.]/g,""),fL=({id:e,name:t,currency:n,value:s,placeholder:r="0.00",disabled:a=!1,max:i,onValueChange:l,onCommit:c,trailing:d})=>{const[f,u]=y.useState(!0);return o.jsxs("div",{className:"relative flex h-10 w-full grow items-center gap-2 truncate rounded-lg bg-secondary pl-3 pr-1 font-medium",children:[o.jsx("div",{className:"pointer-events-none size-5 shrink-0",children:o.jsx(Zi,{currency:n})}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("span",{className:ie("pointer-events-none absolute flex h-10 w-full items-center py-2 pl-0 pr-2 text-sm leading-normal",f?"":"hidden"),children:xee(s)}),o.jsx("input",{id:e,name:t,"data-testid":e,type:"text",inputMode:"decimal",autoComplete:"off",placeholder:r,disabled:a,max:i,style:f?{color:"transparent"}:void 0,className:"block h-10 w-full rounded-lg border-none bg-secondary py-2 pl-0 pr-2 text-sm leading-normal focus-visible:outline-none disabled:cursor-default disabled:opacity-50",value:s,onChange:m=>l(yee(m.target.value)),onFocus:()=>u(!1),onBlur:()=>{u(!0),c==null||c(s)}})]}),d?o.jsx("div",{className:"flex items-center gap-x-1",children:d}):null]})},nt=({className:e,children:t,...n})=>o.jsx("label",{className:ie("text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...n,children:t}),bee=UT.map(e=>({value:e,title:e})),mL=({providerLabel:e,isLoading:t,iframeAllow:n,iframeHeightPx:s,onSubmit:r})=>{const[a,i]=Me([FT,jT]),[l,c]=y.useState($T),[d,f]=y.useState(String(BT)),[u,m]=y.useState("");
78if(a)return o.jsx(Cee,{src:a,allow:n,heightPx:s});const p=b=>{const v=Number(b.replace(/,/g,"").trim()||0),E=HT(Number.isFinite(v)?Math.max(v,0):0,2);return Te("Set buy amount",{amount:E}),f(String(E)),m(""),E},C=()=>{const b=p(d);if(Te("Buy crypto clicked",{fiatAmount:b,selectedFiat:l}),!(b>0)){m(w("errors.amount_positive"));return}r({currency:l,amount:b})};return o.jsxs("div",{className:"flex flex-col gap-y-4",children:[o.jsx("div",{className:"my-2 h-px w-full bg-highlight"}),o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("h4",{className:"flex flex-row items-center gap-2 font-medium",children:[o.jsx(Vp,{className:"text-brand-tertiary"}),w("modals.wallet.buy.crypto")]}),o.jsx("p",{className:"my-2 text-sm text-brandblue-100",children:w("modals.wallet.buy.hint")}),o.jsxs("div",{className:"my-3",children:[o.jsx(nt,{htmlFor:"buy-amount",className:"flex flex-row justify-between py-1 text-brandblue-100",children:o.jsx("span",{children:w("modals.wallet.buy.pay")})}),o.jsx(fL,{id:"buy-amount",name:"buy-amount",currency:l,value:d,onValueChange:f,onCommit:p,trailing:o.jsx("div",{className:"w-[7.5rem]",children:o.jsx(ba,{id:"currency-select",value:l,options:bee,withCurrencyIcon:"options",onChange:b=>{Te("Set buy currency",{currency:b}),c(b)}})})}),u?o.jsx("div",{className:"text-error","data-testid":"buy-amount-error",children:o.jsx("span",{children:u})}):null]}),o.jsxs("div",{className:"my-0.5 flex items-center justify-between self-stretch rounded-t-lg bg-[#1f232d] px-3 py-2.5 text-sm text-brandblue-100",children:[o.jsx("div",{children:w("modals.wallet.buy.provider")}),o.jsx("div",{"data-testid":"buy-provider-name",children:e})]}),i?o.jsx("div",{className:"mt-2 text-sm text-error","data-testid":"buy-provider-error",children:i}):null,o.jsx("div",{className:"my-4",children:o.jsxs(wn,{variant:"primary",disabled:t,"data-testid":"buy-crypto-submit",className:"w-full gap-1",onClick:C,children:[o.jsx(Vp,{}),w("global_buyCrypto")]})})]}),o.jsxs("div",{className:"flex items-center gap-2 self-stretch rounded-lg bg-[rgba(99,122,244,0.1)] px-3 py-2 text-[#637af4]",children:[o.jsx(o1,{className:"size-8 shrink-0"}),w("modals.wallet.buy.warning")]})]})},vee=()=>{const e=Me(K9.pending);return o.jsx(mL,{providerLabel:"MELD",isLoading:e,iframeAllow:hee,iframeHeightPx:gee,onSubmit:t=>void K9(t)})},Eee=()=>{const e=Me(X9.pending);return o.jsx(mL,{providerLabel:"SWAPPED",isLoading:e,iframeAllow:pee,iframeHeightPx:wee,onSubmit:t=>void X9(t)})},See=()=>{const e=VT();return e==="meld"?o.jsx(vee,{}):e==="swapped"?o.jsx(Eee,{}):o.jsx("div",{"data-testid":"buy-tab-no-provider",className:"flex min-h-24 items-center justify-center rounded-lg bg-highlight px-4 py-6 text-center text-sm text-brandblue-100",children:w("modals.wallet.buy.no_provider")})},Lee=()=>o.jsxs("svg",{width:"80",height:"36",viewBox:"0 0 80 36",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("rect",{width:"36",height:"36",rx:"18",fill:"#2F2B32"}),o.jsx("path",{d:"M25.3779 22.627L18.001 30.0039L10.624 22.627L13.3398 19.9189L18.001 24.5801L22.666 19.915L25.3779 22.627ZM20.7529 18.002L18.001 20.7588L15.249 18.0068V17.998L15.7324 17.5156L15.9678 17.2832L18.001 15.251L20.7529 18.002ZM30 18.0029L27.2891 20.7139L24.5781 18.0029L27.2891 15.292L30 18.0029ZM11.4219 18.001L8.71094 20.7129L5.99902 18.002L8.71094 15.29L11.4219 18.001ZM25.3779 13.377L22.666 16.0889L18.001 11.4238L13.3398 16.085L10.6279 13.373L18.001 6L25.3779 13.377Z",fill:"#F3BA2F"}),o.jsxs("g",{clipPath:"url(#meshExchangesClip)",children:[o.jsx("path",{d:"M58 0H22V36H58V0Z",fill:"#0052FF"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3438 18C27.3438 24.9899 33.0101 30.6562 40 30.6562C46.9899 30.6562 52.6562 24.9899 52.6562 18C52.6562 11.0101 46.9899 5.34375 40 5.34375C33.0101 5.34375 27.3438 11.0101 27.3438 18ZM36.7656 13.9219C36.2996 13.9219 35.9219 14.2996 35.9219 14.7656V21.2344C35.9219 21.7004 36.2996 22.0781 36.7656 22.0781H43.2344C43.7004 22.0781 44.0781 21.7004 44.0781 21.2344V14.7656C44.0781 14.2996 43.7004 13.9219 43.2344 13.9219H36.7656Z",fill:"white"})]}),o.jsx("rect",{x:"44",width:"36",height:"36",rx:"18",fill:"#EAE0D7"}),o.jsx("path",{d:"M72.0391 7.5L63.3374 13.9899L64.9466 10.1609L72.0391 7.5Z",fill:"#E2761B"}),o.jsx("path",{d:"M51.951 7.5L60.5827 14.0514L59.0523 10.1609L51.951 7.5ZM68.9083 22.5436L66.5908 26.1091L71.5495 27.4791L72.975 22.6226L68.9083 22.5436ZM51.0327 22.6226L52.4495 27.4791L57.4081 26.1091L55.0906 22.5436L51.0327 22.6226Z",fill:"#E4761B"}),o.jsx("path",{d:"M57.1284 16.519L55.7466 18.6179L60.6702 18.8375L60.4953 13.5244L57.1284 16.519ZM66.862 16.519L63.4513 13.4629L63.3376 18.8375L68.2525 18.6179L66.862 16.519ZM57.4082 26.109L60.3642 24.6599L57.8105 22.6576L57.4082 26.109ZM63.6262 24.6599L66.5909 26.109L66.1799 22.6576L63.6262 24.6599Z",fill:"#E4761B"}),o.jsx("path",{d:"M66.5904 26.1092L63.6257 24.6602L63.8618 26.601L63.8356 27.4177L66.5904 26.1092ZM57.4077 26.1092L60.1625 27.4177L60.145 26.601L60.3637 24.6602L57.4077 26.1092Z",fill:"#D7C1B3"}),o.jsx("path",{d:"M60.2064 21.3752L57.7402 20.6463L59.4806 19.8472L60.2064 21.3752ZM63.7833 21.3752L64.5092 19.8472L66.2583 20.6463L63.7833 21.3752Z",fill:"#233447"}),o.jsx("path",{d:"M57.4079 26.1092L57.8276 22.5437L55.0903 22.6228L57.4079 26.1092ZM66.1708 22.5437L66.5905 26.1092L68.9081 22.6228L66.1708 22.5437ZM68.2522 18.6182L63.3373 18.8377L63.792 21.3757L64.5179 19.8476L66.267 20.6468L68.2522 18.6182ZM57.7402 20.6468L59.4893 19.8476L60.2064 21.3757L60.6699 18.8377L55.7462 18.6182L57.7402 20.6468Z",fill:"#CD6116"}),o.jsx("path",{d:"M55.7466 18.6182L57.8105 22.6579L57.7405 20.6468L55.7466 18.6182ZM66.2673 20.6468L66.1799 22.6579L68.2525 18.6182L66.2673 20.6468ZM60.6702 18.8377L60.2067 21.3757L60.7839 24.3704L60.9151 20.4273L60.6702 18.8377ZM63.3376 18.8377L63.1015 20.4185L63.2064 24.3704L63.7924 21.3757L63.3376 18.8377Z",fill:"#E4751F"}
78),o.jsx("path",{d:"M63.7921 21.3759L63.2061 24.3705L63.6259 24.6603L66.1796 22.6581L66.267 20.647L63.7921 21.3759ZM57.7402 20.647L57.8102 22.6581L60.3639 24.6603L60.7836 24.3705L60.2064 21.3759L57.7402 20.647Z",fill:"#F6851B"}),o.jsx("path",{d:"M63.8356 27.4179L63.8618 26.6012L63.6432 26.408H60.3462L60.145 26.6012L60.1625 27.4179L57.4077 26.1094L58.3697 26.8998L60.3199 28.261H63.6694L65.6284 26.8998L66.5904 26.1094L63.8356 27.4179Z",fill:"#C0AD9E"}),o.jsx("path",{d:"M63.6252 24.6604L63.2054 24.3706H60.7829L60.3632 24.6604L60.1445 26.6012L60.3457 26.408H63.6427L63.8613 26.6012L63.6252 24.6604Z",fill:"#161616"}),o.jsx("path",{d:"M72.4061 14.4114L73.1494 10.8284L72.0388 7.5L63.6257 13.7704L66.8615 16.5191L71.4353 17.8628L72.4498 16.6772L72.0125 16.361L72.7122 15.72L72.1699 15.2984L72.8696 14.7627L72.4061 14.4114ZM50.8486 10.8284L51.592 14.4114L51.1197 14.7627L51.8194 15.2984L51.2859 15.72L51.9855 16.361L51.5483 16.6772L52.554 17.8628L57.1278 16.5191L60.3636 13.7704L51.9506 7.5L50.8486 10.8284Z",fill:"#763D16"}),o.jsx("path",{d:"M71.4358 17.8629L66.8619 16.5193L68.2524 18.6182L66.1798 22.6579L68.9083 22.6228H72.975L71.4358 17.8629ZM57.1283 16.5193L52.5544 17.8629L51.0327 22.6228H55.0906L57.8104 22.6579L55.7465 18.6182L57.1283 16.5193ZM63.3375 18.8378L63.6261 13.7705L64.9554 10.1611H59.0523L60.3641 13.7705L60.6702 18.8378L60.7751 20.4361L60.7838 24.3704H63.2063L63.2238 20.4361L63.3375 18.8378Z",fill:"#F6851B"}),o.jsx("defs",{children:o.jsx("clipPath",{id:"meshExchangesClip",children:o.jsx("rect",{x:"22",width:"36",height:"36",rx:"18",fill:"white"})})})]}),Aee=async({currency:e,network:t})=>{let n;try{n=await cw({currency:e,network:t})}catch{return}const{createLink:s}=await E3(async()=>{const{createLink:a}=await import("./index-BXmSY7b2.js");return{createLink:a}},__vite__mapDeps([4,1,2,5,6,3]));s({clientId:No.meshClientId,onIntegrationConnected:()=>Te("Mesh Integration Connected",{currency:e,network:t}),onTransferFinished:()=>Te("Mesh Transfer Finished",{currency:e,network:t}),onExit:()=>Te("Mesh Widget Closed",{currency:e,network:t})}).openLink(n),Te("Mesh Widget Opened",{currency:e,network:t})},Tee=({currency:e,network:t})=>{const[n,s]=Me([WT,cw.pending]);return!e||!ZT(e,t)||!t?null:o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"h-3"}),o.jsxs("button",{type:"button","data-testid":"mesh-deposit-button",disabled:s,className:"group overflow-hidden rounded-xl bg-[rgba(112,134,255,0.10)] transition-colors duration-75 ease-in-out hover:bg-[rgba(255,255,255,0.05)] disabled:opacity-50",onClick:()=>void Aee({currency:e,network:t}),children:[o.jsxs("div",{className:"flex flex-row items-center gap-4 bg-gray-100 p-4 align-middle group-hover:bg-[rgba(255,255,255,0.05)]",children:[o.jsx(Lee,{}),o.jsxs("div",{className:"text-left",children:[o.jsx("div",{children:w("modals.wallet.deposit.mesh.title")}),o.jsx("div",{className:"font-normal text-secondary-100",children:w("modals.wallet.deposit.mesh.description")})]})]}),o.jsx("div",{className:"p-2 text-[#7086FF]",children:w("modals.wallet.deposit.express")})]}),n?o.jsx("div",{className:"mt-2 text-red-500","data-testid":"mesh-deposit-error",children:n}):null]})},dn=({className:e,trailing:t,wrapperClassName:n,...s})=>o.jsxs("div",{className:ie("flex h-10 w-full grow items-center gap-2 truncate rounded-lg bg-secondary pl-2 pr-1 font-medium",n),children:[o.jsx("input",{className:ie("block h-10 w-full grow rounded-lg border-none bg-secondary py-2 pl-0 pr-2 text-sm placeholder:text-black-100 focus-visible:outline-none disabled:cursor-default disabled:opacity-50",e),...s}),t?o.jsx("div",{className:"flex items-center gap-x-1",children:t}):null]}),_ee=()=>{const e=Or(),{depositAmount:t}=Me(c4),[n,s]=y.useState(String(t)),r=l=>{J9(Number(l===""?NaN:l))},a=l=>{s(String(l)),J9(l)},i=()=>{r(n);const l=new URLSearchParams(window.location.search);l.set("modal","wallet"),l.set("tab","pix-details"),e(`${wr()}?${l.toString()}`,{replace:!0})};return o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"brl-amount",className:"text-brandblue-100",children:w("modals.wallet.deposit.pix.amount")}),o.jsx(dn,{name:"brl-amount",id:"brl-amount","data-testid":"pix-amount",placeholder:"R$ 200",inputMode:"decimal",value:n,onChange:l=>s(l.target.value),onBlur:l=>r(l.target.value)}),o.jsx(nt,{htmlFor:"brl-amount",className:"flex flex-row items-center gap-1 py-1 pt-2 text-brandblue-100","data-testid":"pix-amount-limits",children:o.jsx("span",{children:"Minimum and Maximum deposit amounts: $R 50.00 / R$ 100,000.00"})}),o.jsx("div",{className:"my-3 flex flex-wrap gap-2",children:GT.map(l=>o.jsx(wn,{variant:"secondary",size:"sm","data-testid":`pix-preset-${l}`,onClick:()=>
78a(l),children:`R$ ${l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`},l))}),o.jsx("div",{className:"my-4",children:o.jsxs(wn,{variant:"primary","data-testid":"pix-continue",className:"w-full gap-1",onClick:i,children:[o.jsx(FS,{className:"size-4"}),w("modals.wallet.tab.deposit")]})})]})},Ree=()=>{const[e,t,n]=Me([DD,Zd,$t]);return y.useEffect(()=>{D4()},[]),y.useEffect(()=>{n&&ox()},[n]),!e||n&&!t?null:o.jsxs("div",{"data-testid":"deposit-bonus-banner",className:"flex flex-row items-center justify-start gap-4 overflow-hidden rounded-sm bg-[#1F232F] p-2.5",children:[o.jsx("img",{src:"/bonus-gold-coin.webp",alt:"",className:"h-[72px] w-[60px] shrink-0 object-fill drop-shadow-[0_0_24px_rgba(251,182,63,0.3)]"}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("span",{"data-testid":"deposit-bonus-title",className:"font-jost text-sm font-semibold leading-none text-[#FBB63F]",children:e.isFirstDeposit?w("modals.wallet.deposit.bonus.title_first"):w("modals.wallet.deposit.bonus.title")}),o.jsxs("span",{className:"font-jost text-base font-bold leading-[110%]","data-testid":"deposit-bonus-percent",children:[o.jsx("span",{className:"text-[#C6C7DD]",children:w("modals.wallet.deposit.bonus.headline")})," ",o.jsx("span",{className:"text-[#FBB63F]",children:w("modals.wallet.deposit.bonus.highlight",{percent:e.percent})})]}),o.jsx("span",{className:"font-jost text-xs font-medium leading-[130%] text-[#ADAFCE]/60",children:w("modals.wallet.deposit.bonus.terms",{min:e.minDepositUsd})})]})]})};var Nee=Object.defineProperty,yd=Object.getOwnPropertySymbols,hL=Object.prototype.hasOwnProperty,pL=Object.prototype.propertyIsEnumerable,rg=(e,t,n)=>t in e?Nee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K6=(e,t)=>{for(var n in t||(t={}))hL.call(t,n)&&rg(e,n,t[n]);if(yd)for(var n of yd(t))pL.call(t,n)&&rg(e,n,t[n]);return e},X6=(e,t)=>{var n={};for(var s in e)hL.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&yd)for(var s of yd(e))t.indexOf(s)<0&&pL.call(e,s)&&(n[s]=e[s]);return n};/**
79 * @license QR Code generator library (TypeScript)
80 * Copyright (c) Project Nayuki.
81 * SPDX-License-Identifier: MIT
82 */var To;(e=>{const t=class Le{constructor(c,d,f,u){if(this.version=c,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],c<Le.MIN_VERSION||c>Le.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=c*4+17;let m=[];for(let C=0;C<this.size;C++)m.push(!1);for(let C=0;C<this.size;C++)this.modules.push(m.slice()),this.isFunction.push(m.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(f);if(this.drawCodewords(p),u==-1){let C=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<C&&(u=b,C=v),this.applyMask(b)}}r(0<=u&&u<=7),this.mask=u,this.applyMask(u),this.drawFormatBits(u),this.isFunction=[]}static encodeText(c,d){const f=e.QrSegment.makeSegments(c);return Le.encodeSegments(f,d)}static encodeBinary(c,d){const f=e.QrSegment.makeBytes(c);return Le.encodeSegments([f],d)}static encodeSegments(c,d,f=1,u=40,m=-1,p=!0){if(!(Le.MIN_VERSION<=f&&f<=u&&u<=Le.MAX_VERSION)||m<-1||m>7)throw new RangeError("Invalid value");let C,b;for(C=f;;C++){const g=Le.getNumDataCodewords(C,d)*8,A=i.getTotalBits(c,C);if(A<=g){b=A;break}if(C>=u)throw new RangeError("Data too long")}for(const g of[Le.Ecc.MEDIUM,Le.Ecc.QUARTILE,Le.Ecc.HIGH])p&&b<=Le.getNumDataCodewords(C,g)*8&&(d=g);let v=[];for(const g of c){n(g.mode.modeBits,4,v),n(g.numChars,g.mode.numCharCountBits(C),v);for(const A of g.getData())v.push(A)}r(v.length==b);const E=Le.getNumDataCodewords(C,d)*8;r(v.length<=E),n(0,Math.min(4,E-v.length),v),n(0,(8-v.length%8)%8,v),r(v.length%8==0);for(let g=236;v.length<E;g^=253)n(g,8,v);let x=[];for(;x.length*8<v.length;)x.push(0);return v.forEach((g,A)=>x[A>>>3]|=g<<7-(A&7)),new Le(C,d,x,m)}getModule(c,d){return 0<=c&&c<this.size&&0<=d&&d<this.size&&this.modules[d][c]}getModules(){return this.modules}drawFunctionPatterns(){for(let f=0;f<this.size;f++)this.setFunctionModule(6,f,f%2==0),this.setFunctionModule(f,6,f%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const c=this.getAlignmentPatternPositions(),d=c.length;for(let f=0;f<d;f++)for(let u=0;u<d;u++)f==0&&u==0||f==0&&u==d-1||f==d-1&&u==0||this.drawAlignmentPattern(c[f],c[u]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(c){const d=this.errorCorrectionLevel.formatBits<<3|c;let f=d;for(let m=0;m<10;m++)f=f<<1^(f>>>9)*1335;const u=(d<<10|f)^21522;r(u>>>15==0);for(let m=0;m<=5;m++)this.setFunctionModule(8,m,s(u,m));this.setFunctionModule(8,7,s(u,6)),this.setFunctionModule(8,8,s(u,7)),this.setFunctionModule(7,8,s(u,8));for(let m=9;m<15;m++)this.setFunctionModule(14-m,8,s(u,m));for(let m=0;m<8;m++)this.setFunctionModule(this.size-1-m,8,s(u,m));for(let m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,s(u,m));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let c=this.version;for(let f=0;f<12;f++)c=c<<1^(c>>>11)*7973;const d=this.version<<12|c;r(d>>>18==0);for(let f=0;f<18;f++){const u=s(d,f),m=this.size-11+f%3,p=Math.floor(f/3);this.setFunctionModule(m,p,u),this.setFunctionModule(p,m,u)}}drawFinderPattern(c,d){for(let f=-4;f<=4;f++)for(let u=-4;u<=4;u++){const m=Math.max(Math.abs(u),Math.abs(f)),p=c+u,C=d+f;0<=p&&p<this.size&&0<=C&&C<this.size&&this.setFunctionModule(p,C,m!=2&&m!=4)}}drawAlignmentPattern(c,d){for(let f=-2;f<=2;f++)for(let u=-2;u<=2;u++)this.setFunctionModule(c+u,d+f,Math.max(Math.abs(u),Math.abs(f))!=1)}setFunctionModule(c,d,f){this.modules[d][c]=f,this.isFunction[d][c]=!0}addEccAndInterleave(c){const d=this.version,f=this.errorCorrectionLevel;if(c.length!=Le.getNumDataCodewords(d,f))throw new RangeError("Invalid argument");const u=Le.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][d],m=Le.ECC_CODEWORDS_PER_BLOCK[f.ordinal][d],p=Math.floor(Le.getNumRawDataModules(d)/8),C=u-p%u,b=Math.floor(p/u);let v=[];const E=Le.reedSolomonComputeDivisor(m);for(let g=0,A=0;g<u;g++){let k=c.slice(A,A+b-m+(g<C?0:1));A+=k.length;const R=Le.reedSolomonComputeRemainder(k,E);g<C&&k.push(0),v.push(k.concat(R))}let x=[];for(let g=0;g<v[0].length;g++)v.forEach((A,k)=>{(g!=b-m||k>=C)&&x.push(A[g])});return r(x.length==p),x}drawCodewords(c){if(c.length!=Math.floor(Le.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let u=0;u<this.size;u++)for(let m=0;m<2;m++){const p=f-m,b=(f+1&2)==0?this.size-1-u:u;!this.isFunction[b][p]&&d<c.length*8&&(this.modules[b][p]=s(c[d>>>3],7-(d&7)),d++)}}r(d==c.length*8)}
82applyMask(c){if(c<0||c>7)throw new RangeError("Mask value out of range");for(let d=0;d<this.size;d++)for(let f=0;f<this.size;f++){let u;switch(c){case 0:u=(f+d)%2==0;break;case 1:u=d%2==0;break;case 2:u=f%3==0;break;case 3:u=(f+d)%3==0;break;case 4:u=(Math.floor(f/3)+Math.floor(d/2))%2==0;break;case 5:u=f*d%2+f*d%3==0;break;case 6:u=(f*d%2+f*d%3)%2==0;break;case 7:u=((f+d)%2+f*d%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[d][f]&&u&&(this.modules[d][f]=!this.modules[d][f])}}getPenaltyScore(){let c=0;for(let m=0;m<this.size;m++){let p=!1,C=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[m][v]==p?(C++,C==5?c+=Le.PENALTY_N1:C>5&&c++):(this.finderPenaltyAddHistory(C,b),p||(c+=this.finderPenaltyCountPatterns(b)*Le.PENALTY_N3),p=this.modules[m][v],C=1);c+=this.finderPenaltyTerminateAndCount(p,C,b)*Le.PENALTY_N3}for(let m=0;m<this.size;m++){let p=!1,C=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][m]==p?(C++,C==5?c+=Le.PENALTY_N1:C>5&&c++):(this.finderPenaltyAddHistory(C,b),p||(c+=this.finderPenaltyCountPatterns(b)*Le.PENALTY_N3),p=this.modules[v][m],C=1);c+=this.finderPenaltyTerminateAndCount(p,C,b)*Le.PENALTY_N3}for(let m=0;m<this.size-1;m++)for(let p=0;p<this.size-1;p++){const C=this.modules[m][p];C==this.modules[m][p+1]&&C==this.modules[m+1][p]&&C==this.modules[m+1][p+1]&&(c+=Le.PENALTY_N2)}let d=0;for(const m of this.modules)d=m.reduce((p,C)=>p+(C?1:0),d);const f=this.size*this.size,u=Math.ceil(Math.abs(d*20-f*10)/f)-1;return r(0<=u&&u<=9),c+=u*Le.PENALTY_N4,r(0<=c&&c<=2568888),c}getAlignmentPatternPositions(){if(this.version==1)return[];{const c=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(c*2-2))*2;let f=[6];for(let u=this.size-7;f.length<c;u-=d)f.splice(1,0,u);return f}}static getNumRawDataModules(c){if(c<Le.MIN_VERSION||c>Le.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*c+128)*c+64;if(c>=2){const f=Math.floor(c/7)+2;d-=(25*f-10)*f-55,c>=7&&(d-=36)}return r(208<=d&&d<=29648),d}static getNumDataCodewords(c,d){return Math.floor(Le.getNumRawDataModules(c)/8)-Le.ECC_CODEWORDS_PER_BLOCK[d.ordinal][c]*Le.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][c]}static reedSolomonComputeDivisor(c){if(c<1||c>255)throw new RangeError("Degree out of range");let d=[];for(let u=0;u<c-1;u++)d.push(0);d.push(1);let f=1;for(let u=0;u<c;u++){for(let m=0;m<d.length;m++)d[m]=Le.reedSolomonMultiply(d[m],f),m+1<d.length&&(d[m]^=d[m+1]);f=Le.reedSolomonMultiply(f,2)}return d}static reedSolomonComputeRemainder(c,d){let f=d.map(u=>0);for(const u of c){const m=u^f.shift();f.push(0),d.forEach((p,C)=>f[C]^=Le.reedSolomonMultiply(p,m))}return f}static reedSolomonMultiply(c,d){if(c>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let u=7;u>=0;u--)f=f<<1^(f>>>7)*285,f^=(d>>>u&1)*c;return r(f>>>8==0),f}finderPenaltyCountPatterns(c){const d=c[1];r(d<=this.size*3);const f=d>0&&c[2]==d&&c[3]==d*3&&c[4]==d&&c[5]==d;return(f&&c[0]>=d*4&&c[6]>=d?1:0)+(f&&c[6]>=d*4&&c[0]>=d?1:0)}finderPenaltyTerminateAndCount(c,d,f){return c&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(c,d){d[0]==0&&(c+=this.size),d.pop(),d.unshift(c)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,c,d){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let f=c-1;f>=0;f--)d.push(l>>>f&1)}function s(l,c){return(l>>>c&1)!=0}function r(l){if(!l)throw new Error("Assertion error")}const a=class ht{constructor(c,d,f){if(this.mode=c,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(c){let d=[];for(const f of c)n(f,8,d);return new ht(ht.Mode.BYTE,c.length,d)}static makeNumeric(c){if(!ht.isNumeric(c))throw new RangeError("String contains 
82non-numeric characters");let d=[];for(let f=0;f<c.length;){const u=Math.min(c.length-f,3);n(parseInt(c.substring(f,f+u),10),u*3+1,d),f+=u}return new ht(ht.Mode.NUMERIC,c.length,d)}static makeAlphanumeric(c){if(!ht.isAlphanumeric(c))throw new RangeError("String contains unencodable characters in alphanumeric mode");let d=[],f;for(f=0;f+2<=c.length;f+=2){let u=ht.ALPHANUMERIC_CHARSET.indexOf(c.charAt(f))*45;u+=ht.ALPHANUMERIC_CHARSET.indexOf(c.charAt(f+1)),n(u,11,d)}return f<c.length&&n(ht.ALPHANUMERIC_CHARSET.indexOf(c.charAt(f)),6,d),new ht(ht.Mode.ALPHANUMERIC,c.length,d)}static makeSegments(c){return c==""?[]:ht.isNumeric(c)?[ht.makeNumeric(c)]:ht.isAlphanumeric(c)?[ht.makeAlphanumeric(c)]:[ht.makeBytes(ht.toUtf8ByteArray(c))]}static makeEci(c){let d=[];if(c<0)throw new RangeError("ECI assignment value out of range");if(c<128)n(c,8,d);else if(c<16384)n(2,2,d),n(c,14,d);else if(c<1e6)n(6,3,d),n(c,21,d);else throw new RangeError("ECI assignment value out of range");return new ht(ht.Mode.ECI,0,d)}static isNumeric(c){return ht.NUMERIC_REGEX.test(c)}static isAlphanumeric(c){return ht.ALPHANUMERIC_REGEX.test(c)}getData(){return this.bitData.slice()}static getTotalBits(c,d){let f=0;for(const u of c){const m=u.mode.numCharCountBits(d);if(u.numChars>=1<<m)return 1/0;f+=4+m+u.bitData.length}return f}static toUtf8ByteArray(c){c=encodeURI(c);let d=[];for(let f=0;f<c.length;f++)c.charAt(f)!="%"?d.push(c.charCodeAt(f)):(d.push(parseInt(c.substring(f+1,f+3),16)),f+=2);return d}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(To||(To={}));(e=>{(t=>{const n=class{constructor(r,a){this.ordinal=r,this.formatBits=a}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(To||(To={}));(e=>{(t=>{const n=class{constructor(r,a){this.modeBits=r,this.numBitsCharCount=a}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(To||(To={}));var gi=To;/**
83 * @license qrcode.react
84 * Copyright (c) Paul O'Shannessy
85 * SPDX-License-Identifier: ISC
86 */var kee={L:gi.QrCode.Ecc.LOW,M:gi.QrCode.Ecc.MEDIUM,Q:gi.QrCode.Ecc.QUARTILE,H:gi.QrCode.Ecc.HIGH},gL=128,wL="L",CL="#FFFFFF",xL="#000000",yL=!1,bL=1,Iee=4,Mee=0,Oee=.1;function vL(e,t=0){const n=[];return e.forEach(function(s,r){let a=null;
86s.forEach(function(i,l){if(!i&&a!==null){n.push(`M${a+t} ${r+t}h${l-a}v1H${a+t}z`),a=null;return}if(l===s.length-1){if(!i)return;a===null?n.push(`M${l+t},${r+t} h1v1H${l+t}z`):n.push(`M${a+t},${r+t} h${l+1-a}v1H${a+t}z`);return}i&&a===null&&(a=l)})}),n.join("")}function EL(e,t){return e.slice().map((n,s)=>s<t.y||s>=t.y+t.h?n:n.map((r,a)=>a<t.x||a>=t.x+t.w?r:!1))}function Pee(e,t,n,s){if(s==null)return null;const r=e.length+n*2,a=Math.floor(t*Oee),i=r/t,l=(s.width||a)*i,c=(s.height||a)*i,d=s.x==null?e.length/2-l/2:s.x*i,f=s.y==null?e.length/2-c/2:s.y*i,u=s.opacity==null?1:s.opacity;let m=null;if(s.excavate){let C=Math.floor(d),b=Math.floor(f),v=Math.ceil(l+d-C),E=Math.ceil(c+f-b);m={x:C,y:b,w:v,h:E}}const p=s.crossOrigin;return{x:d,y:f,h:c,w:l,excavation:m,opacity:u,crossOrigin:p}}function Dee(e,t){return t!=null?Math.max(Math.floor(t),0):e?Iee:Mee}function SL({value:e,level:t,minVersion:n,includeMargin:s,marginSize:r,imageSettings:a,size:i,boostLevel:l}){let c=$.useMemo(()=>{const C=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...gi.QrSegment.makeSegments(v)),b),[]);return gi.QrCode.encodeSegments(C,kee[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:u,calculatedImageSettings:m}=$.useMemo(()=>{let p=c.getModules();const C=Dee(s,r),b=p.length+C*2,v=Pee(p,i,C,a);return{cells:p,margin:C,numCells:b,calculatedImageSettings:v}},[c,i,a,s,r]);return{qrcode:c,margin:f,cells:d,numCells:u,calculatedImageSettings:m}}var Fee=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),jee=$.forwardRef(function(t,n){const s=t,{value:r,size:a=gL,level:i=wL,bgColor:l=CL,fgColor:c=xL,includeMargin:d=yL,minVersion:f=bL,boostLevel:u,marginSize:m,imageSettings:p}=s,b=X6(s,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,E=X6(b,["style"]),x=p==null?void 0:p.src,g=$.useRef(null),A=$.useRef(null),k=$.useCallback(H=>{g.current=H,typeof n=="function"?n(H):n&&(n.current=H)},[n]),[R,O]=$.useState(!1),{margin:U,cells:V,numCells:z,calculatedImageSettings:G}=SL({value:r,level:i,minVersion:f,boostLevel:u,includeMargin:d,marginSize:m,imageSettings:p,size:a});$.useEffect(()=>{if(g.current!=null){const H=g.current,j=H.getContext("2d");if(!j)return;let N=V;const q=A.current,ee=G!=null&&q!==null&&q.complete&&q.naturalHeight!==0&&q.naturalWidth!==0;ee&&G.excavation!=null&&(N=EL(V,G.excavation));const ae=window.devicePixelRatio||1;H.height=H.width=a*ae;const Se=a/z*ae;j.scale(Se,Se),j.fillStyle=l,j.fillRect(0,0,z,z),j.fillStyle=c,Fee?j.fill(new Path2D(vL(N,U))):V.forEach(function(ce,be){ce.forEach(function(se,Y){se&&j.fillRect(Y+U,be+U,1,1)})}),G&&(j.globalAlpha=G.opacity),ee&&j.drawImage(q,G.x+U,G.y+U,G.w,G.h)}}),$.useEffect(()=>{O(!1)},[x]);const W=K6({height:a,width:a},v);let I=null;return x!=null&&(I=$.createElement("img",{src:x,key:x,style:{display:"none"},onLoad:()=>{O(!0)},ref:A,crossOrigin:G==null?void 0:G.crossOrigin})),$.createElement($.Fragment,null,$.createElement("canvas",K6({style:W,height:a,width:a,ref:k,role:"img"},E)),I)});jee.displayName="QRCodeCanvas";var LL=$.forwardRef(function(t,n){const s=t,{value:r,size:a=gL,level:i=wL,bgColor:l=CL,fgColor:c=xL,includeMargin:d=yL,minVersion:f=bL,boostLevel:u,title:m,marginSize:p,imageSettings:C}=s,b=X6(s,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:E,numCells:x,calculatedImageSettings:g}=SL({value:r,level:i,minVersion:f,boostLevel:u,includeMargin:d,marginSize:p,imageSettings:C,size:a});let A=E,k=null;C!=null&&g!=null&&(g.excavation!=null&&(A=EL(E,g.excavation)),k=$.createElement("image",{href:C.src,height:g.h,width:g.w,x:g.x+v,y:g.y+v,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));const R=vL(A,v);return $.createElement("svg",K6({height:a,width:a,viewBox:`0 0 ${x} ${x}`,ref:n,role:"img"},b),!!m&&$.createElement("title",null,m),$.createElement("path",{fill:l,d:`M0,0 h${x}v${x}H0z`,shapeRendering:"crispEdges"}),$.createElement("path",{fill:c,d:R,shapeRendering:"crispEdges"}),k)});LL.displayName="QRCodeSVG";const L9=({data:e})=>e?o.jsxs("div",{className:"relative inline-block bg-white p-1","data-testid":"deposit-qr",children:[o.jsx(LL,{value:e,size:160,marginSize:1,bgColor:"#ffffff",fgColor:"#000000",level:"M"}),o.jsx("div",{className:"absolute inset-0 flex scale-50 items-center justify-center",children:o.jsx("img",{src:"/logos/logo-whale-deposit.webp",alt:"","aria-hidden":"true"})})]}):null,ag=({className:e})=>o.jsx("div",{className:ie("size-full animate-pulse rounded bg-primary-active",e),"aria-hidden":"true"}),$ee=2e3,Bee=(e,t)=>
86`${e}:${t??""}`,Uee=({hasAddress:e,walletsLoadState:t,isCreating:n,hasFailed:s,hasPlaceholderWallet:r,isAwaitingNetwork:a})=>e?"ready":s||t==="failed"?"error":t==="loading"||n||a||r?"loading":"error",AL=({currency:e,network:t})=>{const[n,s,r]=Me([dw,l4,zT]),[a,i]=y.useState(fe.USDT),[l,c]=y.useState(void 0),[d,f]=y.useState(!1),u=y.useRef(!1),[m,p]=y.useState(null),[C,b]=y.useState(null);y.useEffect(()=>{S3()},[]);const v=y.useMemo(()=>uw([...new Set(n.map(N=>N.currency))],"deposit"),[n]),E=N=>n.filter(q=>q.currency===N&&q.network).map(q=>q.network),x=(N,q)=>{var Se,ce,be,se;const ee=n.filter(Y=>Y.currency===N);if(!ee.length||!ee.some(Y=>Y.network))return;if(q)return(Se=ee.find(Y=>Y.network===q))==null?void 0:Se.network;const ae=(ce=ee.find(Y=>Y.network===s.network))==null?void 0:ce.network;return ae||(((be=ee.find(Y=>Y.default))==null?void 0:be.network)??((se=ee[0])==null?void 0:se.network))},g=(N,q)=>{if(Te("Set currency",{currency:N}),!n.some(ae=>ae.currency===N))return;i(N);const ee=x(N,q);Te("Set network",{network:ee}),c(ee)};y.useEffect(()=>{u.current||!n.length||(u.current=!0,g(e??s.currency,t))},[n]);const A=n.filter(N=>N.currency===a),k=A.length===1?A[0]:l?A.find(N=>N.network===l):void 0,R=k!=null&&k.id?k.depositAddress:void 0,O=Bee(a,l);y.useEffect(()=>{var ee;if(!k||k.id||m===O||C===O)return;const N=A.length===1?((ee=A[0])==null?void 0:ee.network)||void 0:l,q=O;p(q),qT({currency:k.currency,network:N||k.currency}).then(ae=>{ae||b(q)}).catch(()=>b(q)).finally(()=>p(ae=>ae===q?null:ae))},[k==null?void 0:k.currency,k==null?void 0:k.network,k==null?void 0:k.id,O,m,C]);const U=Uee({hasAddress:!!R,walletsLoadState:r,isCreating:m===O,hasFailed:C===O,hasPlaceholderWallet:!!k,isAwaitingNetwork:A.length>1&&!l}),V=()=>{b(null),r==="failed"&&S3()};y.useEffect(()=>{R&&Te("Set deposit address",{address:R})},[R]);const z=async()=>{if(R){Te("Copy deposit address",{address:R}),D_();try{await navigator.clipboard.writeText(R)}catch(N){console.error("Failed to copy the deposit address",N)}f(!0),window.setTimeout(()=>f(!1),$ee)}},G=Ad(iw.OnlyTonNetwork),W=E(a).filter(N=>G?N==="TON":!0).map(N=>({value:N,title:Ic(N)})),I=Ws(),H=a===fe.BRL,j=I!==vr.TELEGRAM;return o.jsxs("div",{className:"flex flex-col gap-y-4",children:[o.jsx(Ree,{}),o.jsxs("div",{className:"flex flex-row gap-4",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx(nt,{htmlFor:"select-currency",className:"text-brandblue-100",children:w("modals.wallet.deposit.currency")}),o.jsx(ba,{id:"select-currency",value:a,withCurrencyIcon:!0,options:v.map(N=>({value:N,title:Ic(N)})),onChange:N=>g(N)})]}),a!==fe.BRL&&W.length?o.jsxs("div",{className:"flex-1",children:[o.jsx(nt,{htmlFor:"select-network",className:"text-brandblue-100",children:w("modals.wallet.deposit.network")}),o.jsx(ba,{id:"select-network",value:l,options:W,onChange:N=>{Te("Set network",{network:N}),c(x(a,N))}})]}):null]}),o.jsx("div",{className:"my-2 h-px w-full bg-highlight"}),H?o.jsx(_ee,{}):null,H?null:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("h4",{className:"flex flex-row items-center gap-2 font-medium",children:[o.jsx(jS,{className:"text-brand-tertiary"}),w("modals.wallet.deposit.blockchain")]}),o.jsx("p",{className:"text-sm text-brandblue-100",children:w("modals.wallet.deposit.blockchainHint")}),U==="error"?o.jsxs("div",{className:"flex flex-col items-center gap-3 py-4","data-testid":"deposit-address-error",children:[o.jsx("p",{className:"text-center text-sm text-brandblue-100",children:w("modals.wallet.deposit.addressError")}),o.jsx(wn,{variant:"secondary",size:"sm","data-testid":"deposit-address-retry",onClick:V,children:w("modals.wallet.deposit.addressRetry")})]}):o.jsxs(o.Fragment,{children:[j?o.jsx("div",{className:"flex flex-row items-center justify-center gap-4",children:U==="ready"&&R?o.jsx(L9,{data:YT(a,R)}):o.jsx(ag,{className:"size-[168px] rounded-lg"})}):null,o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"deposit-address",className:"text-brandblue-100",children:w("modals.wallet.deposit.address",{currency:a})}),U==="ready"&&R?o.jsx(dn,{id:"deposit-address",name:"deposit-address","data-testid":"deposit-address",className:"text-white disabled:opacity-100",disabled:!0,value:R,readOnly:!0,trailing:o.jsxs("div",{className:"relative",children:[o.jsx(wn,{variant:"secondary",size:"sm",className:"w-full","data-testid":"copy-deposit-address",onClick:()=>void z(),children:o.jsx(Ou,{className:"text-icon-inactive"})}),d?o.jsx("span",{className:"absolute right-0 top-9 flex h-9 items-center rounded-md border border-brand-tertiary bg-secondary-active p-1 text-sm",children:w("modals.wallet.deposit.copy")}):null]})}):o.jsx(ag,{className:"h-10 w-full rounded-lg"})]}),o.jsxs("div",{className:"flex items-center gap-1.5 self-stretch rounded-lg bg-[rgba(235,192,102,0.1)] px-3 py-2 text-yellow",children:[o.jsx(o1,{className:"text-warning"}),w("modals.wallet.deposit.warning")]})]}),o.jsx(Tee,{currency:a,network:l})]})]})},K0={email:"pix.form.errors.email",firstName:"pix.form.errors.firstName",lastName:"pix.form.errors.lastName",personalCode:"pix.form.errors.personalCode"},Hee=()=>{const e=Or(),[{depositAmount:t},n,s]=Me([c4,KT,Q9.pending]),[r,a]=y.useState(""),[i,l]=y.useState(""),[c,d]=y.useState(""),[f,u]=y.useState(""),[m,p]=y.useState(!1),[C,b]=y.useState("");y.useEffect(()=>{if(!n)return;b(n);const A=window.setTimeout(()=>b(""),XT);return()=>window.clearTimeout(A)},[n]);const v={firstName:m||r.length>0,lastName:m||i.length>0,personalCode:m||c.length>0,email:f.length>0},E={firstName:v.firstName&&!r0(r)?w(K0.firstName):"",lastName:v.lastName&&!r0(i)?w(K0.lastName):"",personalCode:v.personalCode&&!e8(c)?w(K0.personalCode):"",email:v.email&&!JT
86(f)?w(K0.email):""},x=QT({lastName:E.lastName,firstName:E.firstName,personalCode:E.personalCode,server:C}),g=async()=>{if(p(!0),!r0(r)||!r0(i)||!e8(c)||C)return;try{await Q9({amount:t,details:{firstName:r,lastName:i,personalCode:t8(c),email:f}})}catch{return}const A=new URLSearchParams(window.location.search);A.set("modal","wallet"),A.set("tab","pix-qr"),e(`${wr()}?${A.toString()}`,{replace:!0})};return o.jsxs("div",{children:[o.jsx("h4",{className:"flex flex-row items-center gap-2 font-medium",children:w("pix.form.personalData.modal.title")}),o.jsx("p",{className:"text-sm text-brandblue-100",children:w("pix.form.personalData.modal.description")}),o.jsx("div",{className:"my-2 h-px w-full bg-highlight"}),o.jsxs("div",{className:"flex flex-col gap-y-4",children:[o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"deposit-brl-first-name",className:"text-brandblue-100",children:w("global_firstname")}),o.jsx(dn,{name:"deposit-brl-first-name",id:"deposit-brl-first-name","data-testid":"pix-first-name",className:"text-sm",placeholder:w("modals.wallet.deposit.pix.first_name_placeholder"),value:r,onChange:A=>a(A.target.value)}),E.firstName?o.jsx("div",{className:"text-sm text-error","data-testid":"pix-first-name-error",children:E.firstName}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"deposit-brl-last-name",className:"text-brandblue-100",children:w("global_lastname")}),o.jsx(dn,{name:"deposit-brl-last-name",id:"deposit-brl-last-name","data-testid":"pix-last-name",placeholder:w("modals.wallet.deposit.pix.last_name_placeholder"),value:i,onChange:A=>l(A.target.value)}),E.lastName?o.jsx("div",{className:"text-sm text-error","data-testid":"pix-last-name-error",children:E.lastName}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"deposit-brl-cpf",className:"text-brandblue-100",children:w("pix.form.personalData.cpfNumber.label")}),o.jsx(dn,{name:"deposit-brl-cpf",id:"deposit-brl-cpf","data-testid":"pix-cpf",inputMode:"numeric",placeholder:"***.***.***-**",value:c,onChange:A=>d(t8(A.target.value))}),E.personalCode?o.jsx("div",{className:"text-sm text-error","data-testid":"pix-cpf-error",children:E.personalCode}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"deposit-email",className:"text-brandblue-100",children:w("global_typeYourEmailHere")}),o.jsx(dn,{name:"deposit-email",id:"deposit-email","data-testid":"pix-email",type:"email",placeholder:"email",value:f,onChange:A=>u(A.target.value)}),E.email?o.jsx("div",{className:"text-sm text-error","data-testid":"pix-email-error",children:E.email}):null]})]}),o.jsx("div",{className:"my-4",children:o.jsx(wn,{variant:x?"golden":"primary",disabled:!!x||s,"data-testid":"pix-details-submit",className:"w-full gap-1",onClick:()=>void g(),children:C||w("pix.form.buttons.continue")})})]})},Vee=2e3,og=({value:e,testId:t})=>{const[n,s]=y.useState(!1),r=async()=>{if(e){try{await navigator.clipboard.writeText(e)}catch(a){console.error("Failed to copy the PIX value",a)}s(!0),window.setTimeout(()=>s(!1),Vee)}};return o.jsxs("div",{className:"relative",children:[o.jsx(wn,{variant:"secondary",size:"sm","data-testid":t,className:"w-full",onClick:()=>void r(),children:o.jsx(Ou,{className:"text-brandblue-100"})}),n?o.jsx("span",{className:"absolute right-0 top-9 flex h-9 items-center rounded-md border border-brand-tertiary bg-secondary-active p-1 text-sm",children:w("modals.wallet.deposit.copy")}):null]})},Wee=()=>{const{closeModal:e}=Os(),{pixQrCode:t,pixEmv:n,depositAmount:s}=Me(c4);return o.jsxs("div",{className:"flex flex-col items-center gap-y-4",children:[t?o.jsx("div",{className:"flex w-full items-center justify-center gap-4",children:o.jsx(L9,{data:t})}):null,o.jsx("h4",{className:"flex flex-row items-center gap-2 font-medium",children:w("modals.wallet.deposit.pix.order_placed")}),o.jsx("p",{className:"text-sm text-brandblue-100",children:w("modals.wallet.deposit.pix.scan_hint")}),o.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o.jsx(nt,{htmlFor:"pix-emv",className:"text-brandblue-100",children:w("modals.wallet.deposit.pix.copy_paste_address")}),o.jsx(dn,{name:"pix-emv",id:"pix-emv","data-testid":"pix-emv",className:"text-white disabled:opacity-100",disabled:!0,readOnly:!0,value:n,trailing:o.jsx(og,{value:n,testId:"pix-copy-emv"})})]}),o.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o.jsx(nt,{htmlFor:"pix-exact-amount",className:"text-brandblue-100",children:w("modals.wallet.deposit.pix.exact_amount")}),o.jsx(dn,{name:"pix-exact-amount",id:"pix-exact-amount","data-testid":"pix-exact-amount",className:"text-white disabled:opacity-100",disabled:!0,readOnly:!0,value:s,trailing:o.jsx(og,{value:String(s),testId:"pix-copy-amount"})})]}),o.jsx("div",{className:"w-full",children:o.jsx(wn,{variant:"secondary-clean","data-testid":"pix-close",className:"w-full gap-1",onClick:()=>{e_(),e()},children:w("global_close")})})]})},Zee=1e3,Gee={"BEP-20":"BNB Smart Chain (BEP-20)",BSC:"BNB Smart Chain (BEP-20)",BNB:"BNB Smart Chain","ERC-20":"Ethereum (ERC-20)","TRC-20":"Tron (TRC-20)",SOL:"Solana",BASE:"Base",TON:"TON",BTC:"Bitcoin",LT:"Bitcoin Lightning",CELO:"Celo"},zee=e=>Gee[e]??e,bd=(e,t)=>[...new Set(e.filter(n=>n.currency===t&&n.network).map(n=>n.network))],qee=(e,t)=>
86{const n=bd(e,t);return n.length===1?n[0]:n.includes(hs.ERC20)?hs.ERC20:void 0},Yee=({lastWithdrawal:e,wallets:t,currencies:n,preSelectedCurrency:s})=>!e||!n.includes(e.currency)||s&&s!==e.currency||!bd(t,e.currency).includes(e.network)?null:e,Kee=(e,t)=>!Number.isFinite(t)||t<=0?!0:e*t>=Zee,Xee=({confirmation:e,onConfirm:t,onClose:n})=>{const s=y.useRef(null);return y.useEffect(()=>{var r;(r=s.current)==null||r.focus({preventScroll:!0})},[]),y.useEffect(()=>{const r=a=>{a.key==="Escape"&&(a.stopPropagation(),n())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[n]),mv.createPortal(o.jsx("div",{className:"bg-black/70 fixed inset-0 z-top-level flex items-center justify-center overflow-y-auto p-4","data-testid":"withdraw-confirm",onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:"relative my-auto flex w-full max-w-md flex-col gap-6 rounded-2xl bg-primary p-6",role:"dialog","aria-modal":"true","aria-labelledby":"withdraw-confirm-title",children:[o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("h3",{id:"withdraw-confirm-title",className:"text-lg font-semibold text-white",children:w("modals.wallet.withdrawal.confirm.title")}),o.jsx("p",{className:"text-sm text-warning",children:w("modals.wallet.withdrawal.confirm.description")})]}),o.jsxs("dl",{className:"flex flex-col gap-3 rounded-xl bg-secondary p-4 text-sm",children:[o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("dt",{className:"text-brandblue-100",children:w("modals.wallet.withdrawal.confirm.amount")}),o.jsxs("dd",{className:"text-base font-semibold text-white","data-testid":"withdraw-confirm-amount",children:[e.amount," ",Ic(e.currency)]})]}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("dt",{className:"text-brandblue-100",children:w("modals.wallet.withdrawal.confirm.network")}),o.jsx("dd",{className:"text-base font-semibold text-white","data-testid":"withdraw-confirm-network",children:zee(e.network)})]}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("dt",{className:"text-brandblue-100",children:w("modals.wallet.withdrawal.confirm.address")}),o.jsx("dd",{className:"break-all font-mono text-white","data-testid":"withdraw-confirm-address",children:e.address})]})]}),o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx("button",{type:"button","data-testid":"withdraw-confirm-accept",className:"inline-flex h-10 w-full items-center justify-center rounded-md bg-gradient-primary px-4 py-2 text-sm font-medium text-button-primary-text transition-opacity hover:opacity-90",onClick:t,children:w("modals.wallet.withdrawal.confirm.confirm")}),o.jsx("button",{ref:s,type:"button","data-testid":"withdraw-confirm-cancel",className:"inline-flex h-10 w-full items-center justify-center rounded-md bg-secondary px-4 py-2 text-sm font-medium text-brandblue-100 transition-opacity hover:opacity-90",onClick:n,children:w("modals.wallet.withdrawal.confirm.cancel")})]})]})}),document.body)},J6="USER_BLOCKED",Jee="Request failed with status code 429",Qee=e=>{if(!e)return w("errors.default");if(e===J6)return J6;const t=e===Jee?"errors.TOO_MANY_REQUESTS":`errors.${e}`,n=w(t);return n===t?w("errors.default"):n},ete=5,tte=(e,t)=>{const n=L3(e,t);if(n>0){const s=10**(t_[e]??2),r=F2/s;return Math.ceil(ete*F2/n/r)/s}return 1},sc=/^0x[a-fA-F0-9]{40}$/,h3="[1-9A-HJ-NP-Za-km-z]",nte={[hs.ERC20]:[sc],[hs.BEP20]:[sc],[hs.BSC]:[sc],[hs.BNB]:[sc],[hs.CELO]:[sc],[hs.TRC20]:[new RegExp(`^T${h3}{33}$`)],[hs.SOL]:[new RegExp(`^${h3}{32,44}$`)],[hs.BTC]:[new RegExp(`^[13]${h3}{25,39}$`),/^bc1[02-9ac-hj-np-z]{11,71}$/],[hs.TON]:[/^[A-Za-z0-9_-]{48}$/,/^-?[0-9]:[a-fA-F0-9]{64}$/]},ste=[fe.BRL],TL=e=>e.trim(),rte=(e,t)=>{const n=t||Kg[e];return n&&n!=="null"?n:void 0},ate=(e,t,n)=>{const s=TL(e);if(!s)return"empty";if(ste.includes(t))return null;const r=nte[rte(t,n)??""];return r?r.some(a=>a.test(s))?null:"format":null},ote=(e,t,n)=>{const s=TL(e);return{address:s,error:ate(s,t,n)}},ite=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
87<path fill-rule="evenodd" clip-rule="evenodd" d="M18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003ZM12.4998 7.50033C12.4998 8.88104 11.3805 10.0003 9.99984 10.0003C8.61912 10.0003 7.49984 8.88104 7.49984 7.50033C7.49984 6.11961 8.61912 5.00033 9.99984 5.00033C11.3805 5.00033 12.4998 6.11961 12.4998 7.50033ZM9.99982 17.0837C11.4865 17.0837 12.8663 16.6256 14.0056 15.843C14.5088 15.4973 14.7239 14.8389 14.4313 14.303C13.8248 13.1922 12.575 12.5003 9.99978 12.5003C7.42458 12.5003 6.17481 13.1922 5.56829 14.303C5.27571 14.8388 5.49075 15.4973 5.99397 15.8429C7.13332 16.6256 8.51308 17.0837 9.99982 
8717.0837Z" fill="#ADAFCE"/>
88</svg>
89`,lte=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="12" viewBox="0 0 16 12" fill="none">
90	<path d="M1.33398 5.37502C0.988806 5.37502 0.708984 5.65484 0.708984 6.00002C0.708984 6.3452 0.988806 6.62502 1.33398 6.62502H9.04232V11C9.04232 11.2528 9.19459 11.4807 9.42814 11.5774C9.66169 11.6742 9.93051 11.6207 10.1093 11.442L15.1093 6.44196C15.2265 6.32475 15.2923 6.16578 15.2923 6.00002C15.2923 5.83426 15.2265 5.67529 15.1093 5.55808L10.1093 0.558077C9.93051 0.379328 9.66169 0.325855 9.42814 0.422594C9.19459 0.519331 9.04232 0.747229 9.04232 1.00002V5.37502H1.33398Z" fill="#ADAFCE"/>
91</svg>
92`,cte=`<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
93 <path d="m3.6029 4.7363v2.0644c0 0.44262-0.35882 0.80144-0.80144 0.80144s-0.80144-0.35882-0.80144-0.80144v-3.9992c0-0.44262 0.35882-0.80144 0.80144-0.80144h3.9992c0.44262 0 0.80144 0.35882 0.80144 0.80144s-0.35882 0.80144-0.80144 0.80144h-2.0644l2.631 2.6311c0.31299 0.31298 0.31299 0.82042 0 1.1334-0.31298 0.31299-0.82042 0.31299-1.1334 0l-2.6311-2.631zm9.5965-1.1334c-0.4427 0-0.8015-0.35882-0.8015-0.80144s0.3588-0.80144 0.8015-0.80144h3.9992c0.4426 0 0.8014 0.35882 0.8014 0.80144v3.9992c0 0.44262-0.3588 0.80144-0.8014 0.80144-0.4427 0-0.8015-0.35882-0.8015-0.80144v-2.0644l-2.631 2.631c-0.313 0.31299-0.8205 0.31299-1.1334 0-0.313-0.31298-0.313-0.82042 0-1.1334l2.631-2.6311h-2.0643zm-10.398 8.795c0.44262 0 0.80144 0.3588 0.80144 0.8015v2.0643l2.6311-2.631c0.31298-0.313 0.82042-0.313 1.1334 0 0.31299 0.3129 0.31299 0.8204 0 1.1334l-2.631 2.631h2.0644c0.44262 0 0.80144 0.3588 0.80144 0.8015 0 0.4426-0.35882 0.8014-0.80144 0.8014h-3.9992c-0.21255 0-0.4164-0.0844-0.5667-0.2347s-0.23474-0.3542-0.23474-0.5667v-3.9992c0-0.4427 0.35882-0.8015 0.80144-0.8015zm12.462 3.9992-2.631-2.631c-0.313-0.313-0.313-0.8205 0-1.1334 0.3129-0.313 0.8204-0.313 1.1334 0l2.631 2.631v-2.0643c0-0.4427 0.3588-0.8015 0.8015-0.8015 0.4426 0 0.8014 0.3588 0.8014 0.8015v3.9992c0 0.4426-0.3588 0.8014-0.8014 0.8014h-3.9992c-0.4427 0-0.8015-0.3588-0.8015-0.8014 0-0.4427 0.3588-0.8015 0.8015-0.8015h2.0643z" clip-rule="evenodd" fill="currentColor" fill-rule="evenodd"/>
94</svg>
95`,dte=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
96  <path d="M20 11.25C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H10.75L10.75 18C10.75 18.3034 10.5673 18.5768 10.287 18.6929C10.0068 18.809 9.68417 18.7449 9.46967 18.5304L3.46967 12.5304C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697L9.46967 5.46969C9.68417 5.25519 10.0068 5.19103 10.287 5.30711C10.5673 5.4232 10.75 5.69668 10.75 6.00002L10.75 11.25H20Z" fill="#ADAFCE"/>
97</svg>
98`,ute=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.667" d="M15.833 10H4.167m0 0L10 15.833M4.167 10 10 4.167"/></svg>
99`,fte=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
100    <path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C17.5 5.8579 14.1421 2.50004 10 2.50004C7.225 2.50004 4.80091 4.00672 3.50286 6.25064C3.27241 6.64903 2.76264 6.78516 2.36425 6.55471C1.96587 6.32426 1.82973 5.81448 2.06018 5.4161C3.64389 2.67835 6.606 0.833373 10 0.833374C15.0626 0.833374 19.1667 4.93743 19.1667 10C19.1667 15.0627 15.0626 19.1667 10 19.1667C6.60599 19.1667 3.64389 17.3217 2.06018 14.584C1.82973 14.1856 1.96587 13.6758 2.36425 13.4454C2.76264 13.2149 3.27241 13.351 3.50286 13.7494C4.80091 15.9934 7.22499 17.5 10 17.5C14.1421 17.5 17.5 14.1422 17.5 10ZM13.9225 9.41078C14.248 9.73622 14.248 10.2639 13.9225 10.5893L10.5892 13.9226C10.2638 14.2481 9.73613 14.2481 9.41069 13.9226C9.08525 13.5972 9.08525 13.0696 9.41069 12.7441L11.3214 10.8334L1.66661 10.8334C1.20638 10.8334 0.83328 10.4603 0.83328 10C0.83328 9.5398 1.20638 9.16671 1.66661 9.16671L11.3214 9.16671L9.41069 7.25596C9.08525 6.93052 9.08525 6.40289 9.41069 6.07745C9.73613 5.75201 10.2638 5.75201 10.5892 6.07745L13.9225 9.41078Z" fill="currentColor"/>
101</svg>
102`,mte=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewB
102ox="0 0 16 16" fill="none">
103    <path d="M3.64645 11.6464C3.45118 11.8417 3.45118 12.1583 3.64645 12.3536C3.84171 12.5488 4.15829 12.5488 4.35355 12.3536L9 7.70711L11.6464 10.3536C11.7894 10.4966 12.0045 10.5393 12.1913 10.4619C12.3782 10.3846 12.5 10.2022 12.5 10V4C12.5 3.72386 12.2761 3.5 12 3.5L6 3.5C5.79777 3.5 5.61545 3.62182 5.53806 3.80866C5.46067 3.9955 5.50345 4.21055 5.64645 4.35355L8.29289 7L3.64645 11.6464Z" fill="currentColor"/>
104</svg>
105`,hte=`<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" opacity=".2"><path d="m23.795 11.466-7.2-8A.8.8 0 0016 3.2h-4.8a.8.8 0 00-.595 1.334L17.323 12l-6.718 7.464a.799.799 0 00.595 1.335H16a.8.8 0 00.595-.264l7.2-7.999a.8.8 0 000-1.07"/><path d="m13.395 11.466-7.2-8a.8.8 0 00-.594-.266H.8a.8.8 0 00-.595 1.334L6.924 12 .206 19.464A.799.799 0 00.8 20.799h4.8a.8.8 0 00.595-.264l7.2-7.999a.8.8 0 000-1.07" opacity=".5"/></g></svg>
106`,pte=`<?xml version="1.0" encoding="UTF-8"?>
107<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
108 <path d="m8.4638 2.2319c0.52742-0.05364 1.0971 0.11297 1.4707 0.5 0.16414 0.17118 0.25974 0.36194 0.39454 0.56055 0.1762 0.27605 0.3634 0.55522 0.5293 0.83496 0.0925 0.18006-0.0087 0.39078-0.166 0.49414-0.1328 0.08066-0.305 0.09488-0.418 0.20898-0.0856 0.08922-0.0938 0.23802-0.0332 0.33594 0.0952 0.16183 0.3133 0.22129 0.4883 0.1709 0.1272-0.03973 0.2316-0.10623 0.3691-0.13574 0.2179-0.0405 0.439 0.0382 
1080.5879 0.21093 0.0631 0.08173 0.1108 0.1702 0.169 0.25684 0.1567 0.24369 0.3273 0.50929 0.4931 0.76855 1.4608 2.2798 3.0769 4.8018 3.959 6.1767 0.2249 0.3677 0.3141 0.8198 0.291 1.2432v0.0068c-0.0356 0.564-0.3524 1.1056-0.8535 1.3868-0.3934 0.2347-0.8875 0.5302-1.2793 0.749-0.2135 0.0807-0.4686-0.0378-0.5762-0.2324-0.3741-0.6857-1.0917-0.9561-1.6806-0.7715-0.5809 0.1521-1.0051 0.9047-0.8955 1.5615 0.0235 0.1711 0.0695 0.3366 0.1347 0.4971 0.0434 0.1117 0.1074 0.2147 0.1055 0.3379 0.0095 0.2223-0.1299 0.45-0.3398 0.539-0.2275 0.1282-0.6878 0.4108-0.9551 0.5645-0.26847 0.1544-0.51901 0.3324-0.8135 0.416-0.87729 0.2853-1.8639-0.1564-2.3174-0.9316-0.86173-1.8534-3.6954-8.83-3.7774-8.962-0.00153-0.00302-0.01287-0.03202-0.01953-0.05567-0.05896-0.20721 0.03116-0.43475 0.19531-0.57519 0.16886-0.13672 0.47338-0.21999 0.68262-0.32031 0.38268-0.17387 0.31811-0.66588-0.09961-0.69825-0.06153-0.00486-0.13296 0.00627-0.19531 0.02832-0.2158 0.07369-0.43564 0.19956-0.65723 0.24512-0.2258 0.03727-0.49048-0.05546-0.59277-0.26953-0.10832-0.25343-0.22514-0.5381-0.33594-0.80176-0.12161-0.31897-0.28032-0.57543-0.32129-0.89648-0.06228-0.6058 0.33071-1.1464 0.8457-1.4307 0.17122-0.10274 0.35564-0.16006 0.54297-0.22558 0.26749-0.09703 0.53924-0.19661 0.80176-0.29199 0.16868-0.07569 0.39527-0.09825 0.54004 0.03418 0.07438 0.08429 0.12942 0.21891 0.21777 0.29394 0.27721 0.27573 0.69945 0.35689 1.0801 0.28027 0.43986-0.08619 0.82176-0.39537 0.84961-0.85058 0.00366-0.11825-0.02014-0.23695-0.07715-0.34375-0.03382-0.0703-0.06253-0.15015-0.03711-0.22656 0.02279-0.06939 0.07192-0.11523 0.13379-0.15039 0.05492-0.04086 0.11334-0.07021 0.17774-0.08985 0.15179-0.05529 0.30445-0.10965 0.45996-0.16699 0.33355-0.11465 0.58002-0.24463 0.92187-0.27539zm-1.1943 5.2012-0.00586 0.00293c-0.25146 0.13106 0.04245 0.32697 0.17285 0.41797 0.38424 0.22404 0.34413 0.79802 0.14941 1.1377-0.0624 0.13792-0.26473 0.20859-0.25488 0.37207 0.04381 0.13221 0.39993 0.09802 0.53223 0.12696 0.19483 0.0127 0.37177 0.06368 0.55957 0.13086 0.02534 0.00931 0.05089 0.01918 0.07422 0.02929 0.00927 4e-3 0.01436 0.00988 0.01269 0.01661-2e-3 0.00277-0.00606 0.00875-0.00781 0.01171-0.13059 0.15137-0.26376 0.27378-0.39063 0.42191-0.0164 0.0206-0.03247 0.0356-0.05664 0.0429-0.07813 0.0135-0.14014 0.0668-0.21289 0.0967-0.03704-0.0013-0.06744-0.0302-0.10449-0.0381-0.25476-0.092-0.62307 0.1069-0.56055 0.4004 0.01522 0.0611-0.07194 0.0563-0.11035 0.084-0.12565 0.063-0.21723 0.1501-0.25 0.2744-0.04539 0.1647 0.0731 0.3287 0.23438 0.375 0.02887 0.0143 0.07546 0.0077 0.08886 0.0381-0.04216 0.1437-0.10735 0.2865-0.11035 0.4326-0.01896 0.167 0.04334 0.3007 0.08594 0.4571-0.05413 0.4081-0.07109 0.8285-0.07812 1.2334-0.04011 0.1551-0.14722 0.2935-0.22168 0.4335-0.15417 0.2674-0.2508 0.5633-0.30665 0.8663-0.03386 0.1657-0.05762 0.3353-0.06054 0.5039 0 0.0992 0.00132 0.2 0.04199 0.289 0.23086 0.3298 0.5444-0.1071 0.67969-0.3144 0.02959-0.0444 0.05797-0.092 0.08594-0.1348 0.01151-0.0167 0.02904-0.0044 0.03613 0.0098 0.14438 0.2175 0.36172 0.4461 0.62109 0.5215 0.2476 0.055 0.33357-0.1849 0.29883-0.3897-0.05593-0.3923-0.23148-0.7545-0.26953-1.1484-0.01338-0.2383 0.12816-0.4681 0.32617-0.5987 0.0644-0.0408 0.12485-0.0618 0.19629-0.0937 0.02993-0.0076 0.11524-0.0592 0.11621-0.0049-0.00124 0.063-0.00955 0.1288 0.00977 0.1885 0.03325 0.0928 0.15201 0.1423 0.24707 0.123 0.25001-0.0627 0.41758-0.3012 0.53711-0.5088 0.03107-0.0423 0.08972-0.0409 0.14257-0.0507 0.0438-0.0046 0.09673-0.0141 0.13965-0.0088-0.44206 0.3989-0.64216 1.0296-0.66504 1.6133-0.00165 0.1297-0.01252 0.2584 0.00684 0.3808 0.03266 0.0794 0.14108 0.0928 0.20605 0.043 0.10907-0.1073 0.17403-0.2426 0.27735-0.3584 0.20022-0.2433 0.45638-0.483 0.75289-0.6026 0.095-0.0375 0.1929-0.0631 0.294-0.0693 0.4628-0.0315 0.9506-0.0526 1.4023-0.1611 0.6564-0.1446 1.1652-0.5223 1.3994-1.1582 0.0541-0.1367 0.0934-0.2761 0.1289-0.418 0.0034-0.0088 0.0099-0.0151 0.0176-0.0176 0.0514-0.0078 0.0991-0.0235 0.1406-0.0556 0.2663-0.213-0.2771-0.6153-0.3623-0.8243-0.0401-0.1006-0.1118-0.1926-0.1523-0.29 0.0143-0.0761 0.1303-0.0743 0.1797-0.1182 0.1264-0.0889 0.1819-0.2433 0.2295-0.3789 0.172-0.2761 0.29-0.7428-0.1904-0.7236-0.0276-2e-3 -0.063 0.0151-0.0743-0.0078 0.0158-0.08297 0.0495-0.16982 0.0664-0.25685 0.1988-0.76839-0.1584-1.272-0.8584-1.5801-0.9886-0.46135-2.133 0.02552-2.957 0.61328-0.12392 0.08877-0.23396 0.1831-0.34961 0.27637-0.02607 0.02212-0.03883 0.01006-0.04297-0.02148-0.16623-0.77075-0.77929-1.693-1.6582-1.6533l-0.17871 0.02148zm5.6895-6.4287c0.3842 0.02387 0.7594 0.24642 1.1093 0.37012 0.2068 0.07616 0.3944 0.1572 0.3008 0.40722-0.0426 0.0864-0.0603 0.18575-0.0537 0.28321 0.0418 0.53585 0.7019 0.84244 1.1856 0.66797 0.1832-0.06185 0.3415-0.18582 0.4218-0.36231 0.029-0.05446 0.0873-0.09288 0.1436-0.11133 0.0972-0.0295 0.1992-0.00442 0.291 0.03614 0.2801 0.11592 0.6144 0.24254 0.8887 0.36132 0.6066 0.28282 0.9526 0.97382 0.6308 1.5898l-0.0019 0.00488c-0.0811 0.20521-0.1787 0.45294-0.2569 0.65039-0.0533 0.12127-0.0782 0.25444-0.1816 0.34375-0.115 0.09546-0.2883 0.11601-0.4307 0.06152-0.1318-0.0447-0.2659-0.14373-0.413-0.11425-0.2862 0.05498-0.2665 0.38514-0.0547 0.51172 0.0926 0.05235 0.2013 0.08082 0.2939 0.13281 0.1281 0.07829 0.2214 0.21537 0.2334 0.3623 0.0082 0.13664-0.059 0.23276-0.1074 0.3711-0.1009 0.25389-0.1889 0.47963-0.294 0.74414-0.3934 0.98449-0.8102 2.0755-1.2285 3.0977-0.1803-0.2654-0.3477-0.54128-0.5263-0.81446-0.6682-1.0431-2.4092-3.7581-2.8077-4.3809-0.1998-0.30596-0.5449-0.46998-0.8945-0.48145 0.1585-0.25032 0.1924-0.57908 0.0381-0.84375-0.0955-0.15683-0.2027-0.32443-0.3135-0.49804-0.0334-0.0335 0.1277-0.00879 0.1416-0.00488 0.2069 0.04916 0.4198 0.23899 0.6358 0.18164 0.2517-0.07554 0.2779-0.38313 0.0215-0.48633-0.2061-0.09827-0.5284-0.1554-0.545-0.43262-0.0132-0.12242 0.0696-0.2196 0.125-0.32031 0.1002-0.16921 0.2657-0.45041 0.3662-0.62207 0.0943-0.1707 0.1956-0.3305 0.3555-0.44434 0.2615-0.20157 0.597-0.28614 0.9268-0.26074zm-6.3526 5.3057-0.00781 9.8e-4c-0.16644 0.04013-0.30692 0.12009-0.47168 0.18066-0.24844 0.10183-0.53519 0.21842-0.56738 0.23145-0.07888 0.03231-0.1541 0.08969-0.19922 0.16406-0.15139 0.23429 0.03385 0.49141 0.28613 0.51856 0.08052 0.01104 0.16822-0.00316 0.24219-0.03907 0.14386-0.06058 0.3107-0.12979 0.47851-0.20019 0.16419-0.
1080688 0.32991-0.13814 0.4668-0.19629 0.04587-0.02049 0.09671-0.05384 0.13184-0.08984 0.23208-0.23305 0.01051-0.63009-0.35938-0.57032zm2.4307-0.99414-0.00684 0.00196c-0.21992 0.06122-0.87019 0.35125-0.97656 0.38672-0.17119 0.05978-0.2694 0.25965-0.19434 0.42675 0.03146 0.07734 0.09881 0.14431 0.17774 0.17871 0.20968 0.10115 0.38333-0.00426 0.57812-0.08496 0.20174-0.08432 0.49272-0.20431 0.67969-0.28418 0.3812-0.16763 0.17068-0.68717-0.25781-0.625zm6.0693-0.80859c-0.2848-0.10814-0.4231-0.24429-0.6357-0.04688-0.0912 0.09306-0.0849 0.26711 0.042 0.3711 0.0802 0.06138 0.1603 0.07898 0.2558 0.12402 0.2046 0.08349 0.4088 0.18154 0.6026 0.25195 0.3896 0.07794 0.4949-0.35895 0.1855-0.51269l-0.0732-0.0293c-0.1191-0.04954-0.2534-0.10622-0.377-0.1582zm-2.1826-0.91992c-0.1671-0.08059-0.3975 0.01899-0.4228 0.20117-0.0207 0.11962 0.0567 0.22335 0.1738 0.27539 0.0323 0.01352 0.3014 0.12834 0.4971 0.21191 0.0805 0.03355 0.1468 0.06364 0.2236 0.09473 0.3947 0.12537 0.5884-0.37406 0.1738-0.51172l-0.0049-9.7e-4c-0.1556-0.06559-0.5297-0.22382-0.6406-0.27051z" fill="currentColor"/>
109</svg>
110`,gte=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
111	<path d="M9.45873 1.19995L11.9999 4.37642L14.5411 1.19995H9.45873Z" fill="currentColor" />
112	<path
113		d="M12.6352 5.61607V8.90372C12.868 8.96386 13.0876 9.05666 13.2897 9.17626L17.3704 5.09555C16.5054 4.35345 15.4854 3.78702 14.3667 3.45171L12.6352 5.61607Z"
114		fill="currentColor"
115	/>
116	<path
117		d="M14.4608 10.7293H20.2346C20.097 8.92884 19.3793 7.28834 18.269 5.99403L14.1882 10.0747C14.3078 10.2768 14.4007 10.4965 14.4608 10.7293Z"
118		fill="currentColor"
119	/>
120	<path
121		d="M6.62953 17.6337C7.92383 18.7441 9.56433 19.4618 11.3648 19.5994V13.8256C11.132 13.7654 10.9123 13.6726 10.7102 13.553L6.62953 17.6337Z"
122		fill="currentColor"
123	/>
124	<path
125		d="M18.2689 16.7352L14.1882 12.6545C14.3077 12.4524 14.4006 12.2327 14.4607 12H20.2346C20.097 13.8004 19.3793 15.4409 18.2689 16.7352Z"
126		fill="currentColor"
127	/>
128	<path
129		d="M11.9999 12.6353C12.7017 12.6353 13.2705 12.0664 13.2705 11.3647C13.2705 10.663 12.7017 10.0941 11.9999 10.0941C11.2982 10.0941 10.7294 10.663 10.7294 11.3647C10.7294 12.0664 11.2982 12.6353 11.9999 12.6353Z"
130		fill="currentColor"
131	/>
132	<path
133		d="M9.53911 12C9.59925 12.2327 9.69209 12.4524 9.81165 12.6544L5.73094 16.7352C4.62053 15.4409 3.90286 13.8004 3.76526 12H9.53911Z"
134		fill="currentColor"
135	/>
136	<path
137		d="M13.2897 13.553C13.0876 13.6725 12.868 13.7654 12.6352 13.8255V19.5994C14.4356 19.4618 16.0761 18.7441 17.3704 17.6337L13.2897 13.553Z"
138		fill="currentColor"
139	/>
140	<path
141		d="M5.73094 5.99403L9.81165 10.0747C9.69209 10.2768 9.59925 10.4965 9.53911 10.7293H3.76526C3.90286 8.92884 4.62058 7.28834 5.73094 5.99403Z"
142		fill="currentColor"
143	/>
144	<path
145		d="M11.3648 5.61607V8.90372C11.132 8.96386 10.9123 9.05674 10.7102 9.17626L6.62953 5.09555C7.49459 4.35345 8.51449 3.78706 9.63324 3.45171L11.3648 5.61607Z"
146		fill="currentColor"
147	/>
148	<path
149		d="M7.98206 20.0108C10.5154 21.1899 13.4864 21.1889 16.0176 20.0108L17.3675 21.5296H18.9881V22.8002H5.01164V21.5296H6.63223L7.98206 20.0108Z"
150		fill="currentColor"
151	/>
152</svg>`,wte=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
153<path d="M4.72461 8.26229L7.2764 4.80976C8.92587 2.57805 9.7506 1.4622 10.5201 1.698C11.2895 1.93381 11.2895 3.3024 11.2895 6.03959V6.29767C11.2895 7.28492 11.2895 7.77854 11.605 8.08817L11.6217 8.10421C11.9439 8.40729 12.4577 8.40729 13.4852 8.40729C15.3343 8.40729 16.2588 8.40729 16.5713 8.96808C16.5764 8.97737 16.5815 8.98673 16.5864 8.99616C16.8813 9.56562 16.346 10.2899 15.2754 11.7384L12.7236 15.1909C11.0741 17.4226 10.2493 18.5385 9.47988 18.3026C8.71041 18.0668 8.71043 16.6982 8.71047 13.961L8.71047 13.703C8.71049 12.7158 8.71049 12.2221 8.39504 11.9125L8.37835 11.8965C8.0561 11.5934 7.54233 11.5934 6.5148 11.5934C4.66575 11.5934 3.74122 11.5934 3.42876 11.0326C3.42358 11.0233 3.41855 11.014 3.41367 11.0045C3.11871 10.4351 3.65401 9.71081 4.72461 8.26229Z" fill="currentColor"/>
154</svg>
155`,Cte=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
156	<path
157		d="M22.9801 13.6129C22.9601 13.5578 22.9294 13.5072 22.8898 13.4641C21.9578 12.3886 21.9303 10.3988 21.95 9.73925L22.7138 9.35846C22.7778 9.3252 22.8317 9.27515 22.8696 9.21364C22.9075 9.15213 22.9281 9.08146 22.9291 9.00917C22.9294 8.93606 22.9095 8.8643 22.8715 8.80192C22.8334 8.73953 22.7788 8.68899 22.7138 8.65594L14.0867 4.25224C13.7949 4.10486 13.4757 4.02002 13.1494 4.00313C12.8231 3.98625 12.4968 4.0377 12.1914 4.15419C8.35802 5.61435 3.87006 8.28697 2.11581 9.37027C1.77394 9.57973 1.49167 9.87394 1.29623 10.2245C1.10079 10.5751 0.998775 10.9703 1.00001 11.3719V13.6405C1.00088 14.0572 1.11231 14.4662 1.32288 14.8256C1.53346 15.1849 1.8356 15.4817 2.19832 15.6854L4.40282 16.9298C4.44839 16.0485 4.49121 14.7439 4.53208 13.8602C4.42929 13.8241 4.33489 13.7674 4.25458 13.6936C4.17428 13.6198 4.10974 13.5305 4.06487 13.431C4.02 13.3315 3.99573 13.2239 3.99353 13.1148C3.99134 
15713.0056 4.01125 12.8972 4.05208 12.7959C4.09291 12.6947 4.1538 12.6028 4.23107 12.5259C4.30833 12.4489 4.40038 12.3885 4.50162 12.3482C4.60287 12.3079 4.71122 12.2886 4.82011 12.2915C4.929 12.2944 5.03618 12.3194 5.13516 12.365L10.8682 15.1046C10.9219 15.1307 10.9808 15.1443 11.0405 15.1443C11.1002 15.1443 11.1591 15.1307 11.2127 15.1046L21.167 10.1319C21.1683 10.5763 21.205 11.0199 21.2766 11.4585L10.8092 16.8081L9.23102 16.0623L9.1489 16.8904C9.21177 16.9034 10.8092 17.7087 10.8171 17.6362C10.8797 17.6354 10.9413 17.6206 10.9974 17.5929L21.4408 12.2512C21.5617 12.7279 21.7573 13.1823 22.0203 13.5976L11.1927 19.0605C10.9657 19.1746 10.7144 19.2313 10.4606 19.2258C10.2068 19.2203 9.95812 19.1528 9.73627 19.029L8.97643 18.5856L8.88645 19.4453C9.25634 19.741 9.7014 19.9271 10.1713 19.9826C10.6412 20.038 11.1172 19.9606 11.5455 19.7591L22.7487 14.1071C22.843 14.0698 22.9194 13.9978 22.9624 13.9059C23.0054 13.8139 23.0118 13.7094 22.9801 13.6129ZM13.2059 6.82681C13.2558 6.73538 13.3399 6.66754 13.4397 6.63816C13.5395 6.60878 13.6469 6.62026 13.7382 6.67008L15.3907 7.58052C15.4376 7.6042 15.4792 7.63709 15.513 7.67723C15.5469 7.71737 15.5724 7.76393 15.588 7.81415C15.6035 7.86437 15.6088 7.91721 15.6036 7.96952C15.5984 8.02184 15.5827 8.07257 15.5574 8.11868C15.5322 8.16478 15.498 8.20533 15.4568 8.23791C15.4156 8.27048 15.3683 8.29442 15.3177 8.30828C15.2671 8.32215 15.2143 8.32566 15.1623 8.31862C15.1103 8.31157 15.0602 8.29411 15.0151 8.26728L13.3626 7.35685C13.3174 7.33254 13.2775 7.2995 13.2451 7.25965C13.2127 7.21979 13.1885 7.17391 13.1739 7.12463C13.1593 7.07536 13.1546 7.02368 13.16 6.97256C13.1654 6.92145 13.1813 6.87191 13.2059 6.82681ZM15.892 9.92354C15.8421 10.015 15.758 10.0828 15.6583 10.1123C15.5585 10.1419 15.4512 10.1306 15.3597 10.0811L10.7036 7.51751C10.6572 7.49355 10.616 7.46052 10.5826 7.42037C10.5491 7.38021 10.524 7.33375 10.5087 7.28372C10.4935 7.23368 10.4884 7.1811 10.4937 7.12905C10.4991 7.07701 10.5148 7.02657 10.5399 6.9807C10.565 6.93484 10.599 6.89448 10.6399 6.862C10.6809 6.82953 10.7278 6.8056 10.7782 6.79162C10.8285 6.77764 10.881 6.7739 10.9328 6.78062C10.9846 6.78735 11.0345 6.80439 11.0796 6.83075L15.7353 9.3939C15.7804 9.41821 15.8203 9.45122 15.8527 9.49105C15.885 9.53087 15.9092 9.57672 15.9238 9.62595C15.9384 9.67517 15.9432 9.72681 15.9378 9.77788C15.9324 9.82896 15.9166 9.87846 15.892 9.92354Z"
158		fill="currentColor"
159	/>
160	<path
161		d="M8.52264 14.9711L5.39761 13.503C5.39012 13.5003 5.38213 13.4993 5.37421 13.5001C5.36629 13.5009 5.35865 13.5035 5.35185 13.5077C5.34506 13.5118 5.33929 13.5175 5.33497 13.5242C5.33065 13.5309 5.32788 13.5384 5.32689 13.5464C5.25853 15.1853 5.18152 17.0853 5.11159 18.7274C5.11181 18.7353 5.11388 18.7431 5.11763 18.7501C5.12138 18.7571 5.1267 18.7632 5.13319 18.7678C5.13967 18.7724 5.14713 18.7754 5.15497 18.7766C5.16281 18.7778 5.17083 18.7771 5.17838 18.7747L6.91298 18.158L7.96985 19.8536C7.9752 19.8622 7.98309 19.869 7.99241 19.8729C8.00174 19.8769 8.01205 19.8778 8.02194 19.8757C8.03184 19.8735 8.04082 19.8683 8.04767 19.8609C8.05452 19.8534 8.0589 19.844 8.06021 19.8339C8.18593 18.5904 8.35566 16.9617 8.47942 15.713L8.55014 15.0183C8.55184 15.0085 8.55001 14.9983 8.54498 14.9897C8.53995 14.981 8.53204 14.9745 8.52264 14.9711Z"
162		fill="currentColor"
163	/>
164</svg>
165`,xte=`<?xml version="1.0" encoding="UTF-8"?>
166<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
167 <path d="m17.982 5.9576v-0.03383c-0.0176-0.03382-0.0176-0.06765-0.0353-0.10147v-0.01692c-0.0176-0.03382-0.053-0.06765-0.0706-0.08456l-0.0177-0.01691c-0.0176-0.01691-0.053-0.03383-0.0706-0.05074l-0.0177-0.01691h-0.0176l-0.0177-0.01691-7.5055-3.5686c-0.1413-0.06765-0.3179-0.06765-0.47684 0l-2.5254 1.2008 7.5408 3.7039 0.0177 0.01691c0.0176 0 0.0176 0.01692 0.0353 0.01692 0.0177 0.01691 0.0177 0.03382 0.0353 0.05073v3.9744c0 0.0677-0.0353 0.1184-0.0883 0.1522l-1.5188 0.7611c-0.0883 0.0507-0.1942 0.0169-0.2472-0.0677-0.0177-0.0169-0.0177-0.0507-0.0177-0.0845v-3.8392l-7.6291-3.7715-0.01766-0.01691-3.0552 1.4545-0.01766 0.01692h-0.01766l-0.01766 0.01691c-0.01766 0.01691-0.05298 0.03382-0.07064 0.05074l-0.01766 0.01691c-0.03532 0.03382-0.05298 0.06765-0.0883 0.10147v0.01692c-0.01766 0.03382-0.03532 0.06765-0.03532 0.10147v0.03383c0 0.03382-0.01766 0.05074-0.01766 0.08456v7.8982c0 0.186 0.10596 0.3721 0.30022 0.4566l7.4349 3.5517c0.10596 0.0507 0.22958 0.0676 0.3532 0.0338l0.0353-0.0169c0.0353 0 0.053-0.0169 0.0883-0.0338l7.4879-3.5517c0.1766-0.0845 0.3002-0.2537 0.3002-0.4566v-7.8813c-0.0177-0.03382-0.0177-0.05074-0.0177-0.08456z" fill="currentColor"/>
168</svg>
169`,yte=`<?xml version="1.0" encoding="UTF-8"?>
170<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
171 <path d="m16.969 3.083-6.0334-1.0638c-0.6786-0.11965-1.3257 0.33347-1.4454 1.0121l-0.0571 0.32384c0.87255 0.1075 1.6096 0.73606 1.8418 1.6022l0.3688 1.3761c0.1952-0.08466 0.4165-0.11516 0.6417-0.07544 0.4274 0.07538 0.7553 0.38297 0.8775 0.77006 0.2472-0.32196 0.6605-0.49887 1.0879-0.4235 0.6118 0.10788 1.0202 0.69122 0.9124 1.3029-0.2344 1.3292-1.6608 2.3975-2.3377 2.8369l1.0335 3.857c0.0554 0.2067 0.0785 0.4146 0.0734 0.6184l0.8695 0.1533c0.6786 0.1197 1.3257-0.3334 1.4454-1.012l1.7337-9.8326c0.1197-0.67865-0.3334-1.3258-1.
171012-1.4454z" fill="currentColor"/>
172 <path d="m10.371 5.1994c-0.1494-0.55743-0.65352-0.92509-1.2044-0.92506-0.10688 0-0.21556 0.01385-0.32372 0.04281l-5.9177 1.5856c-0.66559 0.17834-1.0606 0.8625-0.88225 1.5281l2.5841 9.6441c0.14937 0.5574 0.65346 0.925 1.2044 0.925 0.10688 0 0.21556-0.0138 0.32369-0.0428l5.9177-1.5857c0.6656-0.1783 1.0606-0.8625 0.8822-1.528l-2.584-9.644zm-4.605 6.5922c-0.10035-0.0883-0.13782-0.2282-0.09507-0.3548l0.90488-2.6793c0.07569-0.22413 0.35512-0.299 0.53275-0.14275l2.1233 1.868c0.10035 0.0882 0.13781 0.2282 0.09506 0.3547l-0.90487 2.6794c-0.07569 0.2241-0.35513 0.299-0.53275 0.1427l-2.1233-1.8679z" fill="currentColor"/>
173</svg>
174`,bte=`<svg xmlns="http://www.w3.org/2000/svg" width="73" height="73" viewBox="0 0 73 73" fill="currentColor">
175  <path fill-rule="evenodd" clip-rule="evenodd" d="M66.5005 36.5C66.5005 53.0685 53.069 66.5 36.5005 66.5C19.9319 66.5 6.50049 53.0685 6.50049 36.5C6.50049 19.9315 19.9319 6.5 36.5005 6.5C53.069 6.5 66.5005 19.9315 66.5005 36.5ZM48.5915 27.409C49.4701 28.2877 49.4701 29.7123 48.5915 30.591L33.5915 45.591C32.7128 46.4697 31.2882 46.4697 30.4095 45.591L24.4095 39.591C23.5308 38.7123 23.5308 37.2877 24.4095 36.409C25.2882 35.5303 26.7128 35.5303 27.5915 36.409L32.0005 40.818L38.705 34.1135L45.4095 27.409C46.2882 26.5303 47.7128 26.5303 48.5915 27.409Z" fill="currentColor"/>
176</svg>`,vte=`<?xml version="1.0" encoding="UTF-8"?>
177<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
178 <path d="m17.256 4.4108c0.3255 0.32544 0.3255 0.85307 0 1.1785l-9.1666 9.1666c-0.32544 0.3255-0.85308 0.3255-1.1785 0l-4.1667-4.1666c-0.32544-0.3255-0.32544-0.85311 0-1.1786 0.32543-0.32544 0.85307-0.32544 1.1785 0l3.5774 3.5774 8.5774-8.5774c0.3254-0.32544 0.8531-0.32544 1.1785 0z" clip-rule="evenodd" fill="currentColor" fill-rule="evenodd"/>
179</svg>
180`,Ete=`<?xml version="1.0" encoding="UTF-8"?>
181<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
182 <path d="m9.3678 10.849c-0.49-0.4143-1.1078-0.6617-1.7786-0.6617-0.47065 0-0.92787 0.1216-1.3393 0.3542-0.41141-0.2326-0.86866-0.3542-1.3393-0.3542-1.5878 0-2.8795 1.3864-2.8795 3.0906 0 2.5595 1.9319 4.7219 4.2188 4.7219 1.2548 0 2.4026-0.6511 3.1832-1.6615-0.5461-0.9119-0.83941-1.9674-0.83941-3.0604 0-0.9116 0.28856-1.7532 0.77409-2.4289z" fill="currentColor"/>
183 <path d="m11.579 8.8798c0.0778 0.14537 0.1566 0.28518 0.2355 0.41949 0.1944-0.03231 0.3935-0.04924 0.5963-0.04924 0.1669 0 0.3335 0.01178 0.4985 0.03471-0.1717-0.26178-0.348-0.55437-0.5184-0.87468-0.599-1.1268-0.9617-2.2675-1.0869-3.4114 0.089 0.11866 0.1874 0.23366 0.2965 0.34272 1.0987 1.0988 2.7955 1.1308 2.8672 1.1316 0.0018 4e-5 0.0036 3e-5 0.0054 3e-5 0.1242 0 0.2435-0.04934 0.3314-0.13731 0.0892
183-0.08922 0.1387-0.21065 0.1373-0.33684-8e-4 -0.07169-0.0329-1.7685-1.1316-2.8672-1.0949-1.0948-2.7833-1.1306-2.8662-1.1316-0.0097-1.6e-4 -0.0196 4.3e-4 -0.0294 9.3e-4 -0.0719 0.00316-0.1412 0.02288-0.2031 0.05722-1.1376 0.60444-2.1056 1.4594-2.8772 2.5415-0.61288 0.8595-1.1026 1.8622-1.4557 2.9802-0.20981 0.66453-0.3459 1.2881-0.43425 1.8206 0.10322 0.03053 0.20522 0.06546 0.3056 0.10503 0.21446-0.08454 0.43625-0.14866 0.66197-0.19154 0.08128-0.4385 0.19668-0.93246 0.36068-1.4518 0.62185-1.9696 1.6538-3.4721 3.0736-4.4798-0.1374 1.8393 0.2817 3.7208 1.2327 5.4974z" fill="currentColor"/>
184 <path d="m15.089 10.188c-0.4707 0-0.9279 0.1216-1.3393 0.3542-0.4114-0.2326-0.8687-0.3542-1.3393-0.3542-1.5877 0-2.8794 1.3864-2.8794 3.0906 0 2.5595 1.932 4.7219 4.2188 4.7219s4.2188-2.1624 4.2188-4.7219c0-1.7042-1.2918-3.0906-2.8795-3.0906z" fill="currentColor"/>
185</svg>
186`,Ste=`<?xml version="1.0" encoding="UTF-8"?>
187<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
188 <path d="m2.6875 4.7617c1.6172-2.25 4.2891-3.7617 7.3125-3.7617 4.957 0 9 4.043 9 9 0 4.9922-4.043 9-9 9-1.8633 0-3.5508-0.5273-4.9922-1.4766-0.38672-0.2461-0.49219-0.7734-0.21093-1.1601 0.24609-0.3867 0.77343-0.4922 1.1602-0.2461 1.1602 0.7734 2.5312 1.1953 4.043 1.1953 4.0078 0 7.3125-3.2695 7.3125-7.3125 0-4.0078-3.3047-7.3125-7.3125-7.3125-2.6016 0-4.8867 1.3711-6.1875 3.375h1.9688c0.45703 0 0.84375 0.38672 0.84375 0.84375 0 0.49219-0.38672 0.84375-0.84375 0.84375h-3.9375c-0.49219 0-0.84375-0.35156-0.84375-0.84375v-3.9375c0-0.45703 0.35156-0.84375 0.84375-0.84375 0.45703 0 0.84375 0.38672 0.84375 0.84375v1.793zm7.3125 0.73828h-0.03516c0.49216 0 0.84376 0.38672 0.84376 0.84375v3.3398l2.2852 2.2852c0.3515 0.3164 0.3515 0.8437 0 1.1601-0.3165 0.3516-0.8438 0.3516-1.1602 0l-2.5313-2.5312c-0.17578-0.1407-0.24609-0.3516-0.24609-0.5977v-3.6562c0-0.45703 0.35156-0.84375 0.84375-0.84375z" fill="currentColor"/>
189</svg>
190`,Lte=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
191	<path
192		fill-rule="evenodd"
193		clip-rule="evenodd"
194		d="M1.75488 5.75513C1.75488 3.54599 3.54574 1.75513 5.75488 1.75513H10.7548V8.75508C10.7548 9.85965 9.8594 10.7551 8.75484 10.7551H1.75488V5.75513ZM13.2447 15.245C13.2447 14.1404 14.1402 13.245 15.2447 13.245H22.2447V18.2449C22.2447 20.4541 20.4538 22.2449 18.2447 22.2449H13.2447V15.245ZM1.75488 13.245H8.75483C9.8594 13.245 10.7548 14.1404 10.7548 15.245V22.2449H5.75488C3.54574 22.2449 1.75488 20.4541 1.75488 18.2449V13.245ZM13.2447 1.75513H18.2447C20.4538 1.75513 22.2447 3.54599 22.2447 5.75513V10.7551H15.2447C14.1402 10.7551 13.2447 9.85965 13.2447 8.75508V1.75513Z"
195		fill="currentColor"
196	/>
197</svg>
198`,Ate=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
199<path d="M12.7002 4.67871C14.9628 4.67871 16.0939 4.67901 16.7969 5.38477C17.4998 6.09053 17.5 7.22624 17.5 9.49805V13.5137C17.5 15.7855 17.4998 16.9222 16.7969 17.6279C16.0939 18.3334 14.9625 18.333 12.7002 18.333H10.2998C8.0375 18.333 6.90606 18.3334 6.20312 17.6279C5.50018 16.9222 5.5 15.7855 5.5 13.5137V9.49805C5.5 7.22631 5.50027 6.09054 6.20312 5.38477C6.90604 4.67903 8.03723 4.67871 10.2998 4.67871H12.7002ZM12.7002 1.66699C13.9679 1.66707 15.052 2.45618 15.4912 3.57227C14.7573 3.47322 13.8429 3.47357 12.7793 3.47363L10.2207 3.47363C9.15716 3.47357 8.24072 3.47323 7.50684 3.57227C6.72027 3.67844 5.96607 3.91826 5.35449 4.53223C4.7429 5.14628 4.5042 5.90358 4.39844 6.69336C4.29977 7.43028 4.29974 8.35094 4.2998 9.41895V13.5928C4.29976 14.4773 4.3004 15.541 4.35645 16.2988C3.2671 15.8473 2.5 14.7704 2.5 13.5137L2.5 8.64941C2.49999 7.17331 2.49954 6.0039 2.62207 5.08887C2.74818 4.14719 3.0146 3.38526 3.61328 2.78418C4.21197 2.18311 4.97126 1.91567 5.90918 1.78906C6.82048 1.6661 7.98512 1.66698 9.45508 1.66699L12.7002 1.66699Z" fill="currentColor"/>
200</svg>`,Tte=`<svg
201	xmlns="http://www.w3.org/2000/svg"
202	aria-hidden="true"
203	role="img"
204	width="1em"
205	height="1em"
206	viewBox="0 0 20 20"
207>
208	<path
209		fill="none"
210		stroke="currentColor"
211		stroke-linecap="round"
212		stroke-linejoin="round"
213		stroke-width="1.667"
214		d="M4.167 12.5c-.777 0-1.165 0-1.472-.127a1.67 1.67 0 01-.902-.902c-.126-.306-.126-.695-.126-1.471V4.333c0-.933 0-1.4.181-1.756.16-.314.415-.569.729-.729.356-.181.823-.181 1.756-.181H10c.776 0 1.165 0 1.471.126.408.17.733.494.902.902.127.307.127.695.127 1.472m-2.334 14.166h5.5c.934 0 1.4 0 1.757-.181.314-.16.569-.415.729-.729.181-.356.181-.823.181-1.756v-5.5c0-.934 0-1.4-.181-1.757a1.67 1.67 0 00-.729-.729C17.067 7.5 16.6 7.5 15.667 7.5h-5.5c-.934 0-1.4 0-1.757.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756v5.5c0 .934 0 1.4.181 1.757.16.314.415.569.729.729.356.181.823.181 1.756.181"
215	></path>
216</svg>`,_te=`<?xml version="1.0" encoding="UTF-8"?>
217<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
218 <path d="m17.972 7.9071-1.8582 7.3488c-0.0541 0.2128-0.1752 0.4013-0.3445 0.5359s-0.3773 0.2078-0.5914 0.2082h-10.352c-0.2141-4e-4 -0.42204-0.0736-0.59135-0.2082-0.16932-0.1346-0.29047-0.3231-0.34454-0.5359l-1.8582-7.3488c-0.04519-0.17689-0.04196-0.36316 0.00933-0.53828 0.05129-0.17513 0.14864-0.3323 0.28134-0.45421 0.13269-0.12191 0.29557-0.20382 0.47069-0.23669 0.17511-0.03288 0.35566-0.01545 0.52175 0.05036l3.0789 1.2178c0.03114 0.01244 0.06534 0.01428 0.09757 0.00525 0.03224-0.00903 0.06079-0.02845 0.08147-0.05541l2.6666-3.5114c0.09-0.11968 0.20551-0.21658 0.33765-0.28325 0.13215-0.06666 0.2774-0.
21810133 0.42458-0.10133 0.1473 0 0.2925 0.03467 0.4247 0.10133 0.1321 0.06667 0.2476 0.16357 0.3376 0.28325l2.6666 3.5114c0.0207 0.02696 0.0493 0.04638 0.0815 0.05541s0.0664 0.00719 0.0976-0.00525l3.0789-1.2178c0.166-0.06292 0.3456-0.07821 0.5194-0.04421 0.1738 0.03399 0.3354 0.11598 0.4673 0.23716s0.2292 0.27698 0.2814 0.45067 0.0574 0.35871 0.015 0.5352z" fill="currentColor"/>
219</svg>
220`,Rte=`<?xml version="1.0" encoding="UTF-8"?>
221<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
222 <path d="m18.333 7.0834c0 2.7167-2 4.9584-4.6 5.35v-0.05c-0.2583-3.2334-2.8833-5.8584-6.1417-6.1167h-0.025c0.39167-2.6 2.6334-4.6 5.3501-4.6 2.9916 0 5.4166 2.425 5.4166 5.4167z" fill="currentColor"/>
223 <path d="m12.483 12.483c-0.2083-2.6416-2.325-4.7583-4.9666-4.9666-0.14166-0.00834-0.29166-0.01667-0.43333-0.01667-2.9917 0-5.4167 2.425-5.4167 5.4167 0 2.9916 2.425 5.4166 5.4167 5.4166s5.4167-2.425 5.4167-5.4166c0-0.1417-0.0083-0.2917-0.0167-0.4334zm-4.6666 1.1667-0.73333 1.35-0.73333-1.35-1.35-0.7333 1.35-0.7334 0.73333-1.35 0.73333 1.35 1.35 0.7334-1.35 0.7333z" fill="currentColor"/>
224</svg>
225`,Nte=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
226    <path d="M13.8545 1.66701C13.907 1.66699 14.0256 1.66262 14.1592 1.68166L14.2959 1.70998L14.4004 1.74221C14.5032 1.7798 14.6006 1.83135 14.6904 1.89455C14.8466 2.00447 14.9622 2.15255 15.0068 2.20608L18.6172 6.54006C18.6725 6.60642 18.7438 6.69072 18.8008 6.77053C18.8481 6.83677 18.9052 6.92536 18.9512 7.03713L18.9922 7.15725L19.0283 7.32717C19.0523 7.49909 19.0401 7.67464 18.9922 7.84279C18.9437 8.01263 18.8639 8.14112 18.8008 8.22951C18.7438 8.30932 18.6725 8.39362 18.6172 8.45998L11.1523 17.419C11.074 17.513 10.9812 17.6255 10.8926 17.7149C10.7986 17.8095 10.6477 17.9434 10.4287 18.0235C10.1516 18.1247 9.84739 18.1247 9.5703 18.0235C9.35157 17.9435 9.20136 17.8095 9.10741 17.7149C9.01884 17.6256 8.92599 17.513 8.84765 17.419L1.38183 8.45998C1.32652 8.39362 1.25518 8.3093 1.19823 8.22951C1.13515 8.14112 1.05527 8.0126 1.00683 7.84279C0.942914 7.6187 0.942915 7.38134 1.00683 7.15725L1.04784 7.03713C1.09376 6.92535 1.15095 6.83678 1.19823 6.77053C1.25518 
2266.69074 1.32652 6.60642 1.38183 6.54006L4.99316 2.20608C5.03795 2.15227 5.15279 2.00423 5.30859 1.89455C5.42821 1.81036 5.56187 1.74802 5.70312 1.70998C5.88755 1.66036 6.07582 1.66701 6.1455 1.66701H13.8545ZM9.99902 14.5459L12.1611 8.33303H7.83788L9.99902 14.5459ZM7.95605 13.7461L6.07323 8.33303H3.4453L7.95605 13.7461ZM12.043 13.7451L16.5537 8.33303H13.9258L12.043 13.7451ZM13.9336 6.66701H16.5537L13.7754 3.33303H12.8223L13.9336 6.66701ZM7.82226 6.66701H12.1768L11.0654 3.33303H8.93359L7.82226 6.66701ZM3.4453 6.66701H6.06542L7.17675 3.33303H6.22363L3.4453 6.66701Z" fill="currentColor"/>
227</svg>
228`,kte=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="currentColor">
229<path d="M7.00016 4.23165C6.37623 4.40226 6.00016 4.88102 6.00016 5.33333C6.00016 5.78563 6.37623 6.2644 7.00016 6.43501V4.23165Z" fill="currentColor"/>
230<path d="M8.00016 7.56498V9.76834C8.6241 9.59773 9.00016 9.11897 9.00016 8.66666C9.00016 8.21436 8.6241 7.73559 8.00016 7.56498Z" fill="currentColor"/>
231<path fill-rule="evenodd" clip-rule="evenodd" d="M14.1668 6.99999C14.1668 10.6819 11.1821 13.6667 7.50016 13.6667C3.81826 13.6667 0.833496 10.6819 0.833496 6.99999C0.833496 3.3181 3.81826 0.333328 7.50016 0.333328C11.1821 0.333328 14.1668 3.3181 14.1668 6.99999ZM7.50016 2.49999C7.7763 2.49999 8.00016 2.72385 8.00016 2.99999V3.21115C9.08712 3.40577 10.0002 4.2224 10.0002 5.33333C10.0002 5.60947 9.7763 5.83333 9.50016 5.83333C9.22402 5.83333 9.00016 5.60947 9.00016 5.33333C9.00016 4.88102 8.6241 4.40226 8.00016 4.23165V6.54448C9.08712 6.73911 10.0002 7.55573 10.0002 8.66666C10.0002 9.77759 9.08712 10.5942 8.00016 10.7888V11C8.00016 11.2761 7.7763 11.5 7.50016 11.5C7.22402 11.5 7.00016 11.2761 7.00016 11V10.7888C5.91321 10.5942 5.00016 9.77759 5.00016 8.66666C5.00016 8.39052 5.22402 8.16666 5.50016 8.16666C5.7763 8.16666 6.00016 8.39052 6.00016 8.66666C6.00016 9.11897 6.37623 9.59773 7.00016 9.76834V7.4555C5.91321 7.26088 5.00016 6.44425 5.00016 5.33333C5.00016 4.2224 5.91321 3.40577 7.00016 3.21115V2.99999C7.00016 2.72385 7.22402 2.49999 7.50016 2.49999Z" fill="currentColor"/>
232</svg>`,Ite=`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="currentColor">
233<path d="M8.99984 7.62496C9.75923 7.62496 10.3748 8.24057 10.3748 8.99996C10.3748 9.75935 9.75923 10.375 8.99984 10.375C8.24045 10.375 7.62484 9.75935 7.62484 8.99996C7.62484 8.24057 8.24045 7.62496 8.99984 7.62496Z" fill="currentColor"/>
234<path fill-rule="evenodd" clip-rule="evenodd" d="M8.99984 0.666626C4.39746 0.666626 0.666504 4.39759 0.666504 8.99996C0.666504 13.6023 4.39746 17.3333 8.99984 17.3333C13.6022 17.3333 17.3332 13.6023 17.3332 8.99996C17.3332 4.39759 13.6022 0.666626 8.99984 0.666626ZM4.62484 8.99996C4.62484 6.58371 6.58359 4.62496 8.99984 4.62496C11.4161 4.62496 13.3748 6.58371 13.3748 8.99996C13.3748 9.52719 13.2819 10.0313 13.1119 10.4977C13.0825 10.5786 13.0244 10.6657 12.9317 10.7512L12.8646 10.8131C12.614 11.0443 12.2376 11.074 11.9538 10.8848C11.7483 10.7478 11.6248 10.5171 11.6248 10.2701V8.99996C11.6248 7.55021 10.4496 6.37496 8.99984 6.37496C7.55009 6.37496 6.37484 7.55021 6.37484 8.99996C6.37484 10.4497 7.55009 11.625 8.99984 11.625C9.58463 11.625 10.1248 11.4337 10.5611 11.1104C10.7129 11.4361 10.9525 11.7195 11.2605 11.9249C12.0243 12.4341 13.0374 12.3543 13.7122 11.7318L13.7793 11.6699C13.9877 11.4777 14.1756 11.2296 14.2864 10.9256C14.5056 10.3241 14.6248 9.67524 14.6248 8.99996C14.6248 5.89336 12.1064 3.37496 8.99984 3.37496C5.89324 3.37496 3.37484 5.89336 3.37484 8.99996C3.37484 12.1066 5.89324 14.625 8.99984 14.625C9.34501 14.625 9.62484 14.3451 9.62484 14C9.62484 13.6548 9.34501 13.375 8.99984 13.375C6.58359 13.375 4.62484 11.4162 4.62484 8.99996Z" fill="currentColor"/>
235</svg>`,Mte=`<svg xmlns="http://www.w3.org/2000/svg" width="73" height="72" viewBox="0 0 73 72" fill="currentColor">
236<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4356 32.2844C25.1907 16.7614 29.5682 8.99994 36.5005 8.99994C43.4327 8.99994 47.8103 16.7614 56.5653 32.2844L57.6563 34.2187C64.9317 47.1182 68.5695 53.568 65.2817 58.284C61.994 62.9999 53.8598 62.9999 37.5915 62.9999H35.4095C19.1412 62.9999 11.
236007 62.9999 7.71926 58.284C4.43152 53.568 8.06922 47.1183 15.3446 34.2188L16.4356 32.2844ZM36.5005 21.7499C37.7431 21.7499 38.7505 22.7573 38.7505 23.9999V38.9999C38.7505 40.2426 37.7431 41.2499 36.5005 41.2499C35.2578 41.2499 34.2505 40.2426 34.2505 38.9999V23.9999C34.2505 22.7573 35.2578 21.7499 36.5005 21.7499ZM36.5005 50.9999C38.1573 50.9999 39.5005 49.6568 39.5005 47.9999C39.5005 46.3431 38.1573 44.9999 36.5005 44.9999C34.8436 44.9999 33.5005 46.3431 33.5005 47.9999C33.5005 49.6568 34.8436 50.9999 36.5005 50.9999Z" fill="currentColor"/>
237</svg>`,Ote=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
238<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5833 24C9.13695 23.6194 7.05262 21.4947 8.06221 16.9851C9.0848 18.4898 9.45664 17.6948 9.45664 17.6948C9.51862 12.5844 13.3301 11.3067 13.3301 11.3067C12.1896 13.9191 14.4465 13.9913 14.6006 16.9567C15.5303 16.474 15.8711 15.9346 15.8711 15.9346C18.9492 20.1347 16.6671 23.1401 13.7553 23.9111C18.419 23.3041 22.4288 19.2962 20.5083 10.718C18.5781 13.5583 17.8763 12.0579 17.8763 12.0579C17.7593 2.41162 10.5649 0 10.5649 0C12.7178 4.93114 8.45763 5.06733 8.16674 10.6645C6.41203 9.75342 5.76866 8.73522 5.76866 8.73522C-0.672395 17.5245 5.32071 23.5427 11.5833 24Z" fill="currentColor"/>
239</svg>
240`,Pte=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
241<path d="M2.5 5.32166C2.5 4.91795 2.78782 4.59068 3.14286 4.59068L5.36306 4.59029C5.80419 4.57757 6.19335 4.25863 6.34345 3.78678C6.3474 3.77438 6.35193 3.75908 6.36821 3.70355L6.46388 3.37715C6.52242 3.17703 6.57342 3.00267 6.64479 2.84683C6.92674 2.23115 7.4484 1.80362 8.05122 1.69416C8.20381 1.66645 8.3654 1.66657 8.55088 1.66671H11.4493C11.6347 1.66657 11.7963 1.66645 11.9489 1.69416C12.5517 1.80362 13.0734 2.23115 13.3554 2.84683C13.4267 3.00267 13.4777 3.17703 13.5363 3.37715L13.6319 3.70355C13.6482 3.75908 13.6527 3.77438 13.6567 3.78678C13.8068 4.25863 14.2732 4.57796 14.7143 4.59068H16.8571C17.2122 4.59068 17.5 4.91795 17.5 5.32166C17.5 5.72538 17.2122 6.05265 16.8571 6.05265H3.14286C2.78782 6.05265 2.5 5.72538 2.5 5.32166Z" fill="currentColor"/>
242<path fill-rule="evenodd" clip-rule="evenodd" d="M9.663 18.3335H10.337C12.6559 18.3335 13.8154 18.3335 14.5693 17.5952C15.3231 16.8569 15.4003 15.6459 15.5545 13.2239L15.7768 9.73396C15.8605 8.4198 15.9023 7.76272 15.5241 7.34634C15.1459 6.92995 14.5073 6.92995 13.23 6.92995H6.77004C5.49272 6.92995 4.85407 6.92995 4.47588 7.34634C4.09769 7.76272 4.13953 8.4198 4.22323 9.73396L4.44549 13.2239C4.59975 15.6459 4.67687 16.8569 5.43074 17.5952C6.18461 18.3335 7.34407 18.3335 9.663 18.3335ZM8.53856 10.1572C8.50422 9.79565 8.19794 9.53187 7.85448 9.56802C7.51101 9.60418 7.26042 9.92657 7.29477 10.2881L7.71143 14.6741C7.74578 15.0356 8.05206 15.2994 8.39552 15.2632C8.73899 15.2271 8.98958 14.9047 8.95523 14.5432L8.53856 10.1572ZM12.1455 9.56802C12.489 9.60418 12.7396 9.92657 12.7052 10.2881L12.2886 14.6741C12.2542 15.0356 11.9479 15.2994 11.6045 15.2632C11.261 15.2271 11.0104 14.9047 11.0448 14.5432L11.4614 10.1572C11.4958 9.79565 11.8021 9.53187 12.1455 9.56802Z" fill="currentColor"/>
243</svg>`,Dte=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
244<path fill-rule="evenodd" clip-rule="evenodd" d="M7.29134 1.66675H8.12467C10.4817 1.66675 11.6602 1.66675 12.3924 2.39898C13.1247 3.13121 13.1247 4.30973 13.1247 6.66675V13.5418H14.4342C15.4369 13.5418 16.2497 14.3546 16.2497 15.3572V15.4168C16.2497 15.7619 16.5295 16.0418 16.8747 16.0418C17.2199 16.0418 17.4997 15.7619 17.4997 15.4168V11.4584L16.4794 11.1183C15.969 10.9482 15.6247 10.4705 15.6247 9.93247V7.91675C15.6247 7.22639 16.1843 6.66675 16.8747 6.66675H17.4997V6.35214C17.4997 6.19794 17.4994 6.14495 17.4967 6.09652C17.4689 5.60103 17.2458 5.13679 16.8762 4.80553C16.8401 4.77315 16.7989 4.73986 16.6785 4.64354L15.6509 3.82148C15.3814 3.60585 15.3377 3.21254 15.5533 2.943C15.7689 2.67346 16.1622 2.62976 16.4318 2.84539L17.4728 3.67823C17.5748 3.75978 17.6451 3.81604 17.7106 3.87477C18.3265 4.42687 18.6984 5.20061 18.7448 6.02642C18.7497 6.11427 18.7497 6.20434 18.7497 6.33489V15.4168C18.7497 16.4523 17.9102 17.2918 16.8747 17.2918C15.8391 17.2918 14.9997 16.4523 14.9997 15.4168V15.3572C14.9997 15.0449 14.7465 14.7918 14.4342 14.7918H13.1247V17.7084H14.0609C14.406 17.7084 14.6859 17.9882 14.6859 18.3334C14.6859 18.6786 14.406 18.9584 14.0609 18.9584H1.45801C1.11283 18.9584 0.833008 18.6786 0.833008 18.3334C0.833008 17.9882 1.11283 17.7084 1.45801 17.7084H2.29134V6.66675C2.29134 4.30973 2.29134 3.13121 3.02357 2.39898C3.75581 1.66675 4.93432 1.66675 7.29134 1.66675ZM5.83301 13.5417C5.48783 13.5417 5.20801 13.8216 5.20801 14.1667C5.20801 14.5119 5.48783 14.7917 5.83301 14.7917H9.99967C10.3449 14.7917 10.6247 14.5119 10.6247 14.1667C10.6247 13.8216 10.3449 13.5417 9.99967 13.5417H5.83301ZM9.16634 5.00008H6.66634C5.88067 5.00008 5.48783 5.00008 5.24375 5.24416C4.99967 5.48824 4.99967 5.88107 4.99967 6.66675C4.99967 7.45242 4.99967 7.84526 5.24375 8.08934C5.48783 8.33341 5.88067 8.33341 6.66634 8.33341H9.16634C9.95201 8.33341 10.3449 8.33341 10.5889 8.08934C10.833 7.84526 10.833 7.45242 10.833 6.66675C10.833 5.88107 10.833 5.48824 10.5889 5.24416C10.3449 5.00008 9.95201 5.00008 9.16634 5.00008Z" fill="CurrentColor"/>
245</svg>
246`,Fte=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
247  <path d="M10 0.25C1.77916 0.25 0.25 1.77916 0.25 10C0.25 18.2057 1.74606 19.75 10 19.75C18.1896 19.75 19.75 18.2057 19.7
2475 10C19.75 1.75408 18.216 0.25 10 0.25ZM10 3.63016C10.984 3.63016 11.7816 4.42783 11.7816 5.41178C11.7816 6.39573 10.984 7.19341 10 7.19341C9.016 7.19341 8.21838 6.39578 8.21838 5.41178C8.21838 4.42783 9.01605 3.63016 10 3.63016ZM13.1544 15.2228C13.1544 15.8537 12.6382 16.3698 12.0073 16.3698H10.6231H9.36733H7.99258C7.36169 16.3698 6.8455 15.8537 6.8455 15.2228V15.1966C6.8455 14.5657 7.36169 14.0495 7.99258 14.0495H8.22025V9.5282H7.41906C7.10364 9.5282 6.84555 9.27011 6.84555 8.95469V8.91391C6.84555 8.59848 7.10364 8.34039 7.41906 8.34039H9.36733H10.1478H10.6231C11.254 8.34039 11.7701 8.85658 11.7701 9.48747V14.0495H12.0073C12.6382 14.0495 13.1544 14.5657 13.1544 15.1966V15.2228Z" fill="currentColor"></path>
248</svg>`,jte=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
249<path fill-rule="evenodd" clip-rule="evenodd" d="M4.37484 8.37917V6.66699C4.37484 3.56039 6.89324 1.04199 9.99984 1.04199C13.1064 1.04199 15.6248 3.56039 15.6248 6.66699V8.37917C16.5538 8.44854 17.1587 8.6237 17.6009 9.06589C18.3332 9.79813 18.3332 10.9766 18.3332 13.3337C18.3332 15.6907 18.3332 16.8692 17.6009 17.6014C16.8687 18.3337 15.6902 18.3337 13.3332 18.3337H6.6665C4.30948 18.3337 3.13097 18.3337 2.39874 17.6014C1.6665 16.8692 1.6665 15.6907 1.6665 13.3337C1.6665 10.9766 1.6665 9.79813 2.39874 9.06589C2.84093 8.6237 3.44587 8.44854 4.37484 8.37917ZM5.62484 6.66699C5.62484 4.25075 7.58359 2.29199 9.99984 2.29199C12.4161 2.29199 14.3748 4.25075 14.3748 6.66699V8.33664C14.0557 8.33366 13.7094 8.33366 13.3332 8.33366H6.6665C6.29024 8.33366 5.94401 8.33366 5.62484 8.33664V6.66699Z" fill="#ADAFCE"/>
250</svg>
251`,$te=`<?xml version="1.0" encoding="UTF-8"?>
252<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
253 <path d="m10.688 13.44-2.7541 2.7542c-1.1389 1.1389-2.9923 1.1391-4.1313 1e-4 -0.55179-0.5518-0.8556-1.2854-0.8556-2.0656s0.30381-1.5137 0.8554-2.0655c-6e-5 1e-4 7e-5 -1e-4 0 0l2.7543-2.7543c0.38022-0.38028 0.38022-0.99686-6e-5 -1.3771-0.38022-0.38022-0.9968-0.38022-1.3771 0l-2.7541 2.7541c-2e-4 2e-4 1.9e-4 -2e-4 0 0-0.91916 0.9195-1.426 2.1426-1.426 3.4428 0 1.3004 0.50641 2.5231 1.426 3.4427 0.94921 0.9491 2.1959 1.4237 3.4427 1.4237s2.4936-0.4746 3.4427-1.4237l2.7541-2.7543c0.3803-0.3802 0.3803-0.9968 0-1.3771-0.3802-0.3802-0.9967-0.3802-1.377 0z" fill="currentColor"/>
254 <path d="m19 5.8665c0-1.3005-0.5065-2.5231-1.4261-3.4427-1.8983-1.8983-4.9871-1.8982-6.8854 0 0 1.3e-4 1e-4 -1.3e-4 0 0l-2.7542 2.7543c-0.38028 0.38021-0.38028 0.99685 0 1.3771 0.1902 0.19021 0.43935 0.28524 0.68857 0.28524 0.24915 0 0.49843-0.0951 0.6885-0.28524l2.7541-2.754c-2e-4 1.3e-4 0-1.3e-4 0 0 1.1388-1.1389 2.9924-1.1393 4.1314-3.3e-4 0.5518 0.55179 0.8557 1.2854 0.8557 2.0656 0 0.78016-0.3038 1.5137-0.8555 2.0654l-2.7542 2.7543c-0.3803 0.3802-0.3803 0.9968 0 1.3771 0.1902 0.1901 0.4394 0.2852 0.6885 0.2852 0.2492 0 0.4985-0.0951 0.6886-0.2852l2.7541-2.7541c-2e-4 1.9e-4 2e-4 -2e-4 0 0 0.9191-0.91948 1.426-2.1426 1.426-3.4427z" fill="currentColor"/>
255 <path d="m6.5573 13.44c0.19014 0.1902 0.43936 0.2853 0.68851 0.2853 0.24921 0 0.49843-0.0951 0.68857-0.2853l5.5083-5.5083c0.3803-0.38022 0.3803-0.9968 0-1.3771-0.3802-0.38022-0.9968-0.38022-1.3771 0l-5.5083 5.5083c-0.38028 0.3803-0.38028 0.9969 0 1.3771z" fill="currentColor"/>
256</svg>
257`,Bte=`<?xml version="1.0" encoding="UTF-8"?>
258<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
259 <path d="m7.5 6.5v1.5h5v-1.5c0-1.375-1.125-2.5-2.5-2.5-1.4062 0-2.5 1.125-2.5 2.5zm-2 1.5v-1.5c0-2.4688 2-4.5 4.5-4.5 2.4688 0 4.5 2.0312 4.5 4.5v1.5h0.5c1.0938 0 2 0.90625 2 2v6c0 1.125-0.9062 2-2 2h-10c-1.125 0-2-0.875-2-2v-6c0-1.0938 0.875-2 2-2h0.5z" fill="currentColor"/>
260</svg>
261`,Ute=`<?xml version="1.0" encoding="UTF-8"?>
262<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
263 <path d="m17.534 2.5777-4.5953-0.57322c-0.186-0.0244-0.3659 0.05183-0.4818 0.19514l-1.8814 2.3508-1.8814-2.3508c-0.11587-0.14331-0.29883-0.21954-0.48179-0.19514l-4.5953 0.57322c-0.21955 0.02745-0.39945 0.186-0.45129 0.39943l-1.1496 4.595c-0.03964 0.15855-0.00305 0.3293 0.09758 0.45736 0.10062 0.12806 0.25614 0.20429 0.4208 0.20429h0.61595v8.6563c0 0.2684 0.20126 0.497 0.46654 0.5306l4.5953 0.5732c0.15247 0.0213 0.30493-0.0274 0.41776-0.1281 0.11587-0.1006 0.1799-0.2469 0.1799-0.3994v-6.1805l1.3874 1.3873c0.2073 
2630.2074 0.5458 0.2074 0.7532 0l1.3874-1.3873v6.1805c0 0.1525 0.0671 0.2988 0.1799 0.3994 0.0976 0.0854 0.2226 0.1342 0.3537 0.1342 0.0214 0 0.0427 0 0.0671-3e-3l4.5953-0.5733c0.2683-0.0335 0.4665-0.2591 0.4665-0.5305v-13.788c0-0.26832-0.2013-0.497-0.4665-0.53054v0.00304z" fill="currentColor"/>
264</svg>
265`,Hte=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 33 32" fill="currentColor">
266<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4027 1.66602H16.264C15.066 1.66598 14.0671 1.66595 13.274 1.77257C12.437 1.88511 11.6812 2.13267 11.0739 2.73996C10.4667 3.34726 10.2191 4.10299 10.1066 4.94005C10.0301 5.50853 10.0085 6.86798 10.0024 8.03356C7.30605 8.12163 5.68715 8.43639 4.5621 9.56145C3 11.1235 3 13.6377 3 18.666C3 23.6943 3 26.2085 4.5621 27.7706C6.12419 29.3327 8.63834 29.3327 13.6666 29.3327H19C24.0283 29.3327 26.5425 29.3327 28.1046 27.7706C29.6667 26.2085 29.6667 23.6943 29.6667 18.666C29.6667 13.6377 29.6667 11.1235 28.1046 9.56145C26.9795 8.43639 25.3606 8.12163 22.6643 8.03356C22.6582 6.86798 22.6366 5.50853 22.5601 4.94005C22.4476 4.10299 22.2 3.34726 21.5927 2.73996C20.9854 2.13267 20.2297 1.88511 19.3926 1.77257C18.5996 1.66595 17.6006 1.66598 16.4027 1.66602ZM20.6639 8.00185C20.6579 6.87299 20.6387 5.65811 20.578 5.20654C20.4952 4.59126 20.3523 4.32793 20.1785 4.15418C20.0048 3.98042 19.7414 3.83746 19.1261 3.75473C18.4821 3.66814 17.6187 3.66602 16.3333 3.66602C15.048 3.66602 14.1846 3.66814 13.5405 3.75473C12.9252 3.83746 12.6619 3.98042 12.4882 4.15418C12.3144 4.32793 12.1714 4.59126 12.0887 5.20654C12.028 5.65811 12.0088 6.87299 12.0028 8.00185C12.5247 7.99935 13.0785 7.99935 13.6667 7.99935H19C19.5882 7.99935 20.142 7.99935 20.6639 8.00185ZM16.3333 12.3327C16.8856 12.3327 17.3333 12.7804 17.3333 13.3327V13.3463C18.785 13.7121 20 14.8567 20 16.4438C20 16.9961 19.5523 17.4438 19 17.4438C18.4477 17.4438 18 16.9961 18 16.4438C18 15.9318 17.4323 15.2216 16.3333 15.2216C15.2344 15.2216 14.6667 15.9318 14.6667 16.4438C14.6667 16.9558 15.2344 17.666 16.3333 17.666C18.1799 17.666 20 18.9457 20 20.8882C20 22.4753 18.785 23.62 17.3333 23.9857V23.9993C17.3333 24.5516 16.8856 24.9993 16.3333 24.9993C15.781 24.9993 15.3333 24.5516 15.3333 23.9993V23.9857C13.8816 23.62 12.6667 22.4753 12.6667 20.8882C12.6667 20.336 13.1144 19.8882 13.6667 19.8882C14.219 19.8882 14.6667 20.336 14.6667 20.8882C14.6667 21.4003 15.2344 22.1105 16.3333 22.1105C17.4323 22.1105 18 21.4003 18 20.8882C18 20.3762 17.4323 19.666 16.3333 19.666C14.4867 19.666 12.6667 18.3864 12.6667 16.4438C12.6667 14.8567 13.8816 13.7121 15.3333 13.3463V13.3327C15.3333 12.7804 15.781 12.3327 16.3333 12.3327Z" fill="currentColor"/>
267</svg>`,Vte=`<?xml version="1.0" encoding="UTF-8"?>
268<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
269 <path d="m2.25 4.75c0-0.96667 0.78333-1.75 1.75-1.75s1.75 0.78333 1.75 1.75-0.78333 1.75-1.75 1.75-1.75-0.78333-1.75-1.75zm-0.25 4.925c-0.31667 0.35-0.5 0.8167-0.5 1.325s0.18333 0.975 0.5 1.325v-2.65zm4.5083-1.5417c-0.925 0.825-1.5083 2.025-1.5083 3.3667 0 1.075 0.375 2.0583 1 2.825v0.675c0 0.55-0.45 1-1 1h-2c-0.55 0-1-0.45-1-1v-0.8333c-1.1833-0.5667-2-1.7667-2-3.1667 0-1.9333 1.5667-3.5 3.5-3.5h1c0.75 0 1.4417 0.23333 2.0083 0.63333zm7.4917 6.8667v-0.675c0.625-0.775 1-1.7583 1-2.825 0-1.3333-0.5833-2.5417-1.5083-3.3667 0.5666-0.4 1.2583-0.63333 2.0083-0.63333h1c1.9333 0 3.5 1.5667 3.5 3.5 0 1.4-0.8167 2.6-2 3.1667v0.8333c0 0.55-0.45 1-1 1h-2c-0.55 0-1-0.45-1-1zm0.25-10.25c0-0.96667 0.7833-1.75 1.75-1.75s1.75 0.78333 1.75 1.75-0.7833 1.75-1.75 1.75-1.75-0.78333-1.75-1.75zm3.75 4.925v2.65c0.3167-0.35 0.5-0.8167 0.5-1.325s-0.1833-0.975-0.5-1.325zm-8-6.675c1.1083 0 2 0.89167 2 2s-0.8917 2-2 2-2-0.89167-2-2 0.89167-2 2-2zm-2.5 8.5c0 0.5083 0.19167 0.9667 0.5 1.325v-2.65c-0.30833 0.35-0.5 0.8167-0.5 1.325zm4.5-1.325v2.65c0.3167-0.35 0.5-0.8167 0.5-1.325s-0.1917-0.975-0.5-1.325zm2 1.325c0 1.4-0.8167 2.6-2 3.1667v1.3333c0 0.55-0.45 1-1 1h-2c-0.55 0-1-0.45-1-1v-1.3333c-1.1833-0.5667-2-1.7667-2-3.1667 0-1.9333 1.5667-3.5 3.5-3.5h1c1.9333 0 3.5 1.5667 3.5 3.5z" fill="currentColor"/>
270</svg>
271`,Wte=`<?xml version="1.0" encoding="UTF-8"?>
272<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
273 <path d="m9.9999 2.6667c-4.1421 0-7.5 3.3579-7.5 7.5 0 1.8509 0.67051 3.5453 1.7819 4.8534 0.76369-0.9277 1.9212-1.5201 3.2181-1.5201h5c1.297 0 2.4544 0.5925 3.2181 1.5201 1.1114-1.3081 1.7819-3.0025 1.7819-4.8534 0-4.1422-3.3578-7.5-7.5-7.5zm6.1418 14.305c1.8575-1.6776 3.0249-4.1049 3.0249-6.8049 0-5.0626-4.1041-9.1667-9.1667-9.1667s-9.1667 4.1041-9.1667 9.1667c0 2.7 1.1673 5.1273 3.0248 6.8049 0.00966 0.0091 0.01956 0.018 0.02969 0.0267 1.6219 1.4521 3.7639 2.335 6.1121 2.335 2.3483 0 4.4903-0.8829 6.1122-2.335 0.0101-0.0087 0.02-0.0176 0.0296-0.0267zm-1.6413-0.8048c-0.4566-0.608-1.1833-1.0001-2.0005-1.0001h-5c-0.81714 0-1.5439 0.3921-2.0005 1.0001 1.2536 0.9418 2.8119 1.4999 4.5005 1.4999 1.6887 0 3.2469-0.5581 4.5005-1.4999zm-4.5005-10.583c-1.3807 0-2.5 1.1193-2.5 2.5s1.1193 2.5 2.5 2.5 2.5-1.1193 2.5-2.5-1.1193-2.5-2.5-2.5zm-4.1667 2.5c0-2.3012 1.8655-4.1667 4.1667-4.1667s4.1667 1.8655 4.1667 4.1667-1.8655 4.1667-4.1667 4.1667-4.1667-1.8655-4.1667-4.1667z" clip-rule="evenodd" fill="currentColor" fill-rule="evenodd"/>
274</svg>
275`,Zte=`<?xml version="1.0" encoding="UTF-8"?>
276<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
277 <path d="m10 1c-4.9626 0-9.0001 4.0374-9.0001 9.0001 0 4.9626 4.0374 9.0001 9 9.0001s9.0001-4.0375 9.0001-9.0001-4.0374-9.0001-9-9.0001zm-0.72392 0.70071h1.3961v1.3962h-1.3961v-1.3962zm7.0094 8.2994c0 3.4659-2.8197 6.2855-6.2855 6.2855s-6.2854-2.8197-6.2854-6.2855 2.8197-6.2855 6.2854-6.2855c3.4658 0 6.2855 2.8197 6.2855 6.2855zm-11.
27766-6.3621 0.98724 0.98723-0.98724 0.98724-0.98723-0.98724 0.98723-0.98723zm-1.5542 7.0602h-1.3962v-1.3962h1.3962v1.3962zm1.5542 5.6641-0.98723-0.9873 0.98723-0.9872 0.98724 0.9872-0.98724 0.9873zm6.0471 1.9371h-1.3961v-1.3961h1.3961v1.3961zm4.7027-1.9371-0.9873-0.9873 0.9873-0.9872 0.9872 0.9872-0.9872 0.9873zm0-10.75-0.9873-0.98724 0.9873-0.98723 0.9872 0.98723-0.9872 0.98724zm1.5025 5.0858v-1.3962h1.3961v1.3962h-1.3961z" fill="currentColor"/>
278 <path d="m4.8782 10c0 2.8242 2.2977 5.122 5.1219 5.122 2.8243 0 5.1221-2.2978 5.1221-5.122 0-2.8243-2.2978-5.122-5.1221-5.122-2.8242 0-5.1219 2.2978-5.1219 5.122zm7.5711-0.43421c0.2416 0.39294 0.3195 0.74245 0.3195 1.1576 0 1.0262-0.7242 1.5779-1.5474 1.5779-0.5616 0-0.8814-0.2654-1.0558-0.4861l0.2977 1.0546h-0.93577l0.29109-1.0304c-0.17987 0.2141-0.49478 0.4825-1.0359 0.4825-0.82326 0-1.5514-0.5619-1.5514-1.5882 0-0.4153 0.07594-0.77508 0.31747-1.168 0.37665-0.61284 2.4567-2.3768 2.4567-2.3768s2.067 1.764 2.4437 2.3769z" fill="currentColor"/>
279</svg>
280`,Gte=`<?xml version="1.0" encoding="UTF-8"?>
281<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
282 <path d="m7.9375 3.9062c-0.21875-0.40625-0.65625-0.65625-1.125-0.65625h-0.0625c-0.71875 0-1.25 0.5625-1.25 1.25 0 0.71875 0.53125 1.25 1.25 1.25h2.2812l-1.0938-1.8438zm-3.9375 0.59375c0-1.5 1.2188-2.75 2.75-2.75h0.0625c1 0 1.9062 0.53125 2.4062 1.4062l0.78125 1.2812 0.75-1.2812c0.5-0.875 1.4062-1.4062 2.4063-1.4062h0.0937c1.5 0 2.75 1.25 2.75 2.75 0 0.46875-0.125 0.875-0.3125 1.25h1.3125c0.5313 0 1 0.46875 1 1v2c0 0.5625-0.4687 1-1 1h-14c-0.5625 0-1-0.4375-1-1v-2c0-0.53125 0.4375-1 1-1h1.2812c-0.1875-0.375-0.28125-0.78125-0.28125-1.25zm10.5 0c0-0.6875-0.5625-1.25-1.25-1.25h-0.0937c-0.4688 0-0.8751 0.25-1.1251 0.65625l-1.0937 1.8438h2.3125c0.6875 0 1.25-0.53125 1.25-1.25zm-11.5 6.25h6v7h-4.5c-0.84375 0-1.5-0.6562-1.5-1.5v-5.5zm8 7v-7h6v5.5c0 0.8438-0.6875 1.5-1.5 1.5h-4.5z" fill="currentColor"/>
283</svg>
284`,zte=`<svg  viewBox="0 0 18 19" fill="currentColor">
285	<g id="Vector">
286		<path
287			d="M7.41179 10.8697C7.41179 10.5784 7.17476 10.3422 6.88238 10.3422H6.69747L4.88434 6.26462C4.53631 6.3558 4.1857 6.43569 3.83307 6.50479L5.53944 10.3422H1.87241L3.55566 6.55676C3.1459 6.63004 2.73366 6.68865 2.31966 6.73201L0.714342 10.3422H0.529436C0.237059 10.3422 2.36449e-05 10.5784 2.36449e-05 10.8697C-0.00781165 12.6824 1.93308 13.899 3.70591 13.8585C5.47838 13.8994 7.42016 12.6819 7.41179 10.8697Z"
288			fill="currentColor"
289		/>
290		<path
291			d="M17.4706 10.3422H17.2857L15.6804 6.73201C15.2664 6.68865 14.8542 6.63004 14.4444 6.55676L16.1276 10.3422H12.4607L14.167 6.50479C13.8144 6.43573 13.4637 6.3558 13.1157 6.26462L11.3025 10.3422H11.1176C10.8253 10.3422 10.5882 10.5784 10.5882 10.8697C10.5882 11.6935 10.9912 12.4595 11.723 13.0265C13.0877 14.1281 15.5005 14.1282 16.8652 13.0265C17.597 12.4595 18 11.6935 18 10.8697C18 10.5784 17.763 10.3422 17.4706 10.3422Z"
292			fill="currentColor"
293		/>
294		<path
295			d="M0.529888 5.77097C1.98281 5.77097 3.42937 5.57452 4.82942 5.18713C7.55787 4.43201 10.4422 4.43201 13.1707 5.18713C14.5707 5.57455 16.0172 5.77097 17.4701 5.77097C18.0706 5.77097 18.2072 4.93241 17.6375 4.7432C16.2634 4.28686 14.9246 3.70017 13.6585 2.99934L12.8221 2.53642C11.8104 1.97645 10.6817 1.64568 9.5294 1.56779V1.02411C9.50335 0.325034 8.49637 0.325562 8.47057 1.02411V1.56779C7.31826 1.64568 6.18962 1.97645 5.17791 2.53642L4.34144 2.99934C3.0753 3.70017 1.73659 4.28686 0.362453 4.7432C-0.207194 4.93241 -0.0706412 5.77097 0.529888 5.77097Z"
296			fill="currentColor"
297		/>
298		<path
299			d="M11.1177 16.3902H6.88238C6.00521 16.3902 5.29414 17.0987 5.29414 17.9726C5.29414 18.2638 5.53118 18.5 5.82355 18.5H12.1765C12.4689 18.5 12.7059 18.2638 12.7059 17.9726C12.7059 17.0987 11.9948 16.3902 11.1177 16.3902Z"
300			fill="currentColor"
301		/>
302		<path
303			d="M8.47061 15.3354H9.52944V5.68556C9.17689 5.67248 8.82317 5.67248 8.47061 5.68556V15.3354Z"
304			fill="currentColor"
305		/>
306	</g>
307</svg>
308`,qte=`<?xml version="1.0" encoding="UTF-8"?>
309<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
310 <g clip-path="url(#clip0_2012_1635)">
311  <g clip-path="url(#clip1_2012_1635)">
312   <path d="m10 1.665c-4.6033 0-8.335 3.7317-8.335 8.335s3.7317 8.335 8.335 8.335 8.335-3.7317 8.335-8.335-3.7317-8.335-8.335-8.335zm-0.82831 5.5096c0.30855-0.18134 0.67132-0.24762 1.024-0.18712 0.3528 0.0605 0.6727 0.24389 0.9032 0.51769 0.2305 0.27379 0.3566 0.62032 0.3561 0.97821v0.00113c0 0.35547-0.2767 0.72606-0.7992 1.0744-0.2382 0.1588-0.4818 0.28114-0.66882 0.36427-0.09244 0.04108-0.16842 0.07142-0.21952 0.09087-0.02548 0.0097-0.04458 0.0167-0.05624 0.0208l-0.01169 0.0041c-0.39676 0.1325-0.61113 0.5615-0.47884 0.9583 0.13234 0.397 0.56146 0.6116 0.95851 0.4793l-0.23952-0.7184c0.23952 0.7184 0.24042 0.718 0.24042 0.718l0.0012-3e-4 0.0029-1e-3 0.0084-0.0029 0.0263-0.0092c0.0217-0.0077 0.0514-0.0185 0.0881-0.0325 0.0732-0.0279 0.1748-0.0686 0.2955-0.1222 0.2392-0.1063 0.5638-0.2681 0.8939-0.4882 0.614-0.4093 1.4737-1.1751 1.474-2.3347 1e-3 -0.71562-0.2513-1.4085-0.7121-1.956-0.461-0.54758-1.1009-0.91436-1.8064-1.0354-0.70
312544-0.12101-1.431 0.01156-2.0481 0.37424-0.6171 0.36267-1.0859 0.93204-1.3234 1.6072-0.13887 0.39477 0.06857 0.82737 0.46334 0.96624s0.82737-0.06857 0.96624-0.46334c0.11876-0.33761 0.35318-0.62229 0.66172-0.80363zm0.82852 5.8563c-0.41853 0-0.75777 0.3392-0.75777 0.7577s0.33924 0.7578 0.75777 0.7578h0.0075c0.4185 0 0.7578-0.3393 0.7578-0.7578s-0.3393-0.7577-0.7578-0.7577h-0.0075z" clip-rule="evenodd" fill="currentColor" fill-rule="evenodd"/>
313  </g>
314 </g>
315 <defs>
316  <clipPath id="clip0_2012_1635">
317   <rect width="20" height="20" fill="currentColor"/>
318  </clipPath>
319  <clipPath id="clip1_2012_1635">
320   <rect width="20" height="20" fill="currentColor"/>
321  </clipPath>
322 </defs>
323</svg>
324`,Yte=`<svg xmlns="http://www.w3.org/2000/svg" width="97" height="96" viewBox="0 0 97 96" fill="currentColor">
325<rect width="96" height="96" rx="48" transform="matrix(-1 0 0 1 96.5 0)" fill="#FF5244" fill-opacity="0.15"/>
326<path d="M44.6926 66.8286C41.7283 61.2424 31.8473 61.2424 31.8473 61.2424C21.5513 61.135 20.1605 54.8838 19.2307 51.7241C20.8948 65.1682 31.4537 75.8552 44.8364 77.7142C45.8042 75.6773 46.9507 71.0841 44.6926 66.8286Z" fill="#DB3D2E"/>
327<path d="M69.9839 29.5022L71.2188 28.446C71.3216 28.3581 71.4199 28.266 71.5136 28.17C76.1744 33.4569 79.002 40.3985 79.002 48.0005C79.002 64.3828 65.8707 77.6982 49.5594 77.9954C50.6196 74.8311 51.3112 69.7025 48.6673 64.72C46.2369 60.14 41.3471 58.3371 38.2322 57.5715C36.5318 57.1535 34.9685 56.9497 33.8394 56.8484C33.2695 56.7973 32.7965 56.771 32.4551 56.7576C32.2841 56.7508 32.1452 56.7472 32.0426 56.7453L31.9162 56.7435L31.8826 56.7433C27.7402 56.6979 26.1326 55.4753 25.3908 54.6401C24.4731 53.607 24.1134 52.3818 23.6124 50.6756L23.5474 50.4545C22.953 48.4346 21.0551 47.1283 19.0117 47.2296C19.2 39.761 22.1179 32.9706 26.8052 27.8185C26.9 28.3516 27.013 28.8472 27.1255 29.286C27.6344 31.2707 28.4886 33.412 29.5367 35.0026C30.5623 36.5594 32.3844 37.9503 33.5956 38.8206C34.5096 39.4773 35.4437 40.0228 36.2135 40.4665L36.4898 40.6255C37.185 41.0254 37.7376 41.3439 38.2637 41.6915C39.3317 42.3971 39.9724 43.0237 40.4065 43.8728C40.1422 44.8397 39.9547 45.9508 39.9517 47.1128C39.9446 49.8773 41.3596 52.0616 43.0511 53.4248C44.7151 54.7658 46.8684 55.524 49.05 55.5002C57.8995 55.4036 63.09 48.1845 63.7584 40.7453C63.9528 38.5823 64.9258 36.2517 66.2856 34.0801C67.608 31.9682 69.1027 30.3147 69.9839 29.5022Z" fill="#DB3D2E"/>
328<path d="M59.2765 40.3426C59.8383 34.09 64.6602 28.2636 67.0009 26.1321L68.2939 25.0262C63.0782 20.6416 56.348 18.0005 49.0009 18.0005C42.3607 18.0005 36.2244 20.1578 31.2547 23.8098C30.5524 25.9413 31.8899 30.3952 33.2943 32.5268C33.8031 33.2989 34.9567 34.2574 36.2213 35.1661C39.0727 37.2148 42.6713 38.2281 44.5009 42.0005C45.0239 43.0788 45.0016 44.133 44.75 45.0493C44.5691 45.708 44.4535 46.4241 44.4517 47.1244C44.4459 49.3892 46.7363 51.0252 49.0009 51.0005C54.8938 50.9361 58.7514 46.1871 59.2765 40.3426Z" fill="#DB3D2E"/>
329<rect x="56.5" y="56" width="40" height="40" rx="20" fill="#13161E"/>
330<path d="M77.0003 89.3334C84.3641 89.3334 90.3337 83.3639 90.3337 76.0001C90.3337 72.6781 89.1188 69.6399 87.1091 67.3055L68.3057 86.1089C70.6402 88.1186 73.6784 89.3334 77.0003 89.3334Z" fill="#DB3D2E"/>
331<path d="M77.0003 62.6667C69.6365 62.6667 63.667 68.6363 63.667 76.0001C63.667 79.322 64.8818 82.3603 66.8915 84.6947L85.6949 65.8913C83.3605 63.8816 80.3223 62.6667 77.0003 62.6667Z" fill="#DB3D2E"/>
332</svg>`,Kte=`<?xml version="1.0" encoding="UTF-8"?>
333<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
334 <path d="m16.74 1.3333c-2.8588 0-6.6948 1.9613-9.2708 5.3333h-2.1355c-1.5431 0-2.4275 1.1517-3.0364 2.3697l-0.8152 1.6303h3.8516l4 4v3.8516l1.6303-0.8151c1.218-0.6091 2.3697-1.4935 2.3697-3.0365v-2.1355c3.372-2.576 5.3334-6.412 5.3334-9.2708v-1.9271h-1.9271zm-3.4063 4c0.7364 0 1.3334 0.59694 1.3334 1.3333s-0.597 1.3333-1.3334 1.3333-1.3333-0.59693-1.3333-1.3333 0.5969-1.3333 1.3333-1.3333zm-8.6666 8-0.66667 0.6667c-0.96293 0.9629-1.3333 3.3333-1.3333 3.3333s2.264-0.264 3.3333-1.3333l0.66667-0.6667-2-2z" fill="currentColor"/>
335</svg>
336`,Xte=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
337<path fill-rule="evenodd" clip-rule="evenodd" d="M2.64281 4.30962C1.6665 5.28593 1.6665 6.85728 1.666
3375 9.99998C1.6665 13.1427 1.6665 14.714 2.64281 15.6903C3.61913 16.6666 5.19047 16.6666 8.33317 16.6666H11.6665C14.8092 16.6666 16.3805 16.6666 17.3569 15.6903C18.3332 14.714 18.3332 13.1427 18.3332 9.99998C18.3332 6.85728 18.3332 5.28593 17.3569 4.30962C16.3805 3.33331 14.8092 3.33331 11.6665 3.33331H8.33317C5.19047 3.33331 3.61913 3.33331 2.64281 4.30962ZM10.625 8.33331C10.625 7.98813 10.3452 7.70831 10 7.70831C9.65485 7.70831 9.37503 7.98813 9.37503 8.33331V8.91763L8.86885 8.62538C8.56991 8.45279 8.18767 8.55521 8.01508 8.85415C7.84249 9.15308 7.94491 9.53532 8.24385 9.70791L8.74963 9.99992L8.24365 10.292C7.94472 10.4646 7.8423 10.8469 8.01489 11.1458C8.18748 11.4447 8.56972 11.5472 8.86865 11.3746L9.37503 11.0822V11.6666C9.37503 12.0118 9.65485 12.2916 10 12.2916C10.3452 12.2916 10.625 12.0118 10.625 11.6666V11.0827L11.1306 11.3746C11.4295 11.5472 11.8118 11.4447 11.9844 11.1458C12.157 10.8469 12.0545 10.4646 11.7556 10.292L11.2496 9.99992L11.7554 9.70791C12.0543 9.53532 12.1568 9.15308 11.9842 8.85415C11.8116 8.55521 11.4293 8.45279 11.1304 8.62538L10.625 8.91716V8.33331ZM5.61038 7.70831C5.95556 7.70831 6.23538 7.98813 6.23538 8.33331V8.91716L6.74076 8.62538C7.03969 8.45279 7.42193 8.55521 7.59452 8.85415C7.76711 9.15308 7.66469 9.53532 7.36576 9.70791L6.85998 9.99992L7.36595 10.292C7.66488 10.4646 7.76731 10.8469 7.59472 11.1458C7.42213 11.4447 7.03988 11.5472 6.74095 11.3746L6.23538 11.0827V11.6666C6.23538 12.0118 5.95556 12.2916 5.61038 12.2916C5.26521 12.2916 4.98538 12.0118 4.98538 11.6666V11.0822L4.479 11.3746C4.18007 11.5472 3.79783 11.4447 3.62524 11.1458C3.45265 10.8469 3.55507 10.4646 3.854 10.292L4.35998 9.99992L3.8542 9.70791C3.55527 9.53532 3.45284 9.15308 3.62543 8.85415C3.79802 8.55521 4.18027 8.45279 4.4792 8.62538L4.98538 8.91763V8.33331C4.98538 7.98813 5.26521 7.70831 5.61038 7.70831ZM15.0149 8.33331C15.0149 7.98813 14.7351 7.70831 14.3899 7.70831C14.0447 7.70831 13.7649 7.98813 13.7649 8.33331V8.91763L13.2587 8.62538C12.9598 8.45279 12.5775 8.55521 12.4049 8.85415C12.2324 9.15308 12.3348 9.53532 12.6337 9.70791L13.1395 9.99992L12.6335 10.292C12.3346 10.4646 12.2322 10.8469 12.4047 11.1458C12.5773 11.4447 12.9596 11.5472 13.2585 11.3746L13.7649 11.0822V11.6666C13.7649 12.0118 14.0447 12.2916 14.3899 12.2916C14.7351 12.2916 15.0149 12.0118 15.0149 11.6666V11.0827L15.5205 11.3746C15.8194 11.5472 16.2016 11.4447 16.3742 11.1458C16.5468 10.8469 16.4444 10.4646 16.1455 10.292L15.6395 9.99992L16.1453 9.70791C16.4442 9.53532 16.5466 9.15308 16.374 8.85415C16.2014 8.55521 15.8192 8.45279 15.5203 8.62538L15.0149 8.91716V8.33331Z" fill="currentColor"/>
338</svg>`,Jte=`<svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" viewBox="0 0 21 20" fill="currentColor">
339<path d="M18.8332 9.16669V6.83335C18.8332 5.89993 18.8332 5.43322 18.6515 5.0767C18.4917 4.7631 18.2368 4.50813 17.9232 4.34834C17.5666 4.16669 17.0999 4.16669 16.1665 4.16669H4.83317C3.89975 4.16669 3.43304 4.16669 3.07652 4.34834C2.76292 4.50813 2.50795 4.7631 2.34816 5.0767C2.1665 5.43322 2.1665 5.89993 2.1665 6.83335V9.83335C2.1665 10.7668 2.1665 11.2335 2.34816 11.59C2.50795 11.9036 2.76292 12.1586 3.07652 12.3184C3.43304 12.5 3.89975 12.5 4.83317 12.5H9.6665M10.4998 8.33335H10.504M14.6665 8.33335H14.6707M6.33317 8.33335H6.33734M16.5415 14.1667V12.7084C16.5415 11.9029 15.8886 11.25 15.0832 11.25C14.2778 11.25 13.6248 11.9029 13.6248 12.7084V14.1667M10.7082 8.33335C10.7082 8.44841 10.6149 8.54169 10.4998 8.54169C10.3848 8.54169 10.2915 8.44841 10.2915 8.33335C10.2915 8.21829 10.3848 8.12502 10.4998 8.12502C10.6149 8.12502 10.7082 8.21829 10.7082 8.33335ZM14.8748 8.33335C14.8748 8.44841 14.7816 8.54169 14.6665 8.54169C14.5514 8.54169 14.4582 8.44841 14.4582 8.33335C14.4582 8.21829 14.5514 8.12502 14.6665 8.12502C14.7816 8.12502 14.8748 8.21829 14.8748 8.33335ZM6.5415 8.33335C6.5415 8.44841 6.44823 8.54169 6.33317 8.54169C6.21811 8.54169 6.12484 8.44841 6.12484 8.33335C6.12484 8.21829 6.21811 8.12502 6.33317 8.12502C6.44823 8.12502 6.5415 8.21829 6.5415 8.33335ZM13.4998 17.5H16.6665C17.1332 17.5 17.3666 17.5 17.5448 17.4092C17.7016 17.3293 17.8291 17.2018 17.909 17.045C17.9998 16.8668 17.9998 16.6334 17.9998 16.1667V15.5C17.9998 15.0333 17.9998 14.8 17.909 14.6217C17.8291 14.4649 17.7016 14.3374 17.5448 14.2575C17.3666 14.1667 17.1332 14.1667 16.6665 14.1667H13.4998C13.0331 14.1667 12.7998 14.1667 12.6215 14.2575C12.4647 14.3374 12.3372 14.4649 12.2573 
33914.6217C12.1665 14.8 12.1665 15.0333 12.1665 15.5V16.1667C12.1665 16.6334 12.1665 16.8668 12.2573 17.045C12.3372 17.2018 12.4647 17.3293 12.6215 17.4092C12.7998 17.5 13.0331 17.5 13.4998 17.5Z" fill="none" stroke="currentColor" stroke-width="1.38889" stroke-linecap="round" stroke-linejoin="round"/>
340</svg>`,Qte=`<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.4998 12.9998C11.8805 12.9998 12.9998 11.8805 12.9998 10.4998C12.9998 9.11913 11.8805 7.99984 10.4998 7.99984C9.11913 7.99984 7.99984 9.11913 7.99984 10.4998C7.99984 11.8805 9.11913 12.9998 10.4998 12.9998Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.1059 12.7726C16.0051 13.0011 15.975 13.2545 16.0195 13.5003C16.0641 13.746 16.1812 13.9728 16.3559 14.1514L16.4014 14.1968C16.5422 14.3375 16.654 14.5046 16.7302 14.6886C16.8065 14.8725 16.8457 15.0697 16.8457 15.2688C16.8457 15.4679 16.8065 15.6651 16.7302 15.849C16.654 16.0329 16.5422 16.2 16.4014 16.3407C16.2606 16.4816 16.0935 16.5934 15.9096 16.6696C15.7257 16.7459 15.5285 16.7851 15.3294 16.7851C15.1303 16.7851 14.9331 16.7459 14.7492 16.6696C14.5652 16.5934 14.3981 16.4816 14.2574 16.3407L14.212 16.2953C14.0334 16.1206 13.8066 16.0035 13.5609 15.9589C13.3151 15.9144 13.0617 15.9444 12.8332 16.0453C12.6091 16.1413 12.418 16.3008 12.2834 16.504C12.1488 16.7073 12.0766 16.9455 12.0756 17.1892V17.318C12.0756 17.7199 11.916 18.1052 11.6318 18.3894C11.3477 18.6735 10.9623 18.8332 10.5604 18.8332C10.1586 18.8332 9.77322 18.6735 9.48907 18.3894C9.20492 18.1052 9.04529 17.7199 9.04529 17.318V17.2498C9.03943 16.9991 8.95826 16.7559 8.81235 16.5519C8.66643 16.3479 8.46252 16.1925 8.22711 16.1059C7.99861 16.0051 7.74515 15.975 7.49939 16.0195C7.25364 16.0641 7.02687 16.1812 6.84832 16.3559L6.80287 16.4014C6.66215 16.5422 6.49505 16.654 6.31111 16.7302C6.12717 16.8065 5.93001 16.8457 5.7309 16.8457C5.53178 16.8457 5.33462 16.8065 5.15069 16.7302C4.96675 16.654 4.79964 16.5422 4.65893 16.4014C4.51805 16.2606 4.4063 16.0935 4.33005 15.9096C4.2538 15.7257 4.21455 15.5285 4.21455 15.3294C4.21455 15.1303 4.2538 14.9331 4.33005 14.7492C4.4063 14.5652 4.51805 14.3981 4.65893 14.2574L4.70438 14.212C4.87903 14.0334 4.99619 13.8066 5.04075 13.5609C5.08531 13.3151 5.05523 13.0617 4.95438 12.8332C4.85835 12.6091 4.69889 12.418 4.49564 12.2834C4.29239 12.1488 4.05422 12.0766 3.81044 12.0756H3.68166C3.27981 12.0756 2.89443 11.916 2.61028 11.6318C2.32614 11.3477 2.1665 10.9623 2.1665 10.5604C2.1665 10.1586 2.32614 9.77322 2.61028 9.48907C2.89443 9.20492 3.27981 9.04529 3.68166 9.04529H3.74984C4.00059 9.03943 4.24378 8.95826 4.44779 8.81235C4.6518 8.66643 4.8072 8.46252 4.89378 8.22711C4.99462 7.99861 5.0247 7.74515 4.98014 7.49939C4.93558 7.25364 4.81843 7.02687 4.64378 6.84832L4.59832 6.80287C4.45745 6.66215 4.34569 6.49505 4.26944 6.31111C4.19319 6.12717 4.15395 5.93001 4.15395 5.7309C4.15395 5.53178 4.19319 5.33462 4.26944 5.15069C4.34569 4.96675 4.45745 4.79964 4.59832 4.65893C4.73904 4.51805 4.90614 4.4063 5.09008 4.33005C5.27402 4.2538 5.47118 4.21455 5.67029 4.21455C5.86941 4.21455 6.06657 4.2538 6.2505 4.33005C6.43444 4.4063 6.60154 4.51805 6.74226 4.65893L6.78772 4.70438C6.96626 4.87903 7.19303 4.99619 7.43878 5.04075C7.68454 5.08531 7.93801 5.05523 8.1665 4.95438H8.22711C8.45118 4.85835 8.64227 4.69889 8.77688 4.49564C8.91148 4.29239 8.98371 4.05422 8.98469 3.81044V3.68166C8.98469 3.27981 9.14432 2.89443 9.42846 2.61028C9.71261 2.32614 10.098 2.1665 10.4998 2.1665C10.9017 2.1665 11.2871 2.32614 11.5712 2.61028C11.8554 2.89443 12.015 3.27981 12.015 3.68166V3.74984C12.016 3.99361 12.0882 4.23179 12.2228 4.43504C12.3574 4.63829 12.5485 4.79774 12.7726 4.89378C13.0011 4.99462 13.2545 5.0247 13.5003 4.98014C13.746 4.93558 13.9728 4.81843 14.1514 4.64378L14.1968 4.59832C14.3375 4.45745 14.5046 4.34569 14.6886 4.26944C14.8725 4.19319 15.0697 4.15395 15.2688 4.15395C15.4679 4.15395 15.6651 4.19319 15.849 4.26944C16.0329 4.34569 16.2 4.45745 16.3407 4.59832C16.4816 4.73904 16.5934 4.90614 16.6696 5.09008C16.7459 5.27402 16.7851 5.47118 16.7851 5.67029C16.7851 5.86941 16.7459 6.06657 16.6696 6.2505C16.5934 6.43444 16.4816 6.60154 16.3407 6.74226L16.2953 6.78772C16.1206 6.96626 16.0035 7.19303 15.9589 7.43878C15.9144 7.68454 15.9444 7.93801 16.0453 8.1665V8.22711C16.1413 8.45118 16.3008 8.64227 16.504 8.77688C16.7073 8.91148 16.9455 8.98371 17.1892 8.98469H17.318C17.7199 8.98469 18.1052 9.14432 18.3894 9.42846C18.6735 9.71261 18.8332 10.098 18.8332 10.4998C18.8332 
34010.9017 18.6735 11.2871 18.3894 11.5712C18.1052 11.8554 17.7199 12.015 17.318 12.015H17.2498C17.0061 12.016 16.7679 12.0882 16.5646 12.2228C16.3614 12.3574 16.2019 12.5485 16.1059 12.7726Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/></svg>
341`,ene=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="currentColor">
342<path fill-rule="evenodd" clip-rule="evenodd" d="M1.47631 1.643C0.5 2.61931 0.5 4.19066 0.5 7.33335V10.6667C0.5 13.8094 0.5 15.3807 1.47631 16.357C2.45262 17.3334 4.02397 17.3334 7.16667 17.3334H8.83333C11.976 17.3334 13.5474 17.3334 14.5237 16.357C15.5 15.3807 15.5 13.8094 15.5 10.6667V7.33335C15.5 4.19066 15.5 2.61931 14.5237 1.643C13.5474 0.666687 11.976 0.666687 8.83333 0.666687H7.16667C4.02397 0.666687 2.45262 0.666687 1.47631 1.643ZM4.04167 5.66669C4.04167 5.32151 4.32149 5.04169 4.66667 5.04169H11.3333C11.6785 5.04169 11.9583 5.32151 11.9583 5.66669C11.9583 6.01187 11.6785 6.29169 11.3333 6.29169H4.66667C4.32149 6.29169 4.04167 6.01187 4.04167 5.66669ZM4.04167 9.00002C4.04167 8.65484 4.32149 8.37502 4.66667 8.37502H11.3333C11.6785 8.37502 11.9583 8.65484 11.9583 9.00002C11.9583 9.3452 11.6785 9.62502 11.3333 9.62502H4.66667C4.32149 9.62502 4.04167 9.3452 4.04167 9.00002ZM4.66667 11.7084C4.32149 11.7084 4.04167 11.9882 4.04167 12.3334C4.04167 12.6785 4.32149 12.9584 4.66667 12.9584H8.83333C9.17851 12.9584 9.45833 12.6785 9.45833 12.3334C9.45833 11.9882 9.17851 11.7084 8.83333 11.7084H4.66667Z" fill="#ADAFCE"/>
343</svg>`,tne=`<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 21 21" fill="none">
344<path d="M10.5002 2.58333V18.4167M17.1668 10.5C17.1668 14.5904 12.7052 17.5653 11.0818 18.5124C10.8973 18.62 10.8051 18.6738 10.6749 18.7018C10.5739 18.7234 10.4265 18.7234 10.3254 18.7018C10.1952 18.6738 10.103 18.62 9.9185 18.5124C8.29513 17.5653 3.8335 14.5904 3.8335 10.5V6.51466C3.8335 5.8484 3.8335 5.51527 3.94246 5.22891C4.03872 4.97594 4.19515 4.75023 4.39821 4.57127C4.62808 4.36869 4.93999 4.25172 5.56383 4.01778L10.032 2.34222C10.2052 2.27725 10.2919 2.24477 10.381 2.23189C10.46 2.22047 10.5403 2.22047 10.6193 2.23189C10.7085 2.24477 10.7951 2.27725 10.9683 2.34222L15.4365 4.01778C16.0603 4.25172 16.3722 4.36869 16.6021 4.57127C16.8052 4.75023 16.9616 4.97594 17.0579 5.22891C17.1668 5.51527 17.1668 5.8484 17.1668 6.51466V10.5Z" fill="none" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
345</svg>`,nne=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
346<path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 8.68038C2.5 6.01573 2.5 4.6834 2.8146 4.23518C3.12919 3.78695 4.38194 3.35813 6.88743 2.5005L7.36477 2.3371C8.67082 1.89004 9.32384 1.6665 10 1.6665C10.6762 1.6665 11.3292 1.89004 12.6352 2.3371L13.1126 2.5005C15.6181 3.35813 16.8708 3.78695 17.1854 4.23518C17.5 4.6834 17.5 6.01573 17.5 8.68038V9.99264C17.5 14.691 13.9675 16.9711 11.7512 17.9392C11.15 18.2019 10.8494 18.3332 10 18.3332C9.15062 18.3332 8.85001 18.2019 8.2488 17.9392C6.03247 16.9711 2.5 14.691 2.5 9.99264V8.68038ZM11.6667 7.49984C11.6667 8.42031 10.9205 9.1665 10 9.1665C9.07953 9.1665 8.33333 8.42031 8.33333 7.49984C8.33333 6.57936 9.07953 5.83317 10 5.83317C10.9205 5.83317 11.6667 6.57936 11.6667 7.49984ZM10 14.1665C13.3333 14.1665 13.3333 13.4203 13.3333 12.4998C13.3333 11.5794 11.8409 10.8332 10 10.8332C8.15905 10.8332 6.66667 11.5794 6.66667 12.4998C6.66667 13.4203 6.66667 14.1665 10 14.1665Z" fill="currentColor"/>
347</svg>
348`,sne=`<?xml version="1.0" encoding="UTF-8"?>
349<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
350 <path d="m11.816 17.499h-6.554v-0.4382c0-1.2551 0.30027-2.5507 0.8925-3.8507 0.46811-1.0276 1.119-2.0606 1.9346-3.0704 0.5872-0.72698 1.1714-1.3337 1.6536-1.7945-0.26118 0.01928-0.52585 0.02897-0.79336 0.02897-1.2015 0-2.3582-0.19922-3.3304-0.56774v0.86376h-3.1184v-6.0573h3.1184v0.56294c0.9721-0.36855 2.1289-0.56774 3.3304-0.56774 1.2078 0 2.0916 0.16301 2.866 0.52857 0.5401 0.25503 1.1358 0.35447 1.7225 0.28738 0.5889-0.06724 1.142-0.29956 1.5995-0.67184l0.3092-0.25151 2.054 1.3936-0.2535 0.36404c-0.0137 0.01963-1.3821 1.9926-2.7313 4.5606-1.2316 2.3445-2.6997 5.6774-2.6997 8.2419v0.4382z" fill="currentColor"/>
351</svg>
352`,rne=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
353<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6271 3.31279C10.
3536271 3.65844 10.3465 3.93866 10.0003 3.93866C9.65419 3.93866 9.37359 3.65844 9.37359 3.31279V1.66675C7.53722 1.80272 5.86602 2.53134 4.55111 3.66176L5.84743 4.95628C6.09219 5.20069 6.09219 5.59697 5.84743 5.84139C5.60267 6.0858 5.20585 6.0858 4.96109 5.84139L3.66477 4.54687C2.53278 5.85996 1.80315 7.52883 1.66699 9.36266H3.31514C3.66128 9.36266 3.94188 9.64287 3.94188 9.98852C3.94188 10.3342 3.66128 10.6144 3.31514 10.6144H1.66699C1.80315 12.4482 2.53278 14.1171 3.66477 15.4302L4.96109 14.1357C5.20585 13.8912 5.60267 13.8912 5.84743 14.1357C6.09219 14.3801 6.09219 14.7764 5.84743 15.0208L4.55111 16.3153C6.01418 17.5731 7.91834 18.3334 10.0003 18.3334C12.0823 18.3334 13.9865 17.5731 15.4495 16.3153L14.1532 15.0208C13.9085 14.7764 13.9085 14.3801 14.1532 14.1357C14.398 13.8912 14.7948 13.8912 15.0396 14.1357L16.3359 15.4302C17.4679 14.1171 18.1975 12.4482 18.3337 10.6144H16.6853C16.3392 10.6144 16.0586 10.3342 16.0586 9.98852C16.0586 9.64287 16.3392 9.36266 16.6853 9.36266H18.3337C18.1975 7.52883 17.4679 5.85996 16.3359 4.54687L15.0396 5.84139C14.7948 6.0858 14.398 6.0858 14.1532 5.84139C13.9085 5.59697 13.9085 5.20069 14.1532 4.95628L15.4495 3.66176C14.1346 2.53134 12.4634 1.80272 10.6271 1.66675V3.31279ZM8.42941 8.42017C7.45039 9.39784 7.45039 10.9829 8.42941 11.9606C8.80182 12.3325 9.57489 12.5922 10.3899 12.7713C11.6088 13.0391 12.2182 13.173 12.7035 12.6883C13.1889 12.2037 13.0548 11.5951 12.7866 10.378C12.6073 9.56406 12.3472 8.79206 11.9748 8.42017C10.9957 7.44251 9.40844 7.44251 8.42941 8.42017Z" fill="CurrentColor"/>
354</svg>
355`,ane=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" >
356	<path
357		d="M12 2.40002C6.70679 2.40002 2.39999 6.70682 2.39999 12C2.39999 17.2932 6.70679 21.6 12 21.6C17.2932 21.6 21.6 17.2932 21.6 12C21.6 6.70682 17.2932 2.40002 12 2.40002ZM12.6096 5.51882L15.078 4.19162C16.4448 4.73282 17.6376 5.61962 18.5448 6.74762L17.9568 9.46203L16.074 10.3848L12.6096 7.86122V5.51882ZM8.94239 4.18442L11.4108 5.51642V7.86122L7.94879 10.3848L6.05639 9.46082L5.46839 6.72962C6.37799 5.60402 7.57319 4.72202 8.94239 4.18442ZM5.07599 16.7448C4.29239 15.6048 3.78239 14.2644 3.64199 12.816L5.67359 10.6092L7.52639 11.5152L8.92199 15.4788L7.74239 16.8924L5.07599 16.7448ZM14.1396 20.1132C13.4544 20.2944 12.7404 20.4 12 20.4C11.1048 20.4 10.2432 20.256 9.43319 19.9956L8.67839 17.646L9.88199 16.2H14.1228L15.3048 17.5992L14.1396 20.1132ZM16.2408 16.8516L15.0804 15.4776L16.4952 11.5152L18.3396 10.6116L20.3592 12.8172C20.238 14.0664 19.836 15.2316 19.2252 16.2624L16.2408 16.8516Z"
358		fill="currentColor"
359	/>
360</svg>
361`,one=`<?xml version="1.0" encoding="UTF-8"?>
362<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
363 <path d="m9.5048 16.219c-0.73259-0.7325-1.8106-0.9546-2.7498-0.6222-0.11643 1.3506 0.09217 2.4417 0.51112 2.8606s1.5105 0.6274 2.8612 0.5103c0.3355-0.9545 0.103-2.0232-0.62259-2.7487zm5.9695-5.9691c-0.8442-0.84446-1.2554-2.0839-1.0124-3.3287-1.6635 0.34152-3.5198 1.1456-4.9571 2.5827-1.4377 1.4375-2.2422 3.2942-2.5834 4.9579 1.1942-0.2398 2.4528 0.1343 3.3295 1.0108 0.8856 0.8855 1.2502 2.143 1.0117 3.3287 1.6638-0.3411 3.5208-1.1455 4.9581-2.5823 1.438-1.4379 2.2422-3.2946 2.5834-4.9583-1.1767 0.237-2.4392-0.1202-3.3298-1.0108zm-0.3729 2.6115-0.7464 0.746-0.7461-0.746-0.7461 0.746 0.7461 0.746-0.7461 0.7464-0.7461-0.746-0.7465 0.746-0.7461-0.7464 0.7461-0.746-0.7461-0.746 0.7461-0.7463 0.7465 0.7463 0.7461-0.746-0.7465-0.7463 0.7465-0.746 0.7461 0.746 0.7461-0.746 0.7464 0.746-0.7461 0.7463 0.7461 0.746zm3.358-5.5958c-0.4186-0.41855-1.5102-0.62747-2.8606-0.51105-0.3213 0.9048-0.1415 1.9861 0.6219 2.7494 0.7364 0.73627 1.8136 0.95257 2.7498 0.62217 0.072-0.83986 0.0506-2.299-0.5111-2.8605z" fill="currentColor"/>
364 <path d="m2.6466 3.3924 2.1943 2.194c-1.3339 0.9704-3.2778 1.0038-3.7234 0.99784 0.21493-1.1498 0.72499-2.2546 1.5291-3.1919z" fill="currentColor"/>
365 <path d="m5.587 4.8404-2.1943-2.194c0.93745-0.80403 2.0424-1.314 3.1923-1.5289 0.00598 0.44704-0.02779 2.3896-0.99796 3.723z" fill="currentColor"/>
366 <path d="m7.1098 7.855-4.4632 4.4624c-1.1482-1.3376-1.6959-3.0168-1.6431-4.6801 1.4342 0.06054 3.3509-0.32615 4.5909-1.2975l1.5154 1.5152z" fill="currentColor"/>
367 <path d="m8.3962 9.1413c-1.6695 1.863-2.3037 4.0261-2.5412 5.2744-0.90122-0.2747-1.7402-0.7333-2.462-1.352l4.4632-4.4623 0.53996 0.53989z" fill="currentColor"/>
368 <path d="m6.3405 5.5938c1.3554-1.7308 1.3103-4.2513 1.2977-4.5903 1.6635-0.052761 3.3429 0.49487 4.6806 1.6429l-4.4628 4.4627-1.5154-1.5152z" fill="currentColor"/>
369 <path d="m14.417 5.8534c-1.7258 0.32604-3.671 1.1055-5.2747 2.5419l-0.5399
3696-0.5399 4.4629-4.4627c0.6184 0.72138 1.0771 1.5599 1.3518 2.4607z" fill="currentColor"/>
370</svg>
371`,ine=`<?xml version="1.0" encoding="UTF-8"?>
372<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
373 <path d="m10.966 1.9705c0.7735 1.1714 1.5771 2.3495 2.3907 3.5206 0.162 0.23407 0.3968 0.40807 0.6679 0.495 1.3455 0.42679 2.6997 0.86027 4.0581 1.2867 0.8343 0.26543 1.1953 1.2108 0.6743 1.8517-0.8437 1.0484-1.717 2.1333-2.5973 3.2397-0.1753 0.2184-0.2716 0.4898-0.2732 0.7699-0.0023 1.3746-0.0328 2.7478-0.0914 4.1196-0.0408 0.8392-0.8916 1.5086-1.6404 1.2656-1.2283-0.3955-2.4834-0.8342-3.7592-1.3008-0.2559-0.0935-0.5366-0.0935-0.79247 0-1.2758 0.4662-2.5312 0.905-3.7593 1.3008-0.74882 0.2416-1.5996-0.4278-1.6404-1.2656-0.05906-1.3718-0.08953-2.745-0.0914-4.1196-0.00162-0.28-0.09775-0.5513-0.27281-0.7699-0.88067-1.1064-1.754-2.1913-2.5977-3.2397-0.51891-0.64089-0.15891-1.5852 0.67535-1.8517 1.3584-0.42644 2.7127-0.85992 4.0581-1.2867 0.2711-0.08693 0.50591-0.26093 0.66797-0.495 0.81316-1.1711 1.6172-2.3492 2.3906-3.5206 0.47637-0.72106 1.459-0.72106 1.9325 0z" fill="currentColor"/>
374</svg>
375`,lne=`<?xml version="1.0" encoding="UTF-8"?>
376<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
377 <path d="m9.5861 1.6136c0.19821-0.26416 0.62987-0.26416 0.82817 0l3.2812 4.1494 4.9609 1.8389c0.151 0.05606 0.2686 0.17792 0.3184 0.33106 0.0498 0.15335 0.0259 0.32186-0.0635 0.45605l-2.9316 4.4034-0.2158 5.2861c-0.0068 0.1609-0.0875 0.3096-0.2178 0.4043-0.1304 0.0947-0.297 0.1246-0.4522 0.081l-5.0937-1.4277-5.0938 1.4277c-0.15515 0.0436-0.32174 0.0137-0.45214-0.081-0.13032-0.0947-0.21105-0.2434-0.21778-0.4043l-0.21582-5.2861-2.9316-4.4034c-0.089366-0.13423-0.11329-0.30274-0.06348-0.45605 0.04983-0.15314 0.16738-0.275 0.31836-0.33106l4.9609-1.8389 3.2812-4.1494zm-4.1045 6.8604c-0.69841 0.0257-0.69894 1.0287 0 1.0547h0.31934v2.8613c0.02569 0.6984 1.0287 0.699 1.0547 0v-2.8613h0.32032c0.6984-0.0257 0.69895-1.0287 0-1.0547h-1.6943zm7.0606 0c-0.2912 0-0.5274 0.23611-0.5274 0.52735v3.3886c0.0257 0.6984 1.0288 0.699 1.0547 0v-0.6025h0.3194c2.1941-0.0828 2.1958-3.2299 0-3.3135h-0.8467zm-1.167 1.6572c-0.0789-2.1939-3.2338-2.1973-3.3145 0v1.1289c0.08251 2.1948 3.2314 2.1963 3.3145 0v-1.1289zm-1.6572-0.60251c0.33203 1.4e-4 0.60253 0.26871 0.60253 0.60251v1.1289c-0.0301 0.7977-1.1745 0.7984-1.2051 0v-1.1289c0-0.33283 0.26929-0.60251 0.60254-0.60251zm3.6709 0c0.7976 0.03009 0.7981 1.1737 0 1.2041h-0.3194v-1.2041h0.3194z" fill="currentColor"/>
378</svg>
379`,cne=`<?xml version="1.0" encoding="UTF-8"?>
380<svg width="20" height="20" fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
381 <path d="m13.5 2h-7c-0.82812 0-1.5031 0.68125-1.4719 1.5062 0.00625 0.16563 0.01251 0.33125 0.02188 0.49375h-3.3c-0.41563 0-0.75 0.33437-0.75 0.75 0 2.8938 1.0469 4.9062 2.4531 6.2719 1.3844 1.3469 3.0719 2.025 4.3156 2.3687 0.73125 0.2032 1.2312 0.8125 1.2312 1.425 0 0.6532-0.53125 1.1844-1.1844 1.1844h-0.81563c-0.55312 0-1 0.4469-1 1s0.44688 1 1 1h6c0.5531 0 1-0.4469 1-1s-0.4469-1-1-1h-0.8156c-0.6532 0-1.1844-0.5312-1.1844-1.1844 0-0.6125 0.4969-1.225 1.2312-1.425 1.2469-0.3437 2.9344-1.0218 4.3188-2.3687 1.4031-1.3656 2.45-3.3782 2.45-6.2719 0-0.41563-0.3344-0.75-0.75-0.75h-3.3c0.0094-0.1625 0.0156-0.325 0.0219-0.49375 0.0312-0.825-0.6438-1.5062-1.4719-1.5062zm-10.972 3.5h2.6375c0.28437 2.8156 0.91249 4.6969 1.6219 5.9563-0.77812-0.3438-1.5875-0.8282-2.2875-1.5094-1-0.97188-1.8125-2.375-1.9688-4.4469h-0.00312zm12.975 4.4469c-0.7 0.68122-1.5094 1.1656-2.2875 1.5094 0.7094-1.2594 1.3375-3.1407 1.6219-5.9563h2.6375c-0.1594 2.0719-0.9719 3.475-1.9687 4.4469h-0.0032z" fill="currentColor"/>
382</svg>
383`,dne=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none">
384<path d="M16.2892 3.25868L20.4892 3.27342C21.1267 3.27565 21.6872 3.84012 21.685 4.47762L21.6702 8.67759C21.6679 9.35259 21.1035 9.87561 20.466 9.87338C19.791 9.87101 19.2679 9.34417 19.2702 8.66917L19.2754 7.20668L14.0107 11.3882C13.5594 11.7617 12.9594 11.7596 12.5106 11.4205L8.47123 8.36879L3.20653 12.5503C2.68009 12.961 1.93036 12.8834 1.5197 12.3569C1.10891 11.868 1.18667 11.0808 1.71312 10.6701L7.72992 5.89117C8.1436 5.55512 8.7436 5.55723 9.19241 5.8963L13.2317 8.94799L17.3308 5.66235L16.2808 5.65867C15.6058 5.6563 15.0826 5.12946 15.085 4.45447C15.0872 3.81697 15.6142 3.25631 16.2892 3.25868ZM8.45979 11.6313C9.09728 11.6335 9.65781 12.198 9.65557 12.8355L9.63031 20.0354C9.62795 20.7104 9.06361 21.2334 8.42611 21.23
38412C7.75112 21.2288 7.22796 20.702 7.23033 20.027L7.25559 12.8271C7.25782 12.1896 7.78479 11.6289 8.45979 11.6313ZM3.64719 15.2144C4.28469 15.2166 4.84521 15.7811 4.84297 16.4186L4.83034 20.0186C4.82798 20.6936 4.26364 21.2166 3.62614 21.2144C2.95114 21.212 2.42799 20.6852 2.43036 20.0102L2.44299 16.4102C2.44522 15.7727 2.97219 15.212 3.64719 15.2144ZM17.4218 22.4628C15.4719 22.4559 13.7129 21.4373 12.7438 19.7463C11.7746 18.0929 11.7819 16.0304 12.7628 14.3464C13.7436 12.6998 15.5097 11.656 17.4597 11.6628C19.3722 11.6696 21.131 12.7257 22.1002 14.3791C23.0693 16.07 23.0621 18.1325 22.0813 19.7791C21.1004 21.4632 19.3343 22.4695 17.4218 22.4628ZM16.5446 15.9722L16.5445 16.0097C16.5072 15.9345 16.5449 15.8972 16.545 15.8597C16.5826 15.8223 16.6203 15.7849 16.7329 15.7478C16.9208 15.636 17.1836 15.5619 17.4084 15.6002C17.7084 15.6012 18.0458 15.6399 18.4204 15.7537C18.7201 15.8298 19.0583 15.6435 19.1345 15.3062C19.2106 14.969 19.0242 14.6683 18.687 14.5922C18.4997 14.5165 18.2749 14.4782 18.0125 14.4398L18.0138 14.0648C18.0149 13.7648 17.7534 13.4639 17.4159 13.4627C17.1159 13.4616 16.8149 13.7606 16.8138 14.0606L16.8125 14.4356C16.5874 14.4723 16.3621 14.5465 16.1367 14.6582C15.7233 14.9193 15.2717 15.3677 15.3442 16.0804C15.3796 16.6806 15.7534 17.0194 16.1278 17.2082C16.4646 17.3969 16.8767 17.5108 17.2138 17.6245L17.2888 17.6248C17.6634 17.7386 17.9632 17.8146 18.1503 17.9278C18.2999 18.0408 18.3371 18.116 18.337 18.1535C18.3367 18.2285 18.2989 18.3033 18.2988 18.3408C18.2613 18.3407 18.2235 18.4156 18.1484 18.4528C17.9607 18.5271 17.6979 18.6012 17.4355 18.5628C17.098 18.5616 16.7609 18.4479 16.3113 18.3339C16.2365 18.2961 16.1616 18.2583 16.0866 18.2581C15.787 18.1445 15.4488 18.3308 15.3353 18.6304C15.2591 18.9677 15.4079 19.3057 15.7451 19.3819C15.7825 19.4195 15.8575 19.4198 15.9324 19.4575C16.1946 19.5335 16.4942 19.647 16.8315 19.7232L16.83 20.1357C16.8288 20.4732 17.0904 20.7366 17.4279 20.7378C17.7279 20.7388 18.0288 20.4774 18.03 20.1399L18.0314 19.7274C18.2566 19.6907 18.4818 19.6165 18.7072 19.5048C19.1581 19.2438 19.5347 18.7952 19.5371 18.1202C19.5017 17.52 19.128 17.1437 18.7538 16.9174C18.4171 16.6912 17.9675 16.5772 17.6304 16.4635L17.5929 16.4633C17.2183 16.3495 16.9186 16.2735 16.694 16.1602C16.5443 16.0472 16.5445 16.0097 16.5445 16.0097L16.5446 15.9722Z" fill="currentColor"/>
385</svg>`,une=`<?xml version="1.0" encoding="UTF-8"?>
386<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
387 <path d="m12.326 9.9369c0.1457 0.00167 0.2841-8.4e-4 0.4086-0.00541 0.0561 0.04702 0.0995 0.11348 0.1203 0.19298 0.0496 0.1894-0.0509 0.3788-0.2236 0.4252-0.1728 0.0449-0.3523-0.0709-0.4005-0.259-0.0354-0.1353 0.0058-0.2706 0.0952-0.35377z" fill="currentColor"/>
388 <path d="m9.2771 0.30402c-0.12407-0.087721-0.22831-0.15527-0.31478-0.2039-0.0853-0.047971-0.15807-0.080297-0.21817-0.093421-0.05782-0.012629-0.12861-0.012052-0.17672 0.043501-0.04305 0.049703-0.04391 0.11834-0.03755 0.17229 0.01343 0.11375 0.07478 0.27736 0.1543 0.46505 0.04761 0.1124 0.10417 0.23878 0.16473 0.3741 0.0418 0.0934 0.08551 0.19108 0.12951 0.29136 0.22936 0.52253 0.1731 1.1554-0.03403 1.74-0.20699 0.58422-0.55962 1.1056-0.90198 1.3994-0.15623 0.1341-0.33471 0.21315-0.48017 0.27758-0.02757 0.01221-0.05423 0.02402-0.07906 0.03546-0.03792 0.01748-0.07405 0.03531-0.1039 0.05414-0.02816 0.01776-0.06044 0.04222-0.08007 0.07676-0.02387 0.04199-0.02389 0.0894-0.0014 0.13248 0.01892 0.03623 0.05193 0.06621 0.08818 
3880.09232 0.13639 0.09893 0.31443 0.21895 0.49664 0.34178 0.07782 0.05246 0.15695 0.1058 0.23335 0.15785 0.25928 0.17663 0.48987 0.34029 0.59755 0.44533 0.53856 0.52696 0.80682 0.84154 0.95113 1.072-0.54587 0.24599-1.0538 0.50266-1.4658 0.74036-0.0585 0.03373-0.11647 0.06808-0.17391 0.10305-0.04103-0.03942-0.08844-0.06919-0.14436-0.09096-0.15011-0.059-0.31719-0.02995-0.5059 0.05207-0.03158 0.01372-0.06418 0.02912-0.09786 0.04612-0.0335-0.10105-0.08554-0.19941-0.15501-0.28825-0.26212-0.33377-0.71045-0.45422-1.0062-0.21476-0.22144 0.17929-0.26836 0.48813-0.16821 0.77262-0.00758-0.00375-0.01522-0.00742-0.02292-0.01103-0.44172-0.2047-0.95973-0.10477-1.1343 0.281-0.08688 0.19193-0.06329 0.40723 0.0349 0.59637 0.09813 0.18903 0.27233 0.35631 0.49715 0.46122 0.01235 0.00572 0.02494 0.0113 0.0374 0.01654-0.19361 0.21411-0.34028 0.38824-0.39668 0.46164-0.34799 0.4493-0.43876 0.7719-0.48221 1.0557-0.01731 0.1122-0.0298 0.2939-0.02193 0.4908 0.00381 0.0953 0.01244 0.1958 0.02808 0.2947-0.40487 0.7738-0.7385 1.604-1.0075 2.4695-0.10324 0.331-0.35725 0.5481-0.6759 0.8203-0.25591 0.2187-0.5535 0.4729-0.84817 0.8505-0.64418 0.8258-1.2616 2.164-1.0942 2.4679 0.17411 0.3148 0.82097-0.0899 1.65-0.8367 0.06851-0.0618 0.09176 0.0624 0.13526 0.2948 0.03134 0.1674 0.07318 0.3909 0.15 0.6414 0.21161 0.6923 0.6482 1.2361 0.79552 1.112 0.24035-0.2015 0.2858-0.7653 0.34298-1.4745 0.03522-0.4368 0.07488-0.9289 0.16728-1.4254 0.20356-1.0998 1.2093-1.3955 1.5013-1.4037 0.25022-0.0067 0.48588 0.0028 0.71024 0.024 0.05841 0.0471 0.10876 0.0795 0.15306 0.1064l0.00793 0.0048 0.01001 6e-3 0.01265 0.0076c0.01422 0.0085 0.02721 0.0163 0.03938 0.0239l-0.01842 0.0364c-0.06871 0.1354-0.13316 0.2625-0.17838 0.3705-0.02557 0.0612-0.04634 0.1193-0.05828 0.1718-0.0116 0.0511-0.01704 0.1058-0.00287 0.1556 0.02685 0.0942 0.10781 0.1626 0.21424 0.1944 0.10678 0.0318 0.24523 0.0298 0.40877-0.0172 0.27595-0.0793 0.63483-0.2897 1.0624-0.7124l0.05944 0.0169c0.57764 0.1638 1.135 0.3219 1.769 0.3445 0.16769 0.0059 0.32916 0.0111 0.48486 0.0156 0.0537 0.1177 0.1113 0.2349 0.1727 0.3492-0.1874-0.0068-0.3755-0.0218-0.55987-0.0456-0.77007-0.0995-1.4692-0.0014-2.1669 0.5683-0.91605 0.7481-1.35 1.6176-1.7973 2.8114-0.0079 0.0212 0.04727-0.0163 0.1529-0.088 0.48504-0.3292 2.0339-1.3805 3.4229-0.7897 2.1454 0.9117 3.0856 1.0412 3.8034 0.9662 1.4424-0.1499 2.2995-1.176 2.7575-2.0523 0.4506-0.8619 0.4322-2.1615 0.3473-2.7036 0.8549-0.3372 1.6899-0.737 2.0541-1.4504 0.1447-0.2808 0.0549-0.477-0.2745-0.5997-0.3429-0.1267-0.8987-0.1717-2.0076-0.1172-1.0165 0.0505-2.7053 0.5833-2.7053 0.5833s1.1531-0.8108 2.1616-0.9962c1.429-0.263 2.3517 0.0218 2.3517 0.0218 1.0018-1.2387 1.879-2.6533 0.3509-4.8692-1.488-2.1568-4.2314-2.0156-6.0592-1.569 0.1249-0.18586 0.158-0.43022 0.067-0.65378-0.1067-0.26212-0.3539-0.42169-0.616-0.42579l-0.1955-3.8426c-0.0023-0.0451-0.0401-0.07976-0.0844-0.07743-0.0443 0.00234-0.0784 0.04079-0.0761 0.08588l0.1959 3.8513c-0.0368 0.00854-0.0733 0.02033-0.1093 0.03551-0.3458 0.14574-0.51 0.54913-0.3668 0.90098 0.0695 0.1708 0.1987 0.29806 0.3528 0.36713l-0.0216 0.00734c-0.2342 0.07981-0.4723 0.16683-0.71 0.25892 0.167-0.77674 0.3267-1.8558 0.1829-3.0289-0.1297-1.0594-0.3203-2.4817-1.6236-3.404zm2.9962 8.3049c0.0334-0.02973 0.0842-0.02627 0.1134 0.00773l0.979 1.1393c0.0197 0.02287 0.0252 0.05494 0.0145 0.08328-0.0108 0.02834-0.0361 0.04827-0.0658 0.05176l-0.0015 1.8e-4 -0.0043 4.9e-4 -0.0163 0.00178c-0.0142 0.00152-0.035 0.00366-0.0617 0.0062-0.0535 0.00507-0.1305 0.0117-0.2252 0.018l-0.0052 3.4e-4c0.0266 0.24138 0.0681 1.0988-0.6566 1.2437-0.5089 0.1022-1.054-0.2235-1.1799-0.8108-0.0448-0.2107-0.0089-0.44431 0.0107-0.54373-0.2069-0.05404-0.3979-0.1296-0.5501-0.23503-0.0366-0.02541-0.0461-0.07628-0.0212-0.11361 0.025-0.03732 0.075-0.04699 0.1117-0.02157 0.1764 0.12224 0.4235 0.20439 0.7016 0.2568 0.2768 0.05218 0.5778 0.07369 0.8572 0.07893 0.2792 0.00522 0.5351-0.00582 0.7213-0.0182 0.0555-0.00369 0.1048-0.00749 0.1466-0.01101l-0.8758-1.0191c-0.0292-0.03399-0.0258-0.08565 0.0076-0.11537z" clip-rule="evenodd" fill="currentColor" fill-rule="evenodd"/>
389</svg>
390`,fne=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
391	<g clip-path="url(#clip0_11338_8792)">
392		<path
393			fill-rule="evenodd"
394			clip-rule="evenodd"
395			d="M11.8009 24H16.1426V22.3355L15.6265 21.8116H14.8067L14.5638 21.1335C14.1581 20.9018 13.4708 19.0601 13.4708 18.5753C13.4708 18.5753 14.6246 18.2979 14.9889 17.589C15.3532 16.88 15.9605 17.404 16.2338 16.8493C16.507 16.2945 16.4463 15.9554 16.4463 15.9554C16.4463 15.9554 18.3104 14.9085 18.6931 13.4588C19.0757 12.0091 19.1789 11.178 18.5413 11.178H16.2945C16.2945 11.178 16.1426 11.0547 16.2945 10.8082C16.4463 10.5616 16.8445 10.6776 16.9321 10.3458C17.0196 10.0141 16.9928 9.72942 16.2338 9.72942H7.76619C7.00714 9.72942 6.98034 10.0141 7.06787 10.3458C7.15541 10.6776 7.55363 10.5616 7.70551 10.8082C7.85734 11.0547 7.70551 11.178 7.70551 11.178H5.45872C4.82109 11.178 4.92429 12.0091 5.30689 13.4588C5.68955 14.9085 7.55363 15.9554 7.55363 15.9554C7.55363 15.9554 7.49295 16.2944 7.76619 16.8493C8.03948 17.404 8.64671 16.88 9.01105 17.589C9.37534 18.2979 10.5291 18.5753 10.5291 18.5753C10.5291 19.0601 9.84193 20.9018 9.43612 21.1335L9.19324 21.8116H8.37351L7.85734 22.3355V24H11.8011H11.8009ZM12.64 8.7964H11.3439L9.61832 2.30434C11.2187 0.757553 11.6052 -0.0102994 11.9999 0.000104314C12.3946 -0.0102994 12.7811 0.757505 14.3815 2.30434L12.6559 8.7964H12.64ZM9.90475 8.75768L8.66848 4.10644L5.7584 3.50958L5.81965 6.30857L8.82193 8.79645L9.9048 8.75773L9.90475 8.75768ZM14.095 8.75768L15.3313 4.10644L18.2414 3.50958L18.1801 6.30857L15.1779 8.79645L14.095 8.75773L14.095 8.75768ZM7.70532 11.8598V14.942C7.70532 14.942 6.58188 14.5413 6.06571 13.4625C5.6198 12.5306 5.64984 11.9897 6.01869 11.8598H7.70532ZM16.2945 11.8598V14.942C16.2945 14.942 17.4179 14.5413 17.934 13.4625C18.3799 12.5306 18.3499 11.9897 17.9811 11.8598H16.2945Z"
396			fill="currentColor"
397		/>
398	</g>
399	<defs>
400		<clipPath id="clip0_11338_8792">
401			<rect width="24" height="24" fill="white" />
402		</clipPath>
403	</defs>
404</svg>`,mne=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
405<path d="M14.2501 7.5L3.75013 7.5M14.2501 7.5L15.6482 9.83019C15.9616 10.3524 16.1182 10.6135 16.1996 10.8946C16.2717 11.1437 16.3002 11.4033 16.2839 11.6621C16.2654 11.9541 16.1691 12.243 15.9765 12.8208L15.8207 13.2884C15.5256 14.1736 15.3781 14.6162 15.1044 14.9434C14.8628 15.2323 14.5525 15.456 14.2019 15.5939C13.805 15.75 13.3384 15.75 12.4054 15.75L5.59486 15.75C4.66181 15.75 4.19528 15.75 3.79832 15.5939C3.44778 15.456 3.13747 15.2323 2.89583 14.9434C2.62219 14.6162 2.47466 14.1736 2.1796 13.2884L2.02373 12.8208C1.83114 12.243 1.73484 11.9541 1.71639 11.6621C1.70004 11.4033 1.72854 11.1437 1.80064 10.8946C1.88201 10.6135 2.03867 10.3524 2.35201 9.83019L3.75013 7.5M14.2501 7.5L14.5631 6.40467C14.7114 5.88537 14.7856 5.62573 14.7274 5.42031C14.6763 5.24036 14.5599 5.08599 14.4009 4.98747C14.2194 4.875 13.9493 4.875 13.4093 4.875L4.591 4.875C4.05093 4.875 3.7809 4.875 3.59939 4.98747C3.44039 5.08599 3.32395 5.24036 3.2729 5.42031C3.21462 5.62573 3.28881 5.88537 3.43717 6.40467L3.75013 7.5M9.00013 4.875H6.34834C5.95762 4.875 5.5829 4.71696 5.30662 4.43566C5.03034 4.15436 4.87513 3.77282 4.87513 3.375C4.87513 2.97718 5.03034 2.59564 5.30662 2.31434C5.5829 2.03304 5.95762 1.875 6.34834 1.875C8.41084 1.875 9.00013 4.875 9.00013 4.875ZM9.00013 4.875H11.6519C12.0426 4.875 12.4174 4.71696 12.6936 4.43566C12.9699 4.15436 13.1251 3.77282 13.1251 3.375C13.1251 2.97718 12.9699 2.59564 12.6936 2.31434C12.4174 2.03304 12.0426 1.875 11.6519 1.875C9.58941 1.875 9.00013 4.875 9.00013 4.875Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
406</svg>
407`,hne={account:ite,arrowBoldRight:lte,arrowDiagonal4:cte,arrowLeft:dte,arrowLeftSimple:ute,arrowRightToCircle:fte,arrowsRight:hte,arrowTopRight:mte,battlepass:pte,bingo:gte,bolt:wte,bookGames:Cte,box:xte,cardDeck:yte,checkCircle:bte,checkMark:vte,cherry:Ete,clockArrowCounterclockwiseRotate90:Ste,cluster:Lte,copy:Ate,copyNoBackground:Tte,crown:_te,crypto:Rte,diamond:Nte,dollarSign:kte,email:Ite,exclamationMark:Mte,fire:Ote,garbageBasket:Pte,gasStation:Dte,infoSquare:Fte,keyHoleLock:jte,link:$te,lock:Bte,megaways:Ute,moneyBag:Hte,moneySack:mne,person3Fill:Vte,personCircle:Wte,pockerChip:Zte,present:Gte,provablyFair:zte,questionMarkCircle:qte,restrictedArea:Yte,rocket:Kte,securePassword:Xte,securePasswordWithLock:Jte,settings:Qte,sheet:ene,shield:tne,shieldUser:nne,slots:sne,spedometerMax:rne,sportCategories:ane,sportsbook:one,star:ine,starTop:lne,trophy:cne,turnover:dne,whaleOriginals:une,win:fne},pne="0 0 24 24",gne=e=>{var t;return((t=/viewBox=["']([^"']+)["']/.exec(e))==null?void 0:t[1])??pne},wne=e=>e.replace(/<svg\b[^>]*>/i,t=>t.replace(/\s(?:width|height)=["'][^"']*["']/gi,"")),Ot=({icon:e,className:t,ariaLabel:n})=>{const s=hne[e];return o.jsx("svg",{width:"100%",height:"100%",viewBox:gne(s),className:ie("size-5 text-brandblue-100",t),role:n?"img":"presentation","aria-label":n,"aria-hidden":n?void 0:!0,dangerouslySetInnerHTML:{__html:wne(s)}})},Cne=({children:e})=>{const[t,n]=y.useState(!1);return o.jsxs("span",{className:"relative inline-block",children:[o.jsx("button",{type:"button",className:"align-bottom","aria-label":"More information",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),onFocus:()=>n(!0),onBlur:()=>n(!1),children:o.jsx(Ot,{icon:"questionMarkCircle",className:"size-4"})}),t?o.jsx("span",{className:"absolute right-0 top-6 z-overlay flex min-w-80 flex-col gap-2 rounded-md bg-[#323A4C] p-2 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)]",children:o.jsx("span",{className:"flex flex-col items-center justify-start gap-2 text-center text-base text-white",children:e})}):null]})},uue=({content:e,children:t,className:n})=>{const[s,r]=y.useState(!1);return o.jsxs("span",{className:ie("relative inline-block",n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[t,s?o.jsx("span",{role:"tooltip",className:"absolute bottom-full left-1/2 z-[500] mb-2 -translate-x-1/2 whitespace-nowrap rounded-md border border-brand-tertiary bg-secondary-active px-2 py-1 text-sm text-white",children:e}):null]})},xne=({children:e,onClose:t,persistent:n=!1,testId:s})=>(y.useEffect(()=>{const r=a=>{a.key==="Escape"&&!n&&(a.stopPropagation(),t())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t,n]),o.jsxs("div",{className:"fixed inset-0 z-top-level flex items-center justify-center p-4","data-testid":s,children:[o.jsx("button",{type:"button","aria-label":"Close dialog",className:"absolute inset-0 bg-[rgba(0,0,0,0.7)] backdrop-blur-sm",onClick:()=>!n&&t()}),o.jsx("div",{className:"relative z-10 max-h-[90vh] overflow-y-auto rounded-2xl bg-primary shadow-lg",children:e})]})),yne=1024*1024,_L=512,vd="image/webp",bne="image/png",vne=[_L,384,256,192,128],Ene=[.9,.8,.7,.6,.5],Sne=["image/png","image/jpeg","image/webp"],Lne=e=>new Promise((t,n)=>{const s=new Image;s.addEventListener("load",()=>t(s)),s.addEventListener("error",()=>n(new Error("image_load_failed"))),s.src=e}),Ane=(e,t,n)=>new Promise((s,r)=>{e.toBlob(a=>a?s(a):r(new Error("canvas_export_failed")),t,n)}),Tne=e=>new Promise((t,n)=>{const s=new FileReader;s.addEventListener("load",()=>{const r=s.result;if(typeof r!="string"){n(new Error("image_read_failed"));return}t(r.split(",")[1]??"")}),s.addEventListener("error",()=>n(new Error("image_read_failed"))),s.readAsDataURL(e)}),_ne=()=>document.createElement("canvas").toDataURL(vd).startsWith(`data:${vd}`),Rne=(e,t,n)=>{const s=document.createElement("canvas");s.width=n,s.height=n;const r=s.getContext("2d");if(!r)throw new Error("canvas_context_unavailable");return r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",r.drawImage(e,t.x,t.y,t.width,t.height,0,0,n,n),s},Nne=async(e,t)=>{const n=await Lne(e),s=_ne(),r=s?vd:bne,a=s?Ene:[1],i=Math.floor(Math.min(t.width,t.height))||_L;let l;for(const c of vne){const d=Math.min(c,i),f=Rne(n,t,d);for(const u of a){const m=await Ane(f,r,u),p=await Tne(m),C={mimeType:r,data:p};if(p.length<=yne)return C;l=C}}if(l)return l;throw new Error("avatar_encode_failed")},kne=e=>`avatar.${e===vd?"webp":"png"}`,A9=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",...e,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.327 1.00023C6.12406 1.17317 6.02259 1.25965 5.91422 1.33228C5.6658 1.49879 5.38681 1.61435 5.09342 1.67227C4.96543 1.69754 4.83253 1.70814 4.56673 1.72935C3.89891 1.78265 3.565 1.80929 3.28642 1.90769C2.64209 2.13528 2.13528 2.64209 1.90769 3.28642C1.80929 3.565 1.78265 3.89891 1.72935 4.56673C1.70814 4.83253 1.69754 4.96543 1.67227 5.09342C1.61435 5.38681 1.49879 5.6658 1.33228 5.91422C1.25965 6.02259 1.17317 6.12406 1.00023 6.327C0.56
4075695 6.8369 0.34842 7.09186 0.221013 7.35842C-0.073671 7.97496 -0.073671 8.69171 0.221013 9.30824C0.348421 9.57481 0.56569 9.82976 1.00023 10.3397C1.17315 10.5426 1.25965 10.6441 1.33228 10.7524C1.49879 11.0009 1.61435 11.2799 1.67227 11.5732C1.69754 11.7012 1.70814 11.8341 1.72935 12.0999C1.78265 12.7678 1.80929 13.1017 1.90769 13.3802C2.13528 14.0246 2.64209 14.5314 3.28642 14.759C3.565 14.8574 3.89891 14.884 4.56673 14.9373C4.83253 14.9585 4.96543 14.9691 5.09342 14.9944C5.38681 15.0523 5.6658 15.1679 5.91422 15.3344C6.02259 15.407 6.12406 15.4935 6.327 15.6664C6.83691 16.101 7.09186 16.3182 7.35842 16.4457C7.97496 16.7403 8.69171 16.7403 9.30824 16.4457C9.57481 16.3182 9.82976 16.101 10.3397 15.6664C10.5426 15.4935 10.6441 15.407 10.7524 15.3344C11.0009 15.1679 11.2799 15.0523 11.5732 14.9944C11.7012 14.9691 11.8341 14.9585 12.0999 14.9373C12.7678 14.884 13.1017 14.8574 13.3802 14.759C14.0246 14.5314 14.5314 14.0246 14.759 13.3802C14.8574 13.1017 14.884 12.7678 14.9373 12.0999C14.9585 11.8341 14.9691 11.7012 14.9944 11.5732C15.0523 11.2799 15.1679 11.0009 15.3344 10.7524C15.407 10.6441 15.4935 10.5426 15.6664 10.3397C16.101 9.82976 16.3182 9.57481 16.4457 9.30824C16.7403 8.69171 16.7403 7.97496 16.4457 7.35842C16.3182 7.09186 16.101 6.83691 15.6664 6.327C15.4935 6.12406 15.407 6.02259 15.3344 5.91422C15.1679 5.6658 15.0523 5.38681 14.9944 5.09342C14.9691 4.96543 14.9585 4.83253 14.9373 4.56673C14.884 3.89891 14.8574 3.565 14.759 3.28642C14.5314 2.64209 14.0246 2.13528 13.3802 1.90769C13.1017 1.80929 12.7678 1.78265 12.0999 1.72935C11.8341 1.70814 11.7012 1.69754 11.5732 1.67227C11.2799 1.61435 11.0009 1.49879 10.7524 1.33228C10.6441 1.25965 10.5426 1.17317 10.3397 1.00023C9.82976 0.56569 9.57481 0.348421 9.30824 0.221013C8.69171 -0.073671 7.97496 -0.073671 7.35842 0.221013C7.09186 0.34842 6.8369 0.565694 6.327 1.00023ZM11.9779 6.55261C12.2428 6.28775 12.2428 5.85833 11.9779 5.59347C11.713 5.32861 11.2836 5.32861 11.0188 5.59347L6.97689 9.63534L5.64788 8.30634C5.38302 8.04148 4.9536 8.04148 4.68874 8.30634C4.42388 8.5712 4.42388 9.00062 4.68874 9.26548L6.49732 11.0741C6.76218 11.3389 7.1916 11.3389 7.45646 11.0741L11.9779 6.55261Z",fill:"#7086FF"})}),Ine=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.42626 8.96791C6.85823 4.65597 8.07422 2.5 9.99984 2.5C11.9255 2.5 13.1414 4.65597 15.5734 8.96791L15.8765 9.50522C17.8974 13.0884 18.9079 14.88 17.9946 16.19C17.0814 17.5 14.8219 17.5 10.3029 17.5H9.69678C5.1778 17.5 2.91831 17.5 2.00505 16.19C1.09179 14.88 2.10226 13.0884 4.12321 9.50523L4.42626 8.96791ZM9.99984 6.04167C10.345 6.04167 10.6248 6.32149 10.6248 6.66667V10.8333C10.6248 11.1785 10.345 11.4583 9.99984 11.4583C9.65466 11.4583 9.37484 11.1785 9.37484 10.8333V6.66667C9.37484 6.32149 9.65466 6.04167 9.99984 6.04167ZM9.99984 14.1667C10.4601 14.1667 10.8332 13.7936 10.8332 13.3333C10.8332 12.8731 10.4601 12.5 9.99984 12.5C9.5396 12.5 9.1665 12.8731 9.1665 13.3333C9.1665 13.7936 9.5396 14.1667 9.99984 14.1667Z",fill:"#ADAFCE"})}),Mne=({color:e="#707290",...t})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",...t,children:o.jsx("path",{d:"M9 4.5V9L12 10.5M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z",stroke:e,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),One=({color:e="#637AF4",...t})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",...t,children:o.jsx("path",{d:"M20.5 10V6.8C20.5 5.11984 20.5 4.27976 20.173 3.63803C19.8854 3.07354 19.4265 2.6146 18.862 2.32698C18.2202 2 17.3802 2 15.7 2H9.3C7.61984 2 6.77976 2 6.13803 2.32698C5.57354 2.6146 5.1146 3.07354 4.82698 3.63803C4.5 4.27976 4.5 5.11984 4.5 6.8V17.2C4.5 18.8802 4.5 19.7202 4.82698 20.362C5.1146 20.9265 5.57354 21.3854 6.13803 21.673C6.77976 22 7.61984 22 9.3 22H13M18.5 21C18.5 21 21.5 19.5701 21.5 17.4252V14.9229L19.3124 14.1412C18.7868 
40713.9529 18.212 13.9529 17.6864 14.1412L15.5 14.9229V17.4252C15.5 19.5701 18.5 21 18.5 21Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Pne=({color:e="#637AF4",...t})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",...t,children:o.jsx("path",{d:"M15.5 11H9.5M11.5 15H9.5M17.5 7H9.5M21.5 10V6.8C21.5 5.11984 21.5 4.27976 21.173 3.63803C20.8854 3.07354 20.4265 2.6146 19.862 2.32698C19.2202 2 18.3802 2 16.7 2H10.3C8.61984 2 7.77976 2 7.13803 2.32698C6.57354 2.6146 6.1146 3.07354 5.82698 3.63803C5.5 4.27976 5.5 5.11984 5.5 6.8V17.2C5.5 18.8802 5.5 19.7202 5.82698 20.362C6.1146 20.9265 6.57354 21.3854 7.13803 21.673C7.77976 22 8.61984 22 10.3 22H14M19.5 21C19.5 21 22.5 19.5701 22.5 17.4252V14.9229L20.3124 14.1412C19.7868 13.9529 19.212 13.9529 18.6864 14.1412L16.5 14.9229V17.4252C16.5 19.5701 19.5 21 19.5 21Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Dne=({color:e="#54D149",...t})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...t,children:o.jsx("path",{d:"M4.99996 5.00001L6.66663 3.33334M6.66663 3.33334L4.99996 1.66667M6.66663 3.33334H4.99996C3.15901 3.33334 1.66663 4.82572 1.66663 6.66667M15 15L13.3333 16.6667M13.3333 16.6667L15 18.3333M13.3333 16.6667H15C16.8409 16.6667 18.3333 15.1743 18.3333 13.3333M11.1809 11.181C11.8328 11.4923 12.5627 11.6667 13.3333 11.6667C16.0947 11.6667 18.3333 9.4281 18.3333 6.66667C18.3333 3.90525 16.0947 1.66667 13.3333 1.66667C10.5719 1.66667 8.33329 3.90525 8.33329 6.66667C8.33329 7.43727 8.50762 8.16715 8.81898 8.81903M11.6666 13.3333C11.6666 16.0948 9.42805 18.3333 6.66663 18.3333C3.9052 18.3333 1.66663 16.0948 1.66663 13.3333C1.66663 10.5719 3.9052 8.33334 6.66663 8.33334C9.42805 8.33334 11.6666 10.5719 11.6666 13.3333Z",stroke:e,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Fne=e=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:o.jsx("path",{d:"M2.5 6.25L5.41667 9.16667L10 3.75L14.5833 9.16667L17.5 6.25V15C17.5 15.4602 17.1269 15.8333 16.6667 15.8333H3.33333C2.8731 15.8333 2.5 15.4602 2.5 15V6.25Z",fill:"currentColor"})}),jne=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}),o.jsx("path",{d:"m15 5 4 4"})]}),$ne=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.jsx("path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.874a2 2 0 0 1 .506-.852z"})]}),Bne=3,T9=e=>`/random/${(!e||!Number.isFinite(e)?0:Math.abs(Math.trunc(e))%Bne)+1}.webp`,Une=(e,t)=>e!=null&&e.trim()?e:T9(t),Hne=e=>{var t,n;return((t=e==null?void 0:e.avatarUrl)==null?void 0:t.trim())||((n=e==null?void 0:e.telegramPhoto)==null?void 0:n.trim())||T9(e==null?void 0:e.id)},Vne=(e,t)=>{const n=T9(t);e.src.endsWith(n)||(e.src=n)},Wne=({size:e,isVip:t=!1,interactive:n=!1})=>t&&e==="lg"&&n?"vip-header":t&&e==="xxl"&&!n?"vip-profile":n?"button":"plain",Zne={xs:"size-4",sm:"size-6",md:"size-8",lg:"size-9",xl:"size-16",xxl:"size-20"},ig="/profile/StatusVIP.svg",X0=({size:e,className:t,testId:n,children:s})=>o.jsx("div",{"data-testid":n,className:ie("relative flex shrink-0 overflow-hidden rounded-full bg-black-50",Zne[e],t),children:s}),Gne=({src:e,alt:t,userId:n})=>o.jsx("img",{src:Une(e,n),alt:t,className:"aspect-square size-full rounded-full object-cover",onError:s=>Vne(s.currentTarget,n)}),lg=({className:e,testId:t,children:n})=>o.jsx("div",{"data-testid":t,className:ie("relative bg-golden-semiring bg-cover bg-center",e),children:n}),zne=({size:e="md",children:t})=>o.jsx("div",{className:ie("overflow-visible",e!=="lg"&&"size-9"),children:o.jsx("div",{className:"absolute -bottom-3 left-1/2 -translate-x-1/2",children:o.jsx("div",{className:"inline-flex items-center justify-center gap-2.5 overflow-hidden rounded bg-gradient-to-r from-Accent-Main via-Accent-Grady to-Accent-Main px-1",children:o.jsx("div",{className:"text-center text-xs font-semibold leading-none text-black-50",children:t})})})}),cg=({size:e})=>{const t=Me(Sx);return o.jsx(zne,{size:e,children:t.level})},qne=({src:e,size:t="md",isVip:n=!1,alt:s="Avatar",onClick:r,userId:a,className:i,ariaLabel:l,testId:c})=>{const d=Wne({size:t,isVip:n,interactive:!!r}),f=o.jsx(Gne,{src:e,alt:s,userId:a});return d==="vip-header"?o.jsxs("button",{type:"button",onClick:r,"aria-label":l,"data-testid":c,className:ie("relative",i),children:[o.jsx(X0,{size:t,className:"absolute overflow-visible",children:f}),o.jsx("img",{src:ig,alt:"VIP",width:22,height:22,"data-testid":"avatar-vip-crown",className:"absolute top-[0.1rem] z-base translate-x-1/2 pr-2"}),o.jsx(lg,{children:o.jsx(cg,{})})]}):d==="vip-profile"?o.jsx(lg,{className:i,testId:c,children:o.jsxs("div",{className:"w-full",children:[o.jsx("img",{src:ig,alt:"VIP","data-testid":"avatar-vip-crown",className:"absolute left-0 top-[-1rem] z-[-1] h-5 w-full"}),o.jsx(X0,{size:t,children:f}),o.jsx(cg,{size:"lg"})]})}):d==="button"?o.jsx("button",{type:"button",onClick:r,"aria-label":l,"data-testid":c,className:i,children:o.jsx(X0,{size:t,children:f})}):o.jsx(X0,{size:t,className:i,testId:c,children:f})},ir=256,J0=1,Yne=3,Kne=()=>Hne(Me(ut)),RL=({size:e="xxl",isVip:t=!1,editable:n=!0,src:s})=>{const[r,a]=Me([sj,rj]),i=Me(ut),l=Kne(),c=s!=null&&s.trim()?s:l,[d,f]=y.useState(!1),[u,m]=y.useState(void 0),[p,C]=y.useState(null),[b,v]=y.useState({x:0,y:0}),[E,x]=y.useState(J0),[g,A]=y.useState(null),[k,R]=y.useState(!1),O=y.useRef(null),U=y.useRef(void 0),V=y.useRef(null),z=y.useCallback(()=>{U.current&&(URL.revokeObjectURL(U.current),U.current=void 0)},[]);y.useEffect(()=>z,[z]);const G=y.useCallback(()=>{z(),m(void 0),C(null),v({x:0,y:0}),x(J0),R(!1),A(null),Bx()},[z]),W=y.useCallback(()=>{f(!1),G()},[G]),I=se=>{if(!se.type.startsWith("image/")||!Sne.includes(se.type)){A(w("avatar.error_invalid_type"));return}z();const Y=URL.createObjectURL(se);U.current=Y,A(null),m(Y),C(null),v({x:0,y:0}),x(J0)},H=p?Math.max(ir/p.width,ir/p.height):1,j=p?p.width*H*E:0,N=p?p.height*H*E:0,q=Math.max((j-ir)/2,0),ee=Math.max((N-ir)/2,0),ae=se=>({x:Math.min(Math.max(se.x,-q),q),y:Math.min(Math.max(se.y,-ee),ee)});y.useEffect(()=>
407{v(se=>({x:Math.min(Math.max(se.x,-q),q),y:Math.min(Math.max(se.y,-ee),ee)}))},[q,ee]);const Se=()=>{if(!p)return null;const se=H*E,Y=ir/se,ge=(j/2-b.x-ir/2)/se,ke=(N/2-b.y-ir/2)/se;return{x:Math.min(Math.max(ge,0),Math.max(p.width-Y,0)),y:Math.min(Math.max(ke,0),Math.max(p.height-Y,0)),width:Y,height:Y}},ce=async()=>{const se=Se();if(!(!u||!se))try{const Y=await Nne(u,se);e7({mimeType:Y.mimeType,filename:kne(Y.mimeType),data:Y.data}),W()}catch{A(w("avatar.upload_error_body"))}},be=g??(a?w("avatar.upload_error_body"):null);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"group relative inline-flex",children:[o.jsx(qne,{size:e,src:c,isVip:t,userId:i==null?void 0:i.id,testId:"avatar-face"}),n?o.jsx("button",{type:"button","data-testid":"avatar-edit","aria-label":w("avatar.edit"),className:"bg-black/50 absolute inset-0 z-base flex items-center justify-center rounded-full text-white opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100",onClick:()=>f(!0),children:o.jsx(jne,{className:"size-5"})}):null]}),d?o.jsx(xne,{onClose:W,persistent:r,testId:"avatar-dialog",children:o.jsxs("div",{className:"flex w-[360px] max-w-full flex-col gap-4 p-5",children:[o.jsx("div",{className:"text-lg font-semibold text-white",children:w("avatar.modal_title")}),u?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"relative mx-auto overflow-hidden rounded-lg bg-black-50",style:{width:ir,height:ir},"data-testid":"avatar-crop-area",onPointerDown:se=>{V.current={pointerX:se.clientX,pointerY:se.clientY,x:b.x,y:b.y},se.currentTarget.setPointerCapture(se.pointerId)},onPointerMove:se=>{const Y=V.current;Y&&v(ae({x:Y.x+(se.clientX-Y.pointerX),y:Y.y+(se.clientY-Y.pointerY)}))},onPointerUp:()=>{V.current=null},children:[o.jsx("img",{src:u,alt:"",draggable:!1,className:"pointer-events-none absolute left-1/2 top-1/2 max-w-none select-none",style:{width:j||void 0,height:N||void 0,transform:`translate(calc(-50% + ${b.x}px), calc(-50% + ${b.y}px))`},onLoad:se=>C({width:se.currentTarget.naturalWidth,height:se.currentTarget.naturalHeight})}),o.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-full shadow-[0_0_0_9999px_rgba(0,0,0,0.55)]"})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"text-sm text-brandblue-100",children:w("avatar.zoom")}),o.jsx("input",{type:"range",min:J0,max:Yne,step:.05,value:E,"aria-label":w("avatar.zoom"),"data-testid":"avatar-zoom",className:"h-1 w-full cursor-pointer accent-yellow",onChange:se=>x(Number(se.target.value))})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("button",{type:"button",disabled:r,className:"h-10 w-full rounded-md bg-buttonv2-primary text-sm font-semibold text-buttonv2-primary-text disabled:opacity-50",onClick:W,children:w("avatar.cancel")}),o.jsx("button",{type:"button","data-testid":"avatar-save",disabled:r||!p,className:"h-10 w-full rounded-md bg-buttonv2-accent text-sm font-semibold text-buttonv2-accent-text disabled:opacity-50",onClick:()=>void ce(),children:w("avatar.save")})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("button",{type:"button","data-testid":"avatar-dropzone",className:ie("flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed px-4 py-10 text-center transition-colors",k?"border-yellow bg-yellow/5":"border-stream-sub-highlight-color hover:border-brandblue-100"),onClick:()=>{var se;return(se=O.current)==null?void 0:se.click()},onDrop:se=>{var ge,ke;se.preventDefault(),R(!1);const Y=(ke=(ge=se.dataTransfer)==null?void 0:ge.files)==null?void 0:ke[0];Y&&I(Y)},onDragOver:se=>{se.preventDefault(),R(!0)},onDragLeave:()=>R(!1),children:[o.jsx("span",{className:"text-sm font-medium text-white",children:w("avatar.dropzone_title")}),o.jsx("span",{className:"text-xs text-brandblue-100",children:w("avatar.dropzone_hint")})]}),o.jsx("input",{ref:O,type:"file",accept:"image/png,image/jpeg,image/webp",className:"hidden","data-testid":"avatar-file-input",onChange:se=>{var ge;const Y=(ge=se.target.files)==null?void 0:ge[0];Y&&I(Y),se.target.value=""}}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("button",{type:"button",disabled:r,className:"h-10 w-full rounded-md bg-buttonv2-primary text-sm font-semibold text-buttonv2-primary-text disabled:opacity-50",onClick:W,children:w("avatar.cancel")}),i!=null&&i.avatarUrl?o.jsx("button",{type:"button","data-testid":"avatar-remove",disabled:r,className:"h-10 w-full rounded-md bg-buttonv2-danger text-sm font-semibold text-buttonv2-danger-text disabled:opacity-50",onClick:()=>{t7(),W()},children:w("avatar.remove")}):null]})]}),be?o.jsx("div",{className:"text-sm text-error","data-testid":"avatar-error",children:be}):null]})}):null]})},Xne={[Ut.EN]:"English",[Ut.RU]:"Русский",[Ut.ES]:"Español",[Ut.PT]:"Português",[Ut.ZH]:"中文",[Ut.KO]:"한국어",[Ut.TR]:"Türkçe",[Ut.AR]:"عربي",[Ut.SQ]:"Shqip",[Ut.VN]:"Tiếng Việt",[Ut.ID]:"Bahasa Indonesia",[Ut.FA]:"پارسی",[Ut.FR]:"Français",[Ut.UZ]:"O'zbek",[Ut.IT]:"Ital
407iano",[Ut.FI]:"Suomi"},Jne=Object.values(Ut).map(e=>({value:e,title:Xne[e]||e})),Qne=()=>{const[e,t]=Me([$t,fw]);return o.jsx(ba,{id:"select-language",value:t,options:Jne,onChange:n=>{Te("Language changed",{language:n}),n_(n,e)}})},ese={username_taken:"settings.username.taken",username_invalid:"settings.username.invalid"},tse=e=>ese[e]??"settings.username.update_failed",NL=()=>{const[e,t]=Me([ut,nj]),[n,s]=y.useState(!1),r=(e==null?void 0:e.username)||(e==null?void 0:e.verifiedNameFirst)||"Noname",a=i=>{s(!1),Q4(i)};return o.jsxs("div",{className:"flex flex-col",children:[o.jsx("div",{className:"flex items-center justify-between",children:n?o.jsx("div",{className:"flex w-full items-center",children:o.jsx("input",{type:"text","data-testid":"username-input",autoFocus:!0,defaultValue:r,className:"h-8 w-full rounded-md border border-brandblue-100 bg-primary px-2 py-1 text-base font-semibold text-white focus:border-yellow focus:outline-none",onBlur:i=>a(i.target.value),onKeyDown:i=>{i.key==="Enter"&&a(i.currentTarget.value)}})}):o.jsxs("button",{type:"button","data-testid":"username-display",className:"group relative flex cursor-pointer items-center text-base font-semibold text-white transition-colors duration-200 hover:text-yellow",onClick:()=>s(!0),children:[r,o.jsx("span",{className:"ml-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:o.jsx($ne,{className:"size-4 text-yellow"})})]})}),t?o.jsx("div",{className:"text-xs text-error","data-testid":"username-error",children:w(tse(t))}):null]})},nse=/^[a-z0-9_]+(\.[a-z0-9_-]+)+$/i,_9=e=>{if(!e)return w("errors.generic");if(!nse.test(e))return e;const t=w(e);return t===e?w("errors.generic"):t},kL=()=>it().nonempty(w("errors.validation.required_field")).email(w("errors.validation.invalid_email")).refine(e=>D2(e)||/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),{message:w("errors.validation.invalid_email_characters")}),ha=e=>{var t;return e.success?"":((t=e.error.errors[0])==null?void 0:t.message)??""},IL=()=>it().min(8,w("errors.validation.password_too_short")).nonempty(w("errors.validation.required_field")),ML=()=>IL().refine(e=>e===e.trim(),{message:w("auth.error.password_edge_whitespace")}),sse=({settingsUser:e})=>{const t=Me(ut),[n,s]=y.useState((e==null?void 0:e.keepInTouchEmail)??""),[r,a]=y.useState(""),[i,l]=y.useState(!1),c=async()=>{const u=kL().safeParse(n);if(!u.success){a(ha(u));return}a(""),l(!0);const m=await gy(n);l(!1),m||a(_9(o7.getState()))};if(!t)return null;const d=!!(e!=null&&e.keepInTouchEmail),f=e==null?void 0:e.verifiedEmail;return o.jsxs("div",{"data-testid":"account-base-page",children:[o.jsxs("div",{className:"block w-full border-b-1 border-[#323A4C] pb-6 md:pt-3",children:[o.jsx("div",{className:"block pb-4 text-lg text-white md:hidden",children:w("modal.settings.label.profile_info")}),o.jsxs("div",{className:"flex gap-6",children:[o.jsx(RL,{size:"xxl"}),o.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[o.jsx(NL,{}),o.jsx("div",{className:"text-[14px] font-medium text-brandblue-100","data-testid":"account-user-id",children:w("settings.account.user_id",{id:t.id??"n/a"})})]})]}),o.jsx("div",{className:"w-full pt-6",children:o.jsxs("div",{className:"w-1/2",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("global_language")}),o.jsx(Qne,{})]})})]}),o.jsxs("div",{className:"pt-6",children:[o.jsx("div",{className:"block pb-4 text-lg text-white md:hidden",children:w("modal.settings.label.contact_info")}),o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modals.settings.email")}),f?o.jsxs("div",{className:"flex justify-start gap-4",children:[o.jsx("div",{className:"flex w-full items-center gap-0.5 rounded-lg text-sm font-medium",children:o.jsxs("div",{className:"flex min-w-0 flex-1 items-center rounded-lg bg-tribe-live p-2.5",children:[o.jsx("span",{className:"flex-1 truncate","data-testid":"account-verified-email",children:f}),o.jsx(A9,{className:"ml-2 shrink-0"})]})}),o.jsx("button",{type:"button","data-testid":"account-change-email",disabled:i,className:"h-10 rounded-md bg-gradient-primary px-4 text-sm font-semibold text-button-primary-text disabled:opacity-50",onClick:()=>Zx(),children:w("modal.settings.email.change")})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex justify-start gap-4",children:[o.jsx(Vs,{name:"email",type:"email","data-testid":"account-email-input",placeholder:w("auth.form.email"),value:n,error:r,required:!0,onChange:u=>s(u.target.value)}),o.jsx("button",{type:"button","data-testid":"account-add-email",disabled:i,className:"h-10 shrink-0 rounded-md bg-gradient-primary px-4 text-sm font-semibold text-button-primary-text disabled:opacity-50",onClick:()=>void c(),children:d?w("global_verify"):w("modal.settings.email.add")})]}),o.jsx("div",{className:"pt-4",children:o.jsxs("div",{className:"flex flex-col gap-1 rounded-xs bg-[rgba(255,82,68,0.15)] p-2 font-jost text-base font-semibold leading-6 text-error",children:[o.jsxs("div",{className:"flex items-center gap-2 md:text-lg",children:[o.jsx(o1,{className:"shrink-0 text-error"}),o.jsx("span",{children:d?w("modal.settings.email.verify.prompt.title"):w("modal.settings.email.addPrompt.title")})]}),o.jsx("div",{className:"mt-1 text-sm md:mt-0 md:whitespace-pre-line md:text-base",children:d?w("modal.settings.email.verify.prompt.description"):w("modal.settings.email.addPrompt.description")})]})})]})]})]})},rse=({currentEmail:e})=>{const[t,n]=y.useState(""),[s,r]=y.useState(""),[a,i]=y.useState(""),[l,c]=y.useState(""),[d,f]=y.useState(!1),u=async()=>{i(""),c("");const m=kL(),p=m.safeParse(t);if(!p.success){i(ha(p));return}const C=m.safeParse(s);if(!C.success){c(ha(C));return}if(t!==s){c(w("errors.validation.emails_dont_match"));return}if(e&&t.toLowerCase()===e.toLowerCase()){i(w("errors.validation.email_same_as_current"));return}f(!0);const b=await wy(t);f(!1),b||i(_9(o7.getState()))};return o.jsxs("div",{"data-testid":"account-change-email-page",children:[o.jsxs("div",{className:"pt-6",children:[o.jsxs("div",{className:"block w-full border-b-1 border-[#323A4C] pb-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.email.current")}),o.jsx("div",{className:"flex w-full items-center gap-0.5 rounded-lg text-sm font-medium",children:o.jsxs("div",{className:"flex min-w-0 flex-1 items-center rounded-lg bg-tribe-live p-2.5",children:[o.jsx("span",{className:"flex-1 truncate",children:e}),o.jsx(A9,{className:"ml-2 shrink-0"})]})})]}),e?o.jsxs("div",{className:"pt-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.email.newemail.label")}),o.jsx("div",{className:"flex justify-start gap-4",children:o.jsx(Vs,{name:"email",type:"email","data-testid":"new-email-input",placeholder:w("modal.settings.email.new.label"),value:t,error:a,required:!0,onChange:m=>n(m.target.value)})}),o.jsx("div",{className:"pb-2 pt-6 text-[16px] text-white",children:w("modal.settings.email.new.confirm")}),o.jsx("div",{className:"flex justify-start gap-4",children:o.jsx(Vs,{name:"email-confirm",type:"email","data-testid":"new-email-confirm-input",placeholder:w("modal.settings.email.new.label_confirm"),value:s,error:l,required:!0,onChange:m=>r(m.target.value)})})]}):null]}),o.jsx("div",{className:"bottom-0 left-0 z-main w-full pb-5 pt-10 md:absolute md:px-0 md:pt-0",children:o.jsx("button",{type:"button","data-testid":"new-email-submit",disabled:d,className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text disabled:opacity-50",onClick:()=>void u(),children:w("modal.settings.email.next")})})]})},Q6=({onConfirm:e,error:t=null})=>o.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-4","data-testid":"confirm-2fa-view",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsx("div",{className:"text-sm font-medium",children:w("settings.2fa.enter_code")}),o.jsx(Z1,{onConfirm:async n=>await e(n)?"ok":"error",inputMode:"numeric"}),t?o.jsx("div",{className:"text-sm text-error","data-testid":"confirm-2fa-error",children:t}):null]})}),OL=({onVerifyCode:e,onResend:t,error:n=null})=>{const[s,r]=y.useState(null),a=async l=>l?(r(null),await e(l)?"ok":(r(null),"error")):(r(w("errors.validation.required_field")),"error"),i=s??n;return o.jsxs("div",{className:"flex h-full flex-col justify-between","data-testid":"otp-verify-view",children:[o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3",children:[o.jsx("div",{className:"text-center",children:w("auth.paste_code")}),o.jsx(Z1,{onConfirm:a}),o.jsx(dL,{onResend:t}),i?o.jsx("div",{className:"text-sm text-error","data-testid":"otp-verify-error",children:i}):null]}),o.jsx(aL,{})]})},dg=()=>{const{closeModal:e}=Os();
407return o.jsx("button",{type:"button","aria-label":"Close Modal","data-testid":"settings-close",className:"flex size-8 items-center justify-center rounded-full bg-secondary text-brandblue-100 hover:bg-secondary-active hover:text-white",onClick:()=>e(),children:o.jsx(a1,{})})},PL=({title:e,icon:t,showBackButton:n,onBack:s})=>{const r=n?o.jsx("button",{type:"button","aria-label":"Back","data-testid":"settings-back",onClick:s,children:o.jsx(Ot,{icon:"arrowLeft",className:"size-6 cursor-pointer text-[#ADAFCE]"})}):o.jsx(Ot,{icon:t,className:"size-6 text-[#ADAFCE]"});return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"hidden items-center justify-between gap-2 border-b border-[#323A4C] pb-4 pt-3 text-lg font-semibold md:inline-flex",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[r,e]}),o.jsx(dg,{})]}),n?o.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-[#323A4C] py-4 text-lg font-semibold md:hidden",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[r,e]}),o.jsx(dg,{})]}):null]})},ase="/assets/confetti-CaMdprIf.webp",DL=({title:e,onContinue:t,testId:n})=>o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"relative flex h-3/4 flex-col items-center gap-6","data-testid":n,children:[o.jsx("img",{src:ase,alt:"","aria-hidden":"true",className:"absolute inset-0 z-base w-full object-cover"}),o.jsxs("div",{className:"z-main flex w-full flex-1 flex-col items-center justify-center gap-4",children:[o.jsx(Ot,{icon:"checkCircle",className:"size-12 text-success"}),o.jsx("div",{className:"text-center",children:o.jsx("div",{className:"mb-2 text-2xl font-bold",children:e})})]})]}),o.jsx("div",{className:"bottom-0 left-0 z-main w-full py-5 md:absolute md:pt-0",children:o.jsx("button",{type:"button","data-testid":"success-continue",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:t,children:w("modal.settings.email.next")})})]}),ose={BASE:{title:w("modals.settings.tab.account"),showBackButton:!1},CONFIRMING_2FA:{title:w("modal.settings.email.verify_your_2fa"),showBackButton:!0},CHANGE_EMAIL:{title:w("modal.settings.email.change_email"),showBackButton:!0},VERIFY_EMAIL:{title:w("modal.settings.email.verify_code"),showBackButton:!0},VERIFY_SUCCESS:void 0},ise=()=>{const[e,t,n]=Me([my,o7,rs]);y.useEffect(()=>()=>mo(),[]);const s=ose[e],r=t?_9(t):null;return o.jsxs("div",{className:"flex h-full flex-col","data-testid":`account-state-${e}`,children:[s?o.jsx(PL,{title:s.title,icon:"account",showBackButton:s.showBackButton,onBack:()=>zx()}):null,o.jsxs("div",{className:"flex flex-1 flex-col md:my-4 md:justify-start",children:[e==="BASE"?o.jsx(sse,{settingsUser:n}):null,e==="CONFIRMING_2FA"?o.jsx(Q6,{onConfirm:a=>Cy(a),error:r}):null,e==="CHANGE_EMAIL"?o.jsx(rse,{currentEmail:(n==null?void 0:n.verifiedEmail)??null}):null,e==="VERIFY_EMAIL"?o.jsx(OL,{onVerifyCode:a=>xy(a),onResend:async()=>{Gx()},error:r}):null,e==="VERIFY_SUCCESS"?o.jsx(DL,{testId:"account-verify-success",title:w("modal.settings.email.email_updated"),onContinue:()=>a6()}):null]})]})},ug=[{name:"Claude",command:"claude mcp add whale-games --transport http https://api.playwhale.io/mcp",descriptionKey:"modals.settings.mcp.clients.claude"},{name:"Codex",command:"codex mcp add whale-games --url https://api.playwhale.io/mcp",descriptionKey:"modals.settings.mcp.clients.codex"},{name:"OpenClaw",command:`openclaw mcp set whale-games '{"transport":"streamable-http","url":"https://api.playwhale.io/mcp"}'`,descriptionKey:"modals.settings.mcp.clients.openclaw"}],lse=4e3,cse={default:"text-[#9092B2]",hover:"text-white",copied:"text-[#54D149]"},dse=({value:e})=>{const[t,n]=y.useState("default"),s=async()=>{try{await navigator.clipboard.writeText(e)}catch(r){console.error("Failed to copy the MCP command",r);return}n("copied"),window.setTimeout(()=>n("default"),lse)};return o.jsxs("div",{className:"flex grow items-start justify-between gap-2 rounded-lg bg-secondary px-3 py-2.5",children:[o.jsx("div",{className:"min-w-0 text-sm font-medium text-white [overflow-wrap:anywhere]",children:e}),o.jsx("button",{type:"button","data-testid":"mcp-copy-command",className:"shrink-0","aria-label":w("modals.settings.mcp.copy"),onClick:()=>void s(),onMouseOver:()=>n(r=>r==="copied"?r:"hover"),onMouseOut:()=>n(r=>r==="copied"?r:"default"),children:o.jsx(Ou,{className:ie("size-5",cse[t])})})]})},use=()=>{const[e,t]=y.useState(0),n=ug[e];return o.jsxs("div",{className:"flex flex-col gap-6 py-4","data-testid":"settings-mcp-tab",children:[o.jsx("div",{className:"flex flex-col gap-2",children:o.jsx("p",{className:"text-sm text-brandblue-100",children:w("modals.settings.mcp.description")})}),o.jsx("div",{className:"flex gap-2",children:ug.map((s,r)=>o.jsx("button",{type:"button","data-testid":`mcp-client-${s.name.toLowerCase()}`,"aria-pressed":r===e,onClick:()=>t(r),className:ie("rounded-lg px-4 py-2 text-sm font-medium transition-colors",r===e?"bg-[#637AF4] text-white":"bg-secondary text-brandblue-100 hover:text-white"),children:s.name},s.name))}),o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx("div",{className:"text-xs text-brandblue-100",children:w(n.descriptionKey)}),o.jsx(dse,{value:n.command})]})]})},fse="https://t.me/GoldenWhale_vip/GoldenWhale_vip",mse=()=>o.jsx("div",{className:"block pb-1 pt-5",children:o.jsx("div",{className:"relative rounded-md border-2 border-Accent-Main",children:o.jsx("div",{className:"flex h-10 flex-row items-center justify-start overflow-hidden rounded-md bg-gradient-to-r from-Accent-Main/20 to-Accent-BgAlpha/0 p-2 py-1 pr-1",children:o.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-x-1",children:[o.jsxs("div",{className:"flex flex-row items-center gap-x-1",children:[o.jsx(Fne,{className:"size-5 text-Accent-Main"}),o.jsx("div",{className:"text-sm font-semibold leading-none text-Accent-Main",children:w("vip.contact_manager")})]}),o.jsx("button",{type:"button","data-testid":"vip-contact-manager",className:"h-8 rounded-md px-3 text-sm font-medium text-Accent-Main hover:bg-secondary-active",onClick:()=>window.open(fse,"_blank"),children:w("vip.contact")})]})})})}),hse=({src:e,alt:t="",decoding:n="async",...s})=>o.jsx("img",{src:s_(e),alt:t,decoding:n,...s}),pse=({game:e})=>{const t=Or(),{closeModal:n}=Os(),s=()=>{Te("Open game title",{gameCode:e.game_code}),e.product&&(n(),t(vw(e.game_code)??VY(ww(e.product),e.game_code)))};return o.jsxs("button",{type:"button","data-testid":`most-wagered-${e.game_code}`,className:"flex w-full flex-col items-center gap-1 rounded-lg bg-secondary p-2 text-center sm:flex-row sm:text-left",onClick:s,children:[o.jsx("span",{className:"relative inline-block size-12 shrink-0 overflow-hidden rounded-lg",children:o.jsx(hse,{src:Zs(e.url_thumb??""),alt:e.name,className:"size-full object-cover object-center"})}),o.jsxs("span",{className:"flex w-full flex-col gap-1 overflow-hidden truncate",children:[o.jsx("span",{className:"truncate text-xs font-semibold text-white sm:pl-2",children:e.name}),o.jsx("span",{className:"truncate text-xs font-semibold text-brandblue-100 sm:pl-2",children:uo(e.wagering,"USD")})]})]})},FL=({className:e})=>o.jsx("div",{className:ie("flex items-center justify-center",e),"data-testid":"settings-loader",children:o.jsx("span",{className:"size-6 animate-spin rounded-full border-2 border-brandblue-100 border-t-transparent"})}),p3=({title:e,icon:t})=>o.jsx("div",{className:"flex flex-row items-center justify-between pb-3",children:o.jsxs("h1",{className:"flex flex-row items-center gap-2 text-sm font-semibold text-white",children:[t,o.jsx("span",{className:"text-right font-jost text-[18px] font-semibold leading-[30px] text-white",children:e})]})}),gse={success:"bg-gradient-success",secondary:"bg-secondary"},wse={success:"text-green",secondary:"text-brandblue-100"}
407,g3=({title:e,subtitle:t,variant:n="secondary",icon:s,className:r,testId:a})=>o.jsx("div",{"data-testid":a,className:ie("flex w-full flex-row items-center rounded-lg p-4 pb-[16px] pt-[20px] text-sm sm:text-base",gse[n],r),children:o.jsx("div",{className:"flex w-full flex-row justify-between",children:o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsxs("span",{className:ie("flex flex-row items-center gap-2 align-middle text-sm",wse[n]),children:[s,e]}),o.jsx("span",{className:"flex flex-row items-center gap-2 align-middle text-base font-medium text-white",children:t})]})})}),fg={xmark:{viewBox:"0 0 384 512",d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},arrowRight:{viewBox:"0 0 448 512",d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},scroll:{viewBox:"0 0 576 512",d:"M48 112c0-17.7 14.3-32 32-32s32 14.3 32 32l0 288c0 44.2 35.8 80 80 80l304 0c44.2 0 80-35.8 80-80l0-48c0-26.5-21.5-48-48-48l-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.5 0-.6 0-.5 0-.6 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.5 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0-.6 0c-26.5 0-48 21.5-48 48l0 48c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-288c0-11.4-2.4-22.2-6.7-32L400 80c17.7 0 32 14.3 32 32l0 160 48 0 0-160c0-44.2-35.8-80-80-80L80 32C35.8 32 0 67.8 0 112l0 48c0 26.5 21.5 48 48 48l32 0 0-48-32 0 0-48zM496 432l-230.7 0c4.3-9.8 6.7-20.6 6.7-32l0-48s0 0 0 0l.6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .5 0 .6 0 .5 0 .6 0 .5 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0 .6 0s0 0 0 0l0 48c0 17.7-14.3 32-32 32z"},signature:{viewBox:"0 0 640 512",d:"M176 128c0-26.5 21.5-48 48-48s48 21.5 48 48l0 7.9c0 27.5-2.3 55-7 82.1L158 251.1c-36.9 11.4-62 45.5-62 84.1L96 410c0 38.6 31.3 70 70 70c24.6 0 47.4-12.9 60-34l15.9-26.4c29.6-49.4 51.1-103.3 63.6-159.5l1-4.7 110.8-34.3-23.9 66.8c-2.6 7.4-1.5 15.5 3 21.9s11.8 10.2 19.6 10.2l136 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-101.9 0 28.5-79.9c3.1-8.6 1-18.1-5.3-24.7s-15.7-9-24.4-6.3l-133 41.2c2.7-22 4.1-44.2 4.1-66.4l0-7.9c0-53-43-96-96-96s-96 43-96 96l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40zm-3.8 169l80.9-25c-11.7 43.2-29.4 84.5-52.4 123l-15.9 26.4c-4 6.6-11.1 10.7-18.8 10.7c-12.1 0-22
407-9.8-22-22l0-74.8c0-17.5 11.4-33 28.2-38.2zM64 368l-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40.2 0c-.1-2-.2-4-.2-6l0-42zm216.8 48L616 416c13.3 0 24-10.7 24-24s-10.7-24-24-24l-311.9 0c-7 16.3-14.8 32.4-23.3 48z"},chevronDown:{viewBox:"0 0 512 512",d:"M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"},diceSix:{viewBox:"0 0 448 512",d:"M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm96 64a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm0 96a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM288 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM288 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},squarePollVertical:{viewBox:"0 0 448 512",d:"M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM128 224c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zm72-72c0-13.3 10.7-24 24-24s24 10.7 24 24l0 208c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-208zM320 288c13.3 0 24 10.7 24 24l0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48c0-13.3 10.7-24 24-24z"},circleArrowDown:{viewBox:"0 0 512 512",d:"M256 48a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm0 464A256 256 0 1 1 256 0a256 256 0 1 1 0 512zM361 305l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-88-88c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L232 136c0-13.3 10.7-24 24-24s24 10.7 24 24l0 182.1 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},circleArrowUp:{viewBox:"0 0 512 512",d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM361 207l-88-88c-9.4-9.4-24.6-9.4-33.9 0l-88 88c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47L232 376c0 13.3 10.7 24 24 24s24-10.7 24-24l0-182.1 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9z"},questionCircle:{viewBox:"0 0 512 512",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},circleArrowUpRight:{viewBox:"0 0 512 512",d:"M256 464a208 208 0 1 0 0-416 208 208 0 1 0 0 416zM256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM192 144l152 0c13.3 0 24 10.7 24 24l0 160c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1L185 361c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l135-135L192 192c-13.3 0-24-10.7-24-24s10.7-24 24-24z"},spinner:{viewBox:"0 0 512 512",d:"M288 32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM448 256a32 32 0 1 0 64 0 32 32 0 1 0 -64 0zM32 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM75 437a32 32 0 1 0 45.3-45.3A32 32 0 1 0 75 437zm316.8 0A32 32 0 1 0 437 391.8 32 32 0 1 0 391.8 437zM75 75a32 32 0 1 0 45.3 45.3A32 32 0 1 0 75 75z"},coins:{viewBox:"0 0 512 512",d:"M176 88c0 0 0 0 0 0c0 .1 .1 .6 .6 1.5c.6 1.2 2 3.1 4.7 5.5c.4 .3 .8 .7 1.2 1c-18.7 .4-36.9 1.7-54.4 4.1L128 88c0-18 9.7-32.4 21.1-42.7s26.7-18.5 43.5-24.9C226.4 7.5 271.5 0 320 0s93.6 7.5 127.3 20.3c16.8 6.4 32.1 14.6 43.5 24.9S512 70 512 88l0 104 0 104c0 18-9.7 32.4-21.1 42.7s-26.7 18.5-43.5 24.9c-9.6 3.7-20.1 6.9-31.3 9.6l0-49.7c5.1-1.5 9.8-3.1 14.2-4.8c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.6-1.1 .6-1.5 .6-1.5c0 0 0 0 0 0l0-43.6c-5.3 2.6-10.9 5-16.7 7.2c-9.6 3.7-20.1 6.9-31.3 9.6l0-49.7c5.1-1.5 9.8-3.1 14.2-4.8c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.5-.9 .6-1.4 .6-1.5c0 0 0 0 0 0s0 0 0 0l0-43.6c-5.3 2.6-10.9 5-16.7 7.2c-13.7 5.2-29.4 9.6-46.3 12.9c-5.1-7.5-11-13.9-16.8-19.1c-10.1-9.1-21.8-16.5-34-22.6c31.7-2.3 59.3-8.2 80-16.1c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.5-.9 .6-1.4 .6-1.5c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0-.5-.6-1.5c-.6-1.2-2-3.1-4.7-5.5c-5.5-5-14.9-10.6-28.5-15.7C403.2 54.9 364.2 48 320 48s-83.2 
4076.9-110.2 17.2c-13.6 5.2-23 10.8-28.5 15.7c-2.7 2.4-4.1 4.3-4.7 5.5c-.6 1.1-.6 1.5-.6 1.5c0 0 0 0 0 0zM48 216c0 0 0 0 0 0c0 .1 .1 .6 .6 1.5c.6 1.2 2 3.1 4.7 5.5c5.5 5 14.9 10.6 28.5 15.7c27 10.3 66 17.2 110.2 17.2s83.2-6.9 110.2-17.2c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.5-.9 .6-1.4 .6-1.5c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0-.5-.6-1.5c-.6-1.2-2-3.1-4.7-5.5c-5.5-5-14.9-10.6-28.5-15.7c-27-10.3-66-17.2-110.2-17.2s-83.2 6.9-110.2 17.2c-13.6 5.2-23 10.8-28.5 15.7c-2.7 2.4-4.1 4.3-4.7 5.5c-.6 1.1-.6 1.5-.6 1.5c0 0 0 0 0 0zM0 216c0-18 9.7-32.4 21.1-42.7s26.7-18.5 43.5-24.9C98.4 135.5 143.5 128 192 128s93.6 7.5 127.3 20.3c16.8 6.4 32.1 14.6 43.5 24.9S384 198 384 216l0 104 0 104c0 18-9.7 32.4-21.1 42.7s-26.7 18.5-43.5 24.9C285.6 504.5 240.5 512 192 512s-93.6-7.5-127.3-20.3c-16.8-6.4-32-14.6-43.5-24.9S0 442 0 424L0 320 0 216zM336 320l0-43.6c-5.3 2.6-10.9 5-16.7 7.2C285.6 296.5 240.5 304 192 304s-93.6-7.5-127.3-20.3c-5.8-2.2-11.4-4.6-16.7-7.2L48 320c0 0 0 0 0 0c0 .1 .1 .6 .6 1.5c.6 1.2 2 3.1 4.7 5.5c5.5 5 14.9 10.6 28.5 15.7c27 10.3 66 17.2 110.2 17.2s83.2-6.9 110.2-17.2c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.5-.9 .6-1.4 .6-1.5c0 0 0 0 0 0c0 0 0 0 0 0zM64.7 387.7c-5.8-2.2-11.4-4.6-16.7-7.2L48 424s0 0 0 0c0 0 0 .5 .6 1.5c.6 1.2 2 3.1 4.7 5.5c5.5 5 14.9 10.6 28.5 15.7c27 10.3 66 17.2 110.2 17.2s83.2-6.9 110.2-17.2c13.6-5.2 23-10.8 28.5-15.7c2.7-2.4 4.1-4.3 4.7-5.5c.6-1.1 .6-1.5 .6-1.5c0 0 0 0 0 0l0-43.6c-5.3 2.6-10.9 5-16.7 7.2C285.6 400.5 240.5 408 192 408s-93.6-7.5-127.3-20.3z"},star:{viewBox:"0 0 576 512",d:"M374.6 164L315.2 51.4 288.1 0 260.9 51.4 201.5 164 76.2 185.7l-57.3 9.9 40.5 41.7 88.7 91.2L130 454.4 121.7 512l52.2-25.7 114.2-56.1 114.2 56.1L454.4 512l-8.3-57.6L428 328.5l88.7-91.2 40.5-41.7-57.3-9.9L374.6 164zm84.8 63.4l-65.8 67.7L377.2 312l3.4 23.4L394 428.8l-84.7-41.7-21.2-10.4-21.2 10.4-84.7 41.7 13.4-93.4L199 312l-16.4-16.9-65.8-67.7 93-16.1 23.3-4 11-20.9 44.1-83.5 44.1 83.5 11 20.9 23.3 4 93 16.1z"},trophy:{viewBox:"0 0 576 512",d:"M312 378.4c4-1.6 8.4-3.6 13.1-6.1c33.8-6 95.5-22 149.5-63.7C530.1 265.7 576 196.5 576 88l0-24-24 0L446.4 64c.3-5.2 .5-10.6 .7-16c.6-15.3 .9-31.3 .9-48L400 0 176 0 128 0c0 16.7 .3 32.7 .9 48c.2 5.4 .4 10.8 .7 16L24 64 0 64 0 88C0 196.5 45.9 265.7 101.5 308.6c53.9 41.7 115.7 57.6 149.5 63.7c4.7 2.5 9.1 4.5 13.1 6.1l0 85.6-80 0-24 0 0 48 24 0 104 0 104 0 24 0 0-48-24 0-80 0 0-85.6zM445.2 270.6c-17.5 13.6-36.3 24-54.4 32c22.7-40.3 42.8-100.5 51.9-190.6l84.4 0c-6 78.4-41.3 127.3-81.9 158.6zM48.9 112l84.4 0c9.1 90.1 29.2 150.3 51.9 190.6c-18.1-8-36.8-18.4-54.4-32C90.2 239.3 54.9 190.4 48.9 112zm128-64l222.2 0c-6.1 153.1-40.8 224.7-68 257.3c-14.7 17.7-28.1 25-36 28.2c-3.1 1.2-5.6 1.9-7.2 2.3c-1.6-.3-4.1-1-7.2-2.3c-7.9-3.1-21.2-10.5-36-28.2C217.7 272.7 183 201.1 176.9 48z"},heart:{viewBox:"0 0 512 512",d:"M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"},heartOutline:{viewBox:"0 0 512 512",d:"M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8l0-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5l0 3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5l0 3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2l0-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z"}},ao=({icon:e,className:t})=>o.jsx("svg",{className:t,viewBox:fg[e].viewBox,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",focusable:"false",children:o.jsx("path",{d:fg[e].d})}),mg=[{id:0,family:"bronze",name:"rank.0",minLevel:1,maxLevel:4,isVip:!1},{id:1,family:"silver",name:"rank.1",minLevel:5,maxLevel:8,isVip:!1},{id:2,family:"gold",name:"rank.2",minLevel:9,maxLevel:12,isVip:!1},{id:3,family:"platinum",name:"rank.3",minLevel:13,maxLevel:16,isVip:!1},{id:4,family:"diamond",name:"rank.4",minLevel:17,maxLevel:20,isVip:!0},{id:5,family:"emerald",name:"rank.5",minLevel:21,maxLevel:24,isVip:!0},{id:6,family:"whale",name:"rank.6",minLevel:25,maxLevel:25,isVip:!0}],Cse=["","I","II","III","IV"],xse=e=>Cse[e]??String(e),jL=e=>[...mg].reverse().find(t=>e>=t.minLevel)??mg[0],fue=(e,t)=>
407{const n=jL(e),s=t(n.name);return n.minLevel===n.maxLevel?s:`${s} ${xse(e-n.minLevel+1)}`},yse=({level:e})=>{const t=jL(e);return o.jsx("img",{className:"size-10 shrink-0 object-contain",src:`/ranks/${t.family}.webp`,alt:w(t.name),width:40,height:40})},bse=()=>{const[e,t,n,s]=Me([QF,ej,tj,FA]);if(y.useEffect(()=>{$x()},[]),n)return o.jsx(FL,{className:"size-full"});const r=t==null?void 0:t.userLevel,a=t==null?void 0:t.currentLevel,i=t==null?void 0:t.nextLevel,l=t==null?void 0:t.nextCashbackLevel,c=kF(r==null?void 0:r.xp,a==null?void 0:a.xp,i==null?void 0:i.xp),d=((e==null?void 0:e.games)??[]).filter(f=>f.game_code);return o.jsxs("div",{className:"flex flex-col gap-y-2 font-jost","data-testid":"settings-profile-tab",children:[o.jsxs("div",{className:"flex w-full items-center justify-between gap-4 pt-5",children:[o.jsx(RL,{size:"xxl",isVip:s}),o.jsxs("div",{className:"flex grow flex-col justify-between gap-2",children:[o.jsx(NL,{}),o.jsxs("div",{className:"flex items-center justify-between gap-2 self-stretch rounded-xl bg-secondary p-3",children:[o.jsx(yse,{level:(r==null?void 0:r.level)||1}),o.jsxs("div",{className:"flex grow flex-col justify-between gap-1",children:[o.jsx("div",{className:"rounded bg-primary",children:o.jsx("div",{"data-testid":"level-progress",style:{width:`${c}%`},className:"h-1.5 grow rounded bg-gradient-to-l from-[#ebc066] to-[#ca9c3d]"})}),o.jsxs("div",{className:"mt-1 flex items-center justify-between text-sm font-medium sm:hidden",children:[o.jsxs("span",{className:"flex items-end text-yellow",children:[w("modals.user.level")," ",(r==null?void 0:r.level)||1]}),o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium text-white",children:jl((r==null?void 0:r.xp)||0)}),o.jsxs("span",{className:"font-medium text-brandblue-100",children:["/",jl((i==null?void 0:i.xp)||0)," XP"]})]})]}),o.jsxs("div",{className:"mt-1 hidden items-center justify-between sm:flex",children:[o.jsx("div",{className:"flex items-end",children:o.jsxs("span",{className:"text-xs text-brandblue-100",children:[w("modals.user.yourLevel")," ",o.jsx("span",{className:"text-yellow",children:(r==null?void 0:r.level)||1})]})}),o.jsxs("div",{className:"text-xs",children:[o.jsxs("span",{className:"font-medium text-white",children:[jl((r==null?void 0:r.xp)||0)," XP"]}),o.jsxs("span",{className:"font-medium text-brandblue-100",children:["/",jl((i==null?void 0:i.xp)||0)," XP"]})]})]})]})]})]})]}),s?o.jsx(mse,{}):null,o.jsx(p3,{title:w("modals.user.statistics.title"),icon:o.jsx(ao,{icon:"squarePollVertical",className:"size-5 text-brandblue-100"})}),o.jsxs("div",{className:"grid w-full grid-cols-2 items-start justify-between gap-2 sm:grid-cols-3",children:[o.jsx(g3,{testId:"stat-total-wins",className:"order-3 col-span-full sm:order-3 sm:col-auto",variant:"success",title:w("modals.user.statistics.totalWins"),subtitle:uo((e==null?void 0:e.winsAmount)??0,"USD"),icon:o.jsx(ao,{icon:"trophy",className:"size-4 text-green"})}),o.jsx(g3,{testId:"stat-total-bets",className:"order-2 col-span-1",title:w("modals.user.statistics.totalBets"),subtitle:jl((e==null?void 0:e.betsCount)??0),icon:o.jsx(ao,{icon:"diceSix",className:"size-4 text-brandblue-100"})}),o.jsx(g3,{testId:"stat-total-wagered",className:"order-1 col-span-1 sm:order-1",title:w("modals.user.statistics.totalWagered"),subtitle:uo((e==null?void 0:e.wagering)??0,"USD"),icon:o.jsx(ao,{icon:"coins",className:"size-4 text-brandblue-100"})})]}),o.jsxs("div",{children:[o.jsx(p3,{title:w("modals.user.cashback"),icon:o.jsx(Dne,{color:"#54D149"})}),o.jsxs("div",{className:"flex h-[76px] w-full min-w-0 flex-row items-center gap-2 rounded-xl bg-gradient-success-reverse p-4",children:[o.jsx("img",{className:"aspect-square size-[48px]",src:"/cashback.webp",alt:"cashback"}),o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:"text-xs font-medium",children:w("modals.user.yourCashback")}),o.jsxs("span",{className:"text-lg font-semibold text-green-500","data-testid":"cashback-current",children:[(a==null?void 0:a.cashbackPercents)||0,"%"]})]}),o.jsxs("div",{className:"ml-auto flex flex-row items-center gap-4",children:[o.jsx(Ot,{icon:"arrowsRight",className:"size-[24px] text-green-500"}),o.jsxs("div",{className:"flex flex-col gap-0",children:[o.jsxs("span",{className:"text-xs font-medium text-brandblue-100",children:[w("modals.user.level")," ",(l==null?void 0:l.level)||1]}),o.jsxs("span",{className:"text-lg font-semibold text-brandblue-100",children:[(l==null?void 0:l.cashbackPercents)||0,"%"]})]})]})]})]}),o.jsxs("div",{children:[o.jsx(p3,{title:w("modals.user.mostWageredGames"),icon:o.jsx(ao,{icon:"star",className:"size-5 text-yellow"})}),o.jsx("div",{className:"flex w-full items-start justify-between gap-2",children:d.map(f=>o.jsx(pse,{game:f},f.game_code))})]})]})},$L=()=>{const[e,t]=Me([Pi,KF]),n=!t;return o.jsxs("div",{className:"mb-8 border-b-1 border-[#323A4C] pb-5",children:[o.jsxs("div",{className:"m-1 mb-5 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:"flex flex-col items-center justify-center rounded-full bg-[#323A4C] p-[10px]",children:o.jsx(Ot,{icon:"lock",className:"size-5 text-[#7086FF]"})}),o.jsx("div",{className:"text-base font-semibold",children:w("settings.password.label")})]}),o.jsx("button",{type:"button","data-testid":"password-action",disabled:n,className:"h-10 rounded-md bg-gradient-primary px-4 text-sm font-semibold text-button-primary-text disabled:pointer-events-none disabled:opacity-50",onClick:()=>Qx(),children:e==="change"?w("settings.password.change_password"):w("settings.password.add_password")})]}),n?o.jsxs("div",{className:"flex h-10 w-full items-center gap-2 rounded bg-tribe-live p-2 text-brandblue-100","data-testid":"password-email-required",children:[o.jsx(Ine,{className:"shrink-0"}),e==="change"?w("settings.password.email_required_change"):w("settings.password.email_required_add")]}):null]})},hg=({icon:e,title:t,subtitle:n,extra:s,onDelete:r,testId:a})=>o.jsxs("div",{className:"flex flex-row items-center justify-between gap-4 roun
407ded-md bg-gunmetal p-2","data-testid":a,children:[o.jsx("div",{className:"rounded bg-[#323A4C] p-2",children:o.jsx(Ot,{icon:e,className:"size-6 text-[#7086FF]"})}),o.jsxs("div",{className:"flex w-full flex-col",children:[o.jsx("div",{className:"flex flex-col",children:t}),o.jsxs("div",{className:"flex flex-col text-sm font-medium text-[#ADAFCE]",children:[n,s?o.jsxs(o.Fragment,{children:[" - ",s]}):null]})]}),o.jsx("button",{type:"button",className:"pr-2","data-testid":`${a}-delete`,onClick:r,children:o.jsx(Ot,{icon:"garbageBasket",className:"size-5"})})]}),vse=()=>{const[e,t,n]=Me([qF,YF,rs]),s=e&&t;return o.jsxs("div",{className:"flex flex-col justify-between gap-6 pt-6","data-testid":"security-2fa-enabled",children:[o.jsx($L,{}),o.jsxs("div",{className:"flex w-full flex-col gap-4 border-b-1 border-[#1F232D] pb-6",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:"flex flex-col items-center justify-center rounded-full bg-[#323A4C] p-[10px]",children:o.jsx(Ot,{icon:"shield",className:"size-5 flex-col text-[#7086FF]"})}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("div",{className:"text-base font-semibold",children:w("settings.2fa.2fa")}),o.jsx("div",{className:"text-sm text-[#ADAFCE]",children:w("modals.settings.welcome.subtitle")})]})]}),s?o.jsx("div",{className:"flex w-full items-center justify-center rounded-lg bg-[#323A4C] py-2",children:o.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[o.jsx(Ot,{icon:"securePasswordWithLock",className:"size-6 text-white"}),w("settings.2fa.enable_2fa")]})}):o.jsx("button",{type:"button","data-testid":"add-2fa-method",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>Jx(),children:w("settings.2fa.add_more_methods")})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("div",{className:"flex w-full flex-col",children:w("settings.2fa.linked_accounts")}),e?o.jsx(hg,{testId:"linked-app",icon:"securePassword",title:w("settings.2fa.authenticator_app"),subtitle:w("settings.2fa.linked_auth_app"),onDelete:()=>o6("APP")}):null,t?o.jsx(hg,{testId:"linked-email",icon:"email",title:w("settings.2fa.second_email"),subtitle:w("settings.2fa.linked_second_email"),extra:n==null?void 0:n.secondEmailSecure,onDelete:()=>o6("EMAIL")}):null]})]})},kc=({name:e,placeholder:t,value:n,error:s,onChange:r,onBlur:a,trimsPastedText:i=!1})=>{const[l,c]=y.useState(!1);return o.jsxs("div",{className:"relative flex justify-start gap-4",children:[o.jsx(Vs,{name:e,"data-testid":e,type:l?"text":"password",placeholder:t,value:n,error:s,required:!0,onChange:d=>r(d.target.value),onPaste:i?d=>xd(d,r):void 0,onBlur:a}),o.jsx("button",{type:"button","aria-label":l?"Hide password":"Show password",className:"absolute right-0 top-[10px] flex items-center pr-3 text-gray-500",onClick:()=>c(d=>!d),children:l?o.jsx(pd,{className:"size-5"}):o.jsx(hd,{className:"size-5"})})]})},Ese=()=>{const[e,t]=y.useState(""),[n,s]=y.useState(""),[r,a]=y.useState(""),[i,l]=y.useState(""),c=async()=>{a(""),l("");const d=ML(),f=d.safeParse(e);if(!f.success){a(ha(f));return}const u=d.safeParse(n);if(!u.success){l(ha(u));return}if(e!==n){l(w("errors.validation.passwords_dont_match"));return}await Sy(e)||a(Kd.getState()??w("errors.generic"))};return o.jsxs("div",{className:"pt-6","data-testid":"security-add-password",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.password.new")}),o.jsx(kc,{name:"new-password",placeholder:w("modal.settings.password.new.placeholder"),value:e,error:r,onChange:t,trimsPastedText:!0}),o.jsxs("div",{className:"pt-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.password.confirm")}),o.jsx(kc,{name:"confirm-new-password",placeholder:w("modal.settings.password.confirm.placeholder"),value:n,error:i,onChange:s,trimsPastedText:!0})]}),o.jsx("div",{className:"bottom-0 left-0 z-main w-full pb-5 pt-10 md:absolute md:px-0 md:pt-0",children:o.jsx("button",{type:"button","data-testid":"add-password-submit",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>void c(),children:w("modal.settings.password.next")})})]})},Sse=()=>{const[e,t]=y.useState(""),[n,s]=y.useState(""),[r,a]=y.useState(""),[i,l]=y.useState(""),[c,d]=y.useState(""),[f,u]=y.useState(""),m=async()=>
407{l(""),d(""),u("");const C=IL().safeParse(e);if(!C.success){l(ha(C));return}const b=ML(),v=b.safeParse(n);if(!v.success){d(ha(v));return}const E=b.safeParse(r);if(!E.success){u(ha(E));return}if(n!==r){u(w("errors.validation.passwords_dont_match"));return}if(!await Ey({currentPassword:e,newPassword:n})){const g=Kd.getState()??w("errors.generic");g===_F?l(g):d(g)}};return o.jsxs("div",{className:"pt-6","data-testid":"security-change-password",children:[o.jsxs("div",{className:"block w-full border-b-1 border-[#323A4C] pb-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.password.current")}),o.jsx(kc,{name:"current-password",placeholder:w("modal.settings.password.current.placeholder"),value:e,error:i,onChange:t})]}),o.jsxs("div",{className:"pt-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.password.new")}),o.jsx(kc,{name:"new-password",placeholder:w("modal.settings.password.new.placeholder"),value:n,error:c,onChange:s,trimsPastedText:!0})]}),o.jsxs("div",{className:"pt-6",children:[o.jsx("div",{className:"pb-2 text-[16px] text-white",children:w("modal.settings.password.confirm")}),o.jsx(kc,{name:"confirm-new-password",placeholder:w("modal.settings.password.confirm.placeholder"),value:r,error:f,onChange:a,trimsPastedText:!0})]}),o.jsx("div",{className:"bottom-0 left-0 z-main w-full pb-5 pt-10 md:absolute md:px-0 md:pt-0",children:o.jsx("button",{type:"button","data-testid":"change-password-submit",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>void m(),children:w("modal.settings.password.next")})})]})},pg=({method:e,activeMethod:t,title:n,description:s,badge:r,onSelect:a})=>{const i=t===e;return o.jsxs("button",{type:"button","data-testid":`2fa-method-${e}`,"aria-pressed":i,className:ie("flex flex-col gap-1 rounded-xl border bg-gunmetal p-4 text-left",i?"border-[#7086FF]":"border-[#1F232F]"),onClick:a,children:[o.jsxs("div",{className:"flex flex-row items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:ie("flex size-5 flex-col items-center justify-center rounded-full border-2",i?"border-[#7086FF]":"border-[#323A4C]"),children:i?o.jsx("div",{className:"flex size-3 flex-col rounded-full bg-[#7086FF]"}):null}),o.jsx("div",{className:"flex flex-col",children:n})]}),r?o.jsx("div",{className:"flex flex-col rounded bg-[#272D44] p-1 text-sm text-[#7086FF]",children:r}):null]}),o.jsx("div",{className:"flex flex-row text-secondary-100",children:s})]})},Lse=()=>{const[e,t]=y.useState("APP");return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col gap-2","data-testid":"security-choose-method",children:[o.jsx(pg,{method:"APP",activeMethod:e,title:w("settings.2fa.authenticator_app"),description:w("settings.2fa.authenticator_app_description"),badge:w("settings.2fa.recommended"),onSelect:()=>t("APP")}),o.jsx(pg,{method:"EMAIL",activeMethod:e,title:w("settings.2fa.second_email"),description:w("settings.2fa.second_email_description"),onSelect:()=>t("EMAIL")})]}),o.jsx("div",{className:"w-full pt-5",children:o.jsx("button",{type:"button","data-testid":"2fa-method-next",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>Yx(e),children:w("global_Next")})})]})},Ase=({error:e})=>{const t=async n=>await l6(n)?"ok":"error";return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-4","data-testid":"security-delete-2fa",children:o.jsxs("div",{className:"flex flex-col items-center gap-4",children:[o.jsx("div",{className:"flex items-center justify-center rounded-full bg-[#361F24] p-4",children:o.jsx(Ot,{icon:"exclamationMark",className:"size-[60px] text-[#FF5244]"})}),o.jsx("div",{className:"text-xl font-semibold",children:w("settings.2fa.enter_code_delete")}),o.jsx(Z1,{onConfirm:t,inputMode:"numeric"}),e?o.jsx("div",{className:"text-sm text-error","data-testid":"delete-2fa-error",children:e}):null]})}),o.jsxs("div",{className:"flex flex-row justify-center gap-4",children:[o.jsx("button",{type:"button","data-testid":"keep-2fa",className:"h-10 min-w-[147
407px] rounded-md bg-[#323A4C] text-sm font-semibold text-white",onClick:()=>r7(),children:w("settings.2fa.keep_2fa")}),o.jsx("button",{type:"button","data-testid":"delete-2fa-submit",className:"h-10 min-w-[147px] rounded-md bg-[#FF5244] text-sm font-semibold text-white",onClick:()=>{const n=Array.from(document.querySelectorAll('[data-testid="security-delete-2fa"] input')),s=n.map(r=>r.value).join("");s.length===n.length&&s.length>0&&l6(s)},children:w("global_delete")})]})]})},Tse=()=>o.jsx("div",{className:"mt-6 flex flex-col justify-between","data-testid":"security-2fa-disabled",children:o.jsxs("div",{className:"w-full pb-6",children:[o.jsx($L,{}),o.jsxs("div",{className:"m-1 mb-10 flex items-center gap-2",children:[o.jsx("div",{className:"flex flex-col items-center justify-center rounded-full bg-[#323A4C] p-[10px]",children:o.jsx(Ot,{icon:"shield",className:"size-5 flex-col text-[#7086FF]"})}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("div",{className:"text-base font-semibold",children:w("settings.2fa.2fa")}),o.jsx("div",{className:"text-sm text-[#ADAFCE]",children:w("modals.settings.welcome.subtitle")})]})]}),o.jsxs("button",{type:"button","data-testid":"enable-2fa",className:"flex h-10 w-full items-center justify-center gap-2 rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>qx(),children:[o.jsx(Ot,{icon:"securePasswordWithLock",className:"size-6 text-white"}),w("settings.2fa.add_more_methods")]})]})}),_se=2e3,Rse=()=>{const e=Me(dy),[t,n]=y.useState(!1);y.useEffect(()=>{if(!t)return;const r=window.setTimeout(()=>n(!1),_se);return()=>window.clearTimeout(r)},[t]);const s=(e==null?void 0:e.clientSecret)??"";return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex h-full flex-col justify-center gap-4","data-testid":"security-pending-app",children:[o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsx("div",{className:"flex-col text-sm font-medium text-secondary-100",children:w("settings.2fa.scan_or_copy")}),o.jsx("div",{className:"flex size-full items-center justify-center rounded-lg bg-gunmetal py-4",children:o.jsx("div",{className:"flex w-[223px] items-center justify-center rounded-md bg-white p-1",children:o.jsx(L9,{data:(e==null?void 0:e.uri)??""})})})]}),o.jsxs("div",{className:"relative flex flex-row items-center justify-between rounded-md bg-gunmetal p-4",children:[o.jsx("div",{className:ie("absolute -top-3 right-0 rounded bg-black-50 p-1 text-sm text-secondary-100",t?"":"hidden"),children:w("modals.wallet.deposit.copy")}),o.jsx("div",{className:"flex-1 truncate","data-testid":"2fa-client-secret",children:s}),o.jsx("button",{type:"button","aria-label":"Copy secret",onClick:()=>{navigator.clipboard.writeText(s),n(!0)},children:o.jsx(Ot,{icon:"copy",className:"size-6"})})]})]}),o.jsx("button",{type:"button","data-testid":"2fa-pending-next",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>Kx(),children:w("global_Next")})]})},Nse=()=>o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-6","data-testid":"security-setup-success",children:[o.jsx("div",{className:"rounded-full bg-[#1D2A26] p-4",children:o.jsx(Ot,{icon:"checkCircle",className:"size-14 text-[#73DA69]"})}),o.jsx("div",{className:"text-2xl font-semibold",children:w("settings.setup_completed")})]}),o.jsx("button",{type:"button","data-testid":"setup-success-next",className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>Xx(),children:w("global_Next")})]}),kse=()=>{const e=Me(Kd),[t,n]=y.useState(""),[s,r]=y.useState(!1),a=s&&(!D2(t)||!!e);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col gap-y-1 md:flex-1","data-testid":"security-pending-email",children:[o.jsx("label",{className:"w-full text-left text-sm",htmlFor:"2fa-email",children:w("settings.2fa.enter_email")}),o.jsx("input",{id:"2fa-email",name:"email",autoComplete:"email",type:"email",required:!0,"data-testid":"2fa-email-input",className:"h-10 w-full rounded-xl bg-tribe-live p-3 text-[0.72em] text-[#ADAFCE] placeholder:text-[#ADAFCE] focus:outline-none",placeholder:w("auth.form.email"),value:t,onChange:i=>n(i.target.value)}),o.jsx("div",{className:"h-4",children:a?o.jsx("div",{className:"text-xs text-[#FF5244]","data-testid":"2fa-email-error",children:w("settings.2fa.can_not_use_primary_email")}):null})]}),o.jsx("button",{type:"button","data-testid":"2fa-email-next",className:"h-11 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text",onClick:()=>{(async()=>
407{if(!D2(t)){r(!0);return}await yy(t)||r(!0)})()},children:w("global_Next")})]})},Ise=e=>({ENABLED:{title:w("modal.settings.tab.security"),showBackButton:!1},DISABLED:{title:w("modal.settings.tab.security"),showBackButton:!1},CHOOSE_METHOD:{title:w("modal.settings.2fa.choose_method"),showBackButton:!0},PENDING_APP:{title:w("modal.settings.2fa.setup_app"),showBackButton:!0},PENDING_EMAIL:{title:w("modal.settings.2fa.setup_email"),showBackButton:!0},CONFIRMING:{title:w("modal.settings.2fa.confirm"),showBackButton:!0},CONFIRMING_2FA:{title:w("modal.settings.2fa.confirm"),showBackButton:!0},SUCCESS:void 0,DELETING:{title:w("modal.settings.2fa.disable_2fa"),showBackButton:!0},CHANGE_PASSWORD:{title:w("settings.password.change_password"),showBackButton:!0},ADD_PASSWORD:{title:w("settings.password.new_password"),showBackButton:!0},VERIFY_PASSWORD_EMAIL:{title:e,showBackButton:!0},PASSWORD_SUCCESS:void 0}),Mse=()=>{const[e,t,n]=Me([G2,Kd,Pi]);y.useEffect(()=>()=>wi(),[]);const s=Ise(n==="change"?w("settings.password.change_password"):w("settings.password.new_password"))[e];return o.jsxs("div",{className:"flex h-full flex-col","data-testid":`security-state-${e}`,children:[s?o.jsx(PL,{title:s.title,icon:"keyHoleLock",showBackButton:s.showBackButton,onBack:()=>r7()}):null,o.jsxs("div",{className:`flex flex-1 flex-col md:justify-start md:pb-6 ${s!=null&&s.showBackButton?"pt-3":""}`,children:[e==="ENABLED"?o.jsx(vse,{}):null,e==="DISABLED"?o.jsx(Tse,{}):null,e==="CHOOSE_METHOD"?o.jsx(Lse,{}):null,e==="PENDING_APP"?o.jsx(Rse,{}):null,e==="PENDING_EMAIL"?o.jsx(kse,{}):null,e==="CONFIRMING"?o.jsx(Q6,{onConfirm:r=>by(r),error:t}):null,e==="CONFIRMING_2FA"?o.jsx(Q6,{onConfirm:r=>Ly(r),error:t}):null,e==="SUCCESS"?o.jsx(Nse,{}):null,e==="DELETING"?o.jsx(Ase,{error:t}):null,e==="CHANGE_PASSWORD"?o.jsx(Sse,{}):null,e==="ADD_PASSWORD"?o.jsx(Ese,{}):null,e==="VERIFY_PASSWORD_EMAIL"?o.jsx(OL,{onVerifyCode:r=>Ay(r),onResend:async()=>{ey()},error:t}):null,e==="PASSWORD_SUCCESS"?o.jsx(DL,{testId:"security-password-success",title:n==="change"?w("modal.settings.password.password_updated"):w("modal.settings.password.password_added"),onContinue:()=>ty()}):null]})]})},ti=e=>String(e).padStart(2,"0"),gg=e=>{const t=new Date(e).getTime()-Date.now();if(t<=0)return null;const n=Math.floor(t/1e3),s=Math.floor(n/86400),r=Math.floor(n%86400/3600),a=Math.floor(n%3600/60),i=n%60;return s>0?`${s}d ${ti(r)}:${ti(a)}:${ti(i)}`:`${ti(r)}:${ti(a)}:${ti(i)}`},BL=({until:e,onExpire:t})=>{const[n,s]=y.useState(()=>gg(e)??"00:00:00");return y.useEffect(()=>{const r=()=>{const i=gg(e);if(i===null){s("00:00:00"),window.clearInterval(a),t==null||t();return}s(i)};r();const a=window.setInterval(r,1e3);return()=>window.clearInterval(a)},[e,t]),o.jsx("div",{"data-testid":"self-exclusion-countdown",className:"w-full rounded-lg border border-error bg-error/10 py-3 text-center text-[20px] font-semibold tracking-wider text-error",children:n})},G1=({isSessionResolved:e,isAuthenticated:t,isProfileLoaded:n,isRestricted:s})=>t?n?s?"restricted":"clear":"pending":e?"clear":"pending",R9=e=>e==="clear",Ose={"24h":"modals.responsible_gaming.duration_24h","7d":"modals.responsible_gaming.duration_7d","30d":"modals.responsible_gaming.duration_30d"},Pse=()=>{const[e,t,n,s,r]=Me([ly,cj,cy,dj,uj]),[a,i,l]=Me([$t,yl,Po]),c=G1({isSessionResolved:l,isAuthenticated:a,isProfileLoaded:i,isRestricted:t}),[d,f]=y.useState(!1),[u,m]=y.useState(v0);return y.useEffect(()=>{if(!d)return;const p=window.setInterval(()=>{m(C=>C<=1?(f(!1),v0):C-1)},1e3);return()=>window.clearInterval(p)},[d]),y.useEffect(()=>{t&&f(!1)},[t]),o.jsxs("div",{className:"flex flex-col gap-5 pt-4","data-testid":"settings-self-exclusion-tab",children:[o.jsx("p",{className:"text-[14px] font-medium leading-20 text-[#9092B2]",children:w("modals.responsible_gaming.tab_description")}),c==="pending"?null:c==="restricted"&&n?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-[14px] font-medium leading-20 text-[#9092B2]","data-testid":"excluded-until",children:w("modals.responsible_gaming.excluded_until_date",{date:new Date(n).toLocaleString()})}),o.jsx(BL,{until:n,onExpire:()=>n7()})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-secondary p-1",children:TF.map(p=>o.jsx("button",{type:"button","data-testid":`self-exclusion-period-${p}`,disabled:d||s,className:ie("rounded-md py-2 text-center text-[14px] font-medium transition-colors",e===p?"bg-[#323A4C] text-white":"text-[#9092B2] hover:text-white"),onClick:()=>Hx(p),children:w(Ose[p])},p))}),d?o.jsxs("div",{className:"relative flex items-center justify-between overflow-hidden rounded-lg bg-secondary p-2 pl-4","data-testid":"self-exclusion-confirm-bar",children:[o.jsx("div",{className:"absolute inset-y-0 left-0 bg-[#323A4C] transition-[width] duration-1000 ease-linear",style:{width:`${u/v0*100}%`}}),o.jsx("span",{className:"relative text-[14px] font-medium text-white",children:w("modals.responsible_gaming.confirm_prompt")}),o.jsx("button",{type:"button","data-testid":"self-exclusion-confirm",disabled:s,className:"relative h-8 rounded-md bg-gradient-primary px-3 text-sm font-semibold text-button-primary-text disabled:opacity-50",onClick:()=>Vx(),children:w("modals.responsible_gaming.confirm")})]}):o.jsx("button",{type:"button","data-testid":"self-exclusion-start",disabled:s,className:"h-10 w-full rounded-md bg-gradient-primary text-sm font-semibold text-button-primary-text disabled:opacity-50",onClick:()=>{m(v0),f(!0)},children:w("modals.responsible_gaming.limit_myself")}),r?o.jsx("p",{className:"text-center text-[14px] font-medium text-error","data-testid":"self-exclusion-error",children:w("verify_email.modal.errors.generic")}):null]}),o.jsxs("a",{href:WY,className:"text-center text-[14px] font-medium text-[#637AF4] hover:underline",children:[w("modals.responsible_gaming.read_about")," ↗"]}),o.jsx("div",{className:"rounded-lg border border-[#323A4C] bg-secondary p-4 text-[14px] font-medium leading-20 text-[#9092B2]",children:w("modals.responsible_gaming.selfExclusionDisclaimer")})]})},Dse=({transaction:e})=>{const{transactionHash:t,currency:n,network:s,status:r}=e,a=r==="pending"||!t,i=()=>{var c,d,f;Te("Open explorer link",{currency:n,transactionHash:t});const l=r_(n,s??"",t);if(l){if(Ws()===vr.TELEGRAM){(f=(d=(c=window.Telegram)==null?void 0:c.WebApp)==null?void 0:d.openLink)==null||f.call(d,l);return}window.open(l,"_blank")}};return o.jsxs("button",{type:"button","data-testid":"tx-explorer",disabled:a,className:"inline-flex items-center rounded-md px-2 py-1 text-xs text-brandblue-100 hover:text-white disabled:pointer-events-none disabled:opacity-50",onClick:i,children:[r==="completed"?o.jsx("span",{className:"mr-1 hidden sm:block",children:w("global_view")}):null,o.jsx(ao,{icon:r==="pending"?"spinner":"circleArrowUpRight",className:ie("size-4",r==="pending"?"text-yellow":"text-brandblue-100")})]})},Fse=2e3,jse=({transaction:e})=>{const[t,n]=y.useState(!1),s=e.transactionHash??"",r=async()=>{try{await navigator.clipboard.writeText(s)}catch(a){console.error("Failed to copy the transaction hash",a);return}n(!0),window.setTimeout(()=>n(!1),Fse)};return o.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-xs font-medium","data-testid":"tx-hash",children:[o.jsx("span",{className:"shrink-0 text-brandblue-100",children:w("modals.user.transactions.txid")}),o.jsx("span",{className:"min-w-0 truncate text-white",title:s,"data-testid":"tx-hash-value",children:MF(s)}),o.jsxs("button",{type:"button","data-testid":"tx-hash-copy","aria-label":w("modals.user.transactions.copyTxid"),className:ie("inl
407ine-flex shrink-0 items-center gap-1 rounded-md p-1 transition-colors hover:text-white",t?"text-success":"text-brandblue-100"),onClick:()=>void r(),children:[o.jsx(Ou,{className:"size-4"}),t?o.jsx("span",{children:w("global_copied")}):null]}),o.jsx("div",{className:"shrink-0",children:o.jsx(Dse,{transaction:e})})]})},$se=["deposit","commission","cashback","tournament_prize","bonus"],Bse=["deposit","commission","cashback","withdrawal","tournament_prize","bonus"],Q0="h-[34px] truncate overflow-hidden px-2 align-middle text-xs font-normal sm:px-3",e2="h-10 truncate overflow-hidden px-2 align-middle sm:px-3",Use=4,Hse={completed:"text-success",pending:"text-yellow",cancelled:"text-error"},Vse=e=>{if(e.reasonCategory){const t=`modals.user.transactions.reasonCategory.${e.reasonCategory}`,n=w(t);if(n!==t)return n}return w(`modals.user.transactions.${e.type}`)},Wse=({transaction:e})=>{const t=e.status==="pending",n=t?"questionCircle":$se.includes(e.type)?"circleArrowDown":"circleArrowUp",s=t?"text-yellow":Bse.includes(e.type)?"text-success":"text-error";return o.jsxs("div",{className:ie("flex min-w-0 items-center justify-start gap-1.5 text-xs font-medium sm:gap-2",t?"text-yellow":""),children:[o.jsx(ao,{icon:n,className:ie("size-4 shrink-0",s)}),o.jsx("span",{className:"min-w-0 truncate",children:Vse(e)})]})},Zse=()=>{const[e,t,n,s,r,a,i]=Me([aj,ay,oy,oj,XF,iy,lj]);y.useEffect(()=>(s6(),()=>Ea()),[]);const l=n<t;return o.jsxs("div",{className:"flex flex-col gap-y-2 font-jost","data-testid":"settings-transactions-tab",children:[o.jsx("div",{className:"w-full overflow-x-auto",children:o.jsxs("table",{className:"w-full table-fixed overflow-hidden rounded-xl bg-table-background-body text-sm",children:[o.jsx("thead",{className:"bg-table-background-header text-table-text-header",children:o.jsxs("tr",{className:"border-b border-highlight",children:[o.jsx("th",{className:ie(Q0,"w-[35%] text-left sm:w-1/4"),children:w("modals.user.transactions.action")}),o.jsx("th",{className:ie(Q0,"w-[35%] text-center sm:w-1/4"),children:w("modals.user.transactions.amount")}),o.jsx("th",{className:ie(Q0,"text-center"),children:w("modals.user.transactions.status")}),o.jsx("th",{className:ie(Q0,"w-0 px-0 text-center sm:w-1/5 sm:px-3"),children:o.jsx("span",{className:"hidden sm:inline",children:w("modals.user.transactions.date")})})]})}),o.jsx("tbody",{className:"relative table-fixed",children:e.map((c,d)=>{const f=OF(c),u=IF(c,r),m=f||u,p=d%2===0?"bg-gunmetal":"bg-[#13161E]";return o.jsxs(y.Fragment,{children:[o.jsxs("tr",{"data-testid":"transaction-row",className:ie(m?"":"border-b border-highlight last:border-0",p),children:[o.jsx("td",{className:e2,children:o.jsx(Wse,{transaction:c})}),o.jsx("td",{className:e2,children:o.jsxs("div",{className:"flex min-w-0 items-center justify-start gap-1.5 text-xs font-medium sm:gap-2",children:[o.jsx(Zi,{currency:c.currency,className:"size-4 shrink-0"}),o.jsx("span",{className:"min-w-0 truncate",children:uo(c.amount,c.currency)})]})}),o.jsx("td",{className:ie(e2,"text-center text-xs font-medium",Hse[c.status]),children:w(`modals.user.transactions.states.${c.status}`)}),o.jsx("td",{className:ie(e2,"px-0 text-center text-xs font-medium text-brandblue-100 sm:px-3"),children:o.jsx("span",{className:"hidden sm:inline",children:PF(c.createdAt)})})]}),m?o.jsx("tr",{"data-testid":"transaction-detail-row",className:ie("border-b border-highlight last:border-0",p),children:o.jsx("td",{colSpan:Use,className:"px-2 pb-2 sm:px-3",children:o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f?o.jsx(jse,{transaction:c}):null,u&&c.id!==null?o.jsx("button",{type:"button","data-testid":"cancel-withdrawal",disabled:a.includes(c.id),className:"ml-auto inline-flex h-8 shrink-0 items-center rounded-md bg-secondary px-2 py-1 text-xs text-white hover:bg-primary-active disabled:pointer-events-none disabled:opacity-50",onClick:()=>Ux(c),children:w("modals.user.transactions.cancel")}):null]})})}):null]},`${c.type}-${c.id??"n"}-${c.createdAt}-${d}`)})})]})}),i?o.jsx("p",{className:"text-center text-xs font-medium text-error","data-testid":"cancel-withdrawal-error",children:w("errors.generic")}
407):null,s?o.jsx(FL,{className:"py-5"}):null,l&&!s?o.jsx("div",{className:"flex w-full items-center justify-center",children:o.jsx("button",{type:"button","data-testid":"transactions-load-more",className:"inline-flex h-8 items-center gap-1 rounded-md bg-secondary px-2 text-xs font-medium text-white hover:bg-primary-active",onClick:()=>s6(),children:w("table.load_more")})}):null]})},Gse=({needsVerification:e,isLevelTwoVerified:t})=>({isVerified:t||!e,canStart:e&&!t}),zse=({isLevelTwoVerified:e,canStartLevelTwo:t})=>({isVerified:e,canStart:t}),qse=({html:e,as:t="div",className:n,testId:s})=>o.jsx(t,{className:n,"data-testid":s,dangerouslySetInnerHTML:{__html:e}}),Yse=JSON.parse(`[{"country":"Afghanistan","code":"93","iso":"AF","name":"Afghanistan"},{"country":"Albania","code":"355","iso":"AL","name":"Shqipëria"},{"country":"Algeria","code":"213","iso":"DZ","name":"الجزائر"},{"country":"American Samoa","code":"1-684","iso":"AS","name":""},{"country":"Andorra","code":"376","iso":"AD","name":"Andorra"},{"country":"Angola","code":"244","iso":"AO","name":"Angola"},{"country":"Anguilla","code":"1-264","iso":"AI","name":""},{"country":"Antarctica","code":"672","iso":"AQ","name":""},{"country":"Antigua and Barbuda","code":"1-268","iso":"AG","name":"Antigua and Barbuda"},{"country":"Argentina","code":"54","iso":"AR","name":"Argentina"},{"country":"Armenia","code":"374","iso":"AM","name":"Հայաստան"},{"country":"Aruba","code":"297","iso":"AW","name":""},{"country":"Australia","code":"61","iso":"AU","name":"Australia"},{"country":"Austria","code":"43","iso":"AT","name":"Österreich"},{"country":"Azerbaijan","code":"994","iso":"AZ","name":"Azərbaycan"},{"country":"Bahamas","code":"1-242","iso":"BS","name":"The Bahamas"},{"country":"Bahrain","code":"973","iso":"BH","name":"البحرين"},{"country":"Bangladesh","code":"880","iso":"BD","name":"বাংলাদেশ"},{"country":"Barbados","code":"1-246","iso":"BB","name":"Barbados"},{"country":"Belarus","code":"375","iso":"BY","name":"Беларусь"},{"country":"Belgium","code":"32","iso":"BE","name":"België"},{"country":"Belize","code":"501","iso":"BZ","name":"Belize"},{"country":"Benin","code":"229","iso":"BJ","name":"Bénin"},{"country":"Bermuda","code":"1-441","iso":"BM","name":""},{"country":"Bhutan","code":"975","iso":"BT","name":"འབྲུག་ཡུལ"},{"country":"Bolivia","code":"591","iso":"BO","name":"Bolivia"},{"country":"Bosnia and Herzegovina","code":"387","iso":"BA","name":"Bosna i Hercegovina"},{"country":"Botswana","code":"267","iso":"BW","name":"Botswana"},{"country":"Brazil","code":"55","iso":"BR","name":"Brasil"},{"country":"British Indian Ocean Territory","code":"246","iso":"IO","name":""},{"country":"British Virgin Islands","code":"1-284","iso":"VG","name":""},{"country":"Brunei","code":"673","iso":"BN","name":"Negara Brunei Darussalam"},{"country":"Bulgaria","code":"359","iso":"BG","name":"България"},{"country":"Burkina Faso","code":"226","iso":"BF","name":"Burkina Faso"},{"country":"Burundi","code":"257","iso":"BI","name":"Burundi"},{"country":"Cambodia","code":"855","iso":"KH","name":"Cambodia"},{"country":"Cameroon","code":"237","iso":"CM","name":"Cameroun"},{"country":"Canada","code":"1","iso":"CA","name":"Canada"},{"country":"Cape Verde","code":"238","iso":"CV","name":"Cabo Verde"},{"country":"Cayman Islands","code":"1-345","iso":"KY","name":""},{"country":"Central African Republic","code":"236","iso":"CF","name":"République centrafricaine"},{"country":"Chad","code":"235","iso":"TD","name":"Tchad"},{"country":"Chile","code":"56","iso":"CL","name":"Chile"},{"country":"China","code":"86","iso":"CN","name":"中国"},{"country":"Christmas Island","code":"61","iso":"CX","name":""},{"country":"Cocos Islands","code":"61","iso":"CC","name":""},{"country":"Colombia","code":"57","iso":"CO","name":"Colombia"},{"country":"Comoros","code":"269","iso":"KM","name":"Comores"},{"country":"Cook Islands","code":"682","iso":"CK","name":""},{"country":"Costa Rica","code":"506","iso":"CR","name":"Costa Rica"},{"country":"Croatia","code":"385","iso":"HR","name":"Hrvatska"},{"country":"Cuba","code":"53","iso":"CU","name":"Cuba"},{"country":"Curacao","code":"599","iso":"CW","name":""},{"country":"Cyprus","code":"357","iso":"CY","name":"Κύπρος"},{"country":"Czech Republic","code":"420","iso":"CZ","name":"Česká republika"},{"country":"Democratic Republic of the Congo","code":"243","iso":"CD","name":"République démocratique du Congo"},{"country":"Denmark","code":"45","iso":"DK","name":"Danmark"},{"country":"Djibouti","code":"253","iso":"DJ","name":"Djibouti"},{"country":"Dominica","code":"1-767","iso":"DM","name":"Commonwealth of Dominica"},{"country":"Dominican Republic","code":"1-809, 1-829, 1-849","iso":"DO","name":"República Dominicana"},{"country":"East Timor","code":"670","iso":"TL","name":"Timor-Leste"},{"country":"Ecuador","code":"593","iso":"EC","name":"Ecuador"},{"country":"Egypt","code":"20","iso":"EG","name":"مصر"},{"country":"El Salvador","code":"503","iso":"SV","name":"El Salvador"},{"country":"Equatorial Guinea","code":"240","iso":"GQ","name":"Guinea Ecuatorial"},{"country":"Eritrea","code":"291","iso":"ER","name":"ኤርትራ"},{"country":"Estonia","code":"372","iso":"EE","name":"Eesti"},{"country":"Ethiopia","code":"251","iso":"ET","name":"ኢትዮጵያ"},{"country":"Falkland Islands","code":"500","iso":"FK","name":""},{"country":"Faroe Islands","code":"298","iso":"FO","name":""},{"country":"Fiji","code":"679","iso":"FJ","name":"Fiji"},{"country":"Finland","code":"358","iso":"FI","name":"Suomi"},{"country":"France","code":"33","iso":"FR","name":"France"},{"country":"French Polynesia","code":"689","iso":"PF","name":""},{"country":"Gabon","code":"241","iso":"GA","name":"Gabon"},{"country":"Gambia","code":"220","iso":"GM","name":"The Gambia"},{"country":"Georgia","code":"995","iso":"GE","name":"საქართველო"},{"country":"Germany","code":"49","iso":"DE","name":"Deutschland"},{"country":"Ghana","code":"233","iso":"GH","name":"Ghana"},{"country":"Gibraltar","code":"350","iso":"GI","name":""},{"country":"Greece","code":"30","iso":"GR","name":"Ελλάδα"},{"country":"Greenland","code":"299","iso":"GL","name":""},{"country":"Grenada","code":"1-473","iso":"GD","name":"Grenada"},{"country":"Guam","code":"1-671","iso":"GU","name":""},{"country":"Guatemala","code":"502","iso":"GT","name":"Guatemala"},{"country":"Guernsey","code":"44-1481","iso":"GG","name":""},{"country":"Guinea","code":"224","iso":"GN","name":"Guinée"},{"country":"Guinea-Bissau","code":"245","iso":"GW","name":"Guiné-Bissau"},{"country":"Guyana","code":"592","iso":"GY","name":"Guyana"},{"country":"Haiti","code":"509","iso":"HT","name":"Haïti"},{"country":"Honduras","code":"504","iso":"HN","name":"Honduras"},{"country":"Hong Kong","code":"852","iso":"HK","name":""},{"country":"Hungary","code":"36","iso":"HU","name":"Magyarország"}
407,{"country":"Iceland","code":"354","iso":"IS","name":"Ísland"},{"country":"India","code":"91","iso":"IN","name":"India"},{"country":"Indonesia","code":"62","iso":"ID","name":"Indonesia"},{"country":"Iran","code":"98","iso":"IR","name":"ایران"},{"country":"Iraq","code":"964","iso":"IQ","name":"العراق"},{"country":"Ireland","code":"353","iso":"IE","name":"Éire"},{"country":"Isle of Man","code":"44-1624","iso":"IM","name":""},{"country":"Israel","code":"972","iso":"IL","name":"ישראל"},{"country":"Italy","code":"39","iso":"IT","name":"Italia"},{"country":"Ivory Coast","code":"225","iso":"CI","name":"Côte d'Ivoire"},{"country":"Jamaica","code":"1-876","iso":"JM","name":"Jamaica"},{"country":"Japan","code":"81","iso":"JP","name":"日本"},{"country":"Jersey","code":"44-1534","iso":"JE","name":""},{"country":"Jordan","code":"962","iso":"JO","name":"الأردن"},{"country":"Kazakhstan","code":"7","iso":"KZ","name":"Қазақстан"},{"country":"Kenya","code":"254","iso":"KE","name":"Kenya"},{"country":"Kiribati","code":"686","iso":"KI","name":"Kiribati"},{"country":"Kosovo","code":"383","iso":"XK","name":"Kosova"},{"country":"Kuwait","code":"965","iso":"KW","name":"الكويت"},{"country":"Kyrgyzstan","code":"996","iso":"KG","name":"Кыргызстан"},{"country":"Laos","code":"856","iso":"LA","name":"ລາວ"},{"country":"Latvia","code":"371","iso":"LV","name":"Latvija"},{"country":"Lebanon","code":"961","iso":"LB","name":"لبنان"},{"country":"Lesotho","code":"266","iso":"LS","name":"Lesotho"},{"country":"Liberia","code":"231","iso":"LR","name":"Liberia"},{"country":"Libya","code":"218","iso":"LY","name":"ليبيا"},{"country":"Liechtenstein","code":"423","iso":"LI","name":"Liechtenstein"},{"country":"Lithuania","code":"370","iso":"LT","name":"Lietuva"},{"country":"Luxembourg","code":"352","iso":"LU","name":"Luxembourg"},{"country":"Macao","code":"853","iso":"MO","name":""},{"country":"Macedonia","code":"389","iso":"MK","name":"Македонија"},{"country":"Madagascar","code":"261","iso":"MG","name":"Madagascar"},{"country":"Malawi","code":"265","iso":"MW","name":"Malawi"},{"country":"Malaysia","code":"60","iso":"MY","name":"Malaysia"},{"country":"Maldives","code":"960","iso":"MV","name":"ދިވެހިރާއްޖެ"},{"country":"Mali","code":"223","iso":"ML","name":"Mali"},{"country":"Malta","code":"356","iso":"MT","name":"Malta"},{"country":"Marshall Islands","code":"692","iso":"MH","name":"Majel"},{"country":"Mauritania","code":"222","iso":"MR","name":"Mauritania"},{"country":"Mauritius","code":"230","iso":"MU","name":"Mauritius"},{"country":"Mayotte","code":"262","iso":"YT","name":""},{"country":"Mexico","code":"52","iso":"MX","name":"México"},{"country":"Micronesia","code":"691","iso":"FM","name":"Micronesia"},{"country":"Moldova","code":"373","iso":"MD","name":"Moldova"},{"country":"Monaco","code":"377","iso":"MC","name":"Monaco"},{"country":"Mongolia","code":"976","iso":"MN","name":"Mongolia"},{"country":"Montenegro","code":"382","iso":"ME","name":"Crna Gora"},{"country":"Montserrat","code":"1-664","iso":"MS","name":""},{"country":"Morocco","code":"212","iso":"MA","name":"Morocco"},{"country":"Mozambique","code":"258","iso":"MZ","name":"Mozambique"},{"country":"Myanmar","code":"95","iso":"MM","name":"မြန်မာ"},{"country":"Namibia","code":"264","iso":"NA","name":"Namibia"},{"country":"Nauru","code":"674","iso":"NR","name":"Naoero"},{"country":"Nepal","code":"977","iso":"NP","name":"नेपाल"},{"country":"Netherlands","code":"31","iso":"NL","name":"Nederland"},{"country":"Netherlands Antilles","code":"599","iso":"AN","name":""},{"country":"New Caledonia","code":"687","iso":"NC","name":""},{"country":"New Zealand","code":"64","iso":"NZ","name":"Aotearoa New Zealand"},{"country":"Nicaragua","code":"505","iso":"NI","name":"Nicaragua"},{"country":"Niger","code":"227","iso":"NE","name":"Niger"},{"country":"Nigeria","code":"234","iso":"NG","name":"Nigeria"},{"country":"Niue","code":"683","iso":"NU","name":""},{"country":"North Korea","code":"850","iso":"KP","name":"조선민주주의인민공화국"},{"country":"Northern Mariana Islands","code":"1-670","iso":"MP","name":""},{"country":"Norway","code":"47","iso":"NO","name":"Norge"},{"country":"Oman","code":"968","iso":"OM","name":"سلطنة عمان"},{"country":"Pakistan","code":"92","iso":"PK","name":"پاکستان"},{"country":"Palau","code":"680","iso":"PW","name":"Palau"},{"country":"Palestine","code":"970","iso":"PS","name":""},{"country":"Panama","code":"507","iso":"PA","name":"Panamá"},{"country":"Papua New Guinea","code":"675","iso":"PG","name":"Papua New Guinea"},{"country":"Paraguay","code":"595","iso":"PY","name":"Paraguay"},{"country":"Peru","code":"51","iso":"PE","name":"Perú"},{"country":"Philippines","code":"63","iso":"PH","name":"Pilipinas"},{"country":"Pitcairn","code":"64","iso":"PN","name":""}
407,{"country":"Poland","code":"48","iso":"PL","name":"Polska"},{"country":"Portugal","code":"351","iso":"PT","name":"Portugal"},{"country":"Puerto Rico","code":"1-787, 1-939","iso":"PR","name":""},{"country":"Qatar","code":"974","iso":"QA","name":"قطر"},{"country":"Republic of the Congo","code":"242","iso":"CG","name":"Congo"},{"country":"Reunion","code":"262","iso":"RE","name":""},{"country":"Romania","code":"40","iso":"RO","name":"România"},{"country":"Russia","code":"7","iso":"RU","name":"Российская Федерация"},{"country":"Rwanda","code":"250","iso":"RW","name":"Rwanda"},{"country":"Saint Barthelemy","code":"590","iso":"BL","name":""},{"country":"Saint Helena","code":"290","iso":"SH","name":""},{"country":"Saint Kitts and Nevis","code":"1-869","iso":"KN","name":"Saint Kitts and Nevis"},{"country":"Saint Lucia","code":"1-758","iso":"LC","name":"Saint Lucia"},{"country":"Saint Martin","code":"590","iso":"MF","name":""},{"country":"Saint Pierre and Miquelon","code":"508","iso":"PM","name":""},{"country":"Saint Vincent and the Grenadines","code":"1-784","iso":"VC","name":"Saint Vincent and the Grenadines"},{"country":"Samoa","code":"685","iso":"WS","name":"Samoa"},{"country":"San Marino","code":"378","iso":"SM","name":"San Marino"},{"country":"Sao Tome and Principe","code":"239","iso":"ST","name":"São Tomé e Príncipe"},{"country":"Saudi Arabia","code":"966","iso":"SA","name":"المملكة العربية السعودية"},{"country":"Senegal","code":"221","iso":"SN","name":"Sénégal"},{"country":"Serbia","code":"381","iso":"RS","name":"Srbija"},{"country":"Seychelles","code":"248","iso":"SC","name":"Seychelles"},{"country":"Sierra Leone","code":"232","iso":"SL","name":"Sierra Leone"},{"country":"Singapore","code":"65","iso":"SG","name":"Singapore"},{"country":"Sint Maarten","code":"1-721","iso":"SX","name":""},{"country":"Slovakia","code":"421","iso":"SK","name":"Slovenská republika"},{"country":"Slovenia","code":"386","iso":"SI","name":"Slovenija"},{"country":"Solomon Islands","code":"677","iso":"SB","name":"Solomon Islands"},{"country":"Somalia","code":"252","iso":"SO","name":"Soomaaliya"},{"country":"South Africa","code":"27","iso":"ZA","name":"Zuid-Afrika"},{"country":"South Korea","code":"82","iso":"KR","name":"대한민국"},{"country":"South Sudan","code":"211","iso":"SS","name":"South Sudan"},{"country":"Spain","code":"34","iso":"ES","name":"Spain"},{"country":"Sri Lanka","code":"94","iso":"LK","name":"Sri Lanka"},{"country":"Sudan","code":"249","iso":"SD","name":"Sudan"},{"country":"Suriname","code":"597","iso":"SR","name":"Suriname"},{"country":"Svalbard and Jan Mayen","code":"47","iso":"SJ","name":""},{"country":"Swaziland","code":"268","iso":"SZ","name":"Swaziland"},{"country":"Sweden","code":"46","iso":"SE","name":"Sweden"},{"country":"Switzerland","code":"41","iso":"CH","name":"Switzerland"},{"country":"Syria","code":"963","iso":"SY","name":"Syria"},{"country":"Taiwan","code":"886","iso":"TW","name":"Taiwan"},{"country":"Tajikistan","code":"992","iso":"TJ","name":"Tajikistan"}
407,{"country":"Tanzania","code":"255","iso":"TZ","name":"Tanzania"},{"country":"Thailand","code":"66","iso":"TH","name":"Thailand"},{"country":"Togo","code":"228","iso":"TG","name":"Togo"},{"country":"Tokelau","code":"690","iso":"TK","name":""},{"country":"Tonga","code":"676","iso":"TO","name":"Tonga"},{"country":"Trinidad and Tobago","code":"1-868","iso":"TT","name":"Trinidad & Tobago"},{"country":"Tunisia","code":"216","iso":"TN","name":"Tunisia"},{"country":"Turkey","code":"90","iso":"TR","name":"Turkey"},{"country":"Turkmenistan","code":"993","iso":"TM","name":"Turkmenistan"},{"country":"Turks and Caicos Islands","code":"1-649","iso":"TC","name":""},{"country":"Tuvalu","code":"688","iso":"TV","name":"Tuvalu"},{"country":"U.S. Virgin Islands","code":"1-340","iso":"VI","name":""},{"country":"Uganda","code":"256","iso":"UG","name":"Uganda"},{"country":"Ukraine","code":"380","iso":"UA","name":"Ukraine"},{"country":"United Arab Emirates","code":"971","iso":"AE","name":"United Arab Emirates"},{"country":"United Kingdom","code":"44","iso":"GB","name":"United Kingdom"},{"country":"United States","code":"1","iso":"US","name":"United States"},{"country":"Uruguay","code":"598","iso":"UY","name":"Uruguay"},{"country":"Uzbekistan","code":"998","iso":"UZ","name":"Uzbekistan"},{"country":"Vanuatu","code":"678","iso":"VU","name":"Vanuatu"},{"country":"Vatican","code":"379","iso":"VA","name":"Vatican City"},{"country":"Venezuela","code":"58","iso":"VE","name":"Venezuela"},{"country":"Vietnam","code":"84","iso":"VN","name":"Vietnam"},{"country":"Wallis and Futuna","code":"681","iso":"WF","name":""},{"country":"Western Sahara","code":"212","iso":"EH","name":""},{"country":"Yemen","code":"967","iso":"YE","name":"Yemen"},{"country":"Zambia","code":"260","iso":"ZM","name":"Zambia"},{"country":"Zimbabwe","code":"263","iso":"ZW","name":"Zimbabwe"}]`),Kse={nameFirst:"",nameLast:"",email:"",postalAddress:"",postalCode:"",birthDate:"",country:"",termsAccepted:!0},Xse=()=>{const e=w("termsAccepted.agreed"),t=/<a href='\/terms-and-conditions'>(.*?)<\/a>/.exec(e);if(!t)return o.jsx(o.Fragment,{children:e});const[n,s]=t,[r,a]=e.split(n);return o.jsxs(o.Fragment,{children:[r,o.jsx("a",{href:"/terms-and-conditions",className:"text-brandblue-300 hover:underline",children:s}),a]})},Jse=()=>{const{closeModal:e}=Os(),[t,n,s,r]=Me([ut,a_,o_,n8.pending]),a=(t==null?void 0:t.verifiedEmail)??"",i=(t==null?void 0:t.keepInTouchEmail)??"",[l,c]=y.useState(Kse),d=y.useRef(!1);y.useEffect(()=>{const C=a||i;!C||d.current||c(b=>b.email===C?b:{...b,email:C})},[a,i]);const f=y.useMemo(()=>Yse.map(C=>({value:C.iso,title:w(`country.${C.iso}`)})),[]),u=(C,b)=>{C==="email"&&(d.current=!0),c(v=>({...v,[C]:b}))},m=async()=>{try{await n8(l)||e()}catch{e()}},p=C=>n[C];return o.jsxs("div",{className:"grid grid-cols-1 gap-5","data-testid":"verification-modal",children:[o.jsx("div",{className:"mb-3 text-left text-[14px] font-medium text-brandblue-100",children:w("modals.verification.description")}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"name-first",className:"text-brandblue-100",children:w("global_firstname")}),o.jsx(dn,{id:"name-first",name:"name-first","data-testid":"kyc-name-first",placeholder:w("global_firstname"),value:l.nameFirst,onChange:C=>u("nameFirst",C.target.value)}),p("nameFirst")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-name-first-error",children:p("nameFirst")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"name-last",className:"text-brandblue-100",children:w("global_lastname")}),o.jsx(dn,{id:"name-last",name:"name-last","data-testid":"kyc-name-last",placeholder:w("global_lastname"),value:l.nameLast,onChange:C=>u("nameLast",C.target.value)}),p("nameLast")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-name-last-error",children:p("nameLast")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"email",className:"text-brandblue-100",children:w("global_typeYourEmailHere")}),a?o.jsx("div",{className:"flex w-full items-center gap-0.5 rounded-lg text-sm font-medium",children:o.jsxs("div",{className:"flex min-w-0 flex-1 items-center rounded-lg bg-tribe-live p-2.5",children:[o.jsx("span",{className:"flex-1 truncate","data-testid":"kyc-email-verified",children:a}),o.jsx(A9,{className:"ml-2"})]})}):o.jsx(dn,{id:"email",name:"email","data-testid":"kyc-email",placeholder:w("global_typeYourEmailHere"),value:l.email,onChange:C=>u("email",C.target.value)}),p("email")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-email-error",children:p("email")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"address",className:"text-brandblue-100",children:w("global_postaladdress")}),o.jsx(dn,{id:"address",name:"address","data-testid":"kyc-address",placeholder:w("global_postaladdress"),value:l.postalAddress,onChange:C=>u("postalAddress",C.target.value)}),p("postalAddress")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-address-error",children:p("postalAddress")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"zip",className:"text-brandblue-100",children:w("global_postalcode")}),o.jsx(dn,{id:"zip",name:"zip","data-testid":"kyc-postal-code",placeholder:w("global_postalcode"),value:l.postalCode,onChange:C=>u("postalCode",C.target.value)}),p("postalCode")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-postal-code-error",children:p("postalCode")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"birth-date",className:"text-brandblue-100",children:w("global_dob")}),o.jsx(dn,{id:"birth-date",name:"birth-date","data-testid":"kyc-birth-date",type:"date",className:"text-white",value:l.birthDate,onChange:C=>u("birthDate",C.target.value)}),p("birthDate")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-birth-date-error",children:p("birthDate")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"select-country",className:"text-brandblue-100",children:w("global_selectCountry")}),o.jsx(ba,{id:"select-country",value:l.country,options:f,onChange:C=>u("country",C)}),p("country")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-country-error",children:p("country")}):null]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"terms-accepted",className:"text-brandblue-100",children:w("footer_termsAndConditions")}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("input",{type:"checkbox",id:"terms-accepted","data-testid":"kyc-terms",className:"size-3 rounded border-gray-300 text-brandblue-300 focus:ring-brandblue-300",checked:l.termsAccepted,onChange:C=>u("termsAccepted",C.target.checked)}),o.jsx("label",{htmlFor:"terms-accepted",className:"text-sm text-gray-600",children:o.jsx(Xse,{})})]}),p("termsAccepted")?o.jsx("div",{className:"text-sm text-error","data-testid":"kyc-terms-error",children:p("termsAccepted")}):null]}),o.jsx("div",{children:o.jsx(wn,{variant:"primary",disabled:r,"data-testid":"kyc-submit",className:"w-full",onClick:()=>void m(),children:w("termsPopup_accept")})}),s?o.jsx("div",{className:"mt-2 text-sm text-error","data-testid":"kyc-form-error",children:s}):null]})},Qse="verification",ere=Ws()===vr.WEB||Ws()===vr.TELEGRAM,mue=H1({component:Jse,title:()=>w("global_welcome"),persistent:ere,preventClose:()=>!R9(G1({isSessionResolved:Po.getState(),isAuthenticated:$t.getState(),isProfileLoaded:yl.getState(),isRestricted:i_(ut.getState())}))}
407),tre=({skipToKYC:e=!1})=>{const[t,n,s]=Me([JF,fj,mj]),{openModal:r,closeModal:a}=Os();y.useEffect(()=>(e&&r6(),()=>s7()),[e]);const i=[{level:1,icon:o.jsx(One,{}),description:w("modals.settings.verification1"),reviewTime:w("modals.settings.minutes"),...Gse({needsVerification:t.needsVerification,isLevelTwoVerified:t.isLevelTwoVerified}),testId:"verification-level-1",onClick:()=>{a(),r(Qse,{})}},{level:2,icon:o.jsx(Pne,{}),description:w("modals.settings.verification2"),reviewTime:w("modals.settings.days"),...zse({isLevelTwoVerified:t.isLevelTwoVerified,canStartLevelTwo:!t.isLevelTwoVerified}),testId:"verification-level-2",onClick:()=>r6()}];return n?o.jsxs("div",{className:"flex flex-col gap-4","data-testid":"verification-kyc-frame",children:[o.jsx("iframe",{src:n,title:w("global_verifyNow"),allow:"camera;microphone",className:"h-[700px] w-full rounded-lg md:h-[750px]"}),o.jsx("button",{type:"button","data-testid":"verification-go-back",className:"h-10 w-full rounded-md bg-secondary text-sm font-semibold text-white",onClick:()=>zd(),children:w("global_go_back")})]}):o.jsxs("div",{className:"flex flex-wrap items-stretch justify-between gap-4 md:flex-nowrap","data-testid":"settings-verification-tab",children:[i.map(l=>o.jsxs("div",{"data-testid":l.testId,className:"flex w-full grow flex-col items-center gap-y-2 rounded-lg bg-verification-card p-4",children:[o.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-[#637AF410]",children:l.icon}),o.jsxs("div",{className:"text-base font-semibold text-white",children:[w("modals.settings.level")," ",l.level]}),o.jsx(qse,{html:l.description,className:"whitespace-pre-line text-center text-sm font-medium text-brandblue-100 md:min-
407h-[60px]",testId:`${l.testId}-description`}),o.jsx("button",{type:"button","data-testid":`${l.testId}-cta`,disabled:!l.canStart,className:ie("h-10 w-full rounded-md text-sm font-semibold md:min-h-[44px]",l.canStart?"bg-gradient-primary text-button-primary-text":"bg-secondary text-white opacity-50"),onClick:l.onClick,children:l.isVerified?w("modals.settings.verified"):w("modals.settings.verify")}),o.jsx("div",{className:"flex flex-col items-center justify-center gap-3",children:o.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-brandblue-50 md:min-h-[24px]",children:[o.jsx(Mne,{}),w("modals.settings.reviewTime"),": ",o.jsx("span",{className:"text-brandblue-100",children:l.reviewTime})]})})]},l.level)),s?o.jsx("div",{className:"w-full text-center text-sm text-error","data-testid":"verification-error",children:w("verify_email.modal.errors.generic")}):null]})},wg=[{id:"profile",label:w("modals.user.title"),icon:"personCircle"},{id:"transactions",label:w("modals.user.transactions.title"),icon:"clockArrowCounterclockwiseRotate90"},{id:"account",label:w("modals.settings.tab.account"),icon:"account",managesOwnHeader:!0},{id:"security",label:w("modals.settings.tab.security"),icon:"keyHoleLock",managesOwnHeader:!0},{id:"verification",label:w("modals.settings.tab.verification"),icon:"sheet"},{id:"selfExclusion",label:w("modals.responsible_gaming.selfExclusion"),icon:"shieldUser"},{id:"mcp",label:w("modals.settings.mcp.title"),icon:"link"}],nre=({tab:e,skipToKYC:t})=>{const n=Or(),{closeModal:s,openModal:r}=Os(),[a,i,l]=Me([ut,my,G2]),c=xg(e)?e:Cg,d=wg.find(m=>m.id===c);y.useEffect(()=>{jx()},[]);const f=m=>{const p=new URLSearchParams(window.location.search);p.set("tab",m),n(`${wr()}?${p.toString()}`,{replace:!0})};y.useEffect(()=>{xg(e)||f(Cg)},[e]);const u=c==="account"&&i!=="BASE"||c==="security"&&l!=="ENABLED"&&l!=="DISABLED";return o.jsxs("div",{className:"flex flex-col gap-y-3 md:flex-row md:gap-y-9","data-testid":"settings-modal",children:[o.jsx("div",{className:ie("w-full shrink-0 border-r border-[#323A4C] md:w-60",u?"hidden md:flex":""),children:o.jsxs("div",{className:"flex flex-col gap-1 p-5 text-[14px] font-medium text-brandblue-100",children:[o.jsxs("div",{className:"flex items-center gap-2 p-2 pb-5 text-lg text-label-communication-default",children:[o.jsx(Ot,{icon:"settings",className:"size-6"}),o.jsx("span",{children:w("modals.user.title")}),o.jsx("div",{className:"ml-auto md:hidden",children:o.jsx("button",{type:"button","aria-label":"Close Modal","data-testid":"settings-close-mobile",className:"flex size-8 items-center justify-center rounded-full bg-secondary text-brandblue-100 hover:bg-secondary-active hover:text-white",onClick:()=>s(),children:o.jsx(a1,{})})})]}),o.jsx("div",{className:"no-scrollbar flex flex-row items-start gap-1 overflow-x-auto md:flex-col",children:wg.map(m=>{const p=m.id==="account"&&!(a!=null&&a.verifiedEmail);return o.jsxs("button",{type:"button","data-testid":`settings-tab-${m.id}`,"aria-current":m.id===c,className:ie("flex cursor-pointer items-center justify-start whitespace-nowrap p-2 text-left hover:text-white md:h-10",p?"gap-0.5":"gap-2",m.id===c?"border-b-2 border-[#637AF4] text-white md:rounded-lg md:border-b-0 md:bg-secondary":""),onClick:()=>f(m.id),children:[o.jsx(Ot,{icon:m.icon,className:"text-current"}),p?o.jsx("span",{className:"relative right-2 top-2 size-1 rounded-full bg-error ring-2 ring-transparent","aria-label":"Highlighted"}):null,m.label]},m.id)})})]})}),o.jsxs("div",{className:"relative flex min-h-[520px] w-full min-w-0 flex-col justify-around md:mx-6",children:[d&&!d.managesOwnHeader?o.jsxs("div",{className:"hidden items-center justify-between gap-2 border-b border-[#323A4C] pb-4 pt-7 text-lg font-semibold md:inline-flex",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Ot,{icon:d.icon,className:"size-6 text-[#ADAFCE]"}),d.label]}),o.jsxs("div",{className:"flex items-center gap-2",children:[c==="transactions"?o.jsx("button",{type:"button","data-testid":"settings-deposit",className:"h-8 rounded-md bg-gradient-primary px-3 text-sm font-semibold text-button-primary-text",onClick:()=>r(ZL,{tab:"deposit",openReason:"profile"}),children:w("modals.wallet.tab.deposit")}
407):null,o.jsx("button",{type:"button","aria-label":"Close Modal","data-testid":"settings-close",className:"flex size-8 items-center justify-center rounded-full bg-secondary text-brandblue-100 hover:bg-secondary-active hover:text-white",onClick:()=>s(),children:o.jsx(a1,{})})]})]}):null,o.jsxs("div",{className:"flex h-full flex-col px-4 md:my-4 md:p-0",children:[c==="profile"?o.jsx(bse,{}):null,c==="transactions"?o.jsx(Zse,{}):null,c==="account"?o.jsx(ise,{}):null,c==="security"?o.jsx(Mse,{}):null,c==="verification"?o.jsx(tre,{skipToKYC:t==="true"}):null,c==="selfExclusion"?o.jsx(Pse,{}):null,c==="mcp"?o.jsx(use,{}):null]})]})]})},sre="user",hue="settings",rre=["profile","transactions","account","security","verification","selfExclusion","mcp"],Cg="profile",xg=e=>!!e&&rre.includes(e),UL=H1({component:nre,title:()=>w("global_settings"),removeSearchParams:["tab","skipToKYC"],hideTitle:!0,big:!0}),pue=UL,gue=UL,are=5e4,ore=[25,50,100],ire=1e4,lre=({currency:e})=>{var Pr;const{openModal:t}=Os(),[n,s,r,a,i,l,c,d,f,u]=Me([dw,l4,l_,Ai,ut,s8,c_,d_,u_,r8]),[m,p]=y.useState(fe.USDT),[C,b]=y.useState(void 0),[v,E]=y.useState(0),[x,g]=y.useState("0"),[A,k]=y.useState(void 0),[R,O]=y.useState(""),[U,V]=y.useState(!1),[z,G]=y.useState(null),W=y.useRef(!1),I=y.useRef(!1),H=y.useRef(!1);y.useEffect(()=>(S3(),f_(),()=>a8()),[]),y.useEffect(()=>{if(!c&&!d)return;const te=window.setTimeout(()=>a8(),ire);return()=>window.clearTimeout(te)},[c,d]);const j=y.useMemo(()=>uw([...new Set(n.map(te=>te.currency))],"withdraw"),[n]),N=(te,Qe)=>bd(n,te).includes(Qe)?Qe:void 0,q=te=>{n.some(Qe=>Qe.currency===te)&&(Te("Set currency",{currency:te}),p(te),k(void 0),E(0),g("0"),V(!1),O(""),b(qee(n,te)),te!==s.currency&&Jg(te))};y.useEffect(()=>{W.current||!n.length||(W.current=!0,Te("Set default currency"),q(e??s.currency))},[n]),y.useEffect(()=>{if(I.current||!W.current||u!=="done"||r8.getState()!=="done"||(I.current=!0,H.current))return;const te=Yee({lastWithdrawal:f,wallets:n,currencies:j,preSelectedCurrency:e});te&&(q(te.currency),b(te.network),O(te.address))},[n,f,u]);const ee=()=>{H.current=!0},ae=y.useMemo(()=>tte(m,a),[m,a]),Se=y.useMemo(()=>{const te=L3(m,a);return te>0?o8(are/te,4):1/0},[m,a]),ce=o8((((Pr=r[m])==null?void 0:Pr.withdrawableAmount)??0)/F2,4),be=Math.min(ce,Se),se=te=>{const{amount:Qe,atMax:Na}=m_(te,be);return Te("Set withdrawal amount",{amount:Qe}),E(Qe),g(String(Qe)),k(Na?100:void 0),Qe},Y=te=>{const Qe=h_({withdrawableAmount:ce,maxAmount:be,percents:te});Te("Set withdrawal percents",{percents:te}),Te("Set withdrawal amount",{amount:Qe}),k(te),E(Qe),g(String(Qe))},{address:ge,error:ke}=ote(R,m,C),ot=y.useRef(null),_t=te=>{s8.getState()||(Te("Withdraw funds",{currency:te.currency,amount:te.amount}),ot.current={currency:te.currency,amount:te.amount},p_({currency:te.currency,network:te.network,amount:Number((te.amount*F2).toFixed(0)),address:te.address}))},Be=()=>{const te=se(x);if(!C)return;const Qe={currency:m,network:C,amount:te,address:ge};if(Kee(te,L3(m,a))){G(Qe);return}_t(Qe)},S=()=>{z&&(G(null),_t(z))};y.useEffect(()=>{!d||!ot.current||(Te("Withdraw funds failed",{currency:ot.current.currency,amount:ot.current.amount,message:d}),ot.current=null)},[d]),y.useEffect(()=>{c&&(E(0),g("0"),k(void 0))},[c]);const L=ke==="format"&&U&&C?w("errors.INVALID_WITHDRAWAL_ADDRESS"):"",K=l||!(i!=null&&i.verifiedEmail)||v<ae||!m||!C||!!ke,we=bd(n,m).map(te=>({value:te,title:Ic(te)})),Rt=Qee(d);return o.jsxs("div",{className:"flex flex-col gap-y-4",children:[o.jsxs("div",{className:"flex flex-row gap-4",children:[o.jsxs("div",{className:"z-main flex-1",children:[o.jsx(nt,{htmlFor:"select-currency",className:"text-brandblue-100",children:w("modals.wallet.deposit.currency")}),o.jsx(ba,{id:"select-currency",value:m,withCurrencyIcon:!0,options:j.map(te=>({value:te,title:Ic(te)})),onChange:te=>{ee(),q(te)}})]}),m!==fe.BRL&&we.length?o.jsxs("div",{className:"flex-1",children:[o.jsx(nt,{htmlFor:"select-network",className:"text-brandblue-100",children:w("modals.wallet.deposit.network")}),o.jsx(ba,{id:"select-network",value:C,options:we,empty:w("modals.wallet.withdrawal.select_network"),onChange:te=>{ee(),b(N(m,te))}})]}):null]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsxs("div",{children:[o.jsxs("h4",{className:"flex flex-row items-center gap-2 font-medium",children:[o.jsx(jS,{className:"text-brand-tertiary"}),w("01")]}),o.jsx("p",{className:"text-sm text-brandblue-100",children:w("02")})]}),o.jsxs("div",{children:[o.jsx(nt,{htmlFor:"withdrawal-address",className:"text-brandblue-100",children:w("global_withdrawAddress")}),o.jsx(dn,{id:"withdrawal-address",name:"withdrawal-address","data-testid":"withdrawal-address",placeholder:w("010"),value:R,"aria-invalid":!!L,onChange:te=>{ee(),O(te.target.value),V(!0)}}),L?o.jsx("p",{className:"pt-1 text-sm text-error","data-testid":"withdrawal-address-error",children:L}):null]})]}),o.jsxs("div",{children:[o.jsxs(nt,{htmlFor:"withdrawal-amount",className:"flex flex-row justify-between py-1 text-brandblue-100",children:[o.jsx("span",{children:w("03")}),o.jsxs("span",{children:[w("04"),":"," ",o.jsxs("span",{className:"text-white","data-testid":"withdrawable-amount",children:[ce," ",m," ",o.jsx(Cne,{children:w("modals.wallet.withdrawal.withdrawable_info_tooltip")})]})]})]}),o.jsx(fL,{id:"withdrawal-amount",name:"withdrawal-amount",currency:m,value:x,max:ce,onValueChange:te=>{ee(),g(te)},onCommit:se,trailing:ore.map(te=>o.jsxs("button",{type:"button","data-testid":`withdraw-percent-${te}
407`,className:ie("inline-flex h-8 min-w-8 items-center justify-center rounded-md border-1 border-solid p-2 text-sm font-medium",A===te?"border-brand-tertiary bg-secondary-active text-white":"border-primary bg-primary text-brandblue-100 hover:border-brand-tertiary hover:bg-secondary-active hover:text-white"),onClick:()=>{ee(),Y(te)},children:[te,"%"]},te))}),o.jsx("div",{className:"flex flex-row items-center justify-between",children:o.jsxs(nt,{htmlFor:"withdrawal-amount",className:"flex flex-row items-center gap-1 py-1 text-brandblue-100",children:[o.jsxs("span",{children:[w("05"),":"]}),o.jsx(Zi,{currency:m}),o.jsx("span",{className:"text-white","data-testid":"minimum-withdraw-amount",children:ae})]})})]}),c?o.jsxs("div",{"data-testid":"withdraw-success",className:"flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-highlight px-4 py-2 text-sm text-success",children:[o.jsx(M2,{}),o.jsx("span",{children:w("06")})]}):d?o.jsxs("div",{"data-testid":"withdraw-error",className:"flex min-h-10 flex-row flex-wrap items-start justify-center gap-2 rounded-lg bg-highlight px-4 py-2 text-sm text-error",children:[o.jsx(M2,{className:"mt-1"}),o.jsx("div",{children:Rt===J6?o.jsxs("p",{className:"text-white",children:["Your account has been suspended! ⚠️",o.jsx("br",{}),"Need help? Reach out to our support crew"," ",o.jsx("a",{className:"font-medium text-blue-400 hover:text-blue-500",target:"_blank",rel:"noopener noreferrer",href:window.location.host,children:window.location.host}),"! 🐳"]}):o.jsx("p",{children:Rt})})]}):o.jsxs("button",{type:"button","data-testid":"withdraw-submit",disabled:K,className:"inline-flex h-10 w-full items-center justify-center gap-1 rounded-md bg-gradient-primary px-4 py-2 text-sm font-medium text-button-primary-text transition-colors disabled:pointer-events-none disabled:opacity-50",onClick:Be,children:[o.jsx(M2,{}),w("global_withdraw")]}),i!=null&&i.verifiedEmail?null:o.jsxs("div",{"data-testid":"withdraw-verify-email-banner",className:"flex flex-row items-start justify-center gap-2 rounded-lg bg-highlight px-4 py-2 text-sm text-error",children:[o.jsx(o1,{className:"mt-1 size-5 shrink-0"}),o.jsxs("p",{children:[w("withdrawal_verify_email_description")," ",o.jsx("button",{type:"button","data-testid":"withdraw-verify-email-button",className:"font-semibold underline underline-offset-2 hover:opacity-80",onClick:()=>{Te("Open settings from withdraw email warning"),t(sre,{tab:"account"})},children:w("withdrawal_verify_email_button")})]})]}),o.jsxs("div",{className:"flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-highlight px-4 py-2 text-sm text-warning",children:[o.jsx(o1,{className:"size-5"}),o.jsx("h4",{className:"text-sm font-medium",children:w("modals.wallet.withdrawal.warning.memo_not_supported")})]}),z?o.jsx(Xee,{confirmation:z,onConfirm:S,onClose:()=>G(null)}):null]})},HL=["deposit","withdraw","buy"],VL=["pix-details","pix-qr"],yg="deposit",cre=e=>!!e&&HL.includes(e),WL=e=>!!e&&VL.includes(e),bg=e=>cre(e)||WL(e),dre=[...HL,...VL],ure=(e,t)=>{if(!e)return!1;const n=new Date(e).getTime();return Number.isFinite(n)&&n>t},fre=(e,t,n=Date.now())=>dre.includes(e)&&ure(t,n),mre=({tab:e,selfExclusionUntil:t,isSessionResolved:n,isAuthenticated:s,isProfileLoaded:r,now:a=Date.now()})=>G1({isSessionResolved:n,isAuthenticated:s,isProfileLoaded:r,isRestricted:fre(e,t,a)}),hre=({until:e,fill:t=!1})=>{const n=Me(fw);return o.jsxs("div",{"data-testid":"self-exclusion-view",className:ie("flex w-full flex-col items-center gap-6 rounded-xl bg-primary p-7",t?"":"max-w-screen-sm"),style:{backgroundImage:"radial-gradient(71.17% 56.56% at 50% 0.17%, rgba(220, 119, 119, 0.32) 0%, rgba(26, 30, 39, 0.00) 100%)"},children:[o.jsx("div",{className:"flex size-[88px] items-center justify-center sm:size-16",children:o.jsx(Ot,{icon:"restrictedArea",className:"size-full"})}),o.jsxs("div",{className:"flex flex-col items-center gap-2 px-1",children:[o.jsx("h2",{className:"text-center text-[20px] font-semibold leading-[30px] text-white",children:w("modals.responsible_gaming.selfExclusion")}),o.jsx("p",{className:"text-center text-[14px] font-medium leading-20 text-[#9092B2]",children:w("modals.responsible_gaming.excluded_notice")}),o.jsx("p",{className:"text-center text-[14px] font-medium leading-20 text-[#9092B2]",children:w("modals.responsible_gaming.excluded_until_date",{date:new Date(e).toLocaleStr
407ing(n)})})]}),o.jsx(BL,{until:e,onExpire:()=>n7()}),o.jsxs(S9,{to:_S.RESPONSIBLE_GAMING,className:"text-center text-[14px] font-medium text-[#637AF4] hover:underline",children:[w("modals.responsible_gaming.read_about")," ↗"]})]})},vg=[{id:"deposit",label:o.jsxs(o.Fragment,{children:[o.jsx(FS,{className:"size-4"}),w("modals.wallet.tab.deposit")]}),content:AL},{id:"withdraw",label:o.jsxs(o.Fragment,{children:[o.jsx(M2,{className:"size-4"}),w("modals.wallet.tab.withdraw")]}),content:lre},{id:"buy",label:o.jsx(zX,{}),content:See},{id:"pix-details",label:null,content:Hee},{id:"pix-qr",label:null,content:Wee}],pre=e=>{var p;const t=Or(),n=Me(ut),[s,r,a]=Me([$t,yl,Po]),i=bg(e.tab)?e.tab:yg,l=e.openReason,c=WL(e.tab),d=(C,b)=>{const v=new URLSearchParams(window.location.search);v.set("modal","wallet"),v.set("tab",C),t(`${wr()}?${v.toString()}`,{replace:b})};y.useEffect(()=>{l&&Te("Deposit modal opened",{openReason:l})},[l]),y.useEffect(()=>{bg(e.tab)||d(yg,!0)},[e.tab]);const f=((p=vg.find(C=>C.id===i))==null?void 0:p.content)??AL,u=(n==null?void 0:n.selfExclusionUntil)??null,m=mre({tab:i,selfExclusionUntil:u,isSessionResolved:a,isAuthenticated:s,isProfileLoaded:r});return o.jsxs("div",{className:"min-h-[22.5rem]",children:[c?null:o.jsx("div",{className:"mb-6 flex h-11 w-full items-center justify-items-stretch rounded-lg bg-secondary p-0.5 text-white",children:vg.filter(C=>C.label!==null).map(C=>o.jsx("button",{type:"button",role:"tab","aria-selected":C.id===i,"data-state":C.id===i?"active":"inactive","data-testid":`wallet-tab-${C.id}`,className:ie("inline-flex h-10 w-full flex-row items-center justify-center gap-x-2 whitespace-nowrap rounded-md border border-solid border-secondary px-3 py-1.5 text-sm font-medium transition-all",C.id===i&&"border-brand-tertiary bg-gradient-primary text-button-primary-text shadow-sm"),onClick:()=>d(C.id,!0),children:C.label},C.id))}),m==="restricted"&&u?o.jsx(hre,{until:u,fill:!0}):m==="pending"?null:o.jsx(f,{...e})]})},ZL="wallet",wue=H1({component:pre,removeSearchParams:["tab","currency","network","openReason"],title:()=>w("modals.wallet.title")}),gre=5,wre=({isPaywall:e})=>{const[t,n,s,r,a,i,l,c,d,f]=Me([FD,jD,HD,VD,$D,UD,BD,xo,ut,$t]),{openModal:u,closeModal:m}=Os(),p=e==="true",[C,b]=y.useState(!1),[v,E]=y.useState(!1),[x,g]=y.useState("USDT");y.useEffect(()=>{lx(),cx()},[]);const A=t==null?void 0:t.beastModePrices,k=!!(A&&Object.keys(A).length>0);y.useEffect(()=>{k&&!v&&b(!0)},[k,v]),y.useEffect(()=>{r&&(b(!1),E(!0))},[r]);const R=y.useMemo(()=>C?A??{}:(t==null?void 0:t.prices)??{},[C,A,t]),O=y.useMemo(()=>Object.entries(R).filter(([,j])=>j&&typeof j.amount=="number").map(([j])=>({value:j,title:j})),[R]);y.useEffect(()=>{O.length&&!O.some(j=>j.value===x)&&g(O[0].value)},[O,x]);const U=y.useMemo(()=>OP({battlePass:t,selectedCurrency:x,beastMode:C}),[t,x,C]),V=c.find(j=>j.currency===x),z=yo((V==null?void 0:V.availableAmount)??0,x),G=U.chargedAmount>0&&z<U.chargedAmount,W=(d==null?void 0:d.level)!=null?Number(d==null?void 0:d.level)<gre:!0,I=()=>{if(!f){u(mee,{tab:"login"});return}if(G){u(ZL,{tab:"deposit",openReason:"rewards"});return}dx({currency:x,beastMode:C})},H=!!n||!a&&O.length===0;return o.jsxs("div",{"data-testid":"purchase-battlepass-modal",className:"relative flex flex-col",children:[o.jsx("button",{type:"button","aria-label":"Close Modal",className:"absolute right-6 top-6 z-10 flex size-8 items-center justify-center rounded-full bg-[#9092B21A] text-brandblue-100 hover:opacity-70",onClick:()=>m(),children:o.jsx(a1,{})}),o.jsxs("div",{className:"relative flex flex-col items-center gap-4 bg-[linear-gradient(180deg,rgba(252,215,83,0.16),transparent)] px-5 pb-4 pt-8",children:[o.jsx("img",{src:"/battlepass/season-pass.webp",alt:"",className:"h-[168px] w-auto object-contain"}),o.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[o.jsx("span",{className:"bg-icon-battlepass/15 rounded-md px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-icon-battlepass",children:w("battlepass.badge.exclusive")}),o.jsx("h2",{"data-testid":"battlepass-season-name",className:"text-xl font-bold text-white",children:w("purchase_battlepass_modal.captions.pass_name5")})]})]}),o.jsxs("div",{className:"flex flex-col gap-5 px-5 pb-6",children:[o.jsx(jK,{isPaywall:p,isNovice:W}),k?o.jsxs("button",{type:"button","data-testid":"beast-mode-toggle",className:ie("flex items-center justify-between gap-3 rounded-xl border px-4 py-3 text-left transition-colors",C?"bg-icon-battlepass/10 border-icon-battlepass":"border-highlight bg-secondary"),onClick:()=>{b(j=>(j&&E(!0),!j))},children:[o.jsxs("div",{className:"flex flex-col gap-0.5",children:[o.jsx("span",{className:"text-sm font-semibold text-white",children:w("purchase_battlepass_modal.beast_mode")}),o.jsx("span",{className:"text-xs font-medium text-brandblue-100",children:w("purchase_battlepass_modal.special_offer")})]}),o.jsx("span",{className:ie("relative h-6 w-11 shrink-0 rounded-full transition-colors",C?"bg-icon-battlepass":"bg-highlight"),children:o.jsx("span",{className:ie("absolute top-0.5 size-5 rounded-full bg-white transition-all",C?"left-[22px]":"left-0.5")})})]}):null,H?o.jsxs("div",{"data-testid":"battlepass-priced-out",className:"flex flex-col gap-1.5 rounded-xl border border-warning/40 bg-[rgba(235,192,102,0.1)] px-4 py-3 text-center",children:[o.jsx("p",{className:"text-sm font-semibold text-yellow",children:w("purchase_battlepass_modal.error.title")}),o.jsx("p",{className:"text-xs font-medium text-brandblue-100",children:w("purchase_battlepass_modal.error.unavailable")})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("span",{className:"text-xs font-medium text-brandblue-100",children:w("purchase_battlepass_modal.captions.currency")}),o.jsx(ba,{id:"battlepass-currency","data-testid":"battlepass-currency",value:x,withCurrencyIcon:!0,options:O,onChange:g})]}),o.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl bg-secondary px-4 py-3",children:[o.jsx("span",{className:"text-xs font-medium text-brandblue-100",children:w("purchase_battlepass_modal.captions.price")}),o.jsxs("span",{className:"flex items-center gap-2",children:[o.jsx(Zi,{currency:U.displayCurrency,className:"size-5 shrink-0"}),o.jsx("span",{"data-testid":"battlepass-price",className:"text-base font-semibold text-white",children:uo(U.amount,U.displayCurrency)}),U.originalAmount?o.jsx("span",{"data-testid":"battlepass-original-price",className:"text-sm font-medium text-brandblue-100 line-through opacity-60",children:uo(U.originalAmount,Q3)}):null]})]}),o.jsxs("div",{className:"flex items-center justify-between gap-3 px-1 text-xs font-medium",children:[o.jsx("span",{className:"text-brandblue-100",children:w("modals.rewards.battlepass.your_balance")}),o.jsx("span",{className:G?"text-warning":"text-white",children:uo(z,x)})]})]}),s&&!H?o.jsx("p",{"data-testid":"battlepass-error",className:"text-center text-xs font-medium text-warning",children:w("purchase_battlepass_modal.error.description")}):null,o.jsx(wn,{variant:"primary","data-testid":"battlepass-purchase",className:"h-12 w-full rounded-lg",disabled:i||a||H,onClick:I,children:G?w("rewards.buttons.not_enough_funds"):w("purchase_battlepass_modal.captions.you_are_about_to_purchase")}),l>0?o.jsx("p",{"data-testid":"battlepass-recent-purchases",className:"text-center text-xs font-medium text-brandblue-100 opacity-60",dangerouslySetInnerHTML:{__html:w("battlepass_recent_purchases",{count:l})}}):null]})]})},Cre="purchaseBattlepass",Cue=H1({component:wre,removeSearchParams:["isPaywall","redirect"],hideTitle:!0,omitHeader:!0,hideContentHorizontalPadding:!0,wrapperClass:"max-w-[480px] bg-[#161923]"}),Eg=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},xre={get:e=>Eg(()=>_e.get(e)),post:(e,t)=>
407Eg(()=>_e.post(e,t))},yre=Ye(()=>{BY(Cre,{isPaywall:"true",redirect:AS})}),bre=Ye(e=>{hn({level:"error",title:w("notification.toast.error.title"),body:Iv(e)?w(`provablyFair.errors.${e}`):w("http.try_later")})});let Sg=!1;const vre=e=>{Sg||(Sg=!0,eZ({http:xre,isInTribes:()=>g_.getState(),getSocketUrl:qi,getUserId:e}),dG(),pG(),h({clock:Wv,target:yre}),h({clock:M7,target:bre}))},Lg=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},Ere={get:(e,t)=>Lg(()=>_e.get(e,{query:t})),post:(e,t,n)=>Lg(()=>_e.post(e,t,n))};let Ag=!1;const Sre=()=>{Ag||(Ag=!0,mM({http:Ere,getSocketUrl:qi,trackEvent:Te,lootboxCategory:f1?Xg:void 0}),h({clock:z3,target:co}))},Lre=e=>{const t=e;return!t||t.type!=="lootboxItemUpdate"||t.lootboxInventoryId===void 0?!1:(G3({lootboxInventoryId:Number(t.lootboxInventoryId),status:t.status}),typeof t.status=="string"&&t.status!==""&&lC({id:Number(t.lootboxInventoryId),status:t.status}),!0)},xue="https://www.tensor.trade/trade/og_owners_club",GL=1e9,e4=1e3,Are=/^[1-9A-HJ-NP-Za-km-z]{32,44}$/,yue=["week","alltime"],bue=9,vue=[{id:"businessinsider",url:"https://markets.businessinsider.com/news/currencies/whale-io-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection-1035401987"},{id:"coinmarketcap",url:"https://coinmarketcap.com/community/articles/68f6428a6576e94bfc6cd435/"},{id:"investing",url:"https://www.investing.com/news/cryptocurrency-news/whaleio-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection-4297493"},{id:"binance",url:"https://www.binance.com/en/square/post/31272131664553"},{id:"decrypt",url:"https://decrypt.co/344975/whale-io-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection"},{id:"cryptopotato",url:"https://cryptopotato.com/whale-io-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection/"},{id:"walletinvestor",url:"https://walletinvestor.com/magazine/whale-io-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection"},{id:"igamingnews",url:"https://igaming.news/news/2025-10-20/whaleio-introduces-crock-dentist-game-and-exclusive-rwa-nft-collection"},{id:"bitcoin",url:null},{id:"nextio",url:null}],Eue="https://solscan.io/account/4Yh3sqEU9nVhCQmNWqszCkzE58if5Boq4mvGEi78M9S8",Sue="https://solscan.io/account/9VcKr299iwSGwF3k3NaPEiF67RjWYpGGjPEV3KTC1yaa",Lue=["T52slT4S2Co","k4hj2qEuK80"],Aue="98%",Tre={OK:200},_re="/nft/prices",Rre="/nft/stats",Nre="/nft/total-sold",kre="/nft/biggest-holders",Ire="/nft/transactions",Mre="/nft/user-transactions",Ore="/nft/live-stats",Pre="/nft/mint";let t4=null;const Dre=e=>{t4=e},Ks=()=>{if(!t4)throw new Error("@whale-client/dataflow-nft is not configured. Call configureNFTDataflow() on app boot.");return t4},_a=e=>e===Tre.OK,Fre=(e,t)=>e instanceof Error&&e.message?e.message:t,zL=e=>Number.isFinite(e)?e/GL:0,jre=e=>Number.isFinite(e)?e*GL:0,$re=e=>e.reduce((t,n)=>t+(n.nftAmount||0),0),Bre=e=>e.reduce((t,n)=>t+zL(n.price)*n.nftAmount,0),qL=e=>Math.max(0,e4-Math.max(0,e??0)),Ure=e=>Math.min(e4,Math.max(0,e??0))/e4*100,Hre=(e,t,n)=>{const s=t.trim();return s?Are.test(s)?!Number.isInteger(e)||e<=0?"amount_invalid":e>qL(n)?"amount_exceeds_supply":null:"address_invalid":"address_required"},Tue=(e,t=4,n=4)=>e?e.length<=t+n+3?e:`${e.slice(0,t)}...${e.slice(-n)}`:"",Vre=e=>[...e].sort((t,n)=>n.nftAmount-t.nftAmount),n4=e=>[...e].sort((t,n)=>new Date(n.date).getTime()-new Date(t.date).getTime()),_ue=(e,t)=>
407[...e.map(n=>({kind:"transaction",date:n.date,userName:n.userName||"-",amount:n.nftAmount*zL(n.price),currency:"USDT",nftAmount:n.nftAmount})),...t.map(n=>({kind:"airdrop",date:n.createdAt,userName:"-",amount:Number(n.amount)||0,currency:n.currency,nftAmount:null}))].sort((n,s)=>new Date(s.date).getTime()-new Date(n.date).getTime()),Wre=e=>Number(e==null?void 0:e.totalValueAirdroppedSol)||0,Zre=e=>Number(e==null?void 0:e.averageAirdropValuePerNftSol)||0,Rue=e=>{const t=e.filter(n=>Number.isFinite(Number(n.turnover)));return{labels:t.map(n=>n.timestamp),values:t.map(n=>Number(n.turnover))}},Nue=(e,t)=>{const n=Number.isFinite(t)&&t>0?t:0,s=Math.max(0,100-n)/100;return Math.max(0,e)*s},at=Je("nft"),Gre=at.createEvent("nftPageMounted"),zre=at.createEvent("liveStatsPeriodSelected"),qre=at.createEvent("mintAmountChanged"),Yre=at.createEvent("mintWalletAddressChanged"),Kre=at.createEvent("mintRequested"),YL=at.createEvent("mintFeedbackCleared"),KL=at.createEvent("mintRecorded"),z1=at.createEvent("nftUserStateReset"),Xre=async()=>{const{status:e,data:t}=await Ks().http.get(_re);return _a(e)&&typeof(t==null?void 0:t.currentPrice)=="number"?t:null},Jre=async()=>{const{status:e,data:t}=await Ks().http.get(Nre);return _a(e)&&typeof(t==null?void 0:t.totalSold)=="number"?t:null},Qre=async()=>{const{status:e,data:t}=await Ks().http.get(kre);return _a(e)&&Array.isArray(t==null?void 0:t.holders)?t.holders:[]},eae=async()=>{const{status:e,data:t}=await Ks().http.get(Ire);return _a(e)?{transactions:Array.isArray(t==null?void 0:t.transactions)?t.transactions:[],airdrop:Array.isArray(t==null?void 0:t.airdrop)?t.airdrop:[]}:{transactions:[],airdrop:[]}},tae=async()=>{const{status:e,data:t}=await Ks().http.get(Mre);return _a(e)&&Array.isArray(t==null?void 0:t.transactions)?t.transactions:[]},XL=async e=>{const{status:t,data:n}=await Ks().http.get(Ore,{period:e});return _a(t)&&(n!=null&&n.liveStats)?n.liveStats:null},nae=async()=>{const{status:e,data:t}=await Ks().http.get(Rre);return _a(e)&&typeof(t==null?void 0:t.totalSupply)=="number"?t:null},is=at.createEffect(async e=>{const[t,n,s,r,a,i,l]=await Promise.all([Xre(),Jre(),Qre(),eae(),tae(),XL(e||"week"),nae()]);return{price:t,totalSold:n,holders:s,transactions:r.transactions,airdrop:r.airdrop,userTransactions:a,liveStats:i,stats:l}}),Bu=at.createEffect(async e=>({period:e,liveStats:await XL(e)})),ss=at.createEffect(async e=>{const{status:t,data:n}=await Ks().http.post(Pre,e);if(!_a(t)||!(n!=null&&n.success))throw new Error((n==null?void 0:n.message)??"nft.mint_failed");return e}),JL=at.createStore(null,{name:"nftPrice"}).on(is.doneData,(e,t)=>t.price),N9=at.createStore(null,{name:"nftTotalSold"}).on(is.doneData,(e,t)=>{var n;return((n=t.totalSold)==null?void 0:n.totalSold)??null}).on(ss.doneData,(e,{amountNft:t})=>e===null?e:e+t),kue=at.createStore([],{name:"nftHolders"}).on(is.doneData,(e,t)=>Vre(t.holders)),Iue=at.createStore([],{name:"nftTransactions"}).on(is.doneData,(e,t)=>n4(t.transactions)),Mue=at.createStore([],{name:"nftAirdrops"}).on(is.doneData,(e,t)=>t.airdrop),QL=at.createStore(null,{name:"nftStats"}).on(is.doneData,(e,t)=>t.stats);is.pending;at.createStore(!1,{name:"nftLoaded"}).on(is.finally,()=>!0);const eA=at.createStore([],{name:"nftUserTransactions"}).on(is.doneData,(e,t)=>n4(t.userTransactions)).on(KL,(e,{amountNft:t,internalPrice:n})=>n4([{date:new Date().toISOString(),nftAmount:t,price:n},...e])).reset(z1);eA.map($re);eA.map(Bre);const Oue=at.createStore(null,{name:"nftLiveStats"}).on(is.doneData,(e,t)=>t.liveStats).on(Bu.doneData,(e,{liveStats:t})=>t??e),k9=at.createStore("week",{name:"nftLiveStatsPeriod"}).on(Bu.doneData,(e,{period:t,liveStats:n})=>n?t:e),Pue=Bu.pending,Due=N9.map(qL);N9.map(Ure);const Fue=QL.map(Wre),jue=QL.map(Zre),I9=at.createStore(1,{name:"mintAmount"}).on(qre,(e,t)=>Number.isFinite(t)?Math.max(1,Math.trunc(t)):1).reset(ss.done,z1),tA=at.createStore("",{name:"mintWalletAddress"}).on(Yre,(e,t)=>t).reset(z1),sae=P(I9,tA,N9,(e,t,n)=>Hre(e,t,n)),rae=sae.map(e=>e===null);ss.pending;at.createStore(null,{name:"mintError"}).on(ss.failData,(e,t)=>Fre(t,"nft.mint_failed")).reset(ss,YL,z1);at.createStore(!1,{name:"mintSuccess"}).on(ss.done,()=>!0).reset(ss,YL,z1);P(I9,JL,(e,t)=>e*((t==null?void 0:t.currentPrice)??0));h({clock:Gre,source:k9,target:is});h({clock:zre,source:k9,filter:(e,t)=>e!==t,fn:(e,t)=>t,target:Bu});h({clock:Kre,source:{amountNft:I9,walletAddress:tA,canMint:rae},filter:({canMint:e})=>e,fn:({amountNft:e,walletAddress:t})=>({amountNft:e,walletAddress:t.trim()}),target:ss});h({clock:ss.done,source:JL,filter:e=>typeof(e==null?void 0:e.currentPrice)=="number",fn:(e,{params:t})=>({amountNft:t.amountNft,internalPrice:jre(e.currentPrice)}),target:KL});const aae=Ye(({amountNft:e})=>{const{refreshBalances:t,toast:n,translate:s}=Ks();t(),n.success(s("notification.toast.success.title"),s("nft.mint_success",{amount:e}))});h({clock:ss.doneData,target:aae});h({clock:ss.done,source:k9,target:is});const oae=Ye(e=>{const{toast:t,translate:n}=Ks();t.error(n("notification.toast.error.title"),e instanceof Error?e.message:n("nft.mint_failed"))});h({clock:ss.failData,target:oae});const Tg=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},iae={get:(e,t)=>Tg(()=>_e.get(e,{query:t})),post:(e,t)=>
407Tg(()=>_e.post(e,t))};let _g=!1;const lae=e=>{_g||(_g=!0,Dre({http:iae,toast:{success:(t,n)=>hn({level:"success",title:t,body:n}),error:(t,n)=>hn({level:"error",title:t,body:n})},translate:(t,n)=>w(t,n),isSelfExcluded:e.isSelfExcluded,refreshBalances:e.refreshBalances}))},nA="play_block",cae=30*1e3,M9=As("playBlockDetected"),sA=As("playBlockCleared"),$ue=Ls(!1,{name:"playBlocked"}).on(M9,()=>!0).reset(sA),dae=()=>!!zi(nA),uae=e=>{var t;return((t=e.body)==null?void 0:t.message)==="SelfExcluded"};let Rg=!1;const fae=()=>{Rg||(Rg=!0,mw(e=>{if(!(!sn(e)||e.status!==423||uae(e))){if(typeof document<"u"){const t=new Date(Date.now()+cae).toUTCString();document.cookie=`${nA}=true; expires=${t}; path=/; SameSite=Lax`}M9()}}))},mae=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},hae={get:(e,t)=>mae(()=>_e.get(e,{query:t}))};let Ng=!1;const pae=()=>{Ng||(Ng=!0,uO({http:hae,resolveAssetUrl:e=>Zs(e),toast:{error:(e,t)=>hn({level:"error",title:e,body:t})},translate:(e,t)=>
407w(e,t)}),hO())},gae=(e,t,n)=>!sn(e)||!e.isRateLimited?!1:t===null||n-t>=$V;let kg=null,Ig=!1;const wae=()=>{Ig||(Ig=!0,mw(e=>{const t=Date.now();gae(e,kg,t)&&(kg=t,hn({level:"error",title:w("http.too_many_requests"),body:w("http.try_later")}))}))},t2=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},Cae={get:(e,t)=>t2(()=>_e.get(e,{query:t})),post:(e,t)=>t2(()=>_e.post(e,t)),put:(e,t)=>t2(()=>_e.put(e,t)),delete:e=>t2(()=>_e.delete(e))};let Mg=!1;const xae=()=>{Mg||(Mg=!0,RF({http:Cae,trackEvent:Te}))};let Jt=null;const Bue=e=>{Jt=e},yae=e=>{Jt==null||Jt.openTwoFactorModal(e)},bae=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},Og=()=>{var e;return typeof window>"u"?null:((e=window.Telegram)==null?void 0:e.WebApp)??null};let Pg=!1;const vae=()=>{Pg||(Pg=!0,Ij({http:{post:(e,t)=>bae(()=>_e.post(e,t))},cookies:{get:zi,set:Ld,remove:e=>u1(e)},isTelegramDevice:()=>Ws()===vr.TELEGRAM,loadWebApp:async()=>(await iL(Ej),Og()),getWebApp:Og,getPathname:()=>wr(),navigateToCasino:()=>Jt==null?void 0:Jt.navigate(HY),goBack:()=>Jt==null?void 0:Jt.goBack(),isDrawerOpen:()=>(Jt==null?void 0:Jt.isDrawerOpen())??!1,closeDrawer:()=>Jt==null?void 0:Jt.closeDrawer(),hardNavigate:e=>{typeof window<"u"&&(window.location.href=e)},reload:()=>{typeof window<"u"&&window.location.reload()},getHref:()=>typeof window>"u"?"":window.location.href,getSearchParam:e=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(e),getBotId:w_,getTrackingData:Yg,getSignUpSource:qg,clearSignUpSourceData:zg,getUtmParams:Gg,getAdFormUid:Zg,trackEvent:Te}))},Eae="--tg-safe-area-top",Sae="safeAreaChanged",Lae="contentSafeAreaChanged",Aae=(e,t)=>Math.max(0,((e==null?void 0:e.top)??0)+((t==null?void 0:t.top)??0)),Tae=()=>{var e;return typeof window>"u"?null:((e=window.Telegram)==null?void 0:e.WebApp)??null},w3=e=>{if(typeof document>"u")return;const t=Aae(e.safeAreaInset,e.contentSafeAreaInset);document.documentElement.style.setProperty(Eae,`${t}px`)};let Dg=!1;const _ae=()=>{if(Dg||Ws()!==vr.TELEGRAM)return;const e=Tae();e&&(Dg=!0,w3(e),e.onEvent(Sae,()=>w3(e)),e.onEvent(Lae,()=>w3(e)))},C3=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},Rae={get:(e,t)=>C3(()=>_e.get(e,{query:t})),post:(e,t)=>C3(()=>_e.post(e,t)),patch:(e,t)=>C3(()=>_e.patch(e,t))};let Fg=!1;const Nae=e=>{Fg||(Fg=!0,e$({http:Rae,toast:{success:(t,n)=>hn({level:"success",title:t,body:n}),error:(t,n)=>hn({level:"error",title:t,body:n})},translate:(t,n)=>w(t,n),isStakingAccessible:()=>No.stakingEnabled,refreshBalances:e.refreshBalances,trackEvent:(t,n)=>Te(t,n)}))},Fn={GamePlay:"gameplay",RAF:"raf",WinMultiplier:"winMultiplier",XpLeaderboard:"xp_leaderboard",MCP:"mcp",Sportsbook:"sportsbook"},q1={Active:"active",Inactive:"inactive",Completed:"completed"},jn={All:"all",Active:"active",Upcoming:"upcoming",Past:"past"},kae={MULTIPLE_CHOICES:300},rA=24,Iae=3,O9=5,Uue=10,aA=3,Hue="/tournaments",Vue="btsg_sportbetting",Wue="/sportsbook/?setIframePath=/football",Mae="tournament_join_prompt_dismissed_",oA=e=>`${Mae}${e}`,Oae="isTournamentSidebarOpen",Zue=[jn.All,jn.Active,jn.Upcoming,jn.Past],Gue={[jn.All]:"tournament_all",[jn.Active]:"tournament_ongoing",[jn.Upcoming]:"tournament_upcoming",[jn.Past]:"tournament_finished"},Pae=jn.Active,zue="tournaments.lobby.seo.description",que=["h1","h2","h3","p","ul","ol","li","b","i","br","video","center","button"],Yue=["src"],Kue="casinotournaments",Xue=9,Dae="tournaments.toast.error.title",Fae="tournaments.toast.error.load",jae="tournaments.toast.error.join",$ae="Could not load the tournament leaderboards.",Jue="join_button",Bae="rules_button",P9="/tournaments",Oo=e=>`${P9}/${e}`,Uae=e=>`${Oo(e)}/games`,iA=e=>`${Oo(e)}/leaderboards`,Hae=e=>`${iA(e)}/me`,lA=e=>`${Oo(e)}/participants`,Vae=e=>`${lA(e)}/count`,Wae=e=>`${Oo(e)}/prizes/count`,cA=e=>`${Oo(e)}/participation-status`;let s4=null;const Zae=e=>{s4=e},ln=()=>
407{if(!s4)throw new Error("@whale-client/dataflow-tournaments is not configured. Call configureTournamentsDataflow() on app boot.");return s4},_o=e=>e>=kae.MULTIPLE_CHOICES,dA=()=>({page:1,limit:rA,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),yc=()=>({tournaments:[],pagination:dA(),isLoading:!1,isLoadingMore:!1,isLoaded:!1}),Gae=()=>({[jn.All]:yc(),[jn.Active]:yc(),[jn.Upcoming]:yc(),[jn.Past]:yc()}),zae=(e,t)=>{const n=new Set(e.map(s=>s.id));return[...e,...t.filter(s=>!n.has(s.id))]},qae=e=>!e.isLoaded&&!e.isLoading,Yae=(e,t)=>t?1:e.pagination.page+1,Kae=e=>e.pagination.hasNext&&!e.isLoadingMore,Xae=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,D9=e=>{if(!e)return Number.NaN;const t=String(e).trim(),n=Xae.test(t)?`${t.replace(" ","T")}Z`:t;return new Date(n).getTime()},uA=e=>e.status===q1.Active,Que=e=>e.status===q1.Completed,e5e=e=>e.status===q1.Inactive,Jae=(e,t=Date.now())=>{if(e.status===q1.Completed||!e.startsAt)return!1;const n=D9(e.startsAt);return!Number.isNaN(n)&&n>t},Qae=(e,t=Date.now())=>{if(!e.startsAt)return!0;const n=D9(e.startsAt);return Number.isNaN(n)||n<=t},t5e=(e,t=Date.now())=>(Jae(e,t)?e.startsAt:e.endsAt)??null,Uu=e=>e.status===q1.Inactive&&!e.startsAt,fA=e=>e.type===Fn.MCP,n5e=e=>e.type===Fn.RAF,s5e=e=>e.type===Fn.Sportsbook,r5e=e=>e.type===Fn.GamePlay||e.type===Fn.WinMultiplier,a5e=e=>e.type===Fn.WinMultiplier,eoe=["maxmultiplier","refer","raf"],toe=e=>{var n;if(e.type!==Fn.GamePlay)return!1;const t=(((n=e.metadata)==null?void 0:n.typeTranslationKey)??"").toLowerCase();return!eoe.some(s=>t.includes(s))},o5e=(e,t)=>uA(e)&&t&&!fA(e),noe=(e,t,n=Date.now())=>t&&uA(e)&&Qae(e,n),i5e=(e,t,n=Date.now())=>noe(e,t,n)&&!fA(e),mA=(e,t=0)=>[...e].sort((n,s)=>Number(s.amountWageredUsd)-Number(n.amountWageredUsd)).map((n,s)=>({...n,rank:t+s+1})),soe=e=>mA(e).slice(0,Iae),roe=e=>e.filter(t=>!t.isPartner).map(t=>({...t,leaderboard:soe(t.leaderboard??[])})),l5e=(e,t)=>{var s;const n=((s=t==null?void 0:t.metadata)==null?void 0:s.prizes)??[];return e.map(r=>({...r,prize:n.find(a=>a.rank===r.rank)}))},c5e=(e,t)=>!!t&&!e.some(n=>n.rank===(t==null?void 0:t.rank)),d5e=e=>e.slice(0,aA),u5e=e=>{const t=Math.max(e-aA,0);return t>0?`+${t}`:`${e}`},aoe=new Intl.NumberFormat("en-us",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}),ooe=new Intl.NumberFormat("en-us",{minimumFractionDigits:0,maximumFractionDigits:0}),ioe=new Intl.NumberFormat("en-US"),f5e=e=>aoe.format(Number(e)||0),m5e=e=>ooe.format(Number(e)||0),h5e=e=>ioe.format(e),p5e=e=>{if(e===null||!Number.isFinite(e))return String(e);
407const t=["th","st","nd","rd"],n=e%100;return`${e}${t[(n-20)%10]||t[n]||t[0]}`},hA=1e3,r4=60*hA,a4=60*r4,jg=24*a4,loe=(e,t=Date.now())=>{const n=D9(e);if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,isElapsed:!0};const s=n-t;return s<=0?{days:0,hours:0,minutes:0,seconds:0,isElapsed:!0}:{days:Math.floor(s/jg),hours:Math.floor(s%jg/a4),minutes:Math.floor(s%a4/r4),seconds:Math.floor(s%r4/hA),isElapsed:!1}},g5e=(e,t=Date.now())=>{const{days:n,hours:s,minutes:r}=loe(e,t);return`${n}d ${s}h ${r}m`},coe=e=>ln().sessionStorage.get(oA(e))==="true",doe=e=>{ln().sessionStorage.set(oA(e),"true")},w5e=(e,t)=>t?e.find(n=>!coe(n))??null:null,uoe={madmaxhalloween:"tournaments.madmaxhalloween.terms.modal.content"},foe={[Fn.GamePlay]:"tournaments.terms.modal.content",[Fn.RAF]:"tournaments.raf.terms.modal.content",[Fn.WinMultiplier]:"tournaments.maxmultiplier.terms.modal.content",[Fn.XpLeaderboard]:"tournaments.xpleaderboard.terms.modal.content",[Fn.MCP]:"tournaments.mcp.terms.modal.content",[Fn.Sportsbook]:"tournaments.terms.modal.content"},C5e=(e,t)=>uoe[t??""]||(e?foe[e]??"":""),x5e=4,moe=new Set(["wctesitng","mcptest"]),hoe=/(^|[-_])(test|staging|sandbox|e2e)([-_]|$)/,pA=e=>{const t=(e.slug??"").toLowerCase();return moe.has(t)?!0:hoe.test(t)},gA=(e,t)=>{var n;return{tournamentId:e.id,tournamentName:e.name||e.slug,tournamentType:e.type,startDate:e.startsAt??null,endDate:e.endsAt??null,prizePool_usd:((n=e.metadata)==null?void 0:n.totalPrizePool)??null,...t}},re=Je("tournaments");re.createEvent("tournamentsDataflowInitialised");
407const zt=re.createEvent("tournamentsUserStateReset"),poe=re.createEvent("lobbyMounted"),wA=re.createEvent("tabChanged"),goe=re.createEvent("loadMoreRequested"),woe=re.createEvent("seoDescriptionExpanded"),Coe=re.createEvent("detailMounted"),CA=re.createEvent("detailUnmounted"),xoe=re.createEvent("detailRedirectRequested"),yoe=re.createEvent("participatingGamesRequested"),boe=re.createEvent("leaderboardRequested"),voe=re.createEvent("myScoreRequested"),Eoe=re.createEvent("participationStatusRequested"),Soe=re.createEvent("participantCountRequested"),Loe=re.createEvent("joinRequested"),Aoe=re.createEvent("rulesOpened"),Toe=re.createEvent("joinPromptRequested"),F9=re.createEvent("joinPromptDismissed"),_oe=re.createEvent("sidebarMounted"),Roe=re.createEvent("sidebarTournamentSwitched"),Noe=re.createEvent("tournamentSidebarOpenPersisted"),koe=re.createEvent("activeTournamentsRequested"),Ioe=re.createEvent("activeTournamentsOnceRequested"),xl=(e,t)=>{var n;if(_o(e.status))throw new Error(((n=e.data)==null?void 0:n.message)??t);return e.data},br=re.createEffect(async({tab:e,reset:t,page:n})=>{const s=await ln().http.get(P9,{tab:e,page:n,limit:rA,includePartner:!1}),r=xl(s,"Failed to load tournaments");return{tab:e,reset:t,tournaments:Array.isArray(r==null?void 0:r.data)?r.data:[],pagination:(r==null?void 0:r.pagination)??dA()}}),xA=async()=>{const e=await ln().http.get(P9),t=xl(e,"Failed to load tournaments");return Array.isArray(t)?t:[]},Ra=re.createEffect(xA),Ed=re.createEffect(xA),qs=re.createEffect(async e=>{const t=await ln().http.get(Oo(e)),n=xl(t,"Failed to load the tournament");if(!(n!=null&&n.tournament))throw new Error("Failed to load the tournament");return n.tournament}),j9=re.createEffect(async e=>{var t;try{const n=await ln().http.get(Uae(e));return _o(n.status)?{slug:e,games:[]}:{slug:e,games:Array.isArray((t=n.data)==null?void 0:t.games)?n.data.games:[]}}catch{return{slug:e,games:[]}}}),Ro=re.createEffect(async({slug:e,limit:t=O9,offset:n=0})=>{const s=await ln().http.get(iA(e),{limit:t,offset:n}),r=xl(s,"Failed to load the tournament leaderboards");return{slug:e,offset:n,leaders:mA(Array.isArray(r==null?void 0:r.leaderboards)?r.leaderboards:[],n)}}),yA=re.createEffect(async e=>{const t=await ln().http.get(Hae(e));return _o(t.status)||!t.data?{slug:e,score:null}:{slug:e,score:t.data}}),Moe=re.createEffect(async e=>{var n;const t=await ln().http.get(Wae(e));return _o(t.status)?{slug:e,count:0}:{slug:e,count:typeof((n=t.data)==null?void 0:n.count)=="number"?t.data.count:0}}),bA=re.createEffect(async e=>{var t;try{const n=await ln().http.get(Vae(e));return _o(n.status)?{slug:e,count:0}:{slug:e,count:typeof((t=n.data)==null?void 0:t.count)=="number"?n.data.count:0}}catch{return{slug:e,count:0}}}),l1=re.createEffect(async e=>{const t=await ln().http.get(cA(e)),n=xl(t,"Failed to load the participation status");return{slug:e,isJoinAllowed:!!(n!=null&&n.isJoinAllowed)}}),Ss=re.createEffect(async e=>{const t=await ln().http.post(lA(e.slug));return xl(t,"Failed to join the tournament"),e}),Hu=re.createEffect(async e=>{var n,s;const{http:t}=ln();try{const[r,a]=await Promise.all([t.get(Oo(e)),t.get(cA(e))]);return _o(r.status)||!((n=r.data)!=null&&n.tournament)?null:{slug:e,tournament:r.data.tournament,isJoinAllowed:!_o(a.status)&&!!((s=a.data)!=null&&s.isJoinAllowed)}}catch{return null}}),$9=re.createStore(Pae,{name:"activeTab"}).on(wA,(e,t)=>t).reset(zt),x3=(e,t,n)=>({...e,[t]:{...e[t],...n}}),Vu=re.createStore(Gae(),{name:"tabStates"}).on(br,(e,{tab:t,reset:n})=>x3(e,t,{isLoading:n,isLoadingMore:!n})).on(br.doneData,(e,{tab:t,reset:n,tournaments:s,pagination:r})=>x3(e,t,{tournaments:n?s:zae(e[t].tournaments,s),pagination:r,isLoaded:!0,isLoading:!1,isLoadingMore:!1})).on(br.fail,(e,{params:{tab:t,reset:n}})=>n?{...e,[t]:{...yc(),isLoaded:!1}}:x3(e,t,{isLoading:!1,isLoadingMore:!1})).reset(zt),Y1=P(Vu,$9,(e,t)=>e[t]),Ooe=Y1.map(e=>e.tournaments),y5e=Y1.map(e=>e.isLoading&&!e.isLoaded),b5e=Y1.map(e=>e.isLoadingMore),v5e=Y1.map(e=>e.pagination.hasNext),E5e=Y1.map(e=>e.isLoaded&&e.tournaments.length===0),S5e=re.createStore(null,{name:"lobbyError"}).on(br.failData,(e,t)=>t instanceof Error?t.message:"Failed to load tournaments").reset(br,zt),L5e=re.createStore(!1,{name:"isSeoDescriptionExpanded"}).on(woe,()=>!0),vA=re.createStore({},{name:"gamesBySlug"}).on(j9.doneData,(e,{slug:t,games:n})=>({...e,[t]:n})),$g=P(Ooe,vA,(e,t)=>e.filter(n=>toe(n)&&!t[n.slug]).map(n=>n.slug)),EA=re.createStore(null,{name:"tournament"}).on(qs.doneData,(e,t)=>t).reset(qs,CA,zt),A5e=qs.pending,T5e=re.createStore(null,{name:"detailError"}).on(qs.failData,(e,t)=>t instanceof Error?t.message:"Failed to load the tournament").reset(qs,CA,zt),_5e=EA.map(e=>!!e&&Uu(e)),R5e=re.createStore({},{name:"leadersBySlug"}).on(Ro.doneData,(e,{slug:t,leaders:n})=>({...e,[t]:n})).reset(zt),N5e=re.createStore({},{name:"myScoreBySlug"}).on(yA.doneData,(e,{slug:t,score:n})=>({...e,[t]:n})).reset(zt),k5e=re.createStore({},{name:"prizesCountBySlug"}).on(Moe.doneData,(e,{slug:t,count:n})=>({...e,[t]:n}));Ro.pending;const I5e=re.createStore(null,{name:"leaderboardError"}).on(Ro.fail,()=>$ae).reset(Ro,zt),M5e=re.createStore({},{name:"participantCountBySlug"}).on(bA.doneData,(e,{slug:t,count:n})=>({...e,[t]:n})).on(Ss.done,(e,{params:{slug:t}})=>({...e,[t]:(e[t]??0)+1})).reset(zt),O5e=re.createStore({},{name:"participationStatusBySlug"}).on(l1.doneData,(e,{slug:t,isJoinAllowed:n})=>({...e,[t]:n})).on(Hu.doneData,(e,t)=>t?{...e,[t.slug]:t.isJoinAllowed}:e).on(Ss.done,(e,{params:{slug:t}})=>({...e,[t]:!1})).reset(zt),Poe=re.createStore([],{name:"requestedParticipationSlugs"}).on(l1,(e,t)=>e.includes(t)?e:[...e,t]).reset(zt),P5e=re.createStore([],{name:"participationStatusLoadingSlugs"}).on(l1,(e,t)=>e.includes(t)?e:[...e,t]).on(l1.finally,(e,{params:t})=>e.filter(n=>n!==t)).reset(zt),D5e=re.createStore([],{name:"joiningSlugs"}).on(Ss,(e,{slug:t})=>e.includes(t)?e:[...e,t]).on(Ss.finally,(e,{params:t})=>e.filter(n=>n!==t.slug)).reset(zt),Doe=re.createStore(null,{name:"joinPrompt"}).on(Hu.doneData,(e,t)=>t).on(F9,(e,t)=>
407(e==null?void 0:e.slug)===t?null:e).on(Ss.done,(e,{params:{slug:t}})=>(e==null?void 0:e.slug)===t?null:e).reset(zt);Ss.pending;const SA=re.createStore([],{name:"activeTournaments"}).on([Ra.doneData,Ed.doneData],(e,t)=>t).reset(zt),F5e=Ra.pending,Foe=re.createStore(!1,{name:"activeTournamentsLoaded"}).on([Ra.finally,Ed.finally],()=>!0).reset(zt),joe=SA.map(roe),$oe=re.createStore(0,{name:"sidebarIndex"}).on(Roe,(e,t)=>t).reset(Ra,zt),j5e=P(joe,$oe,(e,t)=>e.length?e[t]??e[0]:null),LA=P(Vu,SA,Doe,EA,(e,t,n,s)=>{const r={},a=i=>{i!=null&&i.slug&&(r[i.slug]=i)};return Object.values(e).forEach(i=>i.tournaments.forEach(a)),t.forEach(a),a(n==null?void 0:n.tournament),a(s),r}),AA=re.createEffect(e=>{const{toast:t,translate:n}=ln();t.error(n(Dae),n(e))}),B9=re.createEffect(()=>AA(Fae)),Boe=re.createEffect(()=>AA(jae)),K1=re.createEffect(({name:e,payload:t})=>{ln().trackEvent(e,t)}),TA=re.createEffect(e=>{doe(e)}),_A=(e,t,n)=>{const s=n?{source:n}:void 0,r=e[t];return r?gA(r,s):{tournamentName:t,...s}},RA=(e,t)=>!pA(e[t]??{slug:t}),U9=re.createEvent("tabActivationRequested");h({clock:poe,source:$9,target:U9});h({clock:wA,target:U9});h({clock:U9,source:Vu,filter:(e,t)=>qae(e[t]),fn:(e,t)=>({tab:t,reset:!0,page:1}),target:br});h({clock:goe,source:{states:Vu,tab:$9},filter:({states:e,tab:t})=>Kae(e[t]),fn:({states:e,tab:t})=>({tab:t,reset:!1,page:Yae(e[t],!1)}),target:br});h({clock:br.fail,target:B9});h({clock:[br.done,$g.updates],source:$g,filter:e=>e.length>0,target:re.createEffect(async e=>{await Promise.all(e.map(t=>j9(t)))})});h({clock:yoe,source:vA,filter:(e,t)=>!e[t],fn:(e,t)=>t,target:j9});h({clock:Coe,target:qs});h({clock:qs.doneData,filter:e=>Uu(e),target:xoe});h({clock:qs.fail,target:B9});h({clock:qs.doneData,filter:e=>!Uu(e)&&!pA(e),fn:e=>({name:"Tournament Viewed",payload:gA(e,{source:"detail_page"})}),target:K1});h({clock:qs.doneData,filter:e=>!Uu(e),fn:e=>({slug:e.slug,limit:O9,offset:0}),target:Ro});h({clock:boe,target:Ro});h({clock:voe,target:yA});h({clock:Soe,target:bA});h({clock:koe,target:Ra});h({clock:Ioe,source:{loaded:Foe,pending:Ra.pending,pendingQuietly:Ed.pending},filter:({loaded:e,pending:t,pendingQuietly:n})=>!e&&!t&&!n,target:Ed});h({clock:Eoe,source:Poe,filter:(e,t)=>!e.includes(t),fn:(e,t)=>t,target:l1});h({clock:Loe,target:Ss});h({clock:Ss.done,source:LA,filter:(e,{params:{slug:t}})=>RA(e,t),fn:(e,{params:{slug:t,source:n}})=>({name:"Tournament Joined",payload:_A(e,t,n)}),target:K1});h({clock:Ss.fail,target:Boe});h({clock:Ss.done,fn:({params:{slug:e}})=>({slug:e,limit:O9,offset:0}),target:Ro});h({clock:Aoe,source:LA,filter:(e,{slug:t})=>RA(e,t),fn:(e,{slug:t,source:n})=>({name:"Tournament Rules Clicked",payload:_A(e,t,n??Bae)}),target:K1});h({clock:Toe,target:Hu});h({clock:Hu.doneData,filter:e=>!!e,fn:e=>({name:"Tournament Join Prompt Shown",payload:{tournamentSlug:e.slug}}),target:K1});h({clock:F9,target:TA});h({clock:F9,fn:e=>({name:"Tournament Join Prompt Dismissed",payload:{tournamentSlug:e}}),target:K1});h({clock:Ss.done,filter:({params:e})=>e.source==="game_prompt",fn:({params:e})=>e.slug,target:TA});h({clock:_oe,target:Ra});h({clock:Ra.fail,target:B9});Noe.watch(e=>{ln().localStorage.set(Oae,JSON.stringify(e))});const Bg=async e=>{try{return{status:200,data:await e()}}catch(t){if(sn(t))return{status:t.status,data:t.body??{}};throw t}},Uoe={get:(e,t)=>Bg(()=>_e.get(e,{query:t})),post:(e,t)=>Bg(()=>_e.post(e,t))},Hoe={get:e=>i8.get(e),set:(e,t)=>void i8.set(e,t)},Voe={get:e=>ia.get(e),set:(e,t)=>void ia.set(e,t)};let Ug=!1;const NA=()=>{Ug||(Ug=!0,Zae({http:Uoe,sessionStorage:Hoe,localStorage:Voe,toast:{error:(e,t)=>hn({level:"error",title:e,body:t})},translate:(e,t)=>
407w(e,t),trackEvent:(e,t)=>Te(e,t)}))};NA();const kA=x_({id:b_(),username:it().nullish(),role:it().nullish(),avatarUrl:it().nullish(),telegramPhoto:it().nullish(),email:it().nullish(),serviceLanguage:it().nullish(),mainCurrency:it().nullish(),verifiedEmail:it().nullish(),verifiedNameFirst:it().nullish(),keepInTouchEmail:it().nullish(),playBlock:Ps().nullish(),battlePassActive:Ps().nullish(),canCreateTribes:Ps().nullish(),appAuthenticatorStatus:it().nullish(),twoFAEmailStatus:it().nullish(),secondEmailSecure:it().nullish(),canChangePassword:Ps().nullish(),canCancelWithdrawal:Ps().nullish(),selfExclusionUntil:it().nullish(),kycStatus:it().nullish(),needsVerification:Ps().nullish(),affiliateCode:it().nullish(),canUseBrl:Ps().nullish(),isSportsbookBetaEnabled:Ps().nullish(),walletConnect:Ps().nullish(),telegramId:it().nullish(),telegramUsername:it().nullish(),termsAccepted:y_([Ps(),it()]).nullish(),clickId:it().nullish(),affiliateType:it().nullish(),affiliatedByCode:it().nullish()}).passthrough(),Woe=e=>e?{id:e.id,appAuthenticatorStatus:e.appAuthenticatorStatus??null,twoFAEmailStatus:e.twoFAEmailStatus??null,secondEmailSecure:e.secondEmailSecure??null,canChangePassword:!!e.canChangePassword,canCancelWithdrawal:!!e.canCancelWithdrawal,verifiedEmail:e.verifiedEmail??null,keepInTouchEmail:e.keepInTouchEmail??null,selfExclusionUntil:e.selfExclusionUntil??null,kycStatus:e.kycStatus??null,needsVerification:!!e.needsVerification}:null,IA=As(),MA=As();let OA=!1;const Zoe=()=>OA,Wu=Ye(()=>{U$(),V$(()=>{var e;return((e=ut.getState())==null?void 0:e.id)??null}),Z$(),xae(),vre(()=>{var e;return((e=ut.getState())==null?void 0:e.id)??null}),fae(),wae(),$$(e=>$t.watch(e).unsubscribe),Sre(),YH(),zH(),v_(),NA(),UY({getUserId:()=>{var e;return((e=ut.getState())==null?void 0:e.id)??null},isSelfExcluded:Hg,refreshBalances:()=>co(),refreshProfile:()=>Un()}),Nae({refreshBalances:()=>co()}),lae({isSelfExcluded:Hg,refreshBalances:()=>co()}),lV(),vae(),WV(),pae(),E_(),PR(),xj(),sO(),SI(),qj(),WI(),y3(Lre),y3(e=>e.type==="bet_result"),S_(),rx(),Cw(),OA=!0}),Goe=Ye(e=>{L_(e)}),zoe=Ye(e=>{F_(e)}),Un=Ye(async()=>{try{return await _e.get("/user/profile",{schema:kA})}catch(e){if(A_(e))return null;throw e}}),ut=Ls(null).on(Un.doneData,(e,t)=>t).reset(Td),PA=async()=>{const e=await Oy();e.failure&&(e.failure==="missing_init_data"&&await hw()==="alive"||Ny(e.failure))},c1=Ye(async()=>{const e=Ws()===vr.TELEGRAM;try{await Vj(),_ae()}catch(t){console.error("[session] Telegram web app init failed",t)}try{if(e){await PA();return}if(await hw()!=="absent")return;await Oy()}catch(t){console.error("[session] bootstrap failed",t)}}),qoe=Ye(PA),Po=Ls(!1).on(c1.finally,()=>!0);Ls(null).on(Un.failData,(e,t)=>T_(t)).reset(Un,Td);const Yoe=Ls("unknown").on(c1,()=>"loading").on($t.updates,(e,t)=>t?"authenticated":"anonymous").on(C_,()=>"unknown").on(c1.finally,e=>e==="loading"?"anonymous":e),Koe=ut.map(e=>Y4((e==null?void 0:e.selfExclusionUntil)??null)),yl=ut.map(e=>e!==null),Xoe=P(Po,$t,yl,(e,t,n)=>R9(G1({isSessionResolved:e,isAuthenticated:t,isProfileLoaded:n,isRestricted:!1}))),Hg=()=>{var e;return!R9(G1({isSessionResolved:Po.getState(),isAuthenticated:$t.getState(),isProfileLoaded:yl.getState(),isRestricted:Y4(((e=ut.getState())==null?void 0:e.selfExclusionUntil)??null)}))},Joe=["VIP","SPORT_VIP"],DA=e=>!!(e&&Joe.includes(e)),FA=ut.map(e=>DA(e==null?void 0:e.role));h({clock:IA,target:Wu});h({clock:Wu.done,target:c1});h({clock:d7,target:lw});h({clock:u7,target:ow});Xd.watch(e=>{yae(e)});h({clock:vj,target:qoe});h({clock:$t.updates,filter:e=>e,target:[Un,co]});h({clock:Wu.done,target:__});h({clock:Wu.done,target:jC});h({clock:Un.doneData,filter:e=>!!e,fn:e=>e.id,target:[$4,R_]});h({clock:iC,filter:({status:e})=>e===st.WITHDRAWN,fn:()=>{},target:co});h({clock:$t.updates,source:Po,filter:e=>e,fn:()=>{},target:Ht});h({clock:gn.done,fn:()=>{},target:Ga});h({clock:[gn.done,$t.updates],source:{currency:b3,strip:OC},filter:({currency:e,strip:t})=>!!e&&t.length>0,fn:({currency:e})=>e,target:NC});h({clock:Td,target:[N_,k_,Za,Xa,Ee,li]});h({clock:Un.doneData,filter:e=>!!e,target:[I4,O4,M4]});h({clock:Un.doneData,filter:e=>!!e&&!f1,target:[P4,F4]});h({clock:Un.doneData,filter:e=>!!e&&No.stakingEnabled&&!f1,fn:()=>{},target:m7});h({clock:Ni,filter:e=>
407No.stakingEnabled&&!f1&&xr(e)!==null,fn:()=>{},target:m7});const Qoe=e=>({printerId:String(e.walletId),amount:String(e.finalAmount),releasedAt:e.unlockTimeUTC});h({clock:y$,fn:e=>e.map(Qoe),target:hx});h({clock:bs.done,fn:({params:e})=>String(e.walletId),target:jd});h({clock:Un.doneData,filter:e=>!!(e&&e.serviceLanguage),fn:e=>String(e.serviceLanguage),target:Goe});h({clock:Un.doneData,filter:e=>!!e,target:zoe});O_(()=>{var e;return(e=ut.getState())==null?void 0:e.id});I_(()=>{const e=ut.getState();return e?{role:e.role??null,canUseBrl:e.canUseBrl??null,verifiedEmail:e.verifiedEmail??null,isSportsbookBetaEnabled:e.isSportsbookBetaEnabled??null}:null});h({clock:MA,target:M_});h({clock:ut.updates,fn:Woe,target:K4});h({clock:ra,target:Un});h({clock:ut.updates,filter:e=>!!e&&(!!(e!=null&&e.playBlock)||dae()),target:M9});h({clock:Td,target:sA});h({clock:ut.updates,fn:e=>(e==null?void 0:e.id)??null,target:dv});const $5e=Object.freeze(Object.defineProperty({__proto__:null,$isAuthenticated:$t,$isProfileLoaded:yl,$isSelfExcluded:Koe,$isSessionResolved:Po,$isSessionSettled:Xoe,$isVip:FA,$sessionStatus:Yoe,$user:ut,appStarted:IA,isRuntimeReady:Zoe,isVipRole:DA,loadProfileFx:Un,logoutClicked:MA,sessionBootstrapFx:c1,userProfileSchema:kA},Symbol.toStringTag,{value:"Module"}));export{$1e as $,sde as A,Zde as B,Zi as C,O1e as D,yj as E,Bue as F,mee as G,bj as H,ut as I,wn as J,S1e as K,S9 as L,r3 as M,loe as N,ue as O,t5e as P,q1 as Q,Zs as R,hue as S,pde as T,M1e as U,f5e as V,XH as W,a5e as X,Vne as Y,Une as Z,m5e as _,rV as a,_1e as a$,p5e as a0,sa as a1,gw as a2,tR as a3,hse as a4,R5e as a5,N5e as a6,k5e as a7,EA as a8,Moe as a9,Wue as aA,x5e as aB,C5e as aC,joe as aD,j5e as aE,$oe as aF,F5e as aG,_oe as aH,Roe as aI,r5e as aJ,s5e as aK,n5e as aL,Aoe as aM,k1e as aN,Yc as aO,MH as aP,td as aQ,z5 as aR,kH as aS,ba as aT,D0 as aU,I1e as aV,A1e as aW,gh as aX,_h as aY,ph as aZ,$e as a_,boe as aa,Uue as ab,voe as ac,l5e as ad,c5e as ae,Fn as af,H1 as ag,I5e as ah,BX as ai,$X as aj,SA as ak,koe as al,mA as am,Hue as an,O5e as ao,P5e as ap,D5e as aq,fA as ar,Eoe as as,Loe as at,Jue as au,Xue as av,Kue as aw,vA as ax,yoe as ay,Vue as az,F1e as b,Tde as b$,T1e as b0,xh as b1,hh as b2,L1e as b3,av as b4,KU as b5,Ah as b6,Dh as b7,P0 as b8,YU as b9,R9 as bA,Va as bB,to as bC,h9 as bD,rde as bE,ude as bF,ade as bG,HY as bH,ide as bI,lde as bJ,AS as bK,Mr as bL,cde as bM,mde as bN,hde as bO,gde as bP,wde as bQ,Cde as bR,xde as bS,TS as bT,yde as bU,bde as bV,vde as bW,Ide as bX,Mde as bY,Lde as bZ,Ade as b_,ZU as ba,GU as bb,QU as bc,eH as bd,R1e as be,XU as bf,Th as bg,tH as bh,cR as bi,fH as bj,gH as bk,N1e as bl,zo as bm,Yo as bn,Ko as bo,Vl as bp,wh as bq,G1 as br,Y4 as bs,yl as bt,Po as bu,Xoe as bv,FH as bw,jH as bx,W5 as by,hn as bz,Me as c,fR as c$,_de as c0,Rde as c1,_S as c2,Ede as c3,sre as c4,MA as c5,ZL as c6,Ot as c7,Kde as c8,Xde as c9,Yce as cA,KD as cB,Kce as cC,ND as cD,kD as cE,ID as cF,PD as cG,oD as cH,gx as cI,bD as cJ,vD as cK,FA as cL,Hne as cM,qne as cN,ao as cO,Zce as cP,Zd as cQ,DD as cR,Foe as cS,ox as cT,Ioe as cU,D4 as cV,CO as cW,r2 as cX,A8 as cY,ic as cZ,pie as c_,fx as ca,kO as cb,tD as cc,Qt as cd,VC as ce,q2 as cf,Uce as cg,Vce as ch,Oce as ci,gD as cj,wD as ck,CD as cl,jce as cm,XP as cn,Lce as co,Tce as cp,mx as cq,pD as cr,gie as cs,Ace as ct,It as cu,_P as cv,xr as cw,px as cx,Wce as cy,xD as cz,j1e as d,p0e as d$,Ho as d0,LR as d1,a1 as d2,lie as d3,u8 as d4,Sde as d5,vw as d6,iL as d7,Qne as d8,Fde as d9,X0e as dA,cG as dB,J0e as dC,Tr as dD,mp as dE,k0e as dF,We as dG,hq as dH,Bn as dI,Lo as dJ,Qc as dK,Hs as dL,QE as dM,p2e as dN,g2e as dO,Ql as dP,x2e as dQ,N2 as dR,C2e as dS,t9 as dT,h2e as dU,t3 as dV,iG as dW,w2e as dX,m0e as dY,f0e as dZ,fa as d_,$de as da,Hde as db,$C as dc,Nde as dd,Ode as de,M3 as df,Kie as dg,Xie as dh,V8 as di,Yoe as dj,Qce as dk,c1 as dl,$ue as dm,eue as dn,A1 as dp,Ou as dq,Kl as dr,Xl as ds,Jl as dt,rG as du,aG as dv,oG as dw,K0e as dx,_r as dy,Y0e as dz,ie as e,Doe as e$,M1 as e0,I1 as e1,wG as e2,Cs as e3,CG as e4,h0e as e5,_0e as e6,At as e7,F6 as e8,HG as e9,C0e as eA,F7 as eB,yt as eC,j1 as eD,ml as eE,A2e as eF,Xc as eG,ul as eH,U0e as eI,j0e as eJ,pn as eK,ro as eL,b2e as eM,Es as eN,PE as eO,qse as eP,S8 as eQ,xR as eR,l0 as eS,kR as eT,aie as eU,IR as eV,vR as eW,SR as eX,ER as eY,j2 as eZ,uie as e_,uE as ea,T0e as eb,R0e as ec,P1 as ed,W1e as ee,WG as ef,A0e as eg,so as eh,L0e as ei,S0e as ej,E0e as ek,Tn as el,_G as em,B7 as en,Xn as eo,v0e as ep,NG as eq,IG as er,y0e as es,wp as et,RG as eu,ts as ev,b0e as ew,Mt as ex,tE as ey,A2 as ez,D1e as f,G0e as f$,Toe as f0,o5e as f1,g5e as f2,F9 as f3,w8 as f4,w5e as f5,cj as f6,cy as f7,qu as f8,hR as f9,RY as fA,V2e as fB,Aa as fC,Z2e as fD,G2e as fE,W2e as fF,mr as fG,NY as fH,J2e as fI,ede as fJ,tde as fK,ye as fL,jY as fM,nde as fN,mv as fO,xS as fP,eG as fQ,e3 as fR,o0e as fS,lG as fT,fp as fU,tG as fV,l0e as fW,i0e as fX,c0e as fY,Yl as fZ,nG as f_,Qde as fa,hre as fb,kY as fc,W6 as fd,Y2e as fe,q2e as ff,z2e as fg,LY as fh,ES as fi,Q2e as fj,LS as fk,MY as fl,OY as fm,PY as fn,TY as fo,K2e as fp,nn as fq,EY as fr,_Y as f
407s,yS as ft,bS as fu,vS as fv,wS as fw,X2e as fx,H2e as fy,U1 as fz,P1e as g,I3 as g$,Bz as g0,q0e as g1,un as g2,Z0e as g3,z0e as g4,e2e as g5,s2e as g6,Kz as g7,t2e as g8,qE as g9,m2e as gA,Xz as gB,hie as gC,gR as gD,E8 as gE,CR as gF,cie as gG,x8 as gH,mR as gI,bw as gJ,ode as gK,v8 as gL,wR as gM,oie as gN,rie as gO,nie as gP,Jde as gQ,RR as gR,Yse as gS,jN as gT,_ie as gU,$N as gV,Ple as gW,Dle as gX,nI as gY,aI as gZ,FX as g_,nq as ga,sq as gb,aq as gc,i2e as gd,Au as ge,zE as gf,Jz as gg,l2e as gh,c2e as gi,u2e as gj,d2e as gk,tq as gl,Kn as gm,GE as gn,eq as go,Q0e as gp,GV as gq,U1e as gr,yr as gs,KE as gt,r2e as gu,o2e as gv,a2e as gw,_u as gx,n2e as gy,f2e as gz,OC as h,Sle as h$,Ie as h0,sf as h1,Ble as h2,tf as h3,JN as h4,wie as h5,oI as h6,UX as h7,HN as h8,sI as h9,Mc as hA,mI as hB,Tie as hC,Ole as hD,$le as hE,Fle as hF,Il as hG,o5 as hH,pI as hI,gI as hJ,wI as hK,Z8 as hL,u0 as hM,jie as hN,c2 as hO,Qie as hP,Nk as hQ,Hie as hR,Vie as hS,Wie as hT,Zie as hU,U8 as hV,En as hW,Cr as hX,uN as hY,Yn as hZ,dN as h_,Nie as ha,lI as hb,Oie as hc,iI as hd,Er as he,KN as hf,la as hg,cI as hh,jX as hi,fI as hj,qN as hk,dI as hl,uI as hm,Rie as hn,kie as ho,jle as hp,GN as hq,Iie as hr,Pie as hs,C4 as ht,Xw as hu,Mie as hv,r5 as hw,rI as hx,ps as hy,hI as hz,NC as i,zie as i$,Lle as i0,Ale as i1,Tle as i2,iN as i3,mk as i4,Bw as i5,vie as i6,Uw as i7,lN as i8,g4 as i9,_le as iA,Nle as iB,xC as iC,yC as iD,Rle as iE,kle as iF,Bs as iG,Mle as iH,ef as iI,Ele as iJ,ble as iK,vI as iL,Hk as iM,Sie as iN,Eie as iO,$k as iP,Fie as iQ,Bk as iR,Uk as iS,Wk as iT,Vk as iU,Zk as iV,jk as iW,tr as iX,X8 as iY,Mw as iZ,Gie as i_,iC as ia,st as ib,G8 as ic,qk as id,Yk as ie,Xk as ig,Jk as ih,eI as ii,iie as ij,tI as ik,Lie as il,Gk as im,zk as io,Kk as ip,Qk as iq,Ile as ir,vle as is,SN as it,Aie as iu,LN as iv,bc as iw,pN as ix,Vt as iy,sue as iz,X1e as j,gE as j$,qie as j0,Yie as j1,H8 as j2,eN as j3,nle as j4,ple as j5,gle as j6,Cle as j7,xle as j8,yle as j9,kk as jA,Uie as jB,B8 as jC,Ik as jD,yie as jE,Bie as jF,Ok as jG,c5 as jH,Jie as jI,Cie as jJ,Fa as jK,kl as jL,jQ as jM,aue as jN,N3 as jO,xie as jP,xN as jQ,d5 as jR,m5 as jS,bie as jT,fG as jU,mG as jV,d0e as jW,hG as jX,pp as jY,u0e as jZ,D0e as j_,ile as ja,lle as jb,wle as jc,Die as jd,Dw as je,a5 as jf,rC as jg,Pk as jh,Dk as ji,Fk as jj,Pe as jk,ole as jl,ale as jm,rle as jn,cle as jo,ele as jp,tle as jq,hle as jr,mle as js,sle as jt,dle as ju,ule as jv,fle as jw,$ie as jx,Mk as jy,W8 as jz,cl as k,BI as k$,G1e as k0,I0e as k1,Cv as k2,dl as k3,F0e as k4,z7 as k5,G7 as k6,LE as k7,P0e as k8,zs as k9,y2e as kA,gq as kB,U6 as kC,R2 as kD,w0e as kE,gG as kF,g0e as kG,xG as kH,Kv as kI,H1e as kJ,wu as kK,VG as kL,$G as kM,N0e as kN,D6 as kO,T2 as kP,Jn as kQ,gO as kR,Fc as kS,Gce as kT,zce as kU,qce as kV,ix as kW,j4 as kX,Wle as kY,Zle as kZ,fr as k_,yu as ka,oz as kb,dd as kc,iz as kd,gt as ke,Sn as kf,az as kg,O0e as kh,KG as ki,YG as kj,Z1e as kk,pE as kl,M0e as km,W7 as kn,z1e as ko,nz as kp,sz as kq,XG as kr,Cp as ks,KV as kt,U0 as ku,k2 as kv,e9 as kw,pq as kx,wq as ky,F1 as kz,AZ as l,tO as l$,zle as l0,hf as l1,D3 as l2,Rf as l3,Nf as l4,Gle as l5,Ule as l6,vC as l7,xf as l8,VI as l9,Wde as lA,gu as lB,no as lC,kG as lD,MG as lE,OG as lF,Xle as lG,dce as lH,cce as lI,xM as lJ,rce as lK,sce as lL,lce as lM,uce as lN,nce as lO,oce as lP,ace as lQ,ice as lR,L5 as lS,Ol as lT,g0 as lU,Fl as lV,Qa as lW,S5 as lX,Jf as lY,PC as lZ,eO as l_,Kle as la,Hle as lb,UK as lc,AC as ld,U3 as le,Yle as lf,qle as lg,yf as lh,Sf as li,bC as lj,FI as lk,Vle as ll,pf as lm,NR as ln,yR as lo,C8 as lp,mie as lq,L8 as lr,nR as ls,uR as lt,bR as lu,Dde as lv,Ude as lw,jde as lx,Bde as ly,Vde as lz,xZ as m,Pue as m$,wce as m0,v5 as m1,nr as m2,hce as m3,h0 as m4,RM as m5,BL as m6,$f as m7,Pl as m8,jr as m9,NM as mA,tce as mB,Qle as mC,Uf as mD,Zf as mE,Xf as mF,FM as mG,Vf as mH,qf as mI,Gf as mJ,x0 as mK,gce as mL,ece as mM,Ff as mN,x5 as mO,y5 as mP,jf as mQ,TM as mR,nE as mS,EG as mT,hu as mU,x0e as mV,vG as mW,Oue as mX,k9 as mY,Rue as mZ,Nue as m_,em as ma,R5 as mb,yce as mc,MM as md,mce as me,OM as mf,Qf as mg,nO as mh,xce as mi,IM as mj,w5 as mk,pce as ml,ZX as mm,Yf as mn,b5 as mo,m0 as mp,fce as mq,Vs as mr,w0 as ms,Jle as mt,Hf as mu,y0 as mv,b0 as mw,Cce as mx,Bf as my,Dl as mz,J1e as n,jL as n$,yue as n0,zre as n1,bue as n2,QL as n3,Due as n4,Fue as n5,jue as n6,Lue as n7,vue as n8,JL as n9,zq as nA,F2e as nB,fS as nC,N2e as nD,$2e as nE,U2e as nF,Kq as nG,B2e as nH,Xq as nI,Wq as nJ,y8 as nK,pR as nL,k5 as nM,I5 as nN,rm as nO,am as nP,bce as nQ,om as nR,im as nS,lm as nT,sm as nU,Yu as nV,die as nW,Ax as nX,Sx as nY,Pce as nZ,Dce as n_,Mue as na,Aue as nb,kue as nc,T9 as nd,Tue as ne,Iue as nf,_ue as ng,Eue as nh,Sue as ni,xue as nj,Koe as nk,Gre as nl,j2e as nm,Gq as nn,M2e as no,P2e as np,O2e as nq,T2e as nr,_2e as ns,R2e as nt,k2e as nu,I2e as nv,Bq as nw,V1e as nx,D2e as ny,Zq as nz,op as o,o1e as o$,fue as o0,Nce as o1,Bce as o2,$P as o3,Rce as o4,L4 as o5,Ece as o6,yD as o7,Xce as o8,$ce as o9,vz as oA,Ez as oB,OE as oC,TE as oD,G5 as oE,v1e as oF,u1e as oG,n1e as oH,fie as oI,s1e as oJ,a1e as oK,t1e as oL,E1e as oM,h1e as oN,p1e as oO,g1e as oP,Zy as oQ,w1e as oR,b1e as oS,Wy as oT,e1e as oU,m1e as oV,o$ as oW,ag as oX,C1e as oY,x1e as oZ,y1e as o_,hD as oa,Hce as ob,_ce as oc,vce as od,mg as oe,xse as of,k4 as og,wz as oh,mz as oi,V0e as oj,q1e as ok,gz as ol,xz as om,B0e as on,$0e as oo,Ov as op,Gl as oq,Lz as or,pz as os,vu as ot,fz as ou,H0e as ov,RE as ow,hz as ox,W0e as oy,Zl as oz,yZ as p,sie as p$,l1e as p0,$y as p1,r$ as p2,d1e as p3,p$ as p4,By as p5,a$ as p6,i1e as p7,c1e as p8,Hy as p9,b5e as pA,v5e as pB,E5e as pC,L5e as pD,S5e as pE,poe as pF,zue as pG,Zue as pH,wA as pI,Gue as pJ,toe as pK,goe as pL,woe as pM,Aq as pN,Lq as pO,S2e as pP,v2e as pQ,Sq as pR,yp as pS,n9 as pT,Nq as pU,_q as pV,kq as pW,Eq as pX,E2e as pY,L2e as pZ,dR as p_,Yj as pa,f1e as pb,g$ as pc,r1e as pd,u$ as pe,M5e as pf,Soe as pg,i5e as ph,h5e as pi,A5e as pj,T5e as pk,_5e as pl,Coe as pm,CA as pn,noe as po,Que as pp,e5e as pq,d5e as pr,u5e as ps,uue as pt,D9 as pu,que as pv,Yue as pw,$9 as px,Ooe as py,y5e as pz,P6 as q,Mh as q0,Oh as q1,M4 as q2,tue as q3,zJ as q4,Pde as q5,dde as q6,fde as q7,kde as q8,Oy as q9,Jce as qA,Zoe as qB,I7 as qC,$v as qD,Y1e as qE,K1e as qF,id as qG,k7 as qH,bZ as qI,$i as qJ,e0e as qK,t0e as qL,n0e as qM,s0e as qN,kZ as qO,rue as qP,$u as qQ,RQ as qR,l8 as qS,iue as qT,$5e as qU,vj as qa,LL as qb,B1e as qc,$V as qd,TD as qe,kce as qf,Fce as qg,uD as qh,Ice as qi,Mce as qj,qde as qk,Yde as ql,jl as qm,Cre as qn,Sce as qo,mue as qp,gue as qq,pue as qr,Cue as qs,wue as qt,lue as qu,Qse as qv,oue as qw,BQ as qx,IA as qy,nue as qz,Q1e as r,X5 as s,a0e as t,r0e as u,Ir as v,Ms as w,gd as x,Or as y,Os as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.