2026-07-24 07:16:23 +00:00
// Module ID: 14087
// Function ID: 107842
2026-07-20 16:05:17 +00:00
// Name: U
// Dependencies: []
2026-07-24 07:16:23 +00:00
// Module 14087 (U)
2026-07-20 16:05:17 +00:00
function U ( arg0 , arg1 ) {
if ( null != arg1 ) {
const _Symbol = Symbol ;
if ( "undefined" !== typeof Symbol ) {
const _Symbol2 = Symbol ;
if ( arg1 [ Symbol . hasInstance ] ) {
const _Symbol3 = Symbol ;
let tmp2 = arg1 [ Symbol . hasInstance ] ( arg0 ) ;
}
return tmp2 ;
}
}
tmp2 = U ( arg0 , arg1 ) ;
}
function Ne ( arg0 ) {
if ( arg0 ) {
const _Symbol = Symbol ;
if ( "undefined" !== typeof Symbol ) {
const _Symbol2 = Symbol ;
let str2 = "symbol" ;
}
return str2 ;
}
str2 = typeof arg0 ;
}
function ke ( arg0 , arg1 ) {
let length = arg1 ;
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 ;
}
function Pe ( arg0 , arg1 ) {
if ( arg0 ) {
if ( "string" === typeof arg0 ) {
return ke ( arg0 , arg1 ) ;
} else {
const _Object = Object ;
let name = toString . call ( arg0 ) . slice ( 8 , - 1 ) ;
if ( tmp ) {
name = arg0 . constructor . name ;
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" !== name ) {
const obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
}
return ke ( arg0 , arg1 ) ;
}
}
const _Array = Array ;
return Array . from ( name ) ;
}
}
}
function H ( arg0 , arg1 ) {
let tmp ;
if ( Array . isArray ( arg0 ) ) {
tmp = arg0 ;
}
if ( ! tmp ) {
let tmp6 = null ;
if ( null != arg0 ) {
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol2 = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = tmp2 [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = tmp2 [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp6 = iterable ;
2026-07-20 16:05:17 +00:00
}
let tmp9 ;
if ( null != tmp6 ) {
const items = [ ] ;
const iter = obj . call ( arg0 ) ;
const iter3 = iter . next ( ) ;
const done = iter3 . done ;
let tmp11 = done ;
if ( ! done ) {
items . push ( iter4 . value ) ;
if ( ! tmp3 ) {
const iter5 = iter2 . next ( ) ;
const done2 = iter5 . done ;
tmp11 = done2 ;
while ( ! done2 ) {
let tmp19 = items ;
let tmp20 = iter5 ;
let arr = items . push ( iter6 . value ) ;
let tmp22 = arg1 ;
if ( ! tmp3 ) {
continue ;
} else {
let tmp23 = items ;
let tmp24 = arg1 ;
if ( items . length === tmp3 ) {
break ;
}
}
continue ;
}
}
}
while ( true ) {
let tmp25 = tmp11 ;
let tmp26 = ! tmp11 ;
let tmp27 = tmp26 ;
if ( ! tmp26 ) {
break ;
} else {
let tmp28 = iter ;
tmp27 = null != iter2 . return ;
2026-07-23 10:11:24 +00:00
break ;
2026-07-20 16:05:17 +00:00
}
if ( tmp27 ) {
let tmp29 = iter ;
let returnResult = iter2 . return ( ) ;
}
let tmp31 = flag2 ;
if ( flag2 ) {
let tmp32 = tmp4 ;
throw tmp4 ;
} else {
tmp9 = items ;
}
}
}
tmp = tmp9 ;
2026-07-23 10:11:24 +00:00
obj = tmp6 ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp ) {
tmp = Pe ( arg0 , arg1 ) ;
}
if ( tmp ) {
return tmp ;
} else {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
2026-07-23 10:11:24 +00:00
function V ( iterable ) {
2026-07-20 16:05:17 +00:00
let tmp ;
2026-07-23 10:11:24 +00:00
if ( Array . isArray ( iterable ) ) {
tmp = ke ( iterable ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp ) {
const _Symbol = Symbol ;
if ( "undefined" === typeof Symbol ) {
let arr ;
tmp = arr ;
} else {
const _Symbol2 = Symbol ;
}
const _Array = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
tmp = Pe ( iterable ) ;
2026-07-20 16:05:17 +00:00
}
if ( tmp ) {
return tmp ;
} else {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
function ce ( ) {
let doNotTrack = mod3 . default . doNotTrack ;
if ( ! doNotTrack ) {
let doNotTrack2 = mod3 . default . navigator ;
if ( doNotTrack2 ) {
doNotTrack2 = mod3 . default . navigator . doNotTrack ;
}
doNotTrack = doNotTrack2 ;
}
return "1" === doNotTrack ;
}
function b ( arg0 ) {
if ( undefined === arg0 ) {
const _ReferenceError = ReferenceError ;
const referenceError = new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ;
throw referenceError ;
} else {
return arg0 ;
}
}
function D ( arg0 , arg1 ) {
if ( ! U ( arg0 , arg1 ) ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Cannot call a class as a function" ) ;
throw typeError ;
}
}
function kt ( arg0 , arg1 ) {
for ( let num = 0 ; num < arg1 . length ; num = num + 1 ) {
let tmp = arg1 [ num ] ;
tmp . enumerable = tmp . enumerable || false ;
tmp . configurable = true ;
if ( "value" in tmp ) {
tmp . writable = true ;
}
let _Object = Object ;
let definePropertyResult = Object . defineProperty ( arg0 , tmp . key , tmp ) ;
}
}
function N ( arg0 , arg1 , arg2 ) {
if ( arg1 ) {
kt ( arg0 . prototype , arg1 ) ;
}
return arg0 ;
}
function l ( arg0 , arg1 , value ) {
if ( arg1 in arg0 ) {
const _Object = Object ;
2026-07-23 10:11:24 +00:00
const obj = { value , enumerable : true , configurable : true , writable : true } ;
2026-07-20 16:05:17 +00:00
Object . defineProperty ( arg0 , arg1 , obj ) ;
} else {
arg0 [ arg1 ] = value ;
}
return arg0 ;
}
function X ( arg0 ) {
if ( Object . setPrototypeOf ) {
2026-07-23 10:11:24 +00:00
let _Object = Object ;
2026-07-20 16:05:17 +00:00
let fn = Object . getPrototypeOf ;
} else {
fn = ( arg0 ) => {
let _ _proto _ _ = arg0 . _ _proto _ _ ;
if ( ! _ _proto _ _ ) {
const _Object = Object ;
_ _proto _ _ = Object . getPrototypeOf ( arg0 ) ;
}
return _ _proto _ _ ;
} ;
}
return fn ( arg0 ) ;
}
function De ( arg0 , arg1 , arg2 ) {
let tmp = arg2 ;
if ( "undefined" !== typeof Reflect ) {
const _Reflect = Reflect ;
if ( Reflect . get ) {
const _Reflect2 = Reflect ;
const De = Reflect . get ;
}
if ( ! tmp ) {
tmp = arg0 ;
}
class De {
constructor ( arg0 , arg1 , arg2 ) {
tmp = arg2 ;
hasOwnProperty = Object . prototype . hasOwnProperty ;
tmp2 = arg0 ;
if ( ! hasOwnProperty . call ( arg0 , arg1 ) ) {
2026-07-23 10:11:24 +00:00
tmp3 = outer1 _129 ;
tmp4 = outer1 _129 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
tmp5 = null ;
tmp2 = tmp4 ;
if ( null !== tmp4 ) {
_Object = Object ;
hasOwnProperty2 = Object . prototype . hasOwnProperty ;
tmp6 = tmp4 ;
tmp2 = tmp4 ;
while ( ! hasOwnProperty2 . call ( tmp4 , arg1 ) ) {
2026-07-23 10:11:24 +00:00
tmp7 = outer1 _129 ;
tmp4 = outer1 _129 ( tmp4 ) ;
2026-07-20 16:05:17 +00:00
tmp2 = tmp4 ;
if ( null === tmp4 ) {
break ;
}
}
}
}
if ( tmp2 ) {
_Object2 = Object ;
iter = Object . getOwnPropertyDescriptor ( tmp2 , arg1 ) ;
if ( iter . get ) {
get = iter . get ;
if ( ! tmp ) {
tmp = arg0 ;
}
callResult = get . call ( tmp ) ;
} else {
callResult = iter . value ;
}
return callResult ;
} else {
return ;
}
}
}
}
class De {
constructor ( arg0 , arg1 , arg2 ) {
tmp = arg2 ;
hasOwnProperty = Object . prototype . hasOwnProperty ;
tmp2 = arg0 ;
if ( ! hasOwnProperty . call ( arg0 , arg1 ) ) {
2026-07-23 10:11:24 +00:00
tmp3 = outer1 _129 ;
tmp4 = outer1 _129 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
tmp5 = null ;
tmp2 = tmp4 ;
if ( null !== tmp4 ) {
_Object = Object ;
hasOwnProperty2 = Object . prototype . hasOwnProperty ;
tmp6 = tmp4 ;
tmp2 = tmp4 ;
while ( ! hasOwnProperty2 . call ( tmp4 , arg1 ) ) {
2026-07-23 10:11:24 +00:00
tmp7 = outer1 _129 ;
tmp4 = outer1 _129 ( tmp4 ) ;
2026-07-20 16:05:17 +00:00
tmp2 = tmp4 ;
if ( null === tmp4 ) {
break ;
}
}
}
}
if ( tmp2 ) {
_Object2 = Object ;
iter = Object . getOwnPropertyDescriptor ( tmp2 , arg1 ) ;
if ( iter . get ) {
get = iter . get ;
if ( ! tmp ) {
tmp = arg0 ;
}
callResult = get . call ( tmp ) ;
} else {
callResult = iter . value ;
}
return callResult ;
} else {
return ;
}
}
}
}
function Le ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
const tmp = Object . setPrototypeOf || ( ( arg0 , arg1 ) => {
2026-07-20 16:05:17 +00:00
arg0 . _ _proto _ _ = arg1 ;
return arg0 ;
2026-07-23 10:11:24 +00:00
} ) ;
2026-07-20 16:05:17 +00:00
const Le = tmp ;
return tmp ( arg0 , arg1 ) ;
}
function qt ( arg0 , arr ) {
if ( null == arg0 ) {
return { } ;
} else {
if ( null == arg0 ) {
let obj = { } ;
} else {
obj = { } ;
const _Object = Object ;
const keys = Object . keys ( arg0 ) ;
2026-07-23 10:11:24 +00:00
for ( let num2 = 0 ; num2 < keys . length ; num2 = num2 + 1 ) {
let tmp2 = keys [ num2 ] ;
if ( arr . indexOf ( tmp2 ) < 0 ) {
obj [ tmp2 ] = arg0 [ tmp2 ] ;
}
2026-07-20 16:05:17 +00:00
}
}
const _Object2 = Object ;
if ( Object . getOwnPropertySymbols ) {
const _Object3 = Object ;
const ownPropertySymbols = Object . getOwnPropertySymbols ( arg0 ) ;
for ( let num4 = 0 ; num4 < ownPropertySymbols . length ; num4 = num4 + 1 ) {
let tmp4 = ownPropertySymbols [ num4 ] ;
let tmp5 = arr . indexOf ( tmp4 ) >= 0 ;
let callResult = ! tmp5 ;
if ( ! tmp5 ) {
let _Object4 = Object ;
callResult = propertyIsEnumerable . call ( arg0 , tmp4 ) ;
}
if ( callResult ) {
obj [ tmp4 ] = arg0 [ tmp4 ] ;
}
}
}
return obj ;
}
}
function Pt ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = ( function Rt ( ) {
2026-07-20 16:05:17 +00:00
if ( "undefined" !== typeof Reflect ) {
const _Reflect3 = Reflect ;
if ( Reflect . construct ) {
const _Reflect = Reflect ;
if ( ! Reflect . construct . sham ) {
const _Proxy = Proxy ;
if ( "function" === typeof Proxy ) {
return true ;
} else {
const _Boolean = Boolean ;
const _Reflect2 = Reflect ;
const _Boolean2 = Boolean ;
valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) => {
} ) ) ;
return true ;
}
}
}
}
return false ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
return function ( ) {
const self = this ;
2026-07-23 10:11:24 +00:00
const obj = outer1 _129 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
if ( closure _1 ) {
const _Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
let constructResult = Reflect . construct ( obj , arguments , outer1 _129 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj ( ... arguments ) ;
}
if ( ! constructResult ) {
2026-07-23 10:11:24 +00:00
outer1 _124 ( self ) ;
2026-07-20 16:05:17 +00:00
let tmp8 = self ;
} else {
tmp8 = constructResult ;
2026-07-23 10:11:24 +00:00
if ( "object" !== outer1 _118 ( constructResult ) ) {
2026-07-20 16:05:17 +00:00
tmp8 = constructResult ;
}
}
return tmp8 ;
} ;
}
class P {
constructor ( arg0 , arg1 , arg2 ) {
num = 1 ;
if ( undefined !== importDefault ) {
num = importDefault ;
}
global [ require ] = global [ require ] + num ;
return ;
}
}
2026-07-23 10:11:24 +00:00
let closure _134 = P ;
2026-07-20 16:05:17 +00:00
function ue ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
for ( let num = 1 ; num < arguments . length ; num = num + 1 ) {
let tmp = null != arguments [ num ] ? arguments [ num ] : { } ;
let create = tmp ;
let _Object = Object ;
let keys = Object . keys ( tmp ) ;
let _Object2 = Object ;
let tmp2 = tmp ;
let combined = keys ;
if ( "function" === typeof Object . getOwnPropertySymbols ) {
let _Object3 = Object ;
let ownPropertySymbols = Object . getOwnPropertySymbols ( tmp ) ;
2026-07-23 10:11:24 +00:00
combined = keys . concat ( ownPropertySymbols . filter ( ( arg0 ) => Object . getOwnPropertyDescriptor ( closure _1 , arg0 ) . enumerable ) ) ;
2026-07-20 16:05:17 +00:00
}
let item = combined . forEach ( ( arg0 ) => {
} ) ;
}
return arg0 ;
}
2026-07-23 10:11:24 +00:00
function fe ( arg0 , item10017 ) {
let obj = item10017 ;
let closure _0 = arg0 ;
obj = item10017 ;
if ( null == item10017 ) {
2026-07-20 16:05:17 +00:00
obj = { } ;
}
2026-07-23 10:11:24 +00:00
let _Object = Object ;
2026-07-20 16:05:17 +00:00
if ( Object . getOwnPropertyDescriptors ) {
const _Object2 = Object ;
_Object . defineProperties ( arg0 , Object . getOwnPropertyDescriptors ( obj ) ) ;
} else {
2026-07-23 10:11:24 +00:00
const item = ( function da ( arg0 ) {
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( arg0 ) ;
if ( Object . getOwnPropertySymbols ) {
const _Object = Object ;
const push = keys . push ;
push . apply ( keys , Object . getOwnPropertySymbols ( arg0 ) ) ;
}
return keys ;
2026-07-23 10:11:24 +00:00
} ) ( _Object ( obj ) ) . forEach ( ( arg0 ) => {
Object . defineProperty ( closure _0 , arg0 , Object . getOwnPropertyDescriptor ( obj , arg0 ) ) ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
const arr = ( function da ( arg0 ) {
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( arg0 ) ;
if ( Object . getOwnPropertySymbols ) {
const _Object = Object ;
const push = keys . push ;
push . apply ( keys , Object . getOwnPropertySymbols ( arg0 ) ) ;
}
return keys ;
2026-07-23 10:11:24 +00:00
} ) ( _Object ( obj ) ) ;
2026-07-20 16:05:17 +00:00
}
return arg0 ;
}
function pe ( arg0 ) {
let str = arg0 ;
const obj = { } ;
if ( ! arg0 ) {
str = "" ;
}
2026-07-23 10:11:24 +00:00
let parts = str . trim ( ) . split ( /[\r\n]+/ ) ;
2026-07-20 16:05:17 +00:00
const item = parts . forEach ( ( str ) => {
if ( str ) {
const parts = str . split ( ": " ) ;
const str2 = parts . shift ( ) ;
let tmp = str2 ;
if ( str2 ) {
2026-07-23 10:11:24 +00:00
let tmp3 = outer1 _42 . indexOf ( str2 . toLowerCase ( ) ) >= 0 ;
2026-07-20 16:05:17 +00:00
if ( ! tmp3 ) {
const formatted = str2 . toLowerCase ( ) ;
tmp3 = 0 === formatted . indexOf ( "x-litix-" ) ;
}
tmp = tmp3 ;
}
if ( tmp ) {
obj [ str2 ] = parts . join ( ": " ) ;
}
}
} ) ;
return obj ;
}
function de ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
if ( arg0 ) {
2026-07-23 10:11:24 +00:00
const found = items . find ( ( arg0 ) => undefined !== table [ arg0 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp3 ;
if ( found ) {
tmp3 = arg0 [ found ] ;
}
return tmp3 ;
}
}
function lr ( obj ) {
obj = { } ;
for ( const key10004 in arg0 ) {
let tmp = key10004 ;
if ( ! arg0 . hasOwnProperty ( key10004 ) ) {
continue ;
} else {
obj [ arg0 [ key10004 ] ] = key10004 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
return obj ;
}
function me ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
let obj = { } ;
obj = { } ;
const keys = Object . keys ( arg0 ) ;
2026-07-23 10:11:24 +00:00
let item = keys . forEach ( ( str ) => {
let closure _0 = str ;
let c1 = false ;
if ( closure _0 . hasOwnProperty ( str ) ) {
if ( undefined !== closure _0 [ str ] ) {
2026-07-20 16:05:17 +00:00
const parts = str . split ( "_" ) ;
const first = parts [ 0 ] ;
let closure _2 = tmp14 ;
2026-07-23 10:11:24 +00:00
if ( ! outer1 _74 [ first ] ) {
outer1 _35 . info ( ` Data key word \` ${ arr2 [ 0 ] } \` not expected in ${ str } ` ) ;
2026-07-20 16:05:17 +00:00
closure _2 = ` ${ tmp12 } _ ` ;
}
const item = parts . splice ( 1 ) . forEach ( ( arg0 ) => {
if ( "url" === arg0 ) {
2026-07-23 10:11:24 +00:00
let c1 = true ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( outer2 _75 [ arg0 ] ) {
closure _2 = closure _2 + outer2 _75 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
} else {
const _Number = Number ;
const _Number2 = Number ;
if ( Number . isInteger ( Number ( arg0 ) ) ) {
closure _2 = closure _2 + arg0 ;
} else {
2026-07-23 10:11:24 +00:00
outer2 _35 . info ( ` Data key word \` ${ arg0 } \` not expected in ${ closure _0 } ` ) ;
2026-07-20 16:05:17 +00:00
closure _2 = ` ${ closure _2 } _ ${ arg0 } _ ` ;
}
}
} ) ;
2026-07-23 10:11:24 +00:00
if ( c1 ) {
closure _2 [ closure _2 ] = closure _0 [ str ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
c1 [ closure _2 ] = closure _0 [ str ] ;
2026-07-20 16:05:17 +00:00
}
const spliceResult = parts . splice ( 1 ) ;
}
}
} ) ;
return Object . assign ( obj , obj ) ;
}
function Vr ( str , str2 ) {
let formatted ;
if ( null != str ) {
formatted = str . toLowerCase ( ) ;
}
let formatted1 ;
if ( null != str2 ) {
formatted1 = str2 . toLowerCase ( ) ;
}
return formatted === formatted1 ;
}
function ft ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
return ( ) => {
if ( callback ) {
2026-07-23 10:11:24 +00:00
callback = 0 ;
2026-07-20 16:05:17 +00:00
let closure _1 = callback ( 0 ) ;
}
return closure _1 ;
} ;
}
class B {
constructor ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
closure _0 = global ;
2026-07-20 16:05:17 +00:00
return ( ) => {
if ( ! obj ) {
2026-07-23 10:11:24 +00:00
obj = { exports : { } } ;
callback ( obj . exports , obj ) ;
2026-07-20 16:05:17 +00:00
}
return obj . exports ;
} ;
}
}
function pt ( arg0 , arr ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arr ;
2026-07-20 16:05:17 +00:00
if ( ! arr ) {
return arg0 ;
}
arr = getOwnPropertyNames ( arr ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
let tmp = arr [ num ] ;
let tmp2 = hasOwnProperty ;
let tmp3 = ! hasOwnProperty . call ( arg0 , tmp ) && tmp !== arg2 ;
if ( tmp3 ) {
let obj = { } ;
2026-07-23 10:11:24 +00:00
let fn = ( arg0 ) => arr [ arg0 ] ;
2026-07-20 16:05:17 +00:00
let tmp4 = defineProperty ;
obj . get = fn . bind ( null , tmp ) ;
let tmp5 = getOwnPropertyDescriptor ;
let tmp6 = getOwnPropertyDescriptor ( arr , tmp ) ;
obj . enumerable = ! tmp6 || tmp6 . enumerable ;
let tmp4Result = tmp4 ( arg0 , tmp , obj ) ;
let tmp8 = tmp6 ;
}
}
}
class G {
constructor ( arg0 , arg1 , arg2 ) {
if ( null != global ) {
tmp = create ;
tmp2 = getPrototypeOf ;
obj = create ( getPrototypeOf ( global ) ) ;
} else {
obj = { } ;
}
tmp3 = pt ;
if ( ! global ) {
tmp5 = defineProperty ;
obj = { } ;
obj . value = global ;
flag = true ;
obj . enumerable = true ;
str = "default" ;
tmp4 = defineProperty ( obj , "default" , obj ) ;
} else {
tmp4 = obj ;
}
return tmp3 ( tmp4 , global ) ;
}
}
const BResult = B ( ( arg0 , arg1 ) => {
if ( "undefined" !== typeof window ) {
let _window = window ;
} else if ( undefined !== global ) {
_window = global ;
} else {
const _self = self ;
_window = "undefined" !== typeof self ? self : { } ;
}
arg1 . exports = _window ;
} ) ;
const ftResult = ft ( ( ) => {
2026-07-23 10:11:24 +00:00
callback ( ) ;
2026-07-20 16:05:17 +00:00
} ) ;
const ftResult1 = ft ( ( ) => {
} ) ;
let closure _10 = B ( ( arg0 , arg1 ) => {
arg1 . exports = function Ca ( arg0 , arg1 ) {
let tmp = arg0 ;
if ( ! ( "length" in arg0 ) ) {
const items = [ arg0 ] ;
tmp = items ;
}
const callResult = slice . call ( tmp ) ;
let combined = callResult ;
if ( callResult . length ) {
const arr = combined . shift ( ) ;
const tmp3 = arg1 ( arr ) ;
while ( ! tmp3 ) {
let tmp5 = arr . childNodes && arr . childNodes . length ;
if ( tmp5 ) {
let tmp6 = slice ;
let callResult1 = slice . call ( arr . childNodes ) ;
combined = callResult1 . concat ( tmp4 ) ;
}
}
return tmp3 ;
}
} ;
} ) ;
let closure _11 = B ( ( arg0 , arg1 ) => {
class ve {
constructor ( arg0 , arg1 ) {
tmp = arg1 ;
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _117 ( this , ve ) ) {
2026-07-20 16:05:17 +00:00
self . data = arg0 ;
self . nodeValue = arg0 ;
self . length = arg0 . length ;
if ( ! tmp ) {
tmp = null ;
}
self . ownerDocument = tmp ;
return ;
} else {
tmp2 = ve ;
prototype = ve . prototype ;
tmp3 = new . target ;
tmp4 = new . target ;
tmp5 = arg0 ;
tmp6 = tmp ;
tmp7 = new ve ( arg0 , tmp ) ;
tmp8 = tmp7 ;
return tmp7 ;
}
}
toString ( ) {
return "[object Comment]" ;
}
}
2026-07-23 10:11:24 +00:00
callback ( ) ;
2026-07-20 16:05:17 +00:00
arg1 . exports = ve ;
ve . prototype . nodeType = 8 ;
ve . prototype . nodeName = "#comment" ;
} ) ;
let closure _12 = B ( ( arg0 , arg1 ) => {
class ae {
constructor ( arg0 , arg1 ) {
str = arg0 ;
tmp = arg1 ;
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _117 ( this , ae ) ) {
2026-07-20 16:05:17 +00:00
if ( ! str ) {
str = "" ;
}
self . data = str ;
self . length = self . data . length ;
if ( ! tmp ) {
tmp = null ;
}
self . ownerDocument = tmp ;
return ;
} else {
tmp2 = ae ;
prototype = ae . prototype ;
tmp3 = new . target ;
tmp4 = new . target ;
tmp5 = str ;
tmp6 = new ae ( str ) ;
tmp7 = tmp6 ;
return tmp6 ;
}
}
toString ( ) {
return this . data ;
}
replaceData ( arg0 , arg1 , arg2 ) {
str = this . data ;
substr = str . substring ( 0 , arg0 ) ;
this . data = substr + arg2 + str . substring ( arg0 + arg1 , str . length ) ;
this . length = this . data . length ;
return ;
}
}
2026-07-23 10:11:24 +00:00
callback ( ) ;
2026-07-20 16:05:17 +00:00
arg1 . exports = ae ;
ae . prototype . type = "DOMTextNode" ;
ae . prototype . nodeType = 3 ;
ae . prototype . nodeName = "#text" ;
} ) ;
let closure _13 = B ( ( arg0 , arg1 ) => {
arg1 . exports = function Ma ( target ) {
let self = this ;
2026-07-23 10:11:24 +00:00
let closure _0 = target ;
2026-07-20 16:05:17 +00:00
self = this ;
if ( ! target . target ) {
target . target = self ;
}
if ( ! self . listeners ) {
self . listeners = { } ;
}
if ( self . listeners [ target . type ] ) {
return arr . forEach ( ( handleEvent ) => {
2026-07-23 10:11:24 +00:00
closure _0 . currentTarget = self ;
2026-07-20 16:05:17 +00:00
if ( "function" === typeof handleEvent ) {
2026-07-23 10:11:24 +00:00
handleEvent ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
handleEvent . handleEvent ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} else if ( self . parentNode ) {
const parentNode = self . parentNode ;
parentNode . dispatchEvent ( target ) ;
}
} ;
} ) ;
let closure _14 = B ( ( arg0 , arg1 ) => {
arg1 . exports = function Ha ( arg0 , arg1 ) {
const self = this ;
if ( ! this . listeners ) {
self . listeners = { } ;
}
if ( ! self . listeners [ arg0 ] ) {
self . listeners [ arg0 ] = [ ] ;
}
let arr = self . listeners [ arg0 ] ;
if ( - 1 === arr . indexOf ( arg1 ) ) {
arr = self . listeners [ arg0 ] . push ( arg1 ) ;
const arr2 = self . listeners [ arg0 ] ;
}
} ;
} ) ;
let closure _15 = B ( ( arg0 , arg1 ) => {
arg1 . exports = function Ba ( arg0 , arg1 ) {
const self = this ;
if ( this . listeners ) {
if ( self . listeners [ arg0 ] ) {
const index = arr . indexOf ( arg1 ) ;
if ( - 1 !== index ) {
arr . splice ( index , 1 ) ;
}
}
}
} ;
} ) ;
let closure _16 = B ( ( arg0 , arg1 ) => {
function br ( nodeType ) {
nodeType = nodeType . nodeType ;
if ( 3 === nodeType ) {
return et ( nodeType . data ) ;
} else if ( 8 === nodeType ) {
return "<!--" + nodeType . data + "-->" ;
} else {
2026-07-23 10:11:24 +00:00
return ( function Fa ( tagName ) {
2026-07-20 16:05:17 +00:00
const items = [ ] ;
let formatted = str ;
if ( "http://www.w3.org/1999/xhtml" === tagName . namespaceURI ) {
formatted = str . toLowerCase ( ) ;
}
const items1 = [ ] ;
const text = ` < ${ tmp2 } ` ;
for ( const key10014 in arg0 ) {
let tmp24 = key10014 ;
2026-07-23 10:11:24 +00:00
let tmp25 = outer1 _2 ;
arr = outer1 _2 ( arg0 , key10014 ) ;
2026-07-20 16:05:17 +00:00
if ( ! arr ) {
continue ;
} else {
let obj = { name : key10014 , value : arg0 [ key10014 ] } ;
arr = items1 . push ( obj ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ tmp ] !== undefined ) {
let tmp26 = tmp10 ;
let tmp27 = tmp5 ;
let iter = tmp6 ;
let keys1 = Object . keys ( ) ;
if ( keys1 === undefined ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
tmp5 = tmp27 ;
tmp6 = iter ;
2026-07-20 16:05:17 +00:00
let tmp11 = keys1 [ arr ] ;
while ( tmp11 !== undefined ) {
tmp27 = tmp11 ;
iter = tagName . _attributes [ tmp10 ] [ tmp11 ] ;
let str2 = "" ;
if ( iter . prefix ) {
str2 = ` ${ iter . prefix } : ` ;
}
obj = { name : str2 + tmp27 , value : iter . value } ;
arr = items1 . push ( obj ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
continue ;
}
}
if ( tagName . className ) {
obj = { name : "class" , value : tagName . className } ;
items1 . push ( obj ) ;
}
let str4 = "" ;
if ( items1 . length ) {
2026-07-23 10:11:24 +00:00
str4 = outer1 _3 ( items1 ) ;
2026-07-20 16:05:17 +00:00
}
const dataset = tagName . dataset ;
const items2 = [ ] ;
for ( const key10050 in dataset ) {
let tmp29 = key10050 ;
let obj1 = { name : "data-" + key10050 , value : dataset [ key10050 ] } ;
let arr2 = items2 . push ( obj1 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
let str5 = "" ;
if ( items2 . length ) {
2026-07-23 10:11:24 +00:00
str5 = outer1 _3 ( items2 ) ;
2026-07-20 16:05:17 +00:00
}
items . push ( text + str4 + str5 ) ;
2026-07-23 10:11:24 +00:00
if ( outer1 _0 . indexOf ( formatted ) > - 1 ) {
2026-07-20 16:05:17 +00:00
items . push ( " />" ) ;
} else {
items . push ( ">" ) ;
if ( tagName . childNodes . length ) {
const push = items . push ;
const childNodes = tagName . childNodes ;
2026-07-23 10:11:24 +00:00
push . apply ( items , childNodes . map ( outer1 _1 ) ) ;
2026-07-20 16:05:17 +00:00
} else {
if ( ! tagName . textContent ) {
if ( ! tagName . innerText ) {
if ( tagName . innerHTML ) {
items . push ( tagName . innerHTML ) ;
}
}
}
let innerText = tagName . textContent ;
if ( ! innerText ) {
innerText = tagName . innerText ;
}
2026-07-23 10:11:24 +00:00
items . push ( outer1 _4 ( innerText ) ) ;
const tmp18 = outer1 _4 ;
2026-07-20 16:05:17 +00:00
}
items . push ( ` </ ${ tmp2 } > ` ) ;
}
return items . join ( "" ) ;
2026-07-23 10:11:24 +00:00
} ) ( nodeType ) ;
2026-07-20 16:05:17 +00:00
}
}
function Va ( style ) {
2026-07-23 10:11:24 +00:00
const tmp = outer1 _118 ( style [ arg1 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp2 = "style" === arg1 ;
if ( tmp2 ) {
const _Object = Object ;
tmp2 = Object . keys ( style . style ) . length > 0 ;
}
if ( ! tmp2 ) {
let hasOwnPropertyResult = style . hasOwnProperty ( arg1 ) ;
if ( hasOwnPropertyResult ) {
let tmp5 = "string" === tmp ;
if ( ! tmp5 ) {
tmp5 = "boolean" === tmp ;
}
if ( ! tmp5 ) {
tmp5 = "number" === tmp ;
}
hasOwnPropertyResult = tmp5 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "nodeName" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "className" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "tagName" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "textContent" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "innerText" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "namespaceURI" !== arg1 ;
}
if ( hasOwnPropertyResult ) {
hasOwnPropertyResult = "innerHTML" !== arg1 ;
}
tmp2 = hasOwnPropertyResult ;
}
return tmp2 ;
}
function wr ( arr ) {
const items = [ ] ;
2026-07-23 10:11:24 +00:00
let item = arr . forEach ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
let name ;
let value ;
( { name , value } = arg0 ) ;
let tmp = value ;
if ( "style" === name ) {
2026-07-23 10:11:24 +00:00
tmp = ( function ja ( value ) {
let closure _0 = value ;
2026-07-20 16:05:17 +00:00
if ( "string" === typeof value ) {
return value ;
} else {
2026-07-23 10:11:24 +00:00
let c1 = "" ;
2026-07-20 16:05:17 +00:00
const _Object = Object ;
const keys = Object . keys ( value ) ;
const item = keys . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
closure _1 = ` ${ closure _1 } ${ arg0 . replace ( /[A-Z]/g , ( ) => { ... } )}: ${ tmp } ; ` ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
return c1 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ) ( value ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
items . push ( ` ${ ` ${ name } =" ` } ${ outer1 _4 ( tmp ) . replace ( /"/g , """ ) } " ` ) ;
2026-07-20 16:05:17 +00:00
} ) ;
let str = "" ;
if ( items . length ) {
str = ` ${ arr . join ( " " ) } ` ;
}
return str ;
}
function et ( data ) {
let str = data ;
if ( "string" !== typeof data ) {
str = "" ;
if ( data ) {
str = data . toString ( ) ;
}
}
const str2 = str . replace ( /&/g , "&" ) ;
return str . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) ;
}
ftResult1 ( ) ;
arg1 . exports = br ;
2026-07-23 10:11:24 +00:00
let closure _0 = [ "area" , "base" , "br" , "col" , "embed" , "hr" , "img" , "input" , "keygen" , "link" , "menuitem" , "meta" , "param" , "source" , "track" , "wbr" ] ;
2026-07-20 16:05:17 +00:00
} ) ;
let closure _17 = B ( ( arg0 , arg1 ) => {
class I {
constructor ( arg0 , arg1 , arg2 ) {
tmp = arg1 ;
tmp2 = arg2 ;
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _117 ( this , I ) ) {
2026-07-20 16:05:17 +00:00
if ( undefined === tmp2 ) {
2026-07-23 10:11:24 +00:00
tmp2 = c2 ;
2026-07-20 16:05:17 +00:00
} else if ( ! tmp2 ) {
tmp2 = null ;
}
2026-07-23 10:11:24 +00:00
tmp9 = c2 ;
2026-07-20 16:05:17 +00:00
formatted = arg0 ;
2026-07-23 10:11:24 +00:00
if ( tmp2 === c2 ) {
2026-07-20 16:05:17 +00:00
tmp11 = globalThis ;
_String = String ;
str = String ( arg0 ) ;
formatted = str . toUpperCase ( ) ;
}
self . tagName = formatted ;
self . nodeName = self . tagName ;
str2 = "" ;
self . className = "" ;
self . dataset = { } ;
self . childNodes = [ ] ;
tmp12 = null ;
self . parentNode = null ;
self . style = { } ;
if ( ! tmp ) {
tmp = null ;
}
self . ownerDocument = tmp ;
self . namespaceURI = tmp2 ;
self . _attributes = { } ;
str3 = "INPUT" ;
if ( "INPUT" === self . tagName ) {
str4 = "text" ;
self . type = "text" ;
}
return ;
} else {
tmp3 = I ;
prototype = I . prototype ;
tmp4 = new . target ;
tmp5 = new . target ;
tmp6 = arg0 ;
tmp7 = new I ( arg0 ) ;
tmp8 = tmp7 ;
return tmp7 ;
}
}
appendChild ( arg0 ) {
self = this ;
if ( arg0 . parentNode ) {
parentNode = arg0 . parentNode ;
removeChildResult = parentNode . removeChild ( arg0 ) ;
}
childNodes = self . childNodes ;
arr = childNodes . push ( arg0 ) ;
arg0 . parentNode = self ;
return arg0 ;
}
replaceChild ( arg0 , arg1 ) {
self = this ;
if ( arg0 . parentNode ) {
parentNode = arg0 . parentNode ;
removeChildResult = parentNode . removeChild ( arg0 ) ;
}
childNodes = self . childNodes ;
arg1 . parentNode = null ;
self . childNodes [ childNodes . indexOf ( arg1 ) ] = arg0 ;
arg0 . parentNode = self ;
return arg1 ;
}
removeChild ( arg0 ) {
( { childNodes , childNodes : childNodes2 } = this ) ;
spliceResult = childNodes2 . splice ( childNodes . indexOf ( arg0 ) , 1 ) ;
arg0 . parentNode = null ;
return arg0 ;
}
insertBefore ( arg0 , arg1 ) {
self = this ;
if ( arg0 . parentNode ) {
parentNode = arg0 . parentNode ;
removeChildResult = parentNode . removeChild ( arg0 ) ;
}
num = - 1 ;
if ( null != arg1 ) {
childNodes = self . childNodes ;
num = childNodes . indexOf ( arg1 ) ;
}
if ( num > - 1 ) {
childNodes1 = self . childNodes ;
num2 = 0 ;
spliceResult = childNodes1 . splice ( num , 0 , arg0 ) ;
} else {
childNodes2 = self . childNodes ;
arr = childNodes2 . push ( arg0 ) ;
}
arg0 . parentNode = self ;
return arg0 ;
}
setAttributeNS ( arg0 , arg1 , arg2 ) {
self = this ;
index = arg1 . indexOf ( ":" ) ;
substr = null ;
substr1 = arg1 ;
if ( index > - 1 ) {
num = 0 ;
substr = arg1 . substr ( 0 , index ) ;
num2 = 1 ;
substr1 = arg1 . substr ( index + 1 ) ;
}
if ( "INPUT" === self . tagName ) {
str = "type" ;
if ( "type" === arg1 ) {
self . type = arg2 ;
}
return ;
}
tmp4 = self . _attributes [ arg0 ] ;
if ( ! tmp4 ) {
obj = { } ;
self . _attributes [ arg0 ] = obj ;
tmp4 = obj ;
}
obj = { value : arg2 } ;
obj . prefix = substr ;
tmp4 [ substr1 ] = obj ;
return ;
}
getAttributeNS ( arg0 , arg1 ) {
self = this ;
tmp = this . _attributes [ arg0 ] ;
value = tmp ;
if ( tmp ) {
value = tmp [ arg1 ] ;
}
if ( value ) {
value = tmp [ arg1 ] . value ;
}
if ( "INPUT" === self . tagName ) {
str = "type" ;
if ( "type" === arg1 ) {
type = self . type ;
}
return type ;
}
type = null ;
if ( "string" === typeof value ) {
type = value ;
}
return ;
}
removeAttributeNS ( arg0 , arg1 ) {
if ( this . _attributes [ arg0 ] ) {
2026-07-23 10:11:24 +00:00
tmp3 = arg1 ;
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
}
return ;
}
hasAttributeNS ( arg0 , arg1 ) {
tmp = this . _attributes [ arg0 ] ;
tmp2 = ! tmp ;
tmp3 = ! tmp2 ;
if ( ! tmp2 ) {
tmp4 = arg1 ;
tmp3 = arg1 in tmp ;
}
return tmp3 ;
}
setAttribute ( arg0 , arg1 ) {
return this . setAttributeNS ( null , arg0 , arg1 ) ;
}
getAttribute ( arg0 ) {
return this . getAttributeNS ( null , arg0 ) ;
}
removeAttribute ( arg0 ) {
return this . removeAttributeNS ( null , arg0 ) ;
}
hasAttribute ( arg0 ) {
return this . hasAttributeNS ( null , arg0 ) ;
}
focus ( ) {
return ;
}
toString ( ) {
return closure _1 ( this ) ;
}
getElementsByClassName ( arg0 ) {
2026-07-23 10:11:24 +00:00
c0 = arg0 . split ( " " ) ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
2026-07-23 10:11:24 +00:00
c1 = items ;
tmp = c0 ( this , ( nodeType ) => {
2026-07-20 16:05:17 +00:00
if ( 1 === nodeType . nodeType ) {
let closure _0 = nodeType . className || "" . split ( " " ) ;
if ( closure _0 . every ( ( arg0 ) => - 1 !== closure _0 . indexOf ( arg0 ) ) ) {
items . push ( nodeType ) ;
}
const str = nodeType . className || "" ;
}
} ) ;
return items ;
}
getElementsByTagName ( arg0 ) {
toLowerCase = arg0 . toLowerCase ( ) ;
items = [ ] ;
toLowerCase = items ;
tmp = toLowerCase ( this . childNodes , ( nodeType ) => {
let tmp = 1 === nodeType . nodeType ;
if ( tmp ) {
let tmp3 = "*" === closure _0 ;
if ( ! tmp3 ) {
tmp3 = nodeType . tagName . toLowerCase ( ) === closure _0 ;
const str2 = nodeType . tagName ;
}
tmp = tmp3 ;
}
if ( tmp ) {
items . push ( nodeType ) ;
}
} ) ;
return items ;
}
contains ( arg0 ) {
2026-07-23 10:11:24 +00:00
closure _0 = arg0 ;
tmp = closure _0 ( this , ( arg0 ) => closure _0 === arg0 ) || false ;
2026-07-20 16:05:17 +00:00
return tmp ;
}
}
2026-07-23 10:11:24 +00:00
let closure _3 = I ;
callback ( ) ;
let closure _0 = callback2 ( ) ;
let tmp2 = callback5 ( ) ;
let tmp3 = callback6 ( ) ;
let closure _1 = callback8 ( ) ;
let c2 = "http://www.w3.org/1999/xhtml" ;
2026-07-20 16:05:17 +00:00
arg1 . exports = I ;
I . prototype . type = "DOMElement" ;
I . prototype . nodeType = 1 ;
2026-07-23 10:11:24 +00:00
I . prototype . removeEventListener = callback7 ( ) ;
2026-07-20 16:05:17 +00:00
I . prototype . addEventListener = tmp3 ;
I . prototype . dispatchEvent = tmp2 ;
} ) ;
let closure _18 = B ( ( arg0 , arg1 ) => {
class K {
constructor ( arg0 ) {
tmp = arg0 ;
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _117 ( this , K ) ) {
2026-07-20 16:05:17 +00:00
self . childNodes = [ ] ;
tmp7 = null ;
self . parentNode = null ;
if ( ! tmp ) {
tmp = null ;
}
self . ownerDocument = tmp ;
return ;
} else {
tmp2 = K ;
prototype = K . prototype ;
tmp3 = new . target ;
tmp4 = new . target ;
tmp5 = new K ( ) ;
tmp6 = tmp5 ;
return tmp5 ;
}
}
toString ( ) {
childNodes = this . childNodes ;
mapped = childNodes . map ( ( arg0 ) => String ( arg0 ) ) ;
return mapped . join ( "" ) ;
}
}
2026-07-23 10:11:24 +00:00
let closure _0 = K ;
callback ( ) ;
const tmp2 = callback9 ( ) ;
2026-07-20 16:05:17 +00:00
arg1 . exports = K ;
K . prototype . type = "DocumentFragment" ;
K . prototype . nodeType = 11 ;
K . prototype . nodeName = "#document-fragment" ;
K . prototype . appendChild = tmp2 . prototype . appendChild ;
K . prototype . replaceChild = tmp2 . prototype . replaceChild ;
K . prototype . removeChild = tmp2 . prototype . removeChild ;
} ) ;
let closure _19 = B ( ( arg0 , arg1 ) => {
class it {
constructor ( arg0 ) {
return ;
}
initEvent ( arg0 , arg1 , arg2 ) {
this . type = arg0 ;
this . bubbles = arg1 ;
this . cancelable = arg2 ;
return ;
}
preventDefault ( ) {
return ;
}
}
arg1 . exports = it ;
} ) ;
let closure _20 = B ( ( arg0 , arg1 ) => {
class Ue {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _117 ( this , Ue ) ) {
2026-07-20 16:05:17 +00:00
str = "head" ;
self . head = self . createElement ( "head" ) ;
str2 = "body" ;
self . body = self . createElement ( "body" ) ;
str3 = "html" ;
self . documentElement = self . createElement ( "html" ) ;
documentElement = self . documentElement ;
appendChildResult = documentElement . appendChild ( self . head ) ;
documentElement2 = self . documentElement ;
appendChildResult1 = documentElement2 . appendChild ( self . body ) ;
items = [ ] ;
items [ 0 ] = self . documentElement ;
self . childNodes = items ;
num = 9 ;
self . nodeType = 9 ;
return ;
} else {
tmp = Ue ;
prototype = Ue . prototype ;
tmp2 = new . target ;
tmp3 = new . target ;
tmp4 = new Ue ( ) ;
tmp5 = tmp4 ;
return tmp4 ;
}
}
}
2026-07-23 10:11:24 +00:00
callback ( ) ;
let closure _0 = callback2 ( ) ;
let closure _1 = callback3 ( ) ;
let closure _2 = callback4 ( ) ;
const tmp2 = callback9 ( ) ;
2026-07-20 16:05:17 +00:00
const getOwnPropertyDescriptor = tmp2 ;
2026-07-23 10:11:24 +00:00
let closure _4 = callback10 ( ) ;
let closure _5 = callback11 ( ) ;
const tmp3 = callback5 ( ) ;
2026-07-20 16:05:17 +00:00
arg1 . exports = Ue ;
2026-07-23 10:11:24 +00:00
let prototype = Ue . prototype ;
2026-07-20 16:05:17 +00:00
prototype . createTextNode = function ( arg0 ) {
return new closure _2 ( arg0 , this ) ;
} ;
prototype . createElementNS = function ( arg0 , arg1 ) {
let StringResult = null ;
if ( null !== arg0 ) {
const _String = String ;
StringResult = String ( arg0 ) ;
}
2026-07-23 10:11:24 +00:00
return new closure _3 ( arg1 , this , StringResult ) ;
2026-07-20 16:05:17 +00:00
} ;
prototype . createElement = function ( arg0 ) {
2026-07-23 10:11:24 +00:00
return new closure _3 ( arg0 , this ) ;
2026-07-20 16:05:17 +00:00
} ;
prototype . createDocumentFragment = function ( ) {
return new closure _4 ( this ) ;
} ;
prototype . createEvent = ( arg0 ) => new closure _5 ( arg0 ) ;
prototype . createComment = function ( arg0 ) {
return new closure _1 ( arg0 , this ) ;
} ;
prototype . getElementById = function ( arg0 ) {
const callback = String ( arg0 ) ;
return callback ( this . childNodes , ( id ) => {
if ( String ( id . id ) === closure _0 ) {
return id ;
}
} ) || null ;
} ;
prototype . getElementsByClassName = tmp2 . prototype . getElementsByClassName ;
prototype . getElementsByTagName = tmp2 . prototype . getElementsByTagName ;
prototype . contains = tmp2 . prototype . contains ;
2026-07-23 10:11:24 +00:00
prototype . removeEventListener = callback7 ( ) ;
prototype . addEventListener = callback6 ( ) ;
2026-07-20 16:05:17 +00:00
prototype . dispatchEvent = tmp3 ;
} ) ;
let closure _21 = B ( ( arg0 , arg1 ) => {
2026-07-23 10:11:24 +00:00
let tmp = callback12 ( ) ;
2026-07-20 16:05:17 +00:00
tmp = new tmp ( ) ;
arg1 . exports = tmp ;
} ) ;
const BResult1 = B ( ( arg0 , arg1 ) => {
if ( undefined !== global ) {
let tmp2 = global ;
} else {
const _window = window ;
tmp2 = "undefined" !== typeof window ? window : { } ;
}
2026-07-23 10:11:24 +00:00
const tmp3 = callback13 ( ) ;
2026-07-20 16:05:17 +00:00
if ( "undefined" !== typeof document ) {
2026-07-23 10:11:24 +00:00
_ _GLOBAL _DOCUMENT _CACHE _4 = document ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
_ _GLOBAL _DOCUMENT _CACHE _4 = tmp2 [ "__GLOBAL_DOCUMENT_CACHE@4" ] ;
2026-07-20 16:05:17 +00:00
if ( ! _ _GLOBAL _DOCUMENT _CACHE _4 ) {
2026-07-23 10:11:24 +00:00
tmp2 [ "__GLOBAL_DOCUMENT_CACHE@4" ] = tmp3 ;
_ _GLOBAL _DOCUMENT _CACHE _4 = tmp3 ;
2026-07-20 16:05:17 +00:00
}
}
arg1 . exports = _ _GLOBAL _DOCUMENT _CACHE _4 ;
} ) ;
let obj = { } ;
obj = {
default : function _default ( ) {
return ne ;
}
} ;
for ( const key10083 in obj ) {
let tmp20 = key10083 ;
obj = { } ;
obj . get = obj [ key10083 ] ;
obj . enumerable = true ;
let definePropertyResult = defineProperty ( obj , key10083 , obj ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
const GResult = G ( BResult ( ) ) ;
let closure _23 = G ( BResult ( ) ) ;
let closure _24 = G ( BResult ( ) ) ;
2026-07-23 10:11:24 +00:00
let obj1 = {
2026-07-20 16:05:17 +00:00
now ( ) {
const _performance = mod2 . default . performance ;
let timing = _performance ;
if ( _performance ) {
timing = _performance . timing ;
}
let navigationStart = timing ;
if ( timing ) {
navigationStart = timing . navigationStart ;
}
if ( "number" === typeof navigationStart ) {
if ( "function" === typeof _performance . now ) {
let sum = navigationStart + _performance . now ( ) ;
}
const _Math = Math ;
return Math . round ( sum ) ;
}
sum = Date . now ( ) ;
}
} ;
function ee ( ) {
const _crypto = mod . default . crypto ;
let getRandomValues ;
if ( null !== _crypto ) {
if ( undefined !== _crypto ) {
getRandomValues = _crypto . getRandomValues ;
}
}
if ( "function" === typeof getRandomValues ) {
const _Uint8Array = Uint8Array ;
const uint8Array = new Uint8Array ( 32 ) ;
2026-07-23 10:11:24 +00:00
let items = uint8Array ;
2026-07-20 16:05:17 +00:00
const _crypto2 = mod . default . crypto ;
const randomValues = _crypto2 . getRandomValues ( uint8Array ) ;
let num7 = 0 ;
do {
uint8Array [ num7 ] = uint8Array [ num7 ] % 16 ;
num7 = num7 + 1 ;
} while ( num7 < 32 ) ;
} else {
2026-07-23 10:11:24 +00:00
items = [ ] ;
2026-07-20 16:05:17 +00:00
let num3 = 0 ;
do {
let _Math = Math ;
items [ num3 ] = 16 * Math . random ( ) | 0 ;
num3 = num3 + 1 ;
} while ( num3 < 32 ) ;
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
let str = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" . replace ( /[xy]/g , ( arg0 ) => {
2026-07-20 16:05:17 +00:00
if ( "x" === arg0 ) {
let str = items [ closure _1 ] ;
} else {
str = 3 & items [ closure _1 ] | 8 ;
}
closure _1 = closure _1 + 1 ;
return str . toString ( 16 ) ;
} ) ;
const str2 = obj1 . now ( ) ;
let substr ;
if ( null != str2 ) {
substr = str2 . toString ( 16 ) . substring ( 3 ) ;
const str3 = str2 . toString ( 16 ) ;
}
let sum = str ;
if ( substr ) {
sum = str . substring ( 0 , 28 ) + substr ;
}
return sum ;
}
class Oe {
constructor ( ) {
random = Math . random ( ) ;
str = random * require ( "module_36" ) | 0 ;
text = ` 000000 ${ require ( "module_36" ) } ` ;
return require ( "module_4294967290" ) ;
}
}
function J ( muxId ) {
if ( muxId ) {
if ( undefined !== tmp . nodeName ) {
if ( ! tmp . muxId ) {
tmp . muxId = Oe ( ) ;
}
return muxId . muxId ;
}
}
const element = document . querySelector ( tmp ) ;
while ( true ) {
let tmp4 = element ;
let tmp5 = element ;
if ( ! element ) {
break ;
} else {
let tmp6 = element ;
tmp5 = ! element . muxId ;
2026-07-23 10:11:24 +00:00
break ;
2026-07-20 16:05:17 +00:00
}
if ( tmp5 ) {
let tmp7 = element ;
let tmp8 = muxId ;
element . muxId = tmp ;
}
let tmp9 = element ;
let tmp10 = null ;
muxId = undefined ;
if ( null != element ) {
muxId = element . muxId ;
}
let tmp12 = muxId ;
if ( ! muxId ) {
tmp12 = muxId ;
}
return tmp12 ;
}
}
function se ( nodeName ) {
if ( nodeName ) {
if ( undefined !== nodeName . nodeName ) {
let tmp2 = J ( nodeName ) ;
let element = nodeName ;
}
let str2 = "" ;
if ( element ) {
str2 = "" ;
if ( element . nodeName ) {
str2 = element . nodeName . toLowerCase ( ) ;
const str3 = element . nodeName ;
}
}
const items = [ element , tmp2 , str2 ] ;
return items ;
}
element = document . querySelector ( nodeName ) ;
tmp2 = nodeName ;
}
2026-07-23 10:11:24 +00:00
let c30 = 0 ;
let c31 = 1 ;
let c32 = 2 ;
let c33 = 3 ;
let c34 = 4 ;
let tmp6 = ( function Et ( arg0 ) {
2026-07-20 16:05:17 +00:00
let num = 3 ;
if ( arguments . length > 1 ) {
num = 3 ;
if ( undefined !== arguments [ 1 ] ) {
num = arguments [ 1 ] ;
}
}
const _console = console ;
if ( arg0 ) {
const items = [ _console , arg0 ] ;
let items1 = items ;
} else {
items1 = [ _console ] ;
}
const bind = trace . bind ;
let closure _1 = bind . apply ( trace , V ( items1 ) ) ;
const bind2 = info . bind ;
let closure _2 = bind2 . apply ( info , V ( items1 ) ) ;
const bind3 = debug . bind ;
let closure _3 = bind3 . apply ( debug , V ( items1 ) ) ;
const bind4 = warn . bind ;
let closure _4 = bind4 . apply ( warn , V ( items1 ) ) ;
const bind5 = error . bind ;
let closure _5 = bind5 . apply ( error , V ( items1 ) ) ;
const obj = {
trace ( ) {
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
if ( num <= outer1 _30 ) {
return callback . apply ( undefined , outer1 _122 ( array ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
debug ( ) {
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
if ( num <= outer1 _31 ) {
return callback3 . apply ( undefined , outer1 _122 ( array ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
info ( ) {
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
if ( num <= outer1 _32 ) {
return callback2 . apply ( undefined , outer1 _122 ( array ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
warn ( ) {
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
if ( num <= outer1 _33 ) {
return callback4 . apply ( undefined , outer1 _122 ( array ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
error ( ) {
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
if ( num <= outer1 _34 ) {
return callback5 . apply ( undefined , outer1 _122 ( array ) ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;
Object . defineProperty ( obj , "level" , {
get : ( ) => num ,
set : function ( arg0 ) {
let tmp = arg0 ;
if ( arg0 !== this . level ) {
if ( null == tmp ) {
tmp = num ;
}
2026-07-23 10:11:24 +00:00
num = tmp ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
return obj ;
2026-07-23 10:11:24 +00:00
} ) ( "[mux]" ) ;
let closure _35 = tmp6 ;
2026-07-20 16:05:17 +00:00
let closure _36 = G ( BResult ( ) ) ;
ftResult ( ) ;
ftResult1 ( ) ;
class F {
constructor ( arg0 ) {
return re ( global ) [ 0 ] ;
}
}
2026-07-23 10:11:24 +00:00
let closure _37 = F ;
2026-07-20 16:05:17 +00:00
function re ( str ) {
if ( "string" === typeof str ) {
if ( "" !== str ) {
const str2 = str . match ( /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/ ) || [ ] [ 4 ] ;
let first ;
if ( str2 ) {
first = str2 . match ( /[^\.]+\.[^\.]+$/ ) || [ ] [ 0 ] ;
const tmp3 = str2 . match ( /[^\.]+\.[^\.]+$/ ) || [ ] ;
}
const items = [ str2 , first ] ;
return items ;
}
}
2026-07-23 10:11:24 +00:00
return [ "localhost" ] ;
2026-07-20 16:05:17 +00:00
}
let closure _39 = G ( BResult ( ) ) ;
let closure _40 = {
exists ( ) {
const _performance = mod4 . default . performance ;
let timing = _performance ;
if ( _performance ) {
timing = _performance . timing ;
}
return undefined !== timing ;
} ,
domContentLoadedEventEnd ( ) {
const _performance = mod4 . default . performance ;
let timing = _performance ;
if ( _performance ) {
timing = _performance . timing ;
}
let domContentLoadedEventEnd = timing ;
if ( timing ) {
domContentLoadedEventEnd = timing . domContentLoadedEventEnd ;
}
return domContentLoadedEventEnd ;
} ,
navigationStart ( ) {
const _performance = mod4 . default . performance ;
let timing = _performance ;
if ( _performance ) {
timing = _performance . timing ;
}
let navigationStart = timing ;
if ( timing ) {
navigationStart = timing . navigationStart ;
}
return navigationStart ;
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ "x-request-id" , "cf-ray" , "x-amz-cf-id" , "x-akamai-request-id" ] ;
let items1 = [ "x-cdn" , "content-type" ] ;
2026-07-20 16:05:17 +00:00
let closure _42 = items1 . concat ( items ) ;
function _a ( obj ) {
let str ;
obj = { } ;
for ( const key10007 in arg0 ) {
let tmp = key10007 ;
let tmp2 = arg0 [ key10007 ] ;
2026-07-23 10:11:24 +00:00
DATA _ID = tmp2 [ "DATA-ID" ] ;
2026-07-20 16:05:17 +00:00
if ( - 1 === DATA _ID . search ( "io.litix.data." ) ) {
continue ;
} else {
( { DATA - ID : str , VALUE : obj [ str . replace ( str , "io.litix.data." , "" ) ] } = tmp2 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
return obj ;
}
function He ( loading ) {
if ( loading ) {
const navigationStartResult = closure _40 . navigationStart ( ) ;
loading = loading . loading ;
const obj = { bytesLoaded : loading . total } ;
const _Math = Math ;
2026-07-23 10:11:24 +00:00
obj . requestStart = Math . round ( navigationStartResult + ( loading ? loading . start : loading . trequest ) ) ;
2026-07-20 16:05:17 +00:00
const _Math2 = Math ;
2026-07-23 10:11:24 +00:00
obj . responseStart = Math . round ( navigationStartResult + ( loading ? loading . first : loading . tfirst ) ) ;
2026-07-20 16:05:17 +00:00
const _Math3 = Math ;
2026-07-23 10:11:24 +00:00
obj . responseEnd = Math . round ( navigationStartResult + ( loading ? loading . end : loading . tload ) ) ;
2026-07-20 16:05:17 +00:00
return obj ;
} else {
return { } ;
}
}
function Se ( getAllResponseHeaders ) {
if ( getAllResponseHeaders ) {
if ( "function" === typeof getAllResponseHeaders . getAllResponseHeaders ) {
return pe ( getAllResponseHeaders . getAllResponseHeaders ( ) ) ;
}
}
}
function Nt ( requestEndDate , getMetricsFor ) {
let bytesLoaded ;
let url ;
if ( requestEndDate ) {
if ( requestEndDate . requestEndDate ) {
const _Date = Date ;
( { url , bytesLoaded } = requestEndDate ) ;
const date = new Date ( requestEndDate . requestStartDate ) ;
const _Date2 = Date ;
const time = date . getTime ( ) ;
const date1 = new Date ( requestEndDate . firstByteDate ) ;
const _Date3 = Date ;
const time1 = date1 . getTime ( ) ;
const date2 = new Date ( requestEndDate . requestEndDate ) ;
const _isNaN = isNaN ;
const time2 = date2 . getTime ( ) ;
let num2 = 0 ;
if ( ! isNaN ( requestEndDate . duration ) ) {
num2 = requestEndDate . duration ;
}
if ( "function" === typeof getMetricsFor . getMetricsFor ) {
let HttpList = getMetricsFor . getMetricsFor ( requestEndDate . mediaType ) . HttpList ;
} else {
const dashMetrics = getMetricsFor . getDashMetrics ( ) ;
HttpList = dashMetrics . getHttpRequests ( requestEndDate . mediaType ) ;
}
let tmp17Result ;
if ( HttpList . length > 0 ) {
let str2 = HttpList [ HttpList . length - 1 ] . _responseHeaders ;
if ( ! str2 ) {
str2 = "" ;
}
tmp17Result = pe ( str2 ) ;
const tmp17 = pe ;
}
const obj = { requestStart : time , requestResponseStart : time1 , requestResponseEnd : time2 , requestBytesLoaded : bytesLoaded , requestResponseHeaders : tmp17Result , requestMediaDuration : num2 , requestHostname : F ( requestEndDate . url ) , requestUrl : url } ;
let tmp18 ;
if ( tmp17Result ) {
tmp18 = de ( tmp17Result ) ;
}
obj . requestId = tmp18 ;
return obj ;
}
}
return { } ;
}
function pa ( str ) {
const match = str . match ( /.*codecs\*?="(.*)"/ ) ;
let tmp2 ;
if ( null !== match ) {
if ( undefined !== match ) {
tmp2 = match [ 1 ] ;
}
}
return tmp2 ;
}
function Ct ( log , arg1 , on ) {
2026-07-23 10:11:24 +00:00
let closure _0 = log ;
let closure _1 = arg1 ;
let closure _2 = on ;
2026-07-20 16:05:17 +00:00
log = log . log ;
if ( on ) {
if ( on . on ) {
on = undefined ;
2026-07-23 10:11:24 +00:00
const tmp3 = ( function ma ( getVersion ) {
2026-07-20 16:05:17 +00:00
getVersion = getVersion . getVersion ;
let first ;
if ( null !== getVersion ) {
if ( undefined !== obj ) {
const callResult = obj . call ( getVersion ) ;
if ( null !== callResult ) {
if ( undefined !== str ) {
const parts = str . split ( "." ) ;
first = parts . map ( ( replaced ) => parseInt ( replaced ) ) [ 0 ] ;
}
}
}
}
return first ;
2026-07-23 10:11:24 +00:00
} ) ( on ) ;
2026-07-20 16:05:17 +00:00
function o ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
return log . emit ( closure _1 , arg0 , arg1 ) ;
2026-07-20 16:05:17 +00:00
}
const fn = function s ( arg0 ) {
let data ;
let type ;
( { data , type } = arg0 ) ;
if ( ! data ) {
data = { } ;
}
const url = data . url ;
2026-07-23 10:11:24 +00:00
const obj = { request _event _type : type , request _start : 0 , request _response _start : 0 , request _response _end : 0 , request _bytes _loaded : - 1 , request _type : "manifest" , request _hostname : outer1 _37 ( url ) , request _url : url } ;
2026-07-21 22:01:30 +00:00
o ( "requestcompleted" , obj ) ;
2026-07-20 16:05:17 +00:00
} ;
on . on ( "manifestLoaded" , fn ) ;
let closure _6 = { } ;
function f ( getRequests ) {
if ( "function" !== typeof getRequests . getRequests ) {
return null ;
} else {
const obj = { state : "executed" } ;
const requests = getRequests . getRequests ( obj ) ;
let tmp = null ;
if ( 0 !== requests . length ) {
tmp = requests [ requests . length - 1 ] ;
}
return tmp ;
}
}
const fn2 = function k ( arg0 ) {
let bitrateList ;
let chunk ;
let request ;
let type ;
let type2 ;
( { chunk , type , request } = arg0 ) ;
if ( ! chunk ) {
chunk = { } ;
}
( { type : type2 , bitrateList } = chunk . mediaInfo || { } ) ;
let obj = { } ;
if ( ! bitrateList ) {
bitrateList = [ ] ;
}
const item = bitrateList . forEach ( ( width ) => {
obj [ arg1 ] = { } ;
obj [ arg1 ] . width = width . width ;
obj [ arg1 ] . height = width . height ;
obj [ arg1 ] . bitrate = width . bandwidth ;
obj [ arg1 ] . attrs = { } ;
} ) ;
if ( "video" === type2 ) {
closure _6 . video = obj ;
} else if ( "audio" === type2 ) {
closure _6 . audio = obj ;
} else {
closure _6 . media = obj ;
}
2026-07-23 10:11:24 +00:00
const tmp5 = outer1 _46 ( request , closure _2 ) ;
2026-07-20 16:05:17 +00:00
obj = { request _event _type : type , request _start : tmp5 . requestStart , request _response _start : tmp5 . requestResponseStart , request _response _end : tmp5 . requestResponseEnd , request _bytes _loaded : - 1 , request _type : ` ${ type2 } _init ` , request _response _headers : tmp5 . requestResponseHeaders , request _hostname : tmp5 . requestHostname , request _id : tmp5 . requestId , request _url : tmp5 . requestUrl , request _media _duration : tmp5 . requestMediaDuration , request _rendition _lists : closure _6 } ;
o ( "requestcompleted" , obj ) ;
} ;
if ( tmp3 >= 4 ) {
on . on ( "initFragmentLoaded" , fn2 ) ;
} else {
on . on ( "initFragmentLoaded" , function g ( fragmentModel ) {
let chunk ;
let type ;
( { type , chunk } = fragmentModel ) ;
fn2 ( { type , request : f ( fragmentModel . fragmentModel ) , chunk } ) ;
} ) ;
}
2026-07-23 10:11:24 +00:00
const fn3 = function c ( arg0 ) {
2026-07-20 16:05:17 +00:00
let chunk ;
let mediaInfo ;
let request ;
let requestBytesLoaded ;
let requestHostname ;
let requestId ;
let requestMediaDuration ;
let requestResponseEnd ;
let requestResponseHeaders ;
let requestResponseStart ;
let requestStart ;
let requestUrl ;
let start ;
let type ;
( { chunk , type , request } = arg0 ) ;
if ( ! chunk ) {
chunk = { } ;
}
( { mediaInfo , start } = chunk ) ;
if ( ! mediaInfo ) {
mediaInfo = { } ;
}
const type2 = mediaInfo . type ;
2026-07-23 10:11:24 +00:00
( { requestStart , requestResponseStart , requestResponseEnd , requestBytesLoaded , requestResponseHeaders , requestMediaDuration , requestHostname , requestUrl , requestId } = outer1 _46 ( request , store ) ) ;
const qualityFor = store . getQualityFor ( type2 ) ;
const bitrateList = store . getCurrentTrackFor ( type2 ) . bitrateList ;
2026-07-20 16:05:17 +00:00
if ( bitrateList ) {
let obj = { currentLevel : qualityFor , renditionWidth : bitrateList [ qualityFor ] . width || null , renditionHeight : bitrateList [ qualityFor ] . height || null , renditionBitrate : bitrateList [ qualityFor ] . bandwidth } ;
} else {
obj = { } ;
}
obj = { request _event _type : type , request _start : requestStart , request _response _start : requestResponseStart , request _response _end : requestResponseEnd , request _bytes _loaded : requestBytesLoaded , request _type : type2 , request _response _headers : requestResponseHeaders , request _hostname : requestHostname , request _id : requestId , request _url : requestUrl , request _media _start _time : start , request _media _duration : requestMediaDuration } ;
( { currentLevel : obj3 . request _current _level , renditionBitrate : obj3 . request _labeled _bitrate , renditionWidth : obj3 . request _video _width , renditionHeight : obj3 . request _video _height } = obj ) ;
o ( "requestcompleted" , obj ) ;
} ;
if ( tmp3 >= 4 ) {
on . on ( "mediaFragmentLoaded" , fn3 ) ;
} else {
on . on ( "mediaFragmentLoaded" , function h ( fragmentModel ) {
let chunk ;
let type ;
( { type , chunk } = fragmentModel ) ;
fn3 ( { type , request : f ( fragmentModel . fragmentModel ) , chunk } ) ;
} ) ;
}
2026-07-23 10:11:24 +00:00
let obj = { video : on , audio : on , totalBitrate : on } ;
const fn4 = function x ( newQuality ) {
let closure _0 = newQuality ;
2026-07-20 16:05:17 +00:00
if ( "number" === typeof newQuality . newQuality ) {
const mediaType = newQuality . mediaType ;
if ( "audio" === mediaType ) {
2026-07-23 10:11:24 +00:00
const bitrateInfoListFor = store . getBitrateInfoListFor ( mediaType ) ;
const found = bitrateInfoListFor . find ( ( qualityIndex ) => qualityIndex . qualityIndex === newQuality . newQuality ) ;
2026-07-20 16:05:17 +00:00
if ( found ) {
if ( "number" === typeof found . bitrate ) {
let obj = { } ;
2026-07-23 10:11:24 +00:00
outer1 _135 ( obj , found ) ;
obj = { codec : store . getCurrentTrackFor ( mediaType ) . codec } ;
outer1 _136 ( obj , obj ) ;
2026-07-20 16:05:17 +00:00
obj [ mediaType ] = obj ;
let tmp6 ;
if ( obj . video ) {
if ( "number" === typeof obj . video . bitrate ) {
if ( obj . video . width ) {
if ( obj . video . height ) {
const bitrate = obj . video . bitrate ;
let audio = obj . audio ;
if ( audio ) {
audio = "number" === typeof obj . audio . bitrate ;
}
let sum = bitrate ;
if ( audio ) {
sum = bitrate + obj . audio . bitrate ;
}
if ( sum !== obj . totalBitrate ) {
obj . totalBitrate = sum ;
obj = { video _source _bitrate : sum } ;
obj . video _source _height = obj . video . height ;
obj . video _source _width = obj . video . width ;
2026-07-23 10:11:24 +00:00
obj . video _source _codec = outer1 _47 ( obj . video . codec ) ;
2026-07-20 16:05:17 +00:00
tmp6 = obj ;
}
}
}
log . warn ( "have bitrate info for video but missing width/height" ) ;
}
}
if ( tmp6 ) {
o ( "renditionchange" , tmp6 ) ;
}
}
}
const concat = "missing bitrate info for " . concat ;
log . warn ( "missing bitrate info for " . concat ( mediaType ) ) ;
}
} else {
log . warn ( "missing evt.newQuality in qualityChangeRendered event" , newQuality ) ;
}
} ;
on . on ( "qualityChangeRendered" , fn4 ) ;
const fn5 = function v ( request ) {
request = request . request ;
const obj = { } ;
if ( ! request ) {
request = { } ;
}
obj . request _event _type = ` ${ obj . type } _ ${ obj . action } ` ;
obj . request _url = request . url ;
obj . request _type = request . mediaType ;
2026-07-23 10:11:24 +00:00
obj . request _hostname = outer1 _37 ( request . url ) ;
2026-07-20 16:05:17 +00:00
o ( "requestcanceled" , obj ) ;
} ;
on . on ( "fragmentLoadingAbandoned" , fn5 ) ;
const fn6 = function p ( error ) {
error = error . error ;
let request ;
if ( null != error ) {
const data = error . data ;
if ( null !== data ) {
if ( undefined !== data ) {
request = data . request ;
}
}
}
if ( ! request ) {
request = { } ;
}
let response ;
if ( null != error ) {
const data2 = error . data ;
if ( null !== data2 ) {
if ( undefined !== data2 ) {
response = data2 . response ;
}
}
}
if ( ! response ) {
response = { } ;
}
let code ;
if ( null != error ) {
code = error . code ;
}
if ( 27 === code ) {
2026-07-23 10:11:24 +00:00
obj = { request _error : ` ${ obj . type } _ ${ obj . action } ` , request _url : request . url , request _hostname : outer1 _37 ( request . url ) , request _type : request . mediaType } ;
2026-07-20 16:05:17 +00:00
( { status : obj3 . request _error _code , statusText : obj3 . request _error _text } = response ) ;
o ( "requestfailed" , obj ) ;
}
if ( null != request ) {
if ( request . url ) {
const concat = "url: " . concat ;
"url: " . concat ( request . url , "\n" ) ;
}
}
if ( null == response ) {
let str6 = "" ;
if ( null != response ) {
str6 = "" ;
}
obj = { } ;
let code1 ;
const sum = tmp5 + tmp6 ( str6 ) ;
if ( null != error ) {
code1 = error . code ;
}
obj . player _error _code = code1 ;
let message ;
if ( null != error ) {
message = error . message ;
}
obj . player _error _message = message ;
obj . player _error _context = sum ;
o ( "error" , obj ) ;
}
let status ;
if ( null != response ) {
status = response . status ;
}
const combined = "response: " . concat ( status , ", " ) ;
let statusText ;
if ( null != response ) {
statusText = response . statusText ;
}
str6 = combined . concat ( statusText , "\n" ) ;
} ;
on = on . on ;
on ( "error" , fn6 ) ;
on . _stopMuxMonitor = ( ) => {
2026-07-23 10:11:24 +00:00
store . off ( "manifestLoaded" , fn ) ;
store . off ( "initFragmentLoaded" , fn2 ) ;
store . off ( "mediaFragmentLoaded" , fn3 ) ;
store . off ( "qualityChangeRendered" , fn4 ) ;
store . off ( "error" , fn6 ) ;
store . off ( "fragmentLoadingAbandoned" , fn5 ) ;
delete tmp . _stopMuxMonitor ;
2026-07-20 16:05:17 +00:00
} ;
}
}
log . warn ( "Invalid dash.js player reference. Monitoring blocked." ) ;
}
2026-07-23 10:11:24 +00:00
let c49 = 0 ;
2026-07-20 16:05:17 +00:00
let closure _50 = G ( BResult ( ) ) ;
2026-07-23 10:11:24 +00:00
let closure _51 = ( ( ) => {
2026-07-20 16:05:17 +00:00
const fn = function r ( pm ) {
2026-07-23 10:11:24 +00:00
let closure _0 = pm ;
2026-07-20 16:05:17 +00:00
const self = this ;
2026-07-23 10:11:24 +00:00
outer1 _125 ( this , closure _0 ) ;
outer1 _128 ( this , "_playbackHeartbeatInterval" , undefined ) ;
outer1 _128 ( this , "_playheadShouldBeProgressing" , undefined ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
this . _playbackHeartbeatInterval = null ;
this . _playheadShouldBeProgressing = false ;
pm . on ( "playing" , ( ) => {
self . _playheadShouldBeProgressing = true ;
} ) ;
const _startPlaybackHeartbeatInterval = this . _startPlaybackHeartbeatInterval ;
pm . on ( "play" , _startPlaybackHeartbeatInterval . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval2 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "playing" , _startPlaybackHeartbeatInterval2 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval3 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "adbreakstart" , _startPlaybackHeartbeatInterval3 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval4 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "adplay" , _startPlaybackHeartbeatInterval4 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval5 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "adplaying" , _startPlaybackHeartbeatInterval5 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval6 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "devicewake" , _startPlaybackHeartbeatInterval6 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval7 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "viewstart" , _startPlaybackHeartbeatInterval7 . bind ( this ) ) ;
const _startPlaybackHeartbeatInterval8 = this . _startPlaybackHeartbeatInterval ;
pm . on ( "rebufferstart" , _startPlaybackHeartbeatInterval8 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "pause" , _stopPlaybackHeartbeatInterval . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval2 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "ended" , _stopPlaybackHeartbeatInterval2 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval3 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "viewend" , _stopPlaybackHeartbeatInterval3 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval4 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "error" , _stopPlaybackHeartbeatInterval4 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval5 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "aderror" , _stopPlaybackHeartbeatInterval5 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval6 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "adpause" , _stopPlaybackHeartbeatInterval6 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval7 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "adended" , _stopPlaybackHeartbeatInterval7 . bind ( this ) ) ;
const _stopPlaybackHeartbeatInterval8 = this . _stopPlaybackHeartbeatInterval ;
pm . on ( "adbreakend" , _stopPlaybackHeartbeatInterval8 . bind ( this ) ) ;
pm . on ( "seeked" , ( ) => {
2026-07-23 10:11:24 +00:00
if ( pm . data . player _is _paused ) {
2026-07-20 16:05:17 +00:00
const result = obj . _stopPlaybackHeartbeatInterval ( ) ;
} else {
const result1 = obj . _startPlaybackHeartbeatInterval ( ) ;
}
} ) ;
pm . on ( "timeupdate" , ( ) => {
if ( null !== self . _playbackHeartbeatInterval ) {
2026-07-23 10:11:24 +00:00
pm . emit ( "playbackheartbeat" ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
pm . on ( "devicesleep" , ( arg0 , viewer _time ) => {
if ( null !== self . _playbackHeartbeatInterval ) {
2026-07-23 10:11:24 +00:00
outer2 _50 . default . clearInterval ( self . _playbackHeartbeatInterval ) ;
2026-07-20 16:05:17 +00:00
const obj = { viewer _time : viewer _time . viewer _time } ;
2026-07-23 10:11:24 +00:00
pm . emit ( "playbackheartbeatend" , obj ) ;
2026-07-20 16:05:17 +00:00
self . _playbackHeartbeatInterval = null ;
2026-07-23 10:11:24 +00:00
const _default = outer2 _50 . default ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ;
let obj = {
key : "_startPlaybackHeartbeatInterval" ,
value ( ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
2026-07-20 16:05:17 +00:00
if ( null === this . _playbackHeartbeatInterval ) {
2026-07-23 10:11:24 +00:00
let pm = self . pm ;
2026-07-20 16:05:17 +00:00
pm . emit ( "playbackheartbeat" ) ;
2026-07-23 10:11:24 +00:00
self . _playbackHeartbeatInterval = outer1 _50 . default . setInterval ( ( ) => {
2026-07-20 16:05:17 +00:00
const pm = self . pm ;
pm . emit ( "playbackheartbeat" ) ;
} , self . pm . playbackHeartbeatTime ) ;
2026-07-23 10:11:24 +00:00
const _default = outer1 _50 . default ;
2026-07-20 16:05:17 +00:00
}
}
} ;
const items = [ obj , ] ;
obj = {
key : "_stopPlaybackHeartbeatInterval" ,
value ( ) {
const self = this ;
this . _playheadShouldBeProgressing = false ;
if ( null !== this . _playbackHeartbeatInterval ) {
2026-07-23 10:11:24 +00:00
outer1 _50 . default . clearInterval ( self . _playbackHeartbeatInterval ) ;
2026-07-20 16:05:17 +00:00
const pm = self . pm ;
pm . emit ( "playbackheartbeatend" ) ;
self . _playbackHeartbeatInterval = null ;
2026-07-23 10:11:24 +00:00
const _default = outer1 _50 . default ;
2026-07-20 16:05:17 +00:00
}
}
} ;
items [ 1 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let fn = function r ( on ) {
let closure _0 = on ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn ) ;
l ( this , "viewErrored" , undefined ) ;
on . on ( "viewinit" , ( ) => {
self . viewErrored = false ;
} ) ;
2026-07-23 10:11:24 +00:00
on . on ( "error" , ( arg0 , player _error _code ) => {
const errorTranslatorResult = on . errorTranslator ( { player _error _code : player _error _code . player _error _code , player _error _message : player _error _code . player _error _message , player _error _context : player _error _code . player _error _context , player _error _severity : player _error _code . player _error _severity , player _error _business _exception : player _error _code . player _error _business _exception } ) ;
2026-07-20 16:05:17 +00:00
if ( errorTranslatorResult ) {
player _error _code = tmp2 . player _error _code ;
let player _error _code2 = player _error _code ;
if ( ! player _error _code ) {
player _error _code2 = player _error _code . player _error _code ;
}
2026-07-23 10:11:24 +00:00
on . data . player _error _code = player _error _code2 ;
2026-07-20 16:05:17 +00:00
const player _error _message = tmp2 . player _error _message ;
let player _error _message2 = player _error _message ;
if ( ! player _error _message ) {
player _error _message2 = player _error _code . player _error _message ;
}
2026-07-23 10:11:24 +00:00
on . data . player _error _message = player _error _message2 ;
2026-07-20 16:05:17 +00:00
const player _error _context = tmp2 . player _error _context ;
let player _error _context2 = player _error _context ;
if ( ! player _error _context ) {
player _error _context2 = player _error _code . player _error _context ;
}
2026-07-23 10:11:24 +00:00
on . data . player _error _context = player _error _context2 ;
2026-07-20 16:05:17 +00:00
const player _error _severity = tmp2 . player _error _severity ;
let player _error _severity2 = player _error _severity ;
if ( ! player _error _severity ) {
player _error _severity2 = player _error _code . player _error _severity ;
}
2026-07-23 10:11:24 +00:00
on . data . player _error _severity = player _error _severity2 ;
2026-07-20 16:05:17 +00:00
const player _error _business _exception = errorTranslatorResult . player _error _business _exception ;
let player _error _business _exception2 = player _error _business _exception ;
if ( ! player _error _business _exception ) {
player _error _business _exception2 = player _error _code . player _error _business _exception ;
}
2026-07-23 10:11:24 +00:00
on . data . player _error _business _exception = player _error _business _exception2 ;
2026-07-20 16:05:17 +00:00
self . viewErrored = true ;
}
} ) ;
on . on ( "aftererror" , ( ) => {
2026-07-23 10:11:24 +00:00
const data = on . data ;
let tmp3 = null === data ;
2026-07-20 16:05:17 +00:00
if ( ! tmp3 ) {
2026-07-23 10:11:24 +00:00
tmp3 = undefined === data ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp3 ) {
2026-07-23 10:11:24 +00:00
delete tmp2 . player _error _code ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const data2 = on . data ;
let tmp4 = null === data2 ;
2026-07-20 16:05:17 +00:00
if ( ! tmp4 ) {
2026-07-23 10:11:24 +00:00
tmp4 = undefined === data2 ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp4 ) {
2026-07-23 10:11:24 +00:00
delete tmp2 . player _error _message ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const data3 = on . data ;
let tmp5 = null === data3 ;
2026-07-20 16:05:17 +00:00
if ( ! tmp5 ) {
2026-07-23 10:11:24 +00:00
tmp5 = undefined === data3 ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp5 ) {
2026-07-23 10:11:24 +00:00
delete tmp2 . player _error _context ;
}
const data4 = on . data ;
let tmp6 = null === data4 ;
if ( ! tmp6 ) {
tmp6 = undefined === data4 ;
}
if ( ! tmp6 ) {
delete tmp2 . player _error _severity ;
}
const data5 = on . data ;
let tmp7 = null === data5 ;
if ( ! tmp7 ) {
tmp7 = undefined === data5 ;
}
if ( ! tmp7 ) {
delete tmp . player _error _business _exception ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ;
2026-07-23 10:11:24 +00:00
let closure _53 = ( ( ) => {
2026-07-20 16:05:17 +00:00
const fn = function r ( pm ) {
2026-07-23 10:11:24 +00:00
outer1 _125 ( this , fn ) ;
outer1 _128 ( this , "_watchTimeTrackerLastCheckedTime" , undefined ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
this . _watchTimeTrackerLastCheckedTime = null ;
const _updateWatchTime = this . _updateWatchTime ;
pm . on ( "playbackheartbeat" , _updateWatchTime . bind ( this ) ) ;
const _clearWatchTimeState = this . _clearWatchTimeState ;
pm . on ( "playbackheartbeatend" , _clearWatchTimeState . bind ( this ) ) ;
} ;
let obj = {
key : "_updateWatchTime" ,
value ( arg0 , viewer _time ) {
const self = this ;
viewer _time = viewer _time . viewer _time ;
if ( null === this . _watchTimeTrackerLastCheckedTime ) {
self . _watchTimeTrackerLastCheckedTime = viewer _time ;
}
2026-07-23 10:11:24 +00:00
outer1 _134 ( self . pm . data , "view_watch_time" , viewer _time - self . _watchTimeTrackerLastCheckedTime ) ;
2026-07-20 16:05:17 +00:00
self . _watchTimeTrackerLastCheckedTime = viewer _time ;
}
} ;
const items = [ obj , ] ;
obj = {
key : "_clearWatchTimeState" ,
value ( arg0 , arg1 ) {
this . _updateWatchTime ( arg0 , arg1 ) ;
this . _watchTimeTrackerLastCheckedTime = null ;
}
} ;
items [ 1 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let closure _54 = ( ( ) => {
2026-07-20 16:05:17 +00:00
const fn = function r ( pm ) {
2026-07-23 10:11:24 +00:00
const self = this ;
outer1 _125 ( this , self ) ;
outer1 _128 ( this , "_playbackTimeTrackerLastPlayheadPosition" , undefined ) ;
outer1 _128 ( this , "_lastTime" , undefined ) ;
outer1 _128 ( this , "_isAdPlaying" , undefined ) ;
outer1 _128 ( this , "_callbackUpdatePlaybackTime" , undefined ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
this . _playbackTimeTrackerLastPlayheadPosition = - 1 ;
2026-07-23 10:11:24 +00:00
this . _lastTime = outer1 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
this . _isAdPlaying = false ;
this . _callbackUpdatePlaybackTime = null ;
pm . on ( "viewinit" , ( ) => {
self . pm . data . view _playing _time _ms _cumulative = 0 ;
} ) ;
const _startPlaybackTimeTracking = this . _startPlaybackTimeTracking ;
const bindResult = _startPlaybackTimeTracking . bind ( this ) ;
pm . on ( "playing" , bindResult ) ;
pm . on ( "adplaying" , bindResult ) ;
pm . on ( "seeked" , bindResult ) ;
pm . on ( "rebufferend" , bindResult ) ;
const _stopPlaybackTimeTracking = this . _stopPlaybackTimeTracking ;
const bindResult1 = _stopPlaybackTimeTracking . bind ( this ) ;
pm . on ( "playbackheartbeatend" , bindResult1 ) ;
pm . on ( "seeking" , bindResult1 ) ;
pm . on ( "rebufferstart" , bindResult1 ) ;
pm . on ( "adplaying" , ( ) => {
self . _isAdPlaying = true ;
} ) ;
pm . on ( "adended" , ( ) => {
self . _isAdPlaying = false ;
} ) ;
pm . on ( "adpause" , ( ) => {
self . _isAdPlaying = false ;
} ) ;
pm . on ( "adbreakstart" , ( ) => {
self . _isAdPlaying = false ;
} ) ;
pm . on ( "adbreakend" , ( ) => {
self . _isAdPlaying = false ;
} ) ;
pm . on ( "adplay" , ( ) => {
self . _isAdPlaying = false ;
} ) ;
pm . on ( "viewinit" , ( ) => {
self . _playbackTimeTrackerLastPlayheadPosition = - 1 ;
2026-07-23 10:11:24 +00:00
self . _lastTime = outer2 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
self . _isAdPlaying = false ;
self . _callbackUpdatePlaybackTime = null ;
} ) ;
} ;
let obj = {
key : "_startPlaybackTimeTracking" ,
value ( ) {
const self = this ;
if ( null === this . _callbackUpdatePlaybackTime ) {
const _updatePlaybackTime = self . _updatePlaybackTime ;
self . _callbackUpdatePlaybackTime = _updatePlaybackTime . bind ( self ) ;
self . _playbackTimeTrackerLastPlayheadPosition = self . pm . data . player _playhead _time ;
2026-07-23 10:11:24 +00:00
self . _lastTime = outer1 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
const pm = self . pm ;
pm . on ( "playbackheartbeat" , self . _callbackUpdatePlaybackTime ) ;
}
}
} ;
const items = [ obj , , ] ;
obj = {
key : "_stopPlaybackTimeTracking" ,
value ( ) {
const self = this ;
if ( this . _callbackUpdatePlaybackTime ) {
self . _updatePlaybackTime ( ) ;
const pm = self . pm ;
pm . off ( "playbackheartbeat" , self . _callbackUpdatePlaybackTime ) ;
self . _callbackUpdatePlaybackTime = null ;
self . _playbackTimeTrackerLastPlayheadPosition = - 1 ;
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_updatePlaybackTime" ,
value ( ) {
const self = this ;
2026-07-23 10:11:24 +00:00
const nowResult = outer1 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
const diff = nowResult - self . _lastTime ;
if ( self . _playbackTimeTrackerLastPlayheadPosition >= 0 ) {
if ( tmp > self . _playbackTimeTrackerLastPlayheadPosition ) {
let num = tmp - self . _playbackTimeTrackerLastPlayheadPosition ;
}
let tmp4 = num > 0 ;
if ( tmp4 ) {
tmp4 = num <= 1000 ;
}
if ( tmp4 ) {
2026-07-23 10:11:24 +00:00
outer1 _134 ( self . pm . data , "view_content_playback_time" , num ) ;
2026-07-20 16:05:17 +00:00
}
let tmp8 = null !== self . _callbackUpdatePlaybackTime && diff > 0 ;
if ( tmp8 ) {
tmp8 = diff <= 1000 ;
}
if ( tmp8 ) {
if ( self . _isAdPlaying ) {
2026-07-23 10:11:24 +00:00
outer1 _134 ( self . pm . data , "ad_playing_time_ms_cumulative" , diff ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _134 ( self . pm . data , "view_playing_time_ms_cumulative" , diff ) ;
2026-07-20 16:05:17 +00:00
}
self . _playbackTimeTrackerLastPlayheadPosition = tmp ;
self . _lastTime = nowResult ;
}
num = - 1 ;
if ( self . _isAdPlaying ) {
num = diff ;
}
}
} ;
items [ 2 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let closure _55 = ( ( ) => {
let fn = function r ( pm ) {
let closure _0 = pm ;
outer1 _125 ( this , closure _0 ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
const _updatePlayheadTime = this . _updatePlayheadTime ;
const bindResult = _updatePlayheadTime . bind ( this ) ;
2026-07-23 10:11:24 +00:00
let closure _1 = bindResult ;
2026-07-20 16:05:17 +00:00
pm . on ( "playbackheartbeat" , bindResult ) ;
pm . on ( "playbackheartbeatend" , bindResult ) ;
pm . on ( "timeupdate" , bindResult ) ;
pm . on ( "destroy" , ( ) => {
2026-07-23 10:11:24 +00:00
pm . off ( "timeupdate" , closure _1 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ;
let obj = {
key : "_updateMaxPlayheadPosition" ,
value ( ) {
const self = this ;
if ( undefined === this . pm . data . view _max _playhead _position ) {
let player _playhead _time = self . pm . data . player _playhead _time ;
} else {
const _Math = Math ;
player _playhead _time = Math . max ( self . pm . data . view _max _playhead _position , self . pm . data . player _playhead _time ) ;
}
this . pm . data . view _max _playhead _position = player _playhead _time ;
}
} ;
const items = [ obj , ] ;
obj = {
key : "_updatePlayheadTime" ,
value ( arg0 , player _playhead _time ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
const fn = function n ( ) {
2026-07-20 16:05:17 +00:00
let currentFragmentStart = self . pm . currentFragmentPDT ;
if ( currentFragmentStart ) {
currentFragmentStart = self . pm . currentFragmentStart ;
}
if ( currentFragmentStart ) {
self . pm . data . player _program _time = self . pm . currentFragmentPDT + self . pm . data . player _playhead _time - self . pm . currentFragmentStart ;
}
} ;
if ( player _playhead _time ) {
if ( player _playhead _time . player _playhead _time ) {
self . pm . data . player _playhead _time = player _playhead _time . player _playhead _time ;
fn ( ) ;
const result = self . _updateMaxPlayheadPosition ( ) ;
}
}
if ( self . pm . getPlayheadTime ) {
const pm = self . pm ;
const playheadTime = pm . getPlayheadTime ( ) ;
if ( undefined !== playheadTime ) {
self . pm . data . player _playhead _time = playheadTime ;
fn ( ) ;
const result1 = self . _updateMaxPlayheadPosition ( ) ;
}
}
}
} ;
items [ 1 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let c56 = 300000 ;
let fn2 = function r ( disableRebufferTracking ) {
let closure _0 = disableRebufferTracking ;
2026-07-20 16:05:17 +00:00
D ( this , fn2 ) ;
if ( ! disableRebufferTracking . disableRebufferTracking ) {
function i ( arg0 , arg1 ) {
a ( arg1 ) ;
2026-07-23 10:11:24 +00:00
let c1 ;
2026-07-20 16:05:17 +00:00
}
function a ( viewer _time ) {
if ( viewer _time ) {
2026-07-23 10:11:24 +00:00
outer1 _134 ( disableRebufferTracking . data , "view_rebuffer_duration" , viewer _time . viewer _time - viewer _time ) ;
2026-07-20 16:05:17 +00:00
viewer _time = viewer _time . viewer _time ;
2026-07-23 10:11:24 +00:00
if ( disableRebufferTracking . data . view _rebuffer _duration > outer1 _56 ) {
disableRebufferTracking . emit ( "viewend" ) ;
disableRebufferTracking . send ( "viewend" ) ;
const log = disableRebufferTracking . mux . log ;
2026-07-20 16:05:17 +00:00
const concat = "Ending view after rebuffering for longer than " . concat ;
2026-07-23 10:11:24 +00:00
log . warn ( "Ending view after rebuffering for longer than " . concat ( outer1 _56 , "ms, future events will be ignored unless a programchange or videochange occurs." ) ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let tmp11 = disableRebufferTracking . data . view _watch _time >= 0 ;
2026-07-20 16:05:17 +00:00
if ( tmp11 ) {
2026-07-23 10:11:24 +00:00
tmp11 = disableRebufferTracking . data . view _rebuffer _count > 0 ;
2026-07-20 16:05:17 +00:00
}
if ( tmp11 ) {
2026-07-23 10:11:24 +00:00
disableRebufferTracking . data . view _rebuffer _frequency = disableRebufferTracking . data . view _rebuffer _count / disableRebufferTracking . data . view _watch _time ;
disableRebufferTracking . data . view _rebuffer _percentage = disableRebufferTracking . data . view _rebuffer _duration / disableRebufferTracking . data . view _watch _time ;
2026-07-20 16:05:17 +00:00
}
}
disableRebufferTracking . on ( "playbackheartbeat" , ( arg0 , arg1 ) => a ( arg1 ) ) ;
2026-07-23 10:11:24 +00:00
disableRebufferTracking . on ( "rebufferstart" , ( arg0 , viewer _time ) => {
2026-07-20 16:05:17 +00:00
if ( ! viewer _time ) {
2026-07-23 10:11:24 +00:00
outer1 _134 ( disableRebufferTracking . data , "view_rebuffer_count" , 1 ) ;
2026-07-20 16:05:17 +00:00
viewer _time = viewer _time . viewer _time ;
2026-07-23 10:11:24 +00:00
disableRebufferTracking . one ( "rebufferend" , i ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
disableRebufferTracking . on ( "viewinit" , ( ) => {
2026-07-23 10:11:24 +00:00
let c1 ;
disableRebufferTracking . off ( "rebufferend" , i ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ;
2026-07-23 10:11:24 +00:00
let closure _58 = ( ( ) => {
2026-07-20 16:05:17 +00:00
const fn = function r ( pm ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
outer1 _125 ( this , self ) ;
outer1 _128 ( this , "_lastCheckedTime" , undefined ) ;
outer1 _128 ( this , "_lastPlayheadTime" , undefined ) ;
outer1 _128 ( this , "_lastPlayheadTimeUpdatedTime" , undefined ) ;
outer1 _128 ( this , "_rebuffering" , undefined ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
if ( tmp7 ) {
self . _lastCheckedTime = null ;
self . _lastPlayheadTime = null ;
self . _lastPlayheadTimeUpdatedTime = null ;
const _checkIfRebuffering = self . _checkIfRebuffering ;
pm . on ( "playbackheartbeat" , _checkIfRebuffering . bind ( self ) ) ;
const _cleanupRebufferTracker = self . _cleanupRebufferTracker ;
pm . on ( "playbackheartbeatend" , _cleanupRebufferTracker . bind ( self ) ) ;
pm . on ( "seeking" , ( ) => {
2026-07-23 10:11:24 +00:00
const result = self . _cleanupRebufferTracker ( null , { viewer _time : outer2 _25 . now ( ) } ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ;
let obj = {
key : "_checkIfRebuffering" ,
value ( arg0 , viewer _time ) {
const self = this ;
if ( ! this . pm . seekingTracker . isSeeking ) {
if ( ! self . pm . adTracker . isAdBreak ) {
if ( self . pm . playbackHeartbeat . _playheadShouldBeProgressing ) {
if ( null !== self . _lastCheckedTime ) {
if ( self . _lastPlayheadTime === self . pm . data . player _playhead _time ) {
if ( tmp5 ) {
if ( ! self . _rebuffering ) {
self . _rebuffering = true ;
const pm = self . pm ;
const obj = { viewer _time : self . _lastPlayheadTimeUpdatedTime } ;
pm . emit ( "rebufferstart" , obj ) ;
}
}
self . _lastCheckedTime = viewer _time . viewer _time ;
2026-07-23 10:11:24 +00:00
tmp5 = "number" === typeof self . pm . sustainedRebufferThreshold && tmp4 >= self . pm . sustainedRebufferThreshold ;
2026-07-20 16:05:17 +00:00
} else {
const result = self . _cleanupRebufferTracker ( arg0 , viewer _time , true ) ;
}
} else {
const result1 = self . _prepareRebufferTrackerState ( viewer _time . viewer _time ) ;
}
}
}
}
const result2 = self . _cleanupRebufferTracker ( arg0 , viewer _time ) ;
}
} ;
const items = [ obj , , , ] ;
obj = {
key : "_clearRebufferTrackerState" ,
value ( ) {
this . _lastCheckedTime = null ;
this . _lastPlayheadTime = null ;
this . _lastPlayheadTimeUpdatedTime = null ;
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_prepareRebufferTrackerState" ,
value ( _lastCheckedTime ) {
this . _lastCheckedTime = _lastCheckedTime ;
this . _lastPlayheadTime = this . pm . data . player _playhead _time ;
this . _lastPlayheadTimeUpdatedTime = _lastCheckedTime ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "_cleanupRebufferTracker" ,
value ( arg0 , viewer _time ) {
const self = this ;
if ( self . _rebuffering ) {
self . _rebuffering = false ;
const pm3 = self . pm ;
let obj = { viewer _time : viewer _time . viewer _time } ;
pm3 . emit ( "rebufferend" , obj ) ;
} else if ( null !== self . _lastCheckedTime ) {
const diff = self . pm . data . player _playhead _time - self . _lastPlayheadTime ;
const diff1 = viewer _time . viewer _time - self . _lastPlayheadTimeUpdatedTime ;
let tmp3 = "number" === typeof self . pm . minimumRebufferDuration ;
if ( tmp3 ) {
tmp3 = diff > 0 ;
}
if ( tmp3 ) {
tmp3 = diff1 - diff > self . pm . minimumRebufferDuration ;
}
if ( tmp3 ) {
self . _lastCheckedTime = null ;
const pm = self . pm ;
obj = { viewer _time : self . _lastPlayheadTimeUpdatedTime } ;
pm . emit ( "rebufferstart" , obj ) ;
const pm2 = self . pm ;
obj = { viewer _time : self . _lastPlayheadTimeUpdatedTime + diff1 - diff } ;
pm2 . emit ( "rebufferend" , obj ) ;
}
}
if ( tmp ) {
const result = self . _prepareRebufferTrackerState ( viewer _time . viewer _time ) ;
} else {
const result1 = self . _clearRebufferTrackerState ( ) ;
}
}
} ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let closure _59 = ( ( ) => {
let fn = function r ( pm ) {
let closure _0 = pm ;
2026-07-20 16:05:17 +00:00
const self = this ;
2026-07-23 10:11:24 +00:00
outer1 _125 ( this , closure _0 ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
2026-07-23 10:11:24 +00:00
pm . on ( "viewinit" , ( ) => {
const data = view _id . data ;
view _id = data . view _id ;
2026-07-20 16:05:17 +00:00
if ( ! data . view _program _changed ) {
const fn = function n ( type , viewer _time ) {
viewer _time = viewer _time . viewer _time ;
let tmp = "playing" === type . type ;
if ( tmp ) {
tmp = undefined === view _id . data . view _time _to _first _frame ;
}
if ( ! tmp ) {
let tmp3 = "adplaying" === type . type ;
if ( tmp3 ) {
let _inPrerollPositionResult = undefined === view _id . data . view _time _to _first _frame ;
if ( ! _inPrerollPositionResult ) {
_inPrerollPositionResult = fn . _inPrerollPosition ( ) ;
}
tmp3 = _inPrerollPositionResult ;
}
tmp = tmp3 ;
}
if ( tmp ) {
if ( ! viewer _time ) {
2026-07-23 10:11:24 +00:00
viewer _time = outer3 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
}
const result = fn . calculateTimeToFirstFrame ( viewer _time , view _id ) ;
}
} ;
2026-07-23 10:11:24 +00:00
view _id . one ( "playing" , fn ) ;
view _id . one ( "adplaying" , fn ) ;
view _id . one ( "viewend" , ( ) => {
2026-07-20 16:05:17 +00:00
view _id . off ( "playing" , fn ) ;
view _id . off ( "adplaying" , fn ) ;
} ) ;
}
} ) ;
} ;
let obj = {
key : "_inPrerollPosition" ,
value ( ) {
let tmp = undefined === this . pm . data . view _content _playback _time ;
if ( ! tmp ) {
tmp = this . pm . data . view _content _playback _time <= 1000 ;
}
return tmp ;
}
} ;
const items = [ obj , ] ;
obj = {
key : "calculateTimeToFirstFrame" ,
value ( viewer _time ) {
const self = this ;
if ( arg1 === this . pm . data . view _id ) {
const watchTimeTracker = self . pm . watchTimeTracker ;
const obj = { viewer _time } ;
watchTimeTracker . _updateWatchTime ( null , obj ) ;
self . pm . data . view _time _to _first _frame = self . pm . data . view _watch _time ;
if ( tmp ) {
self . pm . data . view _aggregate _startup _time = self . pm . data . view _start + self . pm . data . view _watch _time - self . pm . pageLoadInitTime ;
}
2026-07-23 10:11:24 +00:00
tmp = ( self . pm . data . player _autoplay _on || self . pm . data . video _is _autoplay ) && self . pm . pageLoadInitTime ;
2026-07-20 16:05:17 +00:00
}
}
} ;
items [ 1 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let fn3 = function r ( on ) {
let closure _0 = on ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn3 ) ;
l ( this , "_lastPlayerHeight" , undefined ) ;
l ( this , "_lastPlayerWidth" , undefined ) ;
l ( this , "_lastPlayheadPosition" , undefined ) ;
l ( this , "_lastSourceHeight" , undefined ) ;
l ( this , "_lastSourceWidth" , undefined ) ;
on . on ( "viewinit" , ( ) => {
self . _lastPlayheadPosition = - 1 ;
} ) ;
2026-07-23 10:11:24 +00:00
const items = [ "pause" , "rebufferstart" , "seeking" , "error" , "adbreakstart" , "hb" , "renditionchange" , "orientationchange" , "viewend" , "playbackmodechange" ] ;
2026-07-20 16:05:17 +00:00
const item = items . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
on . on ( arg0 , ( ) => {
if ( outer1 _1 . _lastPlayheadPosition >= 0 ) {
if ( outer1 _0 . data . player _playhead _time >= 0 ) {
if ( outer1 _1 . _lastPlayerWidth >= 0 ) {
if ( outer1 _1 . _lastSourceWidth > 0 ) {
if ( outer1 _1 . _lastPlayerHeight >= 0 ) {
if ( outer1 _1 . _lastSourceHeight > 0 ) {
const diff = outer1 _0 . data . player _playhead _time - outer1 _1 . _lastPlayheadPosition ;
2026-07-20 16:05:17 +00:00
if ( diff < 0 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 . _lastPlayheadPosition = - 1 ;
2026-07-20 16:05:17 +00:00
} else {
const _Math = Math ;
2026-07-23 10:11:24 +00:00
const bound = Math . min ( outer1 _1 . _lastPlayerWidth / outer1 _1 . _lastSourceWidth , outer1 _1 . _lastPlayerHeight / outer1 _1 . _lastSourceHeight ) ;
2026-07-20 16:05:17 +00:00
const _Math2 = Math ;
const bound1 = Math . max ( 0 , bound - 1 ) ;
const _Math3 = Math ;
const bound2 = Math . max ( 0 , 1 - bound ) ;
2026-07-23 10:11:24 +00:00
let num = outer1 _0 . data . view _max _upscale _percentage ;
2026-07-20 16:05:17 +00:00
if ( ! num ) {
num = 0 ;
}
2026-07-23 10:11:24 +00:00
outer1 _0 . data . view _max _upscale _percentage = Math . max ( num , bound1 ) ;
let num2 = outer1 _0 . data . view _max _downscale _percentage ;
2026-07-20 16:05:17 +00:00
if ( ! num2 ) {
num2 = 0 ;
}
2026-07-23 10:11:24 +00:00
outer1 _0 . data . view _max _downscale _percentage = Math . max ( num2 , bound2 ) ;
outer2 _134 ( outer1 _0 . data , "view_total_content_playback_time" , diff ) ;
outer2 _134 ( outer1 _0 . data , "view_total_upscaling" , bound1 * diff ) ;
outer2 _134 ( outer1 _0 . data , "view_total_downscaling" , bound2 * diff ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
}
}
2026-07-23 10:11:24 +00:00
outer1 _1 . _lastPlayheadPosition = - 1 ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
2026-07-23 10:11:24 +00:00
const items1 = [ "playing" , "hb" , "renditionchange" , "orientationchange" , "playbackmodechange" ] ;
2026-07-20 16:05:17 +00:00
const item1 = items1 . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
on . on ( arg0 , ( ) => {
outer1 _1 . _lastPlayheadPosition = outer1 _0 . data . player _playhead _time ;
outer1 _1 . _lastPlayerWidth = outer1 _0 . data . player _width ;
outer1 _1 . _lastPlayerHeight = outer1 _0 . data . player _height ;
outer1 _1 . _lastSourceWidth = outer1 _0 . data . video _source _width ;
outer1 _1 . _lastSourceHeight = outer1 _0 . data . video _source _height ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
} ;
2026-07-23 10:11:24 +00:00
let fn4 = function r ( on ) {
let closure _0 = on ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn4 ) ;
l ( this , "isSeeking" , undefined ) ;
this . isSeeking = false ;
2026-07-23 10:11:24 +00:00
let c2 = - 1 ;
2026-07-20 16:05:17 +00:00
function a ( ) {
2026-07-23 10:11:24 +00:00
const nowResult = outer1 _25 . now ( ) ;
let tmp3 = c2 ;
if ( ! c2 ) {
2026-07-20 16:05:17 +00:00
tmp3 = nowResult ;
}
2026-07-23 10:11:24 +00:00
const diff = ( on . data . viewer _time || nowResult ) - tmp3 ;
outer1 _134 ( on . data , "view_seek_duration" , diff ) ;
let num = on . data . view _max _seek _time ;
2026-07-20 16:05:17 +00:00
if ( ! num ) {
num = 0 ;
}
2026-07-23 10:11:24 +00:00
on . data . view _max _seek _time = Math . max ( num , diff ) ;
2026-07-20 16:05:17 +00:00
self . isSeeking = false ;
2026-07-23 10:11:24 +00:00
c2 = - 1 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
on . on ( "seeking" , ( arg0 , viewer _time ) => {
const merged = Object . assign ( on . data , viewer _time ) ;
2026-07-20 16:05:17 +00:00
if ( self . isSeeking ) {
if ( viewer _time . viewer _time - viewer _time <= 2000 ) {
viewer _time = viewer _time . viewer _time ;
}
}
if ( self . isSeeking ) {
a ( ) ;
}
self . isSeeking = true ;
viewer _time = viewer _time . viewer _time ;
2026-07-23 10:11:24 +00:00
outer1 _134 ( on . data , "view_seek_count" , 1 ) ;
on . send ( "seeking" ) ;
2026-07-20 16:05:17 +00:00
} ) ;
on . on ( "seeked" , ( ) => {
a ( ) ;
} ) ;
on . on ( "viewend" , ( ) => {
if ( self . isSeeking ) {
a ( ) ;
2026-07-23 10:11:24 +00:00
on . send ( "seeked" ) ;
2026-07-20 16:05:17 +00:00
}
self . isSeeking = false ;
2026-07-23 10:11:24 +00:00
let c2 = - 1 ;
2026-07-20 16:05:17 +00:00
} ) ;
} ;
function Xt ( arr ) {
arr . push ( arg1 ) ;
const sorted = arr . sort ( ( viewer _time , viewer _time2 ) => viewer _time . viewer _time - viewer _time2 . viewer _time ) ;
}
2026-07-23 10:11:24 +00:00
let closure _63 = [ "adbreakstart" , "adrequest" , "adresponse" , "adplay" , "adplaying" , "adpause" , "adended" , "adbreakend" , "aderror" , "adclicked" , "adskipped" ] ;
let closure _64 = ( ( ) => {
let fn = function r ( pm ) {
let closure _0 = pm ;
2026-07-20 16:05:17 +00:00
const self = this ;
2026-07-23 10:11:24 +00:00
outer1 _125 ( this , closure _0 ) ;
outer1 _128 ( this , "_adHasPlayed" , undefined ) ;
outer1 _128 ( this , "_adRequests" , undefined ) ;
outer1 _128 ( this , "_adResponses" , undefined ) ;
outer1 _128 ( this , "_currentAdRequestNumber" , undefined ) ;
outer1 _128 ( this , "_currentAdResponseNumber" , undefined ) ;
outer1 _128 ( this , "_prerollPlayTime" , undefined ) ;
outer1 _128 ( this , "_wouldBeNewAdPlay" , undefined ) ;
outer1 _128 ( this , "isAdBreak" , undefined ) ;
outer1 _128 ( this , "pm" , undefined ) ;
2026-07-20 16:05:17 +00:00
this . pm = pm ;
pm . on ( "viewinit" , ( ) => {
self . isAdBreak = false ;
self . _currentAdRequestNumber = 0 ;
self . _currentAdResponseNumber = 0 ;
self . _adRequests = [ ] ;
self . _adResponses = [ ] ;
self . _adHasPlayed = false ;
self . _wouldBeNewAdPlay = true ;
self . _prerollPlayTime = undefined ;
} ) ;
2026-07-23 10:11:24 +00:00
const item = outer1 _63 . forEach ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
const _updateAdData = self . _updateAdData ;
2026-07-23 10:11:24 +00:00
return pm . on ( arg0 , _updateAdData . bind ( self ) ) ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
const fn = function i ( ) {
2026-07-20 16:05:17 +00:00
self . isAdBreak = false ;
} ;
pm . on ( "adbreakstart" , ( ) => {
self . isAdBreak = true ;
} ) ;
pm . on ( "play" , fn ) ;
pm . on ( "playing" , fn ) ;
pm . on ( "viewend" , fn ) ;
pm . on ( "adrequest" , ( arg0 , arg1 ) => {
self . _currentAdRequestNumber = + self . _currentAdRequestNumber + 1 ;
2026-07-23 10:11:24 +00:00
outer2 _62 ( self . _adRequests , Object . assign ( { ad _request _id : ` generatedAdRequestId ${ + self . _currentAdRequestNumber } ` } , arg1 ) ) ;
outer2 _134 ( pm . data , "view_ad_request_count" ) ;
2026-07-20 16:05:17 +00:00
if ( self . inPrerollPosition ( ) ) {
2026-07-23 10:11:24 +00:00
pm . data . view _preroll _requested = true ;
2026-07-20 16:05:17 +00:00
if ( ! self . _adHasPlayed ) {
2026-07-23 10:11:24 +00:00
outer2 _134 ( pm . data , "view_preroll_request_count" ) ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
pm . on ( "adresponse" , ( arg0 , arg1 ) => {
self . _currentAdResponseNumber = + self . _currentAdResponseNumber + 1 ;
const merged = Object . assign ( { ad _request _id : ` generatedAdRequestId ${ tmp } ` } , arg1 ) ;
2026-07-23 10:11:24 +00:00
outer2 _62 ( self . _adResponses , merged ) ;
2026-07-20 16:05:17 +00:00
const findAdRequestResult = self . findAdRequest ( merged . ad _request _id ) ;
if ( findAdRequestResult ) {
const _Math = Math ;
2026-07-23 10:11:24 +00:00
outer2 _134 ( pm . data , "view_ad_request_time" , Math . max ( 0 , merged . viewer _time - findAdRequestResult . viewer _time ) ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
pm . on ( "adplay" , ( arg0 , viewer _time ) => {
self . _adHasPlayed = true ;
if ( self . _wouldBeNewAdPlay ) {
self . _wouldBeNewAdPlay = false ;
2026-07-23 10:11:24 +00:00
outer2 _134 ( pm . data , "view_ad_played_count" ) ;
2026-07-20 16:05:17 +00:00
}
let inPrerollPositionResult = self . inPrerollPosition ( ) ;
if ( inPrerollPositionResult ) {
2026-07-23 10:11:24 +00:00
inPrerollPositionResult = ! pm . data . view _preroll _played ;
2026-07-20 16:05:17 +00:00
}
if ( inPrerollPositionResult ) {
2026-07-23 10:11:24 +00:00
pm . data . view _preroll _played = true ;
2026-07-20 16:05:17 +00:00
if ( self . _adRequests . length > 0 ) {
const _Math = Math ;
2026-07-23 10:11:24 +00:00
pm . data . view _preroll _request _time = Math . max ( 0 , viewer _time . viewer _time - self . _adRequests [ 0 ] . viewer _time ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( pm . data . view _start ) {
2026-07-20 16:05:17 +00:00
const _Math2 = Math ;
2026-07-23 10:11:24 +00:00
pm . data . view _startup _preroll _request _time = Math . max ( 0 , viewer _time . viewer _time - pm . data . view _start ) ;
2026-07-20 16:05:17 +00:00
}
self . _prerollPlayTime = viewer _time . viewer _time ;
}
} ) ;
pm . on ( "adplaying" , ( arg0 , viewer _time ) => {
let inPrerollPositionResult = self . inPrerollPosition ( ) ;
if ( inPrerollPositionResult ) {
2026-07-23 10:11:24 +00:00
inPrerollPositionResult = undefined === pm . data . view _preroll _load _time ;
2026-07-20 16:05:17 +00:00
}
if ( inPrerollPositionResult ) {
inPrerollPositionResult = undefined !== self . _prerollPlayTime ;
}
if ( inPrerollPositionResult ) {
2026-07-23 10:11:24 +00:00
pm . data . view _preroll _load _time = viewer _time . viewer _time - self . _prerollPlayTime ;
pm . data . view _startup _preroll _load _time = viewer _time . viewer _time - self . _prerollPlayTime ;
2026-07-20 16:05:17 +00:00
}
} ) ;
pm . on ( "adclicked" , ( arg0 , arg1 ) => {
if ( ! self . _wouldBeNewAdPlay ) {
2026-07-23 10:11:24 +00:00
outer2 _134 ( pm . data , "view_ad_clicked_count" ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
pm . on ( "adskipped" , ( arg0 , arg1 ) => {
if ( ! self . _wouldBeNewAdPlay ) {
2026-07-23 10:11:24 +00:00
outer2 _134 ( pm . data , "view_ad_skipped_count" ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
pm . on ( "adended" , ( ) => {
self . _wouldBeNewAdPlay = true ;
} ) ;
pm . on ( "aderror" , ( ) => {
self . _wouldBeNewAdPlay = true ;
} ) ;
} ;
let obj = {
key : "inPrerollPosition" ,
value ( ) {
let tmp = undefined === this . pm . data . view _content _playback _time ;
if ( ! tmp ) {
tmp = this . pm . data . view _content _playback _time <= 1000 ;
}
return tmp ;
}
} ;
const items = [ obj , , ] ;
obj = {
key : "findAdRequest" ,
value ( arg0 ) {
const self = this ;
let num = 0 ;
if ( 0 < this . _adRequests . length ) {
while ( self . _adRequests [ num ] . ad _request _id !== arg0 ) {
num = num + 1 ;
}
return self . _adRequests [ num ] ;
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_updateAdData" ,
value ( arg0 , ad _tag _url ) {
const self = this ;
if ( this . inPrerollPosition ( ) ) {
if ( ! self . pm . data . view _preroll _ad _tag _hostname ) {
if ( ad _tag _url . ad _tag _url ) {
2026-07-23 10:11:24 +00:00
[ self . pm . data . view _preroll _ad _tag _hostname , self . pm . data . view _preroll _ad _tag _domain ] = outer1 _121 ( outer1 _38 ( ad _tag _url . ad _tag _url ) , 2 ) ;
const tmp3 = outer1 _121 ( outer1 _38 ( ad _tag _url . ad _tag _url ) , 2 ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( ! self . pm . data . view _preroll _ad _asset _hostname ) {
if ( ad _tag _url . ad _asset _url ) {
2026-07-23 10:11:24 +00:00
[ self . pm . data . view _preroll _ad _asset _hostname , self . pm . data . view _preroll _ad _asset _domain ] = outer1 _121 ( outer1 _38 ( ad _tag _url . ad _asset _url ) , 2 ) ;
const tmp6 = outer1 _121 ( outer1 _38 ( ad _tag _url . ad _asset _url ) , 2 ) ;
2026-07-20 16:05:17 +00:00
}
}
self . pm . data . ad _type = "preroll" ;
}
let ad _asset _url ;
if ( null != ad _tag _url ) {
ad _asset _url = ad _tag _url . ad _asset _url ;
}
self . pm . data . ad _asset _url = ad _asset _url ;
ad _tag _url = undefined ;
if ( null != ad _tag _url ) {
ad _tag _url = ad _tag _url . ad _tag _url ;
}
self . pm . data . ad _tag _url = ad _tag _url ;
let ad _creative _id ;
if ( null != ad _tag _url ) {
ad _creative _id = ad _tag _url . ad _creative _id ;
}
self . pm . data . ad _creative _id = ad _creative _id ;
let ad _id ;
if ( null != ad _tag _url ) {
ad _id = ad _tag _url . ad _id ;
}
self . pm . data . ad _id = ad _id ;
let ad _universal _id ;
if ( null != ad _tag _url ) {
ad _universal _id = ad _tag _url . ad _universal _id ;
}
self . pm . data . ad _universal _id = ad _universal _id ;
if ( tmp12 ) {
let ad _type ;
if ( null != ad _tag _url ) {
ad _type = ad _tag _url . ad _type ;
}
self . pm . data . ad _type = ad _type ;
}
}
} ;
items [ 2 ] = obj ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let fn5 = function r ( one ) {
let closure _0 = one ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn5 ) ;
l ( this , "lastWallClockTime" , undefined ) ;
const fn = function i ( ) {
2026-07-23 10:11:24 +00:00
self . lastWallClockTime = outer1 _25 . now ( ) ;
one . on ( "before*" , a ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
function a ( arg0 ) {
const nowResult = outer1 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
const lastWallClockTime = self . lastWallClockTime ;
self . lastWallClockTime = nowResult ;
if ( nowResult - lastWallClockTime > 30000 ) {
let obj = { viewer _time : lastWallClockTime } ;
2026-07-23 10:11:24 +00:00
one . emit ( "devicesleep" , obj ) ;
2026-07-20 16:05:17 +00:00
const _Object = Object ;
obj = { viewer _time : lastWallClockTime } ;
2026-07-23 10:11:24 +00:00
const merged = Object . assign ( one . data , obj ) ;
one . send ( "devicesleep" ) ;
2026-07-20 16:05:17 +00:00
obj = { viewer _time : nowResult } ;
2026-07-23 10:11:24 +00:00
one . emit ( "devicewake" , obj ) ;
2026-07-20 16:05:17 +00:00
const _Object2 = Object ;
const obj1 = { viewer _time : nowResult } ;
2026-07-23 10:11:24 +00:00
const merged1 = Object . assign ( one . data , obj1 ) ;
one . send ( "devicewake" ) ;
2026-07-20 16:05:17 +00:00
}
}
one . one ( "playbackheartbeat" , fn ) ;
2026-07-23 10:11:24 +00:00
one . on ( "playbackheartbeatend" , ( ) => {
one . off ( "before*" , a ) ;
one . one ( "playbackheartbeat" , fn ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ;
let closure _66 = G ( BResult ( ) ) ;
2026-07-23 10:11:24 +00:00
let closure _67 = ( ( ) => {
let fn = function e ( arg0 ) {
let closure _0 = arg0 ;
const fn = function i ( arg0 , arg1 , arg2 ) {
2026-07-20 16:05:17 +00:00
let tmp2 = arg1 ;
if ( "undefined" !== typeof document ) {
if ( arguments . length > 1 ) {
let obj = { path : "/" } ;
2026-07-23 10:11:24 +00:00
const tmp35 = lib ( obj , fn . defaults , arg2 ) ;
2026-07-20 16:05:17 +00:00
if ( "number" === typeof tmp35 . expires ) {
const _Date = Date ;
const date = new Date ( ) ;
date . setMilliseconds ( date . getMilliseconds ( ) + 86400000 * tmp36 . expires ) ;
tmp36 . expires = date ;
}
const _JSON2 = JSON ;
const json = JSON . stringify ( tmp2 ) ;
if ( obj6 . test ( json ) ) {
tmp2 = json ;
}
while ( true ) {
2026-07-23 10:11:24 +00:00
let tmp45 = lib ;
if ( lib . write ) {
let tmp48 = lib ;
2026-07-20 16:05:17 +00:00
let tmp49 = tmp2 ;
2026-07-23 10:11:24 +00:00
let tmp50 = arg0 ;
let writeResult = lib . write ( tmp2 , arg0 ) ;
2026-07-20 16:05:17 +00:00
} else {
let _encodeURIComponent = encodeURIComponent ;
let _String = String ;
let tmp46 = tmp2 ;
let str10 = encodeURIComponent ( String ( tmp2 ) ) ;
let _decodeURIComponent3 = decodeURIComponent ;
writeResult = str10 . replace ( /%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g , decodeURIComponent ) ;
}
let tmp51 = writeResult ;
let _encodeURIComponent2 = encodeURIComponent ;
let _String2 = String ;
2026-07-23 10:11:24 +00:00
let tmp52 = arg0 ;
let str11 = encodeURIComponent ( String ( arg0 ) ) ;
2026-07-20 16:05:17 +00:00
let tmp53 = str11 ;
let _decodeURIComponent4 = decodeURIComponent ;
let str12 = str11 . replace ( /%(23|24|26|2B|5E|60|7C)/g , decodeURIComponent ) ;
let tmp54 = str12 ;
let _escape = escape ;
let replaced = str12 . replace ( /[\(\)]/g , escape ) ;
let tmp56 = replaced ;
let items = [ replaced , , , , , , ] ;
let str13 = "=" ;
items [ 1 ] = "=" ;
items [ 2 ] = writeResult ;
let tmp57 = tmp35 ;
let str14 = "" ;
let str15 = "" ;
if ( tmp36 . expires ) {
let tmp58 = tmp35 ;
let expires = tmp36 . expires ;
let str16 = "; expires=" ;
str15 = ` ; expires= ${ expires . toUTCString ( ) } ` ;
}
items [ 3 ] = str15 ;
let tmp59 = tmp35 ;
let str17 = "" ;
if ( tmp36 . path ) {
let tmp60 = tmp35 ;
let str18 = "; path=" ;
str17 = ` ; path= ${ tmp36 . path } ` ;
}
items [ 4 ] = str17 ;
let tmp61 = tmp35 ;
let str19 = "" ;
if ( tmp36 . domain ) {
let tmp62 = tmp35 ;
let str20 = "; domain=" ;
str19 = ` ; domain= ${ tmp36 . domain } ` ;
}
items [ 5 ] = str19 ;
let str21 = "" ;
if ( tmp35 . secure ) {
str21 = "; secure" ;
}
items [ 6 ] = str21 ;
let joined = items . join ( "" ) ;
document . cookie = joined ;
return joined ;
}
2026-07-23 10:11:24 +00:00
obj6 = /^[\{\[]/ ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
if ( ! arg0 ) {
2026-07-20 16:05:17 +00:00
obj = { } ;
}
const _document = document ;
if ( document . cookie ) {
const _document2 = document ;
let parts = document . cookie . split ( "; " ) ;
const str = document . cookie ;
} else {
parts = [ ] ;
}
const tmp3 = /(%[0-9A-Z]{2})+/g ;
let num3 = 0 ;
if ( 0 < parts . length ) {
while ( true ) {
let tmp4 = parts ;
let tmp5 = num3 ;
let str5 = arr2 [ num3 ] ;
let parts1 = str5 . split ( "=" ) ;
let tmp6 = parts1 ;
let substr = parts1 . slice ( 1 ) ;
let str6 = substr . join ( "=" ) ;
let substr1 = str6 ;
if ( "\"" === str6 . charAt ( 0 ) ) {
let tmp7 = substr1 ;
substr1 = substr1 . slice ( 1 , - 1 ) ;
}
let tmp8 = parts1 ;
let str7 = tmp6 [ 0 ] ;
let tmp9 = tmp3 ;
let _decodeURIComponent = decodeURIComponent ;
let replaced1 = str7 . replace ( tmp3 , decodeURIComponent ) ;
2026-07-23 10:11:24 +00:00
let tmp11 = lib ;
let obj3 = lib ;
if ( lib . read ) {
2026-07-20 16:05:17 +00:00
let tmp18 = substr1 ;
let tmp19 = replaced1 ;
let readResult = obj3 . read ( substr1 , replaced1 ) ;
} else {
let tmp12 = substr1 ;
let tmp13 = replaced1 ;
let obj3Result = obj3 ( substr1 , replaced1 ) ;
readResult = obj3Result ;
if ( ! obj3Result ) {
let tmp16 = substr1 ;
let tmp17 = tmp3 ;
let _decodeURIComponent2 = decodeURIComponent ;
readResult = substr1 . replace ( tmp3 , decodeURIComponent ) ;
}
}
let parsed = readResult ;
if ( tmp . json ) {
let _JSON = JSON ;
let tmp21 = parsed ;
parsed = JSON . parse ( parsed ) ;
}
while ( true ) {
2026-07-23 10:11:24 +00:00
let tmp22 = arg0 ;
2026-07-20 16:05:17 +00:00
let tmp23 = replaced1 ;
2026-07-23 10:11:24 +00:00
if ( arg0 === replaced1 ) {
2026-07-20 16:05:17 +00:00
obj = parsed ;
} else {
2026-07-23 10:11:24 +00:00
let tmp24 = arg0 ;
if ( ! arg0 ) {
2026-07-20 16:05:17 +00:00
let tmp25 = obj ;
let tmp26 = replaced1 ;
let tmp27 = parsed ;
obj [ replaced1 ] = parsed ;
}
do {
let tmp28 = num3 ;
2026-07-23 10:11:24 +00:00
sum = num3 + 1 ;
2026-07-20 16:05:17 +00:00
num3 = sum ;
let tmp30 = parts ;
} while ( sum >= arr2 . length ) ;
}
}
}
}
return obj ;
}
}
} ;
fn . set = fn ;
fn . get = ( arg0 ) => fn . call ( fn , arg0 ) ;
fn . getJSON = ( ) => {
const slice = [ ] . slice ;
return fn . apply ( { json : true } , slice . call ( arguments ) ) ;
} ;
fn . defaults = { } ;
2026-07-23 10:11:24 +00:00
fn . remove = ( prototype ) => {
fn ( prototype , "" , lib ( arg1 , { expires : - 1 } ) ) ;
2026-07-20 16:05:17 +00:00
} ;
fn . withConverter = fn ;
return fn ;
} ;
function r ( ) {
const obj = { } ;
for ( let num = 0 ; num < arguments . length ; num = num + 1 ) {
let tmp = arguments [ num ] ;
let tmp2 = tmp ;
for ( const key10008 in tmp ) {
let tmp3 = key10008 ;
obj [ key10008 ] = tmp [ key10008 ] ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
return obj ;
}
return fn ( ( ) => {
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
const muxData = "muxData" ;
2026-07-20 16:05:17 +00:00
function tr ( ) {
2026-07-23 10:11:24 +00:00
const value = store . get ( muxData ) ;
2026-07-20 16:05:17 +00:00
let str = value ;
if ( ! value ) {
str = "" ;
}
2026-07-23 10:11:24 +00:00
( function Oa ( str ) {
2026-07-20 16:05:17 +00:00
const parts = str . split ( "&" ) ;
return parts . reduce ( ( arg0 , str ) => {
2026-07-23 10:11:24 +00:00
const tmp = outer2 _121 ( str . split ( "=" ) , 2 ) ;
2026-07-20 16:05:17 +00:00
let tmp4 = tmp2 ;
if ( tmp [ 1 ] ) {
tmp4 = tmp2 ;
if ( tmp3 == tmp2 ) {
tmp4 = tmp3 ;
}
}
arg0 [ tmp [ 0 ] ] = tmp4 ;
return arg0 ;
} , { } ) ;
2026-07-23 10:11:24 +00:00
} ) ( str ) ;
2026-07-20 16:05:17 +00:00
}
function rr ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = store . set ( muxData , ( function Pa ( arg0 ) {
2026-07-20 16:05:17 +00:00
const entries = Object . entries ( arg0 ) ;
const mapped = entries . map ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
const tmp = outer2 _121 ( arg0 , 2 ) ;
2026-07-20 16:05:17 +00:00
const combined = "" . concat ( tmp [ 0 ] , "=" ) ;
return combined . concat ( tmp [ 1 ] ) ;
} ) ;
return mapped . join ( "&" ) ;
2026-07-23 10:11:24 +00:00
} ) ( arg0 ) , { expires : 365 } ) ;
2026-07-20 16:05:17 +00:00
}
let closure _71 = G ( BResult ( ) ) ;
function or ( ) {
const tmp = sr ( ) ;
let str = "cellular" ;
if ( "cellular" !== tmp ) {
str = "wired" ;
if ( "ethernet" !== tmp ) {
str = "wifi" ;
if ( "wifi" !== tmp ) {
if ( undefined !== tmp ) {
str = "other" ;
}
}
}
}
return str ;
}
function sr ( ) {
const _navigator = mod5 . default . navigator ;
let tmp = _navigator ;
if ( _navigator ) {
tmp = _navigator . connection || _navigator . mozConnection || _navigator . webkitConnection ;
const tmp2 = _navigator . connection || _navigator . mozConnection || _navigator . webkitConnection ;
}
let type = tmp ;
if ( tmp ) {
type = tmp . type ;
}
return type ;
}
or . getConnectionFromAPI = sr ;
2026-07-23 10:11:24 +00:00
let closure _74 = lr ( { a : "env" , b : "beacon" , c : "custom" , d : "ad" , e : "event" , f : "experiment" , i : "internal" , m : "mux" , n : "response" , p : "player" , q : "request" , r : "retry" , s : "session" , t : "timestamp" , u : "viewer" , v : "video" , w : "page" , x : "view" , y : "sub" } ) ;
let closure _75 = lr ( { ad : "ad" , af : "affiliate" , ag : "aggregate" , ap : "api" , al : "application" , ao : "audio" , ar : "architecture" , as : "asset" , au : "autoplay" , av : "average" , bi : "bitrate" , bn : "brand" , br : "break" , bw : "browser" , by : "bytes" , bz : "business" , ca : "cached" , cb : "cancel" , cc : "codec" , cd : "code" , cg : "category" , ch : "changed" , ci : "client" , ck : "clicked" , cl : "canceled" , cm : "cmcd" , cn : "config" , co : "count" , ce : "counter" , cp : "complete" , cq : "creator" , cr : "creative" , cs : "captions" , ct : "content" , cu : "current" , cv : "cumulative" , cx : "connection" , cz : "context" , da : "data" , dg : "downscaling" , dm : "domain" , dn : "cdn" , do : "downscale" , dr : "drm" , dp : "dropped" , du : "duration" , dv : "device" , dy : "dynamic" , eb : "enabled" , ec : "encoding" , ed : "edge" , en : "end" , eg : "engine" , em : "embed" , er : "error" , ep : "experiments" , es : "errorcode" , et : "errortext" , ee : "event" , ev : "events" , ex : "expires" , ez : "exception" , fa : "failed" , fi : "first" , fm : "family" , ft : "format" , fp : "fps" , fq : "frequency" , fr : "frame" , fs : "fullscreen" , ha : "has" , hb : "holdback" , he : "headers" , ho : "host" , hn : "hostname" , ht : "height" , id : "id" , ii : "init" , in : "instance" , ip : "ip" , is : "is" , ke : "key" , la : "language" , lb : "labeled" , le : "level" , li : "live" , ld : "loaded" , lo : "load" , ls : "lists" , lt : "latency" , ma : "max" , md : "media" , me : "message" , mf : "manifest" , mi : "mime" , ml : "midroll" , mm : "min" , mn : "manufacturer" , mo : "model" , mp : "mode" , ms : "ms" , mx : "mux" , ne : "newest" , nm : "name" , no : "number" , on : "on" , or : "origin" , os : "os" , pa : "paused" , pb : "playback" , pd : "producer" , pe : "percentage" , pf : "played" , pg : "program" , ph : "playhead" , pi : "plugin" , pl : "preroll" , pn : "playing" , po : "poster" , pp : "pip" , pr : "preload" , ps : "position" , pt : "part" , pv : "previous" , py : "property" , px : "pop" , pz : "plan" , ra : "rate" , rd : "requested" , re : "rebuffer" , rf : "rendition" , rg : "range" , rm : "remote" , ro : "ratio" , rp : "response" , rq : "request" , rs : "requests" , sa : "sample" , sd : "skipped" , se : "session" , sh : "shift" , sk : "seek" , sm : "stream" , so : "source" , sq : "sequence" , sr : "series" , ss : "status" , st : "start" , su : "startup" , sv : "server" , sw : "software" , sy : "severity" , ta : "tag" , tc : "tech" , te : "text" , tg : "target" , th : "throughput" , ti : "time" , tl : "total" , to : "to" , tt : "title" , ty : "type" , ug : "upscaling" , un : "universal" , up : "upscale" , ur : "url" , us : "user" , va : "variant" , vd : "viewed" , vi : "video" , ve : "version" , vw : "view" , vr : "viewer" , wd : "width" , wa : "watch" , wt : "waiting" } ) ;
2026-07-20 16:05:17 +00:00
let closure _76 = G ( BResult ( ) ) ;
2026-07-23 10:11:24 +00:00
let closure _77 = { maxBeaconSize : 300 , maxQueueLength : 3600 , baseTimeBetweenBeacons : 10000 , maxPayloadKBSize : 500 } ;
let closure _78 = [ "hb" , "requestcompleted" , "requestfailed" , "requestcanceled" ] ;
2026-07-20 16:05:17 +00:00
class $ {
constructor ( arg0 ) {
str = global ;
self = this ;
if ( arguments . length > 1 ) {
if ( undefined !== arguments [ 1 ] ) {
tmp = arguments [ 1 ] ;
}
if ( ! str ) {
str = "https://img.litix.io" ;
}
self . _beaconUrl = str ;
self . _eventQueue = [ ] ;
flag = false ;
self . _postInFlight = false ;
self . _resendAfterPost = false ;
num = 0 ;
self . _failureCount = 0 ;
self . _sendTimeout = false ;
tmp2 = globalThis ;
_Object = Object ;
tmp3 = lr ;
self . _options = Object . assign ( { } , lr , { } ) ;
return ;
}
return ;
}
queueEvent ( arg0 , arg1 ) {
self = this ;
tmp2 = this . _eventQueue . length <= this . _options . maxQueueLength ;
merged = Object . assign ( { } , require ) ;
if ( ! tmp2 ) {
str = "eventrateexceeded" ;
tmp3 = global ;
tmp2 = "eventrateexceeded" === global ;
}
if ( tmp2 ) {
_eventQueue = self . _eventQueue ;
arr = _eventQueue . push ( merged ) ;
if ( ! self . _sendTimeout ) {
_startBeaconSendingResult = self . _startBeaconSending ( ) ;
}
tmp2 = self . _eventQueue . length <= self . _options . maxQueueLength ;
}
return tmp2 ;
}
flushEvents ( ) {
self = this ;
if ( arguments . length > 0 ) {
if ( undefined !== arguments [ 0 ] ) {
if ( arguments [ 0 ] ) {
num = 1 ;
if ( 1 === self . _eventQueue . length ) {
_eventQueue = self . _eventQueue ;
arr = _eventQueue . pop ( ) ;
}
return ;
}
}
}
if ( self . _eventQueue . length ) {
_sendBeaconQueueResult = self . _sendBeaconQueue ( ) ;
}
_startBeaconSendingResult = self . _startBeaconSending ( ) ;
return ;
}
destroy ( ) {
self = this ;
tmp = arguments . length > 0 && undefined !== arguments [ 0 ] && arguments [ 0 ] ;
self . destroyed = true ;
if ( tmp ) {
_clearBeaconQueueResult = self . _clearBeaconQueue ( ) ;
} else {
flushEventsResult = self . flushEvents ( ) ;
}
_default = or . default ;
clearTimeoutResult = _default . clearTimeout ( self . _sendTimeout ) ;
return ;
}
_clearBeaconQueue ( ) {
self = this ;
num = 0 ;
if ( this . _eventQueue . length > this . _options . maxBeaconSize ) {
num = self . _eventQueue . length - self . _options . maxBeaconSize ;
}
_eventQueue = self . _eventQueue ;
substr = _eventQueue . slice ( num ) ;
if ( num > 0 ) {
tmp = globalThis ;
_Object = Object ;
num2 = 1 ;
tmp2 = me ;
obj = { } ;
str = "event queue truncated" ;
obj . mux _view _message = "event queue truncated" ;
merged = Object . assign ( substr [ substr . length - 1 ] , me ( obj ) ) ;
}
tmp4 = Mr ( self . _beaconUrl , self . _createPayload ( substr ) , true , ( ) => {
} ) ;
return ;
}
_sendBeaconQueue ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
self = this ;
2026-07-20 16:05:17 +00:00
if ( this . _postInFlight ) {
flag3 = true ;
self . _resendAfterPost = true ;
} else {
_eventQueue = self . _eventQueue ;
num = 0 ;
substr = require ( "module_0" ) ;
2026-07-23 10:11:24 +00:00
maxBeaconSize = substr ;
2026-07-20 16:05:17 +00:00
_eventQueue1 = self . _eventQueue ;
self . _eventQueue = _eventQueue1 . slice ( self . _options . maxBeaconSize ) ;
flag = true ;
self . _postInFlight = true ;
tmp3 = closure _25 ;
_createPayloadResult = self . _createPayload ( substr ) ;
2026-07-23 10:11:24 +00:00
now = closure _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
tmp4 = Mr ;
flag2 = false ;
tmp5 = Mr ( self . _beaconUrl , _createPayloadResult , false , ( arg0 , arg1 ) => {
if ( arg1 ) {
tmp . _eventQueue = substr . concat ( tmp . _eventQueue ) ;
tmp . _failureCount = tmp . _failureCount + 1 ;
2026-07-23 10:11:24 +00:00
outer1 _35 . info ( ` Error sending beacon: ${ arg1 } ` ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp . _failureCount = 0 ;
}
2026-07-23 10:11:24 +00:00
self . _roundTripTime = outer1 _25 . now ( ) - closure _2 ;
2026-07-20 16:05:17 +00:00
self . _postInFlight = false ;
if ( self . _resendAfterPost ) {
self . _resendAfterPost = false ;
if ( self . _eventQueue . length > 0 ) {
self . _sendBeaconQueue ( ) ;
}
}
} ) ;
}
return ;
}
_getNextBeaconTime ( ) {
self = this ;
if ( this . _failureCount ) {
tmp = globalThis ;
_Math = Math ;
num = 1 ;
num2 = 2 ;
_Math2 = Math ;
powResult = require ( "module_2" ) ;
return ( 1 + powResult * Math . random ( ) ) * self . _options . baseTimeBetweenBeacons ;
} else {
return self . _options . baseTimeBetweenBeacons ;
}
}
_startBeaconSending ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
self = this ;
2026-07-20 16:05:17 +00:00
_default = or . default ;
clearTimeoutResult = _default . clearTimeout ( this . _sendTimeout ) ;
if ( ! this . destroyed ) {
tmp2 = or ;
_default2 = or . default ;
self . _sendTimeout = _default2 . setTimeout ( ( ) => {
if ( self . _eventQueue . length ) {
self . _sendBeaconQueue ( ) ;
}
self . _startBeaconSending ( ) ;
} , self . _getNextBeaconTime ( ) ) ;
}
return ;
}
_createPayload ( arg0 ) {
2026-07-23 10:11:24 +00:00
closure _0 = global ;
self = this ;
2026-07-20 16:05:17 +00:00
obj = { transmission _timestamp : Math . round ( closure _25 . now ( ) ) } ;
defineProperty = obj ;
if ( this . _roundTripTime ) {
_Math = Math ;
obj . rtt _ms = Math . round ( this . _roundTripTime ) ;
}
fn = function o ( ) {
2026-07-23 10:11:24 +00:00
obj = { metadata : obj } ;
2026-07-20 16:05:17 +00:00
let tmp = found ;
if ( ! found ) {
2026-07-23 10:11:24 +00:00
tmp = closure _0 ;
2026-07-20 16:05:17 +00:00
}
obj . events = tmp ;
const json = JSON . stringify ( obj ) ;
let closure _5 = json . length / 1024 ;
} ;
fn2 = function s ( ) {
return closure _5 <= self . _options . maxPayloadKBSize ;
} ;
fnResult = fn ( ) ;
if ( ! fn2 ( ) ) {
2026-07-23 10:11:24 +00:00
tmp2 = c35 ;
2026-07-20 16:05:17 +00:00
tmp3 = getPrototypeOf ;
str = "Payload size is too big (" ;
str2 = " kb). Removing unnecessary events." ;
2026-07-23 10:11:24 +00:00
infoResult = c35 . info ( ` Payload size is too big ( ${ getPrototypeOf } kb). Removing unnecessary events. ` ) ;
found = global . filter ( ( arg0 ) => - 1 === outer1 _78 . indexOf ( arg0 . e ) ) ;
2026-07-24 07:16:23 +00:00
f108132 = found ;
2026-07-20 16:05:17 +00:00
fnResult1 = fn ( ) ;
arr = found ;
}
if ( ! fn2 ( ) ) {
2026-07-23 10:11:24 +00:00
tmp7 = c35 ;
2026-07-20 16:05:17 +00:00
tmp8 = getPrototypeOf ;
str3 = "Payload size still too big (" ;
str4 = " kb). Cropping fields.." ;
2026-07-23 10:11:24 +00:00
infoResult1 = c35 . info ( ` Payload size still too big ( ${ getPrototypeOf } kb). Cropping fields.. ` ) ;
2026-07-20 16:05:17 +00:00
item = arr . forEach ( ( obj ) => {
for ( const key10006 in arg0 ) {
let tmp2 = key10006 ;
let arr = arg0 [ key10006 ] ;
let tmp = "string" === typeof arr ;
if ( tmp ) {
tmp = arr . length > 51200 ;
}
if ( ! tmp ) {
continue ;
} else {
arg0 [ key10006 ] = arr . substring ( 0 , 51200 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
} ) ;
fnResult2 = fn ( ) ;
}
return getOwnPropertyDescriptor ;
}
}
2026-07-23 10:11:24 +00:00
let closure _79 = "function" === typeof G ( BResult1 ( ) ) . default . exitPictureInPicture ? ( ( arg0 ) => arg0 . length <= 57344 ) : ( ( arg0 ) => false ) ;
2026-07-20 16:05:17 +00:00
function Mr ( _beaconUrl , _createPayloadResult , arg2 , arg3 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg3 ;
2026-07-20 16:05:17 +00:00
if ( arg2 ) {
const _navigator = navigator ;
if ( navigator ) {
const _navigator2 = navigator ;
if ( navigator . sendBeacon ) {
const _navigator3 = navigator ;
if ( navigator . sendBeacon ( _beaconUrl , _createPayloadResult ) ) {
arg3 ( ) ;
}
}
}
}
if ( mod6 . default . fetch ) {
let obj = { method : "POST" , body : _createPayloadResult } ;
2026-07-23 10:11:24 +00:00
obj = { "Content-Type" : "text/plain" } ;
2026-07-20 16:05:17 +00:00
obj . headers = obj ;
2026-07-23 10:11:24 +00:00
obj . keepalive = callback14 ( _createPayloadResult ) ;
2026-07-20 16:05:17 +00:00
const response = _default . fetch ( _beaconUrl , obj ) ;
response . then ( ( ok ) => {
let tmp2 = "Error" ;
if ( ok . ok ) {
tmp2 = null ;
}
2026-07-23 10:11:24 +00:00
return closure _0 ( null , tmp2 ) ;
} ) . catch ( ( arg0 ) => callback ( null , arg0 ) ) ;
2026-07-20 16:05:17 +00:00
const nextPromise = response . then ( ( ok ) => {
let tmp2 = "Error" ;
if ( ok . ok ) {
tmp2 = null ;
}
2026-07-23 10:11:24 +00:00
return closure _0 ( null , tmp2 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} else if ( _default . XMLHttpRequest ) {
let _XMLHttpRequest = mod6 . default . XMLHttpRequest ;
const prototype = _XMLHttpRequest . prototype ;
_XMLHttpRequest = new _XMLHttpRequest ( ) ;
_XMLHttpRequest . onreadystatechange = ( ) => {
if ( 4 === _XMLHttpRequest . readyState ) {
let str ;
if ( 200 !== _XMLHttpRequest . status ) {
str = "error" ;
}
2026-07-23 10:11:24 +00:00
return closure _0 ( null , str ) ;
2026-07-20 16:05:17 +00:00
}
} ;
_XMLHttpRequest . open ( "POST" , _beaconUrl ) ;
_XMLHttpRequest . setRequestHeader ( "Content-Type" , "text/plain" ) ;
_XMLHttpRequest . send ( _createPayloadResult ) ;
} else {
arg3 ( ) ;
}
}
2026-07-23 10:11:24 +00:00
let closure _81 = $ ;
let closure _82 = [ "env_key" , "view_id" , "view_sequence_number" , "player_sequence_number" , "beacon_domain" , "player_playhead_time" , "viewer_time" , "mux_api_version" , "event" , "video_id" , "player_instance_id" , "player_error_code" , "player_error_message" , "player_error_context" , "player_error_severity" , "player_error_business_exception" , "view_playing_time_ms_cumulative" , "ad_playing_time_ms_cumulative" ] ;
let closure _83 = [ "adplay" , "adplaying" , "adpause" , "adfirstquartile" , "admidpoint" , "adthirdquartile" , "adended" , "adresponse" , "adrequest" ] ;
let closure _84 = [ "ad_id" , "ad_creative_id" , "ad_universal_id" ] ;
let closure _85 = [ "viewstart" , "error" , "ended" , "viewend" ] ;
let closure _86 = ( ( ) => {
2026-07-20 16:05:17 +00:00
const fn = function r ( mux , envKey ) {
let beaconCollectionDomain ;
let beaconDomain ;
let options ;
const self = this ;
if ( arguments . length > 2 ) {
2026-07-23 10:11:24 +00:00
outer1 _125 ( self , fn ) ;
outer1 _128 ( self , "mux" , undefined ) ;
outer1 _128 ( self , "envKey" , undefined ) ;
outer1 _128 ( self , "options" , undefined ) ;
outer1 _128 ( self , "eventQueue" , undefined ) ;
outer1 _128 ( self , "sampleRate" , undefined ) ;
outer1 _128 ( self , "disableCookies" , undefined ) ;
outer1 _128 ( self , "respectDoNotTrack" , undefined ) ;
outer1 _128 ( self , "previousBeaconData" , undefined ) ;
outer1 _128 ( self , "lastEventTime" , undefined ) ;
outer1 _128 ( self , "rateLimited" , undefined ) ;
outer1 _128 ( self , "pageLevelData" , undefined ) ;
outer1 _128 ( self , "viewerData" , undefined ) ;
2026-07-20 16:05:17 +00:00
self . mux = mux ;
self . envKey = envKey ;
self . options = { } ;
self . previousBeaconData = null ;
self . lastEventTime = 0 ;
self . rateLimited = false ;
2026-07-23 10:11:24 +00:00
let tmp21 = outer1 _81 ;
2026-07-20 16:05:17 +00:00
( { envKey , options } = self ) ;
( { beaconCollectionDomain , beaconDomain } = options ) ;
if ( beaconCollectionDomain ) {
let str13 = ` https:// ${ beaconCollectionDomain } ` ;
} else {
if ( ! beaconDomain ) {
beaconDomain = "litix.io" ;
}
if ( ! envKey ) {
envKey = "inferred" ;
}
str13 = "https://img.litix.io/a.gif" ;
if ( envKey . match ( /^[a-z0-9]+$/ ) ) {
str13 = ` https:// ${ envKey } . ${ beaconDomain } ` ;
}
}
const prototype = tmp21 . prototype ;
tmp21 = new tmp21 ( str13 ) ;
self . eventQueue = tmp21 ;
const sampleRate = self . options . sampleRate ;
let num3 = 1 ;
if ( null !== sampleRate ) {
num3 = 1 ;
if ( undefined !== sampleRate ) {
num3 = sampleRate ;
}
}
self . sampleRate = num3 ;
const disableCookies = self . options . disableCookies ;
self . disableCookies = null !== disableCookies && undefined !== disableCookies && disableCookies ;
const respectDoNotTrack = self . options . respectDoNotTrack ;
self . respectDoNotTrack = null !== respectDoNotTrack && undefined !== respectDoNotTrack && respectDoNotTrack ;
self . previousBeaconData = null ;
self . lastEventTime = 0 ;
self . rateLimited = false ;
let obj = { mux _api _version : self . mux . API _VERSION , mux _embed : self . mux . NAME , mux _embed _version : self . mux . VERSION } ;
const platform = self . options . platform ;
let name ;
if ( null !== platform ) {
if ( undefined !== platform ) {
name = platform . name ;
}
}
obj . viewer _application _name = name ;
const platform2 = self . options . platform ;
let version ;
if ( null !== platform2 ) {
if ( undefined !== platform2 ) {
version = platform2 . version ;
}
}
obj . viewer _application _version = version ;
const platform3 = self . options . platform ;
let layout ;
if ( null !== platform3 ) {
if ( undefined !== platform3 ) {
layout = platform3 . layout ;
}
}
obj . viewer _application _engine = layout ;
const platform4 = self . options . platform ;
let product ;
if ( null !== platform4 ) {
if ( undefined !== platform4 ) {
product = platform4 . product ;
}
}
obj . viewer _device _name = product ;
obj . viewer _device _category = "" ;
const platform5 = self . options . platform ;
let manufacturer ;
if ( null !== platform5 ) {
if ( undefined !== platform5 ) {
manufacturer = platform5 . manufacturer ;
}
}
obj . viewer _device _manufacturer = manufacturer ;
const platform6 = self . options . platform ;
let family ;
if ( null !== platform6 ) {
if ( undefined !== platform6 ) {
const os = platform6 . os ;
if ( null !== os ) {
if ( undefined !== os ) {
family = os . family ;
}
}
}
}
obj . viewer _os _family = family ;
const platform7 = self . options . platform ;
let architecture ;
if ( null !== platform7 ) {
if ( undefined !== platform7 ) {
const os2 = platform7 . os ;
if ( null !== os2 ) {
if ( undefined !== os2 ) {
architecture = os2 . architecture ;
}
}
}
}
obj . viewer _os _architecture = architecture ;
const platform8 = self . options . platform ;
let version1 ;
if ( null !== platform8 ) {
if ( undefined !== platform8 ) {
const os3 = platform8 . os ;
if ( null !== os3 ) {
if ( undefined !== os3 ) {
version1 = os3 . version ;
}
}
}
}
obj . viewer _os _version = version1 ;
2026-07-23 10:11:24 +00:00
obj . viewer _connection _type = outer1 _73 ( ) ;
2026-07-20 16:05:17 +00:00
let href ;
2026-07-23 10:11:24 +00:00
if ( null !== outer1 _66 . default ) {
if ( undefined !== outer1 _66 . default ) {
const _location = outer1 _66 . default . location ;
2026-07-20 16:05:17 +00:00
if ( null !== _location ) {
if ( undefined !== _location ) {
href = _location . href ;
}
}
}
}
obj . page _url = href ;
self . pageLevelData = obj ;
if ( self . disableCookies ) {
obj = { } ;
} else {
2026-07-23 10:11:24 +00:00
const tmp41 = outer1 _69 ( ) ;
2026-07-20 16:05:17 +00:00
let mux _viewer _id = tmp41 . mux _viewer _id ;
if ( ! mux _viewer _id ) {
2026-07-23 10:11:24 +00:00
mux _viewer _id = outer1 _26 ( ) ;
2026-07-20 16:05:17 +00:00
}
tmp41 . mux _viewer _id = mux _viewer _id ;
let msn = tmp41 . msn ;
if ( ! msn ) {
const _Math = Math ;
msn = Math . random ( ) ;
}
tmp41 . msn = msn ;
2026-07-23 10:11:24 +00:00
outer1 _70 ( tmp41 ) ;
2026-07-20 16:05:17 +00:00
obj = { } ;
( { mux _viewer _id : obj2 . mux _viewer _id , msn : obj2 . mux _sample _number } = tmp41 ) ;
}
self . viewerData = obj ;
}
} ;
let obj = {
key : "send" ,
value ( event , view _id ) {
const self = this ;
if ( event ) {
if ( null != view _id ) {
if ( view _id . view _id ) {
if ( self . respectDoNotTrack ) {
2026-07-23 10:11:24 +00:00
if ( outer1 _123 ( ) ) {
return outer1 _35 . info ( "Not sending `" + event + "` because Do Not Track is enabled" ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( view _id ) {
if ( "object" === typeof view _id ) {
if ( self . disableCookies ) {
let obj = { } ;
} else {
2026-07-23 10:11:24 +00:00
const tmp6 = outer1 _69 ( ) ;
const nowResult = outer1 _25 . now ( ) ;
if ( tmp6 . session _start ) {
tmp6 . sst = tmp6 . session _start ;
delete tmp . session _start ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp6 . session _id ) {
tmp6 . sid = tmp6 . session _id ;
delete tmp . session _id ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp6 . session _expires ) {
tmp6 . sex = tmp6 . session _expires ;
delete tmp . session _expires ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp9 ) {
tmp6 . sid = outer1 _26 ( ) ;
tmp6 . sst = nowResult ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp6 . sex = nowResult + 1500000 ;
outer1 _70 ( tmp6 ) ;
2026-07-20 16:05:17 +00:00
obj = { } ;
2026-07-23 10:11:24 +00:00
( { sid : obj . session _id , sst : obj . session _start , sex : obj . session _expires } = tmp6 ) ;
tmp9 = ! tmp6 . sex || tmp6 . sex < nowResult ;
2026-07-20 16:05:17 +00:00
}
obj = { } ;
2026-07-23 10:11:24 +00:00
outer1 _135 ( obj , self . pageLevelData , view _id , obj , self . viewerData ) ;
2026-07-20 16:05:17 +00:00
obj = { event , env _key : self . envKey } ;
2026-07-23 10:11:24 +00:00
outer1 _136 ( obj , obj ) ;
2026-07-20 16:05:17 +00:00
if ( obj . user _id ) {
obj . viewer _user _id = obj . user _id ;
2026-07-23 10:11:24 +00:00
delete tmp2 . user _id ;
2026-07-20 16:05:17 +00:00
}
const mux _sample _number = obj . mux _sample _number ;
let num3 = 0 ;
if ( null !== mux _sample _number ) {
num3 = 0 ;
if ( undefined !== mux _sample _number ) {
num3 = mux _sample _number ;
}
}
2026-07-23 10:11:24 +00:00
const tmp22 = outer1 _139 ( self . _deduplicateBeaconData ( event , obj ) ) ;
2026-07-20 16:05:17 +00:00
const utils = self . mux . utils ;
self . lastEventTime = utils . now ( ) ;
2026-07-23 10:11:24 +00:00
if ( tmp20 ) {
return outer1 _35 . info ( "Not sending event due to sample rate restriction" , event , obj , tmp22 ) ;
2026-07-20 16:05:17 +00:00
} else {
if ( ! self . envKey ) {
2026-07-23 10:11:24 +00:00
outer1 _35 . info ( "Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL" , event , obj , tmp22 ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! self . rateLimited ) {
2026-07-23 10:11:24 +00:00
outer1 _35 . info ( "Sending event" , event , obj , tmp22 ) ;
2026-07-20 16:05:17 +00:00
const eventQueue = self . eventQueue ;
2026-07-23 10:11:24 +00:00
self . rateLimited = ! eventQueue . queueEvent ( event , tmp22 ) ;
2026-07-20 16:05:17 +00:00
if ( self . mux . WINDOW _UNLOADING ) {
if ( "viewend" === event ) {
const eventQueue5 = self . eventQueue ;
eventQueue5 . destroy ( true ) ;
}
}
if ( self . mux . WINDOW _HIDDEN ) {
if ( "hb" === event ) {
const eventQueue3 = self . eventQueue ;
eventQueue3 . flushEvents ( true ) ;
}
if ( self . rateLimited ) {
obj . event = "eventrateexceeded" ;
const eventQueue4 = self . eventQueue ;
2026-07-23 10:11:24 +00:00
eventQueue4 . queueEvent ( obj . event , outer1 _139 ( obj ) ) ;
return outer1 _35 . error ( "Beaconing disabled due to rate limit." ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if ( outer1 _85 . indexOf ( event ) >= 0 ) {
2026-07-20 16:05:17 +00:00
const eventQueue2 = self . eventQueue ;
eventQueue2 . flushEvents ( ) ;
}
}
}
2026-07-23 10:11:24 +00:00
tmp20 = num3 >= self . sampleRate ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
return outer1 _35 . error ( "A data object was expected in send() but was not provided" ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
} ;
const items = [ obj , , , , ] ;
obj = {
key : "destroy" ,
value ( ) {
const eventQueue = this . eventQueue ;
eventQueue . destroy ( false ) ;
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_deduplicateBeaconData" ,
value ( arr , view _id ) {
let self = this ;
2026-07-23 10:11:24 +00:00
let closure _0 = arr ;
2026-07-20 16:05:17 +00:00
self = this ;
let obj = { } ;
view _id = view _id . view _id ;
if ( "-1" !== view _id ) {
if ( "viewstart" !== arr ) {
if ( "viewend" !== arr ) {
if ( self . previousBeaconData ) {
const utils = self . mux . utils ;
if ( utils . now ( ) - self . lastEventTime < 600000 ) {
let closure _3 = 0 === arr . indexOf ( "request" ) ;
const _Object = Object ;
const entries = Object . entries ( view _id ) ;
const item = entries . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
const tmp = outer2 _121 ( arg0 , 2 ) ;
2026-07-20 16:05:17 +00:00
const first = tmp [ 0 ] ;
let previousBeaconData = self . previousBeaconData ;
if ( previousBeaconData ) {
let eventRequiresKeyResult = tmp3 !== self . previousBeaconData [ first ] ;
if ( ! eventRequiresKeyResult ) {
2026-07-23 10:11:24 +00:00
eventRequiresKeyResult = outer2 _82 . indexOf ( first ) > - 1 ;
2026-07-20 16:05:17 +00:00
}
if ( ! eventRequiresKeyResult ) {
eventRequiresKeyResult = self . objectHasChanged ( closure _3 , first , tmp3 , self . previousBeaconData [ first ] ) ;
}
if ( ! eventRequiresKeyResult ) {
2026-07-23 10:11:24 +00:00
eventRequiresKeyResult = self . eventRequiresKey ( closure _0 , first ) ;
2026-07-20 16:05:17 +00:00
}
previousBeaconData = eventRequiresKeyResult ;
}
if ( previousBeaconData ) {
obj [ first ] = tmp3 ;
self . previousBeaconData [ first ] = tmp3 ;
}
} ) ;
}
return obj ;
}
}
}
}
obj = { } ;
2026-07-23 10:11:24 +00:00
outer1 _135 ( obj , view _id ) ;
2026-07-20 16:05:17 +00:00
if ( view _id ) {
self . previousBeaconData = obj ;
}
if ( view _id ) {
view _id = "viewend" === arr ;
}
if ( view _id ) {
self . previousBeaconData = null ;
}
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "objectHasChanged" ,
value ( arg0 , arr ) {
let obj = arg2 ;
obj = arg3 ;
let tmp = ! arg0 ;
if ( ! tmp ) {
tmp = 0 !== arr . indexOf ( "request_" ) ;
}
let tmp2 = ! tmp ;
if ( ! tmp ) {
let tmp3 = "request_response_headers" === arr ;
if ( ! tmp3 ) {
tmp3 = "object" !== typeof obj ;
}
if ( ! tmp3 ) {
tmp3 = "object" !== typeof obj ;
}
if ( ! tmp3 ) {
if ( ! obj ) {
obj = { } ;
}
if ( ! obj ) {
obj = { } ;
}
tmp3 = Object . keys ( obj ) . length !== Object . keys ( obj ) . length ;
}
tmp2 = tmp3 ;
}
return tmp2 ;
}
} ;
items [ 4 ] = {
key : "eventRequiresKey" ,
value ( arg0 , arr ) {
let tmp = "renditionchange" === arg0 ;
if ( tmp ) {
tmp = 0 === arr . indexOf ( "video_source_" ) ;
}
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
let hasItem = outer1 _84 . includes ( arr ) ;
2026-07-20 16:05:17 +00:00
if ( hasItem ) {
2026-07-23 10:11:24 +00:00
hasItem = outer1 _83 . includes ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
tmp = hasItem ;
}
return tmp ;
}
} ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let fn6 = function r ( on ) {
let closure _0 = on ;
2026-07-20 16:05:17 +00:00
D ( this , fn6 ) ;
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
let c2 = 0 ;
let c3 = 0 ;
let c4 = 0 ;
let c5 = 0 ;
let c6 = 0 ;
let c7 = 0 ;
2026-07-20 16:05:17 +00:00
on . on ( "requestcompleted" , function f ( arg0 , arg1 ) {
let request _bytes _loaded ;
let request _response _end ;
let request _response _start ;
let request _start ;
( { request _start , request _response _start , request _response _end , request _bytes _loaded } = arg1 ) ;
closure _4 = closure _4 + 1 ;
if ( request _response _start ) {
let num3 = 0 ;
if ( null != request _start ) {
num3 = request _start ;
}
let num4 = 0 ;
const diff = request _response _start - num3 ;
if ( null != request _response _end ) {
num4 = request _response _end ;
}
let diff1 = num4 - request _response _start ;
} else {
let num = 0 ;
if ( null != request _response _end ) {
num = request _response _end ;
}
let num2 = 0 ;
if ( null != request _start ) {
num2 = request _start ;
}
diff1 = num - num2 ;
}
if ( diff1 > 0 ) {
if ( request _bytes _loaded ) {
if ( request _bytes _loaded > 0 ) {
closure _5 = closure _5 + 1 ;
closure _2 = closure _2 + request _bytes _loaded ;
closure _3 = closure _3 + diff1 ;
2026-07-23 10:11:24 +00:00
let num5 = on . data . view _min _request _throughput ;
2026-07-20 16:05:17 +00:00
const result = request _bytes _loaded / diff1 * 8000 ;
if ( ! num5 ) {
num5 = Infinity ;
}
2026-07-23 10:11:24 +00:00
on . data . view _min _request _throughput = Math . min ( num5 , result ) ;
on . data . view _average _request _throughput = closure _2 / closure _3 * 8000 ;
on . data . view _request _count = closure _4 ;
2026-07-20 16:05:17 +00:00
if ( tmp2 > 0 ) {
closure _1 = closure _1 + tmp2 ;
2026-07-23 10:11:24 +00:00
let num6 = on . data . view _max _request _latency ;
2026-07-20 16:05:17 +00:00
if ( ! num6 ) {
num6 = 0 ;
}
2026-07-23 10:11:24 +00:00
on . data . view _max _request _latency = Math . max ( num6 , tmp2 ) ;
on . data . view _average _request _latency = closure _1 / closure _5 ;
2026-07-20 16:05:17 +00:00
}
}
}
}
} ) ;
on . on ( "requestfailed" , function g ( arg0 , arg1 ) {
closure _4 = closure _4 + 1 ;
closure _6 = closure _6 + 1 ;
2026-07-23 10:11:24 +00:00
on . data . view _request _count = closure _4 ;
on . data . view _request _failed _count = closure _6 ;
2026-07-20 16:05:17 +00:00
} ) ;
on . on ( "requestcanceled" , function k ( arg0 , arg1 ) {
closure _4 = closure _4 + 1 ;
closure _7 = closure _7 + 1 ;
2026-07-23 10:11:24 +00:00
on . data . view _request _count = closure _4 ;
on . data . view _request _canceled _count = closure _7 ;
2026-07-20 16:05:17 +00:00
} ) ;
} ;
2026-07-23 10:11:24 +00:00
let fn7 = function r ( on ) {
let closure _0 = on ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn7 ) ;
l ( this , "_lastEventTime" , undefined ) ;
on . on ( "before*" , ( type , viewer _time ) => {
viewer _time = viewer _time . viewer _time ;
2026-07-23 10:11:24 +00:00
const nowResult = outer1 _25 . now ( ) ;
2026-07-20 16:05:17 +00:00
const _lastEventTime = self . _lastEventTime ;
self . _lastEventTime = nowResult ;
if ( _lastEventTime ) {
if ( nowResult - _lastEventTime > 3600000 ) {
2026-07-23 10:11:24 +00:00
let _Object = Object ;
const keys = Object . keys ( on . data ) ;
const log = on . mux . log ;
2026-07-20 16:05:17 +00:00
const reduced = keys . reduce ( ( arg0 , arr ) => {
let merged = arg0 ;
if ( 0 === arr . indexOf ( "video_" ) ) {
const _Object = Object ;
const obj = { } ;
2026-07-23 10:11:24 +00:00
outer2 _128 ( obj , arr , outer1 _0 . data [ arr ] ) ;
2026-07-20 16:05:17 +00:00
merged = Object . assign ( arg0 , obj ) ;
}
return merged ;
} , { } ) ;
log . info ( "Received event after at least an hour inactivity, creating a new view" ) ;
const _Object2 = Object ;
let obj = { viewer _time } ;
2026-07-23 10:11:24 +00:00
on . _resetView ( Object . assign ( obj , reduced ) ) ;
on . playbackHeartbeat . _playheadShouldBeProgressing = on . playbackHeartbeat . _playheadShouldBeProgressing ;
let _playheadShouldBeProgressing = on . playbackHeartbeat . _playheadShouldBeProgressing ;
2026-07-20 16:05:17 +00:00
if ( _playheadShouldBeProgressing ) {
_playheadShouldBeProgressing = "play" !== type . type ;
}
if ( _playheadShouldBeProgressing ) {
_playheadShouldBeProgressing = "adbreakstart" !== type . type ;
}
if ( _playheadShouldBeProgressing ) {
obj = { viewer _time } ;
2026-07-23 10:11:24 +00:00
on . emit ( "play" , obj ) ;
2026-07-20 16:05:17 +00:00
if ( "playing" !== type . type ) {
obj = { viewer _time } ;
2026-07-23 10:11:24 +00:00
on . emit ( "playing" , obj ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
} ) ;
} ;
2026-07-23 10:11:24 +00:00
let fn8 = function r ( on ) {
let closure _0 = on ;
2026-07-20 16:05:17 +00:00
D ( this , fn8 ) ;
function t ( request _type ) {
if ( null != request _type ) {
if ( request _type . request _type ) {
if ( "media" === request _type . request _type ) {
const request _response _headers = request _type . request _response _headers ;
if ( null !== request _response _headers ) {
if ( undefined !== request _response _headers ) {
2026-07-23 10:11:24 +00:00
if ( request _response _headers [ "x-cdn" ] ) {
let prop = request _type . request _response _headers [ "x-cdn" ] ;
2026-07-20 16:05:17 +00:00
}
if ( null != request _type ) {
if ( request _type . request _start ) {
let viewer _time = request _type . request _start ;
}
if ( null != prop ) {
2026-07-23 10:11:24 +00:00
if ( ! outer1 _140 ( prop , prop ) ) {
if ( viewer _time <= viewer _time ) {
2026-07-20 16:05:17 +00:00
const obj = { video _cdn : prop } ;
2026-07-23 10:11:24 +00:00
on . emit ( "cdnchange" , obj ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
if ( null != request _type ) {
if ( request _type . viewer _time ) {
viewer _time = request _type . viewer _time ;
}
}
const _Date = Date ;
viewer _time = Date . now ( ) ;
}
}
}
}
}
prop = null ;
if ( null != request _type ) {
prop = null ;
if ( request _type . video _cdn ) {
prop = request _type . video _cdn ;
}
}
}
2026-07-23 10:11:24 +00:00
let c2 = null ;
let c3 = null ;
let c4 = null ;
let c5 = 0 ;
2026-07-20 16:05:17 +00:00
on . on ( "viewinit" , ( ) => {
2026-07-23 10:11:24 +00:00
let c2 = null ;
let c3 = null ;
let c4 = null ;
let c5 = 0 ;
2026-07-20 16:05:17 +00:00
} ) ;
on . on ( "beforecdnchange" , ( arg0 , video _cdn ) => {
video _cdn = undefined ;
if ( null != video _cdn ) {
video _cdn = video _cdn . video _cdn ;
}
let tmp2 = video _cdn ;
if ( video _cdn ) {
tmp2 = undefined === video _cdn . video _previous _cdn || null === video _cdn . video _previous _cdn ;
const tmp3 = undefined === video _cdn . video _previous _cdn || null === video _cdn . video _previous _cdn ;
}
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
if ( outer1 _140 ( video _cdn , video _cdn ) ) {
2026-07-20 16:05:17 +00:00
let tmp10 ;
if ( null != closure _2 ) {
tmp10 = closure _2 ;
}
video _cdn . video _previous _cdn = tmp10 ;
} else {
let tmp7 ;
2026-07-23 10:11:24 +00:00
if ( null != video _cdn ) {
tmp7 = video _cdn ;
2026-07-20 16:05:17 +00:00
}
video _cdn . video _previous _cdn = tmp7 ;
2026-07-23 10:11:24 +00:00
closure _2 = video _cdn ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
on . on ( "requestcompleted" , ( arg0 , arg1 ) => {
t ( arg1 ) ;
} ) ;
} ;
const fn9 = function r ( on ) {
2026-07-23 10:11:24 +00:00
let closure _0 = on ;
const self = this ;
2026-07-20 16:05:17 +00:00
D ( this , fn9 ) ;
l ( this , "_emittingAutomaticEvent" , false ) ;
l ( this , "_hasInitialized" , false ) ;
on . on ( "viewstart" , ( ) => {
if ( ! self . _hasInitialized ) {
self . _hasInitialized = true ;
self . _emittingAutomaticEvent = true ;
2026-07-23 10:11:24 +00:00
on . emit ( "playbackmodechange" , { player _playback _mode : "standard" , player _playback _mode _data : "{}" } ) ;
2026-07-20 16:05:17 +00:00
self . _emittingAutomaticEvent = false ;
}
} ) ;
on . on ( "viewend" , ( ) => {
self . _hasInitialized = false ;
} ) ;
on . on ( "playbackmodechange" , ( arg0 , arg1 ) => {
let player _playback _mode ;
player _playback _mode = arg1 ;
if ( ! self . _emittingAutomaticEvent ) {
if ( player _playback _mode . player _playback _mode _data ) {
const player _playback _mode _data = player _playback _mode . player _playback _mode _data ;
const _JSON = JSON ;
const parsed = JSON . parse ( player _playback _mode _data ) ;
while ( true ) {
break ;
break ;
}
} else {
player _playback _mode . player _playback _mode _data = "{}" ;
}
( { player _playback _mode _data : closure _0 . data . player _playback _mode _data , player _playback _mode } = player _playback _mode ) ;
2026-07-23 10:11:24 +00:00
on . data . player _playback _mode = player _playback _mode ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ;
2026-07-23 10:11:24 +00:00
let closure _91 = [ "viewstart" , "ended" , "loadstart" , "pause" , "play" , "playing" , "ratechange" , "waiting" , "adplay" , "adpause" , "adended" , "aderror" , "adplaying" , "adrequest" , "adresponse" , "adbreakstart" , "adbreakend" , "adfirstquartile" , "admidpoint" , "adthirdquartile" , "rebufferstart" , "rebufferend" , "seeked" , "error" , "hb" , "requestcompleted" , "requestfailed" , "requestcanceled" , "renditionchange" , "cdnchange" , "playbackmodechange" ] ;
const set = new Set ( [ "requestcompleted" , "requestfailed" , "requestcanceled" ] ) ;
let closure _93 = ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
class t {
constructor ( arg0 , arg1 , arg2 ) {
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _125 ( this , bind ) ;
callResult = call . call ( this ) ;
call = callResult ;
tmp3 = outer1 _124 ( callResult ) ;
tmp4 = outer1 _128 ( callResult , "pageLoadEndTime" , undefined ) ;
tmp5 = outer1 _124 ( callResult ) ;
tmp6 = outer1 _128 ( callResult , "pageLoadInitTime" , undefined ) ;
tmp7 = outer1 _124 ( callResult ) ;
tmp8 = outer1 _128 ( callResult , "_destroyed" , undefined ) ;
tmp9 = outer1 _124 ( callResult ) ;
tmp10 = outer1 _128 ( callResult , "_heartBeatTimeout" , undefined ) ;
tmp11 = outer1 _124 ( callResult ) ;
tmp12 = outer1 _128 ( callResult , "adTracker" , undefined ) ;
tmp13 = outer1 _124 ( callResult ) ;
tmp14 = outer1 _128 ( callResult , "dashjs" , undefined ) ;
tmp15 = outer1 _124 ( callResult ) ;
tmp16 = outer1 _128 ( callResult , "data" , undefined ) ;
tmp17 = outer1 _124 ( callResult ) ;
tmp18 = outer1 _128 ( callResult , "disablePlayheadRebufferTracking" , undefined ) ;
tmp19 = outer1 _124 ( callResult ) ;
tmp20 = outer1 _128 ( callResult , "disableRebufferTracking" , undefined ) ;
tmp21 = outer1 _124 ( callResult ) ;
tmp22 = outer1 _128 ( callResult , "errorTracker" , undefined ) ;
tmp23 = outer1 _124 ( callResult ) ;
tmp24 = outer1 _128 ( callResult , "errorTranslator" , undefined ) ;
tmp25 = outer1 _124 ( callResult ) ;
tmp26 = outer1 _128 ( callResult , "emitTranslator" , undefined ) ;
tmp27 = outer1 _124 ( callResult ) ;
tmp28 = outer1 _128 ( callResult , "getAdData" , undefined ) ;
tmp29 = outer1 _124 ( callResult ) ;
tmp30 = outer1 _128 ( callResult , "getPlayheadTime" , undefined ) ;
tmp31 = outer1 _124 ( callResult ) ;
tmp32 = outer1 _128 ( callResult , "getStateData" , undefined ) ;
tmp33 = outer1 _124 ( callResult ) ;
tmp34 = outer1 _128 ( callResult , "stateDataTranslator" , undefined ) ;
tmp35 = outer1 _124 ( callResult ) ;
tmp36 = outer1 _128 ( callResult , "hlsjs" , undefined ) ;
tmp37 = outer1 _124 ( callResult ) ;
tmp38 = outer1 _128 ( callResult , "id" , undefined ) ;
tmp39 = outer1 _124 ( callResult ) ;
tmp40 = outer1 _128 ( callResult , "longResumeTracker" , undefined ) ;
tmp41 = outer1 _124 ( callResult ) ;
tmp42 = outer1 _128 ( callResult , "minimumRebufferDuration" , undefined ) ;
tmp43 = outer1 _124 ( callResult ) ;
tmp44 = outer1 _128 ( callResult , "mux" , undefined ) ;
tmp45 = outer1 _124 ( callResult ) ;
tmp46 = outer1 _128 ( callResult , "playbackEventDispatcher" , undefined ) ;
tmp47 = outer1 _124 ( callResult ) ;
tmp48 = outer1 _128 ( callResult , "playbackHeartbeat" , undefined ) ;
tmp49 = outer1 _124 ( callResult ) ;
tmp50 = outer1 _128 ( callResult , "playbackHeartbeatTime" , undefined ) ;
tmp51 = outer1 _124 ( callResult ) ;
tmp52 = outer1 _128 ( callResult , "playheadTime" , undefined ) ;
tmp53 = outer1 _124 ( callResult ) ;
tmp54 = outer1 _128 ( callResult , "seekingTracker" , undefined ) ;
tmp55 = outer1 _124 ( callResult ) ;
tmp56 = outer1 _128 ( callResult , "sustainedRebufferThreshold" , undefined ) ;
tmp57 = outer1 _124 ( callResult ) ;
tmp58 = outer1 _128 ( callResult , "watchTimeTracker" , undefined ) ;
tmp59 = outer1 _124 ( callResult ) ;
tmp60 = outer1 _128 ( callResult , "currentFragmentPDT" , undefined ) ;
tmp61 = outer1 _124 ( callResult ) ;
tmp62 = outer1 _128 ( callResult , "currentFragmentStart" , undefined ) ;
callResult . pageLoadInitTime = outer1 _40 . navigationStart ( ) ;
callResult . pageLoadEndTime = outer1 _40 . domContentLoadedEventEnd ( ) ;
obj = { debug : false , minimumRebufferDuration : 250 , sustainedRebufferThreshold : 1000 , playbackHeartbeatTime : 25 , beaconDomain : "litix.io" , sampleRate : 1 , disableCookies : false , respectDoNotTrack : false , disableRebufferTracking : false , disablePlayheadRebufferTracking : false } ;
obj . errorTranslator = function errorTranslator ( arg0 ) {
return arg0 ;
} ;
obj . emitTranslator = function emitTranslator ( arg0 , merged ) {
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
return array ;
} ;
obj . stateDataTranslator = function stateDataTranslator ( stateData ) {
return stateData ;
2026-07-20 16:05:17 +00:00
} ;
callResult . mux = arg0 ;
callResult . id = arg1 ;
2026-07-23 10:11:24 +00:00
tmp63 = null != arg2 && arg2 . beaconDomain ;
if ( tmp63 ) {
2026-07-20 16:05:17 +00:00
log = callResult . mux . log ;
str = "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ;
warnResult = log . warn ( "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ) ;
}
merged = Object . assign ( obj , arg2 ) ;
merged . data = merged . data || { } ;
if ( merged . data . property _key ) {
merged . data . env _key = merged . data . property _key ;
data = merged . data ;
2026-07-23 10:11:24 +00:00
delete tmp . property _key ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _35 . level = merged . debug ? outer1 _31 : outer1 _33 ;
2026-07-20 16:05:17 +00:00
callResult . getPlayheadTime = merged . getPlayheadTime ;
2026-07-23 10:11:24 +00:00
callResult . getStateData = merged . getStateData || ( ( ) => ( { } ) ) ;
callResult . getAdData = merged . getAdData || ( ( ) => {
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
} ) ;
2026-07-20 16:05:17 +00:00
( { minimumRebufferDuration : obj . minimumRebufferDuration , sustainedRebufferThreshold : obj . sustainedRebufferThreshold , playbackHeartbeatTime : obj . playbackHeartbeatTime , disableRebufferTracking : obj . disableRebufferTracking } = merged ) ;
if ( callResult . disableRebufferTracking ) {
log2 = callResult . mux . log ;
str2 = "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ;
warnResult1 = log2 . warn ( "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ) ;
}
( { disablePlayheadRebufferTracking : obj . disablePlayheadRebufferTracking , errorTranslator : obj . errorTranslator , emitTranslator : obj . emitTranslator , stateDataTranslator : obj . stateDataTranslator } = merged ) ;
2026-07-23 10:11:24 +00:00
tmp67 = new outer1 _86 ( arg0 , merged . data . env _key , merged ) ;
callResult . playbackEventDispatcher = tmp67 ;
obj1 = { player _instance _id : outer1 _26 ( ) , mux _sample _rate : merged . sampleRate , beacon _domain : tmp68 } ;
tmp68 = merged . beaconCollectionDomain || merged . beaconDomain ;
2026-07-20 16:05:17 +00:00
callResult . data = obj1 ;
callResult . data . view _sequence _number = 1 ;
callResult . data . player _sequence _number = 1 ;
fn = function ( ) {
const self = this ;
if ( undefined === this . data . view _start ) {
const utils = self . mux . utils ;
self . data . view _start = utils . now ( ) ;
self . emit ( "viewstart" ) ;
}
} ;
2026-07-23 10:11:24 +00:00
tmp69 = outer1 _124 ( callResult ) ;
bind = fn . bind ( callResult ) ;
2026-07-20 16:05:17 +00:00
onResult = callResult . on ( "viewinit" , function ( arg0 , arg1 ) {
this . _resetVideoData ( ) ;
this . _resetViewData ( ) ;
this . _resetErrorData ( ) ;
this . _updateStateData ( ) ;
const merged = Object . assign ( this . data , arg1 ) ;
this . _initializeViewData ( ) ;
this . one ( "play" , closure _1 ) ;
this . one ( "adbreakstart" , closure _1 ) ;
} ) ;
onResult1 = callResult . on ( "videochange" , function ( arg0 , arg1 ) {
this . _resetView ( arg1 ) ;
} ) ;
onResult2 = callResult . on ( "programchange" , function ( arg0 , arg1 ) {
const self = this ;
if ( this . data . player _is _paused ) {
const log = self . mux . log ;
log . warn ( "The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information." ) ;
}
self . _resetView ( Object . assign ( arg1 , { view _program _changed : true } ) ) ;
callback ( ) ;
self . emit ( "play" ) ;
self . emit ( "playing" ) ;
} ) ;
onResult3 = callResult . on ( "fragmentchange" , ( arg0 , arg1 ) => {
( { currentFragmentPDT : this . currentFragmentPDT , currentFragmentStart : this . currentFragmentStart } = arg1 ) ;
} ) ;
onResult4 = callResult . on ( "destroy" , callResult . destroy ) ;
if ( "undefined" !== typeof window ) {
_window4 = window ;
str5 = "function" ;
if ( "function" === typeof window . addEventListener ) {
_window = window ;
if ( "function" === typeof window . removeEventListener ) {
fn2 = function f ( ) {
let WINDOW _HIDDEN = undefined !== callResult . data . view _start ;
callResult . mux . WINDOW _HIDDEN = "hidden" === document . visibilityState ;
if ( WINDOW _HIDDEN ) {
WINDOW _HIDDEN = callResult . mux . WINDOW _HIDDEN ;
}
if ( WINDOW _HIDDEN ) {
if ( ! callResult . data . player _is _paused ) {
callResult . emit ( "hb" ) ;
}
}
} ;
f = fn2 ;
_window2 = window ;
str3 = "visibilitychange" ;
listener = window . addEventListener ( "visibilitychange" , fn2 , false ) ;
fn3 = function g ( persisted ) {
if ( ! persisted . persisted ) {
callResult . destroy ( ) ;
}
} ;
g = fn3 ;
_window3 = window ;
str4 = "pagehide" ;
listener1 = window . addEventListener ( "pagehide" , fn3 , false ) ;
onResult5 = callResult . on ( "destroy" , ( ) => {
const removed = window . removeEventListener ( "visibilitychange" , fn2 ) ;
const removed1 = window . removeEventListener ( "pagehide" , fn3 ) ;
} ) ;
}
}
}
onResult6 = callResult . on ( "playerready" , function ( arg0 , arg1 ) {
const merged = Object . assign ( this . data , arg1 ) ;
} ) ;
2026-07-23 10:11:24 +00:00
item = outer1 _91 . forEach ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
arg0 . on ( arg0 , function ( arg0 , arg1 ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( 0 !== closure _0 . indexOf ( "ad" ) ) {
2026-07-20 16:05:17 +00:00
self . _updateStateData ( ) ;
}
const merged = Object . assign ( self . data , arg1 ) ;
self . _sanitizeData ( ) ;
} ) ;
arg0 . on ( ` after ${ arg0 } ` , function ( ) {
const self = this ;
if ( tmp ) {
2026-07-23 10:11:24 +00:00
self . send ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ) ;
onResult7 = callResult . on ( "viewend" , ( arg0 , arg1 ) => {
const merged = Object . assign ( callResult . data , arg1 ) ;
} ) ;
oneResult = callResult . one ( "playerready" , function k ( arg0 ) {
const self = this ;
if ( this . data . player _init _time ) {
2026-07-23 10:11:24 +00:00
self . data . player _startup _time = tmp3 - self . data . player _init _time ;
2026-07-20 16:05:17 +00:00
}
self . pageLoadInitTime = self . data . page _load _init _time || self . pageLoadInitTime ;
self . pageLoadEndTime = self . data . page _load _end _time || self . pageLoadEndTime ;
2026-07-23 10:11:24 +00:00
if ( tmp4 ) {
2026-07-20 16:05:17 +00:00
self . mux . PLAYER _TRACKED = true ;
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
let num = self . data . player _init _time ;
if ( ! num ) {
num = Infinity ;
}
self . data . page _load _time = Math . min ( num , self . pageLoadEndTime || Infinity ) - self . pageLoadInitTime ;
2026-07-23 10:11:24 +00:00
const tmp7 = self . pageLoadEndTime || Infinity ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp5 = self . data . player _init _time || self . pageLoadEndTime ;
2026-07-20 16:05:17 +00:00
}
self . send ( "playerready" ) ;
2026-07-23 10:11:24 +00:00
delete tmp2 . player _startup _time ;
delete tmp . page _load _time ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
tmp82 = outer1 _124 ( callResult ) ;
tmp83 = new outer1 _88 ( callResult ) ;
callResult . longResumeTracker = tmp83 ;
tmp84 = outer1 _124 ( callResult ) ;
tmp85 = new outer1 _52 ( callResult ) ;
callResult . errorTracker = tmp85 ;
tmp86 = outer1 _124 ( callResult ) ;
tmp87 = new outer1 _65 ( callResult ) ;
tmp88 = outer1 _124 ( callResult ) ;
tmp89 = new outer1 _61 ( callResult ) ;
callResult . seekingTracker = tmp89 ;
tmp90 = outer1 _124 ( callResult ) ;
tmp91 = new outer1 _55 ( callResult ) ;
callResult . playheadTime = tmp91 ;
tmp92 = outer1 _124 ( callResult ) ;
tmp93 = new outer1 _51 ( callResult ) ;
callResult . playbackHeartbeat = tmp93 ;
tmp94 = outer1 _124 ( callResult ) ;
tmp95 = new outer1 _60 ( callResult ) ;
tmp96 = outer1 _124 ( callResult ) ;
tmp97 = new outer1 _53 ( callResult ) ;
callResult . watchTimeTracker = tmp97 ;
tmp98 = outer1 _124 ( callResult ) ;
tmp99 = new outer1 _54 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _64 ( callResult ) ;
2026-07-20 16:05:17 +00:00
callResult . adTracker = addHLSJSResult ;
2026-07-23 10:11:24 +00:00
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _58 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _57 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _59 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _87 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _89 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _90 ( callResult ) ;
2026-07-20 16:05:17 +00:00
if ( merged . hlsjs ) {
addHLSJSResult = callResult . addHLSJS ( merged ) ;
}
if ( merged . dashjs ) {
addHLSJSResult = callResult . addDashJS ( merged ) ;
}
addHLSJSResult = callResult . emit ( "viewinit" , merged . data ) ;
return callResult ;
}
}
2026-07-23 10:11:24 +00:00
let closure _1 = t ;
2026-07-20 16:05:17 +00:00
if ( "function" !== typeof arg0 ) {
class t {
constructor ( arg0 , arg1 , arg2 ) {
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _125 ( this , bind ) ;
callResult = call . call ( this ) ;
call = callResult ;
tmp3 = outer1 _124 ( callResult ) ;
tmp4 = outer1 _128 ( callResult , "pageLoadEndTime" , undefined ) ;
tmp5 = outer1 _124 ( callResult ) ;
tmp6 = outer1 _128 ( callResult , "pageLoadInitTime" , undefined ) ;
tmp7 = outer1 _124 ( callResult ) ;
tmp8 = outer1 _128 ( callResult , "_destroyed" , undefined ) ;
tmp9 = outer1 _124 ( callResult ) ;
tmp10 = outer1 _128 ( callResult , "_heartBeatTimeout" , undefined ) ;
tmp11 = outer1 _124 ( callResult ) ;
tmp12 = outer1 _128 ( callResult , "adTracker" , undefined ) ;
tmp13 = outer1 _124 ( callResult ) ;
tmp14 = outer1 _128 ( callResult , "dashjs" , undefined ) ;
tmp15 = outer1 _124 ( callResult ) ;
tmp16 = outer1 _128 ( callResult , "data" , undefined ) ;
tmp17 = outer1 _124 ( callResult ) ;
tmp18 = outer1 _128 ( callResult , "disablePlayheadRebufferTracking" , undefined ) ;
tmp19 = outer1 _124 ( callResult ) ;
tmp20 = outer1 _128 ( callResult , "disableRebufferTracking" , undefined ) ;
tmp21 = outer1 _124 ( callResult ) ;
tmp22 = outer1 _128 ( callResult , "errorTracker" , undefined ) ;
tmp23 = outer1 _124 ( callResult ) ;
tmp24 = outer1 _128 ( callResult , "errorTranslator" , undefined ) ;
tmp25 = outer1 _124 ( callResult ) ;
tmp26 = outer1 _128 ( callResult , "emitTranslator" , undefined ) ;
tmp27 = outer1 _124 ( callResult ) ;
tmp28 = outer1 _128 ( callResult , "getAdData" , undefined ) ;
tmp29 = outer1 _124 ( callResult ) ;
tmp30 = outer1 _128 ( callResult , "getPlayheadTime" , undefined ) ;
tmp31 = outer1 _124 ( callResult ) ;
tmp32 = outer1 _128 ( callResult , "getStateData" , undefined ) ;
tmp33 = outer1 _124 ( callResult ) ;
tmp34 = outer1 _128 ( callResult , "stateDataTranslator" , undefined ) ;
tmp35 = outer1 _124 ( callResult ) ;
tmp36 = outer1 _128 ( callResult , "hlsjs" , undefined ) ;
tmp37 = outer1 _124 ( callResult ) ;
tmp38 = outer1 _128 ( callResult , "id" , undefined ) ;
tmp39 = outer1 _124 ( callResult ) ;
tmp40 = outer1 _128 ( callResult , "longResumeTracker" , undefined ) ;
tmp41 = outer1 _124 ( callResult ) ;
tmp42 = outer1 _128 ( callResult , "minimumRebufferDuration" , undefined ) ;
tmp43 = outer1 _124 ( callResult ) ;
tmp44 = outer1 _128 ( callResult , "mux" , undefined ) ;
tmp45 = outer1 _124 ( callResult ) ;
tmp46 = outer1 _128 ( callResult , "playbackEventDispatcher" , undefined ) ;
tmp47 = outer1 _124 ( callResult ) ;
tmp48 = outer1 _128 ( callResult , "playbackHeartbeat" , undefined ) ;
tmp49 = outer1 _124 ( callResult ) ;
tmp50 = outer1 _128 ( callResult , "playbackHeartbeatTime" , undefined ) ;
tmp51 = outer1 _124 ( callResult ) ;
tmp52 = outer1 _128 ( callResult , "playheadTime" , undefined ) ;
tmp53 = outer1 _124 ( callResult ) ;
tmp54 = outer1 _128 ( callResult , "seekingTracker" , undefined ) ;
tmp55 = outer1 _124 ( callResult ) ;
tmp56 = outer1 _128 ( callResult , "sustainedRebufferThreshold" , undefined ) ;
tmp57 = outer1 _124 ( callResult ) ;
tmp58 = outer1 _128 ( callResult , "watchTimeTracker" , undefined ) ;
tmp59 = outer1 _124 ( callResult ) ;
tmp60 = outer1 _128 ( callResult , "currentFragmentPDT" , undefined ) ;
tmp61 = outer1 _124 ( callResult ) ;
tmp62 = outer1 _128 ( callResult , "currentFragmentStart" , undefined ) ;
callResult . pageLoadInitTime = outer1 _40 . navigationStart ( ) ;
callResult . pageLoadEndTime = outer1 _40 . domContentLoadedEventEnd ( ) ;
obj = { debug : false , minimumRebufferDuration : 250 , sustainedRebufferThreshold : 1000 , playbackHeartbeatTime : 25 , beaconDomain : "litix.io" , sampleRate : 1 , disableCookies : false , respectDoNotTrack : false , disableRebufferTracking : false , disablePlayheadRebufferTracking : false } ;
obj . errorTranslator = function errorTranslator ( arg0 ) {
return arg0 ;
} ;
obj . emitTranslator = function emitTranslator ( arg0 , merged ) {
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
return array ;
} ;
obj . stateDataTranslator = function stateDataTranslator ( stateData ) {
return stateData ;
2026-07-20 16:05:17 +00:00
} ;
callResult . mux = arg0 ;
callResult . id = arg1 ;
2026-07-23 10:11:24 +00:00
tmp63 = null != arg2 && arg2 . beaconDomain ;
if ( tmp63 ) {
2026-07-20 16:05:17 +00:00
log = callResult . mux . log ;
str = "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ;
warnResult = log . warn ( "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ) ;
}
merged = Object . assign ( obj , arg2 ) ;
merged . data = merged . data || { } ;
if ( merged . data . property _key ) {
merged . data . env _key = merged . data . property _key ;
data = merged . data ;
2026-07-23 10:11:24 +00:00
delete tmp . property _key ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _35 . level = merged . debug ? outer1 _31 : outer1 _33 ;
2026-07-20 16:05:17 +00:00
callResult . getPlayheadTime = merged . getPlayheadTime ;
2026-07-23 10:11:24 +00:00
callResult . getStateData = merged . getStateData || ( ( ) => ( { } ) ) ;
callResult . getAdData = merged . getAdData || ( ( ) => {
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
} ) ;
2026-07-20 16:05:17 +00:00
( { minimumRebufferDuration : obj . minimumRebufferDuration , sustainedRebufferThreshold : obj . sustainedRebufferThreshold , playbackHeartbeatTime : obj . playbackHeartbeatTime , disableRebufferTracking : obj . disableRebufferTracking } = merged ) ;
if ( callResult . disableRebufferTracking ) {
log2 = callResult . mux . log ;
str2 = "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ;
warnResult1 = log2 . warn ( "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ) ;
}
( { disablePlayheadRebufferTracking : obj . disablePlayheadRebufferTracking , errorTranslator : obj . errorTranslator , emitTranslator : obj . emitTranslator , stateDataTranslator : obj . stateDataTranslator } = merged ) ;
2026-07-23 10:11:24 +00:00
tmp67 = new outer1 _86 ( arg0 , merged . data . env _key , merged ) ;
callResult . playbackEventDispatcher = tmp67 ;
obj1 = { player _instance _id : outer1 _26 ( ) , mux _sample _rate : merged . sampleRate , beacon _domain : tmp68 } ;
tmp68 = merged . beaconCollectionDomain || merged . beaconDomain ;
2026-07-20 16:05:17 +00:00
callResult . data = obj1 ;
callResult . data . view _sequence _number = 1 ;
callResult . data . player _sequence _number = 1 ;
fn = function ( ) {
const self = this ;
if ( undefined === this . data . view _start ) {
const utils = self . mux . utils ;
self . data . view _start = utils . now ( ) ;
self . emit ( "viewstart" ) ;
}
} ;
2026-07-23 10:11:24 +00:00
tmp69 = outer1 _124 ( callResult ) ;
bind = fn . bind ( callResult ) ;
2026-07-20 16:05:17 +00:00
onResult = callResult . on ( "viewinit" , function ( arg0 , arg1 ) {
this . _resetVideoData ( ) ;
this . _resetViewData ( ) ;
this . _resetErrorData ( ) ;
this . _updateStateData ( ) ;
const merged = Object . assign ( this . data , arg1 ) ;
this . _initializeViewData ( ) ;
this . one ( "play" , closure _1 ) ;
this . one ( "adbreakstart" , closure _1 ) ;
} ) ;
onResult1 = callResult . on ( "videochange" , function ( arg0 , arg1 ) {
this . _resetView ( arg1 ) ;
} ) ;
onResult2 = callResult . on ( "programchange" , function ( arg0 , arg1 ) {
const self = this ;
if ( this . data . player _is _paused ) {
const log = self . mux . log ;
log . warn ( "The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information." ) ;
}
self . _resetView ( Object . assign ( arg1 , { view _program _changed : true } ) ) ;
callback ( ) ;
self . emit ( "play" ) ;
self . emit ( "playing" ) ;
} ) ;
onResult3 = callResult . on ( "fragmentchange" , ( arg0 , arg1 ) => {
( { currentFragmentPDT : this . currentFragmentPDT , currentFragmentStart : this . currentFragmentStart } = arg1 ) ;
} ) ;
onResult4 = callResult . on ( "destroy" , callResult . destroy ) ;
if ( "undefined" !== typeof window ) {
_window4 = window ;
str5 = "function" ;
if ( "function" === typeof window . addEventListener ) {
_window = window ;
if ( "function" === typeof window . removeEventListener ) {
fn2 = function f ( ) {
let WINDOW _HIDDEN = undefined !== callResult . data . view _start ;
callResult . mux . WINDOW _HIDDEN = "hidden" === document . visibilityState ;
if ( WINDOW _HIDDEN ) {
WINDOW _HIDDEN = callResult . mux . WINDOW _HIDDEN ;
}
if ( WINDOW _HIDDEN ) {
if ( ! callResult . data . player _is _paused ) {
callResult . emit ( "hb" ) ;
}
}
} ;
f = fn2 ;
_window2 = window ;
str3 = "visibilitychange" ;
listener = window . addEventListener ( "visibilitychange" , fn2 , false ) ;
fn3 = function g ( persisted ) {
if ( ! persisted . persisted ) {
callResult . destroy ( ) ;
}
} ;
g = fn3 ;
_window3 = window ;
str4 = "pagehide" ;
listener1 = window . addEventListener ( "pagehide" , fn3 , false ) ;
onResult5 = callResult . on ( "destroy" , ( ) => {
const removed = window . removeEventListener ( "visibilitychange" , fn2 ) ;
const removed1 = window . removeEventListener ( "pagehide" , fn3 ) ;
} ) ;
}
}
}
onResult6 = callResult . on ( "playerready" , function ( arg0 , arg1 ) {
const merged = Object . assign ( this . data , arg1 ) ;
} ) ;
2026-07-23 10:11:24 +00:00
item = outer1 _91 . forEach ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
arg0 . on ( arg0 , function ( arg0 , arg1 ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( 0 !== closure _0 . indexOf ( "ad" ) ) {
2026-07-20 16:05:17 +00:00
self . _updateStateData ( ) ;
}
const merged = Object . assign ( self . data , arg1 ) ;
self . _sanitizeData ( ) ;
} ) ;
arg0 . on ( ` after ${ arg0 } ` , function ( ) {
const self = this ;
if ( tmp ) {
2026-07-23 10:11:24 +00:00
self . send ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ) ;
onResult7 = callResult . on ( "viewend" , ( arg0 , arg1 ) => {
const merged = Object . assign ( callResult . data , arg1 ) ;
} ) ;
oneResult = callResult . one ( "playerready" , function k ( arg0 ) {
const self = this ;
if ( this . data . player _init _time ) {
2026-07-23 10:11:24 +00:00
self . data . player _startup _time = tmp3 - self . data . player _init _time ;
2026-07-20 16:05:17 +00:00
}
self . pageLoadInitTime = self . data . page _load _init _time || self . pageLoadInitTime ;
self . pageLoadEndTime = self . data . page _load _end _time || self . pageLoadEndTime ;
2026-07-23 10:11:24 +00:00
if ( tmp4 ) {
2026-07-20 16:05:17 +00:00
self . mux . PLAYER _TRACKED = true ;
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
let num = self . data . player _init _time ;
if ( ! num ) {
num = Infinity ;
}
self . data . page _load _time = Math . min ( num , self . pageLoadEndTime || Infinity ) - self . pageLoadInitTime ;
2026-07-23 10:11:24 +00:00
const tmp7 = self . pageLoadEndTime || Infinity ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp5 = self . data . player _init _time || self . pageLoadEndTime ;
2026-07-20 16:05:17 +00:00
}
self . send ( "playerready" ) ;
2026-07-23 10:11:24 +00:00
delete tmp2 . player _startup _time ;
delete tmp . page _load _time ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
tmp82 = outer1 _124 ( callResult ) ;
tmp83 = new outer1 _88 ( callResult ) ;
callResult . longResumeTracker = tmp83 ;
tmp84 = outer1 _124 ( callResult ) ;
tmp85 = new outer1 _52 ( callResult ) ;
callResult . errorTracker = tmp85 ;
tmp86 = outer1 _124 ( callResult ) ;
tmp87 = new outer1 _65 ( callResult ) ;
tmp88 = outer1 _124 ( callResult ) ;
tmp89 = new outer1 _61 ( callResult ) ;
callResult . seekingTracker = tmp89 ;
tmp90 = outer1 _124 ( callResult ) ;
tmp91 = new outer1 _55 ( callResult ) ;
callResult . playheadTime = tmp91 ;
tmp92 = outer1 _124 ( callResult ) ;
tmp93 = new outer1 _51 ( callResult ) ;
callResult . playbackHeartbeat = tmp93 ;
tmp94 = outer1 _124 ( callResult ) ;
tmp95 = new outer1 _60 ( callResult ) ;
tmp96 = outer1 _124 ( callResult ) ;
tmp97 = new outer1 _53 ( callResult ) ;
callResult . watchTimeTracker = tmp97 ;
tmp98 = outer1 _124 ( callResult ) ;
tmp99 = new outer1 _54 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _64 ( callResult ) ;
2026-07-20 16:05:17 +00:00
callResult . adTracker = addHLSJSResult ;
2026-07-23 10:11:24 +00:00
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _58 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _57 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _59 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _87 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _89 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _90 ( callResult ) ;
2026-07-20 16:05:17 +00:00
if ( merged . hlsjs ) {
addHLSJSResult = callResult . addHLSJS ( merged ) ;
}
if ( merged . dashjs ) {
addHLSJSResult = callResult . addDashJS ( merged ) ;
}
addHLSJSResult = callResult . emit ( "viewinit" , merged . data ) ;
return callResult ;
}
}
}
let prototype = arg0 ;
if ( arg0 ) {
prototype = arg0 . prototype ;
}
2026-07-23 10:11:24 +00:00
let obj = { value : t , writable : true , configurable : true } ;
2026-07-20 16:05:17 +00:00
t . prototype = Object . create ( prototype , { constructor : obj } ) ;
if ( arg0 ) {
class t {
constructor ( arg0 , arg1 , arg2 ) {
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _125 ( this , bind ) ;
callResult = call . call ( this ) ;
call = callResult ;
tmp3 = outer1 _124 ( callResult ) ;
tmp4 = outer1 _128 ( callResult , "pageLoadEndTime" , undefined ) ;
tmp5 = outer1 _124 ( callResult ) ;
tmp6 = outer1 _128 ( callResult , "pageLoadInitTime" , undefined ) ;
tmp7 = outer1 _124 ( callResult ) ;
tmp8 = outer1 _128 ( callResult , "_destroyed" , undefined ) ;
tmp9 = outer1 _124 ( callResult ) ;
tmp10 = outer1 _128 ( callResult , "_heartBeatTimeout" , undefined ) ;
tmp11 = outer1 _124 ( callResult ) ;
tmp12 = outer1 _128 ( callResult , "adTracker" , undefined ) ;
tmp13 = outer1 _124 ( callResult ) ;
tmp14 = outer1 _128 ( callResult , "dashjs" , undefined ) ;
tmp15 = outer1 _124 ( callResult ) ;
tmp16 = outer1 _128 ( callResult , "data" , undefined ) ;
tmp17 = outer1 _124 ( callResult ) ;
tmp18 = outer1 _128 ( callResult , "disablePlayheadRebufferTracking" , undefined ) ;
tmp19 = outer1 _124 ( callResult ) ;
tmp20 = outer1 _128 ( callResult , "disableRebufferTracking" , undefined ) ;
tmp21 = outer1 _124 ( callResult ) ;
tmp22 = outer1 _128 ( callResult , "errorTracker" , undefined ) ;
tmp23 = outer1 _124 ( callResult ) ;
tmp24 = outer1 _128 ( callResult , "errorTranslator" , undefined ) ;
tmp25 = outer1 _124 ( callResult ) ;
tmp26 = outer1 _128 ( callResult , "emitTranslator" , undefined ) ;
tmp27 = outer1 _124 ( callResult ) ;
tmp28 = outer1 _128 ( callResult , "getAdData" , undefined ) ;
tmp29 = outer1 _124 ( callResult ) ;
tmp30 = outer1 _128 ( callResult , "getPlayheadTime" , undefined ) ;
tmp31 = outer1 _124 ( callResult ) ;
tmp32 = outer1 _128 ( callResult , "getStateData" , undefined ) ;
tmp33 = outer1 _124 ( callResult ) ;
tmp34 = outer1 _128 ( callResult , "stateDataTranslator" , undefined ) ;
tmp35 = outer1 _124 ( callResult ) ;
tmp36 = outer1 _128 ( callResult , "hlsjs" , undefined ) ;
tmp37 = outer1 _124 ( callResult ) ;
tmp38 = outer1 _128 ( callResult , "id" , undefined ) ;
tmp39 = outer1 _124 ( callResult ) ;
tmp40 = outer1 _128 ( callResult , "longResumeTracker" , undefined ) ;
tmp41 = outer1 _124 ( callResult ) ;
tmp42 = outer1 _128 ( callResult , "minimumRebufferDuration" , undefined ) ;
tmp43 = outer1 _124 ( callResult ) ;
tmp44 = outer1 _128 ( callResult , "mux" , undefined ) ;
tmp45 = outer1 _124 ( callResult ) ;
tmp46 = outer1 _128 ( callResult , "playbackEventDispatcher" , undefined ) ;
tmp47 = outer1 _124 ( callResult ) ;
tmp48 = outer1 _128 ( callResult , "playbackHeartbeat" , undefined ) ;
tmp49 = outer1 _124 ( callResult ) ;
tmp50 = outer1 _128 ( callResult , "playbackHeartbeatTime" , undefined ) ;
tmp51 = outer1 _124 ( callResult ) ;
tmp52 = outer1 _128 ( callResult , "playheadTime" , undefined ) ;
tmp53 = outer1 _124 ( callResult ) ;
tmp54 = outer1 _128 ( callResult , "seekingTracker" , undefined ) ;
tmp55 = outer1 _124 ( callResult ) ;
tmp56 = outer1 _128 ( callResult , "sustainedRebufferThreshold" , undefined ) ;
tmp57 = outer1 _124 ( callResult ) ;
tmp58 = outer1 _128 ( callResult , "watchTimeTracker" , undefined ) ;
tmp59 = outer1 _124 ( callResult ) ;
tmp60 = outer1 _128 ( callResult , "currentFragmentPDT" , undefined ) ;
tmp61 = outer1 _124 ( callResult ) ;
tmp62 = outer1 _128 ( callResult , "currentFragmentStart" , undefined ) ;
callResult . pageLoadInitTime = outer1 _40 . navigationStart ( ) ;
callResult . pageLoadEndTime = outer1 _40 . domContentLoadedEventEnd ( ) ;
obj = { debug : false , minimumRebufferDuration : 250 , sustainedRebufferThreshold : 1000 , playbackHeartbeatTime : 25 , beaconDomain : "litix.io" , sampleRate : 1 , disableCookies : false , respectDoNotTrack : false , disableRebufferTracking : false , disablePlayheadRebufferTracking : false } ;
obj . errorTranslator = function errorTranslator ( arg0 ) {
return arg0 ;
} ;
obj . emitTranslator = function emitTranslator ( arg0 , merged ) {
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
return array ;
} ;
obj . stateDataTranslator = function stateDataTranslator ( stateData ) {
return stateData ;
2026-07-20 16:05:17 +00:00
} ;
callResult . mux = arg0 ;
callResult . id = arg1 ;
2026-07-23 10:11:24 +00:00
tmp63 = null != arg2 && arg2 . beaconDomain ;
if ( tmp63 ) {
2026-07-20 16:05:17 +00:00
log = callResult . mux . log ;
str = "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ;
warnResult = log . warn ( "The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`." ) ;
}
merged = Object . assign ( obj , arg2 ) ;
merged . data = merged . data || { } ;
if ( merged . data . property _key ) {
merged . data . env _key = merged . data . property _key ;
data = merged . data ;
2026-07-23 10:11:24 +00:00
delete tmp . property _key ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _35 . level = merged . debug ? outer1 _31 : outer1 _33 ;
2026-07-20 16:05:17 +00:00
callResult . getPlayheadTime = merged . getPlayheadTime ;
2026-07-23 10:11:24 +00:00
callResult . getStateData = merged . getStateData || ( ( ) => ( { } ) ) ;
callResult . getAdData = merged . getAdData || ( ( ) => {
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
} ) ;
2026-07-20 16:05:17 +00:00
( { minimumRebufferDuration : obj . minimumRebufferDuration , sustainedRebufferThreshold : obj . sustainedRebufferThreshold , playbackHeartbeatTime : obj . playbackHeartbeatTime , disableRebufferTracking : obj . disableRebufferTracking } = merged ) ;
if ( callResult . disableRebufferTracking ) {
log2 = callResult . mux . log ;
str2 = "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ;
warnResult1 = log2 . warn ( "Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering." ) ;
}
( { disablePlayheadRebufferTracking : obj . disablePlayheadRebufferTracking , errorTranslator : obj . errorTranslator , emitTranslator : obj . emitTranslator , stateDataTranslator : obj . stateDataTranslator } = merged ) ;
2026-07-23 10:11:24 +00:00
tmp67 = new outer1 _86 ( arg0 , merged . data . env _key , merged ) ;
callResult . playbackEventDispatcher = tmp67 ;
obj1 = { player _instance _id : outer1 _26 ( ) , mux _sample _rate : merged . sampleRate , beacon _domain : tmp68 } ;
tmp68 = merged . beaconCollectionDomain || merged . beaconDomain ;
2026-07-20 16:05:17 +00:00
callResult . data = obj1 ;
callResult . data . view _sequence _number = 1 ;
callResult . data . player _sequence _number = 1 ;
fn = function ( ) {
const self = this ;
if ( undefined === this . data . view _start ) {
const utils = self . mux . utils ;
self . data . view _start = utils . now ( ) ;
self . emit ( "viewstart" ) ;
}
} ;
2026-07-23 10:11:24 +00:00
tmp69 = outer1 _124 ( callResult ) ;
bind = fn . bind ( callResult ) ;
2026-07-20 16:05:17 +00:00
onResult = callResult . on ( "viewinit" , function ( arg0 , arg1 ) {
this . _resetVideoData ( ) ;
this . _resetViewData ( ) ;
this . _resetErrorData ( ) ;
this . _updateStateData ( ) ;
const merged = Object . assign ( this . data , arg1 ) ;
this . _initializeViewData ( ) ;
this . one ( "play" , closure _1 ) ;
this . one ( "adbreakstart" , closure _1 ) ;
} ) ;
onResult1 = callResult . on ( "videochange" , function ( arg0 , arg1 ) {
this . _resetView ( arg1 ) ;
} ) ;
onResult2 = callResult . on ( "programchange" , function ( arg0 , arg1 ) {
const self = this ;
if ( this . data . player _is _paused ) {
const log = self . mux . log ;
log . warn ( "The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information." ) ;
}
self . _resetView ( Object . assign ( arg1 , { view _program _changed : true } ) ) ;
callback ( ) ;
self . emit ( "play" ) ;
self . emit ( "playing" ) ;
} ) ;
onResult3 = callResult . on ( "fragmentchange" , ( arg0 , arg1 ) => {
( { currentFragmentPDT : this . currentFragmentPDT , currentFragmentStart : this . currentFragmentStart } = arg1 ) ;
} ) ;
onResult4 = callResult . on ( "destroy" , callResult . destroy ) ;
if ( "undefined" !== typeof window ) {
_window4 = window ;
str5 = "function" ;
if ( "function" === typeof window . addEventListener ) {
_window = window ;
if ( "function" === typeof window . removeEventListener ) {
fn2 = function f ( ) {
let WINDOW _HIDDEN = undefined !== callResult . data . view _start ;
callResult . mux . WINDOW _HIDDEN = "hidden" === document . visibilityState ;
if ( WINDOW _HIDDEN ) {
WINDOW _HIDDEN = callResult . mux . WINDOW _HIDDEN ;
}
if ( WINDOW _HIDDEN ) {
if ( ! callResult . data . player _is _paused ) {
callResult . emit ( "hb" ) ;
}
}
} ;
f = fn2 ;
_window2 = window ;
str3 = "visibilitychange" ;
listener = window . addEventListener ( "visibilitychange" , fn2 , false ) ;
fn3 = function g ( persisted ) {
if ( ! persisted . persisted ) {
callResult . destroy ( ) ;
}
} ;
g = fn3 ;
_window3 = window ;
str4 = "pagehide" ;
listener1 = window . addEventListener ( "pagehide" , fn3 , false ) ;
onResult5 = callResult . on ( "destroy" , ( ) => {
const removed = window . removeEventListener ( "visibilitychange" , fn2 ) ;
const removed1 = window . removeEventListener ( "pagehide" , fn3 ) ;
} ) ;
}
}
}
onResult6 = callResult . on ( "playerready" , function ( arg0 , arg1 ) {
const merged = Object . assign ( this . data , arg1 ) ;
} ) ;
2026-07-23 10:11:24 +00:00
item = outer1 _91 . forEach ( ( arg0 ) => {
2026-07-20 16:05:17 +00:00
arg0 . on ( arg0 , function ( arg0 , arg1 ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( 0 !== closure _0 . indexOf ( "ad" ) ) {
2026-07-20 16:05:17 +00:00
self . _updateStateData ( ) ;
}
const merged = Object . assign ( self . data , arg1 ) ;
self . _sanitizeData ( ) ;
} ) ;
arg0 . on ( ` after ${ arg0 } ` , function ( ) {
const self = this ;
if ( tmp ) {
2026-07-23 10:11:24 +00:00
self . send ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ) ;
onResult7 = callResult . on ( "viewend" , ( arg0 , arg1 ) => {
const merged = Object . assign ( callResult . data , arg1 ) ;
} ) ;
oneResult = callResult . one ( "playerready" , function k ( arg0 ) {
const self = this ;
if ( this . data . player _init _time ) {
2026-07-23 10:11:24 +00:00
self . data . player _startup _time = tmp3 - self . data . player _init _time ;
2026-07-20 16:05:17 +00:00
}
self . pageLoadInitTime = self . data . page _load _init _time || self . pageLoadInitTime ;
self . pageLoadEndTime = self . data . page _load _end _time || self . pageLoadEndTime ;
2026-07-23 10:11:24 +00:00
if ( tmp4 ) {
2026-07-20 16:05:17 +00:00
self . mux . PLAYER _TRACKED = true ;
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
let num = self . data . player _init _time ;
if ( ! num ) {
num = Infinity ;
}
self . data . page _load _time = Math . min ( num , self . pageLoadEndTime || Infinity ) - self . pageLoadInitTime ;
2026-07-23 10:11:24 +00:00
const tmp7 = self . pageLoadEndTime || Infinity ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp5 = self . data . player _init _time || self . pageLoadEndTime ;
2026-07-20 16:05:17 +00:00
}
self . send ( "playerready" ) ;
2026-07-23 10:11:24 +00:00
delete tmp2 . player _startup _time ;
delete tmp . page _load _time ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
tmp82 = outer1 _124 ( callResult ) ;
tmp83 = new outer1 _88 ( callResult ) ;
callResult . longResumeTracker = tmp83 ;
tmp84 = outer1 _124 ( callResult ) ;
tmp85 = new outer1 _52 ( callResult ) ;
callResult . errorTracker = tmp85 ;
tmp86 = outer1 _124 ( callResult ) ;
tmp87 = new outer1 _65 ( callResult ) ;
tmp88 = outer1 _124 ( callResult ) ;
tmp89 = new outer1 _61 ( callResult ) ;
callResult . seekingTracker = tmp89 ;
tmp90 = outer1 _124 ( callResult ) ;
tmp91 = new outer1 _55 ( callResult ) ;
callResult . playheadTime = tmp91 ;
tmp92 = outer1 _124 ( callResult ) ;
tmp93 = new outer1 _51 ( callResult ) ;
callResult . playbackHeartbeat = tmp93 ;
tmp94 = outer1 _124 ( callResult ) ;
tmp95 = new outer1 _60 ( callResult ) ;
tmp96 = outer1 _124 ( callResult ) ;
tmp97 = new outer1 _53 ( callResult ) ;
callResult . watchTimeTracker = tmp97 ;
tmp98 = outer1 _124 ( callResult ) ;
tmp99 = new outer1 _54 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _64 ( callResult ) ;
2026-07-20 16:05:17 +00:00
callResult . adTracker = addHLSJSResult ;
2026-07-23 10:11:24 +00:00
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _58 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _57 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _59 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _87 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _89 ( callResult ) ;
addHLSJSResult = outer1 _124 ( callResult ) ;
addHLSJSResult = new outer1 _90 ( callResult ) ;
2026-07-20 16:05:17 +00:00
if ( merged . hlsjs ) {
addHLSJSResult = callResult . addHLSJS ( merged ) ;
}
if ( merged . dashjs ) {
addHLSJSResult = callResult . addDashJS ( merged ) ;
}
addHLSJSResult = callResult . emit ( "viewinit" , merged . data ) ;
return callResult ;
}
}
Le ( t , arg0 ) ;
}
let closure _0 = Pt ( t ) ;
obj = {
key : "emit" ,
value ( arg0 , arg1 ) {
const self = this ;
const utils = this . mux . utils ;
const merged = Object . assign ( { viewer _time : utils . now ( ) } , arg1 ) ;
const items = [ arg0 , merged ] ;
let emitTranslatorResult = items ;
if ( this . emitTranslator ) {
emitTranslatorResult = self . emitTranslator ( arg0 , merged ) ;
}
while ( true ) {
let tmp2 = emitTranslatorResult ;
let tmp3 = null ;
let length = null != emitTranslatorResult ;
if ( ! length ) {
break ;
} else {
let tmp4 = emitTranslatorResult ;
length = emitTranslatorResult . length ;
2026-07-23 10:11:24 +00:00
break ;
2026-07-20 16:05:17 +00:00
}
if ( length ) {
2026-07-23 10:11:24 +00:00
let tmp5 = outer1 _130 ;
let tmp6 = outer1 _129 ;
let tmp7 = ctor ;
2026-07-20 16:05:17 +00:00
let str = "emit" ;
2026-07-23 10:11:24 +00:00
let tmp8 = outer1 _130 ( outer1 _129 ( ctor . prototype ) , "emit" , self ) ;
2026-07-20 16:05:17 +00:00
let call = tmp8 . call ;
let items1 = [ self ] ;
2026-07-23 10:11:24 +00:00
let tmp9 = outer1 _122 ;
let applyResult = call . apply ( tmp8 , items1 . concat ( outer1 _122 ( emitTranslatorResult ) ) ) ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , , , , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "destroy" ,
value ( ) {
const self = this ;
if ( ! this . _destroyed ) {
self . _destroyed = true ;
if ( undefined !== self . data . view _start ) {
self . emit ( "viewend" ) ;
self . send ( "viewend" ) ;
}
const playbackEventDispatcher = self . playbackEventDispatcher ;
playbackEventDispatcher . destroy ( ) ;
self . removeHLSJS ( ) ;
self . removeDashJS ( ) ;
const _window = window ;
window . clearTimeout ( self . _heartBeatTimeout ) ;
}
}
} ;
items [ 1 ] = obj ;
items [ 2 ] = {
key : "send" ,
value ( arg0 ) {
const self = this ;
if ( this . data . view _id ) {
const _Object = Object ;
const merged = Object . assign ( { } , self . data ) ;
if ( undefined === merged . video _source _is _live ) {
if ( merged . player _source _duration !== Infinity ) {
if ( merged . video _source _duration !== Infinity ) {
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
merged . video _source _is _live = false ;
}
2026-07-23 10:11:24 +00:00
tmp5 = merged . player _source _duration > 0 || merged . video _source _duration > 0 ;
2026-07-20 16:05:17 +00:00
}
}
merged . video _source _is _live = true ;
}
if ( ! merged . video _source _is _live ) {
2026-07-23 10:11:24 +00:00
const items = [ "player_program_time" , "player_manifest_newest_program_time" , "player_live_edge_program_time" , "player_program_time" , "video_holdback" , "video_part_holdback" , "video_target_duration" , "video_part_target_duration" ] ;
2026-07-20 16:05:17 +00:00
const item = items . forEach ( ( arg0 ) => {
merged [ arg0 ] = undefined ;
} ) ;
}
merged . video _source _url = merged . video _source _url || merged . player _source _url ;
if ( merged . video _source _url ) {
2026-07-23 10:11:24 +00:00
[ tmp4 . video _source _hostname , tmp4 . video _source _domain ] = outer1 _121 ( outer1 _38 ( merged . video _source _url ) , 2 ) ;
const tmp9 = outer1 _121 ( outer1 _38 ( merged . video _source _url ) , 2 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
delete tmp2 . ad _request _id ;
2026-07-20 16:05:17 +00:00
const playbackEventDispatcher = self . playbackEventDispatcher ;
playbackEventDispatcher . send ( arg0 , merged ) ;
const data = self . data ;
data . view _sequence _number = data . view _sequence _number + 1 ;
const data2 = self . data ;
data2 . player _sequence _number = data2 . player _sequence _number + 1 ;
2026-07-23 10:11:24 +00:00
if ( ! outer1 _92 . has ( arg0 ) ) {
2026-07-20 16:05:17 +00:00
self . _restartHeartBeat ( ) ;
}
if ( "viewend" === arg0 ) {
const data3 = self . data ;
2026-07-23 10:11:24 +00:00
delete tmp . view _id ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
items [ 3 ] = {
key : "_resetView" ,
value ( arg0 ) {
this . emit ( "viewend" ) ;
this . send ( "viewend" ) ;
this . emit ( "viewinit" , arg0 ) ;
}
} ;
items [ 4 ] = {
key : "_updateStateData" ,
value ( ) {
const self = this ;
let stateData = this . getStateData ( ) ;
if ( "function" === typeof this . stateDataTranslator ) {
stateData = self . stateDataTranslator ( stateData ) ;
}
while ( true ) {
let data = self . data ;
let tmp3 = null ;
if ( null === data ) {
break ;
} else if ( undefined === data ) {
break ;
} else if ( ! data . video _cdn ) {
break ;
} else {
let tmp4 = stateData ;
if ( null == stateData ) {
break ;
} else {
let tmp5 = stateData ;
if ( ! stateData . video _cdn ) {
break ;
} else {
let tmp6 = stateData ;
let video _cdn = stateData . video _cdn ;
2026-07-23 10:11:24 +00:00
let tmp7 = outer1 _132 ;
stateData = outer1 _132 ( stateData , [ "video_cdn" ] ) ;
break ;
2026-07-20 16:05:17 +00:00
}
}
}
let tmp8 = globalThis ;
let _Object = Object ;
let merged = Object . assign ( self . data , stateData ) ;
let playheadTime = self . playheadTime ;
let _updatePlayheadTimeResult = playheadTime . _updatePlayheadTime ( ) ;
let _sanitizeDataResult = self . _sanitizeData ( ) ;
}
}
} ;
items [ 5 ] = {
key : "_sanitizeData" ,
value ( ) {
2026-07-23 10:11:24 +00:00
const self = this ;
const items = [ "player_width" , "player_height" , "video_source_width" , "video_source_height" , "player_playhead_time" , "video_source_bitrate" ] ;
2026-07-20 16:05:17 +00:00
const item = items . forEach ( ( arg0 ) => {
const parsed = parseInt ( self . data [ arg0 ] , 10 ) ;
let tmp2 ;
if ( ! isNaN ( parsed ) ) {
tmp2 = parsed ;
}
self . data [ arg0 ] = tmp2 ;
} ) ;
2026-07-23 10:11:24 +00:00
const items1 = [ "player_source_url" , "video_source_url" ] ;
2026-07-20 16:05:17 +00:00
const item1 = items1 . forEach ( ( arg0 ) => {
if ( self . data [ arg0 ] ) {
const formatted = self . data [ arg0 ] . toLowerCase ( ) ;
let tmp2 = 0 === formatted . indexOf ( "data:" ) ;
if ( ! tmp2 ) {
tmp2 = 0 === formatted . indexOf ( "blob:" ) ;
}
if ( tmp2 ) {
self . data [ arg0 ] = "MSE style URL" ;
}
const str = self . data [ arg0 ] ;
}
} ) ;
}
} ;
items [ 6 ] = {
key : "_resetVideoData" ,
value ( ) {
2026-07-23 10:11:24 +00:00
const self = this ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( this . data ) ;
const item = keys . forEach ( ( arr ) => {
if ( 0 === arr . indexOf ( "video_" ) ) {
const data = self . data ;
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
} ) ;
}
} ;
items [ 7 ] = {
key : "_resetViewData" ,
value ( ) {
2026-07-23 10:11:24 +00:00
const self = this ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( this . data ) ;
const item = keys . forEach ( ( arr ) => {
if ( 0 === arr . indexOf ( "view_" ) ) {
const data = self . data ;
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
} ) ;
this . data . view _sequence _number = 1 ;
}
} ;
items [ 8 ] = {
key : "_resetErrorData" ,
value ( ) {
2026-07-23 10:11:24 +00:00
delete tmp2 . player _error _code ;
delete tmp2 . player _error _message ;
delete tmp2 . player _error _context ;
delete tmp2 . player _error _severity ;
delete tmp . player _error _business _exception ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 9 ] = {
key : "_initializeViewData" ,
value ( ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
const tmp = outer1 _26 ( ) ;
2026-07-20 16:05:17 +00:00
this . data . view _id = tmp ;
2026-07-23 10:11:24 +00:00
let closure _1 = tmp ;
2026-07-20 16:05:17 +00:00
const fn = function o ( ) {
2026-07-23 10:11:24 +00:00
if ( closure _1 === self . data . view _id ) {
outer2 _134 ( self . data , "player_view_count" , 1 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
if ( this . data . player _is _paused ) {
self . one ( "play" , fn ) ;
} else {
fn ( ) ;
}
}
} ;
items [ 10 ] = {
key : "_restartHeartBeat" ,
value ( ) {
2026-07-23 10:11:24 +00:00
const self = this ;
2026-07-20 16:05:17 +00:00
window . clearTimeout ( this . _heartBeatTimeout ) ;
this . _heartBeatTimeout = window . setTimeout ( ( ) => {
if ( ! self . data . player _is _paused ) {
self . emit ( "hb" ) ;
}
} , 10000 ) ;
}
} ;
items [ 11 ] = {
key : "addHLSJS" ,
value ( hlsjs ) {
let Hls ;
let id ;
let mux ;
const self = this ;
if ( hlsjs . hlsjs ) {
if ( self . hlsjs ) {
const log2 = self . mux . log ;
log2 . warn ( "An instance of HLS.js is already being monitored for this player." ) ;
} else {
self . hlsjs = hlsjs . hlsjs ;
( { mux , id } = self ) ;
( { hlsjs , Hls } = hlsjs ) ;
if ( ! Hls ) {
const _window = window ;
Hls = window . Hls ;
}
2026-07-23 10:11:24 +00:00
( function It ( mux , id , hlsjs , arg3 , Hls ) {
let closure _0 = mux ;
let closure _1 = id ;
let closure _2 = hlsjs ;
2026-07-20 16:05:17 +00:00
let tmp ;
if ( arguments . length > 4 ) {
tmp = arguments [ 4 ] ;
}
2026-07-23 10:11:24 +00:00
let closure _3 = tmp ;
2026-07-20 16:05:17 +00:00
const log = mux . log ;
const secondsToMs = mux . utils . secondsToMs ;
function s ( programDateTime ) {
const parsed = parseInt ( tmp . version ) ;
let tmp2 = 1 === parsed ;
if ( tmp2 ) {
tmp2 = null !== programDateTime . programDateTime ;
}
programDateTime = undefined ;
if ( tmp2 ) {
programDateTime = programDateTime . programDateTime ;
}
let tmp5 = 0 === parsed ;
if ( tmp5 ) {
tmp5 = null !== programDateTime . pdt ;
}
if ( tmp5 ) {
programDateTime = programDateTime . pdt ;
}
return programDateTime ;
}
2026-07-23 10:11:24 +00:00
if ( outer2 _40 . exists ( ) ) {
2026-07-20 16:05:17 +00:00
function u ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
return mux . emit ( closure _1 , arg0 , arg1 ) ;
2026-07-20 16:05:17 +00:00
}
const fn = function f ( request _event _type ) {
let audioTracks ;
let bytesLoaded ;
let levels ;
let networkDetails ;
let requestStart ;
let responseEnd ;
let responseStart ;
let sessionData ;
let stats ;
let url ;
( { levels , audioTracks } = arg1 ) ;
let obj = { } ;
obj = { } ;
( { url , stats , networkDetails , sessionData } = arg1 ) ;
const item = levels . forEach ( ( width ) => {
const obj = { width : width . width , height : width . height , bitrate : width . bitrate , attrs : width . attrs } ;
obj [ arg1 ] = obj ;
} ) ;
const item1 = audioTracks . forEach ( ( name ) => {
const obj = { name : name . name , language : name . lang , bitrate : name . bitrate } ;
obj [ arg1 ] = obj ;
} ) ;
obj = { } ;
2026-07-23 10:11:24 +00:00
( { bytesLoaded , requestStart , responseStart , responseEnd } = outer3 _44 ( stats ) ) ;
outer3 _135 ( obj , outer3 _43 ( sessionData ) ) ;
const tmp3 = outer3 _44 ( stats ) ;
outer3 _136 ( obj , { request _event _type , request _bytes _loaded : bytesLoaded , request _start : requestStart , request _response _start : responseStart , request _response _end : responseEnd , request _type : "manifest" , request _hostname : outer3 _37 ( url ) , request _response _headers : outer3 _45 ( networkDetails ) , request _rendition _lists : { media : obj , audio : obj , video : { } } } ) ;
2026-07-20 16:05:17 +00:00
u ( "requestcompleted" , obj ) ;
} ;
hlsjs . on ( tmp . Events . MANIFEST _LOADED , fn ) ;
const fn2 = function g ( request _event _type , details ) {
let bytesLoaded ;
let level ;
let networkDetails ;
let requestStart ;
let responseEnd ;
let responseStart ;
details = details . details ;
( { level , networkDetails } = details ) ;
2026-07-23 10:11:24 +00:00
( { bytesLoaded , requestStart , responseStart , responseEnd } = outer3 _44 ( details . stats ) ) ;
const tmp = outer3 _44 ( details . stats ) ;
2026-07-20 16:05:17 +00:00
const sum = s ( details . fragments [ details . fragments . length - 1 ] ) + secondsToMs ( tmp2 . duration ) ;
2026-07-23 10:11:24 +00:00
const obj = { request _event _type , request _bytes _loaded : bytesLoaded , request _start : requestStart , request _response _start : responseStart , request _response _end : responseEnd , request _current _level : level , request _type : "manifest" , request _hostname : outer3 _37 ( details . url ) , request _response _headers : outer3 _45 ( networkDetails ) } ;
2026-07-20 16:05:17 +00:00
let holdBack = details . holdBack ;
if ( holdBack ) {
holdBack = secondsToMs ( details . holdBack ) ;
}
obj . video _holdback = holdBack ;
let partHoldBack = details . partHoldBack ;
if ( partHoldBack ) {
partHoldBack = secondsToMs ( details . partHoldBack ) ;
}
obj . video _part _holdback = partHoldBack ;
let partTarget = details . partTarget ;
if ( partTarget ) {
partTarget = secondsToMs ( details . partTarget ) ;
}
obj . video _part _target _duration = partTarget ;
let targetduration = details . targetduration ;
if ( targetduration ) {
targetduration = secondsToMs ( details . targetduration ) ;
}
obj . video _target _duration = targetduration ;
obj . video _source _is _live = details . live ;
let tmp10 ;
if ( ! isNaN ( sum ) ) {
tmp10 = sum ;
}
obj . player _manifest _newest _program _time = tmp10 ;
u ( "requestcompleted" , obj ) ;
} ;
hlsjs . on ( tmp . Events . LEVEL _LOADED , fn2 ) ;
const fn3 = function k ( request _event _type , stats ) {
let details ;
let networkDetails ;
( { details , networkDetails } = stats ) ;
2026-07-23 10:11:24 +00:00
const tmp = outer3 _44 ( stats . stats ) ;
u ( "requestcompleted" , { request _event _type , request _bytes _loaded : tmp . bytesLoaded , request _start : tmp . requestStart , request _response _start : tmp . responseStart , request _response _end : tmp . responseEnd , request _type : "manifest" , request _hostname : outer3 _37 ( details . url ) , request _response _headers : outer3 _45 ( networkDetails ) } ) ;
2026-07-20 16:05:17 +00:00
} ;
hlsjs . on ( tmp . Events . AUDIO _TRACK _LOADED , fn3 ) ;
const fn4 = function h ( request _event _type ) {
let bytesLoaded ;
let frag ;
let networkDetails ;
let requestStart ;
let responseEnd ;
let responseStart ;
let stats ;
( { stats , networkDetails , frag } = arg1 ) ;
if ( ! stats ) {
stats = frag . stats ;
}
let tmp2 ;
2026-07-23 10:11:24 +00:00
( { bytesLoaded , requestStart , responseStart , responseEnd } = outer3 _44 ( stats ) ) ;
2026-07-20 16:05:17 +00:00
if ( networkDetails ) {
2026-07-23 10:11:24 +00:00
tmp2 = outer3 _45 ( networkDetails ) ;
2026-07-20 16:05:17 +00:00
}
const obj = { request _event _type , request _bytes _loaded : bytesLoaded , request _start : requestStart , request _response _start : responseStart , request _response _end : responseEnd } ;
let tmp4 ;
if ( networkDetails ) {
2026-07-23 10:11:24 +00:00
tmp4 = outer3 _37 ( networkDetails . responseURL ) ;
2026-07-20 16:05:17 +00:00
}
obj . request _hostname = tmp4 ;
let tmp6 ;
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
tmp6 = outer3 _138 ( tmp2 ) ;
2026-07-20 16:05:17 +00:00
}
obj . request _id = tmp6 ;
obj . request _response _headers = tmp2 ;
obj . request _media _duration = frag . duration ;
let responseURL ;
if ( null != networkDetails ) {
responseURL = networkDetails . responseURL ;
}
obj . request _url = responseURL ;
if ( "main" === frag . type ) {
obj . request _type = "media" ;
obj . request _current _level = frag . level ;
2026-07-23 10:11:24 +00:00
obj . request _video _width = hlsjs . levels [ frag . level ] || { } . width ;
obj . request _video _height = hlsjs . levels [ frag . level ] || { } . height ;
obj . request _labeled _bitrate = hlsjs . levels [ frag . level ] || { } . bitrate ;
const tmp10 = hlsjs . levels [ frag . level ] || { } ;
const tmp12 = hlsjs . levels [ frag . level ] || { } ;
const tmp14 = hlsjs . levels [ frag . level ] || { } ;
2026-07-20 16:05:17 +00:00
} else {
obj . request _type = frag . type ;
}
u ( "requestcompleted" , obj ) ;
} ;
hlsjs . on ( tmp . Events . FRAG _LOADED , fn4 ) ;
const fn5 = function c ( arg0 , frag ) {
frag = frag . frag ;
u ( "fragmentchange" , { currentFragmentPDT : s ( frag ) , currentFragmentStart : secondsToMs ( frag . start ) } ) ;
} ;
hlsjs . on ( tmp . Events . FRAG _CHANGED , fn5 ) ;
const fn6 = function m ( arg0 , url ) {
let details ;
let fatal ;
let frag ;
let networkDetails ;
let response ;
let type ;
( { details , response , frag , networkDetails } = url ) ;
let str ;
( { type , fatal } = url ) ;
if ( null != frag ) {
str = frag . url ;
}
if ( ! str ) {
str = url . url ;
}
if ( ! str ) {
str = "" ;
}
if ( networkDetails ) {
2026-07-23 10:11:24 +00:00
const tmp = outer3 _45 ( networkDetails ) ;
2026-07-20 16:05:17 +00:00
}
let tmp3 = details === tmp . ErrorDetails . MANIFEST _LOAD _ERROR ;
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . MANIFEST _LOAD _TIMEOUT ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . FRAG _LOAD _ERROR ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . FRAG _LOAD _TIMEOUT ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . LEVEL _LOAD _ERROR ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . LEVEL _LOAD _TIMEOUT ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . AUDIO _TRACK _LOAD _ERROR ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . AUDIO _TRACK _LOAD _TIMEOUT ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . SUBTITLE _LOAD _ERROR ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . SUBTITLE _LOAD _TIMEOUT ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . KEY _LOAD _ERROR ;
}
if ( ! tmp3 ) {
tmp3 = details === tmp . ErrorDetails . KEY _LOAD _TIMEOUT ;
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
let obj = { request _error : details , request _url : str , request _hostname : outer3 _37 ( str ) } ;
2026-07-20 16:05:17 +00:00
let tmp17 ;
if ( tmp ) {
2026-07-23 10:11:24 +00:00
tmp17 = outer3 _138 ( tmp ) ;
2026-07-20 16:05:17 +00:00
}
obj . request _id = tmp17 ;
let str3 = "media" ;
if ( details !== tmp . ErrorDetails . FRAG _LOAD _ERROR ) {
str3 = "media" ;
if ( details !== tmp . ErrorDetails . FRAG _LOAD _TIMEOUT ) {
let str7 = "audio" ;
if ( details !== tmp . ErrorDetails . AUDIO _TRACK _LOAD _ERROR ) {
str7 = "audio" ;
if ( details !== tmp . ErrorDetails . AUDIO _TRACK _LOAD _TIMEOUT ) {
let str5 = "subtitle" ;
if ( details !== tmp . ErrorDetails . SUBTITLE _LOAD _ERROR ) {
str5 = "subtitle" ;
if ( details !== tmp . ErrorDetails . SUBTITLE _LOAD _TIMEOUT ) {
if ( details === tmp . ErrorDetails . KEY _LOAD _ERROR ) {
let str6 = "encryption" ;
} else {
str6 = "manifest" ;
}
str5 = str6 ;
}
}
str7 = str5 ;
}
}
str3 = str7 ;
}
}
obj . request _type = str3 ;
let code ;
if ( null != response ) {
code = response . code ;
}
obj . request _error _code = code ;
let text ;
if ( null != response ) {
text = response . text ;
}
obj . request _error _text = text ;
u ( "requestfailed" , obj ) ;
const tmp15 = u ;
}
if ( fatal ) {
let str10 = "" ;
if ( str ) {
const concat = "url: " . concat ;
str10 = "url: " . concat ( str , "\n" ) ;
}
let str13 = "" ;
const combined = "" . concat ( str10 ) ;
if ( response ) {
if ( response . code ) {
const concat2 = "response: " . concat ;
const combined1 = "response: " . concat ( response . code , ", " ) ;
str13 = combined1 . concat ( response . text , "\n" ) ;
} else {
str13 = "" ;
}
}
let str17 = "" ;
const sum = combined + "" . concat ( str13 ) ;
if ( url . reason ) {
const concat3 = "failure reason: " . concat ;
str17 = "failure reason: " . concat ( url . reason , "\n" ) ;
}
let str20 = "" ;
const sum1 = sum + "" . concat ( str17 ) ;
if ( url . level ) {
const concat4 = "level: " . concat ;
str20 = "level: " . concat ( url . level , "\n" ) ;
}
let str23 = "" ;
const sum2 = sum1 + "" . concat ( str20 ) ;
if ( url . parent ) {
const concat5 = "parent stream controller: " . concat ;
str23 = "parent stream controller: " . concat ( url . parent , "\n" ) ;
}
let str26 = "" ;
const sum3 = sum2 + "" . concat ( str23 ) ;
if ( url . buffer ) {
const concat6 = "buffer length: " . concat ;
str26 = "buffer length: " . concat ( url . buffer , "\n" ) ;
}
let str29 = "" ;
const sum4 = sum3 + "" . concat ( str26 ) ;
if ( url . error ) {
const concat7 = "error: " . concat ;
str29 = "error: " . concat ( url . error , "\n" ) ;
}
let str32 = "" ;
const sum5 = sum4 + "" . concat ( str29 ) ;
if ( url . event ) {
const concat8 = "event: " . concat ;
str32 = "event: " . concat ( url . event , "\n" ) ;
}
let str35 = "" ;
const sum6 = sum5 + "" . concat ( str32 ) ;
if ( url . err ) {
let message ;
if ( null !== url . err ) {
if ( undefined !== err ) {
message = err . message ;
}
}
str35 = "error message: " . concat ( message , "\n" ) ;
}
obj = { player _error _code : type , player _error _message : details , player _error _context : sum6 + "" . concat ( str35 ) } ;
u ( "error" , obj ) ;
}
} ;
hlsjs . on ( tmp . Events . ERROR , fn6 ) ;
const fn7 = function w ( request _event _type , frag ) {
frag = frag . frag ;
let str = frag ;
if ( frag ) {
str = frag . _url ;
}
if ( ! str ) {
str = "" ;
}
2026-07-23 10:11:24 +00:00
const obj = { request _event _type , request _url : str , request _type : "media" , request _hostname : outer3 _37 ( str ) } ;
2026-07-20 16:05:17 +00:00
u ( "requestcanceled" , obj ) ;
} ;
hlsjs . on ( tmp . Events . FRAG _LOAD _EMERGENCY _ABORTED , fn7 ) ;
const fn8 = function x ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
if ( hlsjs . levels [ arg1 . level ] ) {
2026-07-20 16:05:17 +00:00
if ( tmp . attrs ) {
if ( tmp . attrs . BANDWIDTH ) {
const BANDWIDTH = tmp . attrs . BANDWIDTH ;
const _parseFloat = parseFloat ;
2026-07-23 10:11:24 +00:00
const parsed = parseFloat ( tmp . attrs [ "FRAME-RATE" ] ) ;
2026-07-20 16:05:17 +00:00
const _isNaN = isNaN ;
if ( ! isNaN ( parsed ) ) {
const tmp4 = parsed ;
}
if ( BANDWIDTH ) {
const obj = { video _source _fps : tmp4 , video _source _bitrate : BANDWIDTH } ;
( { width : obj . video _source _width , height : obj . video _source _height , name : obj . video _source _rendition _name } = tmp ) ;
let videoCodec ;
if ( null != tmp ) {
videoCodec = tmp . videoCodec ;
}
obj . video _source _codec = videoCodec ;
u ( "renditionchange" , obj ) ;
const tmp7 = u ;
} else {
log . warn ( "missing BANDWIDTH from HLS manifest parsed by HLS.js" ) ;
}
}
}
}
} ;
hlsjs . on ( tmp . Events . LEVEL _SWITCHED , fn8 ) ;
2026-07-23 10:11:24 +00:00
hlsjs . _stopMuxMonitor = ( ) => {
hlsjs . off ( tmp . Events . MANIFEST _LOADED , fn ) ;
hlsjs . off ( tmp . Events . LEVEL _LOADED , fn2 ) ;
hlsjs . off ( tmp . Events . AUDIO _TRACK _LOADED , fn3 ) ;
hlsjs . off ( tmp . Events . FRAG _LOADED , fn4 ) ;
hlsjs . off ( tmp . Events . FRAG _CHANGED , fn5 ) ;
hlsjs . off ( tmp . Events . ERROR , fn6 ) ;
hlsjs . off ( tmp . Events . FRAG _LOAD _EMERGENCY _ABORTED , fn7 ) ;
hlsjs . off ( tmp . Events . LEVEL _SWITCHED , fn8 ) ;
hlsjs . off ( tmp . Events . DESTROYING , hlsjs . _stopMuxMonitor ) ;
delete tmp . _stopMuxMonitor ;
2026-07-20 16:05:17 +00:00
} ;
hlsjs . on ( tmp . Events . DESTROYING , hlsjs . _stopMuxMonitor ) ;
} else {
log . warn ( "performance timing not supported. Not tracking HLS.js." ) ;
}
2026-07-23 10:11:24 +00:00
} ) ( mux , id , hlsjs , { } , Hls ) ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-23 10:11:24 +00:00
let log = self . mux . log ;
2026-07-20 16:05:17 +00:00
log . warn ( "You must pass a valid hlsjs instance in order to track it." ) ;
}
}
} ;
items [ 12 ] = {
key : "removeHLSJS" ,
value ( ) {
const self = this ;
if ( this . hlsjs ) {
const hlsjs = self . hlsjs ;
let tmp = hlsjs ;
if ( hlsjs ) {
tmp = "function" === typeof hlsjs . _stopMuxMonitor ;
}
if ( tmp ) {
hlsjs . _stopMuxMonitor ( ) ;
}
self . hlsjs = undefined ;
}
}
} ;
items [ 13 ] = {
key : "addDashJS" ,
value ( dashjs ) {
const self = this ;
if ( dashjs . dashjs ) {
if ( self . dashjs ) {
const log2 = self . mux . log ;
log2 . warn ( "An instance of Dash.js is already being monitored for this player." ) ;
} else {
self . dashjs = dashjs . dashjs ;
2026-07-23 10:11:24 +00:00
outer1 _48 ( self . mux , self . id , dashjs . dashjs ) ;
2026-07-20 16:05:17 +00:00
}
} else {
const log = self . mux . log ;
log . warn ( "You must pass a valid dashjs instance in order to track it." ) ;
}
}
} ;
items [ 14 ] = {
key : "removeDashJS" ,
value ( ) {
const self = this ;
if ( this . dashjs ) {
const dashjs = self . dashjs ;
let tmp = dashjs ;
if ( dashjs ) {
tmp = "function" === typeof dashjs . _stopMuxMonitor ;
}
if ( tmp ) {
dashjs . _stopMuxMonitor ( ) ;
}
self . dashjs = undefined ;
}
}
} ;
N ( t , items ) ;
return t ;
2026-07-23 10:11:24 +00:00
} ) ( ( ( ) => {
let fn = function r ( ) {
outer1 _125 ( this , fn ) ;
outer1 _128 ( this , "_listeners" , undefined ) ;
2026-07-20 16:05:17 +00:00
} ;
let obj = {
key : "on" ,
value ( arg0 , _eventEmitterGuid , iter ) {
const self = this ;
_eventEmitterGuid = _eventEmitterGuid . _eventEmitterGuid ;
if ( ! _eventEmitterGuid ) {
2026-07-23 10:11:24 +00:00
const sum = outer1 _49 + 1 ;
outer1 _49 = sum ;
2026-07-20 16:05:17 +00:00
_eventEmitterGuid = sum ;
}
_eventEmitterGuid . _eventEmitterGuid = _eventEmitterGuid ;
self . _listeners = self . _listeners || { } ;
let items = self . _listeners [ arg0 ] ;
if ( ! items ) {
items = [ ] ;
}
self . _listeners [ arg0 ] = items ;
let bindResult = _eventEmitterGuid ;
if ( iter ) {
bindResult = _eventEmitterGuid . bind ( iter ) ;
}
self . _listeners [ arg0 ] . push ( bindResult ) ;
return bindResult ;
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "off" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg1 ;
2026-07-20 16:05:17 +00:00
let _listeners = this . _listeners ;
if ( _listeners ) {
_listeners = this . _listeners [ arg0 ] ;
}
if ( _listeners ) {
const item = _listeners . forEach ( ( _eventEmitterGuid ) => {
2026-07-23 10:11:24 +00:00
if ( _eventEmitterGuid . _eventEmitterGuid === _eventEmitterGuid . _eventEmitterGuid ) {
2026-07-20 16:05:17 +00:00
_listeners . splice ( arg1 , 1 ) ;
}
} ) ;
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "one" ,
value ( arg0 , _eventEmitterGuid ) {
let self = this ;
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = _eventEmitterGuid ;
let closure _2 = arg2 ;
2026-07-20 16:05:17 +00:00
self = this ;
_eventEmitterGuid = _eventEmitterGuid . _eventEmitterGuid ;
if ( ! _eventEmitterGuid ) {
2026-07-23 10:11:24 +00:00
const sum = outer1 _49 + 1 ;
outer1 _49 = sum ;
2026-07-20 16:05:17 +00:00
_eventEmitterGuid = sum ;
}
_eventEmitterGuid . _eventEmitterGuid = _eventEmitterGuid ;
2026-07-23 10:11:24 +00:00
const fn = function o ( ) {
self . off ( closure _0 , fn ) ;
self = closure _2 ;
if ( ! closure _2 ) {
2026-07-20 16:05:17 +00:00
self = this ;
}
2026-07-23 10:11:24 +00:00
_eventEmitterGuid ( ... arguments ) ;
2026-07-20 16:05:17 +00:00
} ;
fn . _eventEmitterGuid = _eventEmitterGuid . _eventEmitterGuid ;
self . on ( arg0 , fn ) ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "emit" ,
value ( arg0 , arg1 ) {
let obj = arg1 ;
let self = this ;
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
self = this ;
if ( this . _listeners ) {
if ( ! obj ) {
obj = { } ;
}
2026-07-23 10:11:24 +00:00
const fn = function f ( arr , arg1 ) {
let closure _0 = arg1 ;
2026-07-20 16:05:17 +00:00
const substr = arr . slice ( ) ;
const item = substr . forEach ( ( call ) => {
2026-07-23 10:11:24 +00:00
call . call ( outer1 _1 , { type : closure _0 } , closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ;
fn ( self . _listeners [ "before" + arg0 ] || [ ] , obj ) ;
2026-07-23 10:11:24 +00:00
fn ( self . _listeners [ "before*" ] || [ ] , obj ) ;
2026-07-20 16:05:17 +00:00
fn ( self . _listeners [ arg0 ] || [ ] , obj ) ;
fn ( self . _listeners [ "after" + arg0 ] || [ ] , obj ) ;
const tmp = self . _listeners [ "before" + arg0 ] || [ ] ;
2026-07-23 10:11:24 +00:00
const tmp2 = self . _listeners [ "before*" ] || [ ] ;
2026-07-20 16:05:17 +00:00
const tmp3 = self . _listeners [ arg0 ] || [ ] ;
const tmp4 = self . _listeners [ "after" + arg0 ] || [ ] ;
}
}
} ;
N ( fn , items ) ;
return fn ;
2026-07-23 10:11:24 +00:00
} ) ( ) ) ;
2026-07-20 16:05:17 +00:00
let closure _94 = G ( BResult1 ( ) ) ;
2026-07-23 10:11:24 +00:00
let closure _95 = [ "loadstart" , "pause" , "play" , "playing" , "seeking" , "seeked" , "timeupdate" , "ratechange" , "stalled" , "waiting" , "error" , "ended" ] ;
let closure _96 = { 1 : "MEDIA_ERR_ABORTED" , 2 : "MEDIA_ERR_NETWORK" , 3 : "MEDIA_ERR_DECODE" , 4 : "MEDIA_ERR_SRC_NOT_SUPPORTED" } ;
2026-07-20 16:05:17 +00:00
const GResult1 = G ( BResult ( ) ) ;
if ( tmp12 ) {
const _WeakMap = WeakMap ;
const weakMap = new WeakMap ( ) ;
}
2026-07-23 10:11:24 +00:00
let c99 = "#EXT-X-TARGETDURATION" ;
let c100 = "#EXT-X-PART-INF" ;
let c101 = "#EXT-X-SERVER-CONTROL" ;
let c102 = "#EXTINF" ;
let c103 = "#EXT-X-PROGRAM-DATE-TIME" ;
let c104 = "#EXT-X-VERSION" ;
let c105 = "#EXT-X-SESSION-DATA" ;
2026-07-20 16:05:17 +00:00
class Ve {
constructor ( arg0 ) {
this . buffer = "" ;
this . manifest = { segments : [ ] , serverControl : { } , sessionData : { } } ;
this . currentUri = { } ;
processResult = this . process ( global ) ;
return this . manifest ;
}
process ( arg0 ) {
self = this ;
this . buffer = this . buffer + global ;
buffer = this . buffer ;
index = buffer . indexOf ( "\n" ) ;
if ( index > - 1 ) {
do {
str = self . buffer ;
processLineResult = self . processLine ( require ( "module_0" ) ) ;
str2 = self . buffer ;
self . buffer = str2 . substring ( index + 1 ) ;
buffer1 = self . buffer ;
index = buffer1 . indexOf ( "\n" ) ;
} while ( index > - 1 ) ;
}
return ;
}
processLine ( arg0 ) {
self = this ;
arr = Ii ( global , global . indexOf ( ":" ) ) ;
first = arr [ 0 ] ;
if ( 2 === arr . length ) {
tmp3 = _t ;
num = 1 ;
tmp2 = _t ( arr [ 1 ] ) ;
}
if ( "#" !== first [ 0 ] ) {
self . currentUri . uri = first ;
segments = self . manifest . segments ;
arr = segments . push ( self . currentUri ) ;
targetDuration = self . manifest . targetDuration ;
if ( targetDuration ) {
str = "duration" ;
targetDuration = ! ( "duration" in self . currentUri ) ;
}
if ( targetDuration ) {
self . currentUri . duration = self . manifest . targetDuration ;
}
self . currentUri = { } ;
} else {
2026-07-23 10:11:24 +00:00
tmp23 = c99 ;
if ( c99 === first ) {
2026-07-20 16:05:17 +00:00
tmp20 = globalThis ;
_isFinite = isFinite ;
if ( isFinite ( tmp2 ) ) {
if ( tmp2 >= 0 ) {
self . manifest . targetDuration = tmp2 ;
setHoldBackResult = self . setHoldBack ( ) ;
}
}
return ;
} else {
2026-07-23 10:11:24 +00:00
tmp24 = c100 ;
if ( c100 === first ) {
2026-07-20 16:05:17 +00:00
tmp17 = ct ;
tmp18 = ct ( self . manifest , arr ) ;
if ( self . manifest . partInf . partTarget ) {
self . manifest . partTargetDuration = self . manifest . partInf . partTarget ;
}
setHoldBackResult1 = self . setHoldBack ( ) ;
} else {
2026-07-23 10:11:24 +00:00
tmp25 = c101 ;
if ( c101 === first ) {
2026-07-20 16:05:17 +00:00
tmp14 = ct ;
tmp15 = ct ( self . manifest , arr ) ;
setHoldBackResult2 = self . setHoldBack ( ) ;
} else {
2026-07-23 10:11:24 +00:00
tmp26 = c102 ;
if ( c102 === first ) {
2026-07-20 16:05:17 +00:00
if ( 0 === tmp2 ) {
num2 = 0.01 ;
self . currentUri . duration = 0.01 ;
} else if ( tmp2 > 0 ) {
self . currentUri . duration = tmp2 ;
}
} else {
2026-07-23 10:11:24 +00:00
tmp27 = c103 ;
if ( c103 === first ) {
2026-07-20 16:05:17 +00:00
tmp8 = globalThis ;
_Date = Date ;
prototype = Date . prototype ;
tmp9 = new . target ;
tmp10 = new . target ;
tmp11 = tmp2 ;
date = new Date ( tmp2 ) ;
tmp13 = date ;
if ( ! self . manifest . dateTimeString ) {
self . manifest . dateTimeString = tmp2 ;
self . manifest . dateTimeObject = date ;
}
self . currentUri . dateTimeString = tmp2 ;
self . currentUri . dateTimeObject = date ;
} else {
2026-07-23 10:11:24 +00:00
tmp4 = c104 ;
if ( c104 === first ) {
2026-07-20 16:05:17 +00:00
tmp6 = ct ;
tmp7 = ct ( self . manifest , arr ) ;
} else {
2026-07-23 10:11:24 +00:00
tmp5 = c105 ;
if ( c105 === first ) {
2026-07-20 16:05:17 +00:00
tmp28 = Li ;
num3 = 1 ;
tmp29 = _a ;
tmp30 = globalThis ;
_Object = Object ;
merged = Object . assign ( self . manifest . sessionData , _a ( Li ( arr [ 1 ] ) ) ) ;
}
}
}
}
}
}
}
}
return ;
}
setHoldBack ( ) {
( { serverControl , targetDuration , partTargetDuration } = this . manifest ) ;
if ( serverControl ) {
result = targetDuration ;
if ( targetDuration ) {
num = 3 ;
result = 3 * targetDuration ;
}
result1 = partTargetDuration ;
if ( partTargetDuration ) {
num2 = 2 ;
result1 = 2 * partTargetDuration ;
}
if ( targetDuration ) {
str = "holdBack" ;
targetDuration = ! serverControl . hasOwnProperty ( "holdBack" ) ;
}
if ( targetDuration ) {
serverControl . holdBack = result ;
}
tmp3 = result ;
if ( result ) {
tmp3 = serverControl . holdBack < result ;
}
if ( tmp3 ) {
serverControl . holdBack = result ;
}
tmp4 = partTargetDuration ;
if ( partTargetDuration ) {
str2 = "partHoldBack" ;
tmp4 = ! serverControl . hasOwnProperty ( "partHoldBack" ) ;
}
if ( tmp4 ) {
num3 = 3 ;
serverControl . partHoldBack = 3 * partTargetDuration ;
}
if ( partTargetDuration ) {
partTargetDuration = serverControl . partHoldBack < result1 ;
}
if ( partTargetDuration ) {
serverControl . partHoldBack = result1 ;
}
}
return ;
}
}
function ct ( arg0 , arg1 ) {
if ( Oi ( arg1 [ 1 ] ) ) {
const _Object = Object ;
let merged = Object . assign ( Pi ( arg1 [ 1 ] ) , { } ) ;
} else {
merged = _t ( arg1 [ 1 ] ) ;
}
arg0 [ Jr ( arg1 [ 0 ] . replace ( "#EXT-X-" , "" ) ) ] = merged ;
}
function Jr ( str ) {
return str . toLowerCase ( ) . replace ( /-(\w)/g , ( arg0 ) => arg0 [ 1 ] . toUpperCase ( ) ) ;
}
function _t ( str ) {
if ( "yes" !== str . toLowerCase ( ) ) {
if ( "no" !== str . toLowerCase ( ) ) {
let parsed = str ;
if ( - 1 === str . indexOf ( ":" ) ) {
const _parseFloat = parseFloat ;
parsed = parseFloat ( str ) ;
}
const _isNaN = isNaN ;
if ( isNaN ( parsed ) ) {
parsed = str ;
}
return parsed ;
}
}
return "yes" === str . toLowerCase ( ) ;
}
function Ai ( str ) {
const obj = { } ;
const parts = str . split ( "=" ) ;
if ( parts . length > 1 ) {
obj [ Jr ( parts [ 0 ] ) ] = _t ( parts [ 1 ] ) ;
const tmp2 = Jr ( parts [ 0 ] ) ;
}
return obj ;
}
function Pi ( str ) {
let length ;
const parts = str . split ( "," ) ;
let merged = { } ;
let num = 0 ;
let tmp = merged ;
if ( parts . length > 0 ) {
do {
2026-07-23 10:11:24 +00:00
let tmp2 = Ai ;
2026-07-20 16:05:17 +00:00
let _Object = Object ;
2026-07-23 10:11:24 +00:00
merged = Object . assign ( Ai ( parts [ num ] ) , merged ) ;
2026-07-20 16:05:17 +00:00
num = num + 1 ;
tmp = merged ;
length = parts . length ;
} while ( length > num ) ;
}
return tmp ;
}
function Oi ( arr ) {
return arr . indexOf ( "=" ) > - 1 ;
}
function Ii ( arr , length2 ) {
if ( - 1 === length2 ) {
const items = [ arr ] ;
let items1 = items ;
} else {
items1 = [ arr . substring ( 0 , length2 ) , arr . substring ( length2 + 1 ) ] ;
}
return items1 ;
}
function Li ( str ) {
let obj = { } ;
if ( str ) {
const searchResult = str . search ( "," ) ;
const items = [ str . slice ( 0 , searchResult ) , str . slice ( searchResult + 1 ) ] ;
const item = items . forEach ( ( str ) => {
const parts = str . replace ( /['"]+/g , "" ) . split ( "=" ) ;
for ( let num = 0 ; num < parts . length ; num = num + 1 ) {
if ( "DATA-ID" === parts [ num ] ) {
let tmp = obj ;
2026-07-23 10:11:24 +00:00
obj [ "DATA-ID" ] = parts [ 1 - num ] ;
2026-07-20 16:05:17 +00:00
}
if ( "VALUE" === parts [ num ] ) {
let tmp2 = obj ;
obj . VALUE = parts [ 1 - num ] ;
}
}
} ) ;
obj = { } ;
obj . data = obj ;
return obj ;
}
}
let closure _114 = { } ;
function ne ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
let closure _1 = arguments ;
if ( "string" === typeof arg0 ) {
if ( ne . hasOwnProperty ( arg0 ) ) {
const timerId = GResult . default . setTimeout ( ( ) => {
closure _1 = splice . call ( closure _1 , 1 ) ;
2026-07-23 10:11:24 +00:00
outer1 _115 [ closure _0 ] . apply ( null , closure _1 ) ;
2026-07-20 16:05:17 +00:00
} , 0 ) ;
const _default2 = GResult . default ;
} else {
2026-07-23 10:11:24 +00:00
tmp6 . warn ( ` \` ${ arg0 } \` is an unknown task ` ) ;
2026-07-20 16:05:17 +00:00
}
} else if ( "function" === tmp ) {
const timerId1 = GResult . default . setTimeout ( ( ) => {
2026-07-23 10:11:24 +00:00
callback ( outer1 _115 ) ;
2026-07-20 16:05:17 +00:00
} , 0 ) ;
const _default = GResult . default ;
} else {
2026-07-23 10:11:24 +00:00
tmp6 . warn ( ` \` ${ arg0 } \` is invalid. ` ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let obj3 = {
2026-07-20 16:05:17 +00:00
loaded : obj1 . now ( ) ,
2026-07-23 10:11:24 +00:00
NAME : "mux-embed" ,
VERSION : "5.13.0" ,
API _VERSION : "2.1" ,
PLAYER _TRACKED : false ,
2026-07-20 16:05:17 +00:00
monitor ( videoElement , arg1 ) {
2026-07-23 10:11:24 +00:00
return ( function st ( ne , videoElement , arg2 ) {
let closure _0 = ne ;
2026-07-20 16:05:17 +00:00
let merged = arg2 ;
2026-07-23 10:11:24 +00:00
const tmp2 = outer1 _121 ( outer1 _29 ( videoElement ) , 3 ) ;
let first = tmp2 [ 0 ] ;
let closure _3 = tmp4 ;
let log = ne . log ;
2026-07-20 16:05:17 +00:00
const getComputedStyle = ne . utils . getComputedStyle ;
const secondsToMs = ne . utils . secondsToMs ;
if ( first ) {
2026-07-23 10:11:24 +00:00
if ( "video" !== tmp5 ) {
if ( "audio" !== tmp5 ) {
return log . error ( "The element of `" + tmp4 + "` was not a media element." ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( first . mux ) {
let mux = first . mux ;
mux . destroy ( ) ;
2026-07-23 10:11:24 +00:00
delete tmp . mux ;
2026-07-20 16:05:17 +00:00
log . warn ( "Already monitoring this video element, replacing existing event listeners" ) ;
}
let obj = {
getPlayheadTime ( ) {
return secondsToMs ( first . currentTime ) ;
} ,
getStateData ( ) {
const self = this ;
const getPlayheadTime = this . getPlayheadTime ;
let callResult ;
if ( null !== getPlayheadTime ) {
if ( undefined !== getPlayheadTime ) {
callResult = getPlayheadTime . call ( self ) ;
}
}
if ( ! callResult ) {
callResult = secondsToMs ( first . currentTime ) ;
}
let currentSrc = self . hlsjs && self . hlsjs . url ;
let dashjs = self . dashjs ;
if ( dashjs ) {
dashjs = "function" === typeof self . dashjs . getSource ;
}
if ( dashjs ) {
const dashjs2 = self . dashjs ;
dashjs = dashjs2 . getSource ( ) ;
}
const obj = { player _is _paused : first . paused , player _width : parseInt ( getComputedStyle ( first , "width" ) ) , player _height : parseInt ( getComputedStyle ( first , "height" ) ) , player _autoplay _on : first . autoplay , player _preload _on : first . preload , player _language _code : first . lang } ;
2026-07-23 10:11:24 +00:00
let _default = outer2 _94 . default ;
2026-07-20 16:05:17 +00:00
if ( _default ) {
2026-07-23 10:11:24 +00:00
let msFullscreenElement = outer2 _94 . default . fullscreenElement ;
2026-07-20 16:05:17 +00:00
if ( ! msFullscreenElement ) {
2026-07-23 10:11:24 +00:00
msFullscreenElement = outer2 _94 . default . webkitFullscreenElement ;
2026-07-20 16:05:17 +00:00
}
if ( ! msFullscreenElement ) {
2026-07-23 10:11:24 +00:00
msFullscreenElement = outer2 _94 . default . mozFullScreenElement ;
2026-07-20 16:05:17 +00:00
}
if ( ! msFullscreenElement ) {
2026-07-23 10:11:24 +00:00
msFullscreenElement = outer2 _94 . default . msFullscreenElement ;
2026-07-20 16:05:17 +00:00
}
_default = msFullscreenElement ;
}
obj . player _is _fullscreen = _default ;
obj . video _poster _url = first . poster ;
if ( ! currentSrc ) {
currentSrc = dashjs ;
}
if ( ! currentSrc ) {
currentSrc = first . currentSrc ;
}
obj . video _source _url = currentSrc ;
obj . video _source _duration = secondsToMs ( first . duration ) ;
obj . video _source _height = first . videoHeight ;
obj . video _source _width = first . videoWidth ;
let droppedVideoFrames ;
if ( null != first ) {
const getVideoPlaybackQuality = first . getVideoPlaybackQuality ;
if ( null !== getVideoPlaybackQuality ) {
if ( undefined !== getVideoPlaybackQuality ) {
droppedVideoFrames = getVideoPlaybackQuality . call ( first ) . droppedVideoFrames ;
}
}
}
obj . view _dropped _frame _count = droppedVideoFrames ;
if ( first . getStartDate ) {
if ( callResult > 0 ) {
const startDate = first . getStartDate ( ) ;
if ( startDate ) {
if ( "function" === typeof startDate . getTime ) {
if ( startDate . getTime ( ) ) {
const time = startDate . getTime ( ) ;
obj . player _program _time = time + callResult ;
if ( first . seekable . length > 0 ) {
const seekable = first . seekable ;
obj . player _live _edge _program _time = time + seekable . end ( first . seekable . length - 1 ) ;
}
}
}
}
}
}
return obj ;
}
} ;
2026-07-23 10:11:24 +00:00
let _Object = Object ;
2026-07-20 16:05:17 +00:00
obj = { automaticErrorTracking : true } ;
merged = Object . assign ( obj , arg2 , obj ) ;
2026-07-23 10:11:24 +00:00
let _Object2 = Object ;
obj = { player _software : "HTML5 Video Element" , player _mux _plugin _name : "VideoElementMonitor" , player _mux _plugin _version : ne . VERSION } ;
2026-07-20 16:05:17 +00:00
merged . data = Object . assign ( obj , merged . data ) ;
mux = first . mux ;
if ( ! mux ) {
mux = { } ;
}
first . mux = mux ;
first . mux . deleted = false ;
first . mux . emit = ( arg0 , arg1 ) => {
2026-07-23 10:11:24 +00:00
store . emit ( closure _3 , arg0 , arg1 ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . updateData = ( arg0 ) => {
const mux = first . mux ;
mux . emit ( "hb" , arg0 ) ;
} ;
function h ( ) {
log . error ( "The monitor for this video element has already been destroyed." ) ;
}
first . mux . destroy = ( ) => {
const keys = Object . keys ( first . mux . listeners ) ;
const item = keys . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
const removed = outer1 _2 . removeEventListener ( arg0 , outer1 _2 . mux . listeners [ arg0 ] , false ) ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-07-23 10:11:24 +00:00
delete tmp . listeners ;
2026-07-20 16:05:17 +00:00
first . mux . destroy = h ;
first . mux . swapElement = h ;
first . mux . emit = h ;
first . mux . addHLSJS = h ;
first . mux . addDashJS = h ;
first . mux . removeHLSJS = h ;
first . mux . removeDashJS = h ;
first . mux . updateData = h ;
first . mux . setEmitTranslator = h ;
first . mux . setStateDataTranslator = h ;
first . mux . setGetPlayheadTime = h ;
first . mux . deleted = true ;
2026-07-23 10:11:24 +00:00
store . emit ( closure _3 , "destroy" ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . swapElement = ( arg0 ) => {
2026-07-23 10:11:24 +00:00
const tmp4 = outer2 _121 ( outer2 _29 ( arg0 ) , 3 ) ;
const first = tmp4 [ 0 ] ;
let text = tmp4 [ 1 ] ;
2026-07-20 16:05:17 +00:00
if ( first ) {
2026-07-23 10:11:24 +00:00
if ( "video" === tmp7 ) {
2026-07-20 16:05:17 +00:00
first . muxId = first . muxId ;
2026-07-23 10:11:24 +00:00
delete tmp2 . muxId ;
2026-07-20 16:05:17 +00:00
first . mux = first . mux || { } ;
const _Object = Object ;
first . mux . listeners = Object . assign ( { } , first . mux . listeners ) ;
const mux = first . mux ;
2026-07-23 10:11:24 +00:00
delete tmp3 . listeners ;
2026-07-20 16:05:17 +00:00
const _Object2 = Object ;
const keys = Object . keys ( first . mux . listeners ) ;
const item = keys . forEach ( ( arg0 ) => {
const removed = first . removeEventListener ( arg0 , first . mux . listeners [ arg0 ] , false ) ;
const listener = first . addEventListener ( arg0 , first . mux . listeners [ arg0 ] , false ) ;
} ) ;
first . mux . swapElement = first . mux . swapElement ;
first . mux . destroy = first . mux . destroy ;
2026-07-23 10:11:24 +00:00
delete tmp . mux ;
2026-07-20 16:05:17 +00:00
let errorResult ;
}
2026-07-23 10:11:24 +00:00
const log2 = first . log ;
text = ` The element of \` ${ tmp6 } ` ;
errorResult = log2 . error ( ` ${ ` The element of \` ${ tmp6 } ` } \` was not a media element. ` ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const log = first . log ;
return log . error ( "No element was found with the `" + ` The element of \` ${ tmp6 } ` + "` query selector." ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
first . mux . addHLSJS = ( closure _3 ) => {
store . addHLSJS ( closure _3 , closure _3 ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
first . mux . addDashJS = ( closure _3 ) => {
store . addDashJS ( closure _3 , closure _3 ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . removeHLSJS = ( ) => {
2026-07-23 10:11:24 +00:00
store . removeHLSJS ( closure _3 ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . removeDashJS = ( ) => {
2026-07-23 10:11:24 +00:00
store . removeDashJS ( closure _3 ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . setEmitTranslator = ( emitTranslator ) => {
2026-07-23 10:11:24 +00:00
store . setEmitTranslator ( closure _3 , emitTranslator ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . setStateDataTranslator = ( stateDataTranslator ) => {
2026-07-23 10:11:24 +00:00
const result = store . setStateDataTranslator ( closure _3 , stateDataTranslator ) ;
2026-07-20 16:05:17 +00:00
} ;
first . mux . setGetPlayheadTime = ( getPlayheadTime ) => {
if ( ! getPlayheadTime ) {
getPlayheadTime = merged . getPlayheadTime ;
}
2026-07-23 10:11:24 +00:00
store . setGetPlayheadTime ( closure _3 , getPlayheadTime ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
ne . init ( tmp4 , merged ) ;
ne . emit ( tmp4 , "playerready" ) ;
2026-07-20 16:05:17 +00:00
if ( ! first . paused ) {
2026-07-23 10:11:24 +00:00
ne . emit ( tmp4 , "play" ) ;
2026-07-20 16:05:17 +00:00
if ( first . readyState > 2 ) {
2026-07-23 10:11:24 +00:00
ne . emit ( tmp4 , "playing" ) ;
2026-07-20 16:05:17 +00:00
}
}
first . mux . listeners = { } ;
2026-07-23 10:11:24 +00:00
let item = outer1 _95 . forEach ( ( arg0 ) => {
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
let tmp = "error" === arg0 ;
if ( tmp ) {
tmp = ! merged . automaticErrorTracking ;
}
if ( ! tmp ) {
first . mux . listeners [ arg0 ] = ( ) => {
const obj = { } ;
2026-07-23 10:11:24 +00:00
if ( "error" === closure _0 ) {
if ( outer1 _2 . error ) {
if ( 1 !== outer1 _2 . error . code ) {
obj . player _error _code = outer1 _2 . error . code ;
let message = outer3 _96 [ outer1 _2 . error . code ] ;
2026-07-20 16:05:17 +00:00
if ( ! message ) {
2026-07-23 10:11:24 +00:00
message = outer1 _2 . error . message ;
2026-07-20 16:05:17 +00:00
}
obj . player _error _message = message ;
}
}
}
2026-07-23 10:11:24 +00:00
closure _0 . emit ( outer1 _3 , closure _0 , obj ) ;
2026-07-20 16:05:17 +00:00
} ;
const listener = first . addEventListener ( arg0 , first . mux . listeners [ arg0 ] , false ) ;
}
} ) ;
} else {
2026-07-23 10:11:24 +00:00
return log . error ( "No element was found with the `" + tmp4 + "` query selector." ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ) ( ne , videoElement , arg1 ) ;
2026-07-20 16:05:17 +00:00
} ,
destroyMonitor ( videoElement ) {
const first = H ( se ( videoElement ) , 1 ) [ 0 ] ;
if ( first ) {
if ( first . mux ) {
if ( "function" === typeof first . mux . destroy ) {
const mux = first . mux ;
mux . destroy ( ) ;
}
}
}
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A video element monitor for \` ${ videoElement } \` has not been initialized via \` mux.monitor \` . ` ) ;
2026-07-20 16:05:17 +00:00
} ,
2026-07-23 10:11:24 +00:00
addHLSJS ( closure _3 , closure _3 ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . addHLSJS ( closure _3 ) ;
const obj = dependencyMap [ tmp ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
addDashJS ( closure _3 , closure _3 ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . addDashJS ( closure _3 ) ;
const obj = dependencyMap [ tmp ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
removeHLSJS ( closure _3 ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . removeHLSJS ( ) ;
const obj = dependencyMap [ tmp ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
removeDashJS ( closure _3 ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . removeDashJS ( ) ;
const obj = dependencyMap [ tmp ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
init ( arg0 , respectDoNotTrack ) {
if ( tmp ) {
tmp6 . info ( "The browser's Do Not Track flag is enabled - Mux beaconing is disabled." ) ;
}
const tmp4 = J ( arg0 ) ;
2026-07-23 10:11:24 +00:00
tmp = ce ( ) && respectDoNotTrack && respectDoNotTrack . respectDoNotTrack ;
2026-07-20 16:05:17 +00:00
closure _114 [ tmp4 ] = new closure _93 ( ne , tmp4 , respectDoNotTrack ) ;
} ,
emit ( arg0 , arg1 , arg2 ) {
2026-07-23 10:11:24 +00:00
const tmp3 = J ( arg0 ) ;
if ( dependencyMap [ tmp3 ] ) {
dependencyMap [ tmp3 ] . emit ( arg1 , arg2 ) ;
2026-07-20 16:05:17 +00:00
if ( "destroy" === arg1 ) {
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj = dependencyMap [ tmp3 ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp3 } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
updateData ( arg0 , arg1 ) {
const tmp = J ( arg0 ) ;
2026-07-23 10:11:24 +00:00
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . emit ( "hb" , arg1 ) ;
const obj = dependencyMap [ tmp ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
setEmitTranslator ( closure _3 , emitTranslator ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . emitTranslator = emitTranslator ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
setStateDataTranslator ( closure _3 , stateDataTranslator ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . stateDataTranslator = stateDataTranslator ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
2026-07-23 10:11:24 +00:00
setGetPlayheadTime ( closure _3 , getPlayheadTime ) {
const tmp = J ( closure _3 ) ;
if ( dependencyMap [ tmp ] ) {
dependencyMap [ tmp ] . getPlayheadTime = getPlayheadTime ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 . error ( ` A monitor for \` ${ tmp } \` has not been initialized. ` ) ;
2026-07-20 16:05:17 +00:00
}
} ,
checkDoNotTrack : ce ,
log : tmp6 ,
utils : {
safeCall : function ut ( arg0 , arg1 , arg2 , arg3 ) {
if ( arg0 ) {
if ( "function" === typeof tmp [ arg1 ] ) {
tmp [ arg1 ] . apply ( tmp , arg2 ) ;
const obj = tmp [ arg1 ] ;
}
}
} ,
safeIncrement : P ,
getComputedStyle : function dt ( arg0 , arg1 ) {
let str = "" ;
if ( arg0 ) {
str = "" ;
if ( arg1 ) {
str = "" ;
if ( GResult1 . default ) {
str = "" ;
if ( "function" === typeof GResult1 . default . getComputedStyle ) {
let hasItem = weakMap ;
if ( weakMap ) {
hasItem = weakMap . has ( arg0 ) ;
}
let value ;
if ( hasItem ) {
value = weakMap . get ( arg0 ) ;
}
if ( ! value ) {
const computedStyle = GResult1 . default . getComputedStyle ( arg0 , null ) ;
value = computedStyle ;
if ( weakMap ) {
const result = weakMap . set ( arg0 , computedStyle ) ;
value = computedStyle ;
}
const _default = GResult1 . default ;
}
str = value . getPropertyValue ( arg1 ) ;
}
}
}
}
return str ;
} ,
secondsToMs : function lt ( arg0 ) {
return Math . floor ( 1000 * arg0 ) ;
} ,
assign : Object . assign ,
headersStringToObject : pe ,
cdnHeadersToRequestId : de ,
extractHostnameAndDomain : re ,
extractHostname : F ,
manifestParser : Ve ,
generateShortID : Oe ,
generateUUID : ee ,
now : obj1 . now ,
findMediaElement : se
} ,
2026-07-23 10:11:24 +00:00
events : { PLAYER _READY : "playerready" , VIEW _INIT : "viewinit" , VIDEO _CHANGE : "videochange" , PLAY : "play" , PAUSE : "pause" , PLAYING : "playing" , TIME _UPDATE : "timeupdate" , SEEKING : "seeking" , SEEKED : "seeked" , REBUFFER _START : "rebufferstart" , REBUFFER _END : "rebufferend" , ERROR : "error" , ENDED : "ended" , RENDITION _CHANGE : "renditionchange" , ORIENTATION _CHANGE : "orientationchange" , PLAYBACK _MODE _CHANGE : "playbackmodechange" , AD _REQUEST : "adrequest" , AD _RESPONSE : "adresponse" , AD _BREAK _START : "adbreakstart" , AD _PLAY : "adplay" , AD _PLAYING : "adplaying" , AD _PAUSE : "adpause" , AD _FIRST _QUARTILE : "adfirstquartile" , AD _MID _POINT : "admidpoint" , AD _THIRD _QUARTILE : "adthirdquartile" , AD _ENDED : "adended" , AD _BREAK _END : "adbreakend" , AD _ERROR : "aderror" , REQUEST _COMPLETED : "requestcompleted" , REQUEST _FAILED : "requestfailed" , REQUEST _CANCELLED : "requestcanceled" , HEARTBEAT : "hb" , DESTROY : "destroy" } ,
2026-07-20 16:05:17 +00:00
WINDOW _HIDDEN : false ,
WINDOW _UNLOADING : false
2026-07-23 10:11:24 +00:00
} ;
let merged = Object . assign ( ne , obj3 ) ;
2026-07-20 16:05:17 +00:00
if ( tmp18 ) {
2026-07-23 10:11:24 +00:00
let listener = GResult . default . addEventListener ( "pagehide" , ( persisted ) => {
2026-07-20 16:05:17 +00:00
if ( ! persisted . persisted ) {
ne . WINDOW _UNLOADING = true ;
}
} , false ) ;
2026-07-23 10:11:24 +00:00
let _default = GResult . default ;
2026-07-20 16:05:17 +00:00
}
export default pt ( defineProperty ( { } , "__esModule" , { value : true } ) , obj ) ;