(function(){"use strict";function n(){return s()||o()}function o(){return typeof window.safari<"u"&&typeof window.safari.pushNotification<"u"}function s(){return typeof PushSubscriptionOptions<"u"&&PushSubscriptionOptions.prototype.hasOwnProperty("applicationServerKey")}function r(){return a()&&navigator.maxTouchPoints>0}function a(){return navigator.vendor==="Apple Computer, Inc."}class t{static VERSION=160307;static addScriptToPage(i){const e=document.createElement("script");e.src=i,e.defer=!0,document.head.appendChild(e)}static getPathAndPrefix(){const i="localhost",e="https://cdn.onesignal.com/sdks/web/v16/",p="https";return e}static loadFullPageSDK(){t.addScriptToPage(`${t.getPathAndPrefix()}OneSignalSDK.page.es6.js?v=${t.VERSION}`)}static start(){n()?t.loadFullPageSDK():this.printEnvironmentNotSupported()}static printEnvironmentNotSupported(){let i="OneSignal: SDK is not compatible with this browser.";r()&&(i+=" To support iOS please install as a Web App. See the OneSignal guide https://documentation.onesignal.com/docs/safari-web-push-for-ios"),console.info(i)}}t.start()})(); //# sourceMappingURL=OneSignalSDK.page.js.map