2026-07-20 16:05:17 +00:00
// Module ID: 886
2026-07-24 07:16:23 +00:00
// Function ID: 9795
2026-07-20 16:05:17 +00:00
// Name: _mergeOptions
2026-07-23 10:11:24 +00:00
// Dependencies: [65, 863, 800, 801, 807, 864, 809]
2026-07-20 16:05:17 +00:00
// Module 886 (_mergeOptions)
2026-07-23 10:11:24 +00:00
import _toConsumableArray from "_toConsumableArray" ;
import setupIntegration from "setupIntegration" ;
import setupIntegration from "setupIntegration" ;
2026-07-20 16:05:17 +00:00
function _mergeOptions ( ) {
if ( arguments . length > 0 ) {
if ( undefined !== arguments [ 0 ] ) {
let first = arguments [ 0 ] ;
}
if ( arguments . length > 1 ) {
if ( undefined !== arguments [ 1 ] ) {
let obj = arguments [ 1 ] ;
}
obj = { } ;
const items = [ ] ;
let allowUrls = first . allowUrls ;
if ( ! allowUrls ) {
allowUrls = [ ] ;
}
let allowUrls1 = obj . allowUrls ;
if ( ! allowUrls1 ) {
allowUrls1 = [ ] ;
}
2026-07-23 10:11:24 +00:00
obj . allowUrls = items . concat ( _toConsumableArray ( allowUrls ) , _toConsumableArray ( allowUrls1 ) ) ;
2026-07-20 16:05:17 +00:00
const items1 = [ ] ;
let denyUrls = first . denyUrls ;
if ( ! denyUrls ) {
denyUrls = [ ] ;
}
let denyUrls1 = obj . denyUrls ;
2026-07-23 10:11:24 +00:00
const tmp = _toConsumableArray ;
const tmp3 = _toConsumableArray ;
const tmp4 = _toConsumableArray ;
const tmpResult = _toConsumableArray ( allowUrls ) ;
2026-07-20 16:05:17 +00:00
if ( ! denyUrls1 ) {
denyUrls1 = [ ] ;
}
2026-07-23 10:11:24 +00:00
obj . denyUrls = items1 . concat ( _toConsumableArray ( denyUrls ) , _toConsumableArray ( denyUrls1 ) ) ;
2026-07-20 16:05:17 +00:00
const items2 = [ ] ;
let ignoreErrors = first . ignoreErrors ;
if ( ! ignoreErrors ) {
ignoreErrors = [ ] ;
}
let ignoreErrors1 = obj . ignoreErrors ;
2026-07-23 10:11:24 +00:00
const tmp4Result = _toConsumableArray ( denyUrls ) ;
const tmp6 = _toConsumableArray ;
const tmp7 = _toConsumableArray ;
2026-07-20 16:05:17 +00:00
if ( ! ignoreErrors1 ) {
ignoreErrors1 = [ ] ;
}
2026-07-23 10:11:24 +00:00
const tmp7Result = _toConsumableArray ( ignoreErrors ) ;
const tmp9 = _toConsumableArray ;
obj . ignoreErrors = items2 . concat ( tmp7Result , _toConsumableArray ( ignoreErrors1 ) , _toConsumableArray ( first . disableErrorDefaults ? [ ] : items ) ) ;
2026-07-20 16:05:17 +00:00
const items3 = [ ] ;
let ignoreTransactions = first . ignoreTransactions ;
if ( ! ignoreTransactions ) {
ignoreTransactions = [ ] ;
}
let ignoreTransactions1 = obj . ignoreTransactions ;
2026-07-23 10:11:24 +00:00
const tmp11 = _toConsumableArray ;
const tmp9Result = _toConsumableArray ( ignoreErrors1 ) ;
2026-07-20 16:05:17 +00:00
if ( ! ignoreTransactions1 ) {
ignoreTransactions1 = [ ] ;
}
2026-07-23 10:11:24 +00:00
obj . ignoreTransactions = items3 . concat ( _toConsumableArray ( ignoreTransactions ) , _toConsumableArray ( ignoreTransactions1 ) ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
obj = { } ;
}
first = { } ;
}
function _getEventFilterUrl ( exception ) {
exception = exception . exception ;
let values ;
if ( null != exception ) {
values = exception . values ;
}
2026-07-23 10:11:24 +00:00
const reversed = _toConsumableArray ( null != values ? values : [ ] ) . reverse ( ) ;
2026-07-20 16:05:17 +00:00
const found = reversed . find ( ( mechanism ) => {
mechanism = mechanism . mechanism ;
let parent _id ;
if ( null != mechanism ) {
parent _id = mechanism . parent _id ;
}
let tmp2 = undefined === parent _id ;
if ( tmp2 ) {
const stacktrace = mechanism . stacktrace ;
let length ;
if ( null != stacktrace ) {
const frames = stacktrace . frames ;
if ( null != frames ) {
length = frames . length ;
}
}
tmp2 = length ;
}
return tmp2 ;
} ) ;
let frames ;
if ( null != found ) {
2026-07-23 10:11:24 +00:00
let stacktrace = found . stacktrace ;
2026-07-20 16:05:17 +00:00
if ( null != stacktrace ) {
frames = stacktrace . frames ;
}
}
let tmp6 = null ;
if ( frames ) {
2026-07-23 10:11:24 +00:00
tmp6 = ( function _getLastValidUrl ( frames ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
if ( arguments . length > 0 ) {
if ( undefined !== arguments [ 0 ] ) {
let first = arguments [ 0 ] ;
}
let diff = first . length - 1 ;
if ( diff >= 0 ) {
while ( true ) {
tmp2 = first [ diff ] ;
if ( tmp2 ) {
if ( "<anonymous>" !== tmp2 . filename ) {
if ( "[native code]" !== tmp2 . filename ) {
break ;
}
}
}
diff = diff - 1 ;
}
return tmp2 . filename || null ;
}
return null ;
}
first = [ ] ;
2026-07-23 10:11:24 +00:00
} ) ( frames ) ;
2026-07-20 16:05:17 +00:00
}
return tmp6 ;
}
Object . defineProperty ( exports , Symbol . toStringTag , { value : "Module" } ) ;
2026-07-23 10:11:24 +00:00
let items = [ /^Script error\.?$/ , /^Javascript error: Script error\.? on line 0$/ , /^ResizeObserver loop completed with undelivered notifications.$/ , /^Cannot redefine property: googletag$/ , /^Can't find variable: gmo$/ , /^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/ , "can't redefine non-configurable property \"solana\"" , "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)" , "Can't find variable: _AutofillCallbackHandler" , /^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/ , /^Java exception was raised during method invocation$/ ] ;
const defineIntegrationResult = setupIntegration . defineIntegration ( ( ) => {
2026-07-20 16:05:17 +00:00
if ( arguments . length > 0 ) {
if ( undefined !== arguments [ 0 ] ) {
const first = arguments [ 0 ] ;
}
let closure _1 = { } ;
2026-07-23 10:11:24 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
name : "EventFilters" ,
setup ( getOptions ) {
2026-07-23 10:11:24 +00:00
let closure _0 = outer1 _5 ( closure _1 , getOptions . getOptions ( ) ) ;
2026-07-20 16:05:17 +00:00
} ,
processEvent ( type , arg1 , getOptions ) {
if ( ! closure _0 ) {
2026-07-23 10:11:24 +00:00
closure _0 = outer1 _5 ( closure _1 , getOptions . getOptions ( ) ) ;
2026-07-20 16:05:17 +00:00
}
let tmp3 = null ;
2026-07-23 10:11:24 +00:00
if ( ! ( function _shouldDropEvent ( type , closure _0 ) {
2026-07-20 16:05:17 +00:00
if ( type . type ) {
if ( "transaction" === type . type ) {
const ignoreTransactions = closure _0 . ignoreTransactions ;
let flag7 = false ;
if ( null != ignoreTransactions ) {
flag7 = false ;
if ( ignoreTransactions . length ) {
const transaction = type . transaction ;
let result = ! tmp42 ;
if ( ! ! transaction ) {
2026-07-23 10:11:24 +00:00
result = outer2 _0 ( 809 ) . stringMatchesSomePattern ( transaction , ignoreTransactions ) ;
const obj7 = outer2 _0 ( 809 ) ;
2026-07-20 16:05:17 +00:00
}
flag7 = result ;
}
}
if ( flag7 ) {
2026-07-23 10:11:24 +00:00
if ( outer2 _0 ( 800 ) . DEBUG _BUILD ) {
const debug5 = outer2 _0 ( 801 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal5 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug5 . warn ( "Event dropped due to being matched by `ignoreTransactions` option.\nEvent: " + outer2 _0 ( 807 ) . getEventDescription ( type ) ) ;
const obj8 = outer2 _0 ( 807 ) ;
2026-07-20 16:05:17 +00:00
}
return true ;
}
}
2026-07-23 10:11:24 +00:00
} else if ( ( function _isIgnoredError ( type , ignoreErrors ) {
let closure _0 = ignoreErrors ;
2026-07-20 16:05:17 +00:00
if ( null != ignoreErrors ) {
if ( ignoreErrors . length ) {
2026-07-23 10:11:24 +00:00
const possibleEventMessages = outer3 _0 ( table [ 5 ] ) . getPossibleEventMessages ( type ) ;
return possibleEventMessages . some ( ( arg0 ) => outer4 _0 ( table [ 6 ] ) . stringMatchesSomePattern ( arg0 , closure _0 ) ) ;
2026-07-20 16:05:17 +00:00
}
}
return false ;
2026-07-23 10:11:24 +00:00
} ) ( type , closure _0 . ignoreErrors ) ) {
if ( outer2 _0 ( 800 ) . DEBUG _BUILD ) {
const debug4 = outer2 _0 ( 801 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal4 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug4 . warn ( "Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + outer2 _0 ( 807 ) . getEventDescription ( type ) ) ;
const obj6 = outer2 _0 ( 807 ) ;
2026-07-20 16:05:17 +00:00
}
return true ;
2026-07-23 10:11:24 +00:00
} else if ( ( function _isUselessError ( exception ) {
2026-07-20 16:05:17 +00:00
exception = exception . exception ;
if ( null != exception ) {
let values = exception . values ;
if ( null != values ) {
if ( values . length ) {
let tmp = ! exception . message ;
if ( tmp ) {
values = exception . exception . values ;
tmp = ! values . some ( ( stacktrace ) => {
stacktrace = stacktrace . stacktrace ;
if ( ! stacktrace ) {
let type = stacktrace . type ;
if ( type ) {
type = "Error" !== stacktrace . type ;
}
stacktrace = type ;
}
if ( ! stacktrace ) {
stacktrace = stacktrace . value ;
}
return stacktrace ;
} ) ;
}
return tmp ;
}
}
}
return false ;
2026-07-23 10:11:24 +00:00
} ) ( type ) ) {
if ( outer2 _0 ( 800 ) . DEBUG _BUILD ) {
const debug3 = outer2 _0 ( 801 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal3 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug3 . warn ( "Event dropped due to not having an error message, error type or stacktrace.\nEvent: " + outer2 _0 ( 807 ) . getEventDescription ( type ) ) ;
const obj5 = outer2 _0 ( 807 ) ;
2026-07-20 16:05:17 +00:00
}
return true ;
} else {
const denyUrls = closure _0 . denyUrls ;
let flag = false ;
if ( null != denyUrls ) {
flag = false ;
if ( denyUrls . length ) {
2026-07-23 10:11:24 +00:00
const tmp3 = outer2 _6 ( type ) ;
2026-07-20 16:05:17 +00:00
let result1 = ! tmp4 ;
if ( ! ! tmp3 ) {
2026-07-23 10:11:24 +00:00
result1 = outer2 _0 ( 809 ) . stringMatchesSomePattern ( tmp3 , denyUrls ) ;
const obj = outer2 _0 ( 809 ) ;
2026-07-20 16:05:17 +00:00
}
flag = result1 ;
}
}
if ( flag ) {
2026-07-23 10:11:24 +00:00
if ( outer2 _0 ( 800 ) . DEBUG _BUILD ) {
const debug2 = outer2 _0 ( 801 ) . debug ;
const eventDescription = outer2 _0 ( 807 ) . getEventDescription ( type ) ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug2 . warn ( "Event dropped due to being matched by `denyUrls` option.\nEvent: " + eventDescription + ".\nUrl: " + outer2 _6 ( type ) ) ;
const obj4 = outer2 _0 ( 807 ) ;
2026-07-20 16:05:17 +00:00
}
return true ;
} else {
const allowUrls = closure _0 . allowUrls ;
let flag3 = true ;
if ( null != allowUrls ) {
flag3 = true ;
if ( allowUrls . length ) {
2026-07-23 10:11:24 +00:00
const tmp9 = outer2 _6 ( type ) ;
2026-07-20 16:05:17 +00:00
let result2 = ! tmp9 ;
if ( ! result2 ) {
2026-07-23 10:11:24 +00:00
result2 = outer2 _0 ( 809 ) . stringMatchesSomePattern ( tmp9 , allowUrls ) ;
const obj2 = outer2 _0 ( 809 ) ;
2026-07-20 16:05:17 +00:00
}
flag3 = result2 ;
}
}
if ( ! flag3 ) {
2026-07-23 10:11:24 +00:00
if ( outer2 _0 ( 800 ) . DEBUG _BUILD ) {
const debug = outer2 _0 ( 801 ) . debug ;
const eventDescription1 = outer2 _0 ( 807 ) . getEventDescription ( type ) ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug . warn ( "Event dropped due to not being matched by `allowUrls` option.\nEvent: " + eventDescription1 + ".\nUrl: " + outer2 _6 ( type ) ) ;
const obj3 = outer2 _0 ( 807 ) ;
2026-07-20 16:05:17 +00:00
}
return true ;
}
}
}
return false ;
2026-07-23 10:11:24 +00:00
} ) ( type , closure _0 ) ) {
2026-07-20 16:05:17 +00:00
tmp3 = type ;
}
return tmp3 ;
}
} ;
return obj ;
}
} ) ;
export const eventFiltersIntegration = defineIntegrationResult ;
2026-07-23 10:11:24 +00:00
export const inboundFiltersIntegration = setupIntegration . defineIntegration ( ( ) => {
2026-07-20 16:05:17 +00:00
if ( arguments . length > 0 ) {
if ( undefined !== arguments [ 0 ] ) {
const first = arguments [ 0 ] ;
}
const _Object = Object ;
const obj = { name : "InboundFilters" } ;
return Object . assign ( { } , defineIntegrationResult ( { } ) , obj ) ;
}
} ) ;