@sentry/integrations
Advanced tools
Comparing version 6.2.4 to 6.2.5
@@ -508,2 +508,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -513,3 +516,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -523,3 +528,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -526,0 +537,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=u().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
//# sourceMappingURL=angular.min.js.map |
@@ -686,2 +686,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -691,3 +694,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -701,3 +706,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -704,0 +715,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var e,t,r,o,i,c={};Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var a=function(n,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=_(),h="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};d.__SENTRY__.logger||(d.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),_()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window); | ||
!function(n){var e,t,r,o,i,a={};Object.defineProperty(a,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var c=function(n,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var h=_(),d="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.log(d+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.warn(d+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.error(d+"[Error]: "+n.join(" "))})},n}();h.__SENTRY__=h.__SENTRY__||{};h.__SENTRY__.logger||(h.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,a){n.resolve(e).then(function(n){i[a]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var e=n.timing&&n.timing.navigationStart;"number"==typeof e&&Math.abs(e+n.now()-Date.now())<36e5||Date.now()}}(),_()),m=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=t();c.getIntegration(n)&&c.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),c.captureMessage(t)):c.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var S in a.CaptureConsole=m,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},a)Object.prototype.hasOwnProperty.call(a,S)&&(n.Sentry.Integrations[S]=a[S])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -508,2 +508,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -513,3 +516,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -523,3 +528,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -526,0 +537,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function a(n){var t=u();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var f=u(),s="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.error(s+"[Error]: "+n.join(" "))})},n}();f.__SENTRY__=f.__SENTRY__||{};var _;f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function a(n){var t=u();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var f=u(),s="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.error(s+"[Error]: "+n.join(" "))})},n}();f.__SENTRY__=f.__SENTRY__||{};var _;f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=u().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
//# sourceMappingURL=debug.min.js.map |
@@ -513,2 +513,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -518,3 +521,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -528,3 +533,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -531,0 +542,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(n){var t=c();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=c(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=c().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._Ember=t.Ember||c().Ember}return n.prototype.setupOnce=function(t,e){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(e().getIntegration(n)&&e().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",function(t){e().getIntegration(n)&&e().withScope(function(n){!function(n,t){try{return n instanceof t}catch(n){return!1}}(t,Error)?(n.setExtra("reason",t),e().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),e().captureException(t,{originalException:t}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in t.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(n){var t=c();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=c(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=c().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._Ember=t.Ember||c().Ember}return n.prototype.setupOnce=function(t,e){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(e().getIntegration(n)&&e().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",function(t){e().getIntegration(n)&&e().withScope(function(n){!function(n,t){try{return n instanceof t}catch(n){return!1}}(t,Error)?(n.setExtra("reason",t),e().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),e().captureException(t,{originalException:t}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in t.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
//# sourceMappingURL=ember.min.js.map |
@@ -962,2 +962,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -967,3 +970,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -977,3 +982,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -980,0 +991,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function y(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function _(t){var n=y();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=y(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function j(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=j(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=j(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=O(u,a[u],e-1,r));return r.unmemoize(n),c}var S;y();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=p()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=y().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function y(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function _(t){var n=y();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=y(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function O(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function j(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=O(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=O(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=j(u,a[u],e-1,r));return r.unmemoize(n),c}var S;y();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var D={nowSeconds:function(){return Date.now()/1e3}};var N=p()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===N?D:{nowSeconds:function(){return(N.timeOrigin+N.now())/1e3}},P=(D.nowSeconds.bind(D),x.nowSeconds.bind(x),function(){var t=y().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return j(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
//# sourceMappingURL=extraerrordata.min.js.map |
@@ -1013,2 +1013,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -1018,3 +1021,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -1028,3 +1033,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -1031,0 +1042,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function r(t,n,e,r){return new(e||(e=Promise))(function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(u,a)}c((r=r.apply(t,n||[])).next())})}function o(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"undefined"!=typeof Element&&c(t,Element)}function a(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function c(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,u=void 0;n&&r++<5&&!("html"===(u=s(n))||r>1&&o+e.length*i+u.length>=80);)e.push(u),o+=u.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,u,a=t,c=[];if(!a||!a.tagName)return"";if(c.push(a.tagName.toLowerCase()),a.id&&c.push("#"+a.id),(n=a.className)&&(u=n,"[object String]"===Object.prototype.toString.call(u)))for(e=n.split(/\s+/),i=0;i<e.length;i++)c.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=a.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function h(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var p={};function v(){return h()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p}function d(){var t=v(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var e=new Uint16Array(8);n.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function y(t){var n=v();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var _=v(),g="Sentry Logger ",b=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){_.console.log(g+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){_.console.warn(g+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){_.console.error(g+"[Error]: "+t.join(" "))})},t}();_.__SENTRY__=_.__SENTRY__||{};var E=_.__SENTRY__.logger||(_.__SENTRY__.logger=new b),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),w="<anonymous>";function S(t){if(function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return c(t,Error)}}(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(a=t,"undefined"!=typeof Event&&c(a,Event)){var o=t,i={};i.type=o.type;try{i.target=u(o.target)?f(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=u(o.currentTarget)?f(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&c(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var a;return t}function x(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||w}catch(t){return w}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function j(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=x(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=x(n,t);if(i(o))return o;var u=S(n),a=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(a[c]=j(c,u[c],e-1,r));return r.unmemoize(n),a}function O(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return j(t,e,n)}))}catch(t){return"**non-serializable**"}}var N;v();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(N||(N={}));!function(){function t(t){var n=this;this._state=N.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(N.RESOLVED,t)},this._reject=function(t){n._setResult(N.REJECTED,t)},this._setResult=function(t,e){var r;n._state===N.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==N.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===N.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===N.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,u){t.resolve(n).then(function(t){i[u]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var D={nowSeconds:function(){return Date.now()/1e3}};var P=h()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=v().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),k=void 0===P?D:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},R=(D.nowSeconds.bind(D),k.nowSeconds.bind(k),function(){var t=v().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),require("localforage")),T=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.global=v(),this.maxStoredEvents=n.maxStoredEvents||30,this.offlineEventStore=R.createInstance({name:"sentry/offlineEventStore"})}return t.prototype.setupOnce=function(n,e){var r=this;this.hub=e(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){E.warn("could not send cached events")})}),n(function(n){return r.hub&&r.hub.getIntegration(t)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(n).then(function(t){return r._enforceMaxEvents()}).catch(function(t){E.warn("could not cache event while offline")}),null):n}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){E.warn("could not send cached events")})},t.prototype._cacheEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.setItem(d(),O(t))]})})},t.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var t,n=this;return o(this,function(e){return t=[],[2,this.offlineEventStore.iterate(function(n,e,r){t.push({cacheKey:e,event:n})}).then(function(){return n._purgeEvents(t.sort(function(t,n){return(n.event.timestamp||0)-(t.event.timestamp||0)}).slice(n.maxStoredEvents<t.length?n.maxStoredEvents:t.length).map(function(t){return t.cacheKey}))}).catch(function(t){E.warn("could not enforce max events")})]})})},t.prototype._purgeEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.removeItem(t)]})})},t.prototype._purgeEvents=function(t){return r(this,void 0,void 0,function(){var n=this;return o(this,function(e){return[2,Promise.all(t.map(function(t){return n._purgeEvent(t)})).then()]})})},t.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var t=this;return o(this,function(n){return[2,this.offlineEventStore.iterate(function(n,e,r){t.hub?(t.hub.captureEvent(n),t._purgeEvent(e).catch(function(t){E.warn("could not purge event from cache")})):E.warn("no hub found - could not send cached event")})]})})},t.id="Offline",t}();for(var I in n.Offline=T,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,I)&&(t.Sentry.Integrations[I]=n[I])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function r(t,n,e,r){return new(e||(e=Promise))(function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(a,u)}c((r=r.apply(t,n||[])).next())})}function o(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"undefined"!=typeof Element&&c(t,Element)}function u(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function c(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,u=t,c=[];if(!u||!u.tagName)return"";if(c.push(u.tagName.toLowerCase()),u.id&&c.push("#"+u.id),(n=u.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)c.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=u.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function h(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var p={};function v(){return h()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p}function d(){var t=v(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var e=new Uint16Array(8);n.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function y(t){var n=v();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var g=v(),_="Sentry Logger ",b=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.log(_+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.warn(_+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.error(_+"[Error]: "+t.join(" "))})},t}();g.__SENTRY__=g.__SENTRY__||{};var m=g.__SENTRY__.logger||(g.__SENTRY__.logger=new b),E=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),w="<anonymous>";function S(t){if(function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return c(t,Error)}}(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(u=t,"undefined"!=typeof Event&&c(u,Event)){var o=t,i={};i.type=o.type;try{i.target=a(o.target)?f(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=a(o.currentTarget)?f(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&c(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var u;return t}function x(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":u(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||w}catch(t){return w}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new E),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=x(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=x(n,t);if(i(o))return o;var a=S(n),u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=O(c,a[c],e-1,r));return r.unmemoize(n),u}function j(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}var N;v();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(N||(N={}));!function(){function t(t){var n=this;this._state=N.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(N.RESOLVED,t)},this._reject=function(t){n._setResult(N.REJECTED,t)},this._setResult=function(t,e){var r;n._state===N.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==N.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===N.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===N.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var D={nowSeconds:function(){return Date.now()/1e3}};var P=h()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=v().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),k=void 0===P?D:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},R=(D.nowSeconds.bind(D),k.nowSeconds.bind(k),function(){var t=v().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),require("localforage")),T=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.global=v(),this.maxStoredEvents=n.maxStoredEvents||30,this.offlineEventStore=R.createInstance({name:"sentry/offlineEventStore"})}return t.prototype.setupOnce=function(n,e){var r=this;this.hub=e(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){m.warn("could not send cached events")})}),n(function(n){return r.hub&&r.hub.getIntegration(t)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(n).then(function(t){return r._enforceMaxEvents()}).catch(function(t){m.warn("could not cache event while offline")}),null):n}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){m.warn("could not send cached events")})},t.prototype._cacheEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.setItem(d(),j(t))]})})},t.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var t,n=this;return o(this,function(e){return t=[],[2,this.offlineEventStore.iterate(function(n,e,r){t.push({cacheKey:e,event:n})}).then(function(){return n._purgeEvents(t.sort(function(t,n){return(n.event.timestamp||0)-(t.event.timestamp||0)}).slice(n.maxStoredEvents<t.length?n.maxStoredEvents:t.length).map(function(t){return t.cacheKey}))}).catch(function(t){m.warn("could not enforce max events")})]})})},t.prototype._purgeEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.removeItem(t)]})})},t.prototype._purgeEvents=function(t){return r(this,void 0,void 0,function(){var n=this;return o(this,function(e){return[2,Promise.all(t.map(function(t){return n._purgeEvent(t)})).then()]})})},t.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var t=this;return o(this,function(n){return[2,this.offlineEventStore.iterate(function(n,e,r){t.hub?(t.hub.captureEvent(n),t._purgeEvent(e).catch(function(t){m.warn("could not purge event from cache")})):m.warn("no hub found - could not send cached event")})]})})},t.id="Offline",t}();for(var I in n.Offline=T,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,I)&&(t.Sentry.Integrations[I]=n[I])}(window); | ||
//# sourceMappingURL=offline.min.js.map |
@@ -518,2 +518,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -523,3 +526,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -533,3 +538,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -536,0 +547,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=a(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var p,h=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===h?_:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=a().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(p||(p={}));var y=function(){function n(t){void 0===t&&(t={types:[p.Crash,p.Deprecation,p.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in a()&&(this._getCurrentHub=t,new(a().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===p.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=a(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var h,p=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?_:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=a().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(h||(h={}));var y=function(){function n(t){void 0===t&&(t={types:[h.Crash,h.Deprecation,h.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in a()&&(this._getCurrentHub=t,new(a().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===h.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
//# sourceMappingURL=reportingobserver.min.js.map |
@@ -625,2 +625,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -630,3 +633,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -640,3 +645,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -643,0 +654,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var e=t.timing&&t.timing.navigationStart;"number"==typeof e&&Math.abs(e+t.now()-Date.now())<36e5||Date.now()}}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
//# sourceMappingURL=rewriteframes.min.js.map |
@@ -551,2 +551,5 @@ (function (__window) { | ||
var browserPerformanceTimeOrigin = (function () { | ||
// Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or | ||
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin | ||
// data as reliable if they are within a reasonable threshold of the current time. | ||
var performance = getGlobalObject().performance; | ||
@@ -556,3 +559,5 @@ if (!performance) { | ||
} | ||
if (performance.timeOrigin) { | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
@@ -566,3 +571,9 @@ } | ||
// eslint-disable-next-line deprecation/deprecation | ||
return (performance.timing && performance.timing.navigationStart) || Date.now(); | ||
var navigationStart = performance.timing && performance.timing.navigationStart; | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
} | ||
return Date.now(); | ||
})(); | ||
@@ -569,0 +580,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=s(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _,h=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=s().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):h.warn("Unknown hook: "+c)})}},h.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var f=s(),p="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.log(p+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.warn(p+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.error(p+"[Error]: "+t.join(" "))})},t}();f.__SENTRY__=f.__SENTRY__||{};var _,h=f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},w=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),E=(function(){var t=s().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),{id:"Tracing"}),S={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=w();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(E);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=w(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),f=t.$options[s];Array.isArray(f)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],f):t.$options[s]="function"==typeof f?[u,f]:[u]}):h.warn("Unknown hook: "+c)})}},h.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(E);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(E)||t().getIntegration(S)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
//# sourceMappingURL=vue.min.js.map |
{ | ||
"name": "@sentry/integrations", | ||
"version": "6.2.4", | ||
"version": "6.2.5", | ||
"description": "Pluggable integrations that can be used to enhance JS SDKs", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "6.2.4", | ||
"@sentry/utils": "6.2.4", | ||
"@sentry/types": "6.2.5", | ||
"@sentry/utils": "6.2.5", | ||
"localforage": "^1.8.1", | ||
@@ -26,3 +26,3 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.2.4", | ||
"@sentry-internal/eslint-config-sdk": "6.2.5", | ||
"chai": "^4.1.2", | ||
@@ -29,0 +29,0 @@ "eslint": "7.6.0", |
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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
2071785
11312
+ Added@sentry/types@6.2.5(transitive)
+ Added@sentry/utils@6.2.5(transitive)
- Removed@sentry/types@6.2.4(transitive)
- Removed@sentry/utils@6.2.4(transitive)
Updated@sentry/types@6.2.5
Updated@sentry/utils@6.2.5