2026-07-20 16:05:17 +00:00
// Module ID: 560
// Function ID: 6770
// Name: _createForOfIteratorHelper
2026-07-23 10:11:24 +00:00
// Dependencies: [65]
2026-07-20 16:05:17 +00:00
// Module 560 (_createForOfIteratorHelper)
2026-07-23 10:11:24 +00:00
import _toConsumableArray from "_toConsumableArray" ;
2026-07-20 16:05:17 +00:00
let length ;
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelper ( 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
let arr = iterable ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _arrayLikeToArray = true ;
2026-07-23 10:11:24 +00:00
let c5 = false ;
2026-07-20 16:05:17 +00:00
let obj = {
s ( ) {
} ,
n ( ) {
const iter = arr . next ( ) ;
const done = iter . done ;
return iter ;
} ,
e ( arg0 ) {
2026-07-23 10:11:24 +00:00
let c5 = true ;
let closure _3 = arg0 ;
2026-07-20 16:05:17 +00:00
} ,
f ( ) {
2026-07-23 10:11:24 +00:00
let tmp = c4 ;
if ( ! c4 ) {
2026-07-20 16:05:17 +00:00
tmp = null == arr . return ;
}
if ( ! tmp ) {
arr . return ( ) ;
}
2026-07-23 10:11:24 +00:00
if ( c5 ) {
2026-07-20 16:05:17 +00:00
throw closure _3 ;
}
}
} ;
return obj ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
if ( ! Array . isArray ( iterable ) ) {
arr = undefined ;
if ( iterable ) {
if ( "string" === typeof iterable ) {
arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const _Object = Object ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
class F {
constructor ( ) {
return ;
}
}
let name = substr ;
if ( tmp2 ) {
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
arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
}
}
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp2 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
if ( ! arr ) {
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." ) ;
class F {
constructor ( ) {
return ;
}
}
throw typeError ;
}
}
2026-07-23 10:11:24 +00:00
if ( arr ) {
closure _0 = arr ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c2 = 0 ;
2026-07-20 16:05:17 +00:00
class F {
constructor ( ) {
return ;
}
}
obj = {
s : F ,
n ( ) {
if ( closure _2 >= length . length ) {
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure _2 = tmp3 + 1 ;
obj . value = length [ + closure _2 ] ;
}
return obj ;
} ,
e ( arg0 ) {
throw arg0 ;
} ,
f : F
} ;
return obj ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arg0 [ num ] ;
}
return array ;
}
class Agent {
constructor ( ) {
this . _defaults = [ ] ;
return ;
}
_setDefaults ( arg0 ) {
obj = _createForOfIteratorHelper ( this . _defaults ) ;
sResult = obj . s ( ) ;
iter = obj . n ( ) ;
iter2 = iter ;
if ( ! iter . done ) {
do {
tmp2 = iter2 ;
value = iter2 . value ;
tmp3 = global ;
obj2 = global [ value . fn ] ;
tmp4 = closure _0 ;
applyResult = obj2 . apply ( global , closure _0 ( value . args ) ) ;
tmp6 = obj ;
iter3 = obj . n ( ) ;
iter2 = iter3 ;
done = iter3 . done ;
} while ( ! done ) ;
}
fResult = obj . f ( ) ;
return ;
}
}
let num = 0 ;
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
const items = [ "use" , "on" , "once" , "set" , "query" , "type" , "accept" , "auth" , "withCredentials" , "sortQuery" , "retry" , "ok" , "redirects" , "timeout" , "buffer" , "serialize" , "parse" , "ca" , "key" , "pfx" , "cert" , "disableTLSCerts" ] ;
2026-07-20 16:05:17 +00:00
if ( 0 < items . length ) {
do {
2026-07-23 10:11:24 +00:00
let tmp = ( function _loop ( ) {
const _toConsumableArray = tmp ;
Agent . prototype [ items [ c1 ] ] = function ( ) {
2026-07-20 16:05:17 +00:00
const self = this ;
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
2026-07-23 10:11:24 +00:00
self . _defaults . push ( { fn : closure _0 , args : array } ) ;
2026-07-20 16:05:17 +00:00
return self ;
} ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
num = num + 1 ;
2026-07-23 10:11:24 +00:00
c1 = num ;
2026-07-20 16:05:17 +00:00
length = items . length ;
} while ( num < length ) ;
}
export default Agent ;