namespace UaUtil { /**
     * UA が iPadOS か判定
     */ export const isiPadOS = ( ) : boolean => { return /iPad|Macintosh|macintosh/ . test ( navigator . userAgent ) === true && 'ontouchend' in document ; } ; return export const isiOS = ( ) : boolean => { return /iPad|iPhone|iPod/ . test ( navigator . userAgent ) || isiPadOS ( ) ; } ; /**
     * UA が iPhone か判定
     */ export const isiPhone = ( ) : boolean => { return /iPhone|iphone/ . test ( navigator . userAgent ) ; } ; return export const isAndroid = ( ) : boolean => { return /Android|android/ . test ( navigator . userAgent ) ; } ; return export const isEdge = ( ) : boolean => { return /Edge|edge/ . test ( navigator . userAgent ) ; } ; return export const isIE = ( ) : boolean => { return /msie|MSIE/ . test ( navigator . userAgent ) || /Trident/ . test ( navigator . userAgent ) ; } ; return export const isChrome = ( ) : boolean => { return /chrome|Chrome/ . test ( navigator . userAgent ) ; } ; return export const isFirefox = ( ) : boolean => { return /firefox|Firefox/ . test ( navigator . userAgent ) ; } ; return export const isSafari = ( ) : boolean => { return /safari|Safari/ . test ( navigator . userAgent ) && ! isChrome ( ) ; } ; return export const isSafari10OrLater = ( ) : boolean => { return isSafari ( ) && /Version\/1\d/i . test ( navigator . userAgent ) ; } ; return export const isMobile = ( ) : boolean => { return /Mobile|mobile/ . test ( navigator . userAgent ) ; } ; return export const isMac = ( ) : boolean => { return /Macintosh|macintosh/ . test ( navigator . userAgent ) && isiPadOS ( ) === false ; } ; return export const isWindows = ( ) : boolean => { return /Windows|windows/ . test ( navigator . userAgent ) ; } ; } export default UaUtil ;