Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
9
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

4

build/bundle.es6.min.js

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.1.1 (71412c6a) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var n,e,r;function i(t,n,e,r){return new(e||(e=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function c(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){t.done?i(t.value):new e(function(n){n(t.value)}).then(o,c)}u((r=r.apply(t,n||[])).next())})}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(n||(n={})),(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));class s extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function c(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function u(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}const d={};function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:d}function v(){const t=p(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){const t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=t=>{let n=t.toString(16);for(;n.length<4;)n=`0${n}`;return n};return e(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function m(t){if(!t)return{};const n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+e+r}}function y(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const n=t.exception.values[0];return n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function b(t){const n=p();if(!("console"in n))return t();const e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in n.console&&e[t].__sentry__&&(r[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});const i=t();return Object.keys(r).forEach(t=>{e[t]=r[t]}),i}function g(t,n,e,r={handled:!0,type:"generic"}){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||e||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}const w=p(),E="Sentry Logger ";w.__SENTRY__=w.__SENTRY__||{};const j=w.__SENTRY__.logger||(w.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&b(()=>{w.console.log(`${E}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&b(()=>{w.console.warn(`${E}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&b(()=>{w.console.error(`${E}[Error]: ${t.join(" ")}`)})}});class ${constructor(){this.i="function"==typeof WeakSet,this.s=this.i?new WeakSet:[]}memoize(t){if(this.i)return!!this.s.has(t)||(this.s.add(t),!1);for(let n=0;n<this.s.length;n++){if(this.s[n]===t)return!0}return this.s.push(t),!1}unmemoize(t){if(this.i)this.s.delete(t);else for(let n=0;n<this.s.length;n++)if(this.s[n]===t){this.s.splice(n,1);break}}}function O(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:i}})),t[n]=i}function _(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function x(t,n=3,e=102400){const r=T(t,n);return _(r)>e?x(t,n-1,e):r}function S(t,n){return"domain"===n&&"object"==typeof t&&t.o?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":l(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var e}function k(t,n,e=1/0,r=new $){if(0===e)return function(t){const n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";const e=S(t);return h(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();const i=S(n,t);if(h(i))return i;const s=o(n)?function(t){const n={message:t.message,name:t.name,stack:t.stack};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(c[t]=k(t,s[t],e-1,r));return r.unmemoize(n),c}function T(t,n){try{return JSON.parse(JSON.stringify(t,(t,e)=>k(t,e,n)))}catch(t){return"**non-serializable**"}}class R{constructor(t){this.u=t,this.h=[]}isReady(){return void 0===this.u||this.length()<this.u}add(t){return i(this,void 0,void 0,function*(){return this.isReady()?(-1===this.h.indexOf(t)&&this.h.push(t),t.then(()=>i(this,void 0,void 0,function*(){return this.remove(t)})).catch(()=>i(this,void 0,void 0,function*(){return this.remove(t).catch(()=>{})})),t):Promise.reject(new s("Not adding Promise due to buffer limit reached."))})}remove(t){return i(this,void 0,void 0,function*(){return this.h.splice(this.h.indexOf(t),1)[0]})}length(){return this.h.length}drain(t){return i(this,void 0,void 0,function*(){return new Promise(n=>{const e=setTimeout(()=>{t&&t>0&&n(!1)},t);Promise.all(this.h).then(()=>{clearTimeout(e),n(!0)}).catch(()=>{n(!0)})})})}}function I(t,n=0){return 0===n?t:t.length<=n?t:`${t.substr(0,n)}...`}function D(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function F(t,n=40){if(!t.length)return"[object has no keys]";if(t[0].length>=n)return I(t[0],n);for(let e=t.length;e>0;e--){const r=t.slice(0,e).join(", ");if(!(r.length>n))return e===t.length?r:I(r,n)}return""}function C(){if(!("fetch"in p()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function M(){if(!C())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var L;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(L||(L={}));class U{constructor(t){this.l=L.PENDING,this.p=[],this.v=(t=>{this.m(t,L.RESOLVED)}),this.g=(t=>{this.m(t,L.REJECTED)}),this.m=((t,n)=>{this.l===L.PENDING&&(f(t)?t.then(this.v,this.g):(this.j=t,this.l=n,this.$()))}),this.$=(()=>{this.l!==L.PENDING&&(this.l===L.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this.j)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this.j)),this.p=[])}),this.O=(t=>{this.p=this.p.concat(t),this.$()});try{t(this.v,this.g)}catch(t){this.g(t)}}then(t,n){return new U((e,r)=>{this.O({onFail:t=>{if(n)try{return void e(n(t))}catch(t){return void r(t)}else r(t)},onSuccess:n=>{if(t)try{return void e(t(n))}catch(t){return void r(t)}else e(n)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new U(n=>{n(t)})}static reject(t){return new U((n,e)=>{e(t)})}}class A{constructor(){this._=!1,this.S=[],this.k=[],this.T=[],this.R={},this.I={},this.D={},this.F={}}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.k.push(t),this}C(){this._||(this._=!0,setTimeout(()=>{this.S.forEach(t=>{t(this)}),this._=!1}))}M(t,n,e,r=0){return new U((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o(Object.assign({},n),e);f(c)?c.then(n=>this.M(t,n,e,r+1).then(i)).catch(s):this.M(t,c,e,r+1).then(i).catch(s)}})}setUser(t){return this.R=T(t),this.C(),this}setTags(t){return this.I=Object.assign({},this.I,T(t)),this.C(),this}setTag(t,n){return this.I=Object.assign({},this.I,{[t]:T(n)}),this.C(),this}setExtras(t){return this.D=Object.assign({},this.D,T(t)),this.C(),this}setExtra(t,n){return this.D=Object.assign({},this.D,{[t]:T(n)}),this.C(),this}setFingerprint(t){return this.L=T(t),this.C(),this}setLevel(t){return this.U=T(t),this.C(),this}setContext(t,n){return this.F[t]=n?T(n):void 0,this.C(),this}static clone(t){const n=new A;return Object.assign(n,t,{S:[]}),t&&(n.T=[...t.T],n.I=Object.assign({},t.I),n.D=Object.assign({},t.D),n.F=Object.assign({},t.F),n.R=t.R,n.U=t.U,n.L=t.L,n.k=[...t.k]),n}clear(){return this.T=[],this.I={},this.D={},this.R={},this.F={},this.U=void 0,this.L=void 0,this.C(),this}addBreadcrumb(t,n){const e=(new Date).getTime()/1e3,r=Object.assign({timestamp:e},t);return this.T=void 0!==n&&n>=0?[...this.T,T(r)].slice(-n):[...this.T,T(r)],this.C(),this}clearBreadcrumbs(){return this.T=[],this.C(),this}A(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.L&&(t.fingerprint=t.fingerprint.concat(this.L)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,n){return this.D&&Object.keys(this.D).length&&(t.extra=Object.assign({},this.D,t.extra)),this.I&&Object.keys(this.I).length&&(t.tags=Object.assign({},this.I,t.tags)),this.R&&Object.keys(this.R).length&&(t.user=Object.assign({},this.R,t.user)),this.F&&Object.keys(this.F).length&&(t.contexts=Object.assign({},this.F,t.contexts)),this.U&&(t.level=this.U),this.A(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.T],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.M([...P(),...this.k],t,n)}}function P(){const t=p();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function N(t){P().push(t)}const B=3,H=30,q=100;class W{constructor(t,n=new A,e=B){this.P=e,this.N=[],this.N.push({client:t,scope:n})}B(t,...n){const e=this.getStackTop();e&&e.client&&e.client[t]&&e.client[t](...n,e.scope)}isOlderThan(t){return this.P<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),n=t.length>0?t[t.length-1].scope:void 0,e=A.clone(n);return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return void 0!==this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.N}getStackTop(){return this.N[this.N.length-1]}captureException(t,n){const e=this.H=v();return this.B("captureException",t,Object.assign({},n,{event_id:e})),e}captureMessage(t,n,e){const r=this.H=v();return this.B("captureMessage",t,n,Object.assign({},e,{event_id:r})),r}captureEvent(t,n){const e=this.H=v();return this.B("captureEvent",t,Object.assign({},n,{event_id:e})),e}lastEventId(){return this.H}addBreadcrumb(t,n){const e=this.getStackTop();if(!e.scope||!e.client)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=H}=e.client.getOptions&&e.client.getOptions()||{};if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?b(()=>r(o,n)):o;null!==c&&e.scope.addBreadcrumb(c,Math.min(i,q))}configureScope(t){const n=this.getStackTop();n.scope&&n.client&&t(n.scope)}run(t){const n=z(this);try{t(this)}finally{z(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return j.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}}function X(){const t=p();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function z(t){const n=X(),e=V(n);return K(n,t),e}function G(){const t=X();J(t)&&!V(t).isOlderThan(B)||K(t,new W);try{const r=(n=module,e="domain",n.require(e)).active;if(!r)return V(t);if(!J(r)||V(r).isOlderThan(B)){const n=V(t).getStackTop();K(r,new W(n.client,A.clone(n.scope)))}return V(r)}catch(n){return V(t)}var n,e}function J(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function V(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new W,t.__SENTRY__.hub)}function K(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Z(t,...n){const e=G();if(e&&e[t])return e[t](...n);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Z("captureException",t,{originalException:t,syntheticException:n})}function Q(t){Z("withScope",t)}const Y=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,tt="Invalid Dsn";class nt{constructor(t){"string"==typeof t?this.q(t):this.W(t),this.X()}toString(t=!1){const{host:n,path:e,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${n}${i?`:${i}`:""}/${e?`${e}/`:e}${s}`}q(t){const n=Y.exec(t);if(!n)throw new s(tt);const[e,r,i="",o,c="",u]=n.slice(1);let a="",h=u;const l=h.split("/");l.length>1&&(a=l.slice(0,-1).join("/"),h=l.pop()),Object.assign(this,{host:o,pass:i,path:a,projectId:h,port:c,protocol:e,user:r})}W(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId}X(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new s(tt)}),"http"!==this.protocol&&"https"!==this.protocol)throw new s(tt);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new s(tt)}}const et="7";class rt{constructor(t){this.dsn=t,this.G=new nt(t)}getDsn(){return this.G}getStoreEndpoint(){return`${this.J()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.G.user,sentry_version:et};return`${this.getStoreEndpoint()}?${n=t,Object.keys(n).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`).join("&")}`;var n}J(){const t=this.G,n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}`}getStoreEndpointPath(){const t=this.G;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,n){const e=this.G,r=[`Sentry sentry_version=${et}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${n}`),r.push(`sentry_key=${e.user}`),e.pass&&r.push(`sentry_secret=${e.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const n=this.G,e=`${this.J()}${n.path?`/${n.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${n.toString()}`);for(const n in t)if("user"===n){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`);return r.length?`${e}?${r.join("&")}`:e}}const it=[];function st(t){const n={};return function(t){const n=t.defaultIntegrations&&[...t.defaultIntegrations]||[],e=t.integrations;let r=[];if(Array.isArray(e)){const t=e.map(t=>t.name),i=[];n.forEach(n=>{-1===t.indexOf(n.name)&&-1===i.indexOf(n.name)&&(r.push(n),i.push(n.name))}),e.forEach(t=>{-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})}else{if("function"!=typeof e)return[...n];r=e(n),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{n[t.name]=t,function(t){-1===it.indexOf(t.name)&&(t.setupOnce(N,G),it.push(t.name),j.log(`Integration installed: ${t.name}`))}(t)}),n}class ot{constructor(t,n){this.V=!1,this.K=new t(n),this.Z=n,n.dsn&&(this.Y=new nt(n.dsn)),this.tt=st(this.Z)}captureException(t,n,e){let r=n&&n.event_id;return this.V=!0,this.nt().eventFromException(t,n).then(t=>this.et(t,n,e)).then(t=>{r=t&&t.event_id,this.V=!1}).catch(t=>{j.error(t),this.V=!1}),r}captureMessage(t,n,e,r){let i=e&&e.event_id;return this.V=!0,(h(t)?this.nt().eventFromMessage(`${t}`,n,e):this.nt().eventFromException(t,e)).then(t=>this.et(t,e,r)).then(t=>{i=t&&t.event_id,this.V=!1}).catch(t=>{j.error(t),this.V=!1}),i}captureEvent(t,n,e){let r=n&&n.event_id;return this.V=!0,this.et(t,n,e).then(t=>{r=t&&t.event_id,this.V=!1}).catch(t=>{j.error(t),this.V=!1}),r}getDsn(){return this.Y}getOptions(){return this.Z}flush(t){return i(this,void 0,void 0,function*(){const n=yield this.rt(t);this.it&&clearInterval(this.it);const e=yield this.nt().getTransport().close(t);return n&&e})}close(t){return i(this,void 0,void 0,function*(){const n=yield this.flush(t);return this.getOptions().enabled=!1,n})}getIntegrations(){return this.tt||{}}getIntegration(t){try{return this.tt[t.id]||null}catch(n){return j.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}rt(t){return i(this,void 0,void 0,function*(){return new Promise(n=>{let e=0;this.it&&clearInterval(this.it),this.it=setInterval(()=>{this.V?(e+=1,t&&e>=t&&n(!1)):n(!0)},1)})})}nt(){return this.K}st(){return!1!==this.getOptions().enabled&&void 0!==this.Y}ot(t,n,e){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=I(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=I(u.value,o));const a=c.request;a&&a.url&&(a.url=I(a.url,o)),void 0===c.event_id&&(c.event_id=v()),this.ct(c.sdk);let h=U.resolve(c);return n&&(h=n.applyToEvent(c,e)),h}ct(t){const n=Object.keys(this.tt);t&&n.length>0&&(t.integrations=n)}et(t,n,e){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.st()?"number"==typeof i&&Math.random()>i?U.reject("This event has been sampled, will not send event."):new U((i,s)=>{this.ot(t,e,n).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let e=t;try{if(n&&n.data&&!0===n.data.__sentry__||!r)return this.nt().sendEvent(e),void i(e);const o=r(t,n);if(void 0===o)j.error("`beforeSend` method has to return `null` or a valid event.");else if(f(o))this.ut(o,i,s);else{if(null===(e=o))return j.log("`beforeSend` returned `null`, will not send event."),void i(null);this.nt().sendEvent(e),i(e)}}catch(t){this.captureException(t,{data:{__sentry__:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):U.reject("SDK not enabled, will not send event.")}ut(t,n,e){t.then(t=>{null!==t?(this.nt().sendEvent(t),n(t)):e("`beforeSend` returned `null`, will not send event.")}).catch(t=>{e(`beforeSend rejected with ${t}`)})}}class ct{sendEvent(n){return i(this,void 0,void 0,function*(){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})})}close(t){return i(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}class ut{constructor(t){this.Z=t,this.Z.dsn||j.warn("No DSN provided, backend will not do anything."),this.at=this.ht()}ht(){return new ct}eventFromException(t,n){throw new s("Backend has to implement `eventFromException` method")}eventFromMessage(t,n,e){throw new s("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.at.sendEvent(t).catch(t=>{j.error(`Error while sending event: ${t}`)})}getTransport(){return this.at}}let at;class ht{constructor(){this.name=ht.id}setupOnce(){at=Function.prototype.toString,Function.prototype.toString=function(...t){const n=this.__sentry__?this.__sentry_original__:this;return at.apply(n,t)}}}ht.id="FunctionToString";const lt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ft{constructor(t={}){this.Z=t,this.name=ft.id}setupOnce(){N(t=>{const n=G();if(!n)return t;const e=n.getIntegration(ft);if(e){const r=n.getClient(),i=r?r.getOptions():{},s=e.lt(i);if(e.ft(t,s))return null}return t})}ft(t,n){return this.dt(t,n)?(j.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${y(t)}`),!0):this.pt(t,n)?(j.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${y(t)}`),!0):this.vt(t,n)?(j.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${y(t)}.\nUrl: ${this.yt(t)}`),!0):!this.bt(t,n)&&(j.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${y(t)}.\nUrl: ${this.yt(t)}`),!0)}dt(t,n={}){if(!n.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}pt(t,n={}){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.gt(t).some(t=>n.ignoreErrors.some(n=>this.wt(t,n)))}vt(t,n={}){if(!n.blacklistUrls||!n.blacklistUrls.length)return!1;const e=this.yt(t);return!!e&&n.blacklistUrls.some(t=>this.wt(e,t))}bt(t,n={}){if(!n.whitelistUrls||!n.whitelistUrls.length)return!0;const e=this.yt(t);return!e||n.whitelistUrls.some(t=>this.wt(e,t))}lt(t={}){return{blacklistUrls:[...this.Z.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.Z.ignoreErrors||[],...t.ignoreErrors||[],...lt],ignoreInternal:void 0===this.Z.ignoreInternal||this.Z.ignoreInternal,whitelistUrls:[...this.Z.whitelistUrls||[],...t.whitelistUrls||[]]}}wt(t,n){return e=n,"[object RegExp]"===Object.prototype.toString.call(e)?n.test(t):"string"==typeof n&&t.includes(n);var e}gt(t){if(t.message)return[t.message];if(t.exception)try{const{type:n,value:e}=t.exception.values[0];return[`${e}`,`${n}: ${e}`]}catch(n){return j.error(`Cannot extract message for event ${y(t)}`),[]}return[]}yt(t){try{if(t.stacktrace){const n=t.stacktrace.frames;return n[n.length-1].filename}if(t.exception){const n=t.exception.values[0].stacktrace.frames;return n[n.length-1].filename}return null}catch(n){return j.error(`Cannot extract url for event ${y(t)}`),null}}}ft.id="InboundFilters";var dt=Object.freeze({FunctionToString:ht,InboundFilters:ft}),pt=p(),vt={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},mt="?",yt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function bt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function gt(){return"undefined"==typeof document||null==document.location?"":document.location.href}vt.report=function(){var t,n,e=[],r=null,i=null;function s(t,n,r){var i=null;if(!n||vt.collectWindowErrors){for(var s in e)if(bt(e,s))try{e[s](t,n,r)}catch(t){i=t}if(i)throw i}}function u(n,e,r,u,a){var l=null;if(a=c(a)?a.error:a,n=c(n)?n.message:n,i)vt.computeStackTrace.augmentStackTraceWithInitialElement(i,e,r,n),h();else if(a&&o(a))(l=vt.computeStackTrace(a)).mechanism="onerror",s(l,!0,a);else{var f,d={url:e,line:r,column:u},p=n;if("[object String]"==={}.toString.call(n)){var v=n.match(yt);v&&(f=v[1],p=v[2])}d.func=mt,d.context=null,s(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||gt()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var n=t&&(t.detail?t.detail.reason:t.reason)||t,e=vt.computeStackTrace(n);e.mechanism="onunhandledrejection",s(e,!0,n)}function h(){var t=i,n=r;i=null,r=null,s(t,!1,n)}function l(t){if(i){if(r===t)return;h()}var n=vt.computeStackTrace(t);throw i=n,r=t,setTimeout(function(){r===t&&h()},n.incomplete?2e3:0),t}return l.subscribe=function(t){e.push(t)},l.installGlobalHandler=function(){!0!==n&&(t=pt.onerror,pt.onerror=u,n=!0)},l.installGlobalUnhandledRejectionHandler=function(){pt.onunhandledrejection=a},l}(),vt.computeStackTrace=function(){function t(t){if(!t.stack)return null;for(var n,e,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(e=i.exec(a[f])){var p=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(n=u.exec(e[2]))&&(e[2]=n[1]),r={url:p?null:e[2],func:e[1]||mt,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=o.exec(a[f]))r={url:e[2],func:e[1]||mt,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=s.exec(a[f])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(n=c.exec(e[3]))?e[3]=n[1]:0!==f||e[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:e[3],func:e[1]||mt,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=mt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function n(t,n,e,r){var i={url:n,line:e};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=mt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function e(t,i){for(var s,o,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],a={},h=!1,l=e.caller;l&&!h;l=l.caller)if(l!==r&&l!==vt.report){if(o={url:null,func:mt,args:[],line:null,column:null},l.name?o.func=l.name:(s=c.exec(l.toString()))&&(o.func=s[1]),void 0===o.func)try{o.func=s.input.substring(0,s.input.indexOf("{"))}catch(t){}a[""+l]?h=!0:a[""+l]=!0,u.push(o)}i&&u.splice(0,i);var f={mode:"callers",name:t.name,message:t.message,stack:u};return n(f,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),f}function r(n,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var n=t.stacktrace;if(n){for(var e,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=n.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(e=r.exec(s[c]))?u={url:e[2],line:+e[1],column:null,func:e[3],args:[]}:(e=i.exec(s[c]))&&(u={url:e[6],line:+e[1],column:+e[2],func:e[3]||e[4],args:e[5]?e[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=mt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(n))return i}catch(t){}try{if(i=t(n))return i}catch(t){}try{if(i=function(t){var n=t.message.split("\n");if(n.length<4)return null;var e,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=pt&&pt.document&&pt.document.getElementsByTagName("script"),u=[];for(var a in c)bt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<n.length;h+=2){var l=null;(e=r.exec(n[h]))?l={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=i.exec(n[h]))?l={url:e[3],func:e[4],args:[],line:+e[1],column:null}:(e=s.exec(n[h]))&&(l={url:gt().replace(/#.*$/,""),func:"",args:[],line:e[1],column:null}),l&&(l.func||(l.func=mt),l.context=[n[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:n[0],stack:o}:null}(n))return i}catch(t){}try{if(i=e(n,r+1))return i}catch(t){}return{original:n,name:n.name,message:n.message,mode:"failed"}}return r.augmentStackTraceWithInitialElement=n,r.computeStackTraceFromStackProp=t,r}(),vt.collectWindowErrors=!0,vt.linesOfContext=11;const wt=vt.report.subscribe,Et=vt.report.installGlobalHandler,jt=vt.report.installGlobalUnhandledRejectionHandler,$t=vt.computeStackTrace,Ot=50;function _t(t){const n=St(t.stack),e={type:t.name,value:t.message};return n&&n.length&&(e.stacktrace={frames:n}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function xt(t){return{exception:{values:[_t(t)]}}}function St(t){if(!t||!t.length)return[];let n=t;const e=n[0].func||"",r=n[n.length-1].func||"";return(e.includes("captureMessage")||e.includes("captureException"))&&(n=n.slice(1)),r.includes("sentryWrapped")&&(n=n.slice(0,-1)),n.map(t=>({colno:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,Ot).reverse()}class kt{constructor(t){this.options=t,this.h=new R(30),this.url=new rt(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){return i(this,void 0,void 0,function*(){throw new s("Transport Class has to implement `sendEvent` method")})}close(t){return i(this,void 0,void 0,function*(){return this.h.drain(t)})}}const Tt=p();class Rt extends kt{sendEvent(n){return i(this,void 0,void 0,function*(){const e={body:JSON.stringify(n),method:"POST",referrerPolicy:M()?"origin":""};return this.h.add(Tt.fetch(this.url,e).then(n=>({status:t.Status.fromHttpCode(n.status)})))})}}class It extends kt{sendEvent(n){return i(this,void 0,void 0,function*(){return this.h.add(new Promise((e,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&e({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(n))}))})}}var Dt=Object.freeze({BaseTransport:kt,FetchTransport:Rt,XHRTransport:It});class Ft extends ut{ht(){if(!this.Z.dsn)return super.ht();const t=this.Z.transportOptions?this.Z.transportOptions:{dsn:this.Z.dsn};return this.Z.transport?new this.Z.transport(t):C()?new Rt(t):new It(t)}eventFromException(n,e){let r;if(c(n)&&n.error){return n=n.error,r=xt($t(n)),U.resolve(this.Et(r,e))}if(u(n)||(i=n,"[object DOMException]"===Object.prototype.toString.call(i))){const r=n,i=r.name||(u(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,e).then(t=>(g(t,s),U.resolve(this.Et(t,e))))}var i;if(o(n))return r=xt($t(n)),U.resolve(this.Et(r,e));if(l(n)&&e&&e.syntheticException){return g(r=function(t,n){const e=Object.keys(t).sort(),r={extra:{__serialized__:x(t)},message:`Non-Error exception captured with keys: ${F(e)}`};if(n){const t=St($t(n).stack);r.stacktrace={frames:t}}return r}(n,e.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,U.resolve(this.Et(r,e))}const s=n;return this.eventFromMessage(s,void 0,e).then(n=>(g(n,`${s}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),n.level=t.Severity.Error,U.resolve(this.Et(n,e))))}Et(t,n){return Object.assign({},t,{event_id:n&&n.event_id})}eventFromMessage(n,e=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:e,message:n};if(this.Z.attachStacktrace&&r&&r.syntheticException){const t=St($t(r.syntheticException).stack);i.stacktrace={frames:t}}return U.resolve(i)}}const Ct="sentry.javascript.browser",Mt="5.1.1";class Lt extends ot{constructor(t={}){super(Ft,t)}ot(t,n,e){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Ct,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Mt}],version:Mt}),super.ot(t,n,e)}showReportDialog(t={}){const n=p().document;if(!n)return;if(!this.st())return void j.error("Trying to call showReportDialog with Sentry Client is disabled");const e=t.dsn||this.getDsn();if(!t.eventId)return void j.error("Missing `eventId` option in showReportDialog call");if(!e)return void j.error("Missing `Dsn` option in showReportDialog call");const r=n.createElement("script");r.async=!0,r.src=new rt(e).getReportDialogEndpoint(t),(n.head||n.body).appendChild(r)}}const Ut=1e3;let At,Pt,Nt=0;function Bt(t,n={},e){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}const sentryWrapped=function(){e&&"function"==typeof e&&e.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const e=r.map(t=>Bt(t,n));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Nt+=1,setTimeout(()=>{Nt-=1}),Q(e=>{e.addEventProcessor(t=>{const e=Object.assign({},t);return n.mechanism&&g(e,void 0,void 0,n.mechanism),e.extra=Object.assign({},e.extra,{arguments:T(r,3)}),e}),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}let Ht=0;function qt(t,n=!1){return e=>{if(At=void 0,!e||Pt===e)return;Pt=e;const r=()=>{let n;try{n=e.target?Xt(e.target):Xt(e)}catch(t){n="<unknown>"}0!==n.length&&G().addBreadcrumb({category:`ui.${t}`,message:n},{event:e,name:t})};Ht&&clearTimeout(Ht),n?Ht=setTimeout(r):r()}}function Wt(){return t=>{let n;try{n=t.target}catch(t){return}const e=n&&n.tagName;e&&("INPUT"===e||"TEXTAREA"===e||n.isContentEditable)&&(At||qt("input")(t),clearTimeout(At),At=setTimeout(()=>{At=void 0},Ut))}}function Xt(t){let n=t;const e=[];let r=0,i=0;const s=" > ".length;let o;for(;n&&r++<5&&!("html"===(o=zt(n))||r>1&&i+e.length*s+o.length>=80);)e.push(o),i+=o.length,n=n.parentNode;return e.reverse().join(" > ")}function zt(t){const n=[];let e,r,i,s,o;if(!t||!t.tagName)return"";if(n.push(t.tagName.toLowerCase()),t.id&&n.push(`#${t.id}`),(e=t.className)&&a(e))for(r=e.split(/\s+/),o=0;o<r.length;o++)n.push(`.${r[o]}`);const c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(s=t.getAttribute(i))&&n.push(`[${i}="${s}"]`);return n.join("")}class Gt{constructor(t){this.name=Gt.id,this.Z=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,wt((t,n,e)=>{if(Nt>0)return;const r=G().getIntegration(Gt);r&&G().captureEvent(r.jt(t),{data:{stack:t},originalException:e})}),this.Z.onerror&&(j.log("Global Handler attached: onerror"),Et()),this.Z.onunhandledrejection&&(j.log("Global Handler attached: onunhandledrejection"),jt())}jt(t){const n=xt(t),e={mode:t.mode};t.message&&(e.message=t.message),t.name&&(e.name=t.name);const r=G().getClient(),i=r&&r.getOptions().maxValueLength||250;return g(n,t.original?I(JSON.stringify(T(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:t.mechanism}),n}}Gt.id="GlobalHandlers";class Jt{constructor(){this.$t=0,this.name=Jt.id}Ot(t){return function(...n){const e=n[0];return n[0]=Bt(e,{mechanism:{data:{function:Vt(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}_t(t){return function(n){return t(Bt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Vt(t)},handled:!0,type:"instrument"}}))}}xt(t){const n=p(),e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(O(e,"addEventListener",function(n){return function(e,r,i){try{r.handleEvent=Bt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Vt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}return n.call(this,e,Bt(r,{mechanism:{data:{function:"addEventListener",handler:Vt(r),target:t},handled:!0,type:"instrument"}}),i)}}),O(e,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,n,i,r)}}))}setupOnce(){this.$t=this.$t;const t=p();O(t,"setTimeout",this.Ot.bind(this)),O(t,"setInterval",this.Ot.bind(this)),O(t,"requestAnimationFrame",this._t.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.xt.bind(this))}}function Vt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Jt.id="TryCatch";const Kt=p();let Zt;class Qt{constructor(t){this.name=Qt.id,this.Z=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}St(){"console"in Kt&&["debug","info","warn","error","log","assert"].forEach(function(n){n in Kt.console&&O(Kt.console,n,function(e){return function(...r){const i={category:"console",data:{extra:{arguments:T(r,3)},logger:"console"},level:t.Severity.fromString(n),message:D(r," ")};"assert"===n&&!1===r[0]&&(i.message=`Assertion failed: ${D(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=T(r.slice(1),3)),Qt.addBreadcrumb(i,{input:r,level:n}),e&&Function.prototype.apply.call(e,Kt.console,r)}})})}kt(){"document"in Kt&&(Kt.document.addEventListener("click",qt("click"),!1),Kt.document.addEventListener("keypress",Wt(),!1),["EventTarget","Node"].forEach(t=>{const n=Kt[t]&&Kt[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(O(n,"addEventListener",function(t){return function(n,e,r){return e&&e.handleEvent?("click"===n&&O(e,"handleEvent",function(t){return function(n){return qt("click")(n),t.call(this,n)}}),"keypress"===n&&O(e,"handleEvent",Wt())):("click"===n&&qt("click",!0)(this),"keypress"===n&&Wt()(this)),t.call(this,n,e,r)}}),O(n,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,n,i,r)}}))}))}Tt(){C()&&-1!==p().fetch.toString().indexOf("native")&&O(Kt,"fetch",function(n){return function(...e){const r=e[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Kt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),e[1]&&e[1].method&&(s=e[1].method);const o=G().getClient(),c=o&&o.getDsn();if(c){const t=new rt(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&e[1]&&e[1].body&&Yt(e[1].body),n.apply(Kt,e)}const u={method:s,url:i};return n.apply(Kt,e).then(t=>(u.status_code=t.status,Qt.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:e,response:t}),t)).catch(n=>{throw Qt.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:n,input:e}),n})}})}Rt(){if(!function(){const t=p(),n=t.chrome,e=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&r}())return;const t=(t,n)=>{const e=m(Kt.location.href),r=m(n);let i=m(t);i.path||(i=e),Zt=n,e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),e.protocol===i.protocol&&e.host===i.host&&(t=i.relative),Qt.addBreadcrumb({category:"navigation",data:{from:t,to:n}})},n=Kt.onpopstate;function e(n){return function(...e){const r=e.length>2?e[2]:void 0;return r&&t(Zt,String(r)),n.apply(this,e)}}Kt.onpopstate=((...e)=>{const r=Kt.location.href;if(t(Zt,r),n)return n.apply(this,e)}),O(Kt.history,"pushState",e),O(Kt.history,"replaceState",e)}It(){if(!("XMLHttpRequest"in Kt))return;const t=XMLHttpRequest.prototype;O(t,"open",t=>(function(...n){const e=n[1];this.__sentry_xhr__={method:n[0],url:n[1]};const r=G().getClient(),i=r&&r.getDsn();if(i){const t=new rt(i).getStoreEndpoint();a(e)&&t&&e.includes(t)&&(this.__sentry_own_request__=!0)}return t.apply(this,n)})),O(t,"send",t=>(function(...n){const e=this;function r(){if(4===e.readyState){if(e.__sentry_own_request__)return;try{e.__sentry_xhr__&&(e.__sentry_xhr__.status_code=e.status)}catch(t){}Qt.addBreadcrumb({category:"xhr",data:e.__sentry_xhr__,type:"http"},{xhr:e})}}return e.__sentry_own_request__&&Yt(n[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,n){t in n&&"function"==typeof n[t]&&O(n,t,n=>Bt(n,{mechanism:{data:{function:t,handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?O(e,"onreadystatechange",function(t){return Bt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):e.onreadystatechange=r,t.apply(this,n)}))}static addBreadcrumb(t,n){G().getIntegration(Qt)&&G().addBreadcrumb(t,n)}setupOnce(){this.Z.console&&this.St(),this.Z.dom&&this.kt(),this.Z.xhr&&this.It(),this.Z.fetch&&this.Tt(),this.Z.history&&this.Rt()}}function Yt(n){try{const e=JSON.parse(n);Qt.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||t.Severity.fromString("error"),message:y(e)},{event:e})}catch(t){j.error("Error while adding sentry type breadcrumb")}}Qt.id="Breadcrumbs";const tn="cause",nn=5;class en{constructor(t={}){this.name=en.id,this.Dt=t.key||tn,this.u=t.limit||nn}setupOnce(){N((t,n)=>{const e=G().getIntegration(en);return e?e.handler(t,n):t})}handler(t,n){if(!(t.exception&&t.exception.values&&n&&n.originalException instanceof Error))return t;const e=this.walkErrorTree(n.originalException,this.Dt);return t.exception.values=[...e,...t.exception.values],t}walkErrorTree(t,n,e=[]){if(!(t[n]instanceof Error)||e.length+1>=this.u)return e;const r=_t($t(t[n]));return this.walkErrorTree(t[n],n,[r,...e])}}en.id="LinkedErrors";const rn=p();class sn{constructor(){this.name=sn.id}setupOnce(){N(t=>{if(G().getIntegration(sn)){if(!rn.navigator||!rn.location)return t;const n=t.request||{};return n.url=n.url||rn.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=rn.navigator.userAgent,Object.assign({},t,{request:n})}return t})}}sn.id="UserAgent";var on=Object.freeze({GlobalHandlers:Gt,TryCatch:Jt,Breadcrumbs:Qt,LinkedErrors:en,UserAgent:sn});const cn=[new ft,new ht,new Jt,new Qt,new Gt,new en,new sn];let un={};const an=p();an.Sentry&&an.Sentry.Integrations&&(un=an.Sentry.Integrations);const hn=Object.assign({},un,dt,on);return t.Integrations=hn,t.Transports=Dt,t.addGlobalEventProcessor=N,t.addBreadcrumb=function(t){Z("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return Z("captureEvent",t)},t.captureMessage=function(t,n){let e;try{throw new Error(t)}catch(t){e=t}return Z("captureMessage",t,n,{originalException:t,syntheticException:e})},t.configureScope=function(t){Z("configureScope",t)},t.withScope=Q,t.getHubFromCarrier=V,t.getCurrentHub=G,t.Hub=W,t.Scope=A,t.BrowserClient=Lt,t.defaultIntegrations=cn,t.forceLoad=function(){},t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=cn),function(t,n){!0===n.debug&&j.enable(),G().bindClient(new t(n))}(Lt,t)},t.lastEventId=function(){return G().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=G().lastEventId());const n=G().getClient();n&&n.showReportDialog(t)},t.flush=function(t){return i(this,void 0,void 0,function*(){const n=G().getClient();return n?n.flush(t):Promise.reject(!1)})},t.close=function(t){return i(this,void 0,void 0,function*(){const n=G().getClient();return n?n.close(t):Promise.reject(!1)})},t.SDK_NAME=Ct,t.SDK_VERSION=Mt,t}({});
/*! @sentry/browser 5.1.2 (21890282) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var n,e,r;function i(t,n,e,r){return new(e||(e=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function c(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){t.done?i(t.value):new e(function(n){n(t.value)}).then(o,c)}u((r=r.apply(t,n||[])).next())})}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(n||(n={})),(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));class s extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function c(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function u(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}const d={};function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:d}function v(){const t=p(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){const t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=t=>{let n=t.toString(16);for(;n.length<4;)n=`0${n}`;return n};return e(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function m(t){if(!t)return{};const n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+e+r}}function y(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const n=t.exception.values[0];return n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function b(t){const n=p();if(!("console"in n))return t();const e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in n.console&&e[t].__sentry__&&(r[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});const i=t();return Object.keys(r).forEach(t=>{e[t]=r[t]}),i}function g(t,n,e,r={handled:!0,type:"generic"}){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||e||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}const w=p(),E="Sentry Logger ";w.__SENTRY__=w.__SENTRY__||{};const _=w.__SENTRY__.logger||(w.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&b(()=>{w.console.log(`${E}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&b(()=>{w.console.warn(`${E}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&b(()=>{w.console.error(`${E}[Error]: ${t.join(" ")}`)})}});class j{constructor(){this.i="function"==typeof WeakSet,this.s=this.i?new WeakSet:[]}memoize(t){if(this.i)return!!this.s.has(t)||(this.s.add(t),!1);for(let n=0;n<this.s.length;n++){if(this.s[n]===t)return!0}return this.s.push(t),!1}unmemoize(t){if(this.i)this.s.delete(t);else for(let n=0;n<this.s.length;n++)if(this.s[n]===t){this.s.splice(n,1);break}}}function $(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(t){}t[n]=i}function O(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function x(t,n=3,e=102400){const r=T(t,n);return O(r)>e?x(t,n-1,e):r}function S(t,n){return"domain"===n&&"object"==typeof t&&t.o?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":l(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var e}function k(t,n,e=1/0,r=new j){if(0===e)return function(t){const n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";const e=S(t);return h(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();const i=S(n,t);if(h(i))return i;const s=o(n)?function(t){const n={message:t.message,name:t.name,stack:t.stack};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(c[t]=k(t,s[t],e-1,r));return r.unmemoize(n),c}function T(t,n){try{return JSON.parse(JSON.stringify(t,(t,e)=>k(t,e,n)))}catch(t){return"**non-serializable**"}}class R{constructor(t){this.u=t,this.h=[]}isReady(){return void 0===this.u||this.length()<this.u}add(t){return i(this,void 0,void 0,function*(){return this.isReady()?(-1===this.h.indexOf(t)&&this.h.push(t),t.then(()=>i(this,void 0,void 0,function*(){return this.remove(t)})).catch(()=>i(this,void 0,void 0,function*(){return this.remove(t).catch(()=>{})})),t):Promise.reject(new s("Not adding Promise due to buffer limit reached."))})}remove(t){return i(this,void 0,void 0,function*(){return this.h.splice(this.h.indexOf(t),1)[0]})}length(){return this.h.length}drain(t){return i(this,void 0,void 0,function*(){return new Promise(n=>{const e=setTimeout(()=>{t&&t>0&&n(!1)},t);Promise.all(this.h).then(()=>{clearTimeout(e),n(!0)}).catch(()=>{n(!0)})})})}}function I(t,n=0){return 0===n?t:t.length<=n?t:`${t.substr(0,n)}...`}function D(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function F(t,n=40){if(!t.length)return"[object has no keys]";if(t[0].length>=n)return I(t[0],n);for(let e=t.length;e>0;e--){const r=t.slice(0,e).join(", ");if(!(r.length>n))return e===t.length?r:I(r,n)}return""}function C(){if(!("fetch"in p()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function M(){if(!C())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var L;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(L||(L={}));class U{constructor(t){this.l=L.PENDING,this.p=[],this.v=(t=>{this.m(t,L.RESOLVED)}),this.g=(t=>{this.m(t,L.REJECTED)}),this.m=((t,n)=>{this.l===L.PENDING&&(f(t)?t.then(this.v,this.g):(this._=t,this.l=n,this.j()))}),this.j=(()=>{this.l!==L.PENDING&&(this.l===L.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this._)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this._)),this.p=[])}),this.$=(t=>{this.p=this.p.concat(t),this.j()});try{t(this.v,this.g)}catch(t){this.g(t)}}then(t,n){return new U((e,r)=>{this.$({onFail:t=>{if(n)try{return void e(n(t))}catch(t){return void r(t)}else r(t)},onSuccess:n=>{if(t)try{return void e(t(n))}catch(t){return void r(t)}else e(n)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new U(n=>{n(t)})}static reject(t){return new U((n,e)=>{e(t)})}}class A{constructor(){this.O=!1,this.S=[],this.k=[],this.T=[],this.R={},this.I={},this.D={},this.F={}}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.k.push(t),this}C(){this.O||(this.O=!0,setTimeout(()=>{this.S.forEach(t=>{t(this)}),this.O=!1}))}M(t,n,e,r=0){return new U((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o(Object.assign({},n),e);f(c)?c.then(n=>this.M(t,n,e,r+1).then(i)).catch(s):this.M(t,c,e,r+1).then(i).catch(s)}})}setUser(t){return this.R=T(t),this.C(),this}setTags(t){return this.I=Object.assign({},this.I,T(t)),this.C(),this}setTag(t,n){return this.I=Object.assign({},this.I,{[t]:T(n)}),this.C(),this}setExtras(t){return this.D=Object.assign({},this.D,T(t)),this.C(),this}setExtra(t,n){return this.D=Object.assign({},this.D,{[t]:T(n)}),this.C(),this}setFingerprint(t){return this.L=T(t),this.C(),this}setLevel(t){return this.U=T(t),this.C(),this}setContext(t,n){return this.F[t]=n?T(n):void 0,this.C(),this}static clone(t){const n=new A;return Object.assign(n,t,{S:[]}),t&&(n.T=[...t.T],n.I=Object.assign({},t.I),n.D=Object.assign({},t.D),n.F=Object.assign({},t.F),n.R=t.R,n.U=t.U,n.L=t.L,n.k=[...t.k]),n}clear(){return this.T=[],this.I={},this.D={},this.R={},this.F={},this.U=void 0,this.L=void 0,this.C(),this}addBreadcrumb(t,n){const e=(new Date).getTime()/1e3,r=Object.assign({timestamp:e},t);return this.T=void 0!==n&&n>=0?[...this.T,T(r)].slice(-n):[...this.T,T(r)],this.C(),this}clearBreadcrumbs(){return this.T=[],this.C(),this}A(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.L&&(t.fingerprint=t.fingerprint.concat(this.L)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,n){return this.D&&Object.keys(this.D).length&&(t.extra=Object.assign({},this.D,t.extra)),this.I&&Object.keys(this.I).length&&(t.tags=Object.assign({},this.I,t.tags)),this.R&&Object.keys(this.R).length&&(t.user=Object.assign({},this.R,t.user)),this.F&&Object.keys(this.F).length&&(t.contexts=Object.assign({},this.F,t.contexts)),this.U&&(t.level=this.U),this.A(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.T],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.M([...P(),...this.k],t,n)}}function P(){const t=p();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function N(t){P().push(t)}const B=3,H=30,q=100;class W{constructor(t,n=new A,e=B){this.P=e,this.N=[],this.N.push({client:t,scope:n})}B(t,...n){const e=this.getStackTop();e&&e.client&&e.client[t]&&e.client[t](...n,e.scope)}isOlderThan(t){return this.P<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),n=t.length>0?t[t.length-1].scope:void 0,e=A.clone(n);return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return void 0!==this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.N}getStackTop(){return this.N[this.N.length-1]}captureException(t,n){const e=this.H=v();return this.B("captureException",t,Object.assign({},n,{event_id:e})),e}captureMessage(t,n,e){const r=this.H=v();return this.B("captureMessage",t,n,Object.assign({},e,{event_id:r})),r}captureEvent(t,n){const e=this.H=v();return this.B("captureEvent",t,Object.assign({},n,{event_id:e})),e}lastEventId(){return this.H}addBreadcrumb(t,n){const e=this.getStackTop();if(!e.scope||!e.client)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=H}=e.client.getOptions&&e.client.getOptions()||{};if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?b(()=>r(o,n)):o;null!==c&&e.scope.addBreadcrumb(c,Math.min(i,q))}configureScope(t){const n=this.getStackTop();n.scope&&n.client&&t(n.scope)}run(t){const n=z(this);try{t(this)}finally{z(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return _.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}}function X(){const t=p();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function z(t){const n=X(),e=V(n);return K(n,t),e}function G(){const t=X();J(t)&&!V(t).isOlderThan(B)||K(t,new W);try{const r=(n=module,e="domain",n.require(e)).active;if(!r)return V(t);if(!J(r)||V(r).isOlderThan(B)){const n=V(t).getStackTop();K(r,new W(n.client,A.clone(n.scope)))}return V(r)}catch(n){return V(t)}var n,e}function J(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function V(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new W,t.__SENTRY__.hub)}function K(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Z(t,...n){const e=G();if(e&&e[t])return e[t](...n);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Z("captureException",t,{originalException:t,syntheticException:n})}function Q(t){Z("withScope",t)}const Y=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,tt="Invalid Dsn";class nt{constructor(t){"string"==typeof t?this.q(t):this.W(t),this.X()}toString(t=!1){const{host:n,path:e,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${n}${i?`:${i}`:""}/${e?`${e}/`:e}${s}`}q(t){const n=Y.exec(t);if(!n)throw new s(tt);const[e,r,i="",o,c="",u]=n.slice(1);let a="",h=u;const l=h.split("/");l.length>1&&(a=l.slice(0,-1).join("/"),h=l.pop()),Object.assign(this,{host:o,pass:i,path:a,projectId:h,port:c,protocol:e,user:r})}W(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId}X(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new s(tt)}),"http"!==this.protocol&&"https"!==this.protocol)throw new s(tt);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new s(tt)}}const et="7";class rt{constructor(t){this.dsn=t,this.G=new nt(t)}getDsn(){return this.G}getStoreEndpoint(){return`${this.J()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.G.user,sentry_version:et};return`${this.getStoreEndpoint()}?${n=t,Object.keys(n).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`).join("&")}`;var n}J(){const t=this.G,n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}`}getStoreEndpointPath(){const t=this.G;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,n){const e=this.G,r=[`Sentry sentry_version=${et}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${n}`),r.push(`sentry_key=${e.user}`),e.pass&&r.push(`sentry_secret=${e.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const n=this.G,e=`${this.J()}${n.path?`/${n.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${n.toString()}`);for(const n in t)if("user"===n){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`);return r.length?`${e}?${r.join("&")}`:e}}const it=[];function st(t){const n={};return function(t){const n=t.defaultIntegrations&&[...t.defaultIntegrations]||[],e=t.integrations;let r=[];if(Array.isArray(e)){const t=e.map(t=>t.name),i=[];n.forEach(n=>{-1===t.indexOf(n.name)&&-1===i.indexOf(n.name)&&(r.push(n),i.push(n.name))}),e.forEach(t=>{-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})}else{if("function"!=typeof e)return[...n];r=e(n),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{n[t.name]=t,function(t){-1===it.indexOf(t.name)&&(t.setupOnce(N,G),it.push(t.name),_.log(`Integration installed: ${t.name}`))}(t)}),n}class ot{constructor(t,n){this.V=!1,this.K=new t(n),this.Z=n,n.dsn&&(this.Y=new nt(n.dsn)),this.tt=st(this.Z)}captureException(t,n,e){let r=n&&n.event_id;return this.V=!0,this.nt().eventFromException(t,n).then(t=>this.et(t,n,e)).then(t=>{r=t&&t.event_id,this.V=!1}).catch(t=>{_.error(t),this.V=!1}),r}captureMessage(t,n,e,r){let i=e&&e.event_id;return this.V=!0,(h(t)?this.nt().eventFromMessage(`${t}`,n,e):this.nt().eventFromException(t,e)).then(t=>this.et(t,e,r)).then(t=>{i=t&&t.event_id,this.V=!1}).catch(t=>{_.error(t),this.V=!1}),i}captureEvent(t,n,e){let r=n&&n.event_id;return this.V=!0,this.et(t,n,e).then(t=>{r=t&&t.event_id,this.V=!1}).catch(t=>{_.error(t),this.V=!1}),r}getDsn(){return this.Y}getOptions(){return this.Z}flush(t){return i(this,void 0,void 0,function*(){const n=yield this.rt(t);this.it&&clearInterval(this.it);const e=yield this.nt().getTransport().close(t);return n&&e})}close(t){return i(this,void 0,void 0,function*(){const n=yield this.flush(t);return this.getOptions().enabled=!1,n})}getIntegrations(){return this.tt||{}}getIntegration(t){try{return this.tt[t.id]||null}catch(n){return _.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}rt(t){return i(this,void 0,void 0,function*(){return new Promise(n=>{let e=0;this.it&&clearInterval(this.it),this.it=setInterval(()=>{this.V?(e+=1,t&&e>=t&&n(!1)):n(!0)},1)})})}nt(){return this.K}st(){return!1!==this.getOptions().enabled&&void 0!==this.Y}ot(t,n,e){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=I(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=I(u.value,o));const a=c.request;a&&a.url&&(a.url=I(a.url,o)),void 0===c.event_id&&(c.event_id=v()),this.ct(c.sdk);let h=U.resolve(c);return n&&(h=n.applyToEvent(c,e)),h}ct(t){const n=Object.keys(this.tt);t&&n.length>0&&(t.integrations=n)}et(t,n,e){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.st()?"number"==typeof i&&Math.random()>i?U.reject("This event has been sampled, will not send event."):new U((i,s)=>{this.ot(t,e,n).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let e=t;try{if(n&&n.data&&!0===n.data.__sentry__||!r)return this.nt().sendEvent(e),void i(e);const o=r(t,n);if(void 0===o)_.error("`beforeSend` method has to return `null` or a valid event.");else if(f(o))this.ut(o,i,s);else{if(null===(e=o))return _.log("`beforeSend` returned `null`, will not send event."),void i(null);this.nt().sendEvent(e),i(e)}}catch(t){this.captureException(t,{data:{__sentry__:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):U.reject("SDK not enabled, will not send event.")}ut(t,n,e){t.then(t=>{null!==t?(this.nt().sendEvent(t),n(t)):e("`beforeSend` returned `null`, will not send event.")}).catch(t=>{e(`beforeSend rejected with ${t}`)})}}class ct{sendEvent(n){return i(this,void 0,void 0,function*(){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})})}close(t){return i(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}class ut{constructor(t){this.Z=t,this.Z.dsn||_.warn("No DSN provided, backend will not do anything."),this.at=this.ht()}ht(){return new ct}eventFromException(t,n){throw new s("Backend has to implement `eventFromException` method")}eventFromMessage(t,n,e){throw new s("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.at.sendEvent(t).catch(t=>{_.error(`Error while sending event: ${t}`)})}getTransport(){return this.at}}let at;class ht{constructor(){this.name=ht.id}setupOnce(){at=Function.prototype.toString,Function.prototype.toString=function(...t){const n=this.__sentry__?this.__sentry_original__:this;return at.apply(n,t)}}}ht.id="FunctionToString";const lt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ft{constructor(t={}){this.Z=t,this.name=ft.id}setupOnce(){N(t=>{const n=G();if(!n)return t;const e=n.getIntegration(ft);if(e){const r=n.getClient(),i=r?r.getOptions():{},s=e.lt(i);if(e.ft(t,s))return null}return t})}ft(t,n){return this.dt(t,n)?(_.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${y(t)}`),!0):this.pt(t,n)?(_.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${y(t)}`),!0):this.vt(t,n)?(_.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${y(t)}.\nUrl: ${this.yt(t)}`),!0):!this.bt(t,n)&&(_.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${y(t)}.\nUrl: ${this.yt(t)}`),!0)}dt(t,n={}){if(!n.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}pt(t,n={}){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.gt(t).some(t=>n.ignoreErrors.some(n=>this.wt(t,n)))}vt(t,n={}){if(!n.blacklistUrls||!n.blacklistUrls.length)return!1;const e=this.yt(t);return!!e&&n.blacklistUrls.some(t=>this.wt(e,t))}bt(t,n={}){if(!n.whitelistUrls||!n.whitelistUrls.length)return!0;const e=this.yt(t);return!e||n.whitelistUrls.some(t=>this.wt(e,t))}lt(t={}){return{blacklistUrls:[...this.Z.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.Z.ignoreErrors||[],...t.ignoreErrors||[],...lt],ignoreInternal:void 0===this.Z.ignoreInternal||this.Z.ignoreInternal,whitelistUrls:[...this.Z.whitelistUrls||[],...t.whitelistUrls||[]]}}wt(t,n){return e=n,"[object RegExp]"===Object.prototype.toString.call(e)?n.test(t):"string"==typeof n&&t.includes(n);var e}gt(t){if(t.message)return[t.message];if(t.exception)try{const{type:n,value:e}=t.exception.values[0];return[`${e}`,`${n}: ${e}`]}catch(n){return _.error(`Cannot extract message for event ${y(t)}`),[]}return[]}yt(t){try{if(t.stacktrace){const n=t.stacktrace.frames;return n[n.length-1].filename}if(t.exception){const n=t.exception.values[0].stacktrace.frames;return n[n.length-1].filename}return null}catch(n){return _.error(`Cannot extract url for event ${y(t)}`),null}}}ft.id="InboundFilters";var dt=Object.freeze({FunctionToString:ht,InboundFilters:ft}),pt=p(),vt={Et:!1,_t:!1,jt:!1,$t:!1},mt="?",yt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function bt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function gt(){return"undefined"==typeof document||null==document.location?"":document.location.href}vt.Et=function(){var t,n,e=[],r=null,i=null;function s(t,n,r){var i=null;if(!n||vt._t){for(var s in e)if(bt(e,s))try{e[s](t,n,r)}catch(t){i=t}if(i)throw i}}function u(n,e,r,u,a){var l=null;if(a=c(a)?a.error:a,n=c(n)?n.message:n,i)vt.jt.Ot(i,e,r,n),h();else if(a&&o(a))(l=vt.jt(a)).mechanism="onerror",s(l,!0,a);else{var f,d={url:e,line:r,column:u},p=n;if("[object String]"==={}.toString.call(n)){var v=n.match(yt);v&&(f=v[1],p=v[2])}d.func=mt,d.context=null,s(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||gt()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var n=t&&(t.detail?t.detail.reason:t.reason)||t,e=vt.jt(n);e.mechanism="onunhandledrejection",s(e,!0,n)}function h(){var t=i,n=r;i=null,r=null,s(t,!1,n)}function l(t){if(i){if(r===t)return;h()}var n=vt.jt(t);throw i=n,r=t,setTimeout(function(){r===t&&h()},n.incomplete?2e3:0),t}return l.xt=function(t){e.push(t)},l.St=function(){!0!==n&&(t=pt.onerror,pt.onerror=u,n=!0)},l.kt=function(){pt.onunhandledrejection=a},l}(),vt.jt=function(){function t(t){if(!t.stack)return null;for(var n,e,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(e=i.exec(a[f])){var p=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(n=u.exec(e[2]))&&(e[2]=n[1]),r={url:p?null:e[2],func:e[1]||mt,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=o.exec(a[f]))r={url:e[2],func:e[1]||mt,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=s.exec(a[f])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(n=c.exec(e[3]))?e[3]=n[1]:0!==f||e[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:e[3],func:e[1]||mt,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=mt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function n(t,n,e,r){var i={url:n,line:e};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=mt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function e(t,r){for(var i,s,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],u={},a=!1,h=e.caller;h&&!a;h=h.caller)if(h!==jt&&h!==vt.Et){if(s={url:null,func:mt,args:[],line:null,column:null},h.name?s.func=h.name:(i=o.exec(h.toString()))&&(s.func=i[1]),void 0===s.func)try{s.func=i.input.substring(0,i.input.indexOf("{"))}catch(t){}u[""+h]?a=!0:u[""+h]=!0,c.push(s)}r&&c.splice(0,r);var l={mode:"callers",name:t.name,message:t.message,stack:c};return n(l,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),l}function r(n,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var n=t.stacktrace;if(n){for(var e,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=n.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(e=r.exec(s[c]))?u={url:e[2],line:+e[1],column:null,func:e[3],args:[]}:(e=i.exec(s[c]))&&(u={url:e[6],line:+e[1],column:+e[2],func:e[3]||e[4],args:e[5]?e[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=mt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(n))return i}catch(t){}try{if(i=t(n))return i}catch(t){}try{if(i=function(t){var n=t.message.split("\n");if(n.length<4)return null;var e,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=pt&&pt.document&&pt.document.getElementsByTagName("script"),u=[];for(var a in c)bt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<n.length;h+=2){var l=null;(e=r.exec(n[h]))?l={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=i.exec(n[h]))?l={url:e[3],func:e[4],args:[],line:+e[1],column:null}:(e=s.exec(n[h]))&&(l={url:gt().replace(/#.*$/,""),func:"",args:[],line:e[1],column:null}),l&&(l.func||(l.func=mt),l.context=[n[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:n[0],stack:o}:null}(n))return i}catch(t){}try{if(i=e(n,r+1))return i}catch(t){}return{original:n,name:n.name,message:n.message,mode:"failed"}}return r.Ot=n,r.Tt=t,r}(),vt._t=!0,vt.$t=11;const wt=vt.Et.xt,Et=vt.Et.St,_t=vt.Et.kt,jt=vt.jt,$t=50;function Ot(t){const n=St(t.stack),e={type:t.name,value:t.message};return n&&n.length&&(e.stacktrace={frames:n}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function xt(t){return{exception:{values:[Ot(t)]}}}function St(t){if(!t||!t.length)return[];let n=t;const e=n[0].func||"",r=n[n.length-1].func||"";return(e.includes("captureMessage")||e.includes("captureException"))&&(n=n.slice(1)),r.includes("sentryWrapped")&&(n=n.slice(0,-1)),n.map(t=>({colno:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,$t).reverse()}class kt{constructor(t){this.options=t,this.h=new R(30),this.url=new rt(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){return i(this,void 0,void 0,function*(){throw new s("Transport Class has to implement `sendEvent` method")})}close(t){return i(this,void 0,void 0,function*(){return this.h.drain(t)})}}const Tt=p();class Rt extends kt{sendEvent(n){return i(this,void 0,void 0,function*(){const e={body:JSON.stringify(n),method:"POST",referrerPolicy:M()?"origin":""};return this.h.add(Tt.fetch(this.url,e).then(n=>({status:t.Status.fromHttpCode(n.status)})))})}}class It extends kt{sendEvent(n){return i(this,void 0,void 0,function*(){return this.h.add(new Promise((e,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&e({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(n))}))})}}var Dt=Object.freeze({BaseTransport:kt,FetchTransport:Rt,XHRTransport:It});class Ft extends ut{ht(){if(!this.Z.dsn)return super.ht();const t=this.Z.transportOptions?this.Z.transportOptions:{dsn:this.Z.dsn};return this.Z.transport?new this.Z.transport(t):C()?new Rt(t):new It(t)}eventFromException(n,e){let r;if(c(n)&&n.error){return n=n.error,r=xt(jt(n)),U.resolve(this.Rt(r,e))}if(u(n)||(i=n,"[object DOMException]"===Object.prototype.toString.call(i))){const r=n,i=r.name||(u(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,e).then(t=>(g(t,s),U.resolve(this.Rt(t,e))))}var i;if(o(n))return r=xt(jt(n)),U.resolve(this.Rt(r,e));if(l(n)&&e&&e.syntheticException){return g(r=function(t,n){const e=Object.keys(t).sort(),r={extra:{__serialized__:x(t)},message:`Non-Error exception captured with keys: ${F(e)}`};if(n){const t=St(jt(n).stack);r.stacktrace={frames:t}}return r}(n,e.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,U.resolve(this.Rt(r,e))}const s=n;return this.eventFromMessage(s,void 0,e).then(n=>(g(n,`${s}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),n.level=t.Severity.Error,U.resolve(this.Rt(n,e))))}Rt(t,n){return Object.assign({},t,{event_id:n&&n.event_id})}eventFromMessage(n,e=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:e,message:n};if(this.Z.attachStacktrace&&r&&r.syntheticException){const t=St(jt(r.syntheticException).stack);i.stacktrace={frames:t}}return U.resolve(i)}}const Ct="sentry.javascript.browser",Mt="5.1.2";class Lt extends ot{constructor(t={}){super(Ft,t)}ot(t,n,e){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Ct,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Mt}],version:Mt}),super.ot(t,n,e)}showReportDialog(t={}){const n=p().document;if(!n)return;if(!this.st())return void _.error("Trying to call showReportDialog with Sentry Client is disabled");const e=t.dsn||this.getDsn();if(!t.eventId)return void _.error("Missing `eventId` option in showReportDialog call");if(!e)return void _.error("Missing `Dsn` option in showReportDialog call");const r=n.createElement("script");r.async=!0,r.src=new rt(e).getReportDialogEndpoint(t),(n.head||n.body).appendChild(r)}}const Ut=1e3;let At,Pt,Nt=0;function Bt(t,n={},e){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}const sentryWrapped=function(){e&&"function"==typeof e&&e.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const e=r.map(t=>Bt(t,n));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Nt+=1,setTimeout(()=>{Nt-=1}),Q(e=>{e.addEventProcessor(t=>{const e=Object.assign({},t);return n.mechanism&&g(e,void 0,void 0,n.mechanism),e.extra=Object.assign({},e.extra,{arguments:T(r,3)}),e}),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}let Ht=0;function qt(t,n=!1){return e=>{if(At=void 0,!e||Pt===e)return;Pt=e;const r=()=>{let n;try{n=e.target?Xt(e.target):Xt(e)}catch(t){n="<unknown>"}0!==n.length&&G().addBreadcrumb({category:`ui.${t}`,message:n},{event:e,name:t})};Ht&&clearTimeout(Ht),n?Ht=setTimeout(r):r()}}function Wt(){return t=>{let n;try{n=t.target}catch(t){return}const e=n&&n.tagName;e&&("INPUT"===e||"TEXTAREA"===e||n.isContentEditable)&&(At||qt("input")(t),clearTimeout(At),At=setTimeout(()=>{At=void 0},Ut))}}function Xt(t){let n=t;const e=[];let r=0,i=0;const s=" > ".length;let o;for(;n&&r++<5&&!("html"===(o=zt(n))||r>1&&i+e.length*s+o.length>=80);)e.push(o),i+=o.length,n=n.parentNode;return e.reverse().join(" > ")}function zt(t){const n=[];let e,r,i,s,o;if(!t||!t.tagName)return"";if(n.push(t.tagName.toLowerCase()),t.id&&n.push(`#${t.id}`),(e=t.className)&&a(e))for(r=e.split(/\s+/),o=0;o<r.length;o++)n.push(`.${r[o]}`);const c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(s=t.getAttribute(i))&&n.push(`[${i}="${s}"]`);return n.join("")}class Gt{constructor(t){this.name=Gt.id,this.Z=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,wt((t,n,e)=>{if(Nt>0)return;const r=G().getIntegration(Gt);r&&G().captureEvent(r.It(t),{data:{stack:t},originalException:e})}),this.Z.onerror&&(_.log("Global Handler attached: onerror"),Et()),this.Z.onunhandledrejection&&(_.log("Global Handler attached: onunhandledrejection"),_t())}It(t){const n=xt(t),e={mode:t.mode};t.message&&(e.message=t.message),t.name&&(e.name=t.name);const r=G().getClient(),i=r&&r.getOptions().maxValueLength||250;return g(n,t.original?I(JSON.stringify(T(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:t.mechanism}),n}}Gt.id="GlobalHandlers";class Jt{constructor(){this.Dt=0,this.name=Jt.id}Ft(t){return function(...n){const e=n[0];return n[0]=Bt(e,{mechanism:{data:{function:Vt(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}Ct(t){return function(n){return t(Bt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Vt(t)},handled:!0,type:"instrument"}}))}}Mt(t){const n=p(),e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&($(e,"addEventListener",function(n){return function(e,r,i){try{r.handleEvent=Bt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Vt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}return n.call(this,e,Bt(r,{mechanism:{data:{function:"addEventListener",handler:Vt(r),target:t},handled:!0,type:"instrument"}}),i)}}),$(e,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,n,i,r)}}))}setupOnce(){this.Dt=this.Dt;const t=p();$(t,"setTimeout",this.Ft.bind(this)),$(t,"setInterval",this.Ft.bind(this)),$(t,"requestAnimationFrame",this.Ct.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.Mt.bind(this))}}function Vt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Jt.id="TryCatch";const Kt=p();let Zt;class Qt{constructor(t){this.name=Qt.id,this.Z=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}Lt(){"console"in Kt&&["debug","info","warn","error","log","assert"].forEach(function(n){n in Kt.console&&$(Kt.console,n,function(e){return function(...r){const i={category:"console",data:{extra:{arguments:T(r,3)},logger:"console"},level:t.Severity.fromString(n),message:D(r," ")};"assert"===n&&!1===r[0]&&(i.message=`Assertion failed: ${D(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=T(r.slice(1),3)),Qt.addBreadcrumb(i,{input:r,level:n}),e&&Function.prototype.apply.call(e,Kt.console,r)}})})}Ut(){"document"in Kt&&(Kt.document.addEventListener("click",qt("click"),!1),Kt.document.addEventListener("keypress",Wt(),!1),["EventTarget","Node"].forEach(t=>{const n=Kt[t]&&Kt[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($(n,"addEventListener",function(t){return function(n,e,r){return e&&e.handleEvent?("click"===n&&$(e,"handleEvent",function(t){return function(n){return qt("click")(n),t.call(this,n)}}),"keypress"===n&&$(e,"handleEvent",Wt())):("click"===n&&qt("click",!0)(this),"keypress"===n&&Wt()(this)),t.call(this,n,e,r)}}),$(n,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,n,i,r)}}))}))}At(){C()&&-1!==p().fetch.toString().indexOf("native")&&$(Kt,"fetch",function(n){return function(...e){const r=e[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Kt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),e[1]&&e[1].method&&(s=e[1].method);const o=G().getClient(),c=o&&o.getDsn();if(c){const t=new rt(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&e[1]&&e[1].body&&Yt(e[1].body),n.apply(Kt,e)}const u={method:s,url:i};return n.apply(Kt,e).then(t=>(u.status_code=t.status,Qt.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:e,response:t}),t)).catch(n=>{throw Qt.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:n,input:e}),n})}})}Pt(){if(!function(){const t=p(),n=t.chrome,e=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&r}())return;const t=(t,n)=>{const e=m(Kt.location.href),r=m(n);let i=m(t);i.path||(i=e),Zt=n,e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),e.protocol===i.protocol&&e.host===i.host&&(t=i.relative),Qt.addBreadcrumb({category:"navigation",data:{from:t,to:n}})},n=Kt.onpopstate;function e(n){return function(...e){const r=e.length>2?e[2]:void 0;return r&&t(Zt,String(r)),n.apply(this,e)}}Kt.onpopstate=((...e)=>{const r=Kt.location.href;if(t(Zt,r),n)return n.apply(this,e)}),$(Kt.history,"pushState",e),$(Kt.history,"replaceState",e)}Nt(){if(!("XMLHttpRequest"in Kt))return;const t=XMLHttpRequest.prototype;$(t,"open",t=>(function(...n){const e=n[1];this.__sentry_xhr__={method:n[0],url:n[1]};const r=G().getClient(),i=r&&r.getDsn();if(i){const t=new rt(i).getStoreEndpoint();a(e)&&t&&e.includes(t)&&(this.__sentry_own_request__=!0)}return t.apply(this,n)})),$(t,"send",t=>(function(...n){const e=this;function r(){if(4===e.readyState){if(e.__sentry_own_request__)return;try{e.__sentry_xhr__&&(e.__sentry_xhr__.status_code=e.status)}catch(t){}Qt.addBreadcrumb({category:"xhr",data:e.__sentry_xhr__,type:"http"},{xhr:e})}}return e.__sentry_own_request__&&Yt(n[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,n){t in n&&"function"==typeof n[t]&&$(n,t,n=>Bt(n,{mechanism:{data:{function:t,handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?$(e,"onreadystatechange",function(t){return Bt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):e.onreadystatechange=r,t.apply(this,n)}))}static addBreadcrumb(t,n){G().getIntegration(Qt)&&G().addBreadcrumb(t,n)}setupOnce(){this.Z.console&&this.Lt(),this.Z.dom&&this.Ut(),this.Z.xhr&&this.Nt(),this.Z.fetch&&this.At(),this.Z.history&&this.Pt()}}function Yt(n){try{const e=JSON.parse(n);Qt.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||t.Severity.fromString("error"),message:y(e)},{event:e})}catch(t){_.error("Error while adding sentry type breadcrumb")}}Qt.id="Breadcrumbs";const tn="cause",nn=5;class en{constructor(t={}){this.name=en.id,this.Bt=t.key||tn,this.u=t.limit||nn}setupOnce(){N((t,n)=>{const e=G().getIntegration(en);return e?e.Ht(t,n):t})}Ht(t,n){if(!(t.exception&&t.exception.values&&n&&n.originalException instanceof Error))return t;const e=this.qt(n.originalException,this.Bt);return t.exception.values=[...e,...t.exception.values],t}qt(t,n,e=[]){if(!(t[n]instanceof Error)||e.length+1>=this.u)return e;const r=Ot(jt(t[n]));return this.qt(t[n],n,[r,...e])}}en.id="LinkedErrors";const rn=p();class sn{constructor(){this.name=sn.id}setupOnce(){N(t=>{if(G().getIntegration(sn)){if(!rn.navigator||!rn.location)return t;const n=t.request||{};return n.url=n.url||rn.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=rn.navigator.userAgent,Object.assign({},t,{request:n})}return t})}}sn.id="UserAgent";var on=Object.freeze({GlobalHandlers:Gt,TryCatch:Jt,Breadcrumbs:Qt,LinkedErrors:en,UserAgent:sn});const cn=[new ft,new ht,new Jt,new Qt,new Gt,new en,new sn];let un={};const an=p();an.Sentry&&an.Sentry.Integrations&&(un=an.Sentry.Integrations);const hn=Object.assign({},un,dt,on);return t.Integrations=hn,t.Transports=Dt,t.addGlobalEventProcessor=N,t.addBreadcrumb=function(t){Z("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return Z("captureEvent",t)},t.captureMessage=function(t,n){let e;try{throw new Error(t)}catch(t){e=t}return Z("captureMessage",t,n,{originalException:t,syntheticException:e})},t.configureScope=function(t){Z("configureScope",t)},t.withScope=Q,t.getHubFromCarrier=V,t.getCurrentHub=G,t.Hub=W,t.Scope=A,t.BrowserClient=Lt,t.defaultIntegrations=cn,t.forceLoad=function(){},t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=cn),function(t,n){!0===n.debug&&_.enable(),G().bindClient(new t(n))}(Lt,t)},t.lastEventId=function(){return G().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=G().lastEventId());const n=G().getClient();n&&n.showReportDialog(t)},t.flush=function(t){return i(this,void 0,void 0,function*(){const n=G().getClient();return n?n.flush(t):Promise.reject(!1)})},t.close=function(t){return i(this,void 0,void 0,function*(){const n=G().getClient();return n?n.close(t):Promise.reject(!1)})},t.SDK_NAME=Ct,t.SDK_VERSION=Mt,t}({});
//# sourceMappingURL=bundle.es6.min.js.map

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.1.1 (71412c6a) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t,r,e){return new(r||(r=Promise))(function(i,o){function u(n){try{s(e.next(n))}catch(n){o(n)}}function c(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){n.done?i(n.value):new r(function(t){t(n.value)}).then(u,c)}s((e=e.apply(n,t||[])).next())})}function s(n,t){var r,e,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,e&&(i=2&o[0]?e.return:o[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,o[1])).done)return i;switch(e=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,e=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],e=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function a(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function f(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(a(arguments[t]));return n}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),(i=n.Severity||(n.Severity={})).Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical",function(n){n.fromString=function(t){switch(t){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}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var h=function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}return r(t,n),t}(Error);function v(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function l(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function d(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function p(n){return"[object String]"===Object.prototype.toString.call(n)}function m(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function y(n){return"[object Object]"===Object.prototype.toString.call(n)}function b(n){return Boolean(n&&n.then&&"function"==typeof n.then)}var w={};function g(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:w}function E(){var n=g(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return e(r[0])+e(r[1])+e(r[2])+e(r[3])+e(r[4])+e(r[5])+e(r[6])+e(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function j(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",e=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+e}}function x(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function S(n){var t=g();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].__sentry__&&(e[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}function O(n,t,r,e){void 0===e&&(e={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||e}var _=g(),k="Sentry Logger ",T=function(){function n(){this.t=!1}return n.prototype.disable=function(){this.t=!1},n.prototype.enable=function(){this.t=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){_.console.log(k+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){_.console.warn(k+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){_.console.error(k+"[Error]: "+n.join(" "))})},n}();_.__SENTRY__=_.__SENTRY__||{};var R=_.__SENTRY__.logger||(_.__SENTRY__.logger=new T),D=function(){function n(){this.i="function"==typeof WeakSet,this.o=this.i?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.i)return!!this.o.has(n)||(this.o.add(n),!1);for(var t=0;t<this.o.length;t++){if(this.o[t]===n)return!0}return this.o.push(n),!1},n.prototype.unmemoize=function(n){if(this.i)this.o.delete(n);else for(var t=0;t<this.o.length;t++)if(this.o[t]===n){this.o.splice(t,1);break}},n}();function I(n,t,r){if(t in n){var e=n[t],i=r(e);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e},__sentry_wrapped__:{enumerable:!1,value:i}})),n[t]=i}}function A(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function C(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var e=N(n,t);return A(e)>r?C(n,t-1,r):e}function L(n,t){return"domain"===t&&"object"==typeof n&&n.u?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":y(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function M(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new D),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=L(n);return m(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=L(t,n);if(m(i))return i;var o=v(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=M(c,o[c],r-1,e));return e.unmemoize(t),u}function N(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return M(n,r,t)}))}catch(n){return"**non-serializable**"}}var F,U=function(){function n(n){this.s=n,this.h=[]}return n.prototype.isReady=function(){return void 0===this.s||this.length()<this.s},n.prototype.add=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return this.isReady()?(-1===this.h.indexOf(n)&&this.h.push(n),n.then(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n)]})})}).catch(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n).catch(function(){})]})})}),[2,n]):[2,Promise.reject(new h("Not adding Promise due to buffer limit reached."))]})})},n.prototype.remove=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.h.splice(this.h.indexOf(n),1)[0]]})})},n.prototype.length=function(){return this.h.length},n.prototype.drain=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var e=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.h).then(function(){clearTimeout(e),r(!0)}).catch(function(){r(!0)})})]})})},n}();function P(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function $(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function q(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return P(n[0],t);for(var r=n.length;r>0;r--){var e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:P(e,t)}return""}function H(){if(!("fetch"in g()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function W(){if(!H())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(F||(F={}));var B=function(){function n(n){var t=this;this.v=F.PENDING,this.l=[],this.p=function(n){t.m(n,F.RESOLVED)},this.g=function(n){t.m(n,F.REJECTED)},this.m=function(n,r){t.v===F.PENDING&&(b(n)?n.then(t.p,t.g):(t.j=n,t.v=r,t.S()))},this.S=function(){t.v!==F.PENDING&&(t.v===F.REJECTED?t.l.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.l.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.l=[])},this.O=function(n){t.l=t.l.concat(n),t.S()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var e=this;return new n(function(n,i){e.O({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void i(n)}else i(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void i(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),G=function(){function n(){this._=!1,this.k=[],this.T=[],this.R=[],this.D={},this.I={},this.A={},this.C={}}return n.prototype.addScopeListener=function(n){this.k.push(n)},n.prototype.addEventProcessor=function(n){return this.T.push(n),this},n.prototype.L=function(){var n=this;this._||(this._=!0,setTimeout(function(){n.k.forEach(function(t){t(n)}),n._=!1}))},n.prototype.M=function(n,t,r,e){var i=this;return void 0===e&&(e=0),new B(function(o,c){var s=n[e];if(null===t||"function"!=typeof s)o(t);else{var a=s(u({},t),r);b(a)?a.then(function(t){return i.M(n,t,r,e+1).then(o)}).catch(c):i.M(n,a,r,e+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.D=N(n),this.L(),this},n.prototype.setTags=function(n){return this.I=u({},this.I,N(n)),this.L(),this},n.prototype.setTag=function(n,t){var r;return this.I=u({},this.I,((r={})[n]=N(t),r)),this.L(),this},n.prototype.setExtras=function(n){return this.A=u({},this.A,N(n)),this.L(),this},n.prototype.setExtra=function(n,t){var r;return this.A=u({},this.A,((r={})[n]=N(t),r)),this.L(),this},n.prototype.setFingerprint=function(n){return this.N=N(n),this.L(),this},n.prototype.setLevel=function(n){return this.F=N(n),this.L(),this},n.prototype.setContext=function(n,t){return this.C[n]=t?N(t):void 0,this.L(),this},n.clone=function(t){var r=new n;return Object.assign(r,t,{k:[]}),t&&(r.R=f(t.R),r.I=u({},t.I),r.A=u({},t.A),r.C=u({},t.C),r.D=t.D,r.F=t.F,r.N=t.N,r.T=f(t.T)),r},n.prototype.clear=function(){return this.R=[],this.I={},this.A={},this.D={},this.C={},this.F=void 0,this.N=void 0,this.L(),this},n.prototype.addBreadcrumb=function(n,t){var r=(new Date).getTime()/1e3,e=u({timestamp:r},n);return this.R=void 0!==t&&t>=0?f(this.R,[N(e)]).slice(-t):f(this.R,[N(e)]),this.L(),this},n.prototype.clearBreadcrumbs=function(){return this.R=[],this.L(),this},n.prototype.U=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.N&&(n.fingerprint=n.fingerprint.concat(this.N)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.A&&Object.keys(this.A).length&&(n.extra=u({},this.A,n.extra)),this.I&&Object.keys(this.I).length&&(n.tags=u({},this.I,n.tags)),this.D&&Object.keys(this.D).length&&(n.user=u({},this.D,n.user)),this.C&&Object.keys(this.C).length&&(n.contexts=u({},this.C,n.contexts)),this.F&&(n.level=this.F),this.U(n),n.breadcrumbs=f(n.breadcrumbs||[],this.R),n.breadcrumbs=n.breadcrumbs.length>0?n.breadcrumbs:void 0,this.M(f(J(),this.T),n,t)},n}();function J(){var n=g();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function X(n){J().push(n)}var z=3,V=function(){function n(n,t,r){void 0===t&&(t=new G),void 0===r&&(r=z),this.P=r,this.$=[],this.$.push({client:n,scope:t})}return n.prototype.q=function(n){for(var t,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=this.getStackTop();i&&i.client&&i.client[n]&&(t=i.client)[n].apply(t,f(r,[i.scope]))},n.prototype.isOlderThan=function(n){return this.P<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=G.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.$},n.prototype.getStackTop=function(){return this.$[this.$.length-1]},n.prototype.captureException=function(n,t){var r=this.H=E();return this.q("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var e=this.H=E();return this.q("captureMessage",n,t,u({},r,{event_id:e})),e},n.prototype.captureEvent=function(n,t){var r=this.H=E();return this.q("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.H},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var e=r.client.getOptions&&r.client.getOptions()||{},i=e.beforeBreadcrumb,o=void 0===i?null:i,c=e.maxBreadcrumbs,s=void 0===c?30:c;if(!(s<=0)){var a=(new Date).getTime()/1e3,f=u({timestamp:a},n),h=o?S(function(){return o(f,t)}):f;null!==h&&r.scope.addBreadcrumb(h,Math.min(s,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=Z(this);try{n(this)}finally{Z(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return R.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n}();function K(){var n=g();return n.__SENTRY__=n.__SENTRY__||{hub:void 0},n}function Z(n){var t=K(),r=nn(t);return tn(t,n),r}function Q(){var n,t,r=K();Y(r)&&!nn(r).isOlderThan(z)||tn(r,new V);try{var e=(n=module,t="domain",n.require(t)).active;if(!e)return nn(r);if(!Y(e)||nn(e).isOlderThan(z)){var i=nn(r).getStackTop();tn(e,new V(i.client,G.clone(i.scope)))}return nn(e)}catch(n){return nn(r)}}function Y(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function nn(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub?n.__SENTRY__.hub:(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new V,n.__SENTRY__.hub)}function tn(n,t){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=t,!0)}function rn(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var e=Q();if(e&&e[n])return e[n].apply(e,f(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return rn("captureException",n,{originalException:n,syntheticException:t})}function en(n){rn("withScope",n)}var on=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,un=function(){function n(n){"string"==typeof n?this.W(n):this.B(n),this.G()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,e=t.path,i=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},n.prototype.W=function(n){var t=on.exec(n);if(!t)throw new h("Invalid Dsn");var r=a(t.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,c=r[3],s=r[4],f=void 0===s?"":s,v="",l=r[5],d=l.split("/");d.length>1&&(v=d.slice(0,-1).join("/"),l=d.pop()),Object.assign(this,{host:c,pass:u,path:v,projectId:l,port:f,protocol:e,user:i})},n.prototype.B=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.G=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new h("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new h("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new h("Invalid Dsn")},n}(),cn=function(){function n(n){this.dsn=n,this.J=new un(n)}return n.prototype.getDsn=function(){return this.J},n.prototype.getStoreEndpoint=function(){return""+this.X()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.J.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.X=function(){var n=this.J,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.J;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.J,e=["Sentry sentry_version=7"];return e.push("sentry_timestamp="+(new Date).getTime()),e.push("sentry_client="+n+"/"+t),e.push("sentry_key="+r.user),r.pass&&e.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":e.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.J,r=this.X()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",e=[];for(var i in e.push("dsn="+t.toString()),n)if("user"===i){if(!n.user)continue;n.user.name&&e.push("name="+encodeURIComponent(n.user.name)),n.user.email&&e.push("email="+encodeURIComponent(n.user.email))}else e.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return e.length?r+"?"+e.join("&"):r},n}(),sn=[];function an(n){var t={};return function(n){var t=n.defaultIntegrations&&f(n.defaultIntegrations)||[],r=n.integrations,e=[];if(Array.isArray(r)){var i=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===i.indexOf(n.name)&&-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))}),r.forEach(function(n){-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))})}else{if("function"!=typeof r)return f(t);e=r(t),e=Array.isArray(e)?e:[e]}return e}(n).forEach(function(n){t[n.name]=n,function(n){-1===sn.indexOf(n.name)&&(n.setupOnce(X,Q),sn.push(n.name),R.log("Integration installed: "+n.name))}(n)}),t}var fn,hn=function(){function n(n,t){this.V=!1,this.K=new n(t),this.Z=t,t.dsn&&(this.Y=new un(t.dsn)),this.nn=an(this.Z)}return n.prototype.captureException=function(n,t,r){var e=this,i=t&&t.event_id;return this.V=!0,this.tn().eventFromException(n,t).then(function(n){return e.rn(n,t,r)}).then(function(n){i=n&&n.event_id,e.V=!1}).catch(function(n){R.error(n),e.V=!1}),i},n.prototype.captureMessage=function(n,t,r,e){var i=this,o=r&&r.event_id;return this.V=!0,(m(n)?this.tn().eventFromMessage(""+n,t,r):this.tn().eventFromException(n,r)).then(function(n){return i.rn(n,r,e)}).then(function(n){o=n&&n.event_id,i.V=!1}).catch(function(n){R.error(n),i.V=!1}),o},n.prototype.captureEvent=function(n,t,r){var e=this,i=t&&t.event_id;return this.V=!0,this.rn(n,t,r).then(function(n){i=n&&n.event_id,e.V=!1}).catch(function(n){R.error(n),e.V=!1}),i},n.prototype.getDsn=function(){return this.Y},n.prototype.getOptions=function(){return this.Z},n.prototype.flush=function(n){return c(this,void 0,void 0,function(){var t,r;return s(this,function(e){switch(e.label){case 0:return[4,this.en(n)];case 1:return t=e.sent(),this.in&&clearInterval(this.in),[4,this.tn().getTransport().close(n)];case 2:return r=e.sent(),[2,t&&r]}})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){switch(r.label){case 0:return[4,this.flush(n)];case 1:return t=r.sent(),this.getOptions().enabled=!1,[2,t]}})})},n.prototype.getIntegrations=function(){return this.nn||{}},n.prototype.getIntegration=function(n){try{return this.nn[n.id]||null}catch(t){return R.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.en=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var e=0;t.in&&clearInterval(t.in),t.in=setInterval(function(){t.V?(e+=1,n&&e>=n&&r(!1)):r(!0)},1)})]})})},n.prototype.tn=function(){return this.K},n.prototype.on=function(){return!1!==this.getOptions().enabled&&void 0!==this.Y},n.prototype.un=function(n,t,r){var e=this.getOptions(),i=e.environment,o=e.release,c=e.dist,s=e.maxValueLength,a=void 0===s?250:s,f=u({},n);void 0===f.environment&&void 0!==i&&(f.environment=i),void 0===f.release&&void 0!==o&&(f.release=o),void 0===f.dist&&void 0!==c&&(f.dist=c),f.message&&(f.message=P(f.message,a));var h=f.exception&&f.exception.values&&f.exception.values[0];h&&h.value&&(h.value=P(h.value,a));var v=f.request;v&&v.url&&(v.url=P(v.url,a)),void 0===f.event_id&&(f.event_id=E()),this.cn(f.sdk);var l=B.resolve(f);return t&&(l=t.applyToEvent(f,r)),l},n.prototype.cn=function(n){var t=Object.keys(this.nn);n&&t.length>0&&(n.integrations=t)},n.prototype.rn=function(n,t,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;return this.on()?"number"==typeof u&&Math.random()>u?B.reject("This event has been sampled, will not send event."):new B(function(i,u){e.un(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return e.tn().sendEvent(r),void i(r);var c=o(n,t);if(void 0===c)R.error("`beforeSend` method has to return `null` or a valid event.");else if(b(c))e.sn(c,i,u);else{if(null===(r=c))return R.log("`beforeSend` returned `null`, will not send event."),void i(null);e.tn().sendEvent(r),i(r)}}catch(n){e.captureException(n,{data:{__sentry__:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):B.reject("SDK not enabled, will not send event.")},n.prototype.sn=function(n,t,r){var e=this;n.then(function(n){null!==n?(e.tn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),vn=function(){function t(){}return t.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})]})})},t.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){return[2,Promise.resolve(!0)]})})},t}(),ln=function(){function n(n){this.Z=n,this.Z.dsn||R.warn("No DSN provided, backend will not do anything."),this.an=this.fn()}return n.prototype.fn=function(){return new vn},n.prototype.eventFromException=function(n,t){throw new h("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new h("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.an.sendEvent(n).catch(function(n){R.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.an},n}();var dn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){fn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.__sentry__?this.__sentry_original__:this;return fn.apply(r,n)}},n.id="FunctionToString",n}(),pn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],mn=function(){function n(t){void 0===t&&(t={}),this.Z=t,this.name=n.id}return n.prototype.setupOnce=function(){X(function(t){var r=Q();if(!r)return t;var e=r.getIntegration(n);if(e){var i=r.getClient(),o=i?i.getOptions():{},u=e.hn(o);if(e.vn(t,u))return null}return t})},n.prototype.vn=function(n,t){return this.ln(n,t)?(R.warn("Event dropped due to being internal Sentry Error.\nEvent: "+x(n)),!0):this.dn(n,t)?(R.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+x(n)),!0):this.pn(n,t)?(R.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+x(n)+".\nUrl: "+this.mn(n)),!0):!this.yn(n,t)&&(R.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+x(n)+".\nUrl: "+this.mn(n)),!0)},n.prototype.ln=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.dn=function(n,t){var r=this;return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this.bn(n).some(function(n){return t.ignoreErrors.some(function(t){return r.wn(n,t)})})},n.prototype.pn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var e=this.mn(n);return!!e&&t.blacklistUrls.some(function(n){return r.wn(e,n)})},n.prototype.yn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var e=this.mn(n);return!e||t.whitelistUrls.some(function(n){return r.wn(e,n)})},n.prototype.hn=function(n){return void 0===n&&(n={}),{blacklistUrls:f(this.Z.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:f(this.Z.ignoreErrors||[],n.ignoreErrors||[],pn),ignoreInternal:void 0===this.Z.ignoreInternal||this.Z.ignoreInternal,whitelistUrls:f(this.Z.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype.wn=function(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r},n.prototype.bn=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,e=t.value;return[""+e,r+": "+e]}catch(t){return R.error("Cannot extract message for event "+x(n)),[]}return[]},n.prototype.mn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return R.error("Cannot extract url for event "+x(n)),null}},n.id="InboundFilters",n}(),yn=Object.freeze({FunctionToString:dn,InboundFilters:mn}),bn=g(),wn={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},gn="?",En=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function jn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function xn(){return"undefined"==typeof document||null==document.location?"":document.location.href}wn.report=function(){var n,t,r=[],e=null,i=null;function o(n,t,e){var i=null;if(!t||wn.collectWindowErrors){for(var o in r)if(jn(r,o))try{r[o](n,t,e)}catch(n){i=n}if(i)throw i}}function c(t,r,e,c,s){var f=null;if(s=l(s)?s.error:s,t=l(t)?t.message:t,i)wn.computeStackTrace.augmentStackTraceWithInitialElement(i,r,e,t),a();else if(s&&v(s))(f=wn.computeStackTrace(s)).mechanism="onerror",o(f,!0,s);else{var h,d={url:r,line:e,column:c},p=t;if("[object String]"==={}.toString.call(t)){var m=t.match(En);m&&(h=m[1],p=m[2])}d.func=gn,d.context=null,o(f={name:h,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||xn()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=wn.computeStackTrace(t);r.mechanism="onunhandledrejection",o(r,!0,t)}function a(){var n=i,t=e;i=null,e=null,o(n,!1,t)}function f(n){if(i){if(e===n)return;a()}var t=wn.computeStackTrace(n);throw i=t,e=n,setTimeout(function(){e===n&&a()},t.incomplete?2e3:0),n}return f.subscribe=function(n){r.push(n)},f.installGlobalHandler=function(){!0!==t&&(n=bn.onerror,bn.onerror=c,t=!0)},f.installGlobalUnhandledRejectionHandler=function(){bn.onunhandledrejection=s},f}(),wn.computeStackTrace=function(){function n(n){if(!n.stack)return null;for(var t,r,e,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=n.stack.split("\n"),f=[],h=/^(.*) is undefined$/.exec(n.message),v=0,l=a.length;v<l;++v){if(r=i.exec(a[v])){var d=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1]),e={url:d?null:r[2],func:r[1]||gn,args:d?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=u.exec(a[v]))e={url:r[2],func:r[1]||gn,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(a[v])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?r[3]=t[1]:0!==v||r[5]||void 0===n.columnNumber||(f[0].column=n.columnNumber+1),e={url:r[3],func:r[1]||gn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=gn),e.context=null,f.push(e)}return f.length?(f[0]&&f[0].line&&!f[0].column&&h&&(f[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:f}):null}function t(n,t,r,e){var i={url:t,line:r};if(i.url&&i.line){if(n.incomplete=!1,i.func||(i.func=gn),i.context||(i.context=null),/ '([^']+)' /.exec(e)&&(i.column=null),n.stack.length>0&&n.stack[0].url===i.url){if(n.stack[0].line===i.line)return!1;if(!n.stack[0].line&&n.stack[0].func===i.func)return n.stack[0].line=i.line,n.stack[0].context=i.context,!1}return n.stack.unshift(i),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,i){for(var o,u,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],a={},f=!1,h=r.caller;h&&!f;h=h.caller)if(h!==e&&h!==wn.report){if(u={url:null,func:gn,args:[],line:null,column:null},h.name?u.func=h.name:(o=c.exec(h.toString()))&&(u.func=o[1]),void 0===u.func)try{u.func=o.input.substring(0,o.input.indexOf("{"))}catch(n){}a[""+h]?f=!0:a[""+h]=!0,s.push(u)}i&&s.splice(0,i);var v={mode:"callers",name:n.name,message:n.message,stack:s};return t(v,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),v}function e(t,e){var i=null;e=null==e?0:+e;try{if(i=function(n){var t=n.stacktrace;if(t){for(var r,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=e.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=i.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=gn),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return i}catch(n){}try{if(i=n(t))return i}catch(n){}try{if(i=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,e=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=bn&&bn.document&&bn.document.getElementsByTagName("script"),s=[];for(var a in c)jn(c,a)&&!c[a].src&&s.push(c[a]);for(var f=2;f<t.length;f+=2){var h=null;(r=e.exec(t[f]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=i.exec(t[f]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[f]))&&(h={url:xn().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=gn),h.context=[t[f+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return i}catch(n){}try{if(i=r(t,e+1))return i}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return e.augmentStackTraceWithInitialElement=t,e.computeStackTraceFromStackProp=n,e}(),wn.collectWindowErrors=!0,wn.linesOfContext=11;var Sn=wn.report.subscribe,On=wn.report.installGlobalHandler,_n=wn.report.installGlobalUnhandledRejectionHandler,kn=wn.computeStackTrace,Tn=50;function Rn(n){var t=In(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Dn(n){return{exception:{values:[Rn(n)]}}}function In(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",e=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),e.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Tn).reverse()}var An,Cn,Ln=function(){function n(n){this.options=n,this.h=new U(30),this.url=new cn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){throw new h("Transport Class has to implement `sendEvent` method")})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.h.drain(n)]})})},n}(),Mn=g(),Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(e){return r={body:JSON.stringify(t),method:"POST",referrerPolicy:W()?"origin":""},[2,this.h.add(Mn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))]})})},e}(Ln),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r=this;return s(this,function(e){return[2,this.h.add(new Promise(function(e,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&e({status:n.Status.fromHttpCode(o.status)}),i(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))]})})},e}(Ln),Un=Object.freeze({BaseTransport:Ln,FetchTransport:Nn,XHRTransport:Fn}),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.fn=function(){if(!this.Z.dsn)return t.prototype.fn.call(this);var n=this.Z.transportOptions?this.Z.transportOptions:{dsn:this.Z.dsn};return this.Z.transport?new this.Z.transport(n):H()?new Nn(n):new Fn(n)},e.prototype.eventFromException=function(t,r){var e,i,o=this;if(l(t)&&t.error)return t=t.error,e=Dn(kn(t)),B.resolve(this.gn(e,r));if(d(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var u=t,c=u.name||(d(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return O(n,s),B.resolve(o.gn(n,r))})}if(v(t))return e=Dn(kn(t)),B.resolve(this.gn(e,r));if(y(t)&&r&&r.syntheticException)return O(e=function(n,t){var r=Object.keys(n).sort(),e={extra:{__serialized__:C(n)},message:"Non-Error exception captured with keys: "+q(r)};if(t){var i=In(kn(t).stack);e.stacktrace={frames:i}}return e}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=n.Severity.Error,B.resolve(this.gn(e,r));var a=t;return this.eventFromMessage(a,void 0,r).then(function(t){return O(t,""+a,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,B.resolve(o.gn(t,r))})},e.prototype.gn=function(n,t){return u({},n,{event_id:t&&t.event_id})},e.prototype.eventFromMessage=function(t,r,e){void 0===r&&(r=n.Severity.Info);var i={event_id:e&&e.event_id,level:r,message:t};if(this.Z.attachStacktrace&&e&&e.syntheticException){var o=In(kn(e.syntheticException).stack);i.stacktrace={frames:o}}return B.resolve(i)},e}(ln),$n="sentry.javascript.browser",qn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,Pn,t)||this}return r(t,n),t.prototype.un=function(t,r,e){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:$n,packages:f(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.1.1"}]),version:"5.1.1"}),n.prototype.un.call(this,t,r,e)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=g().document;if(t)if(this.on()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var e=t.createElement("script");e.async=!0,e.src=new cn(r).getReportDialogEndpoint(n),(t.head||t.body).appendChild(e)}else R.error("Missing `Dsn` option in showReportDialog call");else R.error("Missing `eventId` option in showReportDialog call")}else R.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(hn),Hn=1e3,Wn=0;function Bn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var e=Array.prototype.slice.call(arguments);try{var i=e.map(function(n){return Bn(n,t)});return n.handleEvent?n.handleEvent.apply(this,i):n.apply(this,i)}catch(n){throw Wn+=1,setTimeout(function(){Wn-=1}),en(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&O(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:N(e,3)}),r}),captureException(n)}),n}};try{for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(sentryWrapped[e]=n[e])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}var Gn=0;function Jn(n,t){return void 0===t&&(t=!1),function(r){if(An=void 0,r&&Cn!==r){Cn=r;var e=function(){var t;try{t=r.target?zn(r.target):zn(r)}catch(n){t="<unknown>"}0!==t.length&&Q().addBreadcrumb({category:"ui."+n,message:t},{event:r,name:n})};Gn&&clearTimeout(Gn),t?Gn=setTimeout(e):e()}}}function Xn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Jn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Hn))}}function zn(n){for(var t,r=n,e=[],i=0,o=0,u=" > ".length;r&&i++<5&&!("html"===(t=Vn(r))||i>1&&o+e.length*u+t.length>=80);)e.push(t),o+=t.length,r=r.parentNode;return e.reverse().join(" > ")}function Vn(n){var t,r,e,i,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&p(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)e=c[o],(i=n.getAttribute(e))&&u.push("["+e+'="'+i+'"]');return u.join("")}var Kn=function(){function n(t){this.name=n.id,this.Z=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,Sn(function(t,r,e){if(!(Wn>0)){var i=Q().getIntegration(n);i&&Q().captureEvent(i.En(t),{data:{stack:t},originalException:e})}}),this.Z.onerror&&(R.log("Global Handler attached: onerror"),On()),this.Z.onunhandledrejection&&(R.log("Global Handler attached: onunhandledrejection"),_n())},n.prototype.En=function(n){var t=Dn(n),r={mode:n.mode};n.message&&(r.message=n.message),n.name&&(r.name=n.name);var e=Q().getClient(),i=e&&e.getOptions().maxValueLength||250;return O(t,n.original?P(JSON.stringify(N(n.original)),i):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:r,handled:!1,type:n.mechanism}),t},n.id="GlobalHandlers",n}(),Zn=function(){function n(){this.jn=0,this.name=n.id}return n.prototype.xn=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[0];return t[0]=Bn(e,{mechanism:{data:{function:Qn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.Sn=function(n){return function(t){return n(Bn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qn(n)},handled:!0,type:"instrument"}}))}},n.prototype.On=function(n){var t=g(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(I(r,"addEventListener",function(t){return function(r,e,i){try{e.handleEvent=Bn(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:Qn(e),target:n},handled:!0,type:"instrument"}})}catch(n){}return t.call(this,r,Bn(e,{mechanism:{data:{function:"addEventListener",handler:Qn(e),target:n},handled:!0,type:"instrument"}}),i)}}),I(r,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))},n.prototype.setupOnce=function(){this.jn=this.jn;var n=g();I(n,"setTimeout",this.xn.bind(this)),I(n,"setInterval",this.xn.bind(this)),I(n,"requestAnimationFrame",this.Sn.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.On.bind(this))},n.id="TryCatch",n}();function Qn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var Yn,nt=g(),tt=function(){function t(n){this.name=t.id,this.Z=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype._n=function(){"console"in nt&&["debug","info","warn","error","log","assert"].forEach(function(r){r in nt.console&&I(nt.console,r,function(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u={category:"console",data:{extra:{arguments:N(i,3)},logger:"console"},level:n.Severity.fromString(r),message:$(i," ")};"assert"===r&&!1===i[0]&&(u.message="Assertion failed: "+($(i.slice(1)," ")||"console.assert"),u.data.extra.arguments=N(i.slice(1),3)),t.addBreadcrumb(u,{input:i,level:r}),e&&Function.prototype.apply.call(e,nt.console,i)}})})},t.prototype.kn=function(){"document"in nt&&(nt.document.addEventListener("click",Jn("click"),!1),nt.document.addEventListener("keypress",Xn(),!1),["EventTarget","Node"].forEach(function(n){var t=nt[n]&&nt[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(I(t,"addEventListener",function(n){return function(t,r,e){return r&&r.handleEvent?("click"===t&&I(r,"handleEvent",function(n){return function(t){return Jn("click")(t),n.call(this,t)}}),"keypress"===t&&I(r,"handleEvent",Xn())):("click"===t&&Jn("click",!0)(this),"keypress"===t&&Xn()(this)),n.call(this,t,r,e)}}),I(t,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))}))},t.prototype.Tn=function(){H()&&-1!==g().fetch.toString().indexOf("native")&&I(nt,"fetch",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=e[0],c="GET";"string"==typeof u?o=u:"Request"in nt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),e[1]&&e[1].method&&(c=e[1].method);var s=Q().getClient(),a=s&&s.getDsn();if(a){var f=new cn(a).getStoreEndpoint();if(f&&o.includes(f))return"POST"===c&&e[1]&&e[1].body&&rt(e[1].body),r.apply(nt,e)}var h={method:c,url:o};return r.apply(nt,e).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:e,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:e}),r})}})},t.prototype.Rn=function(){var n=this;if(r=g(),e=r.chrome,i=e&&e.app&&e.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!i&&o){var r,e,i,o,u=function(n,r){var e=j(nt.location.href),i=j(r),o=j(n);o.path||(o=e),Yn=r,e.protocol===i.protocol&&e.host===i.host&&(r=i.relative),e.protocol===o.protocol&&e.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=nt.onpopstate;nt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=nt.location.href;if(u(Yn,e),c)return c.apply(n,t)},I(nt.history,"pushState",s),I(nt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.length>2?t[2]:void 0;return e&&u(Yn,String(e)),n.apply(this,t)}}},t.prototype.Dn=function(){if("XMLHttpRequest"in nt){var n=XMLHttpRequest.prototype;I(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[1];this.__sentry_xhr__={method:t[0],url:t[1]};var i=Q().getClient(),o=i&&i.getDsn();if(o){var u=new cn(o).getStoreEndpoint();p(e)&&u&&e.includes(u)&&(this.__sentry_own_request__=!0)}return n.apply(this,t)}}),I(n,"send",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this;function o(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&rt(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&I(t,n,function(t){return Bn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,i)}),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?I(i,"onreadystatechange",function(n){return Bn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):i.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){Q().getIntegration(t)&&Q().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.Z.console&&this._n(),this.Z.dom&&this.kn(),this.Z.xhr&&this.Dn(),this.Z.fetch&&this.Tn(),this.Z.history&&this.Rn()},t.id="Breadcrumbs",t}();function rt(t){try{var r=JSON.parse(t);tt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:x(r)},{event:r})}catch(n){R.error("Error while adding sentry type breadcrumb")}}var et="cause",it=5,ot=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.In=t.key||et,this.s=t.limit||it}return n.prototype.setupOnce=function(){X(function(t,r){var e=Q().getIntegration(n);return e?e.handler(t,r):t})},n.prototype.handler=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.walkErrorTree(t.originalException,this.In);return n.exception.values=f(r,n.exception.values),n},n.prototype.walkErrorTree=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.s)return r;var e=Rn(kn(n[t]));return this.walkErrorTree(n[t],t,f([e],r))},n.id="LinkedErrors",n}(),ut=g(),ct=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){X(function(t){if(Q().getIntegration(n)){if(!ut.navigator||!ut.location)return t;var r=t.request||{};return r.url=r.url||ut.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ut.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),st=Object.freeze({GlobalHandlers:Kn,TryCatch:Zn,Breadcrumbs:tt,LinkedErrors:ot,UserAgent:ct}),at=[new mn,new dn,new Zn,new tt,new Kn,new ot,new ct];var ft={},ht=g();ht.Sentry&&ht.Sentry.Integrations&&(ft=ht.Sentry.Integrations);var vt=u({},ft,yn,st);return n.Integrations=vt,n.Transports=Un,n.addGlobalEventProcessor=X,n.addBreadcrumb=function(n){rn("addBreadcrumb",n)},n.captureException=captureException,n.captureEvent=function(n){return rn("captureEvent",n)},n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return rn("captureMessage",n,t,{originalException:n,syntheticException:r})},n.configureScope=function(n){rn("configureScope",n)},n.withScope=en,n.getHubFromCarrier=nn,n.getCurrentHub=Q,n.Hub=V,n.Scope=G,n.BrowserClient=qn,n.defaultIntegrations=at,n.forceLoad=function(){},n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=at),function(n,t){!0===t.debug&&R.enable(),Q().bindClient(new n(t))}(qn,n)},n.lastEventId=function(){return Q().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=Q().lastEventId());var t=Q().getClient();t&&t.showReportDialog(n)},n.flush=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=Q().getClient())?[2,t.flush(n)]:[2,Promise.reject(!1)]})})},n.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=Q().getClient())?[2,t.close(n)]:[2,Promise.reject(!1)]})})},n.SDK_NAME=$n,n.SDK_VERSION="5.1.1",n}({});
/*! @sentry/browser 5.1.2 (21890282) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t,r,e){return new(r||(r=Promise))(function(i,o){function u(n){try{s(e.next(n))}catch(n){o(n)}}function c(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){n.done?i(n.value):new r(function(t){t(n.value)}).then(u,c)}s((e=e.apply(n,t||[])).next())})}function s(n,t){var r,e,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,e&&(i=2&o[0]?e.return:o[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,o[1])).done)return i;switch(e=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,e=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],e=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function a(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function f(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(a(arguments[t]));return n}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),(i=n.Severity||(n.Severity={})).Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical",function(n){n.fromString=function(t){switch(t){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}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var h=function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}return r(t,n),t}(Error);function v(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function l(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function d(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function p(n){return"[object String]"===Object.prototype.toString.call(n)}function m(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function y(n){return"[object Object]"===Object.prototype.toString.call(n)}function b(n){return Boolean(n&&n.then&&"function"==typeof n.then)}var w={};function g(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:w}function E(){var n=g(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return e(r[0])+e(r[1])+e(r[2])+e(r[3])+e(r[4])+e(r[5])+e(r[6])+e(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function j(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",e=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+e}}function x(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function S(n){var t=g();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].__sentry__&&(e[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}function _(n,t,r,e){void 0===e&&(e={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||e}var O=g(),k="Sentry Logger ",T=function(){function n(){this.t=!1}return n.prototype.disable=function(){this.t=!1},n.prototype.enable=function(){this.t=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){O.console.log(k+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){O.console.warn(k+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&S(function(){O.console.error(k+"[Error]: "+n.join(" "))})},n}();O.__SENTRY__=O.__SENTRY__||{};var R=O.__SENTRY__.logger||(O.__SENTRY__.logger=new T),D=function(){function n(){this.i="function"==typeof WeakSet,this.o=this.i?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.i)return!!this.o.has(n)||(this.o.add(n),!1);for(var t=0;t<this.o.length;t++){if(this.o[t]===n)return!0}return this.o.push(n),!1},n.prototype.unmemoize=function(n){if(this.i)this.o.delete(n);else for(var t=0;t<this.o.length;t++)if(this.o[t]===n){this.o.splice(t,1);break}},n}();function I(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}function A(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function C(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var e=N(n,t);return A(e)>r?C(n,t-1,r):e}function L(n,t){return"domain"===t&&"object"==typeof n&&n.u?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":y(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function M(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new D),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=L(n);return m(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=L(t,n);if(m(i))return i;var o=v(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=M(c,o[c],r-1,e));return e.unmemoize(t),u}function N(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return M(n,r,t)}))}catch(n){return"**non-serializable**"}}var F,U=function(){function n(n){this.s=n,this.h=[]}return n.prototype.isReady=function(){return void 0===this.s||this.length()<this.s},n.prototype.add=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return this.isReady()?(-1===this.h.indexOf(n)&&this.h.push(n),n.then(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n)]})})}).catch(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n).catch(function(){})]})})}),[2,n]):[2,Promise.reject(new h("Not adding Promise due to buffer limit reached."))]})})},n.prototype.remove=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.h.splice(this.h.indexOf(n),1)[0]]})})},n.prototype.length=function(){return this.h.length},n.prototype.drain=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var e=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.h).then(function(){clearTimeout(e),r(!0)}).catch(function(){r(!0)})})]})})},n}();function P(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function $(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function q(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return P(n[0],t);for(var r=n.length;r>0;r--){var e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:P(e,t)}return""}function H(){if(!("fetch"in g()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function W(){if(!H())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(F||(F={}));var B=function(){function n(n){var t=this;this.v=F.PENDING,this.l=[],this.p=function(n){t.m(n,F.RESOLVED)},this.g=function(n){t.m(n,F.REJECTED)},this.m=function(n,r){t.v===F.PENDING&&(b(n)?n.then(t.p,t.g):(t.j=n,t.v=r,t.S()))},this.S=function(){t.v!==F.PENDING&&(t.v===F.REJECTED?t.l.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.l.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.l=[])},this._=function(n){t.l=t.l.concat(n),t.S()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var e=this;return new n(function(n,i){e._({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void i(n)}else i(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void i(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),G=function(){function n(){this.O=!1,this.k=[],this.T=[],this.R=[],this.D={},this.I={},this.A={},this.C={}}return n.prototype.addScopeListener=function(n){this.k.push(n)},n.prototype.addEventProcessor=function(n){return this.T.push(n),this},n.prototype.L=function(){var n=this;this.O||(this.O=!0,setTimeout(function(){n.k.forEach(function(t){t(n)}),n.O=!1}))},n.prototype.M=function(n,t,r,e){var i=this;return void 0===e&&(e=0),new B(function(o,c){var s=n[e];if(null===t||"function"!=typeof s)o(t);else{var a=s(u({},t),r);b(a)?a.then(function(t){return i.M(n,t,r,e+1).then(o)}).catch(c):i.M(n,a,r,e+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.D=N(n),this.L(),this},n.prototype.setTags=function(n){return this.I=u({},this.I,N(n)),this.L(),this},n.prototype.setTag=function(n,t){var r;return this.I=u({},this.I,((r={})[n]=N(t),r)),this.L(),this},n.prototype.setExtras=function(n){return this.A=u({},this.A,N(n)),this.L(),this},n.prototype.setExtra=function(n,t){var r;return this.A=u({},this.A,((r={})[n]=N(t),r)),this.L(),this},n.prototype.setFingerprint=function(n){return this.N=N(n),this.L(),this},n.prototype.setLevel=function(n){return this.F=N(n),this.L(),this},n.prototype.setContext=function(n,t){return this.C[n]=t?N(t):void 0,this.L(),this},n.clone=function(t){var r=new n;return Object.assign(r,t,{k:[]}),t&&(r.R=f(t.R),r.I=u({},t.I),r.A=u({},t.A),r.C=u({},t.C),r.D=t.D,r.F=t.F,r.N=t.N,r.T=f(t.T)),r},n.prototype.clear=function(){return this.R=[],this.I={},this.A={},this.D={},this.C={},this.F=void 0,this.N=void 0,this.L(),this},n.prototype.addBreadcrumb=function(n,t){var r=(new Date).getTime()/1e3,e=u({timestamp:r},n);return this.R=void 0!==t&&t>=0?f(this.R,[N(e)]).slice(-t):f(this.R,[N(e)]),this.L(),this},n.prototype.clearBreadcrumbs=function(){return this.R=[],this.L(),this},n.prototype.U=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.N&&(n.fingerprint=n.fingerprint.concat(this.N)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.A&&Object.keys(this.A).length&&(n.extra=u({},this.A,n.extra)),this.I&&Object.keys(this.I).length&&(n.tags=u({},this.I,n.tags)),this.D&&Object.keys(this.D).length&&(n.user=u({},this.D,n.user)),this.C&&Object.keys(this.C).length&&(n.contexts=u({},this.C,n.contexts)),this.F&&(n.level=this.F),this.U(n),n.breadcrumbs=f(n.breadcrumbs||[],this.R),n.breadcrumbs=n.breadcrumbs.length>0?n.breadcrumbs:void 0,this.M(f(J(),this.T),n,t)},n}();function J(){var n=g();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function X(n){J().push(n)}var z=3,V=function(){function n(n,t,r){void 0===t&&(t=new G),void 0===r&&(r=z),this.P=r,this.$=[],this.$.push({client:n,scope:t})}return n.prototype.q=function(n){for(var t,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=this.getStackTop();i&&i.client&&i.client[n]&&(t=i.client)[n].apply(t,f(r,[i.scope]))},n.prototype.isOlderThan=function(n){return this.P<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=G.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.$},n.prototype.getStackTop=function(){return this.$[this.$.length-1]},n.prototype.captureException=function(n,t){var r=this.H=E();return this.q("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var e=this.H=E();return this.q("captureMessage",n,t,u({},r,{event_id:e})),e},n.prototype.captureEvent=function(n,t){var r=this.H=E();return this.q("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.H},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var e=r.client.getOptions&&r.client.getOptions()||{},i=e.beforeBreadcrumb,o=void 0===i?null:i,c=e.maxBreadcrumbs,s=void 0===c?30:c;if(!(s<=0)){var a=(new Date).getTime()/1e3,f=u({timestamp:a},n),h=o?S(function(){return o(f,t)}):f;null!==h&&r.scope.addBreadcrumb(h,Math.min(s,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=Z(this);try{n(this)}finally{Z(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return R.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n}();function K(){var n=g();return n.__SENTRY__=n.__SENTRY__||{hub:void 0},n}function Z(n){var t=K(),r=nn(t);return tn(t,n),r}function Q(){var n,t,r=K();Y(r)&&!nn(r).isOlderThan(z)||tn(r,new V);try{var e=(n=module,t="domain",n.require(t)).active;if(!e)return nn(r);if(!Y(e)||nn(e).isOlderThan(z)){var i=nn(r).getStackTop();tn(e,new V(i.client,G.clone(i.scope)))}return nn(e)}catch(n){return nn(r)}}function Y(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function nn(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub?n.__SENTRY__.hub:(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new V,n.__SENTRY__.hub)}function tn(n,t){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=t,!0)}function rn(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var e=Q();if(e&&e[n])return e[n].apply(e,f(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return rn("captureException",n,{originalException:n,syntheticException:t})}function en(n){rn("withScope",n)}var on=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,un=function(){function n(n){"string"==typeof n?this.W(n):this.B(n),this.G()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,e=t.path,i=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},n.prototype.W=function(n){var t=on.exec(n);if(!t)throw new h("Invalid Dsn");var r=a(t.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,c=r[3],s=r[4],f=void 0===s?"":s,v="",l=r[5],d=l.split("/");d.length>1&&(v=d.slice(0,-1).join("/"),l=d.pop()),Object.assign(this,{host:c,pass:u,path:v,projectId:l,port:f,protocol:e,user:i})},n.prototype.B=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.G=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new h("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new h("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new h("Invalid Dsn")},n}(),cn=function(){function n(n){this.dsn=n,this.J=new un(n)}return n.prototype.getDsn=function(){return this.J},n.prototype.getStoreEndpoint=function(){return""+this.X()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.J.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.X=function(){var n=this.J,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.J;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.J,e=["Sentry sentry_version=7"];return e.push("sentry_timestamp="+(new Date).getTime()),e.push("sentry_client="+n+"/"+t),e.push("sentry_key="+r.user),r.pass&&e.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":e.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.J,r=this.X()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",e=[];for(var i in e.push("dsn="+t.toString()),n)if("user"===i){if(!n.user)continue;n.user.name&&e.push("name="+encodeURIComponent(n.user.name)),n.user.email&&e.push("email="+encodeURIComponent(n.user.email))}else e.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return e.length?r+"?"+e.join("&"):r},n}(),sn=[];function an(n){var t={};return function(n){var t=n.defaultIntegrations&&f(n.defaultIntegrations)||[],r=n.integrations,e=[];if(Array.isArray(r)){var i=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===i.indexOf(n.name)&&-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))}),r.forEach(function(n){-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))})}else{if("function"!=typeof r)return f(t);e=r(t),e=Array.isArray(e)?e:[e]}return e}(n).forEach(function(n){t[n.name]=n,function(n){-1===sn.indexOf(n.name)&&(n.setupOnce(X,Q),sn.push(n.name),R.log("Integration installed: "+n.name))}(n)}),t}var fn,hn=function(){function n(n,t){this.V=!1,this.K=new n(t),this.Z=t,t.dsn&&(this.Y=new un(t.dsn)),this.nn=an(this.Z)}return n.prototype.captureException=function(n,t,r){var e=this,i=t&&t.event_id;return this.V=!0,this.tn().eventFromException(n,t).then(function(n){return e.rn(n,t,r)}).then(function(n){i=n&&n.event_id,e.V=!1}).catch(function(n){R.error(n),e.V=!1}),i},n.prototype.captureMessage=function(n,t,r,e){var i=this,o=r&&r.event_id;return this.V=!0,(m(n)?this.tn().eventFromMessage(""+n,t,r):this.tn().eventFromException(n,r)).then(function(n){return i.rn(n,r,e)}).then(function(n){o=n&&n.event_id,i.V=!1}).catch(function(n){R.error(n),i.V=!1}),o},n.prototype.captureEvent=function(n,t,r){var e=this,i=t&&t.event_id;return this.V=!0,this.rn(n,t,r).then(function(n){i=n&&n.event_id,e.V=!1}).catch(function(n){R.error(n),e.V=!1}),i},n.prototype.getDsn=function(){return this.Y},n.prototype.getOptions=function(){return this.Z},n.prototype.flush=function(n){return c(this,void 0,void 0,function(){var t,r;return s(this,function(e){switch(e.label){case 0:return[4,this.en(n)];case 1:return t=e.sent(),this.in&&clearInterval(this.in),[4,this.tn().getTransport().close(n)];case 2:return r=e.sent(),[2,t&&r]}})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){switch(r.label){case 0:return[4,this.flush(n)];case 1:return t=r.sent(),this.getOptions().enabled=!1,[2,t]}})})},n.prototype.getIntegrations=function(){return this.nn||{}},n.prototype.getIntegration=function(n){try{return this.nn[n.id]||null}catch(t){return R.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.en=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var e=0;t.in&&clearInterval(t.in),t.in=setInterval(function(){t.V?(e+=1,n&&e>=n&&r(!1)):r(!0)},1)})]})})},n.prototype.tn=function(){return this.K},n.prototype.on=function(){return!1!==this.getOptions().enabled&&void 0!==this.Y},n.prototype.un=function(n,t,r){var e=this.getOptions(),i=e.environment,o=e.release,c=e.dist,s=e.maxValueLength,a=void 0===s?250:s,f=u({},n);void 0===f.environment&&void 0!==i&&(f.environment=i),void 0===f.release&&void 0!==o&&(f.release=o),void 0===f.dist&&void 0!==c&&(f.dist=c),f.message&&(f.message=P(f.message,a));var h=f.exception&&f.exception.values&&f.exception.values[0];h&&h.value&&(h.value=P(h.value,a));var v=f.request;v&&v.url&&(v.url=P(v.url,a)),void 0===f.event_id&&(f.event_id=E()),this.cn(f.sdk);var l=B.resolve(f);return t&&(l=t.applyToEvent(f,r)),l},n.prototype.cn=function(n){var t=Object.keys(this.nn);n&&t.length>0&&(n.integrations=t)},n.prototype.rn=function(n,t,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;return this.on()?"number"==typeof u&&Math.random()>u?B.reject("This event has been sampled, will not send event."):new B(function(i,u){e.un(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return e.tn().sendEvent(r),void i(r);var c=o(n,t);if(void 0===c)R.error("`beforeSend` method has to return `null` or a valid event.");else if(b(c))e.sn(c,i,u);else{if(null===(r=c))return R.log("`beforeSend` returned `null`, will not send event."),void i(null);e.tn().sendEvent(r),i(r)}}catch(n){e.captureException(n,{data:{__sentry__:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):B.reject("SDK not enabled, will not send event.")},n.prototype.sn=function(n,t,r){var e=this;n.then(function(n){null!==n?(e.tn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),vn=function(){function t(){}return t.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})]})})},t.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){return[2,Promise.resolve(!0)]})})},t}(),ln=function(){function n(n){this.Z=n,this.Z.dsn||R.warn("No DSN provided, backend will not do anything."),this.an=this.fn()}return n.prototype.fn=function(){return new vn},n.prototype.eventFromException=function(n,t){throw new h("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new h("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.an.sendEvent(n).catch(function(n){R.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.an},n}();var dn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){fn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.__sentry__?this.__sentry_original__:this;return fn.apply(r,n)}},n.id="FunctionToString",n}(),pn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],mn=function(){function n(t){void 0===t&&(t={}),this.Z=t,this.name=n.id}return n.prototype.setupOnce=function(){X(function(t){var r=Q();if(!r)return t;var e=r.getIntegration(n);if(e){var i=r.getClient(),o=i?i.getOptions():{},u=e.hn(o);if(e.vn(t,u))return null}return t})},n.prototype.vn=function(n,t){return this.ln(n,t)?(R.warn("Event dropped due to being internal Sentry Error.\nEvent: "+x(n)),!0):this.dn(n,t)?(R.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+x(n)),!0):this.pn(n,t)?(R.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+x(n)+".\nUrl: "+this.mn(n)),!0):!this.yn(n,t)&&(R.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+x(n)+".\nUrl: "+this.mn(n)),!0)},n.prototype.ln=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.dn=function(n,t){var r=this;return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this.bn(n).some(function(n){return t.ignoreErrors.some(function(t){return r.wn(n,t)})})},n.prototype.pn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var e=this.mn(n);return!!e&&t.blacklistUrls.some(function(n){return r.wn(e,n)})},n.prototype.yn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var e=this.mn(n);return!e||t.whitelistUrls.some(function(n){return r.wn(e,n)})},n.prototype.hn=function(n){return void 0===n&&(n={}),{blacklistUrls:f(this.Z.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:f(this.Z.ignoreErrors||[],n.ignoreErrors||[],pn),ignoreInternal:void 0===this.Z.ignoreInternal||this.Z.ignoreInternal,whitelistUrls:f(this.Z.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype.wn=function(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r},n.prototype.bn=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,e=t.value;return[""+e,r+": "+e]}catch(t){return R.error("Cannot extract message for event "+x(n)),[]}return[]},n.prototype.mn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return R.error("Cannot extract url for event "+x(n)),null}},n.id="InboundFilters",n}(),yn=Object.freeze({FunctionToString:dn,InboundFilters:mn}),bn=g(),wn={gn:!1,En:!1,jn:!1,xn:!1},gn="?",En=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function jn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function xn(){return"undefined"==typeof document||null==document.location?"":document.location.href}wn.gn=function(){var n,t,r=[],e=null,i=null;function o(n,t,e){var i=null;if(!t||wn.En){for(var o in r)if(jn(r,o))try{r[o](n,t,e)}catch(n){i=n}if(i)throw i}}function c(t,r,e,c,s){var f=null;if(s=l(s)?s.error:s,t=l(t)?t.message:t,i)wn.jn.Sn(i,r,e,t),a();else if(s&&v(s))(f=wn.jn(s)).mechanism="onerror",o(f,!0,s);else{var h,d={url:r,line:e,column:c},p=t;if("[object String]"==={}.toString.call(t)){var m=t.match(En);m&&(h=m[1],p=m[2])}d.func=gn,d.context=null,o(f={name:h,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||xn()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=wn.jn(t);r.mechanism="onunhandledrejection",o(r,!0,t)}function a(){var n=i,t=e;i=null,e=null,o(n,!1,t)}function f(n){if(i){if(e===n)return;a()}var t=wn.jn(n);throw i=t,e=n,setTimeout(function(){e===n&&a()},t.incomplete?2e3:0),n}return f._n=function(n){r.push(n)},f.On=function(){!0!==t&&(n=bn.onerror,bn.onerror=c,t=!0)},f.kn=function(){bn.onunhandledrejection=s},f}(),wn.jn=function(){function n(n){if(!n.stack)return null;for(var t,r,e,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=n.stack.split("\n"),f=[],h=/^(.*) is undefined$/.exec(n.message),v=0,l=a.length;v<l;++v){if(r=i.exec(a[v])){var d=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1]),e={url:d?null:r[2],func:r[1]||gn,args:d?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=u.exec(a[v]))e={url:r[2],func:r[1]||gn,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(a[v])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?r[3]=t[1]:0!==v||r[5]||void 0===n.columnNumber||(f[0].column=n.columnNumber+1),e={url:r[3],func:r[1]||gn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=gn),e.context=null,f.push(e)}return f.length?(f[0]&&f[0].line&&!f[0].column&&h&&(f[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:f}):null}function t(n,t,r,e){var i={url:t,line:r};if(i.url&&i.line){if(n.incomplete=!1,i.func||(i.func=gn),i.context||(i.context=null),/ '([^']+)' /.exec(e)&&(i.column=null),n.stack.length>0&&n.stack[0].url===i.url){if(n.stack[0].line===i.line)return!1;if(!n.stack[0].line&&n.stack[0].func===i.func)return n.stack[0].line=i.line,n.stack[0].context=i.context,!1}return n.stack.unshift(i),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var i,o,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],s={},a=!1,f=r.caller;f&&!a;f=f.caller)if(f!==kn&&f!==wn.gn){if(o={url:null,func:gn,args:[],line:null,column:null},f.name?o.func=f.name:(i=u.exec(f.toString()))&&(o.func=i[1]),void 0===o.func)try{o.func=i.input.substring(0,i.input.indexOf("{"))}catch(n){}s[""+f]?a=!0:s[""+f]=!0,c.push(o)}e&&c.splice(0,e);var h={mode:"callers",name:n.name,message:n.message,stack:c};return t(h,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),h}function e(t,e){var i=null;e=null==e?0:+e;try{if(i=function(n){var t=n.stacktrace;if(t){for(var r,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=e.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=i.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=gn),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return i}catch(n){}try{if(i=n(t))return i}catch(n){}try{if(i=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,e=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=bn&&bn.document&&bn.document.getElementsByTagName("script"),s=[];for(var a in c)jn(c,a)&&!c[a].src&&s.push(c[a]);for(var f=2;f<t.length;f+=2){var h=null;(r=e.exec(t[f]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=i.exec(t[f]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[f]))&&(h={url:xn().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=gn),h.context=[t[f+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return i}catch(n){}try{if(i=r(t,e+1))return i}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return e.Sn=t,e.Tn=n,e}(),wn.En=!0,wn.xn=11;var Sn=wn.gn._n,_n=wn.gn.On,On=wn.gn.kn,kn=wn.jn,Tn=50;function Rn(n){var t=In(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Dn(n){return{exception:{values:[Rn(n)]}}}function In(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",e=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),e.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Tn).reverse()}var An,Cn,Ln=function(){function n(n){this.options=n,this.h=new U(30),this.url=new cn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){throw new h("Transport Class has to implement `sendEvent` method")})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.h.drain(n)]})})},n}(),Mn=g(),Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(e){return r={body:JSON.stringify(t),method:"POST",referrerPolicy:W()?"origin":""},[2,this.h.add(Mn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))]})})},e}(Ln),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r=this;return s(this,function(e){return[2,this.h.add(new Promise(function(e,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&e({status:n.Status.fromHttpCode(o.status)}),i(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))]})})},e}(Ln),Un=Object.freeze({BaseTransport:Ln,FetchTransport:Nn,XHRTransport:Fn}),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.fn=function(){if(!this.Z.dsn)return t.prototype.fn.call(this);var n=this.Z.transportOptions?this.Z.transportOptions:{dsn:this.Z.dsn};return this.Z.transport?new this.Z.transport(n):H()?new Nn(n):new Fn(n)},e.prototype.eventFromException=function(t,r){var e,i,o=this;if(l(t)&&t.error)return t=t.error,e=Dn(kn(t)),B.resolve(this.Rn(e,r));if(d(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var u=t,c=u.name||(d(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return _(n,s),B.resolve(o.Rn(n,r))})}if(v(t))return e=Dn(kn(t)),B.resolve(this.Rn(e,r));if(y(t)&&r&&r.syntheticException)return _(e=function(n,t){var r=Object.keys(n).sort(),e={extra:{__serialized__:C(n)},message:"Non-Error exception captured with keys: "+q(r)};if(t){var i=In(kn(t).stack);e.stacktrace={frames:i}}return e}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=n.Severity.Error,B.resolve(this.Rn(e,r));var a=t;return this.eventFromMessage(a,void 0,r).then(function(t){return _(t,""+a,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,B.resolve(o.Rn(t,r))})},e.prototype.Rn=function(n,t){return u({},n,{event_id:t&&t.event_id})},e.prototype.eventFromMessage=function(t,r,e){void 0===r&&(r=n.Severity.Info);var i={event_id:e&&e.event_id,level:r,message:t};if(this.Z.attachStacktrace&&e&&e.syntheticException){var o=In(kn(e.syntheticException).stack);i.stacktrace={frames:o}}return B.resolve(i)},e}(ln),$n="sentry.javascript.browser",qn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,Pn,t)||this}return r(t,n),t.prototype.un=function(t,r,e){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:$n,packages:f(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.1.2"}]),version:"5.1.2"}),n.prototype.un.call(this,t,r,e)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=g().document;if(t)if(this.on()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var e=t.createElement("script");e.async=!0,e.src=new cn(r).getReportDialogEndpoint(n),(t.head||t.body).appendChild(e)}else R.error("Missing `Dsn` option in showReportDialog call");else R.error("Missing `eventId` option in showReportDialog call")}else R.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(hn),Hn=1e3,Wn=0;function Bn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var e=Array.prototype.slice.call(arguments);try{var i=e.map(function(n){return Bn(n,t)});return n.handleEvent?n.handleEvent.apply(this,i):n.apply(this,i)}catch(n){throw Wn+=1,setTimeout(function(){Wn-=1}),en(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&_(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:N(e,3)}),r}),captureException(n)}),n}};try{for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(sentryWrapped[e]=n[e])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}var Gn=0;function Jn(n,t){return void 0===t&&(t=!1),function(r){if(An=void 0,r&&Cn!==r){Cn=r;var e=function(){var t;try{t=r.target?zn(r.target):zn(r)}catch(n){t="<unknown>"}0!==t.length&&Q().addBreadcrumb({category:"ui."+n,message:t},{event:r,name:n})};Gn&&clearTimeout(Gn),t?Gn=setTimeout(e):e()}}}function Xn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Jn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Hn))}}function zn(n){for(var t,r=n,e=[],i=0,o=0,u=" > ".length;r&&i++<5&&!("html"===(t=Vn(r))||i>1&&o+e.length*u+t.length>=80);)e.push(t),o+=t.length,r=r.parentNode;return e.reverse().join(" > ")}function Vn(n){var t,r,e,i,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&p(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)e=c[o],(i=n.getAttribute(e))&&u.push("["+e+'="'+i+'"]');return u.join("")}var Kn=function(){function n(t){this.name=n.id,this.Z=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,Sn(function(t,r,e){if(!(Wn>0)){var i=Q().getIntegration(n);i&&Q().captureEvent(i.Dn(t),{data:{stack:t},originalException:e})}}),this.Z.onerror&&(R.log("Global Handler attached: onerror"),_n()),this.Z.onunhandledrejection&&(R.log("Global Handler attached: onunhandledrejection"),On())},n.prototype.Dn=function(n){var t=Dn(n),r={mode:n.mode};n.message&&(r.message=n.message),n.name&&(r.name=n.name);var e=Q().getClient(),i=e&&e.getOptions().maxValueLength||250;return _(t,n.original?P(JSON.stringify(N(n.original)),i):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:r,handled:!1,type:n.mechanism}),t},n.id="GlobalHandlers",n}(),Zn=function(){function n(){this.In=0,this.name=n.id}return n.prototype.An=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[0];return t[0]=Bn(e,{mechanism:{data:{function:Qn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.Cn=function(n){return function(t){return n(Bn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qn(n)},handled:!0,type:"instrument"}}))}},n.prototype.Ln=function(n){var t=g(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(I(r,"addEventListener",function(t){return function(r,e,i){try{e.handleEvent=Bn(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:Qn(e),target:n},handled:!0,type:"instrument"}})}catch(n){}return t.call(this,r,Bn(e,{mechanism:{data:{function:"addEventListener",handler:Qn(e),target:n},handled:!0,type:"instrument"}}),i)}}),I(r,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))},n.prototype.setupOnce=function(){this.In=this.In;var n=g();I(n,"setTimeout",this.An.bind(this)),I(n,"setInterval",this.An.bind(this)),I(n,"requestAnimationFrame",this.Cn.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.Ln.bind(this))},n.id="TryCatch",n}();function Qn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var Yn,nt=g(),tt=function(){function t(n){this.name=t.id,this.Z=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.Mn=function(){"console"in nt&&["debug","info","warn","error","log","assert"].forEach(function(r){r in nt.console&&I(nt.console,r,function(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u={category:"console",data:{extra:{arguments:N(i,3)},logger:"console"},level:n.Severity.fromString(r),message:$(i," ")};"assert"===r&&!1===i[0]&&(u.message="Assertion failed: "+($(i.slice(1)," ")||"console.assert"),u.data.extra.arguments=N(i.slice(1),3)),t.addBreadcrumb(u,{input:i,level:r}),e&&Function.prototype.apply.call(e,nt.console,i)}})})},t.prototype.Nn=function(){"document"in nt&&(nt.document.addEventListener("click",Jn("click"),!1),nt.document.addEventListener("keypress",Xn(),!1),["EventTarget","Node"].forEach(function(n){var t=nt[n]&&nt[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(I(t,"addEventListener",function(n){return function(t,r,e){return r&&r.handleEvent?("click"===t&&I(r,"handleEvent",function(n){return function(t){return Jn("click")(t),n.call(this,t)}}),"keypress"===t&&I(r,"handleEvent",Xn())):("click"===t&&Jn("click",!0)(this),"keypress"===t&&Xn()(this)),n.call(this,t,r,e)}}),I(t,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))}))},t.prototype.Fn=function(){H()&&-1!==g().fetch.toString().indexOf("native")&&I(nt,"fetch",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=e[0],c="GET";"string"==typeof u?o=u:"Request"in nt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),e[1]&&e[1].method&&(c=e[1].method);var s=Q().getClient(),a=s&&s.getDsn();if(a){var f=new cn(a).getStoreEndpoint();if(f&&o.includes(f))return"POST"===c&&e[1]&&e[1].body&&rt(e[1].body),r.apply(nt,e)}var h={method:c,url:o};return r.apply(nt,e).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:e,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:e}),r})}})},t.prototype.Un=function(){var n=this;if(r=g(),e=r.chrome,i=e&&e.app&&e.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!i&&o){var r,e,i,o,u=function(n,r){var e=j(nt.location.href),i=j(r),o=j(n);o.path||(o=e),Yn=r,e.protocol===i.protocol&&e.host===i.host&&(r=i.relative),e.protocol===o.protocol&&e.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=nt.onpopstate;nt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=nt.location.href;if(u(Yn,e),c)return c.apply(n,t)},I(nt.history,"pushState",s),I(nt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.length>2?t[2]:void 0;return e&&u(Yn,String(e)),n.apply(this,t)}}},t.prototype.Pn=function(){if("XMLHttpRequest"in nt){var n=XMLHttpRequest.prototype;I(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[1];this.__sentry_xhr__={method:t[0],url:t[1]};var i=Q().getClient(),o=i&&i.getDsn();if(o){var u=new cn(o).getStoreEndpoint();p(e)&&u&&e.includes(u)&&(this.__sentry_own_request__=!0)}return n.apply(this,t)}}),I(n,"send",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this;function o(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&rt(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&I(t,n,function(t){return Bn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,i)}),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?I(i,"onreadystatechange",function(n){return Bn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):i.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){Q().getIntegration(t)&&Q().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.Z.console&&this.Mn(),this.Z.dom&&this.Nn(),this.Z.xhr&&this.Pn(),this.Z.fetch&&this.Fn(),this.Z.history&&this.Un()},t.id="Breadcrumbs",t}();function rt(t){try{var r=JSON.parse(t);tt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:x(r)},{event:r})}catch(n){R.error("Error while adding sentry type breadcrumb")}}var et="cause",it=5,ot=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.$n=t.key||et,this.s=t.limit||it}return n.prototype.setupOnce=function(){X(function(t,r){var e=Q().getIntegration(n);return e?e.qn(t,r):t})},n.prototype.qn=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.Hn(t.originalException,this.$n);return n.exception.values=f(r,n.exception.values),n},n.prototype.Hn=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.s)return r;var e=Rn(kn(n[t]));return this.Hn(n[t],t,f([e],r))},n.id="LinkedErrors",n}(),ut=g(),ct=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){X(function(t){if(Q().getIntegration(n)){if(!ut.navigator||!ut.location)return t;var r=t.request||{};return r.url=r.url||ut.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ut.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),st=Object.freeze({GlobalHandlers:Kn,TryCatch:Zn,Breadcrumbs:tt,LinkedErrors:ot,UserAgent:ct}),at=[new mn,new dn,new Zn,new tt,new Kn,new ot,new ct];var ft={},ht=g();ht.Sentry&&ht.Sentry.Integrations&&(ft=ht.Sentry.Integrations);var vt=u({},ft,yn,st);return n.Integrations=vt,n.Transports=Un,n.addGlobalEventProcessor=X,n.addBreadcrumb=function(n){rn("addBreadcrumb",n)},n.captureException=captureException,n.captureEvent=function(n){return rn("captureEvent",n)},n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return rn("captureMessage",n,t,{originalException:n,syntheticException:r})},n.configureScope=function(n){rn("configureScope",n)},n.withScope=en,n.getHubFromCarrier=nn,n.getCurrentHub=Q,n.Hub=V,n.Scope=G,n.BrowserClient=qn,n.defaultIntegrations=at,n.forceLoad=function(){},n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=at),function(n,t){!0===t.debug&&R.enable(),Q().bindClient(new n(t))}(qn,n)},n.lastEventId=function(){return Q().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=Q().lastEventId());var t=Q().getClient();t&&t.showReportDialog(n)},n.flush=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=Q().getClient())?[2,t.flush(n)]:[2,Promise.reject(!1)]})})},n.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=Q().getClient())?[2,t.close(n)]:[2,Promise.reject(!1)]})})},n.SDK_NAME=$n,n.SDK_VERSION="5.1.2",n}({});
//# sourceMappingURL=bundle.min.js.map

@@ -48,3 +48,3 @@ "use strict";

exception = errorEvent.error; // tslint:disable-line:no-parameter-reassignment
event = parsers_1.eventFromStacktrace(tracekit_1.computeStackTrace(exception));
event = parsers_1.eventFromStacktrace(tracekit_1._computeStackTrace(exception));
return utils_1.SyncPromise.resolve(this._buildEvent(event, hint));

@@ -67,3 +67,3 @@ }

// we have a real Error object, do nothing
event = parsers_1.eventFromStacktrace(tracekit_1.computeStackTrace(exception));
event = parsers_1.eventFromStacktrace(tracekit_1._computeStackTrace(exception));
return utils_1.SyncPromise.resolve(this._buildEvent(event, hint));

@@ -119,3 +119,3 @@ }

if (this._options.attachStacktrace && hint && hint.syntheticException) {
var stacktrace = tracekit_1.computeStackTrace(hint.syntheticException);
var stacktrace = tracekit_1._computeStackTrace(hint.syntheticException);
var frames_1 = parsers_1.prepareFramesForEvent(stacktrace.stack);

@@ -122,0 +122,0 @@ event.stacktrace = {

@@ -39,2 +39,3 @@ "use strict";

var windowIntegrations = {};
// This block is needed to add compatibility with the integrations packages when used with a CDN
// tslint:disable: no-unsafe-any

@@ -41,0 +42,0 @@ var _window = utils_1.getGlobalObject();

@@ -24,3 +24,3 @@ "use strict";

Error.stackTraceLimit = 50;
tracekit_1.subscribe(function (stack, _, error) {
tracekit_1._subscribe(function (stack, _, error) {
// TODO: use stack.context to get a valuable information from TraceKit, eg.

@@ -53,7 +53,7 @@ // [

utils_1.logger.log('Global Handler attached: onerror');
tracekit_1.installGlobalHandler();
tracekit_1._installGlobalHandler();
}
if (this._options.onunhandledrejection) {
utils_1.logger.log('Global Handler attached: onunhandledrejection');
tracekit_1.installGlobalUnhandledRejectionHandler();
tracekit_1._installGlobalUnhandledRejectionHandler();
}

@@ -60,0 +60,0 @@ };

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

import { Event, EventHint, Exception, ExtendedError, Integration } from '@sentry/types';
import { Integration } from '@sentry/types';
/** Adds SDK info to an event. */

@@ -34,8 +34,8 @@ export declare class LinkedErrors implements Integration {

*/
handler(event: Event, hint?: EventHint): Event | null;
private _handler;
/**
* @inheritDoc
*/
walkErrorTree(error: ExtendedError, key: string, stack?: Exception[]): Exception[];
private _walkErrorTree;
}
//# sourceMappingURL=linkederrors.d.ts.map

@@ -30,3 +30,3 @@ "use strict";

if (self) {
return self.handler(event, hint);
return self._handler(event, hint);
}

@@ -39,7 +39,7 @@ return event;

*/
LinkedErrors.prototype.handler = function (event, hint) {
LinkedErrors.prototype._handler = function (event, hint) {
if (!event.exception || !event.exception.values || !hint || !(hint.originalException instanceof Error)) {
return event;
}
var linkedErrors = this.walkErrorTree(hint.originalException, this._key);
var linkedErrors = this._walkErrorTree(hint.originalException, this._key);
event.exception.values = tslib_1.__spread(linkedErrors, event.exception.values);

@@ -51,3 +51,3 @@ return event;

*/
LinkedErrors.prototype.walkErrorTree = function (error, key, stack) {
LinkedErrors.prototype._walkErrorTree = function (error, key, stack) {
if (stack === void 0) { stack = []; }

@@ -57,5 +57,5 @@ if (!(error[key] instanceof Error) || stack.length + 1 >= this._limit) {

}
var stacktrace = tracekit_1.computeStackTrace(error[key]);
var stacktrace = tracekit_1._computeStackTrace(error[key]);
var exception = parsers_1.exceptionFromStacktrace(stacktrace);
return this.walkErrorTree(error[key], key, tslib_1.__spread([exception], stack));
return this._walkErrorTree(error[key], key, tslib_1.__spread([exception], stack));
};

@@ -62,0 +62,0 @@ /**

@@ -39,3 +39,3 @@ "use strict";

if (syntheticException) {
var stacktrace = tracekit_1.computeStackTrace(syntheticException);
var stacktrace = tracekit_1._computeStackTrace(syntheticException);
var frames_1 = prepareFramesForEvent(stacktrace.stack);

@@ -42,0 +42,0 @@ event.stacktrace = {

@@ -36,7 +36,7 @@ /**

}
declare const subscribe: any;
declare const installGlobalHandler: any;
declare const installGlobalUnhandledRejectionHandler: any;
declare const computeStackTrace: ComputeStackTrace;
export { subscribe, installGlobalHandler, installGlobalUnhandledRejectionHandler, computeStackTrace };
declare const _subscribe: any;
declare const _installGlobalHandler: any;
declare const _installGlobalUnhandledRejectionHandler: any;
declare const _computeStackTrace: ComputeStackTrace;
export { _subscribe, _installGlobalHandler, _installGlobalUnhandledRejectionHandler, _computeStackTrace };
//# sourceMappingURL=tracekit.d.ts.map

@@ -21,6 +21,6 @@ "use strict";

var TraceKit = {
report: false,
collectWindowErrors: false,
computeStackTrace: false,
linesOfContext: false,
_report: false,
_collectWindowErrors: false,
_computeStackTrace: false,
_linesOfContext: false,
};

@@ -83,3 +83,3 @@ // var TraceKit: TraceKitInterface = {};

*
* Requires TraceKit.computeStackTrace.
* Requires TraceKit._computeStackTrace.
*

@@ -93,3 +93,3 @@ * Tries to catch all unhandled exceptions and report them to the

* Handlers receive a TraceKit.StackTrace object as described in the
* TraceKit.computeStackTrace docs.
* TraceKit._computeStackTrace docs.
*

@@ -99,3 +99,3 @@ * @memberof TraceKit

*/
TraceKit.report = (function reportModuleWrapper() {
TraceKit._report = (function reportModuleWrapper() {
var handlers = [], lastException = null, lastExceptionStack = null;

@@ -107,3 +107,3 @@ /**

*/
function subscribe(handler) {
function _subscribe(handler) {
// NOTE: We call both handlers manually in browser/integrations/globalhandler.ts

@@ -123,5 +123,5 @@ // So user can choose which one he wants to attach

*/
function notifyHandlers(stack, isWindowError, error) {
function _notifyHandlers(stack, isWindowError, error) {
var exception = null;
if (isWindowError && !TraceKit.collectWindowErrors) {
if (isWindowError && !TraceKit._collectWindowErrors) {
return;

@@ -154,3 +154,3 @@ }

*/
function traceKitWindowOnError(message, url, lineNo, columnNo, errorObj) {
function _traceKitWindowOnError(message, url, lineNo, columnNo, errorObj) {
var stack = null;

@@ -162,9 +162,9 @@ // If 'errorObj' is ErrorEvent, get real Error from inside

if (lastExceptionStack) {
TraceKit.computeStackTrace.augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message);
TraceKit._computeStackTrace._augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message);
processLastException();
}
else if (errorObj && utils_1.isError(errorObj)) {
stack = TraceKit.computeStackTrace(errorObj);
stack = TraceKit._computeStackTrace(errorObj);
stack.mechanism = 'onerror';
notifyHandlers(stack, true, errorObj);
_notifyHandlers(stack, true, errorObj);
}

@@ -201,3 +201,3 @@ else {

};
notifyHandlers(stack, true, null);
_notifyHandlers(stack, true, null);
}

@@ -217,7 +217,7 @@ if (_oldOnerrorHandler) {

*/
function traceKitWindowOnUnhandledRejection(e) {
function _traceKitWindowOnUnhandledRejection(e) {
var err = (e && (e.detail ? e.detail.reason : e.reason)) || e;
var stack = TraceKit.computeStackTrace(err);
var stack = TraceKit._computeStackTrace(err);
stack.mechanism = 'onunhandledrejection';
notifyHandlers(stack, true, err);
_notifyHandlers(stack, true, err);
}

@@ -228,3 +228,3 @@ /**

*/
function installGlobalHandler() {
function _installGlobalHandler() {
if (_onErrorHandlerInstalled === true) {

@@ -234,3 +234,3 @@ return;

_oldOnerrorHandler = window.onerror;
window.onerror = traceKitWindowOnError;
window.onerror = _traceKitWindowOnError;
_onErrorHandlerInstalled = true;

@@ -242,4 +242,4 @@ }

*/
function installGlobalUnhandledRejectionHandler() {
window.onunhandledrejection = traceKitWindowOnUnhandledRejection;
function _installGlobalUnhandledRejectionHandler() {
window.onunhandledrejection = _traceKitWindowOnUnhandledRejection;
}

@@ -254,3 +254,3 @@ /**

lastException = null;
notifyHandlers(_lastExceptionStack, false, _lastException);
_notifyHandlers(_lastExceptionStack, false, _lastException);
}

@@ -263,3 +263,3 @@ /**

*/
function report(ex) {
function _report(ex) {
if (lastExceptionStack) {

@@ -273,3 +273,3 @@ if (lastException === ex) {

}
var stack = TraceKit.computeStackTrace(ex);
var stack = TraceKit._computeStackTrace(ex);
lastExceptionStack = stack;

@@ -288,6 +288,6 @@ lastException = ex;

}
report.subscribe = subscribe;
report.installGlobalHandler = installGlobalHandler;
report.installGlobalUnhandledRejectionHandler = installGlobalUnhandledRejectionHandler;
return report;
_report._subscribe = _subscribe;
_report._installGlobalHandler = _installGlobalHandler;
_report._installGlobalUnhandledRejectionHandler = _installGlobalUnhandledRejectionHandler;
return _report;
})();

@@ -315,7 +315,7 @@ /**

/**
* TraceKit.computeStackTrace: cross-browser stack traces in JavaScript
* TraceKit._computeStackTrace: cross-browser stack traces in JavaScript
*
* Syntax:
* ```js
* s = TraceKit.computeStackTrace(exception) // consider using TraceKit.report instead (see below)
* s = TraceKit._computeStackTrace(exception) // consider using TraceKit.report instead (see below)
* ```

@@ -340,5 +340,5 @@ *

*
* TraceKit.computeStackTrace should only be used for tracing purposes.
* TraceKit._computeStackTrace should only be used for tracing purposes.
* Logging of unhandled exceptions should be done with TraceKit.report,
* which builds on top of TraceKit.computeStackTrace and provides better
* which builds on top of TraceKit._computeStackTrace and provides better
* IE support by utilizing the window.onerror event to retrieve information

@@ -363,3 +363,3 @@ * about the top of the stack.

*/
TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
TraceKit._computeStackTrace = (function _computeStackTraceWrapper() {
// Contents of Exception in various browsers.

@@ -406,9 +406,13 @@ //

* @return {?TraceKit.StackTrace} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromStackProp(ex) {
function _computeStackTraceFromStackProp(ex) {
if (!ex.stack) {
return null;
}
var chrome = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
var chrome = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
// gecko regex: `(?:bundle|\d+\.js)`: `bundle` is for react native, `\d+\.js` also but specifically for ram bundles because it
// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js
// We need this specific case for now because we want no other regex to match.
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
// Used to additionally parse URL/line/column from eval frames

@@ -495,5 +499,5 @@ isEval, geckoEval = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, chromeEval = /\((\S*)(?::(\d+))(?::(\d+))\)/, lines = ex.stack.split('\n'), stack = [], submatch, parts, element, reference = /^(.*) is undefined$/.exec(ex.message);

* @return {?TraceKit.StackTrace} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromStacktraceProp(ex) {
function _computeStackTraceFromStacktraceProp(ex) {
// Access and store the stacktrace property before doing ANYTHING

@@ -558,5 +562,5 @@ // else to it because Opera is not very good at providing it

* @return {?TraceKit.StackTrace} Stack information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromOperaMultiLineMessage(ex) {
function _computeStackTraceFromOperaMultiLineMessage(ex) {
// TODO: Clean this function up

@@ -647,5 +651,5 @@ // Opera includes a stack trace into the exception message. An example is:

* augmented.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function augmentStackTraceWithInitialElement(stackInfo, url, lineNo, message) {
function _augmentStackTraceWithInitialElement(stackInfo, url, lineNo, message) {
var initial = {

@@ -696,8 +700,8 @@ url: url,

* @return {TraceKit.StackTrace=} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceByWalkingCallerChain(ex, depth) {
function _computeStackTraceByWalkingCallerChain(ex, depth) {
var functionName = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, stack = [], funcs = {}, recursion = false, parts, item;
for (var curr = computeStackTraceByWalkingCallerChain.caller; curr && !recursion; curr = curr.caller) {
if (curr === computeStackTrace || curr === TraceKit.report) {
for (var curr = _computeStackTraceByWalkingCallerChain.caller; curr && !recursion; curr = curr.caller) {
if (curr === _computeStackTrace || curr === TraceKit._report) {
continue;

@@ -741,3 +745,3 @@ }

};
augmentStackTraceWithInitialElement(result, ex.sourceURL || ex.fileName, ex.line || ex.lineNumber, ex.message || ex.description);
_augmentStackTraceWithInitialElement(result, ex.sourceURL || ex.fileName, ex.line || ex.lineNumber, ex.message || ex.description);
return result;

@@ -749,3 +753,3 @@ }

* @param {(string|number)=} depth
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/

@@ -759,3 +763,3 @@ function computeStackTrace(ex, depth) {

// property first!!
stack = computeStackTraceFromStacktraceProp(ex);
stack = _computeStackTraceFromStacktraceProp(ex);
if (stack) {

@@ -767,3 +771,3 @@ return stack;

try {
stack = computeStackTraceFromStackProp(ex);
stack = _computeStackTraceFromStackProp(ex);
if (stack) {

@@ -775,3 +779,3 @@ return stack;

try {
stack = computeStackTraceFromOperaMultiLineMessage(ex);
stack = _computeStackTraceFromOperaMultiLineMessage(ex);
if (stack) {

@@ -783,3 +787,3 @@ return stack;

try {
stack = computeStackTraceByWalkingCallerChain(ex, depth + 1);
stack = _computeStackTraceByWalkingCallerChain(ex, depth + 1);
if (stack) {

@@ -797,16 +801,16 @@ return stack;

}
computeStackTrace.augmentStackTraceWithInitialElement = augmentStackTraceWithInitialElement;
computeStackTrace.computeStackTraceFromStackProp = computeStackTraceFromStackProp;
computeStackTrace._augmentStackTraceWithInitialElement = _augmentStackTraceWithInitialElement;
computeStackTrace._computeStackTraceFromStackProp = _computeStackTraceFromStackProp;
return computeStackTrace;
})();
TraceKit.collectWindowErrors = true;
TraceKit.linesOfContext = 11;
var subscribe = TraceKit.report.subscribe;
exports.subscribe = subscribe;
var installGlobalHandler = TraceKit.report.installGlobalHandler;
exports.installGlobalHandler = installGlobalHandler;
var installGlobalUnhandledRejectionHandler = TraceKit.report.installGlobalUnhandledRejectionHandler;
exports.installGlobalUnhandledRejectionHandler = installGlobalUnhandledRejectionHandler;
var computeStackTrace = TraceKit.computeStackTrace;
exports.computeStackTrace = computeStackTrace;
TraceKit._collectWindowErrors = true;
TraceKit._linesOfContext = 11;
var _subscribe = TraceKit._report._subscribe;
exports._subscribe = _subscribe;
var _installGlobalHandler = TraceKit._report._installGlobalHandler;
exports._installGlobalHandler = _installGlobalHandler;
var _installGlobalUnhandledRejectionHandler = TraceKit._report._installGlobalUnhandledRejectionHandler;
exports._installGlobalUnhandledRejectionHandler = _installGlobalUnhandledRejectionHandler;
var _computeStackTrace = TraceKit._computeStackTrace;
exports._computeStackTrace = _computeStackTrace;
//# sourceMappingURL=tracekit.js.map
export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "5.1.1";
export declare const SDK_VERSION = "5.1.2";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_NAME = 'sentry.javascript.browser';
exports.SDK_VERSION = '5.1.1';
exports.SDK_VERSION = '5.1.2';
//# sourceMappingURL=version.js.map

@@ -6,3 +6,3 @@ import * as tslib_1 from "tslib";

import { eventFromPlainObject, eventFromStacktrace, prepareFramesForEvent } from './parsers';
import { computeStackTrace } from './tracekit';
import { _computeStackTrace } from './tracekit';
import { FetchTransport, XHRTransport } from './transports';

@@ -47,3 +47,3 @@ /**

exception = errorEvent.error; // tslint:disable-line:no-parameter-reassignment
event = eventFromStacktrace(computeStackTrace(exception));
event = eventFromStacktrace(_computeStackTrace(exception));
return SyncPromise.resolve(this._buildEvent(event, hint));

@@ -66,3 +66,3 @@ }

// we have a real Error object, do nothing
event = eventFromStacktrace(computeStackTrace(exception));
event = eventFromStacktrace(_computeStackTrace(exception));
return SyncPromise.resolve(this._buildEvent(event, hint));

@@ -118,3 +118,3 @@ }

if (this._options.attachStacktrace && hint && hint.syntheticException) {
var stacktrace = computeStackTrace(hint.syntheticException);
var stacktrace = _computeStackTrace(hint.syntheticException);
var frames_1 = prepareFramesForEvent(stacktrace.stack);

@@ -121,0 +121,0 @@ event.stacktrace = {

@@ -12,2 +12,3 @@ import * as tslib_1 from "tslib";

var windowIntegrations = {};
// This block is needed to add compatibility with the integrations packages when used with a CDN
// tslint:disable: no-unsafe-any

@@ -14,0 +15,0 @@ var _window = getGlobalObject();

@@ -5,3 +5,3 @@ import * as tslib_1 from "tslib";

import { eventFromStacktrace } from '../parsers';
import { installGlobalHandler, installGlobalUnhandledRejectionHandler, subscribe, } from '../tracekit';
import { _installGlobalHandler, _installGlobalUnhandledRejectionHandler, _subscribe, } from '../tracekit';
import { shouldIgnoreOnError } from './helpers';

@@ -23,3 +23,3 @@ /** Global handlers */

Error.stackTraceLimit = 50;
subscribe(function (stack, _, error) {
_subscribe(function (stack, _, error) {
// TODO: use stack.context to get a valuable information from TraceKit, eg.

@@ -52,7 +52,7 @@ // [

logger.log('Global Handler attached: onerror');
installGlobalHandler();
_installGlobalHandler();
}
if (this._options.onunhandledrejection) {
logger.log('Global Handler attached: onunhandledrejection');
installGlobalUnhandledRejectionHandler();
_installGlobalUnhandledRejectionHandler();
}

@@ -59,0 +59,0 @@ };

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

import { Event, EventHint, Exception, ExtendedError, Integration } from '@sentry/types';
import { Integration } from '@sentry/types';
/** Adds SDK info to an event. */

@@ -34,8 +34,8 @@ export declare class LinkedErrors implements Integration {

*/
handler(event: Event, hint?: EventHint): Event | null;
private _handler;
/**
* @inheritDoc
*/
walkErrorTree(error: ExtendedError, key: string, stack?: Exception[]): Exception[];
private _walkErrorTree;
}
//# sourceMappingURL=linkederrors.d.ts.map
import * as tslib_1 from "tslib";
import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';
import { exceptionFromStacktrace } from '../parsers';
import { computeStackTrace } from '../tracekit';
import { _computeStackTrace } from '../tracekit';
var DEFAULT_KEY = 'cause';

@@ -28,3 +28,3 @@ var DEFAULT_LIMIT = 5;

if (self) {
return self.handler(event, hint);
return self._handler(event, hint);
}

@@ -37,7 +37,7 @@ return event;

*/
LinkedErrors.prototype.handler = function (event, hint) {
LinkedErrors.prototype._handler = function (event, hint) {
if (!event.exception || !event.exception.values || !hint || !(hint.originalException instanceof Error)) {
return event;
}
var linkedErrors = this.walkErrorTree(hint.originalException, this._key);
var linkedErrors = this._walkErrorTree(hint.originalException, this._key);
event.exception.values = tslib_1.__spread(linkedErrors, event.exception.values);

@@ -49,3 +49,3 @@ return event;

*/
LinkedErrors.prototype.walkErrorTree = function (error, key, stack) {
LinkedErrors.prototype._walkErrorTree = function (error, key, stack) {
if (stack === void 0) { stack = []; }

@@ -55,5 +55,5 @@ if (!(error[key] instanceof Error) || stack.length + 1 >= this._limit) {

}
var stacktrace = computeStackTrace(error[key]);
var stacktrace = _computeStackTrace(error[key]);
var exception = exceptionFromStacktrace(stacktrace);
return this.walkErrorTree(error[key], key, tslib_1.__spread([exception], stack));
return this._walkErrorTree(error[key], key, tslib_1.__spread([exception], stack));
};

@@ -60,0 +60,0 @@ /**

import { keysToEventMessage, normalizeToSize } from '@sentry/utils';
import { computeStackTrace } from './tracekit';
import { _computeStackTrace } from './tracekit';
var STACKTRACE_LIMIT = 50;

@@ -36,3 +36,3 @@ /**

if (syntheticException) {
var stacktrace = computeStackTrace(syntheticException);
var stacktrace = _computeStackTrace(syntheticException);
var frames_1 = prepareFramesForEvent(stacktrace.stack);

@@ -39,0 +39,0 @@ event.stacktrace = {

@@ -36,7 +36,7 @@ /**

}
declare const subscribe: any;
declare const installGlobalHandler: any;
declare const installGlobalUnhandledRejectionHandler: any;
declare const computeStackTrace: ComputeStackTrace;
export { subscribe, installGlobalHandler, installGlobalUnhandledRejectionHandler, computeStackTrace };
declare const _subscribe: any;
declare const _installGlobalHandler: any;
declare const _installGlobalUnhandledRejectionHandler: any;
declare const _computeStackTrace: ComputeStackTrace;
export { _subscribe, _installGlobalHandler, _installGlobalUnhandledRejectionHandler, _computeStackTrace };
//# sourceMappingURL=tracekit.d.ts.map

@@ -19,6 +19,6 @@ // tslint:disable

var TraceKit = {
report: false,
collectWindowErrors: false,
computeStackTrace: false,
linesOfContext: false,
_report: false,
_collectWindowErrors: false,
_computeStackTrace: false,
_linesOfContext: false,
};

@@ -81,3 +81,3 @@ // var TraceKit: TraceKitInterface = {};

*
* Requires TraceKit.computeStackTrace.
* Requires TraceKit._computeStackTrace.
*

@@ -91,3 +91,3 @@ * Tries to catch all unhandled exceptions and report them to the

* Handlers receive a TraceKit.StackTrace object as described in the
* TraceKit.computeStackTrace docs.
* TraceKit._computeStackTrace docs.
*

@@ -97,3 +97,3 @@ * @memberof TraceKit

*/
TraceKit.report = (function reportModuleWrapper() {
TraceKit._report = (function reportModuleWrapper() {
var handlers = [], lastException = null, lastExceptionStack = null;

@@ -105,3 +105,3 @@ /**

*/
function subscribe(handler) {
function _subscribe(handler) {
// NOTE: We call both handlers manually in browser/integrations/globalhandler.ts

@@ -121,5 +121,5 @@ // So user can choose which one he wants to attach

*/
function notifyHandlers(stack, isWindowError, error) {
function _notifyHandlers(stack, isWindowError, error) {
var exception = null;
if (isWindowError && !TraceKit.collectWindowErrors) {
if (isWindowError && !TraceKit._collectWindowErrors) {
return;

@@ -152,3 +152,3 @@ }

*/
function traceKitWindowOnError(message, url, lineNo, columnNo, errorObj) {
function _traceKitWindowOnError(message, url, lineNo, columnNo, errorObj) {
var stack = null;

@@ -160,9 +160,9 @@ // If 'errorObj' is ErrorEvent, get real Error from inside

if (lastExceptionStack) {
TraceKit.computeStackTrace.augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message);
TraceKit._computeStackTrace._augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message);
processLastException();
}
else if (errorObj && isError(errorObj)) {
stack = TraceKit.computeStackTrace(errorObj);
stack = TraceKit._computeStackTrace(errorObj);
stack.mechanism = 'onerror';
notifyHandlers(stack, true, errorObj);
_notifyHandlers(stack, true, errorObj);
}

@@ -199,3 +199,3 @@ else {

};
notifyHandlers(stack, true, null);
_notifyHandlers(stack, true, null);
}

@@ -215,7 +215,7 @@ if (_oldOnerrorHandler) {

*/
function traceKitWindowOnUnhandledRejection(e) {
function _traceKitWindowOnUnhandledRejection(e) {
var err = (e && (e.detail ? e.detail.reason : e.reason)) || e;
var stack = TraceKit.computeStackTrace(err);
var stack = TraceKit._computeStackTrace(err);
stack.mechanism = 'onunhandledrejection';
notifyHandlers(stack, true, err);
_notifyHandlers(stack, true, err);
}

@@ -226,3 +226,3 @@ /**

*/
function installGlobalHandler() {
function _installGlobalHandler() {
if (_onErrorHandlerInstalled === true) {

@@ -232,3 +232,3 @@ return;

_oldOnerrorHandler = window.onerror;
window.onerror = traceKitWindowOnError;
window.onerror = _traceKitWindowOnError;
_onErrorHandlerInstalled = true;

@@ -240,4 +240,4 @@ }

*/
function installGlobalUnhandledRejectionHandler() {
window.onunhandledrejection = traceKitWindowOnUnhandledRejection;
function _installGlobalUnhandledRejectionHandler() {
window.onunhandledrejection = _traceKitWindowOnUnhandledRejection;
}

@@ -252,3 +252,3 @@ /**

lastException = null;
notifyHandlers(_lastExceptionStack, false, _lastException);
_notifyHandlers(_lastExceptionStack, false, _lastException);
}

@@ -261,3 +261,3 @@ /**

*/
function report(ex) {
function _report(ex) {
if (lastExceptionStack) {

@@ -271,3 +271,3 @@ if (lastException === ex) {

}
var stack = TraceKit.computeStackTrace(ex);
var stack = TraceKit._computeStackTrace(ex);
lastExceptionStack = stack;

@@ -286,6 +286,6 @@ lastException = ex;

}
report.subscribe = subscribe;
report.installGlobalHandler = installGlobalHandler;
report.installGlobalUnhandledRejectionHandler = installGlobalUnhandledRejectionHandler;
return report;
_report._subscribe = _subscribe;
_report._installGlobalHandler = _installGlobalHandler;
_report._installGlobalUnhandledRejectionHandler = _installGlobalUnhandledRejectionHandler;
return _report;
})();

@@ -313,7 +313,7 @@ /**

/**
* TraceKit.computeStackTrace: cross-browser stack traces in JavaScript
* TraceKit._computeStackTrace: cross-browser stack traces in JavaScript
*
* Syntax:
* ```js
* s = TraceKit.computeStackTrace(exception) // consider using TraceKit.report instead (see below)
* s = TraceKit._computeStackTrace(exception) // consider using TraceKit.report instead (see below)
* ```

@@ -338,5 +338,5 @@ *

*
* TraceKit.computeStackTrace should only be used for tracing purposes.
* TraceKit._computeStackTrace should only be used for tracing purposes.
* Logging of unhandled exceptions should be done with TraceKit.report,
* which builds on top of TraceKit.computeStackTrace and provides better
* which builds on top of TraceKit._computeStackTrace and provides better
* IE support by utilizing the window.onerror event to retrieve information

@@ -361,3 +361,3 @@ * about the top of the stack.

*/
TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
TraceKit._computeStackTrace = (function _computeStackTraceWrapper() {
// Contents of Exception in various browsers.

@@ -404,9 +404,13 @@ //

* @return {?TraceKit.StackTrace} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromStackProp(ex) {
function _computeStackTraceFromStackProp(ex) {
if (!ex.stack) {
return null;
}
var chrome = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
var chrome = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
// gecko regex: `(?:bundle|\d+\.js)`: `bundle` is for react native, `\d+\.js` also but specifically for ram bundles because it
// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js
// We need this specific case for now because we want no other regex to match.
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
// Used to additionally parse URL/line/column from eval frames

@@ -493,5 +497,5 @@ isEval, geckoEval = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, chromeEval = /\((\S*)(?::(\d+))(?::(\d+))\)/, lines = ex.stack.split('\n'), stack = [], submatch, parts, element, reference = /^(.*) is undefined$/.exec(ex.message);

* @return {?TraceKit.StackTrace} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromStacktraceProp(ex) {
function _computeStackTraceFromStacktraceProp(ex) {
// Access and store the stacktrace property before doing ANYTHING

@@ -556,5 +560,5 @@ // else to it because Opera is not very good at providing it

* @return {?TraceKit.StackTrace} Stack information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceFromOperaMultiLineMessage(ex) {
function _computeStackTraceFromOperaMultiLineMessage(ex) {
// TODO: Clean this function up

@@ -645,5 +649,5 @@ // Opera includes a stack trace into the exception message. An example is:

* augmented.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function augmentStackTraceWithInitialElement(stackInfo, url, lineNo, message) {
function _augmentStackTraceWithInitialElement(stackInfo, url, lineNo, message) {
var initial = {

@@ -694,8 +698,8 @@ url: url,

* @return {TraceKit.StackTrace=} Stack trace information.
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/
function computeStackTraceByWalkingCallerChain(ex, depth) {
function _computeStackTraceByWalkingCallerChain(ex, depth) {
var functionName = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, stack = [], funcs = {}, recursion = false, parts, item;
for (var curr = computeStackTraceByWalkingCallerChain.caller; curr && !recursion; curr = curr.caller) {
if (curr === computeStackTrace || curr === TraceKit.report) {
for (var curr = _computeStackTraceByWalkingCallerChain.caller; curr && !recursion; curr = curr.caller) {
if (curr === _computeStackTrace || curr === TraceKit._report) {
continue;

@@ -739,3 +743,3 @@ }

};
augmentStackTraceWithInitialElement(result, ex.sourceURL || ex.fileName, ex.line || ex.lineNumber, ex.message || ex.description);
_augmentStackTraceWithInitialElement(result, ex.sourceURL || ex.fileName, ex.line || ex.lineNumber, ex.message || ex.description);
return result;

@@ -747,3 +751,3 @@ }

* @param {(string|number)=} depth
* @memberof TraceKit.computeStackTrace
* @memberof TraceKit._computeStackTrace
*/

@@ -757,3 +761,3 @@ function computeStackTrace(ex, depth) {

// property first!!
stack = computeStackTraceFromStacktraceProp(ex);
stack = _computeStackTraceFromStacktraceProp(ex);
if (stack) {

@@ -765,3 +769,3 @@ return stack;

try {
stack = computeStackTraceFromStackProp(ex);
stack = _computeStackTraceFromStackProp(ex);
if (stack) {

@@ -773,3 +777,3 @@ return stack;

try {
stack = computeStackTraceFromOperaMultiLineMessage(ex);
stack = _computeStackTraceFromOperaMultiLineMessage(ex);
if (stack) {

@@ -781,3 +785,3 @@ return stack;

try {
stack = computeStackTraceByWalkingCallerChain(ex, depth + 1);
stack = _computeStackTraceByWalkingCallerChain(ex, depth + 1);
if (stack) {

@@ -795,13 +799,13 @@ return stack;

}
computeStackTrace.augmentStackTraceWithInitialElement = augmentStackTraceWithInitialElement;
computeStackTrace.computeStackTraceFromStackProp = computeStackTraceFromStackProp;
computeStackTrace._augmentStackTraceWithInitialElement = _augmentStackTraceWithInitialElement;
computeStackTrace._computeStackTraceFromStackProp = _computeStackTraceFromStackProp;
return computeStackTrace;
})();
TraceKit.collectWindowErrors = true;
TraceKit.linesOfContext = 11;
var subscribe = TraceKit.report.subscribe;
var installGlobalHandler = TraceKit.report.installGlobalHandler;
var installGlobalUnhandledRejectionHandler = TraceKit.report.installGlobalUnhandledRejectionHandler;
var computeStackTrace = TraceKit.computeStackTrace;
export { subscribe, installGlobalHandler, installGlobalUnhandledRejectionHandler, computeStackTrace };
TraceKit._collectWindowErrors = true;
TraceKit._linesOfContext = 11;
var _subscribe = TraceKit._report._subscribe;
var _installGlobalHandler = TraceKit._report._installGlobalHandler;
var _installGlobalUnhandledRejectionHandler = TraceKit._report._installGlobalUnhandledRejectionHandler;
var _computeStackTrace = TraceKit._computeStackTrace;
export { _subscribe, _installGlobalHandler, _installGlobalUnhandledRejectionHandler, _computeStackTrace };
//# sourceMappingURL=tracekit.js.map
export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "5.1.1";
export declare const SDK_VERSION = "5.1.2";
//# sourceMappingURL=version.d.ts.map
export var SDK_NAME = 'sentry.javascript.browser';
export var SDK_VERSION = '5.1.1';
export var SDK_VERSION = '5.1.2';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/browser",
"version": "5.1.1",
"version": "5.1.2",
"description": "Official Sentry SDK for browsers",

@@ -19,5 +19,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "5.1.0",
"@sentry/core": "5.1.2",
"@sentry/types": "5.1.0",
"@sentry/utils": "5.1.0",
"@sentry/utils": "5.1.2",
"tslib": "^1.9.3"

@@ -24,0 +24,0 @@ },

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc