2026-07-20 16:05:17 +00:00
// Module ID: 1124
2026-07-25 08:10:48 +00:00
// Function ID: 12770
2026-07-20 16:05:17 +00:00
// Name: cancelScheduledCallback
2026-07-23 10:11:24 +00:00
// Dependencies: [5, 77, 57, 65, 31, 1000, 1125, 1126, 794, 1118, 1116]
2026-07-20 16:05:17 +00:00
// Exports: createReactRouterV6CompatibleTracingIntegration, createV6CompatibleWithSentryReactRouterRouting, createV6CompatibleWrapCreateBrowserRouter, createV6CompatibleWrapCreateMemoryRouter, createV6CompatibleWrapUseRoutes
// Module 1124 (cancelScheduledCallback)
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "keys" ;
import _defineProperty from "_defineProperty" ;
import _slicedToArray from "_slicedToArray" ;
import _toConsumableArray from "_toConsumableArray" ;
import result from "result" ;
2026-07-24 07:16:23 +00:00
function cancelScheduledCallback ( closure _0 ) {
2026-07-23 10:11:24 +00:00
const WINDOW = require ( 1000 ) /* keys */ . WINDOW ;
2026-07-20 16:05:17 +00:00
if ( null != WINDOW ) {
if ( WINDOW . cancelAnimationFrame ) {
2026-07-23 10:11:24 +00:00
const WINDOW2 = require ( 1000 ) /* keys */ . WINDOW ;
2026-07-24 07:16:23 +00:00
WINDOW2 . cancelAnimationFrame ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-24 07:16:23 +00:00
clearTimeout ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
function computeLocationKey ( _location ) {
let pathname ;
let search ;
( { search , pathname } = _location ) ;
if ( ! search ) {
search = "" ;
}
return "" + pathname + search + _location . hash || "" ;
}
function isParameterizedRoute ( routeName ) {
let hasItem = routeName . includes ( ":" ) ;
if ( ! hasItem ) {
hasItem = routeName . includes ( "*" ) ;
}
return hasItem ;
}
function shouldSkipNavigation ( locationKey , arg1 , routeName ) {
if ( locationKey ) {
if ( locationKey . locationKey === arg1 ) {
let result = ! tmp3 ;
if ( ! ! locationKey . routeName ) {
2026-07-23 10:11:24 +00:00
let obj = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
result = obj . transactionNameHasWildcard ( locationKey . routeName ) ;
}
2026-07-23 10:11:24 +00:00
const result1 = require ( 1125 ) /* pickSplat */ . transactionNameHasWildcard ( routeName ) ;
2026-07-20 16:05:17 +00:00
let tmp11 = ! tmp10 ;
if ( ! ! locationKey . routeName ) {
tmp11 = isParameterizedRoute ( locationKey . routeName ) ;
}
2026-07-23 10:11:24 +00:00
const obj2 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
if ( result ) {
result = ! result1 ;
}
const tmp14 = isParameterizedRoute ( routeName ) ;
let tmp16 = routeName !== locationKey . routeName ;
if ( tmp16 ) {
routeName = locationKey . routeName ;
let num3 ;
if ( null != routeName ) {
num3 = routeName . length ;
}
if ( ! num3 ) {
num3 = 0 ;
}
tmp16 = routeName . length > num3 ;
}
if ( tmp16 ) {
tmp16 = ! result1 ;
}
obj = { skip : true } ;
let tmp18 = ! locationKey . routeName ;
if ( ! tmp18 ) {
if ( ! result ) {
result = tmp15 ;
}
if ( ! result ) {
result = tmp16 ;
}
tmp18 = ! result ;
}
obj . shouldUpdate = ! tmp18 ;
return obj ;
}
2026-07-23 10:11:24 +00:00
return { skip : false , shouldUpdate : false } ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
return { skip : false , shouldUpdate : false } ;
2026-07-20 16:05:17 +00:00
}
}
function addResolvedRoutesToParent ( arr , children ) {
2026-07-23 10:11:24 +00:00
let tmp = children . children || [ ] ;
2026-07-20 16:05:17 +00:00
const require = tmp ;
const found = arr . filter ( ( arg0 ) => ! arg0 . some ( ( path ) => {
2026-07-23 10:11:24 +00:00
let tmp = path === user ;
2026-07-20 16:05:17 +00:00
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
path = user . path ;
2026-07-20 16:05:17 +00:00
if ( path ) {
2026-07-23 10:11:24 +00:00
path = path . path === user . path ;
2026-07-20 16:05:17 +00:00
}
tmp = path ;
}
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
let id = user . id ;
2026-07-20 16:05:17 +00:00
if ( id ) {
2026-07-23 10:11:24 +00:00
id = path . id === user . id ;
2026-07-20 16:05:17 +00:00
}
tmp = id ;
}
return tmp ;
} ) ) ;
if ( found . length > 0 ) {
const items = [ ] ;
2026-07-23 10:11:24 +00:00
children . children = items . concat ( _toConsumableArray ( tmp ) , _toConsumableArray ( found ) ) ;
const tmp3 = _toConsumableArray ( tmp ) ;
2026-07-20 16:05:17 +00:00
}
}
function processResolvedRoutes ( arr , children ) {
let tmp = null ;
if ( arguments . length > 2 ) {
tmp = null ;
if ( undefined !== arguments [ 2 ] ) {
tmp = arguments [ 2 ] ;
}
}
let tmp2 ;
if ( arguments . length > 3 ) {
tmp2 = arguments [ 3 ] ;
}
2026-07-23 10:11:24 +00:00
const item = arr . forEach ( ( item10042 ) => {
outer1 _16 . add ( item10042 ) ;
if ( outer1 _12 ) {
const result = outer1 _0 ( outer1 _1 [ 7 ] ) . checkRouteForAsyncHandler ( item10042 , outer1 _23 ) ;
const obj = outer1 _0 ( outer1 _1 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
if ( children ) {
addResolvedRoutesToParent ( arr , children ) ;
}
let activeRootSpan = tmp2 ;
if ( null == tmp2 ) {
2026-07-23 10:11:24 +00:00
let obj = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
activeRootSpan = obj . getActiveRootSpan ( ) ;
}
if ( activeRootSpan ) {
2026-07-23 10:11:24 +00:00
let obj1 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
const spanToJSONResult = obj1 . spanToJSON ( activeRootSpan ) ;
if ( spanToJSONResult . timestamp ) {
2026-07-23 10:11:24 +00:00
if ( require ( 1118 ) . DEBUG _BUILD ) {
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "[React Router] Lazy handler resolved after span ended - skipping update" ) ;
}
} else {
const op = spanToJSONResult . op ;
let tmp12 = tmp ;
if ( ! tmp ) {
tmp12 = tmp ;
if ( ! tmp2 ) {
tmp12 = tmp ;
2026-07-23 10:11:24 +00:00
if ( undefined !== require ( 1000 ) /* keys */ . WINDOW ) {
const _location = require ( 1000 ) /* keys */ . WINDOW . location ;
2026-07-20 16:05:17 +00:00
tmp12 = tmp ;
if ( tmp17 ) {
obj = { pathname : _location . pathname } ;
tmp12 = obj ;
}
2026-07-23 10:11:24 +00:00
tmp17 = null != _location && _location . pathname ;
2026-07-20 16:05:17 +00:00
}
}
}
if ( tmp12 ) {
if ( "pageload" === op ) {
obj = { activeRootSpan } ;
obj1 = { pathname : tmp12 . pathname } ;
obj . location = obj1 ;
const _Array = Array ;
obj . routes = Array . from ( set ) ;
const _Array2 = Array ;
obj . allRoutes = Array . from ( set ) ;
updatePageloadTransaction ( obj ) ;
} else if ( "navigation" === op ) {
const _Array3 = Array ;
updateNavigationSpan ( activeRootSpan , tmp12 , Array . from ( set ) , false , closure _10 ) ;
}
}
}
}
}
function updateNavigationSpan ( activeRootSpan , _location , arg2 , arg3 , closure _10 ) {
if ( arguments . length > 4 ) {
const tmp2 = arguments [ 4 ] ;
}
2026-07-23 10:11:24 +00:00
const spanToJSONResult = require ( 794 ) /* registerSpanErrorInstrumentation */ . spanToJSON ( activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
const description = spanToJSONResult . description ;
let prop ;
if ( null != activeRootSpan ) {
prop = activeRootSpan . _ _sentry _navigation _name _set _ _ ;
}
let result = description ;
if ( description ) {
2026-07-23 10:11:24 +00:00
result = require ( 1125 ) /* pickSplat */ . transactionNameHasWildcard ( description ) ;
const obj2 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
}
if ( ! spanToJSONResult . timestamp ) {
const tmp2Result = tmp2 ( arg2 , _location ) ;
2026-07-23 10:11:24 +00:00
const obj3 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
let items = tmp2Result ;
if ( ! tmp2Result ) {
items = [ ] ;
}
2026-07-23 10:11:24 +00:00
const tmp17 = _slicedToArray ( obj3 . resolveRouteNameAndSource ( _location , arg2 , arg2 , items , "" ) , 2 ) ;
2026-07-20 16:05:17 +00:00
const first = tmp17 [ 0 ] ;
const data = spanToJSONResult . data ;
2026-07-23 10:11:24 +00:00
if ( null != data ) {
const tmp20 = data [ require ( undefined , 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE ] ;
}
2026-07-20 16:05:17 +00:00
let tmp23 = first ;
if ( first ) {
let tmp24 = ! description ;
if ( ! tmp24 ) {
let tmp25 = ! prop ;
if ( tmp25 ) {
tmp25 = "route" !== tmp20 || "route" === tmp19 ;
const tmp26 = "route" !== tmp20 || "route" === tmp19 ;
}
tmp24 = tmp25 ;
}
if ( ! tmp24 ) {
tmp24 = "route" !== tmp20 && "route" === tmp19 ;
const tmp27 = "route" !== tmp20 && "route" === tmp19 ;
}
if ( ! tmp24 ) {
tmp24 = "route" === tmp20 && "route" === tmp19 && result ;
const tmp28 = "route" === tmp20 && "route" === tmp19 && result ;
}
tmp23 = tmp24 ;
}
if ( tmp23 ) {
activeRootSpan . updateName ( first ) ;
2026-07-23 10:11:24 +00:00
const attr = activeRootSpan . setAttribute ( require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp19 ) ;
let result1 = require ( 1125 ) /* pickSplat */ . transactionNameHasWildcard ( first ) ;
2026-07-20 16:05:17 +00:00
if ( ! result1 ) {
result1 = "route" !== tmp19 ;
}
if ( ! result1 ) {
2026-07-23 10:11:24 +00:00
const result2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . addNonEnumerableProperty ( activeRootSpan , "__sentry_navigation_name_set__" , true ) ;
const obj5 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj4 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
}
}
}
function setupRouterSubscription ( subscribe ) {
2026-07-23 10:11:24 +00:00
const _require = arg1 ;
let dependencyMap = arg2 ;
2026-07-20 16:05:17 +00:00
let closure _2 = arg3 ;
2026-07-23 10:11:24 +00:00
let c3 = false ;
2026-07-20 16:05:17 +00:00
let tmp2 = ! tmp ;
if ( ! ! arg4 ) {
2026-07-23 10:11:24 +00:00
tmp2 = "pageload" === _require ( 794 ) . spanToJSON ( arg4 ) . op ;
let obj = _require ( 794 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const _slicedToArray = tmp2 ;
let c5 = false ;
let c6 = null ;
let c7 = null ;
2026-07-20 16:05:17 +00:00
const subscription = subscribe . subscribe ( ( historyAction ) => {
2026-07-23 10:11:24 +00:00
const callback = historyAction ;
if ( ! c3 ) {
const activeRootSpan = callback ( 1125 ) . getActiveRootSpan ( ) ;
2026-07-20 16:05:17 +00:00
if ( activeRootSpan ) {
if ( "pageload" === obj2 . spanToJSON ( activeRootSpan ) . op ) {
2026-07-23 10:11:24 +00:00
let c4 = true ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = callback ( 794 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( c4 ) {
2026-07-20 16:05:17 +00:00
if ( "POP" === historyAction . historyAction ) {
2026-07-23 10:11:24 +00:00
if ( ! c5 ) {
c5 = true ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
c3 = true ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let obj = callback ( 1125 ) ;
2026-07-20 16:05:17 +00:00
}
if ( "PUSH" === historyAction . historyAction ) {
2026-07-23 10:11:24 +00:00
const tmp9 = outer1 _19 ( historyAction . location ) ;
const dependencyMap = tmp9 ;
function navigationHandler ( ) {
if ( c7 !== closure _1 ) {
c7 = closure _1 ;
let c6 = null ;
const obj = { location : historyAction . location , routes : historyAction , navigationType : historyAction . historyAction , version : closure _1 , basename : outer1 _2 } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _27 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( "idle" !== historyAction . navigation . state ) {
2026-07-23 10:11:24 +00:00
if ( c7 !== tmp9 ) {
c7 = null ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( null !== c6 ) {
outer1 _18 ( c6 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const WINDOW = callback ( 1000 ) . WINDOW ;
2026-07-20 16:05:17 +00:00
if ( null == WINDOW ) {
const _setTimeout = setTimeout ;
let timerId = setTimeout ( navigationHandler , 0 ) ;
2026-07-23 10:11:24 +00:00
c6 = timerId ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const WINDOW2 = callback ( 1000 ) . WINDOW ;
2026-07-20 16:05:17 +00:00
timerId = WINDOW2 . requestAnimationFrame ( navigationHandler ) ;
} else {
2026-07-23 10:11:24 +00:00
if ( null !== c6 ) {
outer1 _18 ( c6 ) ;
c6 = null ;
2026-07-20 16:05:17 +00:00
}
navigationHandler ( ) ;
}
}
} ) ;
}
function wrapPatchRoutesOnNavigation ( arg0 ) {
let obj = arg0 ;
let closure _0 = arguments . length > 1 && undefined !== arguments [ 1 ] && arguments [ 1 ] ;
if ( obj ) {
if ( "patchRoutesOnNavigation" in obj ) {
if ( "function" === typeof obj . patchRoutesOnNavigation ) {
2026-07-23 10:11:24 +00:00
const patchRoutesOnNavigation = obj . patchRoutesOnNavigation ;
2026-07-20 16:05:17 +00:00
const _Object = Object ;
obj = { } ;
2026-07-23 10:11:24 +00:00
let closure _1 = patchRoutesOnNavigation ( async ( arg0 ) => {
2026-07-20 16:05:17 +00:00
if ( obj ) {
return obj . resume ( ) ;
} else {
2026-07-23 10:11:24 +00:00
const callback = arg0 ;
2026-07-20 16:05:17 +00:00
let path ;
let activeRootSpan ;
let patch ;
path = undefined ;
if ( null != arg0 ) {
path = arg0 . path ;
}
2026-07-23 10:11:24 +00:00
activeRootSpan = callback ( table [ 6 ] ) . getActiveRootSpan ( ) ;
if ( ! outer1 _0 ) {
2026-07-20 16:05:17 +00:00
patch = undefined ;
if ( null != arg0 ) {
patch = arg0 . patch ;
}
if ( patch ) {
arg0 . patch = ( arg0 , arg1 ) => {
2026-07-23 10:11:24 +00:00
outer3 _28 ( arg1 ) ;
let obj = path ( path2 [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
const activeRootSpan = obj . getActiveRootSpan ( ) ;
let tmp3 = path ;
if ( path ) {
tmp3 = activeRootSpan ;
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
tmp3 = "navigation" === path ( path2 [ 8 ] ) . spanToJSON ( activeRootSpan ) . op ;
const obj2 = path ( path2 [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
obj = { pathname : path , search : "" , hash : "" , state : null , key : "default" } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
outer3 _24 ( activeRootSpan , obj , Array . from ( outer3 _16 ) , true , outer3 _10 ) ;
2026-07-20 16:05:17 +00:00
}
return patch ( arg0 , arg1 ) ;
} ;
}
}
2026-07-23 10:11:24 +00:00
let tmp9 = patchRoutesOnNavigation ( async ( ) => {
let obj = callback ( 1125 ) ;
const setNavigationContextResult = obj . setNavigationContext ( outer1 _1 , outer1 _2 ) ;
const tmp2 = yield outer3 _2 ( outer1 _0 ) ;
const result = callback ( 1125 ) . clearNavigationContext ( setNavigationContextResult ) ;
const obj2 = callback ( 1125 ) ;
const activeRootSpan = callback ( 1125 ) . getActiveRootSpan ( ) ;
2026-07-20 16:05:17 +00:00
if ( activeRootSpan ) {
if ( "navigation" === obj4 . spanToJSON ( tmp5 ) . op ) {
2026-07-23 10:11:24 +00:00
if ( outer3 _0 ) {
2026-07-20 16:05:17 +00:00
let tmp9 = tmp25 ;
} else {
tmp9 = tmp25 ;
if ( ! tmp25 ) {
2026-07-23 10:11:24 +00:00
const _location = callback ( 1000 ) . WINDOW . location ;
2026-07-20 16:05:17 +00:00
let pathname ;
if ( null != _location ) {
pathname = _location . pathname ;
}
tmp9 = pathname ;
}
}
if ( tmp9 ) {
2026-07-23 10:11:24 +00:00
obj = { pathname : tmp9 , search : "" , hash : "" , state : null , key : "default" } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
outer4 _24 ( activeRootSpan , obj , Array . from ( outer4 _16 ) , false , outer4 _10 ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
obj4 = callback ( 794 ) ;
2026-07-20 16:05:17 +00:00
}
return tmp2 ;
} ) ( ) ;
if ( activeRootSpan ) {
2026-07-23 10:11:24 +00:00
( function trackLazyRouteLoad ( activeRootSpan , promise ) {
let closure _0 = activeRootSpan ;
let closure _1 = promise ;
let value = outer3 _17 . get ( activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
if ( ! value ) {
const _Set = Set ;
const set = new Set ( ) ;
2026-07-23 10:11:24 +00:00
const result = outer3 _17 . set ( activeRootSpan , set ) ;
2026-07-20 16:05:17 +00:00
value = set ;
}
value . add ( promise ) ;
promise . finally ( ( ) => {
2026-07-23 10:11:24 +00:00
const value = outer4 _17 . get ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
if ( value ) {
2026-07-23 10:11:24 +00:00
value . delete ( closure _1 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( activeRootSpan , tmp9 ) ;
2026-07-20 16:05:17 +00:00
}
return tmp9 ;
}
} ) ;
obj . patchRoutesOnNavigation = function patchRoutesOnNavigation ( arg0 ) {
return callback ( ... arguments ) ;
} ;
return Object . assign ( { } , obj , obj ) ;
}
}
}
if ( ! obj ) {
obj = { } ;
}
return obj ;
}
function handleNavigation ( arg0 ) {
let _location ;
let allRoutes ;
let basename ;
let matches ;
let navigationType ;
let routes ;
let version ;
( { location : _location , routes , navigationType , version , matches , basename , allRoutes } = arg0 ) ;
let logResult = matches ;
if ( ! Array . isArray ( matches ) ) {
let tmp3 = allRoutes ;
if ( ! allRoutes ) {
tmp3 = routes ;
}
logResult = closure _10 ( tmp3 , _location , basename ) ;
const tmp2 = closure _10 ;
}
2026-07-23 10:11:24 +00:00
let obj = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
const client = obj . getClient ( ) ;
if ( client ) {
if ( weakSet . has ( tmp7 ) ) {
2026-07-23 10:11:24 +00:00
let obj1 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
const activeRootSpan = obj1 . getActiveRootSpan ( ) ;
if ( activeRootSpan ) {
2026-07-23 10:11:24 +00:00
let obj2 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
if ( "PUSH" === navigationType ) {
if ( logResult ) {
2026-07-23 10:11:24 +00:00
const obj4 = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
let tmp18 = allRoutes ;
if ( ! allRoutes ) {
tmp18 = routes ;
}
let tmp19 = allRoutes ;
if ( ! allRoutes ) {
tmp19 = routes ;
}
2026-07-23 10:11:24 +00:00
const tmp27 = _slicedToArray ( obj4 . resolveRouteNameAndSource ( _location , tmp18 , tmp19 , logResult , basename ) , 2 ) ;
2026-07-20 16:05:17 +00:00
const first = tmp27 [ 0 ] ;
const tmp33 = computeLocationKey ( _location ) ;
const value = weakMap . get ( tmp7 ) ;
let isPlaceholder = ! value ;
if ( ! isPlaceholder ) {
isPlaceholder = value . isPlaceholder ;
}
let timestamp = ! isPlaceholder ;
if ( timestamp ) {
2026-07-23 10:11:24 +00:00
timestamp = require ( 794 ) /* registerSpanErrorInstrumentation */ . spanToJSON ( value . span ) . timestamp ;
const obj5 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
const tmp38Result = shouldSkipNavigation ( value , tmp33 , first , timestamp ) ;
if ( tmp38Result . skip ) {
if ( tmp38Result . shouldUpdate ) {
if ( value ) {
const routeName = value . routeName ;
if ( value . isPlaceholder ) {
value . routeName = tmp29 ;
2026-07-23 10:11:24 +00:00
if ( require ( 1118 ) . DEBUG _BUILD ) {
const debug3 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal4 = HermesInternal ;
logResult = routeName ;
logResult = debug3 . log ( "[Tracing] Updated placeholder navigation name from \"" + routeName + "\" to \"" + tmp29 + "\" (will apply to real span)" ) ;
}
} else {
const span = value . span ;
span . updateName ( tmp29 ) ;
const span2 = value . span ;
2026-07-23 10:11:24 +00:00
const attr = span2 . setAttribute ( require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp30 ) ;
const result = require ( 794 ) /* registerSpanErrorInstrumentation */ . addNonEnumerableProperty ( value . span , "__sentry_navigation_name_set__" , true ) ;
2026-07-20 16:05:17 +00:00
value . routeName = tmp29 ;
2026-07-23 10:11:24 +00:00
if ( require ( 1118 ) . DEBUG _BUILD ) {
const debug2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal3 = HermesInternal ;
debug2 . log ( "[Tracing] Updated navigation span name from \"" + routeName + "\" to \"" + tmp29 + "\"" ) ;
}
2026-07-23 10:11:24 +00:00
const obj12 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-23 10:11:24 +00:00
if ( require ( 1118 ) . DEBUG _BUILD ) {
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
debug . log ( "[Tracing] Skipping duplicate navigation for location: " + tmp34 ) ;
}
} else {
obj = { } ;
obj = {
end ( ) {
}
} ;
obj . span = obj ;
obj . routeName = tmp29 ;
obj . pathname = _location . pathname ;
obj . locationKey = tmp34 ;
obj . isPlaceholder = true ;
const result1 = weakMap . set ( tmp7 , obj ) ;
obj1 = { name : obj . routeName } ;
2026-07-23 10:11:24 +00:00
const obj8 = require ( 1000 ) /* keys */ ;
const tmp60 = _defineProperty ( { } , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp30 ) ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
obj1 . attributes = _defineProperty ( _defineProperty ( _defineProperty ( { } , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp30 ) , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _OP , "navigation" ) , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _ORIGIN , "auto.navigation.react.reactrouter_v" + version ) ;
2026-07-20 16:05:17 +00:00
const result2 = obj8 . startBrowserTracingNavigationSpan ( tmp7 , obj1 ) ;
if ( result2 ) {
obj2 = { span : result2 , routeName : obj . routeName , pathname : _location . pathname , locationKey : tmp34 } ;
const result3 = obj10 . set ( tmp7 , obj2 ) ;
patchSpanEnd ( result2 , _location , routes , basename , allRoutes , "navigation" ) ;
} else {
obj10 . delete ( tmp7 ) ;
}
2026-07-23 10:11:24 +00:00
const tmp61 = _defineProperty ( _defineProperty ( { } , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp30 ) , require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _OP , "navigation" ) ;
2026-07-20 16:05:17 +00:00
}
const tmp17 = _location ;
const tmp38 = shouldSkipNavigation ;
}
}
}
}
}
function addRoutesToAllRoutes ( arr ) {
2026-07-23 10:11:24 +00:00
let item = arr . forEach ( ( arg0 ) => {
const item = outer1 _29 ( arg0 ) . forEach ( ( arg0 ) => {
outer2 _16 . add ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
}
function getChildRoutesRecursively ( children ) {
if ( arguments . length > 1 ) {
if ( undefined !== arguments [ 1 ] ) {
let set = arguments [ 1 ] ;
}
if ( ! set . has ( children ) ) {
set . add ( children ) ;
if ( tmp2 ) {
children = children . children ;
2026-07-23 10:11:24 +00:00
let item = children . forEach ( ( arg0 ) => {
const item = outer1 _29 ( arg0 , set ) . forEach ( ( arg0 ) => {
outer1 _0 . add ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
}
2026-07-23 10:11:24 +00:00
tmp2 = children . children && ! children . index ;
2026-07-20 16:05:17 +00:00
}
return set ;
}
set = new Set ( ) ;
}
function updatePageloadTransaction ( arg0 ) {
let _location ;
let activeRootSpan ;
let allRoutes ;
let basename ;
let matches ;
let routes ;
( { activeRootSpan , location : _location , routes , matches , basename , allRoutes } = arg0 ) ;
let tmp = matches ;
if ( ! Array . isArray ( matches ) ) {
let tmp3 = allRoutes ;
if ( ! allRoutes ) {
tmp3 = routes ;
}
tmp = closure _10 ( tmp3 , _location , basename ) ;
const tmp2 = closure _10 ;
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
const obj = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
let tmp6 = allRoutes ;
if ( ! allRoutes ) {
tmp6 = routes ;
}
let tmp7 = allRoutes ;
if ( ! allRoutes ) {
tmp7 = routes ;
}
2026-07-23 10:11:24 +00:00
const tmp15 = _slicedToArray ( obj . resolveRouteNameAndSource ( _location , tmp6 , tmp7 , tmp , basename ) , 2 ) ;
2026-07-20 16:05:17 +00:00
const first = tmp15 [ 0 ] ;
2026-07-23 10:11:24 +00:00
const currentScope = require ( 794 ) /* registerSpanErrorInstrumentation */ . getCurrentScope ( ) ;
2026-07-20 16:05:17 +00:00
let str = first ;
if ( ! first ) {
str = "/" ;
}
currentScope . setTransactionName ( str ) ;
if ( activeRootSpan ) {
activeRootSpan . updateName ( first ) ;
2026-07-23 10:11:24 +00:00
const attr = activeRootSpan . setAttribute ( require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp15 [ 1 ] ) ;
2026-07-20 16:05:17 +00:00
patchSpanEnd ( activeRootSpan , _location , routes , basename , allRoutes , "pageload" ) ;
}
2026-07-23 10:11:24 +00:00
const obj2 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
}
function tryUpdateSpanNameBeforeEnd ( updateName , data , description , _location , arg4 , basename ) {
data = data . data ;
let tmp2 ;
if ( null != data ) {
2026-07-23 10:11:24 +00:00
tmp2 = tmp [ require ( undefined , 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE ] ;
2026-07-20 16:05:17 +00:00
}
if ( "route" === tmp2 ) {
if ( description ) {
2026-07-23 10:11:24 +00:00
let obj = require ( 1125 ) /* pickSplat */ ;
2026-07-20 16:05:17 +00:00
}
}
const arr = Array . from ( arg7 ) ;
const tmp11 = arr . length > 0 ? arr : arg4 ;
2026-07-23 10:11:24 +00:00
const tmp13 = callback ( tmp11 , _location , basename ) ;
2026-07-20 16:05:17 +00:00
if ( tmp13 ) {
2026-07-23 10:11:24 +00:00
let obj2 = require ( 1125 ) /* pickSplat */ ;
const tmp24 = _slicedToArray ( obj2 . resolveRouteNameAndSource ( _location , tmp12 , tmp12 , tmp14 , basename ) , 2 ) ;
2026-07-20 16:05:17 +00:00
const first = tmp24 [ 0 ] ;
2026-07-23 10:11:24 +00:00
const tmp33 = ( function shouldUpdateWildcardSpanName ( description , arg1 , first , arg3 , arg4 ) {
2026-07-20 16:05:17 +00:00
let tmp2 = ! tmp ;
if ( ! ! first ) {
let tmp3 = description ;
if ( ! description ) {
tmp3 = ! ( arguments . length > 4 && undefined !== arguments [ 4 ] && arguments [ 4 ] ) ;
const tmp4 = arguments . length > 4 && undefined !== arguments [ 4 ] && arguments [ 4 ] ;
}
let tmp5 = ! tmp3 ;
if ( ! tmp5 ) {
let result = ! description ;
if ( ! result ) {
2026-07-23 10:11:24 +00:00
result = ! outer1 _0 ( outer1 _1 [ 6 ] ) . transactionNameHasWildcard ( description ) ;
const obj = outer1 _0 ( outer1 _1 [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! result ) {
result = "route" !== arg3 ;
}
if ( ! result ) {
2026-07-23 10:11:24 +00:00
result = outer1 _0 ( outer1 _1 [ 6 ] ) . transactionNameHasWildcard ( first ) ;
const obj2 = outer1 _0 ( outer1 _1 [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
}
tmp5 = ! result ;
}
if ( ! tmp5 ) {
tmp5 = "route" !== arg1 && "route" === arg3 ;
const tmp12 = "route" !== arg1 && "route" === arg3 ;
}
tmp2 = tmp5 ;
}
return tmp2 ;
2026-07-23 10:11:24 +00:00
} ) ( description , tmp2 , first , tmp24 [ 1 ] , true ) ;
2026-07-20 16:05:17 +00:00
let tmp36 = tmp35 ;
if ( "pageload" !== arg6 ) {
tmp36 = ! data . timestamp ;
}
let tmp38 = tmp33 ;
if ( tmp33 ) {
tmp38 = tmp36 ;
}
if ( tmp38 ) {
updateName . updateName ( first ) ;
2026-07-23 10:11:24 +00:00
const attr = updateName . setAttribute ( require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , tmp27 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
function patchSpanEnd ( activeRootSpan , _location , routes , basename , allRoutes , navigation ) {
2026-07-23 10:11:24 +00:00
const _require = activeRootSpan ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _location ;
let closure _2 = routes ;
let closure _3 = basename ;
let closure _4 = navigation ;
let obj = globalThis ;
const combined = "__sentry_" + navigation + "_end_patched__" ;
let tmp2 ;
if ( null != activeRootSpan ) {
tmp2 = activeRootSpan [ combined ] ;
}
if ( ! tmp2 ) {
if ( activeRootSpan . end ) {
if ( allRoutes ) {
let _Set = obj . Set ;
2026-07-23 10:11:24 +00:00
let prototype = _Set . prototype ;
2026-07-20 16:05:17 +00:00
_Set = new _Set ( allRoutes ) ;
} else {
_Set = set ;
}
const end = activeRootSpan . end ;
let closure _6 = end . bind ( activeRootSpan ) ;
2026-07-23 10:11:24 +00:00
let c7 = false ;
2026-07-20 16:05:17 +00:00
activeRootSpan . end = function patchedEnd ( ) {
let data ;
let description ;
2026-07-23 10:11:24 +00:00
if ( ! c7 ) {
c7 = true ;
2026-07-20 16:05:17 +00:00
if ( arguments . length > 0 ) {
let first ;
if ( arguments . length > 0 ) {
first = arguments [ 0 ] ;
}
let result = first ;
} else {
const _Date = Date ;
result = Date . now ( ) / 1000 ;
}
2026-07-23 10:11:24 +00:00
const activeRootSpan = result ;
let spanToJSONResult = activeRootSpan ( 794 ) . spanToJSON ( activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
( { description , data } = spanToJSONResult ) ;
if ( null != data ) {
2026-07-23 10:11:24 +00:00
const tmp9 = data [ activeRootSpan ( undefined , 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE ] ;
2026-07-20 16:05:17 +00:00
}
function cleanupNavigationSpan ( ) {
2026-07-23 10:11:24 +00:00
const client = callback ( 794 ) . getClient ( ) ;
2026-07-20 16:05:17 +00:00
if ( client ) {
2026-07-23 10:11:24 +00:00
if ( "navigation" === outer1 _4 ) {
const value = outer2 _15 . get ( client ) ;
2026-07-20 16:05:17 +00:00
let tmp5 = value ;
if ( value ) {
tmp5 = value . span === result ;
}
if ( tmp5 ) {
2026-07-23 10:11:24 +00:00
outer2 _15 . delete ( client ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-23 10:11:24 +00:00
let value = outer1 _17 . get ( activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
if ( value ) {
if ( value . size > 0 ) {
if ( description ) {
2026-07-23 10:11:24 +00:00
if ( 0 === outer1 _13 ) {
outer1 _31 ( activeRootSpan , spanToJSONResult , description , cleanupNavigationSpan , closure _2 , closure _3 , closure _4 , _Set ) ;
2026-07-20 16:05:17 +00:00
const result1 = cleanupNavigationSpan ( ) ;
callback ( result ) ;
} else {
const nextPromise = Promise . allSettled ( value ) . then ( ( ) => {
} ) ;
let racePromise = nextPromise ;
2026-07-23 10:11:24 +00:00
if ( outer1 _13 !== Infinity ) {
2026-07-20 16:05:17 +00:00
const items = [ nextPromise , ] ;
2026-07-23 10:11:24 +00:00
const promise = new Promise ( ( arg0 ) => setTimeout ( arg0 , outer2 _13 ) ) ;
2026-07-20 16:05:17 +00:00
items [ 1 ] = promise ;
racePromise = Promise . race ( items ) ;
}
const allSettledResult = Promise . allSettled ( value ) ;
racePromise . then ( ( ) => {
2026-07-23 10:11:24 +00:00
const spanToJSONResult = callback ( 794 ) . spanToJSON ( result ) ;
outer2 _31 ( result , spanToJSONResult , spanToJSONResult . description , cleanupNavigationSpan , outer1 _2 , outer1 _3 , outer1 _4 , outer1 _5 ) ;
2026-07-20 16:05:17 +00:00
cleanupNavigationSpan ( ) ;
2026-07-23 10:11:24 +00:00
outer1 _6 ( callback ) ;
2026-07-20 16:05:17 +00:00
} ) . catch ( ( ) => {
cleanupNavigationSpan ( ) ;
2026-07-23 10:11:24 +00:00
outer1 _6 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
const nextPromise1 = racePromise . then ( ( ) => {
2026-07-23 10:11:24 +00:00
const spanToJSONResult = callback ( 794 ) . spanToJSON ( result ) ;
outer2 _31 ( result , spanToJSONResult , spanToJSONResult . description , cleanupNavigationSpan , outer1 _2 , outer1 _3 , outer1 _4 , outer1 _5 ) ;
2026-07-20 16:05:17 +00:00
cleanupNavigationSpan ( ) ;
2026-07-23 10:11:24 +00:00
outer1 _6 ( callback ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
2026-07-23 10:11:24 +00:00
const obj2 = activeRootSpan ( 1125 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-23 10:11:24 +00:00
outer1 _31 ( activeRootSpan , spanToJSONResult , description , cleanupNavigationSpan , closure _2 , closure _3 , closure _4 , _Set ) ;
2026-07-20 16:05:17 +00:00
const result2 = cleanupNavigationSpan ( ) ;
callback ( result ) ;
2026-07-23 10:11:24 +00:00
const obj = activeRootSpan ( 794 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
obj = _require ( 794 ) ;
let result = obj . addNonEnumerableProperty ( activeRootSpan , combined , true ) ;
2026-07-20 16:05:17 +00:00
}
}
}
Object . defineProperty ( exports , Symbol . toStringTag , { value : "Module" } ) ;
2026-07-23 10:11:24 +00:00
let c12 = false ;
let c13 = 3000 ;
2026-07-20 16:05:17 +00:00
const weakSet = new WeakSet ( ) ;
const weakMap = new WeakMap ( ) ;
2026-07-23 10:11:24 +00:00
let set = new Set ( ) ;
2026-07-20 16:05:17 +00:00
const weakMap1 = new WeakMap ( ) ;
export { addResolvedRoutesToParent } ;
export { addRoutesToAllRoutes } ;
export const allRoutes = set ;
export { computeLocationKey } ;
2026-07-23 10:11:24 +00:00
export const createReactRouterV6CompatibleTracingIntegration = function createReactRouterV6CompatibleTracingIntegration ( instrumentPageLoad , _6 ) {
let _defineProperty ;
let _slicedToArray ;
let _toConsumableArray ;
let closure _6 ;
let closure _7 ;
let closure _8 ;
2026-07-20 16:05:17 +00:00
let enableAsyncRouteHandlers ;
2026-07-23 10:11:24 +00:00
const _require = instrumentPageLoad ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _6 ;
2026-07-23 10:11:24 +00:00
let obj = _require ( 1000 ) ;
let result = obj . browserTracingIntegration ( Object . assign ( { } , instrumentPageLoad , { instrumentPageLoad : false , instrumentNavigation : false } ) ) ;
const asyncGeneratorStep = result ;
( { useEffect : _defineProperty , useLocation : _slicedToArray , useNavigationType : _toConsumableArray , createRoutesFromChildren : closure _6 , matchRoutes : closure _7 , stripBasename : closure _8 , enableAsyncRouteHandlers } = instrumentPageLoad ) ;
2026-07-20 16:05:17 +00:00
let closure _9 = undefined !== enableAsyncRouteHandlers && enableAsyncRouteHandlers ;
instrumentPageLoad = instrumentPageLoad . instrumentPageLoad ;
let closure _10 = undefined === instrumentPageLoad || instrumentPageLoad ;
const instrumentNavigation = instrumentPageLoad . instrumentNavigation ;
let closure _11 = undefined === instrumentNavigation || instrumentNavigation ;
2026-07-23 10:11:24 +00:00
let lazyRouteTimeout = instrumentPageLoad . lazyRouteTimeout ;
2026-07-20 16:05:17 +00:00
obj = {
2026-07-23 10:11:24 +00:00
setup ( arg0 ) {
closure _2 . setup ( arg0 ) ;
const finalTimeout = instrumentPageLoad . finalTimeout ;
2026-07-20 16:05:17 +00:00
let num = 30000 ;
if ( null != finalTimeout ) {
num = finalTimeout ;
}
2026-07-23 10:11:24 +00:00
const idleTimeout = instrumentPageLoad . idleTimeout ;
2026-07-20 16:05:17 +00:00
let num2 = 1000 ;
if ( null != idleTimeout ) {
num2 = idleTimeout ;
}
const result = 3 * num2 ;
let tmp3 = result ;
2026-07-23 10:11:24 +00:00
if ( null != lazyRouteTimeout ) {
tmp3 = lazyRouteTimeout ;
2026-07-20 16:05:17 +00:00
}
if ( tmp3 === Infinity ) {
2026-07-23 10:11:24 +00:00
let outer1 _13 = num ;
if ( instrumentPageLoad ( 1118 ) . DEBUG _BUILD ) {
const debug3 = instrumentPageLoad ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
debug3 . log ( "[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:" , num , "ms to prevent indefinite hangs" ) ;
}
} else {
const _Number = Number ;
if ( Number . isNaN ( tmp3 ) ) {
2026-07-23 10:11:24 +00:00
if ( instrumentPageLoad ( 1118 ) . DEBUG _BUILD ) {
const debug2 = instrumentPageLoad ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
debug2 . warn ( "[React Router] lazyRouteTimeout must be a number, falling back to default:" , result ) ;
}
2026-07-23 10:11:24 +00:00
outer1 _13 = result ;
2026-07-20 16:05:17 +00:00
} else if ( tmp3 < 0 ) {
2026-07-23 10:11:24 +00:00
if ( instrumentPageLoad ( 1118 ) . DEBUG _BUILD ) {
const debug = instrumentPageLoad ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "[React Router] lazyRouteTimeout must be non-negative or Infinity, got:" , tmp3 , "falling back to:" , result ) ;
}
2026-07-23 10:11:24 +00:00
outer1 _13 = result ;
} else {
outer1 _13 = tmp3 ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
const outer1 _6 = closure _3 ;
const outer1 _7 = closure _4 ;
const outer1 _8 = closure _5 ;
2026-07-20 16:05:17 +00:00
let closure _10 = closure _7 ;
let closure _9 = closure _6 ;
2026-07-23 10:11:24 +00:00
lazyRouteTimeout = closure _9 ;
2026-07-20 16:05:17 +00:00
let flag = closure _8 ;
if ( ! closure _8 ) {
flag = false ;
}
2026-07-23 10:11:24 +00:00
const result1 = instrumentPageLoad ( 1125 ) . initializeRouterUtils ( closure _7 , flag ) ;
2026-07-20 16:05:17 +00:00
} ,
2026-07-23 10:11:24 +00:00
afterAllSetup ( closure _0 ) {
closure _2 . afterAllSetup ( closure _0 ) ;
const _location = instrumentPageLoad ( 1000 ) . WINDOW . location ;
2026-07-20 16:05:17 +00:00
if ( null != _location ) {
const pathname = _location . pathname ;
}
let tmp2 = closure _10 ;
if ( closure _10 ) {
tmp2 = pathname ;
}
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
let obj = instrumentPageLoad ( 1000 ) ;
2026-07-20 16:05:17 +00:00
obj = { name : pathname } ;
2026-07-23 10:11:24 +00:00
const tmp6 = outer1 _3 ( { } , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , "url" ) ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
obj . attributes = outer1 _3 ( outer1 _3 ( outer1 _3 ( { } , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , "url" ) , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _OP , "pageload" ) , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _ORIGIN , "auto.pageload.react.reactrouter_v" + dependencyMap ) ;
const result = obj . startBrowserTracingPageLoadSpan ( closure _0 , obj ) ;
const tmp7 = outer1 _3 ( outer1 _3 ( { } , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _SOURCE , "url" ) , instrumentPageLoad ( 794 ) . SEMANTIC _ATTRIBUTE _SENTRY _OP , "pageload" ) ;
2026-07-20 16:05:17 +00:00
}
if ( closure _11 ) {
2026-07-23 10:11:24 +00:00
outer1 _14 . add ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;
return Object . assign ( { } , result , obj ) ;
} ;
2026-07-23 10:11:24 +00:00
export const createV6CompatibleWithSentryReactRouterRouting = function createV6CompatibleWithSentryReactRouterRouting ( arg0 , _6 ) {
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _6 ;
if ( closure _6 ) {
if ( closure _7 ) {
if ( closure _8 ) {
if ( closure _9 ) {
if ( closure _10 ) {
class SentryRoutes {
constructor ( arg0 ) {
2026-07-23 10:11:24 +00:00
closure _0 = arg0 ;
c1 = outer1 _11 . useRef ( true ) ;
tmp = outer1 _7 ( ) ;
2026-07-20 16:05:17 +00:00
closure _2 = tmp ;
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _8 ( ) ;
2026-07-20 16:05:17 +00:00
closure _3 = tmp2 ;
items = [ , ] ;
items [ 0 ] = tmp ;
items [ 1 ] = tmp2 ;
2026-07-23 10:11:24 +00:00
tmp3 = outer1 _6 ( ( ) => {
const tmp = outer2 _9 ( lib . children ) ;
2026-07-20 16:05:17 +00:00
if ( ref . current ) {
2026-07-23 10:11:24 +00:00
outer2 _28 ( tmp ) ;
let obj = { activeRootSpan : lib ( ref [ 6 ] ) . getActiveRootSpan ( ) , location : closure _2 , routes : tmp } ;
2026-07-20 16:05:17 +00:00
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _30 ( obj ) ;
2026-07-20 16:05:17 +00:00
ref . current = false ;
2026-07-23 10:11:24 +00:00
const obj3 = lib ( ref [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
obj = { location : closure _2 , routes : tmp , navigationType : closure _3 , version : ref } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _27 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} , items ) ;
2026-07-23 10:11:24 +00:00
return outer1 _11 . createElement ( closure _0 , Object . assign ( { } , arg0 ) ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
_require ( 1116 ) . hoistNonReactStatics ( SentryRoutes , arg0 ) ;
2026-07-20 16:05:17 +00:00
return SentryRoutes ;
}
}
}
}
}
2026-07-23 10:11:24 +00:00
if ( _require ( 1118 ) . DEBUG _BUILD ) {
2026-07-20 16:05:17 +00:00
class SentryRoutes {
constructor ( arg0 ) {
2026-07-23 10:11:24 +00:00
closure _0 = arg0 ;
c1 = outer1 _11 . useRef ( true ) ;
tmp = outer1 _7 ( ) ;
2026-07-20 16:05:17 +00:00
closure _2 = tmp ;
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _8 ( ) ;
2026-07-20 16:05:17 +00:00
closure _3 = tmp2 ;
items = [ , ] ;
items [ 0 ] = tmp ;
items [ 1 ] = tmp2 ;
2026-07-23 10:11:24 +00:00
tmp3 = outer1 _6 ( ( ) => {
const tmp = outer2 _9 ( lib . children ) ;
2026-07-20 16:05:17 +00:00
if ( ref . current ) {
2026-07-23 10:11:24 +00:00
outer2 _28 ( tmp ) ;
let obj = { activeRootSpan : lib ( ref [ 6 ] ) . getActiveRootSpan ( ) , location : closure _2 , routes : tmp } ;
2026-07-20 16:05:17 +00:00
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _30 ( obj ) ;
2026-07-20 16:05:17 +00:00
ref . current = false ;
2026-07-23 10:11:24 +00:00
const obj3 = lib ( ref [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
obj = { location : closure _2 , routes : tmp , navigationType : closure _3 , version : ref } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _27 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} , items ) ;
2026-07-23 10:11:24 +00:00
return outer1 _11 . createElement ( closure _0 , Object . assign ( { } , arg0 ) ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
const debug = _require ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . warn ( "reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: " + closure _6 + ". useLocation: " + closure _7 + ". useNavigationType: " + closure _8 + ".\n createRoutesFromChildren: " + closure _9 + ". matchRoutes: " + closure _10 + "." ) ;
}
return arg0 ;
} ;
2026-07-23 10:11:24 +00:00
export const createV6CompatibleWrapCreateBrowserRouter = function createV6CompatibleWrapCreateBrowserRouter ( arg0 , _6 ) {
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _6 ;
if ( closure _6 ) {
if ( closure _7 ) {
if ( closure _8 ) {
if ( closure _10 ) {
let fn = ( routes , basename ) => {
2026-07-23 10:11:24 +00:00
outer1 _28 ( routes ) ;
if ( outer1 _12 ) {
2026-07-20 16:05:17 +00:00
const tmp3 = routes [ Symbol . iterator ] ( ) ;
while ( tmp3 !== undefined ) {
2026-07-23 10:11:24 +00:00
let tmp6 = callback ;
let tmp7 = dependencyMap ;
let obj = callback ( 1126 ) ;
let tmp8 = outer1 _23 ;
let result = obj . checkRouteForAsyncHandler ( tmp4 , outer1 _23 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
const tmp10 = callback ( routes , outer1 _26 ( basename ) ) ;
2026-07-20 16:05:17 +00:00
basename = undefined ;
if ( null != basename ) {
basename = basename . basename ;
}
2026-07-23 10:11:24 +00:00
const activeRootSpan = callback ( 1125 ) . getActiveRootSpan ( ) ;
2026-07-20 16:05:17 +00:00
if ( tmp13 ) {
obj = { activeRootSpan , location : tmp10 . state . location , routes , basename } ;
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer1 _16 ) ;
outer1 _30 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _25 ( tmp10 , routes , dependencyMap , basename , activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
return tmp10 ;
} ;
}
return fn ;
}
}
}
fn = arg0 ;
2026-07-23 10:11:24 +00:00
if ( _require ( 1118 ) . DEBUG _BUILD ) {
const debug = _require ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . warn ( "reactRouterV" + _6 + "Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters." ) ;
fn = arg0 ;
}
} ;
2026-07-23 10:11:24 +00:00
export const createV6CompatibleWrapCreateMemoryRouter = function createV6CompatibleWrapCreateMemoryRouter ( arg0 , _6 ) {
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _6 ;
if ( closure _6 ) {
if ( closure _7 ) {
if ( closure _8 ) {
if ( closure _10 ) {
let fn = ( routes , basename ) => {
2026-07-23 10:11:24 +00:00
outer1 _28 ( routes ) ;
if ( outer1 _12 ) {
2026-07-20 16:05:17 +00:00
const tmp3 = routes [ Symbol . iterator ] ( ) ;
while ( tmp3 !== undefined ) {
2026-07-23 10:11:24 +00:00
let tmp6 = callback ;
let tmp7 = dependencyMap ;
let obj = callback ( 1126 ) ;
let tmp8 = outer1 _23 ;
let result = obj . checkRouteForAsyncHandler ( tmp4 , outer1 _23 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
const tmp10 = callback ( routes , outer1 _26 ( basename , true ) ) ;
2026-07-20 16:05:17 +00:00
basename = undefined ;
if ( null != basename ) {
basename = basename . basename ;
}
let initialEntries ;
if ( null != basename ) {
initialEntries = basename . initialEntries ;
}
let initialIndex ;
if ( null != basename ) {
initialIndex = basename . initialIndex ;
}
let tmp14 = initialEntries ;
if ( initialEntries ) {
tmp14 = 1 === initialEntries . length ;
}
if ( tmp14 ) {
let first = initialEntries [ 0 ] ;
} else if ( tmp15 ) {
first = initialEntries [ initialIndex ] ;
}
if ( first ) {
let tmp17 = first ;
if ( "string" === typeof first ) {
obj = { pathname : first } ;
tmp17 = obj ;
}
let _location = tmp17 ;
} else {
_location = tmp10 . state . location ;
}
2026-07-23 10:11:24 +00:00
const activeRootSpan = callback ( 1125 ) . getActiveRootSpan ( ) ;
2026-07-20 16:05:17 +00:00
if ( tmp19 ) {
obj = { activeRootSpan , location : _location , routes , basename } ;
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer1 _16 ) ;
outer1 _30 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _25 ( tmp10 , routes , dependencyMap , basename , activeRootSpan ) ;
2026-07-20 16:05:17 +00:00
return tmp10 ;
} ;
}
return fn ;
}
}
}
fn = arg0 ;
2026-07-23 10:11:24 +00:00
if ( _require ( 1118 ) . DEBUG _BUILD ) {
const debug = _require ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . warn ( "reactRouterV" + _6 + "Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters." ) ;
fn = arg0 ;
}
} ;
2026-07-23 10:11:24 +00:00
export const createV6CompatibleWrapUseRoutes = function createV6CompatibleWrapUseRoutes ( arg0 , _6 ) {
const _require = arg0 ;
2026-07-20 16:05:17 +00:00
const dependencyMap = _6 ;
if ( closure _6 ) {
if ( closure _7 ) {
if ( closure _8 ) {
if ( closure _10 ) {
function SentryRoutes ( routes ) {
2026-07-23 10:11:24 +00:00
const callback = outer1 _11 . useRef ( true ) ;
2026-07-20 16:05:17 +00:00
routes = routes . routes ;
const locationArg = routes . locationArg ;
2026-07-23 10:11:24 +00:00
const tmp2 = outer1 _7 ( ) ;
const tmp3 = outer1 _8 ( ) ;
2026-07-20 16:05:17 +00:00
const SentryRoutes = tmp3 ;
if ( "string" === typeof locationArg ) {
let tmp5 = locationArg ;
} else {
tmp5 = tmp2 ;
if ( null != locationArg ) {
tmp5 = tmp2 ;
}
}
2026-07-23 10:11:24 +00:00
let closure _3 = tmp5 ;
2026-07-20 16:05:17 +00:00
const items = [ tmp3 , tmp5 ] ;
2026-07-23 10:11:24 +00:00
outer1 _6 ( ( ) => {
if ( "string" === typeof closure _3 ) {
let obj = { pathname : closure _3 } ;
2026-07-20 16:05:17 +00:00
let tmp = obj ;
} else {
2026-07-23 10:11:24 +00:00
tmp = closure _3 ;
2026-07-20 16:05:17 +00:00
}
if ( ref . current ) {
2026-07-23 10:11:24 +00:00
outer2 _28 ( routes ) ;
obj = { activeRootSpan : ref ( table [ 6 ] ) . getActiveRootSpan ( ) , location : tmp , routes } ;
2026-07-20 16:05:17 +00:00
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _30 ( obj ) ;
2026-07-20 16:05:17 +00:00
ref . current = false ;
2026-07-23 10:11:24 +00:00
const obj4 = ref ( table [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
obj = { location : tmp , routes , navigationType : closure _2 , version : routes } ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
obj . allRoutes = Array . from ( outer2 _16 ) ;
outer2 _27 ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} , items ) ;
return callback ( routes , locationArg ) ;
}
return ( routes , locationArg ) => < SentryRoutes routes = { arg0 } locationArg = { arg1 } / > ;
}
}
}
}
2026-07-23 10:11:24 +00:00
if ( _require ( 1118 ) . DEBUG _BUILD ) {
const debug = _require ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters." ) ;
}
return arg0 ;
} ;
export { handleNavigation } ;
export { processResolvedRoutes } ;
export { shouldSkipNavigation } ;
export { updateNavigationSpan } ;