const a=(a,t)=>(a=>e(a))(a).indexOf(t)>-1,e=a=>{a.Ionic=a.Ionic||{};let e=a.Ionic.platforms;return null==e&&(e=a.Ionic.platforms=t(a)).forEach(e=>a.document.documentElement.classList.add(`plt-${e}`)),e},t=a=>Object.keys(l).filter(e=>l[e](a)),i=a=>s(a,/iPad/i),n=a=>s(a,/android|sink/i),o=a=>h(a,"(any-pointer:coarse)"),r=a=>c(a)||d(a),c=a=>!!(a.cordova||a.phonegap||a.PhoneGap),d=a=>{const e=a.Capacitor;return!(!e||!e.isNative)},s=(a,e)=>!(!a.navigator||!a.navigator.userAgent)&&e.test(a.navigator.userAgent),h=(a,e)=>!!a.matchMedia&&a.matchMedia(e).matches,l={ipad:i,iphone:a=>s(a,/iPhone/i),ios:a=>s(a,/iPad|iPhone|iPod/i),android:n,phablet:a=>{const e=a.innerWidth,t=a.innerHeight,i=Math.min(e,t),n=Math.max(e,t);return i>390&&i<520&&n>620&&n<800},tablet:a=>{const e=a.innerWidth,t=a.innerHeight,o=Math.min(e,t),r=Math.max(e,t);return i(a)||(a=>n(a)&&!s(a,/mobile/i))(a)||o>460&&o<820&&r>780&&r<1400},cordova:c,capacitor:d,electron:a=>s(a,/electron/),pwa:a=>!!a.matchMedia&&(a.matchMedia("(display-mode: standalone)").matches||a.navigator.standalone),mobile:o,mobileweb:a=>o(a)&&!r(a),desktop:a=>!o(a),hybrid:r};export{a};