Loading
function(e,t,n){"use strict";n.d(t,{Go:()=>m,Le:()=>S,R8:()=>C,_S:()=>O,b5:()=>R,q6:()=>I,sX:()=>N,vF:()=>g}),n(321073),n(134528),n(947204);var i=n(35039),r=n(675970),a=n(155718),s=n(7584),l=n(935208),o=n(240248);n(835517);var d=n(957806),c=n(627369);n(399667);var u=n(817379),_=n(142617),E=n(309913),A=n(922704),h=n(763166),f=n(105292);function I(e){var t,n;return(0,_.wV)("transformCheckpoint2026CardComponent")&&(null!=e.character||null!=e.stats)?{version:e.version,character:null!=e.character?{base:(t=e.character).base,shoes:t.shoes,outfit:t.outfit,face:t.face,hat:t.hat,wearable:t.wearable,aura:t.aura}:void 0,stats:null!=e.stats?{totalVoiceMinutes:(n=e.stats).total_voice_minutes,numMessagesSent:n.num_messages_sent,numEmojisSent:n.num_emojis_sent,totalDaysPlayed:n.total_days_played,topEmoji:null!=n.top_emoji?{emojiId:l.default.isProbablyAValidSnowflake(n.top_emoji.emoji_id)?n.top_emoji.emoji_id:void 0,emojiName:n.top_emoji.emoji_name}:void 0,topGuild:null!=n.top_guild?{guildId:n.top_guild.guild_id,guildName:n.top_guild.guild_name,guildIcon:n.top_guild.guild_icon}:void 0,topGuildNumDaysInteracted:n.top_guild_num_days_interacted,topGame:null!=n.top_game?{applicationId:n.top_game.application_id,applicationName:n.top_game.application_name,applicationImageId:n.top_game.application_image_id}:void 0,powerLevel:n.power_level,powerLevelPercentile:n.power_level_percentile}:void 0,cardColorPalette:e.card_color_palette??i.h.NONE}:null}let p=new Set([r.Q.DEFAULT,r.Q.CHARACTER_ONLY]),T=new Set([r.Q.DEFAULT,r.Q.STATS_ONLY]);function m(e,t,n){let i,r,a;return{version:E.wk.V2026,character:p.has(e)?t??void 0:void 0,stats:T.has(e)&&null!=n?(i=n.guilds?.guilds[0],r=n.emojis?.emojis[0],a=n.games?.games[0]?.game,{totalVoiceMinutes:n.voice?.totalVoiceMinutes??0,numMessagesSent:n.messages?.numMessagesSent??0,numEmojisSent:n.emojis?.numEmojisSent??0,totalDaysPlayed:n.games?.totalDaysPlayed??0,topEmoji:null!=r?{emojiId:r.id,emojiName:r.name}:void 0,topGuild:null!=i?{guildId:i.guild.id,guildName:i.guild.name,guildIcon:i.guild.icon??void 0}:void 0,topGuildNumDaysInteracted:i?.numDaysInteracted??0,topGame:null!=a?{applicationId:a.id,applicationName:a.name,applicationImageId:a.iconHash}:void 0,powerLevel:n.power?.powerLevel??0,powerLevelPercentile:n.power?.powerLevelPercentile??0}):void 0,cardColorPalette:(0,c.o)(t)}}function g(e,t){let n=[];return(0,u.fA)(e.wearable).forEach(i=>{let r=e[i],a=u.qM[i][r]?.layer;null!=a&&""!==a&&n.push(`${a}?height=${t}&width=${t}`)}),n}function S(e){return new Intl.NumberFormat(f.intl.currentLocale,{notation:"compact",compactDisplay:"short"}).format(e)}function N(e){return Math.min(Math.max(Math.round(e/100*E.w0),E.Qq),E.sh)}function C(e){var t;let n;return{powerLevel:S(e.powerLevel),powerLevelUnits:N(e.powerLevelPercentile),voice:{text:(n=Math.round(e.totalVoiceMinutes))>0?(0,d.oO)(n):f.intl.formatToPlainString(f.t.iXLF9W,{minutes:n}),accessibilityLabel:f.intl.formatToPlainString(h.default.lw35aH,{duration:(0,d.GM)(n)})},messages:{text:e.numMessagesSent>0?e.numMessagesSent.toLocaleString(f.intl.currentLocale):f.intl.formatToPlainString(h.default.foKBCN,{count:e.numMessagesSent}),accessibilityLabel:f.intl.formatToPlainString(h.default.IdRUAC,{count:e.numMessagesSent})},topGuildDaysInteracted:function(e){if(null==e.topGuild){var t;return{text:t=f.intl.string(h.default.GultYJ),accessibilityLabel:t}}return{text:f.intl.formatToPlainString(f.t.GBLpQ8,{days:e.topGuildNumDaysInteracted}),accessibilityLabel:f.intl.formatToPlainString(h.default.MpSH8v,{days:e.topGuildNumDaysInteracted})}}(e),topGuildName:function(e){if(null!=e.topGuild)return{text:e.topGuild.guildName,accessibilityLabel:f.intl.formatToPlainString(h.default["9UTJ+t"],{guildName:e.topGuild.guildName})}}(e),reactions:{text:e.numEmojisSent>0?e.numEmojisSent.toLocaleString(f.intl.currentLocale):f.intl.formatToPlainString(h.default.RHYx1k,{count:e.numEmojisSent}),accessibilityLabel:f.intl.formatToPlainString(h.default["36qpUG"],{count:e.numEmojisSent})},topEmojiName:function(e){if(!(e.numEmojisSent<=0)&&null!=e.topEmoji)return{text:null==e.topEmoji.emojiId?s.Ay.convertSurrogateToName(e.topEmoji.emojiName):`:${e.topEmoji.emojiName}:`,accessibilityLabel:f.intl.formatToPlainString(h.default.CcBo8C,{emojiName:e.topEmoji.emojiName})}}(e),daysPlayed:{text:e.totalDaysPlayed>0?f.intl.formatToPlainString(f.t.GBLpQ8,{days:e.totalDaysPlayed}):f.intl.string(h.default.mg1NPe),accessibilityLabel:f.intl.formatToPlainString(h.default.LYcKX7,{days:e.totalDaysPlayed})},topGameName:function(e){if(!(e.totalDaysPlayed<=0)&&null!=e.topGame)return{text:e.topGame.applicationName,accessibilityLabel:f.intl.formatToPlainString(h.default.kLqpNC,{gameName:e.topGame.applicationName})}}(e),topEmoji:e.topEmoji,topGuild:e.topGuild,topGuildAcronymCharacter:null!=e.topGuild?(t=e.topGuild.guildName,Array.from((0,o.oN)(t)).at(0)?.toLocaleUpperCase(f.intl.currentLocale)):void 0,topGame:e.topGame}}function O(e){let t=e.components[0];return null==t||t.type!==a.I5.CHECKPOINT_CARD?null:t.checkpointData}function R(e){switch(e.version){case E.wk.V2025:return f.intl.string(A.default.goiR2u);case E.wk.V2026:default:return null}}}