2026-07-28 08:39:19 +00:00
// Module ID: 11145
// Function ID: 86475
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-28 08:39:19 +00:00
// Dependencies: [27, 4157, 5026, 1911, 3793, 653, 4602, 1853, 11146, 3810, 11147, 4195, 1832, 7885, 9639, 9554, 689, 4355, 2]
2026-07-24 07:16:23 +00:00
// Exports: getChannelHighlightNodes, getEmojiHighlightNodes, getGameHighlightNodes, getGameMentionInputNodes, getMatchedOptions, getMatchedOptionsWithValue, getRoleHighlightNodes, getSilentHighlightNodes, getTextBeforeFirstOption, getUsernameHighlightNodes, serializeComposerGameMentions
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 11145 (_createForOfIteratorHelperLoose)
import { Image } from "get ActivityIndicator" ;
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
2026-07-28 08:39:19 +00:00
import closure_5 from "_isNativeReflectConstruct" ;
2026-07-23 10:11:24 +00:00
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
2026-07-28 08:39:19 +00:00
import closure_7 from "_isNativeReflectConstruct" ;
2026-07-23 10:11:24 +00:00
import { Permissions } from "ME" ;
2026-07-24 07:16:23 +00:00
import regExp from "regExp" ;
2026-07-23 10:11:24 +00:00
import { EmojiIntention } from "set" ;
2026-07-24 07:16:23 +00:00
let closure_10 ;
2026-07-28 08:39:19 +00:00
let closure_11 ;
2026-07-24 07:16:23 +00:00
let closure_9 ;
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
2026-07-28 08:39:19 +00:00
function findTokenLocations ( arr , closure_9 , arg2 ) {
2026-07-24 07:16:23 +00:00
const items = [ ] ;
2026-07-28 08:39:19 +00:00
let index = arr . indexOf ( closure_9 ) ;
2026-07-24 07:16:23 +00:00
if ( - 1 !== index ) {
do {
let tmp2 = index ;
if ( arg2 ( index ) ) {
arr = items . push ( index ) ;
}
2026-07-28 08:39:19 +00:00
index = arr . indexOf ( closure_9 , index + closure_9 . length ) ;
2026-07-24 07:16:23 +00:00
} while ( - 1 !== index ) ;
}
return items ;
}
2026-07-28 08:39:19 +00:00
function findGameMentionTokens ( text , name , items ) {
2026-07-24 07:16:23 +00:00
let closure_0 = text ;
let closure_1 = name ;
2026-07-28 08:39:19 +00:00
if ( items === undefined ) {
2026-07-24 07:16:23 +00:00
items = [ ] ;
}
2026-07-28 08:39:19 +00:00
let c2 ;
let closure_3 ;
const tmp = callback ( name ) ;
c2 = tmp ;
2026-07-24 07:16:23 +00:00
const found = items . filter ( ( arg0 ) = > arg0 !== closure_1 ) ;
2026-07-28 08:39:19 +00:00
closure_3 = found . map ( callback ) ;
2026-07-24 07:16:23 +00:00
return {
2026-07-28 08:39:19 +00:00
token : tmp ,
locations : findTokenLocations ( text , tmp , ( arg0 ) = > ! ( function hasLongerTrackedMatch ( closure_0 , arg1 , c2 , closure_3 ) {
2026-07-24 07:16:23 +00:00
let closure_1 = arg1 ;
2026-07-28 08:39:19 +00:00
let closure_2 = c2 ;
return closure_3 . some ( ( arg0 ) = > {
2026-07-24 07:16:23 +00:00
let startsWithResult = arg0 . length > length . length ;
if ( startsWithResult ) {
startsWithResult = closure_0 . startsWith ( arg0 , closure_1 ) ;
}
return startsWithResult ;
} ) ;
2026-07-28 08:39:19 +00:00
} ) ( closure_0 , arg0 , c2 , closure_3 ) )
2026-07-24 07:16:23 +00:00
} ;
}
2026-07-28 08:39:19 +00:00
function buildGameMentionResult ( id ) {
let uri = importDefault ( 4195 ) ( id . id , id . icon , { size : 32 } ) ;
const obj = { location : 0 , length : callback ( id . name ) . length , icon : null , iconSize : 16 , iconCornerRadius : 4 , iconSpacing : 4 } ;
if ( obj2 . isNullOrEmpty ( uri ) ) {
uri = Image . resolveAssetSource ( importDefault ( 7885 ) ) . uri ;
}
obj . icon = uri ;
return obj ;
}
( { GAME_MENTION_INPUT_PREFIX : closure_9 , formatGameMentionRaw : closure_10 , formatGameMentionToken : closure_11 } = regExp ) ;
2026-07-24 07:16:23 +00:00
let tmp3 = / [ \ t - \ r \ x A 0 \ u 1 6 8 0 \ u 2 0 0 0 - \ u 2 0 0 A \ u 2 0 2 8 \ u 2 0 2 9 \ u 2 0 2 F \ u 2 0 5 F \ u 3 0 0 0 \ u F E F F ] ( ( ? : [ \ x 2 D 0 - 9 A - Z _ a - z \ x A A \ x B 2 \ x B 3 \ x B 5 \ x B 9 \ x B A \ x B C - \ x B E \ x C 0 - \ x D 6 \ x D 8 - \ x F 6 \ x F 8 - \ u 0 2 C 1 \ u 0 2 C 6 - \ u 0 2 D 1 \ u 0 2 E 0 - \ u 0 2 E 4 \ u 0 2 E C \ u 0 2 E E \ u 0 3 7 0 - \ u 0 3 7 4 \ u 0 3 7 6 \ u 0 3 7 7 \ u 0 3 7 A - \ u 0 3 7 D \ u 0 3 7 F \ u 0 3 8 6 \ u 0 3 8 8 - \ u 0 3 8 A \ u 0 3 8 C \ u 0 3 8 E - \ u 0 3 A 1 \ u 0 3 A 3 - \ u 0 3 F 5 \ u 0 3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5 D \ u 0 C 6 0 \ u 0 C 6 1 \ u 0 C 6 6 - \ u 0 C 6 F \ u 0 C 7 8 - \ u 0 C 7 E \ u 0 C 8 0 \ u 0 C 8 5 - \ u 0 C 8 C \ u 0 C 8 E - \ u 0 C 9 0 \ u 0 C 9 2 - \ u 0 C A 8 \ u 0 C A A - \ u 0 C B 3 \ u 0 C B 5 - \ u 0 C B 9 \ u 0 C B D \ u 0 C D D \ u 0 C D E \ u 0 C E 0 \ u 0 C E 1 \ u 0 C E 6 - \ u 0 C E F \ u 0 C F 1 \ u 0 C F 2 \ u 0 D 0 4 - \ u 0 D 0 C \ u 0 D 0 E - \ u 0 D 1 0 \ u 0 D 1 2 - \ u 0 D 3 A \ u 0 D 3 D \ u 0 D 4 E \ u 0 D 5 4 - \ u 0 D 5 6 \ u 0 D 5 8 - \ u 0 D 6 1 \ u 0 D 6 6 - \ u 0 D 7 8 \ u 0 D 7 A - \ u 0 D 7 F \ u 0 D 8 5 - \ u 0 D 9 6 \ u 0 D 9 A - \ u 0 D B 1 \ u 0 D B 3 - \ u 0 D B B \ u 0 D B D \ u 0 D C 0 - \ u 0 D C 6 \ u 0 D E 6 - \ u 0 D E F \ u 0 E 0 1 - \ u 0 E 3 A \ u 0 E 4 0 - \ u 0 E 5 B \ u 0 E 8 1 \ u 0 E 8 2 \ u 0 E 8 4 \ u 0 E 8 6 - \ u 0 E 8 A \ u 0 E 8 C - \ u 0 E A 3 \ u 0 E A 5 \ u 0 E A 7 - \ u 0 E B 0 \ u 0 E B 2 \ u 0 E B 3 \ u 0 E B D \ u 0 E C 0 - \ u 0 E C 4 \ u 0 E C 6 \ u 0 E D 0 - \ u 0 E D 9 \ u 0 E D C - \ u 0 E D F \ u 0 F 0 0 \ u 0 F 2 0 - \ u 0 F 3 3 \ u 0 F 4 0 - \ u 0 F 4 7 \ u 0 F 4 9 - \ u 0 F 6 C \ u 0 F 8 8 - \ u 0 F 8 C \ u 1 0 0 0 - \ u 1 0 2 A \ u 1 0 3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\ u 1 F C 6 - \ u 1 F C C \ u 1 F D 0 - \ u 1 F D 3 \ u 1 F D 6 - \ u 1 F D B \ u 1 F E 0 - \ u 1 F E C \ u 1 F F 2 - \ u 1 F F 4 \ u 1 F F 6 - \ u 1 F F C \ u 2 0 7 0 \ u 2 0 7 1 \ u 2 0 7 4 - \ u 2 0 7 9 \ u 2 0 7 F - \ u 2 0 8 9 \ u 2 0 9 0 - \ u 2 0 9 C \ u 2 1 0 2 \ u 2 1 0 7 \ u 2 1 0 A - \ u 2 1 1 3 \ u 2 1 1 5 \ u 2 1 1 9 - \ u 2 1 1 D \ u 2 1 2 4 \ u 2 1 2 6 \ u 2 1 2 8 \ u 2 1 2 A - \ u 2 1 2 D \ u 2 1 2 F - \ u 2 1 3 9 \ u 2 1 3 C - \ u 2 1 3 F \ u 2 1 4 5 - \ u 2 1 4 9 \ u 2 1 4 E \ u 2 1 5 0 - \ u 2 1 8 9 \ u 2 4 6 0 - \ u 2 4 9 B \ u 2 4 E A - \ u 2 4 F F \ u 2 7 7 6 - \ u 2 7 9 3 \ u 2 C 0 0 - \ u 2 C E 4 \ u 2 C E B - \ u 2 C E E \ u 2 C F 2 \ u 2 C F 3 \ u 2 C F D \ u 2 D 0 0 - \ u 2 D 2 5 \ u 2 D 2 7 \ u 2 D 2 D \ u 2 D 3 0 - \ u 2 D 6 7 \ u 2 D 6 F \ u 2 D 8 0 - \ u 2 D 9 6 \ u 2 D A 0 - \ u 2 D A 6 \ u 2 D A 8 - \ u 2 D A E \ u 2 D B 0 - \ u 2 D B 6 \ u 2 D B 8 - \ u 2 D B E \ u 2 D C 0 - \ u 2 D C 6 \ u 2 D C 8 - \ u 2 D C E \ u 2 D D 0 - \ u 2 D D 6 \ u 2 D D 8 - \ u 2 D D E \ u 2 E 2 F \ u 3 0 0 5 - \ u 3 0 0 7 \ u 3 0 2 1 - \ u 3 0 2 9 \ u 3 0 3 1 - \ u 3 0 3 5 \ u 3 0 3 8 - \ u 3 0 3 C \ u 3 0 4 1 - \ u 3 0 9 6 \ u 3 0 9 D - \ u 3 0 9 F \ u 3 0 A 1 - \ u 3 0 F A \ u 3 0 F C - \ u 3 0 F F \ u 3 1 0 5 - \ u 3 1 2 F \ u 3 1 3 1 - \ u 3 1 8 E \ u 3 1 9 2 - \ u 3 1 9 5 \ u 3 1 A 0 - \ u 3 1 B F \ u 3 1 F 0 - \ u 3 1 F F \ u 3 2 2 0 - \ u 3 2 2 9 \ u 3 2 4 8 - \ u 3 2 4 F \ u 3 2 5 1 - \ u 3 2 5 F \ u 3 2 8 0 - \ u 3 2 8 9 \ u 3 2 B 1 - \ u 3 2 B F \ u 3 4 0 0 - \ u 4 D B F \ u 4 E 0 0 - \ u A 4 8 C \ u A 4 D 0 - \ u A 4 F D \ u A 5 0 0 - \ u A 6 0 C \ u A 6 1 0 - \ u A 6 2 B \ u A 6 4 0 - \ u A 6 6 E \ u A 6 7 F - \ u A 6 9 D \ u A 6 A 0 - \ u A 6 E F \ u A 7 1 7 - \ u A 7 1 F \ u A 7 2 2 - \ u A 7 8 8 \ u A 7 8 B - \ u A 7 C D \ u A 7 D 0 \ u A 7 D 1 \ u A 7 D 3 \ u A 7 D 5 - \ u A 7 D C \ u A 7 F 2 - \ u A 8 0 1 \ u A 8 0 3 - \ u A 8 0 5 \ u A 8 0 7 - \ u A 8 0 A \ u A 8 0 C - \ u A 8 2 2 \ u A 8 3 0 - \ u A 8 3 5 \ u A 8 4 0 - \ u A 8 7 3 \ u A 8 8 2 - \ u A 8 B 3 \ u A 8 D 0
2026-07-28 08:39:19 +00:00
let closure_13 = tmp3 ;
const re14 = /:((?:[\0-\x08\x0E-\x1F!-9;-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?(?:::skin-tone-[0-9])?):/g ;
const re15 = /@((?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-"\$-9;-\?A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)#([0-9]{4}))/g ;
const re16 = /@([\.0-9_a-z]{2,32})/g ;
const re17 = /@(((?:[\0-"\$-9;-\?A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){1,100}))(?![0-9A-Z_a-z]*#)/g ;
const re18 = /#(((?:[\0-\x08\x0E-\x1F!"\$-9;-\?A-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+))/g ;
const re19 = /^@(silent(?![^\s]))/ ;
const result = require ( "_isNativeReflectConstruct" ) . fileFinishedImporting ( "modules/chat_input/native/ChatInputCommandOptionParser.tsx" ) ;
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
export const commandOptionRegex = tmp3 ;
2026-07-20 16:05:17 +00:00
export const getMatchedOptionsWithValue = ( arg0 , activeCommand ) = > {
2026-07-23 10:11:24 +00:00
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
function optionValueLength ( location , index , name , displayName ) {
let tmp ;
if ( null != preferredOptionValues ) {
tmp = preferredOptionValues [ name ] ;
}
let diff = index - location ;
let startsWithResult = null != tmp ;
if ( startsWithResult ) {
startsWithResult = "" !== tmp . displayText ;
}
if ( startsWithResult ) {
2026-07-23 10:11:24 +00:00
const substr = closure_0 . substring ( location + displayName . length + 1 , index ) ;
2026-07-20 16:05:17 +00:00
startsWithResult = substr . startsWith ( tmp . displayText ) ;
}
if ( startsWithResult ) {
diff = displayName . length + 1 + tmp . displayText . length ;
}
return diff ;
}
if ( null != activeCommand ) {
activeCommand = activeCommand . activeCommand ;
if ( null != activeCommand ) {
const options = activeCommand . options ;
}
}
activeCommand = undefined ;
if ( null != activeCommand ) {
activeCommand = activeCommand . activeCommand ;
}
if ( null != activeCommand ) {
if ( null != options ) {
2026-07-23 10:11:24 +00:00
const preferredOptionValues = activeCommand . preferredOptionValues ;
2026-07-24 07:16:23 +00:00
tmp3 . lastIndex = 0 ;
2026-07-20 16:05:17 +00:00
const items = [ ] ;
const _Set = Set ;
const set = new Set ( ) ;
2026-07-24 07:16:23 +00:00
const match = tmp3 . exec ( arg0 ) ;
2026-07-20 16:05:17 +00:00
let match1 = match ;
let tmp15 = null ;
let tmp16 = null ;
if ( null != match ) {
do {
2026-07-24 07:16:23 +00:00
let tmp2 = tmp15 ;
2026-07-20 16:05:17 +00:00
if ( match1 [ 0 ] . length > 1 ) {
let str = match1 [ 0 ] ;
let substr = str . substring ( 1 , match1 [ 0 ] . length - 1 ) ;
let tmp10 = tmp15 ;
let num = 0 ;
tmp2 = tmp15 ;
let tmp25 = substr ;
let num5 = 0 ;
if ( 0 < options . length ) {
do {
let hasItem = set . has ( num ) ;
let tmp4 = num ;
if ( ! hasItem ) {
hasItem = options [ num ] . displayName !== substr ;
}
let tmp5 = tmp10 ;
if ( ! hasItem ) {
if ( null != tmp10 ) {
let obj = { location : tmp10.location , length : optionValueLength ( tmp10 . location , match1 . index , tmp10 . data . option . name , tmp10 . data . option . displayName ) , data : tmp10.data } ;
let arr = items . push ( obj ) ;
}
obj = { location : match1.index + 1 , length : match1 [ 0 ] . length - 1 } ;
obj = { } ;
2026-07-23 10:11:24 +00:00
let tmp7 = _require ;
let tmp8 = dependencyMap ;
2026-07-28 08:39:19 +00:00
obj . type = _require ( 11146 ) . ChatInputParseResultDataType . COMMAND_OPTION ;
2026-07-20 16:05:17 +00:00
obj . option = options [ num ] ;
obj . data = obj ;
let addResult = set . add ( num ) ;
tmp5 = obj ;
}
num = num + 1 ;
tmp10 = tmp5 ;
tmp2 = tmp5 ;
let tmp11 = substr ;
let tmp12 = num ;
} while ( num < options . length ) ;
}
}
2026-07-24 07:16:23 +00:00
let tmp13 = tmp3 ;
tmp3 . lastIndex = match1 . index + 1 ;
match1 = tmp3 . exec ( arg0 ) ;
2026-07-20 16:05:17 +00:00
tmp15 = tmp2 ;
tmp16 = tmp2 ;
} while ( null != match1 ) ;
}
if ( null != tmp16 ) {
const obj1 = { location : tmp16.location , length : optionValueLength ( tmp16 . location , arg0 . length , tmp16 . data . option . name , tmp16 . data . option . displayName ) , data : tmp16.data } ;
items . push ( obj1 ) ;
}
return items ;
}
}
return [ ] ;
} ;
export const getMatchedOptions = ( arg0 , activeCommand ) = > {
2026-07-24 07:16:23 +00:00
let tmp3 ;
2026-07-20 16:05:17 +00:00
if ( null != activeCommand ) {
activeCommand = activeCommand . activeCommand ;
if ( null != activeCommand ) {
const options = activeCommand . options ;
}
}
activeCommand = undefined ;
if ( null != activeCommand ) {
activeCommand = activeCommand . activeCommand ;
}
if ( null != activeCommand ) {
if ( null != options ) {
2026-07-24 07:16:23 +00:00
tmp3 . lastIndex = 0 ;
2026-07-20 16:05:17 +00:00
const items = [ ] ;
const _Set = Set ;
const set = new Set ( ) ;
2026-07-24 07:16:23 +00:00
const match = tmp3 . exec ( arg0 ) ;
2026-07-20 16:05:17 +00:00
let match1 = match ;
if ( null != match ) {
do {
if ( match1 [ 0 ] . length > 1 ) {
let str = match1 [ 0 ] ;
let substr = str . substring ( 1 , match1 [ 0 ] . length - 1 ) ;
let num = 0 ;
let tmp19 = substr ;
let num5 = 0 ;
if ( 0 < options . length ) {
do {
let hasItem = set . has ( num ) ;
2026-07-24 07:16:23 +00:00
tmp3 = num ;
2026-07-20 16:05:17 +00:00
if ( ! hasItem ) {
hasItem = options [ num ] . displayName !== substr ;
}
if ( ! hasItem ) {
let obj = { location : match1.index + 1 , length : match1 [ 0 ] . length - 1 } ;
obj = { } ;
2026-07-23 10:11:24 +00:00
let tmp4 = require ;
let tmp5 = dependencyMap ;
2026-07-28 08:39:19 +00:00
obj . type = require ( 11146 ) /* ChatInputParser */ . ChatInputParseResultDataType . COMMAND_OPTION ;
2026-07-20 16:05:17 +00:00
obj . option = options [ num ] ;
obj . data = obj ;
let arr = items . push ( obj ) ;
let addResult = set . add ( num ) ;
}
num = num + 1 ;
let tmp8 = substr ;
let tmp9 = num ;
} while ( num < options . length ) ;
}
}
2026-07-24 07:16:23 +00:00
let tmp10 = tmp3 ;
tmp3 . lastIndex = match1 . index + 1 ;
match1 = tmp3 . exec ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} while ( null != match1 ) ;
}
return items ;
}
}
return [ ] ;
} ;
export const getTextBeforeFirstOption = ( arr ) = > {
2026-07-24 07:16:23 +00:00
tmp3 . lastIndex = 0 ;
const match = tmp3 . exec ( arr ) ;
2026-07-20 16:05:17 +00:00
const obj = { match } ;
let substr = arr ;
if ( null != match ) {
2026-07-24 07:16:23 +00:00
substr = arr . slice ( 0 , tmp3 . lastIndex - match [ 0 ] . length ) ;
2026-07-20 16:05:17 +00:00
}
obj . text = substr ;
return obj ;
} ;
export const getEmojiHighlightNodes = function getEmojiHighlightNodes ( channel , arg1 ) {
if ( 0 === arg1 . length ) {
return [ ] ;
} else {
const items = [ ] ;
const match = regex . exec ( arg1 ) ;
let match1 = match ;
let disambiguatedEmojiContext = null ;
if ( null != match ) {
do {
if ( null == disambiguatedEmojiContext ) {
2026-07-23 10:11:24 +00:00
let tmp = disambiguatedEmojiContext ;
disambiguatedEmojiContext = disambiguatedEmojiContext . getDisambiguatedEmojiContext ( channel . getGuildId ( ) ) ;
2026-07-20 16:05:17 +00:00
}
let str = match1 [ 1 ] ;
let trimmed = str . trim ( ) ;
let byId = disambiguatedEmojiContext . getById ( trimmed ) ;
let tmp5 = disambiguatedEmojiContext ;
if ( null == byId ) {
byId = disambiguatedEmojiContext . getByName ( trimmed ) ;
}
if ( null != byId ) {
2026-07-23 10:11:24 +00:00
let tmp6 = importDefault ;
let tmp7 = dependencyMap ;
2026-07-28 08:39:19 +00:00
let obj = importDefault ( 3810 ) ;
2026-07-20 16:05:17 +00:00
obj = { emoji : byId , channel } ;
2026-07-23 10:11:24 +00:00
let tmp8 = EmojiIntention ;
obj . intention = EmojiIntention . CHAT ;
2026-07-20 16:05:17 +00:00
if ( null === obj . getEmojiUnavailableReason ( obj ) ) {
obj = { location : match1.index , length : match1 [ 0 ] . length } ;
let arr = items . push ( obj ) ;
}
}
2026-07-23 10:11:24 +00:00
let tmp10 = regex ;
match1 = regex . exec ( arg1 ) ;
2026-07-20 16:05:17 +00:00
} while ( null != match1 ) ;
}
return items ;
}
} ;
export const getUsernameHighlightNodes = function getUsernameHighlightNodes ( channel , arg1 ) {
2026-07-23 10:11:24 +00:00
const _require = arg1 ;
2026-07-28 08:39:19 +00:00
function processRegex ( closure_15 , arg1 ) {
2026-07-20 16:05:17 +00:00
let match1 ;
2026-07-23 10:11:24 +00:00
let closure_0 = arg1 ;
2026-07-20 16:05:17 +00:00
function _loop() {
let closure_0 = match [ 1 ] . trim ( ) ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_2 . find ( ( text ) = > callback ( text . text ) === callback ) ) {
2026-07-20 16:05:17 +00:00
const obj = { location : match.index , length : match [ 0 ] . length } ;
match . push ( obj ) ;
}
}
2026-07-28 08:39:19 +00:00
let match = closure_15 . exec ( closure_0 ) ;
2026-07-20 16:05:17 +00:00
if ( null != match ) {
do {
let _loopResult = _loop ( ) ;
let tmp3 = closure_0 ;
2026-07-28 08:39:19 +00:00
match1 = closure_15 . exec ( closure_0 ) ;
2026-07-23 10:11:24 +00:00
match = match1 ;
2026-07-20 16:05:17 +00:00
} while ( null != match1 ) ;
}
}
const items = [ ] ;
2026-07-28 08:39:19 +00:00
const dependencyMap = _require ( 11147 ) . getUsers ( channel ) ;
processRegex ( closure_15 , ( arg0 ) = > arg0 ) ;
processRegex ( closure_16 , ( arg0 ) = > arg0 . split ( "#" ) [ 0 ] ) ;
2026-07-20 16:05:17 +00:00
return items ;
} ;
2026-07-24 07:16:23 +00:00
export { findGameMentionTokens } ;
export const serializeComposerGameMentions = function serializeComposerGameMentions ( result , mentionGames ) {
2026-07-28 08:39:19 +00:00
let done ;
let done2 ;
const items = [ ] ;
const tmp = _createForOfIteratorHelperLoose ( mentionGames . values ( ) ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let arr = items . push ( iter . value . name ) ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
let closure_1 = result ;
function _loop2() {
let items ;
2026-07-24 07:16:23 +00:00
let locations ;
2026-07-28 08:39:19 +00:00
( { token : items , locations } = outer1_23 ( closure_1 , user . name , items ) ) ;
closure_1 = outer1_10 ( user . id ) ;
closure_1 = locations . reduceRight ( ( arr ) = > {
2026-07-24 07:16:23 +00:00
const sum = arr . slice ( 0 , arg1 ) + closure_1 ;
return sum + arr . slice ( arg1 + length . length ) ;
2026-07-28 08:39:19 +00:00
} , closure_1 ) ;
}
const tmp3 = _createForOfIteratorHelperLoose ( mentionGames . values ( ) ) ;
let iter3 = tmp3 ( ) ;
if ( ! iter3 . done ) {
do {
let dependencyMap = iter3 . value ;
let _loop2Result = _loop2 ( ) ;
let iter4 = tmp3 ( ) ;
iter3 = iter4 ;
done2 = iter4 . done ;
} while ( ! done2 ) ;
}
return closure_1 ;
2026-07-24 07:16:23 +00:00
} ;
2026-07-28 08:39:19 +00:00
export { buildGameMentionResult } ;
export const getGameHighlightNodes = function getGameHighlightNodes ( mentionGames , text ) {
let done ;
let icon ;
let iconCornerRadius ;
let iconSize ;
let iconSpacing ;
let iter7 ;
let length ;
const items = [ ] ;
const tmp = _createForOfIteratorHelperLoose ( mentionGames . values ( ) ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let arr = items . push ( iter . value . name ) ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
const items1 = [ ] ;
const tmp3 = _createForOfIteratorHelperLoose ( mentionGames . values ( ) ) ;
const iter3 = tmp3 ( ) ;
let iter4 = iter3 ;
if ( ! iter3 . done ) {
do {
let value = iter4 . value ;
let tmp4 = findGameMentionTokens ;
let locations = findGameMentionTokens ( text , value . name , items ) . locations ;
if ( 0 !== locations . length ) {
let tmp13 = buildGameMentionResult ;
let tmp14 = buildGameMentionResult ( value ) ;
( { length , icon , iconSize , iconCornerRadius , iconSpacing } = tmp14 ) ;
let tmp15 = _createForOfIteratorHelperLoose ;
let tmp16 = _createForOfIteratorHelperLoose ( locations ) ;
let iter8 = tmp16 ( ) ;
let iter6 = iter8 ;
let tmp17 = iter8 ;
let tmp18 = length ;
let tmp19 = icon ;
let tmp20 = iconSize ;
let tmp21 = iconCornerRadius ;
let tmp22 = iconSpacing ;
let tmp23 = tmp16 ;
if ( ! iter8 . done ) {
do {
let obj = { location : iter6.value , length , icon , iconSize , iconCornerRadius , iconSpacing } ;
arr = items1 . push ( obj ) ;
let iter5 = tmp16 ( ) ;
iter6 = iter5 ;
let tmp6 = iter5 ;
let tmp7 = length ;
let tmp8 = icon ;
let tmp9 = iconSize ;
let tmp10 = iconCornerRadius ;
let tmp11 = iconSpacing ;
let tmp12 = tmp16 ;
done2 = iter5 . done ;
} while ( ! done2 ) ;
}
}
iter7 = tmp3 ( ) ;
iter4 = iter7 ;
} while ( ! iter7 . done ) ;
}
return items1 ;
2026-07-24 07:16:23 +00:00
} ;
export const getGameMentionInputNodes = function getGameMentionInputNodes ( arr ) {
const _require = arr ;
2026-07-28 08:39:19 +00:00
const gameMentionsAutocompleteConfig = _require ( 9639 ) . getGameMentionsAutocompleteConfig ( "game mention input highlight" ) ;
2026-07-24 07:16:23 +00:00
if ( gameMentionsAutocompleteConfig . enabled ) {
if ( ! gameMentionsAutocompleteConfig . combineMentionAutocomplete ) {
2026-07-28 08:39:19 +00:00
let closure_1 = closure_9 ;
return findTokenLocations ( arr , closure_9 , ( lastIndexOfResult ) = > arr ( outer1_2 [ 15 ] ) . isWhitespaceSeparatingBoundary ( arr , lastIndexOfResult ) ) . map ( ( location ) = > ( { location , length : length.length } ) ) ;
2026-07-24 07:16:23 +00:00
}
}
return [ ] ;
} ;
2026-07-20 16:05:17 +00:00
export const getRoleHighlightNodes = ( getGuildId ) = > {
let done ;
let match1 ;
2026-07-23 10:11:24 +00:00
let items = [ ] ;
2026-07-28 08:39:19 +00:00
if ( closure_7 . can ( Permissions . MENTION_EVERYONE , getGuildId ) ) {
2026-07-20 16:05:17 +00:00
const guildId = getGuildId . getGuildId ( ) ;
2026-07-23 10:11:24 +00:00
let obj = { } ;
2026-07-20 16:05:17 +00:00
if ( null != guildId ) {
2026-07-23 10:11:24 +00:00
sortedRoles = sortedRoles . getSortedRoles ( guildId ) ;
2026-07-20 16:05:17 +00:00
} else {
sortedRoles = [ ] ;
}
const tmp2Result = _createForOfIteratorHelperLoose ( sortedRoles ) ;
let iter = tmp2Result ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
obj [ value . name ] = value ;
let iter2 = tmp2Result ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
2026-07-28 08:39:19 +00:00
function _loop3() {
2026-07-20 16:05:17 +00:00
let obj = match [ 1 ] ;
if ( " " === obj [ 0 ] ) {
return 1 ;
} else {
let str = "" ;
2026-07-23 10:11:24 +00:00
const items = "" ;
2026-07-20 16:05:17 +00:00
const parts = obj . trimEnd ( ) . split ( /\s/ ) ;
const mapped = parts . map ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
str = ` ${ str } ${ arg0 } ` ;
2026-07-20 16:05:17 +00:00
return str . trim ( ) ;
} ) ;
const reversed = mapped . reverse ( ) ;
2026-07-23 10:11:24 +00:00
const found = reversed . find ( ( arg0 ) = > null != outer1_2 [ arg0 ] ) ;
2026-07-20 16:05:17 +00:00
if ( null != found ) {
str = found ;
}
let obj1 = reversed [ reversed . length - 1 ] ;
if ( null != obj [ str ] ) {
obj = { location : match.index , length : str.length + 1 } ;
obj = { } ;
2026-07-28 08:39:19 +00:00
obj . type = items ( obj [ 8 ] ) . ChatInputParseResultDataType . ROLE_HIGHLIGHT ;
2026-07-20 16:05:17 +00:00
let colorString = null ;
2026-07-28 08:39:19 +00:00
if ( "username" === outer1_4 . roleStyle ) {
2026-07-20 16:05:17 +00:00
colorString = tmp2 . colorString ;
}
obj . color = colorString ;
obj . data = obj ;
2026-07-23 10:11:24 +00:00
items . push ( obj ) ;
2026-07-20 16:05:17 +00:00
} else if ( obj1 . startsWith ( "everyone" ) ) {
obj1 = { location : match.index , length : 9 } ;
2026-07-28 08:39:19 +00:00
const obj2 = { type : items ( obj [ 8 ] ) . ChatInputParseResultDataType . ROLE_HIGHLIGHT , color : match ( obj [ 16 ] ) . unsafe_rawColors . BRAND_500 } ;
2026-07-20 16:05:17 +00:00
obj1 . data = obj2 ;
2026-07-23 10:11:24 +00:00
items . push ( obj1 ) ;
2026-07-20 16:05:17 +00:00
} else if ( obj1 . startsWith ( "here" ) ) {
const obj3 = { location : match.index , length : 5 } ;
2026-07-28 08:39:19 +00:00
const obj4 = { type : items ( obj [ 8 ] ) . ChatInputParseResultDataType . ROLE_HIGHLIGHT , color : match ( obj [ 16 ] ) . unsafe_rawColors . BRAND_500 } ;
2026-07-20 16:05:17 +00:00
obj3 . data = obj4 ;
2026-07-23 10:11:24 +00:00
items . push ( obj3 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-23 10:11:24 +00:00
let match = regex2 . exec ( arg1 ) ;
2026-07-20 16:05:17 +00:00
if ( null != match ) {
do {
2026-07-28 08:39:19 +00:00
let _loop3Result = _loop3 ( ) ;
2026-07-23 10:11:24 +00:00
let tmp9 = regex2 ;
match1 = regex2 . exec ( arg1 ) ;
match = match1 ;
2026-07-20 16:05:17 +00:00
} while ( null != match1 ) ;
}
return items ;
} else {
return items ;
}
} ;
export const getSilentHighlightNodes = function getSilentHighlightNodes ( arg0 ) {
const items = [ ] ;
const match = regex3 . exec ( arg0 ) ;
if ( null != match ) {
const obj = { location : match.index , length : match [ 0 ] . length } ;
items . push ( obj ) ;
}
return items ;
} ;
export const getChannelHighlightNodes = function getChannelHighlightNodes ( channel , arg1 ) {
2026-07-28 08:39:19 +00:00
let _loop4Result ;
2026-07-23 10:11:24 +00:00
const _require = arg1 ;
let items = [ ] ;
2026-07-28 08:39:19 +00:00
const dependencyMap = _require ( 11147 ) . getChannels ( channel ) ;
2026-07-23 10:11:24 +00:00
let c3 = 0 ;
2026-07-28 08:39:19 +00:00
function _loop4() {
const index = lib . indexOf ( "#" , closure_3 ) ;
closure_3 = index ;
2026-07-20 16:05:17 +00:00
if ( index < 0 ) {
return 1 ;
} else {
2026-07-28 08:39:19 +00:00
if ( "\"" === lib [ closure_3 + 1 ] ) {
const sum = closure_3 + 2 ;
closure_3 = sum ;
2026-07-20 16:05:17 +00:00
if ( sum < lib . length ) {
while ( true ) {
let tmp5 = lib ;
2026-07-28 08:39:19 +00:00
let tmp6 = closure_3 ;
if ( "\\" !== lib [ closure_3 ] ) {
2026-07-20 16:05:17 +00:00
let tmp8 = lib ;
2026-07-28 08:39:19 +00:00
let tmp9 = closure_3 ;
if ( "\"" === lib [ closure_3 ] ) {
2026-07-20 16:05:17 +00:00
break ;
}
} else {
2026-07-28 08:39:19 +00:00
let tmp7 = closure_3 ;
closure_3 = closure_3 + 1 ;
2026-07-20 16:05:17 +00:00
}
2026-07-28 08:39:19 +00:00
let tmp10 = closure_3 ;
let sum1 = closure_3 + 1 ;
closure_3 = sum1 ;
2026-07-20 16:05:17 +00:00
let tmp12 = lib ;
if ( sum1 >= lib . length ) {
break ;
}
}
}
2026-07-28 08:39:19 +00:00
let obj = lib ( closure_2 [ 17 ] ) ;
lib = obj . unescapeChannelName ( lib . substring ( tmp2 + 2 , closure_3 ) ) ;
2026-07-20 16:05:17 +00:00
if ( null != closure_2 . find ( ( text ) = > text . text === closure_0 ) ) {
2026-07-28 08:39:19 +00:00
obj = { location : tmp2 , length : closure_3 - tmp2 + 1 } ;
2026-07-23 10:11:24 +00:00
items . push ( obj ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-28 08:39:19 +00:00
closure_3 = tmp2 + 1 ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-28 08:39:19 +00:00
outer1_18 . lastIndex = closure_3 ;
const match = outer1_18 . exec ( lib ) ;
2026-07-20 16:05:17 +00:00
if ( null != match ) {
2026-07-23 10:11:24 +00:00
items = match [ 1 ] . trim ( ) ;
2026-07-20 16:05:17 +00:00
if ( null != closure_2 . find ( ( text ) = > text . text === closure_1 ) ) {
obj = { location : match.index , length : match [ 0 ] . length } ;
2026-07-23 10:11:24 +00:00
items . push ( obj ) ;
2026-07-20 16:05:17 +00:00
}
const str3 = match [ 1 ] ;
}
}
2026-07-28 08:39:19 +00:00
closure_3 = closure_3 + 1 ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-28 08:39:19 +00:00
if ( ! _loop4 ( ) ) {
2026-07-20 16:05:17 +00:00
do {
2026-07-28 08:39:19 +00:00
_loop4Result = _loop4 ( ) ;
} while ( ! _loop4Result ) ;
2026-07-20 16:05:17 +00:00
}
return items ;
} ;