New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@realeyes/environment-checker

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@realeyes/environment-checker - npm Package Compare versions

Comparing version 3.3.0-stage.3 to 3.3.0-stage.5

192

dist/bamboo.test.unit.report.json

@@ -6,3 +6,3 @@ {

"failures": 0,
"duration": 24
"duration": 29
},

@@ -12,48 +12,53 @@ "failures": [],

{
"title": "Environment Checker when detecting tablet device ... should pass if only tablet is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker called with allowedDevices as string... should pass on tablet if only tablet is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 2
},
{
"title": "Environment Checker when detecting tablet device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker called with allowedDevices as string... should fail if tablet is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 1
},
{
"title": "Environment Checker called with allowedDevices as string... should pass on mobile if only mobile is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 0
},
{
"title": "Environment Checker when detecting tablet device ... should pass if desktop and tablet are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker called with allowedDevices as string... should fail on mobile if mobile is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 0
},
{
"title": "Environment Checker when detecting tablet device ... should fail if only mobile is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker called with allowedDevices as string... should pass on desktop if only desktop is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 1
},
{
"title": "Environment Checker when detecting tablet device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker called with allowedDevices as string... should fail on desktop if desktop is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 0
},
{
"title": "Environment Checker when detecting tablet device ... should fail if only desktop is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker when detecting mobile device ... should pass if only mobile is allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 1
},
{
"title": "Environment Checker when detecting tablet device ... should fail if mobile and desktop are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"title": "Environment Checker when detecting mobile device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 0
},
{
"title": "Environment Checker when detecting tablet device ... should pass if mobile and tablet are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
"title": "Environment Checker when detecting mobile device ... should pass if mobile and tablet are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 2
},
{
"title": "Environment Checker when detecting mobile device ... should pass if mobile and tablet are allowed",
"title": "Environment Checker when detecting mobile device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 3
"duration": 0
},
{
"title": "Environment Checker when detecting mobile device ... should fail if desktop and tablet are allowed",
"title": "Environment Checker when detecting mobile device ... should pass if mobile and desktop are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",

@@ -63,3 +68,3 @@ "duration": 1

{
"title": "Environment Checker when detecting mobile device ... should fail if only tablet is allowed",
"title": "Environment Checker when detecting mobile device ... should fail if desktop and tablet are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",

@@ -74,107 +79,102 @@ "duration": 0

{
"title": "Environment Checker when detecting mobile device ... should pass if only mobile is allowed",
"title": "Environment Checker when detecting mobile device ... should fail if only tablet is allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 0
"duration": 2
},
{
"title": "Environment Checker when detecting mobile device ... should pass if mobile and desktop are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"title": "Environment Checker called with allowedDevices as invalid json string... should fail as allowedDevices will be empty after validation",
"fullTitle": "Environment Checker called with allowedDevices as invalid json string...",
"duration": 0
},
{
"title": "Environment Checker when detecting mobile device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting mobile device ...",
"title": "Environment Checker ... should fail on blacklisted Webview",
"fullTitle": "Environment Checker ... ",
"duration": 1
},
{
"title": "Environment Checker when detecting mobile device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting mobile device ...",
"duration": 0
"title": "Environment Checker ... should ok on IOS 14",
"fullTitle": "Environment Checker ... ",
"duration": 2
},
{
"title": "Environment Checker when detecting desktop device ... should pass if desktop and tablet are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
"title": "Environment Checker ... should fail if detect fails",
"fullTitle": "Environment Checker ... ",
"duration": 1
},
{
"title": "Environment Checker when detecting desktop device ... should fail if only tablet is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 3
},
{
"title": "Environment Checker when detecting desktop device ... should pass if only desktop is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"title": "Environment Checker ... should fail if no webcams are detected",
"fullTitle": "Environment Checker ... ",
"duration": 0
},
{
"title": "Environment Checker when detecting desktop device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting desktop device ...",
"title": "Environment Checker ... should fail on IOS Webview",
"fullTitle": "Environment Checker ... ",
"duration": 1
},
{
"title": "Environment Checker when detecting desktop device ... should fail if mobile and tablet are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"title": "Environment Checker ... should fail on blacklisted browser",
"fullTitle": "Environment Checker ... ",
"duration": 0
},
{
"title": "Environment Checker when detecting desktop device ... should fail if only mobile is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
"title": "Environment Checker ... should pass on unsupported browser",
"fullTitle": "Environment Checker ... ",
"duration": 1
},
{
"title": "Environment Checker when detecting desktop device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"title": "Environment Checker ... should fail on IOS Webview",
"fullTitle": "Environment Checker ... ",
"duration": 0
},
{
"title": "Environment Checker when detecting desktop device ... should pass if desktop and mobile are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"title": "Environment Checker when detecting tablet device ... should pass if desktop and tablet are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
},
{
"title": "Environment Checker called with allowedDevices as invalid json string... should fail as allowedDevices will be empty after validation",
"fullTitle": "Environment Checker called with allowedDevices as invalid json string...",
"duration": 0
"title": "Environment Checker when detecting tablet device ... should pass if mobile and tablet are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 1
},
{
"title": "Environment Checker ... should pass on unsupported browser",
"fullTitle": "Environment Checker ... ",
"duration": 3
"title": "Environment Checker when detecting tablet device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 2
},
{
"title": "Environment Checker ... should ok on IOS 14",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker when detecting tablet device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
},
{
"title": "Environment Checker ... should fail on blacklisted browser",
"fullTitle": "Environment Checker ... ",
"duration": 0
},
{
"title": "Environment Checker ... should fail if detect fails",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker when detecting tablet device ... should fail if mobile and desktop are allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 1
},
{
"title": "Environment Checker ... should fail on IOS Webview",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker when detecting tablet device ... should pass if only tablet is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
},
{
"title": "Environment Checker ... should fail on blacklisted Webview",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker when detecting tablet device ... should fail if only desktop is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
},
{
"title": "Environment Checker ... should fail if no webcams are detected",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker when detecting tablet device ... should fail if only mobile is allowed",
"fullTitle": "Environment Checker when detecting tablet device ...",
"duration": 0
},
{
"title": "Environment Checker ... should fail on IOS Webview",
"fullTitle": "Environment Checker ... ",
"title": "Environment Checker called with legacy options ... should fail if detected mobile but isTablet is not defined ",
"fullTitle": "Environment Checker called with legacy options ...",
"duration": 0
},
{
"title": "Environment Checker called with legacy options ... should pass if detected mobile and isMobile is true",
"fullTitle": "Environment Checker called with legacy options ...",
"duration": 1
},
{
"title": "Environment Checker called with legacy options ... should fail if detected tablet but isTablet is false",

@@ -185,3 +185,3 @@ "fullTitle": "Environment Checker called with legacy options ...",

{
"title": "Environment Checker called with legacy options ... should fail if detected mobile but isTablet is not defined ",
"title": "Environment Checker called with legacy options ... should pass if detected tablet and isTablet is true",
"fullTitle": "Environment Checker called with legacy options ...",

@@ -196,3 +196,3 @@ "duration": 3

{
"title": "Environment Checker called with legacy options ... should pass if detected tablet and isTablet is true",
"title": "Environment Checker called with legacy options ... should fail if detected mobile but isMobile is false",
"fullTitle": "Environment Checker called with legacy options ...",

@@ -202,39 +202,39 @@ "duration": 0

{
"title": "Environment Checker called with legacy options ... should fail if detected mobile but isMobile is false",
"fullTitle": "Environment Checker called with legacy options ...",
"duration": 1
"title": "Environment Checker when detecting desktop device ... should fail if only mobile is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
},
{
"title": "Environment Checker called with legacy options ... should pass if detected mobile and isMobile is true",
"fullTitle": "Environment Checker called with legacy options ...",
"title": "Environment Checker when detecting desktop device ... should pass if desktop and tablet are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 1
},
{
"title": "Environment Checker called with allowedDevices as string... should pass on tablet if only tablet is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"title": "Environment Checker when detecting desktop device ... should fail if only tablet is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
},
{
"title": "Environment Checker called with allowedDevices as string... should fail if tablet is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"title": "Environment Checker when detecting desktop device ... should fail if mobile and tablet are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
},
{
"title": "Environment Checker called with allowedDevices as string... should fail on mobile if mobile is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"title": "Environment Checker when detecting desktop device ... should pass if desktop and mobile are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0
},
{
"title": "Environment Checker called with allowedDevices as string... should pass on desktop if only desktop is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 0
"title": "Environment Checker when detecting desktop device ... should pass if all platforms are allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 1
},
{
"title": "Environment Checker called with allowedDevices as string... should fail on desktop if desktop is not allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"duration": 2
"title": "Environment Checker when detecting desktop device ... should pass if allowedDevices is not defined",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 3
},
{
"title": "Environment Checker called with allowedDevices as string... should pass on mobile if only mobile is allowed",
"fullTitle": "Environment Checker called with allowedDevices as string...",
"title": "Environment Checker when detecting desktop device ... should pass if only desktop is allowed",
"fullTitle": "Environment Checker when detecting desktop device ...",
"duration": 0

@@ -241,0 +241,0 @@ }

@@ -1,2 +0,2 @@

!function i(s,a,c){function l(t,e){if(!a[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=a[t]={exports:{}};s[t][0].call(o.exports,function(e){return l(s[t][1][e]||e)},o,o.exports,i,s,a,c)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.__esModule=!0,n.default=void 0;var d=i(e("@realeyes/environment-detector")),p=i(e("@realeyes/environment-detector/lib/browsers")),m=(i(e("@realeyes/environment-detector/lib/os")),i(e("@realeyes/environment-detector/lib/platform"))),v=i(e("@realeyes/environment-detector/lib/utils/Logger")),h=i(e("uuid/v4")),o=e("./package.json");function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}window.Realeyesit=window.Realeyesit||{},window.Realeyesit.EnvironmentalDetectionAPI={VERSION:o.version,BLACKLISTED_BROWSERS:[[p.default.names.INTERNET_EXPLORER,"0-11"],[p.default.names.FIREFOX,"0-67"],[p.default.names.OPERA,"0-59"],[p.default.names.CHROME,"0-70"],[p.default.names.MICROSOFT_EDGE,"0-17"],[p.default.names.SAFARI,"0-11"],[p.default.names.UC_BROWSER,"0-100"]],BLACKLISTED_OS:[],checkResults:{checksPassed:null,failureReasonCode:null,failureReasonString:null},failureReasonCodes:{BROWSER_NOT_CAPABLE:4,MOBILE_BROWSER:5,NO_WEBCAMS_DETECTED:6,OTHER_ERROR:7,IOS_WEBVIEW:8,UNSUPPORTED_BROWSER:9,TABLET_BROWSER:10,DESKTOP_BROWSER:11,BLACKLISTED:12},sanitizeOptions:function(e){var t={};if(void 0!==e.allowedDevices)if("string"==typeof e.allowedDevices)try{t.allowedDevices=JSON.parse(e.allowedDevices)}catch(e){t.allowedDevices=[]}else e.allowedDevices.constructor===Array&&(Array.prototype.filter&&Object.values?t.allowedDevices=e.allowedDevices.filter(function(e){return 0<=Object.values(m.default.types).indexOf(e)}):t.allowedDevices=[]);return void 0!==e.isTablet&&(t.isTablet=!!e.isTablet),void 0!==e.isMobile&&(t.isMobile=!!e.isMobile),t},
!function i(s,a,c){function l(t,e){if(!a[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=a[t]={exports:{}};s[t][0].call(o.exports,function(e){return l(s[t][1][e]||e)},o,o.exports,i,s,a,c)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.__esModule=!0,n.default=void 0;var d=i(e("@realeyes/environment-detector")),m=i(e("@realeyes/environment-detector/lib/browsers")),p=(i(e("@realeyes/environment-detector/lib/os")),i(e("@realeyes/environment-detector/lib/platform"))),v=i(e("@realeyes/environment-detector/lib/utils/Logger")),h=i(e("uuid/v4")),o=e("./package.json");function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}window.Realeyesit=window.Realeyesit||{},window.Realeyesit.EnvironmentalDetectionAPI={VERSION:o.version,BLACKLISTED_BROWSERS:[[m.default.names.INTERNET_EXPLORER,"0-11"],[m.default.names.FIREFOX,"0-67"],[m.default.names.OPERA,"0-59"],[m.default.names.CHROME,"0-70"],[m.default.names.MICROSOFT_EDGE,"0-17"],[m.default.names.SAFARI,"0-11"],[m.default.names.UC_BROWSER,"0-100"]],BLACKLISTED_OS:[],checkResults:{checksPassed:null,failureReasonCode:null,failureReasonString:null},failureReasonCodes:{BROWSER_NOT_CAPABLE:4,MOBILE_BROWSER:5,NO_WEBCAMS_DETECTED:6,OTHER_ERROR:7,IOS_WEBVIEW:8,UNSUPPORTED_BROWSER:9,TABLET_BROWSER:10,DESKTOP_BROWSER:11,BLACKLISTED:12},sanitizeOptions:function(e){var t={};if(void 0!==e.allowedDevices)if("string"==typeof e.allowedDevices)try{t.allowedDevices=JSON.parse(e.allowedDevices)}catch(e){t.allowedDevices=[]}else e.allowedDevices.constructor===Array&&(Array.prototype.filter&&Object.values?t.allowedDevices=e.allowedDevices.filter(function(e){return 0<=Object.values(p.default.types).indexOf(e)}):t.allowedDevices=[]);return void 0!==e.isTablet&&(t.isTablet=!!e.isTablet),void 0!==e.isMobile&&(t.isMobile=!!e.isMobile),t},
/**

@@ -8,10 +8,10 @@ * Merges default with options (shallow copy only!)

*/
mergeOptionsWithDefaults:function(e,t){for(var n in e)e.hasOwnProperty(n)&&void 0===t[n]&&(t[n]=e[n]);return t},handleDeprecatedOptions:function(e){for(var t={},n=0;n<e.allowedDevices.length;n++)t[e.allowedDevices[n]]=!0;for(var r in void 0!==e.isMobile&&(t[m.default.types.MOBILE]=!!e.isMobile),void 0!==e.isTablet&&(t[m.default.types.TABLET]=!!e.isTablet),e.allowedDevices=[],t)t.hasOwnProperty(r)&&!0===t[r]&&e.allowedDevices.push(r);return e},start:function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=e.logger,i=void 0===o?{}:o,s=e.detect,a=void 0===s?d.default:s,c={allowedDevices:[m.default.types.MOBILE,m.default.types.TABLET,m.default.types.DESKTOP]};r=this.sanitizeOptions(r),r=this.mergeOptionsWithDefaults(c,r),r=this.handleDeprecatedOptions(r);var l={disable:i.disable,sid:(0,h.default)()},u=new v.default(l);u.log("environment-checker started",{version:this.VERSION}),this.clearResults(),this.checkResults.checksPassed=!1;var f={logger:l};u.log("environment-checker calling detector",f),a(f).then(function(e){return u.log("environment-checker received detection result",e),n.checkBrowser(e)?e.browser.name===p.default.names.BLACKLISTED?(n.checkResults.failureReasonCode=n.failureReasonCodes.BLACKLISTED,n.checkResults.failureReasonString="BLACKLISTED"):e.browser.name===p.default.names.IOS_WEBVIEW?(n.checkResults.failureReasonCode=n.failureReasonCodes.IOS_WEBVIEW,n.checkResults.failureReasonString="IOS_WEBVIEW"):e.platform.type===m.default.types.MOBILE&&-1===r.allowedDevices.indexOf(m.default.types.MOBILE)?(n.checkResults.failureReasonCode=n.failureReasonCodes.MOBILE_BROWSER,n.checkResults.failureReasonString="MOBILE_BROWSER"):e.platform.type===m.default.types.TABLET&&-1===r.allowedDevices.indexOf(m.default.types.TABLET)?(n.checkResults.failureReasonCode=n.failureReasonCodes.TABLET_BROWSER,n.checkResults.failureReasonString="TABLET_BROWSER"):e.platform.type===m.default.types.DESKTOP&&-1===r.allowedDevices.indexOf(m.default.types.DESKTOP)?(n.checkResults.failureReasonCode=n.failureReasonCodes.DESKTOP_BROWSER,n.checkResults.failureReasonString="DESKTOP_BROWSER"):0===e.webcams.length?(n.checkResults.failureReasonCode=n.failureReasonCodes.NO_WEBCAMS_DETECTED,n.checkResults.failureReasonString="NO_WEBCAMS_DETECTED"):(n.unsupportedBrowser(e)&&(n.checkResults.failureReasonCode=n.failureReasonCodes.UNSUPPORTED_BROWSER,n.checkResults.failureReasonString="UNSUPPORTED_BROWSER"),n.checkResults.checksPassed=!0):(n.checkResults.failureReasonCode=n.failureReasonCodes.BROWSER_NOT_CAPABLE,n.checkResults.failureReasonString="BROWSER_NOT_CAPABLE"),n.checkOS(e)||(n.checkResults.failureReasonCode=n.failureReasonCodes.MOBILE_BROWSER,n.checkResults.failureReasonString="MOBILE_BROWSER",n.checkResults.checksPassed=!1),n.checkResults.detectorResult=e,u.log("environment-checker result",n.checkResults),t(n.checkResults)},function(e){return n.checkResults.failureReasonCode=n.failureReasonCodes.OTHER_ERROR,n.checkResults.failureReasonString=e.message,u.log("environment-checker error",e),t(n.checkResults)})},checkBrowser:function(e){for(var t=0;t<this.BLACKLISTED_BROWSERS.length;t++){var n=this.BLACKLISTED_BROWSERS[t][0],r=this.BLACKLISTED_BROWSERS[t][1].split("-"),o=[parseInt(r[0],10),parseInt(r[1],10)],i=o[0],s=o[1],a=parseInt(e.browser.version,10);if(n===e.browser.name&&i<=a&&a<=s)return!1}return!0},checkOS:function(t){var n=!0;return this.BLACKLISTED_OS.forEach(function(e){e.includes(t.os.name)&&e.includes(t.os.version)&&(n=!1)}),n},unsupportedBrowser:function(e){for(var t=0;t<this.BLACKLISTED_BROWSERS.length;t++){if(this.BLACKLISTED_BROWSERS[t][0]===e.browser.name)return!1}return!0},clearResults:function(){this.checkResults={checksPassed:null,failureReasonCode:null,failureReasonString:null}}},"object"===s(window._RealeyesitEnvDetectParams)&&"function"==typeof window._RealeyesitEnvDetectParams._callback?window.Realeyesit.EnvironmentalDetectionAPI.start(window._RealeyesitEnvDetectParams._callback,window._RealeyesitEnvDetectParams._options):"function"==typeof window._RealeyesitEnvDetectCallback&&window.Realeyesit.EnvironmentalDetectionAPI.start(window._RealeyesitEnvDetectCallback,(window._RealeyesitEnvDetectParams||{})._options);var a=window.Realeyesit.EnvironmentalDetectionAPI;n.default=a},{"./package.json":18,"@realeyes/environment-detector":4,"@realeyes/environment-detector/lib/browsers":2,"@realeyes/environment-detector/lib/os":5,"@realeyes/environment-detector/lib/platform":6,"@realeyes/environment-detector/lib/utils/Logger":7,"uuid/v4":17}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var i={OPERA:"Opera",SAMSUNG_BROWSER:"Samsung Internet for Android",YANDEX_BROWSER:"Yandex Browser",PUFFIN:"Puffin",WINDOWS_PHONE:"Windows Phone",INTERNET_EXPLORER:"Internet Explorer",MICROSOFT_EDGE:"Microsoft Edge",FIREFOX:"Firefox",AMAZON_SILK:"Amazon Silk",PHANTOM_JS:"PhantomJS",CHROMIUM:"Chromium",CHROME:"Chrome",ANDROID:"Android",SAFARI:"Safari",VIVALDI:"Vivaldi",UC_BROWSER:"UC Browser",SEAMONKEY:"SeaMonkey",IOS_WEBVIEW:"iOS WebView",UNKNOWN:"Unknown",QQ_BROWSER:"QQ Browser",SOGOU_EXPLORER:"Sogou Explorer",ANDROID_WEBVIEW:"Android WebView",BLACKLISTED:"Blacklisted"},s=[{browserName:i.BLACKLISTED,testRegex:/TapResearch|InfoQ|YJApp|infoQApp_Android|AnketkaAndroid/i,versionRegex:null},{browserName:i.VIVALDI,testRegex:/vivaldi/i,versionRegex:/(?:vivaldi)[\s/](\d+(\.\d+)?)/i},{browserName:i.QQ_BROWSER,testRegex:/qqbrowser/i,versionRegex:/(?:qqbrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.ANDROID_WEBVIEW,testRegex:/Android.*(wv|.0.0.0)/i,versionRegex:/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i},{browserName:i.SOGOU_EXPLORER,testRegex:/sogou/i,versionRegex:/(?:sogou)[\s/]((\d+(\.(\d|[A-za-z])+)))/i},{browserName:i.UC_BROWSER,testRegex:/ucbrowser| ubrowser/i,versionRegex:/(?:ucbrowser| ubrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.SEAMONKEY,testRegex:/seamonkey/i,versionRegex:/(?:seamonkey)[\s/](\d+(\.\d+)?)/i},{browserName:i.OPERA,testRegex:/opera\/|opr\//i,versionRegex:/(?:opera |opios\/|opr\/)(\d+(\.\d+)?)/i},{browserName:i.SAMSUNG_BROWSER,testRegex:/SamsungBrowser/i,versionRegex:/(?:SamsungBrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.YANDEX_BROWSER,testRegex:/yabrowser/i,versionRegex:/(?:yabrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.PUFFIN,testRegex:/puffin/i,versionRegex:/(?:puffin)[\s/](\d+(?:\.\d+)?)/i},{browserName:i.WINDOWS_PHONE,testRegex:/windows phone/i,versionRegex:/(?:iemobile|edge)\/(\d+(\.\d+)?)/i},{browserName:i.INTERNET_EXPLORER,testRegex:/msie|trident/i,versionRegex:/(?:msie |rv:)(\d+(\.\d+)?)/i},{browserName:i.MICROSOFT_EDGE,testRegex:/(edge\/)/i,versionRegex:/(?:edge|edg)\/(\d+(\.\d+)?)/i},{browserName:i.FIREFOX,testRegex:/firefox|iceweasel|fxios/i,versionRegex:/(?:firefox|iceweasel|fxios)[ /](\d+(\.\d+)?)/i},{browserName:i.AMAZON_SILK,testRegex:/silk/i,versionRegex:/silk\/(\d+(\.\d+)?)/i},{browserName:i.PHANTOM_JS,testRegex:/phantom/i,versionRegex:/phantomjs\/(\d+(\.\d+)?)/i},{browserName:i.CHROMIUM,testRegex:/chromium/i,versionRegex:/(?:chromium)[\s/](\d+(?:\.\d+)?)/i},{browserName:i.CHROME,testRegex:/chrome|crios|crmo/i,versionRegex:/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i},{browserName:i.ANDROID,testRegex:/android/i,versionRegex:null},{browserName:i.SAFARI,testRegex:/safari/i,versionRegex:/version\/(\d+(\.\d+)?)/i},{browserName:i.IOS_WEBVIEW,testRegex:/(iPhone|iPad).*AppleWebKit(?!.*Safari)/i,versionRegex:null}],a={names:i,detect:function(e){for(var t=0;t<s.length;t++)if(s[t].testRegex.test(e))return{name:s[t].browserName,version:(0,o.default)(e,s[t].versionRegex)||(0,o.default)(e,/version\/(\d+(\.\d+)?)/i)||null};return{name:i.UNKNOWN,version:null}}};n.default=a},{"./utils/getFirstMatch":9}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={GET_USER_MEDIA:"navigator.getUserMedia",MEDIA_RECORDER:"MediaRecorder",WEBCAM:"webcam",DOCUMENT_ALL:"document.all",DOCUMENT_QUERY_SELECTOR:"document.querySelector",HTTP:"http",HTTPS:"https",LOCALHOST:"localhost"},o=[{capabilityName:r.GET_USER_MEDIA,test:function(){return!!(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}},{capabilityName:r.MEDIA_RECORDER,test:function(){return"function"==typeof window.MediaRecorder}},{capabilityName:r.DOCUMENT_ALL,test:function(){return void 0!==document.querySelector}},{capabilityName:r.DOCUMENT_QUERY_SELECTOR,test:function(){return"function"==typeof document.querySelector}},{capabilityName:r.HTTP,test:function(){return"http:"===document.location.protocol}},{capabilityName:r.HTTPS,test:function(){return"https:"===document.location.protocol}},{capabilityName:r.LOCALHOST,test:function(){return"localhost"===document.location.hostname||"127.0.0.1"===document.location.hostname}}],i={names:r,detect:function(){for(var e=[],t=0;t<o.length;t++)o[t].test()&&e.push(o[t].capabilityName);return e}};n.default=i},{}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=navigator.userAgent,r=new l.default(e.logger);return r.log("environment-detector started",e),c.default.detect().then(function(e){var t={browser:o.default.detect(n),platform:i.default.detect(n),os:s.default.detect(n),webcams:e,capabilities:a.default.detect()};return t.browser.name===o.default.names.SAFARI&&"11"<t.browser.version&&!t.capabilities.find(function(e){return e===a.default.names.GET_USER_MEDIA})&&(t.browser.name=o.default.names.IOS_WEBVIEW),r.log("environment-detector result",t),t}).catch(function(e){throw r.log("environment-detector failed",e),e})};var o=r(e("./browsers")),i=r(e("./platform")),s=r(e("./os")),a=r(e("./capabilities")),c=r(e("./webcam")),l=r(e("./utils/Logger"));function r(e){return e&&e.__esModule?e:{default:e}}},{"./browsers":2,"./capabilities":3,"./os":5,"./platform":6,"./utils/Logger":7,"./webcam":10}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var i={WINDOWS_PHONE:"windowsphone",IOS:"ios",ANDROID:"android",MAC_OS:"macos",WINDOWS:"windows",LINUX:"linux",OPENBSD:"openbsd",CHROMEOS:"chromeos",UNKNOWN:"unknown"},s=[{osName:i.WINDOWS_PHONE,testRegex:/windows phone/i,getVersion:function(e){return(0,o.default)(e,/windows phone (?:os)?\s?(\d+(\.\d+)*)/i)}},{osName:i.IOS,testRegex:/(ipod|iphone|ipad)/i,getVersion:function(e){return(0,o.default)(e,/os (\d+([_\s]\d+)*) like mac os x/i).split("_").join(".")}},{osName:i.ANDROID,testRegex:/^((?!.*like android).*android)|silk/i,getVersion:function(e){return(0,o.default)(e,/android[ /-](\d+(\.\d+)*)/i)}},{osName:i.MAC_OS,testRegex:/macintosh/i,getVersion:function(e){return e.replace(/.*?OS X (.*?)(\)|;).*/,"$1").split("_").join(".")}},{osName:i.WINDOWS,testRegex:/windows/i,getVersion:function(e){return e.replace(/.*?Windows (.*?)(\)|;).*/,"$1")}},{osName:i.LINUX,testRegex:/linux/i,getVersion:function(){return null}},{osName:i.OPENBSD,testRegex:/OpenBSD/i,getVersion:function(){return null}},{osName:i.CHROMEOS,testRegex:/CrOS/i,getVersion:function(){return null}}],a={names:i,detect:function(e){for(var t=0;t<s.length;t++)if(s[t].testRegex.test(e))return{name:s[t].osName,version:s[t].getVersion(e)||(0,o.default)(e,/version\/(\d+\.\d+)/i)||null};return{name:i.UNKNOWN,version:null}}};n.default=a},{"./utils/getFirstMatch":9}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,l=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var u={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},o={types:u,detect:function(e){var t=/tablet/i.test(e),n=!t&&/[^-]mobi/i.test(e),r=(0,l.default)(e,/(ipod|iphone|ipad)/i).toLowerCase(),o=!/like android/i.test(e)&&/android/i.test(e),i=/nexus\s*[0-6]\s*/i.test(e),s=!i&&/nexus\s*[0-9]+/i.test(e),a=(0,l.default)(e,/android[ /-](\d+(\.\d+)*)/i).split(".")[0],c=/silk/i.test(e);return t||s||"ipad"===r||o&&(3==+a||4<=+a&&!n)||c?{type:u.TABLET}:n||i?{type:u.MOBILE}:{type:u.DESKTOP}}};n.default=o},{"./utils/getFirstMatch":9}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(e("native-promise-only")),i=o(e("json3")),l=o(e("uuid/v4")),r=o(e("./currentScriptPath"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u="".concat(r.default,"log.gif"),a=function(){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.path,n=void 0===t?u:t,r=e.disable,o=void 0!==r&&r,i=e.sid,s=void 0===i?(0,l.default)():i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.sid=s,this.pending=c.default.resolve(),this.path=n,this.disabled=o}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(a,[{key:"log",value:function(e){var r=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.disabled){var o={ts:+new Date,sid:this.sid,name:e,data:t};this.pending=this.pending.then(new c.default(function(e){var t=document.createElement("img"),n=function(){t.parentNode.removeChild(t),e()};t.style.position="absolute",t.style.top="-10px",t.onload=n,t.onerror=n,t.src="".concat(r.path,"?msg=").concat(encodeURIComponent(i.default.stringify(o))),document.body.appendChild(t)}))}}}]),a}();n.default=a},{"./currentScriptPath":8,json3:11,"native-promise-only":12,"uuid/v4":17}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(){if(null!=document.currentScript)return"".concat(document.currentScript.src.split("/").slice(0,-1).join("/"),"/");var e=document.getElementsByTagName("script"),t=e[e.length-1].src.split("?")[0];return"".concat(t.split("/").slice(0,-1).join("/"),"/")}();n.default=r},{}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e,t){var n=e.match(t);return n&&1<n.length?n[1]:""}},{}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={detect:function(){return console.log("detect devices invoked"),navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices().then(function(e){var t=[];console.log("devices:",e.length);for(var n=0;n<e.length;n++)if("videoinput"===e[n].kind){var r=e[n].label?e[n].label:"unknown";t.push(r)}var o=navigator.userAgent,i=o.toLowerCase().includes("mac os x"),s=o.toLowerCase().includes("safari"),a=o.toLowerCase().includes("version/13.1");if(0==t.length&&i&&s&&a){var c=0;e.forEach(function(e){"audioinput"===e.kind&&c++}),2<=c&&t.push("unknown")}return t}):(console.log("detect devices failed"),Promise.resolve(["cantGetDevices"]))}};n.default=r},{}],11:[function(e,c,l){(function(a){"use strict";function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var e="function"==typeof define&&define.amd,W={function:!0,object:!0},t=W[void 0===l?"undefined":K(l)]&&l&&!l.nodeType&&l,U=W["undefined"==typeof window?"undefined":K(window)]&&window||this,n=t&&W[void 0===c?"undefined":K(c)]&&c&&!c.nodeType&&"object"==(void 0===a?"undefined":K(a))&&a;function F(e,c){e||(e=U.Object()),c||(c=U.Object());var l=e.Number||U.Number,u=e.String||U.String,t=e.Object||U.Object,g=e.Date||U.Date,n=e.SyntaxError||U.SyntaxError,y=e.TypeError||U.TypeError,p=e.Math||U.Math,r=e.JSON||U.JSON;"object"==K(r)&&r&&(c.stringify=r.stringify,c.parse=r.parse);var b,o=t.prototype,R=o.toString,a=o.hasOwnProperty;function E(e,t){try{e()}catch(e){t&&t()}}var m=new g(-0xc782b5b800cec);function f(e){if(null!=f[e])return f[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=f("json-stringify")&&f("date-serialization")&&f("json-parse");else if("date-serialization"==e){if(t=f("json-stringify")&&m){var n=c.stringify;E(function(){t='"-271821-04-20T00:00:00.000Z"'==n(new g(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==n(new g(864e13))&&'"-000001-01-01T00:00:00.000Z"'==n(new g(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==n(new g(-1))})}}else{var r,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var i="function"==typeof(n=c.stringify);i&&((r=function(){return 1}).toJSON=r,E(function(){i="0"===n(0)&&"0"===n(new l)&&'""'==n(new u)&&n(R)===b&&n(b)===b&&n()===b&&"1"===n(r)&&"[1]"==n([r])&&"[null]"==n([b])&&"null"==n(null)&&"[null,null,null]"==n([b,R,null])&&n({a:[r,!0,!1,null,"\0\b\n\f\r\t"]})==o&&"1"===n(null,r)&&"[\n 1,\n 2\n]"==n([1,2],null,1)},function(){i=!1})),t=i}if("json-parse"==e){var s,a=c.parse;"function"==typeof a&&E(function(){0!==a("0")||a(!1)||(r=a(o),(s=5==r.a.length&&1===r.a[0])&&(E(function(){s=!a('"\t"')}),s&&E(function(){s=1!==a("01")}),s&&E(function(){s=1!==a("1.")})))},function(){s=!1}),t=s}}return f[e]=!!t}if(E(function(){m=-109252==m.getUTCFullYear()&&0===m.getUTCMonth()&&1===m.getUTCDate()&&10==m.getUTCHours()&&37==m.getUTCMinutes()&&6==m.getUTCSeconds()&&708==m.getUTCMilliseconds()}),f["bug-string-char-index"]=f["date-serialization"]=f.json=f["json-stringify"]=f["json-parse"]=null,!f("json")){var d="[object Function]",w="[object Number]",O="[object String]",S="[object Array]",v=f("bug-string-char-index"),_=function(e,t){var n,s,r,o=0;for(r in(n=function(){this.valueOf=0}).prototype.valueOf=0,s=new n)a.call(s,r)&&o++;return n=s=null,(_=o?function(e,t){var n,r,o=R.call(e)==d;for(n in e)o&&"prototype"==n||!a.call(e,n)||(r="constructor"===n)||t(n);(r||a.call(e,n="constructor"))&&t(n)}:(s=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],function(e,t){var n,r,o=R.call(e)==d,i=!o&&"function"!=typeof e.constructor&&W[K(e.hasOwnProperty)]&&e.hasOwnProperty||a;for(n in e)o&&"prototype"==n||!i.call(e,n)||t(n);for(r=s.length;n=s[--r];)i.call(e,n)&&t(n)}))(e,t)};if(!f("json-stringify")&&!f("date-serialization")){var i={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},h=function(e,t){
mergeOptionsWithDefaults:function(e,t){for(var n in e)e.hasOwnProperty(n)&&void 0===t[n]&&(t[n]=e[n]);return t},handleDeprecatedOptions:function(e){for(var t={},n=0;n<e.allowedDevices.length;n++)t[e.allowedDevices[n]]=!0;for(var r in void 0!==e.isMobile&&(t[p.default.types.MOBILE]=!!e.isMobile),void 0!==e.isTablet&&(t[p.default.types.TABLET]=!!e.isTablet),e.allowedDevices=[],t)t.hasOwnProperty(r)&&!0===t[r]&&e.allowedDevices.push(r);return e},start:function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=e.logger,i=void 0===o?{}:o,s=e.detect,a=void 0===s?d.default:s,c={allowedDevices:[p.default.types.MOBILE,p.default.types.TABLET,p.default.types.DESKTOP]};r=this.sanitizeOptions(r),r=this.mergeOptionsWithDefaults(c,r),r=this.handleDeprecatedOptions(r);var l={disable:i.disable,sid:(0,h.default)()},u=new v.default(l);u.log("environment-checker started",{version:this.VERSION}),navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?u.log("mediadevices-found",{data:this.VERSION}):u.log("mediadevices-failed",{data:this.VERSION}),navigator.mediaDevices.enumerateDevices().then(function(e){u.log("mediadevices-length",{data:e.length})}).catch(function(e){u.log("mediadevices-errors",{data:e.name+": "+e.message})}),this.clearResults(),this.checkResults.checksPassed=!1;var f={logger:l};u.log("environment-checker calling detector",f),a(f).then(function(e){return u.log("environment-checker received detection result",e),n.checkBrowser(e)?e.browser.name===m.default.names.BLACKLISTED?(n.checkResults.failureReasonCode=n.failureReasonCodes.BLACKLISTED,n.checkResults.failureReasonString="BLACKLISTED"):e.browser.name===m.default.names.IOS_WEBVIEW?(n.checkResults.failureReasonCode=n.failureReasonCodes.IOS_WEBVIEW,n.checkResults.failureReasonString="IOS_WEBVIEW"):e.platform.type===p.default.types.MOBILE&&-1===r.allowedDevices.indexOf(p.default.types.MOBILE)?(n.checkResults.failureReasonCode=n.failureReasonCodes.MOBILE_BROWSER,n.checkResults.failureReasonString="MOBILE_BROWSER"):e.platform.type===p.default.types.TABLET&&-1===r.allowedDevices.indexOf(p.default.types.TABLET)?(n.checkResults.failureReasonCode=n.failureReasonCodes.TABLET_BROWSER,n.checkResults.failureReasonString="TABLET_BROWSER"):e.platform.type===p.default.types.DESKTOP&&-1===r.allowedDevices.indexOf(p.default.types.DESKTOP)?(n.checkResults.failureReasonCode=n.failureReasonCodes.DESKTOP_BROWSER,n.checkResults.failureReasonString="DESKTOP_BROWSER"):0===e.webcams.length?(n.checkResults.failureReasonCode=n.failureReasonCodes.NO_WEBCAMS_DETECTED,n.checkResults.failureReasonString="NO_WEBCAMS_DETECTED"):(n.unsupportedBrowser(e)&&(n.checkResults.failureReasonCode=n.failureReasonCodes.UNSUPPORTED_BROWSER,n.checkResults.failureReasonString="UNSUPPORTED_BROWSER"),n.checkResults.checksPassed=!0):(n.checkResults.failureReasonCode=n.failureReasonCodes.BROWSER_NOT_CAPABLE,n.checkResults.failureReasonString="BROWSER_NOT_CAPABLE"),n.checkOS(e)||(n.checkResults.failureReasonCode=n.failureReasonCodes.MOBILE_BROWSER,n.checkResults.failureReasonString="MOBILE_BROWSER",n.checkResults.checksPassed=!1),n.checkResults.detectorResult=e,u.log("environment-checker result",n.checkResults),t(n.checkResults)},function(e){return n.checkResults.failureReasonCode=n.failureReasonCodes.OTHER_ERROR,n.checkResults.failureReasonString=e.message,u.log("environment-checker error",e),t(n.checkResults)})},checkBrowser:function(e){for(var t=0;t<this.BLACKLISTED_BROWSERS.length;t++){var n=this.BLACKLISTED_BROWSERS[t][0],r=this.BLACKLISTED_BROWSERS[t][1].split("-"),o=[parseInt(r[0],10),parseInt(r[1],10)],i=o[0],s=o[1],a=parseInt(e.browser.version,10);if(n===e.browser.name&&i<=a&&a<=s)return!1}return!0},checkOS:function(t){var n=!0;return this.BLACKLISTED_OS.forEach(function(e){e.includes(t.os.name)&&e.includes(t.os.version)&&(n=!1)}),n},unsupportedBrowser:function(e){for(var t=0;t<this.BLACKLISTED_BROWSERS.length;t++){if(this.BLACKLISTED_BROWSERS[t][0]===e.browser.name)return!1}return!0},clearResults:function(){this.checkResults={checksPassed:null,failureReasonCode:null,failureReasonString:null}}},"object"===s(window._RealeyesitEnvDetectParams)&&"function"==typeof window._RealeyesitEnvDetectParams._callback?window.Realeyesit.EnvironmentalDetectionAPI.start(window._RealeyesitEnvDetectParams._callback,window._RealeyesitEnvDetectParams._options):"function"==typeof window._RealeyesitEnvDetectCallback&&window.Realeyesit.EnvironmentalDetectionAPI.start(window._RealeyesitEnvDetectCallback,(window._RealeyesitEnvDetectParams||{})._options);var a=window.Realeyesit.EnvironmentalDetectionAPI;n.default=a},{"./package.json":18,"@realeyes/environment-detector":4,"@realeyes/environment-detector/lib/browsers":2,"@realeyes/environment-detector/lib/os":5,"@realeyes/environment-detector/lib/platform":6,"@realeyes/environment-detector/lib/utils/Logger":7,"uuid/v4":17}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var i={OPERA:"Opera",SAMSUNG_BROWSER:"Samsung Internet for Android",YANDEX_BROWSER:"Yandex Browser",PUFFIN:"Puffin",WINDOWS_PHONE:"Windows Phone",INTERNET_EXPLORER:"Internet Explorer",MICROSOFT_EDGE:"Microsoft Edge",FIREFOX:"Firefox",AMAZON_SILK:"Amazon Silk",PHANTOM_JS:"PhantomJS",CHROMIUM:"Chromium",CHROME:"Chrome",ANDROID:"Android",SAFARI:"Safari",VIVALDI:"Vivaldi",UC_BROWSER:"UC Browser",SEAMONKEY:"SeaMonkey",IOS_WEBVIEW:"iOS WebView",UNKNOWN:"Unknown",QQ_BROWSER:"QQ Browser",SOGOU_EXPLORER:"Sogou Explorer",ANDROID_WEBVIEW:"Android WebView",BLACKLISTED:"Blacklisted"},s=[{browserName:i.BLACKLISTED,testRegex:/TapResearch|InfoQ|YJApp|infoQApp_Android|AnketkaAndroid/i,versionRegex:null},{browserName:i.VIVALDI,testRegex:/vivaldi/i,versionRegex:/(?:vivaldi)[\s/](\d+(\.\d+)?)/i},{browserName:i.QQ_BROWSER,testRegex:/qqbrowser/i,versionRegex:/(?:qqbrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.ANDROID_WEBVIEW,testRegex:/Android.*(wv|.0.0.0)/i,versionRegex:/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i},{browserName:i.SOGOU_EXPLORER,testRegex:/sogou/i,versionRegex:/(?:sogou)[\s/]((\d+(\.(\d|[A-za-z])+)))/i},{browserName:i.UC_BROWSER,testRegex:/ucbrowser| ubrowser/i,versionRegex:/(?:ucbrowser| ubrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.SEAMONKEY,testRegex:/seamonkey/i,versionRegex:/(?:seamonkey)[\s/](\d+(\.\d+)?)/i},{browserName:i.OPERA,testRegex:/opera\/|opr\//i,versionRegex:/(?:opera |opios\/|opr\/)(\d+(\.\d+)?)/i},{browserName:i.SAMSUNG_BROWSER,testRegex:/SamsungBrowser/i,versionRegex:/(?:SamsungBrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.YANDEX_BROWSER,testRegex:/yabrowser/i,versionRegex:/(?:yabrowser)[\s/](\d+(\.\d+)?)/i},{browserName:i.PUFFIN,testRegex:/puffin/i,versionRegex:/(?:puffin)[\s/](\d+(?:\.\d+)?)/i},{browserName:i.WINDOWS_PHONE,testRegex:/windows phone/i,versionRegex:/(?:iemobile|edge)\/(\d+(\.\d+)?)/i},{browserName:i.INTERNET_EXPLORER,testRegex:/msie|trident/i,versionRegex:/(?:msie |rv:)(\d+(\.\d+)?)/i},{browserName:i.MICROSOFT_EDGE,testRegex:/(edge\/)/i,versionRegex:/(?:edge|edg)\/(\d+(\.\d+)?)/i},{browserName:i.FIREFOX,testRegex:/firefox|iceweasel|fxios/i,versionRegex:/(?:firefox|iceweasel|fxios)[ /](\d+(\.\d+)?)/i},{browserName:i.AMAZON_SILK,testRegex:/silk/i,versionRegex:/silk\/(\d+(\.\d+)?)/i},{browserName:i.PHANTOM_JS,testRegex:/phantom/i,versionRegex:/phantomjs\/(\d+(\.\d+)?)/i},{browserName:i.CHROMIUM,testRegex:/chromium/i,versionRegex:/(?:chromium)[\s/](\d+(?:\.\d+)?)/i},{browserName:i.CHROME,testRegex:/chrome|crios|crmo/i,versionRegex:/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i},{browserName:i.ANDROID,testRegex:/android/i,versionRegex:null},{browserName:i.SAFARI,testRegex:/safari/i,versionRegex:/version\/(\d+(\.\d+)?)/i},{browserName:i.IOS_WEBVIEW,testRegex:/(iPhone|iPad).*AppleWebKit(?!.*Safari)/i,versionRegex:null}],a={names:i,detect:function(e){for(var t=0;t<s.length;t++)if(s[t].testRegex.test(e))return{name:s[t].browserName,version:(0,o.default)(e,s[t].versionRegex)||(0,o.default)(e,/version\/(\d+(\.\d+)?)/i)||null};return{name:i.UNKNOWN,version:null}}};n.default=a},{"./utils/getFirstMatch":9}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={GET_USER_MEDIA:"navigator.getUserMedia",MEDIA_RECORDER:"MediaRecorder",WEBCAM:"webcam",DOCUMENT_ALL:"document.all",DOCUMENT_QUERY_SELECTOR:"document.querySelector",HTTP:"http",HTTPS:"https",LOCALHOST:"localhost"},o=[{capabilityName:r.GET_USER_MEDIA,test:function(){return!!(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}},{capabilityName:r.MEDIA_RECORDER,test:function(){return"function"==typeof window.MediaRecorder}},{capabilityName:r.DOCUMENT_ALL,test:function(){return void 0!==document.querySelector}},{capabilityName:r.DOCUMENT_QUERY_SELECTOR,test:function(){return"function"==typeof document.querySelector}},{capabilityName:r.HTTP,test:function(){return"http:"===document.location.protocol}},{capabilityName:r.HTTPS,test:function(){return"https:"===document.location.protocol}},{capabilityName:r.LOCALHOST,test:function(){return"localhost"===document.location.hostname||"127.0.0.1"===document.location.hostname}}],i={names:r,detect:function(){for(var e=[],t=0;t<o.length;t++)o[t].test()&&e.push(o[t].capabilityName);return e}};n.default=i},{}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=navigator.userAgent,r=new l.default(e.logger);return r.log("environment-detector started",e),c.default.detect().then(function(e){var t={browser:o.default.detect(n),platform:i.default.detect(n),os:s.default.detect(n),webcams:e,capabilities:a.default.detect()};return t.browser.name===o.default.names.SAFARI&&"11"<t.browser.version&&!t.capabilities.find(function(e){return e===a.default.names.GET_USER_MEDIA})&&(t.browser.name=o.default.names.IOS_WEBVIEW),r.log("environment-detector result",t),t}).catch(function(e){throw r.log("environment-detector failed",e),e})};var o=r(e("./browsers")),i=r(e("./platform")),s=r(e("./os")),a=r(e("./capabilities")),c=r(e("./webcam")),l=r(e("./utils/Logger"));function r(e){return e&&e.__esModule?e:{default:e}}},{"./browsers":2,"./capabilities":3,"./os":5,"./platform":6,"./utils/Logger":7,"./webcam":10}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var i={WINDOWS_PHONE:"windowsphone",IOS:"ios",ANDROID:"android",MAC_OS:"macos",WINDOWS:"windows",LINUX:"linux",OPENBSD:"openbsd",CHROMEOS:"chromeos",UNKNOWN:"unknown"},s=[{osName:i.WINDOWS_PHONE,testRegex:/windows phone/i,getVersion:function(e){return(0,o.default)(e,/windows phone (?:os)?\s?(\d+(\.\d+)*)/i)}},{osName:i.IOS,testRegex:/(ipod|iphone|ipad)/i,getVersion:function(e){return(0,o.default)(e,/os (\d+([_\s]\d+)*) like mac os x/i).split("_").join(".")}},{osName:i.ANDROID,testRegex:/^((?!.*like android).*android)|silk/i,getVersion:function(e){return(0,o.default)(e,/android[ /-](\d+(\.\d+)*)/i)}},{osName:i.MAC_OS,testRegex:/macintosh/i,getVersion:function(e){return e.replace(/.*?OS X (.*?)(\)|;).*/,"$1").split("_").join(".")}},{osName:i.WINDOWS,testRegex:/windows/i,getVersion:function(e){return e.replace(/.*?Windows (.*?)(\)|;).*/,"$1")}},{osName:i.LINUX,testRegex:/linux/i,getVersion:function(){return null}},{osName:i.OPENBSD,testRegex:/OpenBSD/i,getVersion:function(){return null}},{osName:i.CHROMEOS,testRegex:/CrOS/i,getVersion:function(){return null}}],a={names:i,detect:function(e){for(var t=0;t<s.length;t++)if(s[t].testRegex.test(e))return{name:s[t].osName,version:s[t].getVersion(e)||(0,o.default)(e,/version\/(\d+\.\d+)/i)||null};return{name:i.UNKNOWN,version:null}}};n.default=a},{"./utils/getFirstMatch":9}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,l=(r=e("./utils/getFirstMatch"))&&r.__esModule?r:{default:r};var u={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},o={types:u,detect:function(e){var t=/tablet/i.test(e),n=!t&&/[^-]mobi/i.test(e),r=(0,l.default)(e,/(ipod|iphone|ipad)/i).toLowerCase(),o=!/like android/i.test(e)&&/android/i.test(e),i=/nexus\s*[0-6]\s*/i.test(e),s=!i&&/nexus\s*[0-9]+/i.test(e),a=(0,l.default)(e,/android[ /-](\d+(\.\d+)*)/i).split(".")[0],c=/silk/i.test(e);return t||s||"ipad"===r||o&&(3==+a||4<=+a&&!n)||c?{type:u.TABLET}:n||i?{type:u.MOBILE}:{type:u.DESKTOP}}};n.default=o},{"./utils/getFirstMatch":9}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(e("native-promise-only")),i=o(e("json3")),l=o(e("uuid/v4")),r=o(e("./currentScriptPath"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u="".concat(r.default,"log.gif"),a=function(){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.path,n=void 0===t?u:t,r=e.disable,o=void 0!==r&&r,i=e.sid,s=void 0===i?(0,l.default)():i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.sid=s,this.pending=c.default.resolve(),this.path=n,this.disabled=o}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(a,[{key:"log",value:function(e){var r=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.disabled){var o={ts:+new Date,sid:this.sid,name:e,data:t};this.pending=this.pending.then(new c.default(function(e){var t=document.createElement("img"),n=function(){t.parentNode.removeChild(t),e()};t.style.position="absolute",t.style.top="-10px",t.onload=n,t.onerror=n,t.src="".concat(r.path,"?msg=").concat(encodeURIComponent(i.default.stringify(o))),document.body.appendChild(t)}))}}}]),a}();n.default=a},{"./currentScriptPath":8,json3:11,"native-promise-only":12,"uuid/v4":17}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(){if(null!=document.currentScript)return"".concat(document.currentScript.src.split("/").slice(0,-1).join("/"),"/");var e=document.getElementsByTagName("script"),t=e[e.length-1].src.split("?")[0];return"".concat(t.split("/").slice(0,-1).join("/"),"/")}();n.default=r},{}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e,t){var n=e.match(t);return n&&1<n.length?n[1]:""}},{}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={detect:function(){return console.log("detect devices invoked"),navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices().then(function(e){var t=[];console.log("devices:",e.length);for(var n=0;n<e.length;n++)if("videoinput"===e[n].kind){var r=e[n].label?e[n].label:"unknown";t.push(r)}var o=navigator.userAgent,i=o.toLowerCase().includes("mac os x"),s=o.toLowerCase().includes("safari"),a=o.toLowerCase().includes("version/13.1");if(0==t.length&&i&&s&&a){var c=0;e.forEach(function(e){"audioinput"===e.kind&&c++}),2<=c&&t.push("unknown")}return t}):(console.log("detect devices failed"),Promise.resolve(["cantGetDevices"]))}};n.default=r},{}],11:[function(e,c,l){(function(a){"use strict";function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var e="function"==typeof define&&define.amd,W={function:!0,object:!0},t=W[void 0===l?"undefined":F(l)]&&l&&!l.nodeType&&l,U=W["undefined"==typeof window?"undefined":F(window)]&&window||this,n=t&&W[void 0===c?"undefined":F(c)]&&c&&!c.nodeType&&"object"==(void 0===a?"undefined":F(a))&&a;function V(e,c){e||(e=U.Object()),c||(c=U.Object());var l=e.Number||U.Number,u=e.String||U.String,t=e.Object||U.Object,g=e.Date||U.Date,n=e.SyntaxError||U.SyntaxError,y=e.TypeError||U.TypeError,m=e.Math||U.Math,r=e.JSON||U.JSON;"object"==F(r)&&r&&(c.stringify=r.stringify,c.parse=r.parse);var b,o=t.prototype,R=o.toString,a=o.hasOwnProperty;function E(e,t){try{e()}catch(e){t&&t()}}var p=new g(-0xc782b5b800cec);function f(e){if(null!=f[e])return f[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=f("json-stringify")&&f("date-serialization")&&f("json-parse");else if("date-serialization"==e){if(t=f("json-stringify")&&p){var n=c.stringify;E(function(){t='"-271821-04-20T00:00:00.000Z"'==n(new g(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==n(new g(864e13))&&'"-000001-01-01T00:00:00.000Z"'==n(new g(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==n(new g(-1))})}}else{var r,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var i="function"==typeof(n=c.stringify);i&&((r=function(){return 1}).toJSON=r,E(function(){i="0"===n(0)&&"0"===n(new l)&&'""'==n(new u)&&n(R)===b&&n(b)===b&&n()===b&&"1"===n(r)&&"[1]"==n([r])&&"[null]"==n([b])&&"null"==n(null)&&"[null,null,null]"==n([b,R,null])&&n({a:[r,!0,!1,null,"\0\b\n\f\r\t"]})==o&&"1"===n(null,r)&&"[\n 1,\n 2\n]"==n([1,2],null,1)},function(){i=!1})),t=i}if("json-parse"==e){var s,a=c.parse;"function"==typeof a&&E(function(){0!==a("0")||a(!1)||(r=a(o),(s=5==r.a.length&&1===r.a[0])&&(E(function(){s=!a('"\t"')}),s&&E(function(){s=1!==a("01")}),s&&E(function(){s=1!==a("1.")})))},function(){s=!1}),t=s}}return f[e]=!!t}if(E(function(){p=-109252==p.getUTCFullYear()&&0===p.getUTCMonth()&&1===p.getUTCDate()&&10==p.getUTCHours()&&37==p.getUTCMinutes()&&6==p.getUTCSeconds()&&708==p.getUTCMilliseconds()}),f["bug-string-char-index"]=f["date-serialization"]=f.json=f["json-stringify"]=f["json-parse"]=null,!f("json")){var d="[object Function]",w="[object Number]",O="[object String]",S="[object Array]",v=f("bug-string-char-index"),_=function(e,t){var n,s,r,o=0;for(r in(n=function(){this.valueOf=0}).prototype.valueOf=0,s=new n)a.call(s,r)&&o++;return n=s=null,(_=o?function(e,t){var n,r,o=R.call(e)==d;for(n in e)o&&"prototype"==n||!a.call(e,n)||(r="constructor"===n)||t(n);(r||a.call(e,n="constructor"))&&t(n)}:(s=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],function(e,t){var n,r,o=R.call(e)==d,i=!o&&"function"!=typeof e.constructor&&W[F(e.hasOwnProperty)]&&e.hasOwnProperty||a;for(n in e)o&&"prototype"==n||!i.call(e,n)||t(n);for(r=s.length;n=s[--r];)i.call(e,n)&&t(n)}))(e,t)};if(!f("json-stringify")&&!f("date-serialization")){var i={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},h=function(e,t){
// Opera <= 7.54u2 where `0 == -0`, but `String(-0) !== "0"`.
return("000000"+(t||0)).slice(-e)},T=function(e){var t,n,r,o,i,s,a,c,l;if(m)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=e.getUTCMilliseconds()};else{var u=p.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],d=function(e,t){return f[t]+365*(e-1970)+u((e-1969+(t=+(1<t)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(o=u(e/864e5),n=u(o/365.2425)+1970-1;d(n+1,0)<=o;n++);for(r=u((o-d(n,0))/30.42);d(n,r+1)<=o;r++);o=1+o-d(n,r),s=u((i=(e%864e5+864e5)%864e5)/36e5)%24,a=u(i/6e4)%60,c=u(i/1e3)%60,l=i%1e3}}return(T=function(e){return-1/0<e&&e<1/0?(t(e),e=(n<=0||1e4<=n?(n<0?"-":"+")+h(6,n<0?-n:n):h(4,n))+"-"+h(2,r+1)+"-"+h(2,o)+"T"+h(2,s)+":"+h(2,a)+":"+h(2,c)+"."+h(3,l)+"Z",n=r=o=s=a=c=l=null):e=null,e})(e)};if(f("json-stringify")&&!f("date-serialization")){var s=function(e){return T(this)},N=c.stringify;c.stringify=function(e,t,n){var r=g.prototype.toJSON;g.prototype.toJSON=s;var o=N(e,t,n);return g.prototype.toJSON=r,o}}else{var A=function(e){var t=e.charCodeAt(0),n=i[t];return n||"\\u00"+h(2,t.toString(16))},C=/[\x00-\x1f\x22\x5c]/g,D=function(e){return C.lastIndex=0,'"'+(C.test(e)?e.replace(C,A):e)+'"'};c.stringify=function(e,t,n){var r,o,i,s;if(W[K(t)]&&t)if((s=R.call(t))==d)o=t;else if(s==S){i={};for(var a,c=0,l=t.length;c<l;)a=t[c++],"[object String]"!=(s=R.call(a))&&"[object Number]"!=s||(i[a]=1)}if(n)if((s=R.call(n))==w){if(0<(n-=n%1))for(10<n&&(n=10),r="";r.length<n;)r+=" "}else s==O&&(r=n.length<=10?n:n.slice(0,10));
return("000000"+(t||0)).slice(-e)},T=function(e){var t,n,r,o,i,s,a,c,l;if(p)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=e.getUTCMilliseconds()};else{var u=m.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],d=function(e,t){return f[t]+365*(e-1970)+u((e-1969+(t=+(1<t)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(o=u(e/864e5),n=u(o/365.2425)+1970-1;d(n+1,0)<=o;n++);for(r=u((o-d(n,0))/30.42);d(n,r+1)<=o;r++);o=1+o-d(n,r),s=u((i=(e%864e5+864e5)%864e5)/36e5)%24,a=u(i/6e4)%60,c=u(i/1e3)%60,l=i%1e3}}return(T=function(e){return-1/0<e&&e<1/0?(t(e),e=(n<=0||1e4<=n?(n<0?"-":"+")+h(6,n<0?-n:n):h(4,n))+"-"+h(2,r+1)+"-"+h(2,o)+"T"+h(2,s)+":"+h(2,a)+":"+h(2,c)+"."+h(3,l)+"Z",n=r=o=s=a=c=l=null):e=null,e})(e)};if(f("json-stringify")&&!f("date-serialization")){var s=function(e){return T(this)},N=c.stringify;c.stringify=function(e,t,n){var r=g.prototype.toJSON;g.prototype.toJSON=s;var o=N(e,t,n);return g.prototype.toJSON=r,o}}else{var A=function(e){var t=e.charCodeAt(0),n=i[t];return n||"\\u00"+h(2,t.toString(16))},D=/[\x00-\x1f\x22\x5c]/g,C=function(e){return D.lastIndex=0,'"'+(D.test(e)?e.replace(D,A):e)+'"'};c.stringify=function(e,t,n){var r,o,i,s;if(W[F(t)]&&t)if((s=R.call(t))==d)o=t;else if(s==S){i={};for(var a,c=0,l=t.length;c<l;)a=t[c++],"[object String]"!=(s=R.call(a))&&"[object Number]"!=s||(i[a]=1)}if(n)if((s=R.call(n))==w){if(0<(n-=n%1))for(10<n&&(n=10),r="";r.length<n;)r+=" "}else s==O&&(r=n.length<=10?n:n.slice(0,10));
// (e.g., `!("" in { "": 1})`).
return function n(e,t,r,o,i,s,a){var c,l,u,f,d,p,m,v,h;if(E(function(){c=t[e]}),"object"==K(c)&&c&&(c.getUTCFullYear&&"[object Date]"==R.call(c)&&c.toJSON===g.prototype.toJSON?c=T(c):"function"==typeof c.toJSON&&(c=c.toJSON(e))),r&&(c=r.call(t,e,c)),c==b)return c===b?c:"null";switch("object"==(l=K(c))&&(u=R.call(c)),u||l){case"boolean":case"[object Boolean]":return""+c;case"number":case w:return-1/0<c&&c<1/0?""+c:"null";case"string":case O:return D(""+c)}if("object"==K(c)){for(m=a.length;m--;)if(a[m]===c)throw y();if(a.push(c),f=[],v=s,s+=i,u==S){for(p=0,m=c.length;p<m;p++)d=n(p,c,r,o,i,s,a),f.push(d===b?"null":d);h=f.length?i?"[\n"+s+f.join(",\n"+s)+"\n"+v+"]":"["+f.join(",")+"]":"[]"}else _(o||c,function(e){var t=n(e,c,r,o,i,s,a);t!==b&&f.push(D(e)+":"+(i?" ":"")+t)}),h=f.length?i?"{\n"+s+f.join(",\n"+s)+"\n"+v+"}":"{"+f.join(",")+"}":"{}";return a.pop(),h}}("",((a={})[""]=e,a),o,i,r,"",[])}}}if(!f("json-parse")){var I,x,k=u.fromCharCode,B={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},j=function(){throw I=x=null,n()},M=function(){for(var e,t,n,r,o,i=x,s=i.length;I<s;)switch(o=i.charCodeAt(I)){case 9:case 10:case 13:case 32:I++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=v?i.charAt(I):i[I],I++,e;case 34:for(e="@",I++;I<s;)if((o=i.charCodeAt(I))<32)j();else if(92==o)switch(o=i.charCodeAt(++I)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=B[o],I++;break;case 117:for(t=++I,n=I+4;I<n;I++)48<=(o=i.charCodeAt(I))&&o<=57||97<=o&&o<=102||65<=o&&o<=70||j();e+=k("0x"+i.slice(t,I));break;default:j()}else{if(34==o)break;for(o=i.charCodeAt(I),t=I;32<=o&&92!=o&&34!=o;)o=i.charCodeAt(++I);e+=i.slice(t,I)}if(34==i.charCodeAt(I))return I++,e;j();default:if(t=I,45==o&&(r=!0,o=i.charCodeAt(++I)),48<=o&&o<=57){for(48==o&&(48<=(o=i.charCodeAt(I+1))&&o<=57)&&j(),r=!1;I<s&&(48<=(o=i.charCodeAt(I))&&o<=57);I++);if(46==i.charCodeAt(I)){for(n=++I;n<s&&!((o=i.charCodeAt(n))<48||57<o);n++);n==I&&j(),I=n}if(101==(o=i.charCodeAt(I))||69==o){for(43!=(o=i.charCodeAt(++I))&&45!=o||I++,n=I;n<s&&!((o=i.charCodeAt(n))<48||57<o);n++);n==I&&j(),I=n}return+i.slice(t,I)}r&&j();var a=i.slice(I,I+4);if("true"==a)return I+=4,!0;if("fals"==a&&101==i.charCodeAt(I+4))return I+=5,!1;if("null"==a)return I+=4,null;j()}return"$"},P=function(e,t,n){var r=L(e,t,n);r===b?delete e[t]:e[t]=r},L=function(e,t,n){var r,o=e[t];if("object"==K(o)&&o)
return function n(e,t,r,o,i,s,a){var c,l,u,f,d,m,p,v,h;if(E(function(){c=t[e]}),"object"==F(c)&&c&&(c.getUTCFullYear&&"[object Date]"==R.call(c)&&c.toJSON===g.prototype.toJSON?c=T(c):"function"==typeof c.toJSON&&(c=c.toJSON(e))),r&&(c=r.call(t,e,c)),c==b)return c===b?c:"null";switch("object"==(l=F(c))&&(u=R.call(c)),u||l){case"boolean":case"[object Boolean]":return""+c;case"number":case w:return-1/0<c&&c<1/0?""+c:"null";case"string":case O:return C(""+c)}if("object"==F(c)){for(p=a.length;p--;)if(a[p]===c)throw y();if(a.push(c),f=[],v=s,s+=i,u==S){for(m=0,p=c.length;m<p;m++)d=n(m,c,r,o,i,s,a),f.push(d===b?"null":d);h=f.length?i?"[\n"+s+f.join(",\n"+s)+"\n"+v+"]":"["+f.join(",")+"]":"[]"}else _(o||c,function(e){var t=n(e,c,r,o,i,s,a);t!==b&&f.push(C(e)+":"+(i?" ":"")+t)}),h=f.length?i?"{\n"+s+f.join(",\n"+s)+"\n"+v+"}":"{"+f.join(",")+"}":"{}";return a.pop(),h}}("",((a={})[""]=e,a),o,i,r,"",[])}}}if(!f("json-parse")){var I,x,k=u.fromCharCode,B={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},j=function(){throw I=x=null,n()},M=function(){for(var e,t,n,r,o,i=x,s=i.length;I<s;)switch(o=i.charCodeAt(I)){case 9:case 10:case 13:case 32:I++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=v?i.charAt(I):i[I],I++,e;case 34:for(e="@",I++;I<s;)if((o=i.charCodeAt(I))<32)j();else if(92==o)switch(o=i.charCodeAt(++I)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=B[o],I++;break;case 117:for(t=++I,n=I+4;I<n;I++)48<=(o=i.charCodeAt(I))&&o<=57||97<=o&&o<=102||65<=o&&o<=70||j();e+=k("0x"+i.slice(t,I));break;default:j()}else{if(34==o)break;for(o=i.charCodeAt(I),t=I;32<=o&&92!=o&&34!=o;)o=i.charCodeAt(++I);e+=i.slice(t,I)}if(34==i.charCodeAt(I))return I++,e;j();default:if(t=I,45==o&&(r=!0,o=i.charCodeAt(++I)),48<=o&&o<=57){for(48==o&&(48<=(o=i.charCodeAt(I+1))&&o<=57)&&j(),r=!1;I<s&&(48<=(o=i.charCodeAt(I))&&o<=57);I++);if(46==i.charCodeAt(I)){for(n=++I;n<s&&!((o=i.charCodeAt(n))<48||57<o);n++);n==I&&j(),I=n}if(101==(o=i.charCodeAt(I))||69==o){for(43!=(o=i.charCodeAt(++I))&&45!=o||I++,n=I;n<s&&!((o=i.charCodeAt(n))<48||57<o);n++);n==I&&j(),I=n}return+i.slice(t,I)}r&&j();var a=i.slice(I,I+4);if("true"==a)return I+=4,!0;if("fals"==a&&101==i.charCodeAt(I+4))return I+=5,!1;if("null"==a)return I+=4,null;j()}return"$"},P=function(e,t,n){var r=L(e,t,n);r===b?delete e[t]:e[t]=r},L=function(e,t,n){var r,o=e[t];if("object"==F(o)&&o)
// for array indices (e.g., `![1, 2, 3].hasOwnProperty("0")`).
if(R.call(o)==S)for(r=o.length;r--;)P(R,_,o);else _(o,function(e){P(o,e,n)});return n.call(e,t,o)};c.parse=function(e,t){var n,r;return I=0,x=""+e,n=function e(t){var n,r;if("$"==t&&j(),"string"==typeof t){if("@"==(v?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(n=[];"]"!=(t=M());)r?","==t?"]"==(t=M())&&j():j():r=!0,","==t&&j(),n.push(e(t));return n}if("{"==t){for(n={};"}"!=(t=M());)r?","==t?"}"==(t=M())&&j():j():r=!0,","!=t&&"string"==typeof t&&"@"==(v?t.charAt(0):t[0])&&":"==M()||j(),n[t.slice(1)]=e(M());return n}j()}return t}(M()),"$"!=M()&&j(),I=x=null,t&&R.call(t)==d?L(((r={})[""]=n,r),"",t):n}}}return c.runInContext=F,c}if(!n||n.global!==n&&n.window!==n&&n.self!==n||(U=n),t&&!e)F(U,t);else{var r=U.JSON,o=U.JSON3,i=!1,s=F(U,U.JSON3={noConflict:function(){return i||(i=!0,U.JSON=r,U.JSON3=o,r=o=null),s}});U.JSON={parse:s.parse,stringify:s.stringify}}e&&define(function(){return s})}).call(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,o,t){(function(e,v){"use strict";function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
if(R.call(o)==S)for(r=o.length;r--;)P(R,_,o);else _(o,function(e){P(o,e,n)});return n.call(e,t,o)};c.parse=function(e,t){var n,r;return I=0,x=""+e,n=function e(t){var n,r;if("$"==t&&j(),"string"==typeof t){if("@"==(v?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(n=[];"]"!=(t=M());)r?","==t?"]"==(t=M())&&j():j():r=!0,","==t&&j(),n.push(e(t));return n}if("{"==t){for(n={};"}"!=(t=M());)r?","==t?"}"==(t=M())&&j():j():r=!0,","!=t&&"string"==typeof t&&"@"==(v?t.charAt(0):t[0])&&":"==M()||j(),n[t.slice(1)]=e(M());return n}j()}return t}(M()),"$"!=M()&&j(),I=x=null,t&&R.call(t)==d?L(((r={})[""]=n,r),"",t):n}}}return c.runInContext=V,c}if(!n||n.global!==n&&n.window!==n&&n.self!==n||(U=n),t&&!e)V(U,t);else{var r=U.JSON,o=U.JSON3,i=!1,s=V(U,U.JSON3={noConflict:function(){return i||(i=!0,U.JSON=r,U.JSON3=o,r=o=null),s}});U.JSON={parse:s.parse,stringify:s.stringify}}e&&define(function(){return s})}).call(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,o,t){(function(e,v){"use strict";function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! Native Promise Only

@@ -25,3 +25,3 @@ v0.8.1 (c) Kyle Simpson

*/
var t,n,r;r=function(){var t,s,n,e=Object.prototype.toString,r=void 0!==v?function(e){return v(e)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function i(e,t){n.add(e,t),s||(s=r(n.drain))}function a(e){var t,n=h(e);return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function c(){for(var e=0;e<this.chain.length;e++)o(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function o(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function l(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,0<t.chain.length&&i(c,t))}function u(e,n,r,o){for(var t=0;t<n.length;t++)!function(t){e.resolve(n[t]).then(function(e){r(t,e)},o)}(t)}function f(e){this.def=e,this.triggered=!1}function d(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new d(this);this.then=function(e,t){var n={success:"function"!=typeof e||e,failure:"function"==typeof t&&t};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),r.chain.push(n),0!==r.state&&i(c,r),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){(function e(n){var r,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(r=a(n))?i(function(){var t=new f(o);try{r.call(n,function(){e.apply(t,arguments)},function(){l.apply(t,arguments)})}catch(e){l.call(t,e)}}):(o.msg=n,o.state=1,0<o.chain.length&&i(c,o))}catch(e){l.call(new f(o),e)}}}).call(r,e)},function(e){l.call(r,e)})}catch(e){l.call(r,e)}}n=function(){var n,r,o;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(e,t){o=new i(e,t),r?r.next=o:n=o,r=o,o=void 0},drain:function(){var e=n;for(n=r=s=void 0;e;)e.fn.call(e.self),e=e.next}}}();var m=t({},"constructor",p,!1);return t(p.prototype=m,"__NPO__",0,!1),t(p,"resolve",function(n){return n&&"object"==h(n)&&1===n.__NPO__?n:new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");e(n)})}),t(p,"reject",function(n){return new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");t(n)})}),t(p,"all",function(t){var s=this;return"[object Array]"!=e.call(t)?s.reject(TypeError("Not an array")):0===t.length?s.resolve([]):new s(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");var r=t.length,o=Array(r),i=0;u(s,t,function(e,t){o[e]=t,++i===r&&n(o)},e)})}),t(p,"race",function(t){var r=this;return"[object Array]"!=e.call(t)?r.reject(TypeError("Not an array")):new r(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");u(r,t,function(e,t){n(t)},e)})}),p},(n=void 0!==e?e:void 0)[t="Promise"]=n[t]||r(),void 0!==o&&o.exports?o.exports=n[t]:"function"==typeof define&&define.amd&&define(function(){return n[t]})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{timers:14}],13:[function(e,t,n){"use strict";var r,o,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,u=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&m())}function m(){if(!f){var e=c(p);f=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new v(e,t)),1!==u.length||f||c(m)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],14:[function(c,e,l){(function(e,t){"use strict";var r=c("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},s=0;function a(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new a(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new a(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=s++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,c("timers").setImmediate,c("timers").clearImmediate)},{"process/browser.js":13,timers:14}],15:[function(e,t,n){"use strict";for(var o=[],r=0;r<256;++r)o[r]=(r+256).toString(16).substr(1);t.exports=function(e,t){var n=t||0,r=o;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},{}],16:[function(e,t,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},{}],17:[function(e,t,n){"use strict";var s=e("./lib/rng"),a=e("./lib/bytesToUuid");t.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||a(o)}},{"./lib/bytesToUuid":15,"./lib/rng":16}],18:[function(e,t,n){t.exports={name:"@realeyes/environment-checker",version:"3.1.19",scripts:{"test-unit":"karma start ./karma.conf.unit.js",test:"npm run test-unit","combine-coverage-unit":"istanbul-combine -d dist/coverage/unit/combined -p summary -r clover -r html -r json dist/coverage/unit/**/coverage.json","combine-coverage":"npm run combine-coverage-unit","check-coverage-unit":"istanbul check dist/coverage/unit/combined/coverage-final.json --statements 80 --functions 80 --branches 80 --lines 80","check-coverage":"npm run check-coverage-unit",lint:"eslint .",build:"babel index.js | browserify - -d -t [ babelify --presets [ @babel/preset-env ] --global=true ] | exorcist ./dist/Realeyesit.EnvironmentalDetectionAPI.js.map > ./dist/Realeyesit.EnvironmentalDetectionAPI.js",copy:"copyfiles -f node_modules/@realeyes/environment-detector/dist/log.gif dist","copy:example":"copyfiles -f example/* dist",minify:"uglifyjs --comments /^!/ dist/Realeyesit.EnvironmentalDetectionAPI.js -c -m --source-map filename='dist/Realeyesit.EnvironmentalDetectionAPI.min.js.map',url='dist/Realeyesit.EnvironmentalDetectionAPI.js.map' --output dist/Realeyesit.EnvironmentalDetectionAPI.min.js",cleanup:"rimraf dist/*",all:"npm run cleanup && npm run lint && npm run build && npm run copy && npm run copy:example && npm run minify"},license:"Apache-2.0",repository:{type:"git",url:"git+ssh://git@github.com/Realeyes/environment-checker.git"},main:"lib/index.js",devDependencies:{"@babel/core":"^7.4.0","@babel/plugin-transform-classes":"^7.4.0","@babel/plugin-transform-destructuring":"^7.4.0","@babel/plugin-transform-member-expression-literals":"^7.2.0","@babel/plugin-transform-modules-commonjs":"^7.4.0","@babel/plugin-transform-property-literals":"^7.2.0","@babel/plugin-transform-runtime":"^7.4.0","@babel/plugin-transform-spread":"^7.2.2","@babel/preset-env":"^7.4.2","babel-eslint":"10.0.1","babel-plugin-inline-replace-variables":"^1.3.1","babel-plugin-istanbul":"^5.1.1",babelify:"^10.0.0",browserify:"^16.2.3",copyfiles:"^2.1.0","es6-object-assign":"^1.1.0",eslint:"^5.15.3","eslint-plugin-import":"^2.16.0",exorcist:"^1.0.1",istanbul:"^0.4.5","istanbul-combine":"github:realeyes/istanbul-combine#f16c12aaaaa8039f61386bb2f34ef0aed5799104","jasmine-core":"^3.3.0",karma:"^4.0.1","karma-bamboo-reporter":"^0.1.2","karma-browserify":"^6.0.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.2","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-selenium-webdriver-launcher":"^0.0.4","karma-spec-reporter":"^0.0.32",rimraf:"^2.6.3","selenium-webdriver":"^4.0.0-alpha.1","uglify-js":"^3.5.1",watchify:"^3.11.1"},description:"Environment Checker",bugs:{url:"https://github.com/Realeyes/environment-checker/issues"},homepage:"https://github.com/Realeyes/environment-checker#readme",directories:{example:"example"},keywords:["browser","environment","checker"],dependencies:{"@babel/cli":"^7.2.3","@realeyes/environment-detector":"2.0.23-stage.3","babel-plugin-add-header-comment":"^1.0.3",uuid:"^3.3.2"},browserify:{transform:[["babelify"]]}}},{}]},{},[1]);
var t,n,r;r=function(){var t,s,n,e=Object.prototype.toString,r=void 0!==v?function(e){return v(e)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function i(e,t){n.add(e,t),s||(s=r(n.drain))}function a(e){var t,n=h(e);return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function c(){for(var e=0;e<this.chain.length;e++)o(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function o(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function l(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,0<t.chain.length&&i(c,t))}function u(e,n,r,o){for(var t=0;t<n.length;t++)!function(t){e.resolve(n[t]).then(function(e){r(t,e)},o)}(t)}function f(e){this.def=e,this.triggered=!1}function d(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new d(this);this.then=function(e,t){var n={success:"function"!=typeof e||e,failure:"function"==typeof t&&t};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),r.chain.push(n),0!==r.state&&i(c,r),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){(function e(n){var r,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(r=a(n))?i(function(){var t=new f(o);try{r.call(n,function(){e.apply(t,arguments)},function(){l.apply(t,arguments)})}catch(e){l.call(t,e)}}):(o.msg=n,o.state=1,0<o.chain.length&&i(c,o))}catch(e){l.call(new f(o),e)}}}).call(r,e)},function(e){l.call(r,e)})}catch(e){l.call(r,e)}}n=function(){var n,r,o;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(e,t){o=new i(e,t),r?r.next=o:n=o,r=o,o=void 0},drain:function(){var e=n;for(n=r=s=void 0;e;)e.fn.call(e.self),e=e.next}}}();var p=t({},"constructor",m,!1);return t(m.prototype=p,"__NPO__",0,!1),t(m,"resolve",function(n){return n&&"object"==h(n)&&1===n.__NPO__?n:new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");e(n)})}),t(m,"reject",function(n){return new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");t(n)})}),t(m,"all",function(t){var s=this;return"[object Array]"!=e.call(t)?s.reject(TypeError("Not an array")):0===t.length?s.resolve([]):new s(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");var r=t.length,o=Array(r),i=0;u(s,t,function(e,t){o[e]=t,++i===r&&n(o)},e)})}),t(m,"race",function(t){var r=this;return"[object Array]"!=e.call(t)?r.reject(TypeError("Not an array")):new r(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");u(r,t,function(e,t){n(t)},e)})}),m},(n=void 0!==e?e:void 0)[t="Promise"]=n[t]||r(),void 0!==o&&o.exports?o.exports=n[t]:"function"==typeof define&&define.amd&&define(function(){return n[t]})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{timers:14}],13:[function(e,t,n){"use strict";var r,o,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,u=[],f=!1,d=-1;function m(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!f){var e=c(m);f=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new v(e,t)),1!==u.length||f||c(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],14:[function(c,e,l){(function(e,t){"use strict";var r=c("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},s=0;function a(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new a(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new a(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=s++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,c("timers").setImmediate,c("timers").clearImmediate)},{"process/browser.js":13,timers:14}],15:[function(e,t,n){"use strict";for(var o=[],r=0;r<256;++r)o[r]=(r+256).toString(16).substr(1);t.exports=function(e,t){var n=t||0,r=o;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},{}],16:[function(e,t,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},{}],17:[function(e,t,n){"use strict";var s=e("./lib/rng"),a=e("./lib/bytesToUuid");t.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||a(o)}},{"./lib/bytesToUuid":15,"./lib/rng":16}],18:[function(e,t,n){t.exports={name:"@realeyes/environment-checker",version:"3.1.19",scripts:{"test-unit":"karma start ./karma.conf.unit.js",test:"npm run test-unit","combine-coverage-unit":"istanbul-combine -d dist/coverage/unit/combined -p summary -r clover -r html -r json dist/coverage/unit/**/coverage.json","combine-coverage":"npm run combine-coverage-unit","check-coverage-unit":"istanbul check dist/coverage/unit/combined/coverage-final.json --statements 80 --functions 80 --branches 80 --lines 80","check-coverage":"npm run check-coverage-unit",lint:"eslint .",build:"babel index.js | browserify - -d -t [ babelify --presets [ @babel/preset-env ] --global=true ] | exorcist ./dist/Realeyesit.EnvironmentalDetectionAPI.js.map > ./dist/Realeyesit.EnvironmentalDetectionAPI.js",copy:"copyfiles -f node_modules/@realeyes/environment-detector/dist/log.gif dist","copy:example":"copyfiles -f example/* dist",minify:"uglifyjs --comments /^!/ dist/Realeyesit.EnvironmentalDetectionAPI.js -c -m --source-map filename='dist/Realeyesit.EnvironmentalDetectionAPI.min.js.map',url='dist/Realeyesit.EnvironmentalDetectionAPI.js.map' --output dist/Realeyesit.EnvironmentalDetectionAPI.min.js",cleanup:"rimraf dist/*",all:"npm run cleanup && npm run lint && npm run build && npm run copy && npm run copy:example && npm run minify"},license:"Apache-2.0",repository:{type:"git",url:"git+ssh://git@github.com/Realeyes/environment-checker.git"},main:"lib/index.js",devDependencies:{"@babel/core":"^7.4.0","@babel/plugin-transform-classes":"^7.4.0","@babel/plugin-transform-destructuring":"^7.4.0","@babel/plugin-transform-member-expression-literals":"^7.2.0","@babel/plugin-transform-modules-commonjs":"^7.4.0","@babel/plugin-transform-property-literals":"^7.2.0","@babel/plugin-transform-runtime":"^7.4.0","@babel/plugin-transform-spread":"^7.2.2","@babel/preset-env":"^7.4.2","babel-eslint":"10.0.1","babel-plugin-inline-replace-variables":"^1.3.1","babel-plugin-istanbul":"^5.1.1",babelify:"^10.0.0",browserify:"^16.2.3",copyfiles:"^2.1.0","es6-object-assign":"^1.1.0",eslint:"^5.15.3","eslint-plugin-import":"^2.16.0",exorcist:"^1.0.1",istanbul:"^0.4.5","istanbul-combine":"github:realeyes/istanbul-combine#f16c12aaaaa8039f61386bb2f34ef0aed5799104","jasmine-core":"^3.3.0",karma:"^4.0.1","karma-bamboo-reporter":"^0.1.2","karma-browserify":"^6.0.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.2","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-selenium-webdriver-launcher":"^0.0.4","karma-spec-reporter":"^0.0.32",rimraf:"^2.6.3","selenium-webdriver":"^4.0.0-alpha.1","uglify-js":"^3.5.1",watchify:"^3.11.1"},description:"Environment Checker",bugs:{url:"https://github.com/Realeyes/environment-checker/issues"},homepage:"https://github.com/Realeyes/environment-checker#readme",directories:{example:"example"},keywords:["browser","environment","checker"],dependencies:{"@babel/cli":"^7.2.3","@realeyes/environment-detector":"2.0.23-stage.3","babel-plugin-add-header-comment":"^1.0.3",uuid:"^3.3.2"},browserify:{transform:[["babelify"]]}}},{}]},{},[1]);
//# sourceMappingURL=dist/Realeyesit.EnvironmentalDetectionAPI.js.map

@@ -162,2 +162,18 @@ import EDdetect from '@realeyes/environment-detector';

if (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices)
{ecLogger.log('mediadevices-found', { data: this.VERSION });}
else
{ecLogger.log('mediadevices-failed', { data: this.VERSION });}
navigator.mediaDevices.enumerateDevices()
.then(function(devices) {
ecLogger.log('mediadevices-length', { data: devices.length });
})
.catch(function(err) {
ecLogger.log('mediadevices-errors', { data: (err.name + ": " + err.message) } );
});
this.clearResults();

@@ -164,0 +180,0 @@ this.checkResults.checksPassed = false;

{
"name": "@realeyes/environment-checker",
"version": "3.3.0-stage.3",
"version": "3.3.0-stage.5",
"scripts": {

@@ -5,0 +5,0 @@ "test-unit": "karma start ./karma.conf.unit.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc