2026-08-24 06:08:38 +00:00
// Module ID: 13805
// Function ID: 13806
// Dependencies: [41, 42, 13806, 13807, 13814]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 13805
import SymbolResult1 from "SymbolResult1" /* 13806 */ ;
import URLImpl from "URLImpl" /* 13807 */ ;
import _ from "_" /* 13814 */ ;
import closure _3 from "_classCallCheck" /* 41 */ ;
import closure _4 from "_createClass" /* 42 */ ;
2026-08-04 21:03:28 +00:00
2026-08-12 06:57:52 +00:00
let obj = {
_mixedIntoPredicates : [ ] ,
is ( arg0 ) {
if ( arg0 ) {
2026-08-24 06:08:38 +00:00
if ( obj . hasOwn ( arg0 , SymbolResult1 . implSymbol ) ) {
if ( arg0 [ tmp ( undefined , 13806 ) . implSymbol ] instanceof tmp ( 13807 ) . implementation ) {
2026-08-12 06:57:52 +00:00
return true ;
}
}
const _mixedIntoPredicates = module . exports . _mixedIntoPredicates ;
for ( const item10025 of _mixedIntoPredicates ) {
if ( item10025 ( arg0 ) ) {
let tmp6 = obj2 ;
obj2 . return ( ) ;
let flag = true ;
return true ;
}
}
2026-08-24 06:08:38 +00:00
obj = SymbolResult1 ;
2026-08-12 06:57:52 +00:00
}
return false ;
} ,
isImpl ( arg0 ) {
if ( arg0 ) {
2026-08-24 06:08:38 +00:00
if ( arg0 instanceof URLImpl . implementation ) {
2026-08-12 06:57:52 +00:00
return true ;
} else {
const _mixedIntoPredicates = module . exports . _mixedIntoPredicates ;
for ( const item10018 of _mixedIntoPredicates ) {
if ( item10018 ( tmpResult . wrapperForImpl ( arg0 ) ) ) {
let tmp6 = obj2 ;
obj2 . return ( ) ;
let flag = true ;
return true ;
}
}
2026-08-24 06:08:38 +00:00
const tmpResult = tmp ( 13806 ) ;
2026-08-12 06:57:52 +00:00
}
tmp = require ;
}
return false ;
} ,
convert ( arg0 ) {
2026-08-24 06:08:38 +00:00
obj = arg1 ;
2026-08-12 06:57:52 +00:00
if ( arg1 === undefined ) {
obj = { } ;
}
let str = obj . context ;
if ( str === undefined ) {
str = "The provided value" ;
}
const _exports = module . exports ;
if ( _exports . is ( arg0 ) ) {
2026-08-24 06:08:38 +00:00
return SymbolResult1 . implForWrapper ( arg0 ) ;
2026-08-12 06:57:52 +00:00
} else {
const _TypeError = TypeError ;
const _HermesInternal = HermesInternal ;
const typeError = new TypeError ( "" + str + " is not of type 'URL'." ) ;
throw typeError ;
}
} ,
create ( arg0 , arg1 , arg2 ) {
2026-08-24 06:08:38 +00:00
if ( undefined === arg0 [ SymbolResult1 . ctorRegistrySymbol ] ) {
2026-08-12 06:57:52 +00:00
const _Error2 = Error ;
2026-08-24 06:08:38 +00:00
error = new Error ( "Internal error: invalid global object" ) ;
2026-08-12 06:57:52 +00:00
throw error ;
} else {
2026-08-24 06:08:38 +00:00
const _URL = arg0 [ SymbolResult1 . ctorRegistrySymbol ] . URL ;
2026-08-12 06:57:52 +00:00
if ( undefined === _URL ) {
const _Error = Error ;
const error1 = new Error ( "Internal error: constructor URL is not installed on the passed global object" ) ;
throw error1 ;
} else {
const _Object = Object ;
return obj . setup ( Object . create ( _URL . prototype ) , arg0 , arg1 , arg2 ) ;
}
}
2026-08-24 06:08:38 +00:00
const tmp = require ;
2026-08-12 06:57:52 +00:00
} ,
createImpl ( arg0 , arg1 , arg2 ) {
obj = obj . create ( arg0 , arg1 , arg2 ) ;
2026-08-24 06:08:38 +00:00
obj = SymbolResult1 ;
2026-08-12 06:57:52 +00:00
return obj . implForWrapper ( obj ) ;
} ,
_internalSetup ( arg0 ) {
2026-08-04 21:03:28 +00:00
2026-08-12 06:57:52 +00:00
} ,
setup ( wrapper ) {
let items = arg2 ;
if ( arg2 === undefined ) {
items = [ ] ;
}
2026-08-24 06:08:38 +00:00
obj = arg3 ;
2026-08-12 06:57:52 +00:00
if ( arg3 === undefined ) {
obj = { } ;
}
obj . wrapper = wrapper ;
obj . _internalSetup ( wrapper ) ;
obj = { value : null , configurable : true } ;
2026-08-24 06:08:38 +00:00
const implementation = new URLImpl . implementation ( arg1 , items , obj ) ;
2026-08-12 06:57:52 +00:00
obj [ 0 ] = implementation ;
2026-08-24 06:08:38 +00:00
Object . defineProperty ( wrapper , SymbolResult1 . implSymbol , obj ) ;
wrapper [ SymbolResult1 . implSymbol ] [ SymbolResult1 . wrapperSymbol ] = wrapper ;
if ( URLImpl . init ) {
tmp2 ( 13807 ) . init ( wrapper [ tmp2 ( undefined , 13806 ) . implSymbol ] , obj ) ;
const tmp2Result = tmp2 ( 13807 ) ;
2026-08-12 06:57:52 +00:00
}
return wrapper ;
} ,
install ( arg0 ) {
const URL = arg0 ;
class URL {
constructor ( arg0 ) {
2026-08-24 06:08:38 +00:00
tmp = closure _3 ( this , URL ) ;
2026-08-12 06:57:52 +00:00
if ( arguments . length < 1 ) {
tmp7 = globalThis ;
_TypeError = TypeError ;
str = "Failed to construct 'URL': 1 argument required, but only " ;
tmp8 = new . target ;
str2 = " present." ;
tmp9 = new . target ;
typeError = new TypeError ( "Failed to construct 'URL': 1 argument required, but only " + arguments . length + " present." ) ;
tmp11 = typeError ;
throw typeError ;
} else {
items = [ ] ;
num = 0 ;
tmp12 = closure _0 ;
tmp13 = closure _2 ;
obj2 = closure _0 ( closure _2 [ 4 ] ) ;
arr = items . push ( obj2 . USVString ( arguments [ 0 ] , { context : "Failed to construct 'URL': parameter 1" } ) ) ;
tmp15 = arguments [ 1 ] ;
USVStringResult = tmp15 ;
if ( undefined !== tmp15 ) {
tmp12Result = tmp12 ( tmp13 [ 4 ] ) ;
USVStringResult = tmp12Result . USVString ( tmp15 , { context : "Failed to construct 'URL': parameter 2" } ) ;
}
arr1 = items . push ( USVStringResult ) ;
tmp4 = closure _5 ;
tmp5 = globalThis ;
_Object = Object ;
tmp6 = URL ;
return closure _5 . setup ( Object . create ( this . constructor . prototype ) , URL , items ) ;
}
}
}
2026-08-24 06:08:38 +00:00
obj = {
2026-08-12 06:57:52 +00:00
key : "toJSON" ,
value : function toJSON ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . toJSON ( ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ;
let items = [
obj ,
{
key : "href" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . href ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . href = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'href' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "toString" ,
value : function toString ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . href ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "origin" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . origin ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "protocol" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . protocol ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . protocol = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'protocol' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "username" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . username ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . username = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'username' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "password" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . password ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . password = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'password' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "host" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . host ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . host = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'host' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "hostname" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . hostname ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . hostname = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'hostname' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "port" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . port ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . port = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'port' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "pathname" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . pathname ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . pathname = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'pathname' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "search" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . search ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . search = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'search' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "searchParams" ,
get ( ) {
let self = this ;
self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self ( 13806 ) . getSameObject ( self , "searchParams" , ( ) => self ( closure _1 _2 [ 2 ] ) . tryWrapperForImpl ( self [ self ( undefined , closure _1 _2 [ 2 ] ) . implSymbol ] . searchParams ) ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
} ,
{
key : "hash" ,
get ( ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
return self [ URL ( undefined , 13806 ) . implSymbol ] . hash ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
} ,
set ( arg0 ) {
const self = this ;
if ( this ) {
const _exports = closure _1 . exports ;
if ( _exports . is ( self ) ) {
2026-08-24 06:08:38 +00:00
obj = URL ( 13814 ) ;
self [ URL ( undefined , 13806 ) . implSymbol ] . hash = URL ( 13814 ) . USVString ( arg0 , { context : "Failed to set the 'hash' property on 'URL': The provided value" } ) ;
2026-08-12 06:57:52 +00:00
}
}
const typeError = new TypeError ( "Illegal invocation" ) ;
throw typeError ;
}
}
] ;
2026-08-24 06:08:38 +00:00
const tmp = callback ( URL , items ) ;
2026-08-12 06:57:52 +00:00
obj = { toJSON : { enumerable : true } , href : { enumerable : true } , toString : { enumerable : true } , origin : { enumerable : true } , protocol : { enumerable : true } , username : { enumerable : true } , password : { enumerable : true } , host : { enumerable : true } , hostname : { enumerable : true } , port : { enumerable : true } , pathname : { enumerable : true } , search : { enumerable : true } , searchParams : { enumerable : true } , hash : { enumerable : true } } ;
obj [ Symbol . toStringTag ] = { value : "URL" , configurable : true } ;
Object . defineProperties ( tmp . prototype , obj ) ;
2026-08-24 06:08:38 +00:00
if ( undefined === arg0 [ URL ( undefined , 13806 ) . ctorRegistrySymbol ] ) {
2026-08-12 06:57:52 +00:00
let _Object = Object ;
2026-08-24 06:08:38 +00:00
const ctorRegistrySymbol = tmp3 ( 13806 ) . ctorRegistrySymbol ;
2026-08-12 06:57:52 +00:00
class URL {
constructor ( arg0 ) {
2026-08-24 06:08:38 +00:00
tmp = closure _3 ( this , URL ) ;
2026-08-12 06:57:52 +00:00
if ( arguments . length < 1 ) {
tmp7 = globalThis ;
_TypeError = TypeError ;
str = "Failed to construct 'URL': 1 argument required, but only " ;
tmp8 = new . target ;
str2 = " present." ;
tmp9 = new . target ;
typeError = new TypeError ( "Failed to construct 'URL': 1 argument required, but only " + arguments . length + " present." ) ;
tmp11 = typeError ;
throw typeError ;
} else {
items = [ ] ;
num = 0 ;
tmp12 = closure _0 ;
tmp13 = closure _2 ;
obj2 = closure _0 ( closure _2 [ 4 ] ) ;
arr = items . push ( obj2 . USVString ( arguments [ 0 ] , { context : "Failed to construct 'URL': parameter 1" } ) ) ;
tmp15 = arguments [ 1 ] ;
USVStringResult = tmp15 ;
if ( undefined !== tmp15 ) {
tmp12Result = tmp12 ( tmp13 [ 4 ] ) ;
USVStringResult = tmp12Result . USVString ( tmp15 , { context : "Failed to construct 'URL': parameter 2" } ) ;
}
arr1 = items . push ( USVStringResult ) ;
tmp4 = closure _5 ;
tmp5 = globalThis ;
_Object = Object ;
tmp6 = URL ;
return closure _5 . setup ( Object . create ( this . constructor . prototype ) , URL , items ) ;
}
}
}
}
2026-08-24 06:08:38 +00:00
arg0 [ URL ( undefined , 13806 ) . ctorRegistrySymbol ] . URL = tmp ;
2026-08-12 06:57:52 +00:00
Object . defineProperty ( arg0 , "URL" , { configurable : true , writable : true , value : tmp } ) ;
}
2026-07-29 08:29:29 +00:00
} ;
2026-08-12 06:57:52 +00:00
export default obj ;