2026-07-27 11:26:19 +00:00
// Module ID: 16691
// Function ID: 130132
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-27 11:26:19 +00:00
// Dependencies: [5, 15973, 4045, 6637, 1194, 1348, 1838, 3, 3989, 10293, 16162, 686, 5907, 1554, 675, 5588, 6636, 4139, 14462, 1284, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 16691 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import importDefaultResult from "_isNativeReflectConstruct" ;
import { applicationReady } from "_createForOfIteratorHelperLoose" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_7 from "_isNativeReflectConstruct" ;
import closure_8 from "_isNativeReflectConstruct" ;
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
import importDefaultResult1 from "shouldWaitForBlockingModals" ;
const require = arg1 ;
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 ;
}
function sendReply ( success , message , arg2 ) {
const merged = Object . assign ( arg2 ) ;
const json = JSON . stringify ( { type : "response" , status : success , message } ) ;
2026-07-25 08:10:48 +00:00
importDefault ( 3989 ) . logToDevice ( json ) ;
2026-07-20 16:05:17 +00:00
}
function sendStatus ( message ) {
importDefaultResult1 . log ( message ) ;
const json = JSON . stringify ( { type : "status" , message } ) ;
2026-07-25 08:10:48 +00:00
importDefault ( 3989 ) . logToDevice ( json ) ;
2026-07-20 16:05:17 +00:00
}
function getErrorDetails ( arr ) {
let done2 ;
if ( null != arr ) {
if ( "object" === typeof arr ) {
const _Set = Set ;
const set = new Set ( ) ;
let prototypeOf = arr ;
if ( null != arr ) {
do {
2026-07-23 10:11:24 +00:00
let tmp = _createForOfIteratorHelperLoose ;
2026-07-20 16:05:17 +00:00
let _Object = Object ;
2026-07-23 10:11:24 +00:00
let tmp2 = _createForOfIteratorHelperLoose ( Object . getOwnPropertyNames ( prototypeOf ) ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp2 ( ) ;
let tmp3 = prototypeOf ;
if ( ! iter . done ) {
do {
let addResult = set . add ( iter . value ) ;
let iter2 = tmp2 ( ) ;
iter = iter2 ;
2026-07-23 10:11:24 +00:00
done = iter2 . done ;
2026-07-20 16:05:17 +00:00
} while ( ! done ) ;
}
let _Object2 = Object ;
prototypeOf = Object . getPrototypeOf ( prototypeOf ) ;
} while ( null != prototypeOf ) ;
}
const obj = { } ;
const tmp7 = _createForOfIteratorHelperLoose ( set ) ;
let iter3 = tmp7 ( ) ;
if ( ! iter3 . done ) {
do {
let value = iter3 . value ;
obj [ value ] = arr [ value ] ;
let iter4 = tmp7 ( ) ;
iter3 = iter4 ;
done2 = iter4 . done ;
} while ( ! done2 ) ;
}
return obj ;
}
}
return arr ;
}
function setupTTITest() {
return _setupTTITest ( . . . arguments ) ;
}
function _setupTTITest() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = importDefaultResult ( tmp ) ;
return obj ( . . . arguments ) ;
}
function apiLogin() {
return _apiLogin ( . . . arguments ) ;
}
function _apiLogin() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = importDefaultResult ( tmp ) ;
return obj ( . . . arguments ) ;
}
function subscribeOnce ( subscribe ) {
2026-07-23 10:11:24 +00:00
let closure_0 = subscribe ;
let closure_1 = arg1 ;
let closure_2 = arg2 ;
2026-07-20 16:05:17 +00:00
function handler ( arg0 ) {
2026-07-23 10:11:24 +00:00
subscribe . unsubscribe ( closure_1 , handler ) ;
return callback ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return subscribe . subscribe ( arg1 , handler ) ;
}
2026-07-23 10:11:24 +00:00
require ( "shouldWaitForBlockingModals" ) . addPostConnectionCallback ;
2026-07-20 16:05:17 +00:00
importDefaultResult1 = new importDefaultResult1 ( "TTITestAction" ) ;
2026-07-23 10:11:24 +00:00
let obj = {
"setup-test" : setupTTITest ,
2026-07-20 16:05:17 +00:00
ping() {
const json = JSON . stringify ( { type : "pong" } ) ;
2026-07-25 08:10:48 +00:00
importDefault ( 3989 ) . logToDevice ( json ) ;
2026-07-20 16:05:17 +00:00
} ,
( ) = > {
2026-07-27 11:26:19 +00:00
const result = require ( 10293 ) /* formatString */ . resetComponentProfiler ( ) ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "reset-component-profiler" ) ;
} ,
( ) = > {
2026-07-27 11:26:19 +00:00
const result = require ( 10293 ) /* formatString */ . pauseComponentProfiler ( ) ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "pause-component-profiler" ) ;
} ,
( ) = > {
2026-07-27 11:26:19 +00:00
const result = require ( 10293 ) /* formatString */ . resumeComponentProfiler ( ) ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "resume-component-profiler" ) ;
} ,
( ) = > {
2026-07-27 11:26:19 +00:00
const obj = { stats : require ( 10293 ) /* formatString */ . dumpStats ( ) } ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "dump-component-profiler-stats" , obj ) ;
} ,
( ) = > {
const obj = { } ;
let report ;
2026-07-27 11:26:19 +00:00
if ( null != importDefault ( 16162 ) ) {
report = importDefault ( 16162 ) . requestReport ( ) ;
const obj2 = importDefault ( 16162 ) ;
2026-07-20 16:05:17 +00:00
}
obj . report = report ;
sendReply ( "success" , "dump-jank-stats" , obj ) ;
} ,
( multiplier ) = > {
2026-07-27 11:26:19 +00:00
if ( null != importDefault ( 16162 ) ) {
const result = importDefault ( 16162 ) . setJankHeuristicMultiplier ( multiplier . multiplier ) ;
const obj = importDefault ( 16162 ) ;
2026-07-20 16:05:17 +00:00
}
sendReply ( "success" , "set-jank-multiplier" ) ;
} ,
( ) = > {
2026-07-27 11:26:19 +00:00
if ( null != importDefault ( 16162 ) ) {
importDefault ( 16162 ) . startTracking ( ) ;
const obj = importDefault ( 16162 ) ;
2026-07-20 16:05:17 +00:00
}
sendReply ( "success" , "start-jank-stats" ) ;
} ,
( action ) = > {
2026-07-23 10:11:24 +00:00
importDefault ( 686 ) . dispatch ( action . action ) ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "flux-dispatch" ) ;
} ,
( ) = > {
sendReply ( "success" , "get-token" , { token : token.getToken ( ) } ) ;
} ,
2026-07-23 10:11:24 +00:00
"get-resource-usage" : fn
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
fn = ( ) = > {
2026-07-25 08:10:48 +00:00
const obj = { cumulativeCPU : importDefault ( 5907 ) . getCumulativeCPUUsage ( ) } ;
const obj2 = importDefault ( 5907 ) ;
obj . currentMemoryUsage = importDefault ( 5907 ) . getCurrentMemoryUsageKB ( ) ;
2026-07-20 16:05:17 +00:00
sendReply ( "success" , "get-resource-usage" , obj ) ;
} ;
// CreateGeneratorClosureLongIndex (0x67)
let closure_10 = importDefaultResult ( fn ) ;
obj . backchannel = function ( ) {
return callback ( . . . arguments ) ;
} ;
2026-07-23 10:11:24 +00:00
let result = require ( "_isNativeReflectConstruct" ) . fileFinishedImporting ( "modules/headless_tasks/android/TTITestAction.tsx" ) ;
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export default ( ( ) = > {
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
let closure_0 = importDefaultResult ( tmp ) ;
return function ( arg0 ) {
return callback ( . . . arguments ) ;
} ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;