export interface PassiveObj { passive : boolean ; } let supportPassive = false ; const opts = Object . defineProperty && Object . defineProperty ( { } , "passive" , { get : function ( ) : PassiveObj { supportPassive = { passive : true } ; return supportPassive ; } } ) ; document . addEventListener ( "test" , ( ) : void => { } , opts ) ; const mobileTest = /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/ ; const isMobileDevice = mobileTest . test ( navigator . userAgent ) ; export { supportPassive , isMobileDevice } ;