@sentry/browser 6.17.1 → 6.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- /*! @sentry/browser 6.17.1 (97cf273) | https://github.com/getsentry/sentry-javascript */
2
- var Sentry=function(t){var e;(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";const n=["fatal","error","warning","log","info","debug","critical"];const r={};function i(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}const s=Object.prototype.toString;function o(t){switch(s.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function c(t,e){return s.call(t)===`[object ${e}]`}function u(t){return c(t,"ErrorEvent")}function a(t){return c(t,"DOMError")}function h(t){return c(t,"String")}function f(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return c(t,"Object")}function d(t){return"undefined"!=typeof Event&&y(t,Event)}function p(t){return"undefined"!=typeof Element&&y(t,Element)}function b(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function y(t,e){try{return t instanceof e}catch(t){return!1}}function m(t,e){try{let n=t;const r=5,i=80,s=[];let o=0,c=0;const u=" > ",a=u.length;let h;for(;n&&o++<r&&!("html"===(h=v(n,e))||o>1&&c+s.length*a+h.length>=i);)s.push(h),c+=h.length,n=n.parentNode;return s.reverse().join(u)}catch(t){return"<unknown>"}}function v(t,e){const n=t,r=[];let i,s,o,c,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const a=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(a&&a.length)a.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),(i=n.className)&&h(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["type","name","title","alt"];for(u=0;u<f.length;u++)o=f[u],(c=n.getAttribute(o))&&r.push(`[${o}="${c}"]`);return r.join("")}const g=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});class O extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,g(this,new.target.prototype)}}const j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function w(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&i?`:${i}`:""}`+`@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function E(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function x(t){const e="string"==typeof t?function(t){const e=j.exec(t);if(!e)throw new O(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",s,o="",c]=e.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return E({host:s,pass:i,path:u,projectId:a,port:o,protocol:n,publicKey:r})}(t):E(t);return e}const _=i(),$="Sentry Logger ";function S(t){const e=i();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});const s=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),s}_.__SENTRY__=_.__SENTRY__||{};const k=_.__SENTRY__.logger||(_.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&S(()=>{_.console.log(`${$}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&S(()=>{_.console.warn(`${$}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&S(()=>{_.console.error(`${$}[Error]: ${t.join(" ")}`)})}});const T="<anonymous>";function D(t){try{return t&&"function"==typeof t&&t.name||T}catch(t){return T}}function R(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function N(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function I(t,e){return!!h(t)&&(c(e,"RegExp")?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function M(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{C(i,r)}catch(t){}t[e]=i}function q(t,e,n){Object.defineProperty(t,e,{value:n})}function C(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,q(t,"__sentry_original__",e)}function L(t){return t.__sentry_original__}function A(t){if(o(t)){const e=t,n={message:e.message,name:e.name,stack:e.stack};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}if(d(t)){const e=t,n={};n.type=e.type;try{n.target=p(e.target)?m(e.target):Object.prototype.toString.call(e.target)}catch(t){n.target="<unknown>"}try{n.currentTarget=p(e.currentTarget)?m(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){n.currentTarget="<unknown>"}"undefined"!=typeof CustomEvent&&y(t,CustomEvent)&&(n.detail=e.detail);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}return t}function U(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function F(t,e=3,n=102400){const r=P(t,e);return U(r)>n?F(t,e-1,n):r}function B(t,e){return"domain"===e&&t&&"object"==typeof t&&t.i?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":l(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${D(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:t;var n}function J(t,e,n=1/0,r=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){if(0===n)return function(t){if("string"==typeof t)return t;const e=Object.prototype.toString.call(t);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=B(t);return f(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const i=B(e,t);if(f(i))return i;const s=A(e),o=Array.isArray(e)?[]:{};if(r[0](e))return"[Circular ~]";for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(o[t]=J(t,s[t],n-1,r));return r[1](e),o}function P(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>J(t,n,e)))}catch(t){return"**non-serializable**"}}function H(t,e=40){const n=Object.keys(A(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return R(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:R(r,e)}return""}function X(t){if(l(t)){const e=t,n={};for(const t of Object.keys(e))void 0!==e[t]&&(n[t]=X(e[t]));return n}return Array.isArray(t)?t.map(X):t}function W(){if(!("fetch"in i()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function z(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function K(){if(!W())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const G=i(),V={},Q={};function Y(t){if(!Q[t])switch(Q[t]=!0,t){case"console":!function(){if(!("console"in G))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in G.console&&M(G.console,t,function(e){return function(...n){tt("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,G.console,n)}})})}();break;case"dom":!function(){if(!("document"in G))return;const t=tt.bind(null,"dom"),e=ct(t,!0);G.document.addEventListener("click",e,!1),G.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=G[e]&&G[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=ct(t);o.handler=r,e.call(this,n,r,i)}o.refCount+=1}catch(t){}return e.call(this,n,r,i)}}),M(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[e];s&&(s.refCount-=1,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in G))return;const t=XMLHttpRequest.prototype;M(t,"open",function(t){return function(...e){const n=this,r=e[1],i=n.__sentry_xhr__={method:h(e[0])?e[0].toUpperCase():e[0],url:e[1]};h(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}tt("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?M(n,"onreadystatechange",function(t){return function(...e){return s(),t.apply(n,e)}}):n.addEventListener("readystatechange",s),t.apply(n,e)}}),M(t,"send",function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),tt("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}})}();break;case"fetch":!function(){if(!function(){if(!W())return!1;const t=i();if(z(t.fetch))return!0;let e=!1;const n=t.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(e=z(t.contentWindow.fetch)),n.head.removeChild(t)}catch(t){}return e}())return;M(G,"fetch",function(t){return function(...e){const n={args:e,fetchData:{method:et(e),url:nt(e)},startTimestamp:Date.now()};return tt("fetch",Object.assign({},n)),t.apply(G,e).then(t=>(tt("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),response:t})),t),t=>{throw tt("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(!function(){const t=i(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=G.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=rt,e=String(n);rt=e,tt("history",{from:t,to:e})}return t.apply(this,e)}}G.onpopstate=function(...e){const n=G.location.href,r=rt;if(rt=n,tt("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},M(G.history,"pushState",e),M(G.history,"replaceState",e)}();break;case"error":ut=G.onerror,G.onerror=function(t,e,n,r,i){return tt("error",{column:r,error:i,line:n,msg:t,url:e}),!!ut&&ut.apply(this,arguments)};break;case"unhandledrejection":at=G.onunhandledrejection,G.onunhandledrejection=function(t){return tt("unhandledrejection",t),!at||at.apply(this,arguments)};break;default:k.warn("unknown instrumentation type:",t)}}function Z(t,e){V[t]=V[t]||[],V[t].push(e),Y(t)}function tt(t,e){if(t&&V[t])for(const n of V[t]||[])try{n(e)}catch(t){0}}function et(t=[]){return"Request"in G&&y(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function nt(t=[]){return"string"==typeof t[0]?t[0]:"Request"in G&&y(t[0],Request)?t[0].url:String(t[0])}let rt;const it=1e3;let st,ot;function ct(t,e=!1){return n=>{if(!n||ot===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;void 0===st?(t({event:n,name:r,global:e}),ot=n):function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(ot,n)&&(t({event:n,name:r,global:e}),ot=n),clearTimeout(st),st=G.setTimeout(()=>{st=void 0},it)}}let ut=null;let at=null;function ht(){const t=i(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=t=>{let e=t.toString(16);for(;e.length<4;)e=`0${e}`;return e};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function ft(t){if(!t)return{};const e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function lt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function dt(t){const{message:e,event_id:n}=t;if(e)return e;const r=lt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function pt(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function bt(t,e){const n=lt(t);if(!n)return;const r=n.mechanism;if(n.mechanism=Object.assign(Object.assign(Object.assign({},{type:"generic",handled:!0}),r),e),e&&"data"in e){const t=Object.assign(Object.assign({},r&&r.data),e.data);n.mechanism.data=t}}const yt=6e4;function mt(t){if(t&&t.__sentry_captured__)return!0;try{q(t,"__sentry_captured__",!0)}catch(t){}return!1}function vt(t){return new Ot(e=>{e(t)})}function gt(t){return new Ot((e,n)=>{n(t)})}class Ot{constructor(t){this.s=0,this.o=[],this.u=(t=>{this.h(1,t)}),this.l=(t=>{this.h(2,t)}),this.h=((t,e)=>{0===this.s&&(b(e)?e.then(this.u,this.l):(this.s=t,this.p=e,this.m()))}),this.m=(()=>{if(0===this.s)return;const t=this.o.slice();this.o=[],t.forEach(t=>{t[0]||(1===this.s&&t[1](this.p),2===this.s&&t[2](this.p),t[0]=!0)})});try{t(this.u,this.l)}catch(t){this.l(t)}}then(t,e){return new Ot((n,r)=>{this.o.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.m()})}catch(t){return this.then(t=>t,t)}finally(t){return new Ot((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}}function jt(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return gt(new O("Not adding Promise due to buffer limit reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new Ot((n,r)=>{let i=e.length;if(!i)return n(!0);const s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{vt(t).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}function wt(e){return"warn"===e?t.Severity.Warning:function(t){return-1!==n.indexOf(t)}(e)?e:t.Severity.Log}const Et={nowSeconds:()=>Date.now()/1e3};const xt=function(){const{performance:t}=i();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),_t=void 0===xt?Et:{nowSeconds:()=>(xt.timeOrigin+xt.now())/1e3},$t=Et.nowSeconds.bind(Et),St=_t.nowSeconds.bind(_t),kt=((()=>{const{performance:t}=i();if(!t||!t.now)return;const e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,s=r<36e5,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+e-n):36e5;(s||c<36e5)&&(r<=c&&t.timeOrigin)})(),100);class Tt{constructor(){this.v=!1,this.g=[],this.O=[],this.j=[],this._={},this.S={},this.k={},this.T={},this.D={}}static clone(t){const e=new Tt;return t&&(e.j=[...t.j],e.S=Object.assign({},t.S),e.k=Object.assign({},t.k),e.T=Object.assign({},t.T),e._=t._,e.R=t.R,e.N=t.N,e.I=t.I,e.M=t.M,e.q=t.q,e.O=[...t.O],e.C=t.C),e}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this.O.push(t),this}setUser(t){return this._=t||{},this.I&&this.I.update({user:t}),this.L(),this}getUser(){return this._}getRequestSession(){return this.C}setRequestSession(t){return this.C=t,this}setTags(t){return this.S=Object.assign(Object.assign({},this.S),t),this.L(),this}setTag(t,e){return this.S=Object.assign(Object.assign({},this.S),{[t]:e}),this.L(),this}setExtras(t){return this.k=Object.assign(Object.assign({},this.k),t),this.L(),this}setExtra(t,e){return this.k=Object.assign(Object.assign({},this.k),{[t]:e}),this.L(),this}setFingerprint(t){return this.q=t,this.L(),this}setLevel(t){return this.R=t,this.L(),this}setTransactionName(t){return this.M=t,this.L(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,e){return null===e?delete this.T[t]:this.T=Object.assign(Object.assign({},this.T),{[t]:e}),this.L(),this}setSpan(t){return this.N=t,this.L(),this}getSpan(){return this.N}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.I=t:delete this.I,this.L(),this}getSession(){return this.I}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof Tt?e:this}return t instanceof Tt?(this.S=Object.assign(Object.assign({},this.S),t.S),this.k=Object.assign(Object.assign({},this.k),t.k),this.T=Object.assign(Object.assign({},this.T),t.T),t._&&Object.keys(t._).length&&(this._=t._),t.R&&(this.R=t.R),t.q&&(this.q=t.q),t.C&&(this.C=t.C)):l(t)&&(t=t,this.S=Object.assign(Object.assign({},this.S),t.tags),this.k=Object.assign(Object.assign({},this.k),t.extra),this.T=Object.assign(Object.assign({},this.T),t.contexts),t.user&&(this._=t.user),t.level&&(this.R=t.level),t.fingerprint&&(this.q=t.fingerprint),t.requestSession&&(this.C=t.requestSession)),this}clear(){return this.j=[],this.S={},this.k={},this._={},this.T={},this.R=void 0,this.M=void 0,this.q=void 0,this.C=void 0,this.N=void 0,this.I=void 0,this.L(),this}addBreadcrumb(t,e){const n="number"==typeof e?Math.min(e,kt):kt;if(n<=0)return this;const r=Object.assign({timestamp:$t()},t);return this.j=[...this.j,r].slice(-n),this.L(),this}clearBreadcrumbs(){return this.j=[],this.L(),this}applyToEvent(t,e){if(this.k&&Object.keys(this.k).length&&(t.extra=Object.assign(Object.assign({},this.k),t.extra)),this.S&&Object.keys(this.S).length&&(t.tags=Object.assign(Object.assign({},this.S),t.tags)),this._&&Object.keys(this._).length&&(t.user=Object.assign(Object.assign({},this._),t.user)),this.T&&Object.keys(this.T).length&&(t.contexts=Object.assign(Object.assign({},this.T),t.contexts)),this.R&&(t.level=this.R),this.M&&(t.transaction=this.M),this.N){t.contexts=Object.assign({trace:this.N.getTraceContext()},t.contexts);const e=this.N.transaction&&this.N.transaction.name;e&&(t.tags=Object.assign({transaction:e},t.tags))}return this.A(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.j],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.U([...Dt(),...this.O],t,e)}setSDKProcessingMetadata(t){return this.D=Object.assign(Object.assign({},this.D),t),this}U(t,e,n,r=0){return new Ot((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const c=o(Object.assign({},e),n);b(c)?c.then(e=>this.U(t,e,n,r+1).then(i)).then(null,s):this.U(t,c,n,r+1).then(i).then(null,s)}})}L(){this.v||(this.v=!0,this.g.forEach(t=>{t(this)}),this.v=!1)}A(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.q&&(t.fingerprint=t.fingerprint.concat(this.q)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Dt(){const t=i();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Rt(t){Dt().push(t)}class Nt{constructor(t){this.errors=0,this.sid=ht(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;const e=St();this.timestamp=e,this.started=e,t&&this.update(t)}update(t={}){if(t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||St(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:ht()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{const t=this.timestamp-this.started;this.duration=t>=0?t:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)}close(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()}toJSON(){return X({sid:`${this.sid}`,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?`${this.did}`:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})}}const It=4,Mt=100;class qt{constructor(t,e=new Tt,n=It){this.F=n,this.B=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this.F<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Tt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,e){const n=this.J=ht();let r=e;if(!e){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.P("captureException",t,Object.assign(Object.assign({},r),{event_id:n})),n}captureMessage(t,e,n){const r=this.J=ht();let i=n;if(!n){let e;try{throw new Error(t)}catch(t){e=t}i={originalException:t,syntheticException:e}}return this.P("captureMessage",t,e,Object.assign(Object.assign({},i),{event_id:r})),r}captureEvent(t,e){const n=ht();return"transaction"!==t.type&&(this.J=n),this.P("captureEvent",t,Object.assign(Object.assign({},e),{event_id:n})),n}lastEventId(){return this.J}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Mt}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o=$t(),c=Object.assign({timestamp:o},t),u=i?S(()=>i(c,e)):c;null!==u&&n.addBreadcrumb(u,s)}setUser(t){const e=this.getScope();e&&e.setUser(t)}setTags(t){const e=this.getScope();e&&e.setTags(t)}setExtras(t){const e=this.getScope();e&&e.setExtras(t)}setTag(t,e){const n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){const n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){const n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){const e=Lt(this);try{t(this)}finally{Lt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return k.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startSpan(t){return this.H("startSpan",t)}startTransaction(t,e){return this.H("startTransaction",t,e)}traceHeaders(){return this.H("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.X()}endSession(){const t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this.X(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{},o=i(),{userAgent:c}=o.navigator||{},u=new Nt(Object.assign(Object.assign(Object.assign({release:r,environment:s},e&&{user:e.getUser()}),c&&{userAgent:c}),t));if(e){const t=e.getSession&&e.getSession();t&&"ok"===t.status&&t.update({status:"exited"}),this.endSession(),e.setSession(u)}return u}X(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession&&t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}P(t,...e){const{scope:n,client:r}=this.getStackTop();r&&r[t]&&r[t](...e,n)}H(t,...e){const n=Ct().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);k.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ct(){const t=i();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Lt(t){const e=Ct(),n=Ft(e);return Bt(e,t),n}function At(){const t=Ct();return Ut(t)&&!Ft(t).isOlderThan(It)||Bt(t,new qt),Ft(t)}function Ut(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ft(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new qt,t.__SENTRY__.hub)}function Bt(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Jt(t,...e){const n=At();if(n&&n[t])return n[t](...e);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t,e){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Jt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Pt(t){Jt("withScope",t)}const Ht="7";function Xt(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Wt(t,e){return`${Xt(t)}${t.projectId}/${e}/`}function zt(t){return e={sentry_key:t.publicKey,sentry_version:Ht},Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");var e}function Kt(t){return`${function(t){return Wt(t,"store")}(t)}?${zt(t)}`}function Gt(t,e){return e||`${function(t){return Wt(t,"envelope")}(t)}?${zt(t)}`}const Vt=[];function Qt(t){return t.reduce((t,e)=>(t.every(t=>e.name!==t.name)&&t.push(e),t),[])}function Yt(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[...Qt(e)];Array.isArray(n)?r=[...r.filter(t=>n.every(e=>e.name!==t.name)),...Qt(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);const i=r.map(t=>t.name);return-1!==i.indexOf("Debug")&&r.push(...r.splice(i.indexOf("Debug"),1)),r}(t).forEach(t=>{e[t.name]=t,function(t){-1===Vt.indexOf(t.name)&&(t.setupOnce(Rt,At),Vt.push(t.name),k.log(`Integration installed: ${t.name}`))}(t)}),q(e,"initialized",!0),e}const Zt="Not capturing exception because it's already been captured.";class te{constructor(t,e){this.W={},this.K=0,this.G=new t(e),this.V=e,e.dsn&&(this.Y=x(e.dsn))}captureException(t,e,n){if(mt(t))return void k.log(Zt);let r=e&&e.event_id;return this.Z(this.tt().eventFromException(t,e).then(t=>this.et(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const s=f(t)?this.tt().eventFromMessage(String(t),e,n):this.tt().eventFromException(t,n);return this.Z(s.then(t=>this.et(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&mt(e.originalException))return void k.log(Zt);let r=e&&e.event_id;return this.Z(this.et(t,e,n).then(t=>{r=t})),r}captureSession(t){this.nt()&&("string"!=typeof t.release||(this.rt(t),t.update({init:!1})))}getDsn(){return this.Y}getOptions(){return this.V}getTransport(){return this.tt().getTransport()}flush(t){return this.it(t).then(e=>this.getTransport().close(t).then(t=>e&&t))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}setupIntegrations(){this.nt()&&!this.W.initialized&&(this.W=Yt(this.V))}getIntegration(t){try{return this.W[t.id]||null}catch(e){return k.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}st(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(t.update(Object.assign(Object.assign({},n&&{status:"crashed"}),{errors:t.errors||Number(r||n)})),this.captureSession(t))}rt(t){this.tt().sendSession(t)}it(t){return new Ot(e=>{let n=0;const r=setInterval(()=>{0==this.K?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}tt(){return this.G}nt(){return!1!==this.getOptions().enabled&&void 0!==this.Y}ot(t,e,n){const{normalizeDepth:r=3}=this.getOptions(),i=Object.assign(Object.assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:ht()),timestamp:t.timestamp||$t()});this.ct(i),this.ut(i);let s=e;n&&n.captureContext&&(s=Tt.clone(s).update(n.captureContext));let o=vt(i);return s&&(o=s.applyToEvent(i,n)),o.then(t=>"number"==typeof r&&r>0?this.at(t,r):t)}at(t,e){if(!t)return null;const n=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>Object.assign(Object.assign({},t),t.data&&{data:P(t.data,e)}))}),t.user&&{user:P(t.user,e)}),t.contexts&&{contexts:P(t.contexts,e)}),t.extra&&{extra:P(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),n}ct(t){const e=this.getOptions(),{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=R(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=R(o.value,s));const c=t.request;c&&c.url&&(c.url=R(c.url,s))}ut(t){const e=Object.keys(this.W);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}ht(t){this.tt().sendEvent(t)}et(t,e,n){return this.ft(t,e,n).then(t=>t.event_id,t=>{k.error(t)})}ft(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions(),s=this.getTransport();function o(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this.nt())return gt(new O("SDK not enabled, will not capture event."));const c="transaction"===t.type;return!c&&"number"==typeof i&&Math.random()>i?(o("sample_rate","event"),gt(new O(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this.ot(t,n,e).then(n=>{if(null===n)throw o("event_processor",t.type||"event"),new O("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||c||!r?n:function(t){const e="`beforeSend` method has to return `null` or a valid event.";if(b(t))return t.then(t=>{if(!l(t)&&null!==t)throw new O(e);return t},t=>{throw new O(`beforeSend rejected with ${t}`)});if(!l(t)&&null!==t)throw new O(e);return t}(r(n,e))}).then(e=>{if(null===e)throw o("before_send",t.type||"event"),new O("`beforeSend` returned `null`, will not send event.");const r=n&&n.getSession&&n.getSession();return!c&&r&&this.st(r,e),this.ht(e),e}).then(null,t=>{if(t instanceof O)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new O(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}Z(t){this.K+=1,t.then(t=>(this.K-=1,t),t=>(this.K-=1,t))}}class ee{sendEvent(t){return vt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})}close(t){return vt(!0)}}class ne{constructor(t){this.V=t,this.V.dsn||k.warn("No DSN provided, backend will not do anything."),this.lt=this.dt()}eventFromException(t,e){throw new O("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new O("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.lt.sendEvent(t).then(null,t=>{0})}sendSession(t){this.lt.sendSession&&this.lt.sendSession(t).then(null,t=>{0})}getTransport(){return this.lt}dt(){return new ee}}function re(t){if(!t.metadata||!t.metadata.sdk)return;const{name:e,version:n}=t.metadata.sdk;return{name:e,version:n}}const ie="6.17.1";let se;class oe{constructor(){this.name=oe.id}setupOnce(){se=Function.prototype.toString,Function.prototype.toString=function(...t){const e=L(this)||this;return se.apply(e,t)}}}oe.id="FunctionToString";const ce=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ue{constructor(t={}){this.V=t,this.name=ue.id}setupOnce(){Rt(t=>{const e=At();if(!e)return t;const n=e.getIntegration(ue);if(n){const r=e.getClient(),i=r?r.getOptions():{},s="function"==typeof n._mergeOptions?n._mergeOptions(i):{};return"function"!=typeof n.pt?t:n.pt(t,s)?null:t}return t})}pt(t,e){return!!this.bt(t,e)||(!!this.yt(t,e)||(!!this.vt(t,e)||!this.gt(t,e)))}bt(t,e){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}yt(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Ot(t).some(t=>e.ignoreErrors.some(e=>I(t,e)))}vt(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;const n=this.jt(t);return!!n&&e.denyUrls.some(t=>I(n,t))}gt(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;const n=this.jt(t);return!n||e.allowUrls.some(t=>I(n,t))}_mergeOptions(t={}){return{allowUrls:[...this.V.whitelistUrls||[],...this.V.allowUrls||[],...t.whitelistUrls||[],...t.allowUrls||[]],denyUrls:[...this.V.blacklistUrls||[],...this.V.denyUrls||[],...t.blacklistUrls||[],...t.denyUrls||[]],ignoreErrors:[...this.V.ignoreErrors||[],...t.ignoreErrors||[],...ce],ignoreInternal:void 0===this.V.ignoreInternal||this.V.ignoreInternal}}Ot(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(t){return[]}return[]}wt(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}jt(t){try{if(t.stacktrace)return this.wt(t.stacktrace.frames);let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?this.wt(e):null}catch(t){return null}}}ue.id="InboundFilters";var ae=Object.freeze({__proto__:null,FunctionToString:oe,InboundFilters:ue});const he="?",fe=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,le=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,de=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,be=/\((\S*)(?::(\d+))(?::(\d+))\)/,ye=/Minified React error #\d+;/i;function me(t){let e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:ye.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;const e=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=e.split("\n"),s=[];let o;for(let t=0;t<i.length;t+=2){let e=null;(o=n.exec(i[t]))?e={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(i[t]))&&(e={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),e&&(!e.func&&e.line&&(e.func=he),s.push(e))}if(!s.length)return null;return{message:Oe(t),name:t.name,stack:s}}(t))return ge(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;const e=[],n=t.stack.split("\n");let r,i,s,o;for(let c=0;c<n.length;++c){if(s=fe.exec(n[c])){const t=s[2]&&0===s[2].indexOf("native");(r=s[2]&&0===s[2].indexOf("eval"))&&(i=be.exec(s[2]))&&(s[2]=i[1],s[3]=i[2],s[4]=i[3]);let e=s[2]&&0===s[2].indexOf("address at ")?s[2].substr("address at ".length):s[2],n=s[1]||he;[n,e]=ve(n,e),o={url:e,func:n,args:t?[s[2]]:[],line:s[3]?+s[3]:null,column:s[4]?+s[4]:null}}else if(s=de.exec(n[c]))o={url:s[2],func:s[1]||he,args:[],line:+s[3],column:s[4]?+s[4]:null};else{if(!(s=le.exec(n[c])))continue;{(r=s[3]&&s[3].indexOf(" > eval")>-1)&&(i=pe.exec(s[3]))?(s[1]=s[1]||"eval",s[3]=i[1],s[4]=i[2],s[5]=""):0!==c||s[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1);let n=s[3],u=s[1]||he;[u,n]=ve(u,n),o={url:n,func:u,args:s[2]?s[2].split(","):[],line:s[4]?+s[4]:null,column:s[5]?+s[5]:null}}}!o.func&&o.line&&(o.func=he),e.push(o)}if(!e.length)return null;return{message:Oe(t),name:t.name,stack:e}}(t))return ge(e,n)}catch(t){}return{message:Oe(t),name:t&&t.name,stack:[],failed:!0}}const ve=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:he,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ge(t,e){try{return Object.assign(Object.assign({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function Oe(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}const je=50;function we(t){const e=xe(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ee(t){return{exception:{values:[we(t)]}}}function xe(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,je).map(t=>({colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line})).reverse()}function _e(e,n,r){const i=Se(n,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return bt(i),i.level=t.Severity.Error,r&&r.event_id&&(i.event_id=r.event_id),vt(i)}function $e(e,n,r=t.Severity.Info,i){const s=ke(n,i&&i.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return s.level=r,i&&i.event_id&&(s.event_id=i.event_id),vt(s)}function Se(t,e,n={}){let r;if(u(t)&&t.error){return r=Ee(me(t=t.error))}if(a(t)||c(t,"DOMException")){const i=t;if("stack"in t)r=Ee(me(t));else{const t=i.name||(a(i)?"DOMError":"DOMException"),s=i.message?`${t}: ${i.message}`:t;pt(r=ke(s,e,n),s)}return"code"in i&&(r.tags=Object.assign(Object.assign({},r.tags),{"DOMException.code":`${i.code}`})),r}if(o(t))return r=Ee(me(t));if(l(t)||d(t)){return bt(r=function(t,e,n){const r={exception:{values:[{type:d(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${H(t)}`}]},extra:{__serialized__:F(t)}};if(e){const t=xe(me(e).stack);r.stacktrace={frames:t}}return r}(t,e,n.isRejection),{synthetic:!0}),r}return pt(r=ke(t,e,n),`${t}`,void 0),bt(r,{synthetic:!0}),r}function ke(t,e,n={}){const r={message:t};if(n.attachStacktrace&&e){const t=xe(me(e).stack);r.stacktrace={frames:t}}return r}const Te=i();let De;function Re(){if(De)return De;if(z(Te.fetch))return De=Te.fetch.bind(Te);const t=Te.document;let e=Te.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){0}return De=e.bind(Te)}function Ne(t,e){if("[object Navigator]"===Object.prototype.toString.call(Te&&Te.navigator)&&"function"==typeof Te.navigator.sendBeacon){return Te.navigator.sendBeacon.bind(Te.navigator)(t,e)}if(W()){const n=Re();n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,t=>{console.error(t)})}else;}function Ie(t){return"event"===t?"error":t}const Me=i();class qe{constructor(t){var e,n,r;this.options=t,this.Et=jt(30),this.xt={},this._t={},this.$t=(e=t.dsn,n=t.St,r=t.tunnel,{initDsn:e,metadata:n||{},dsn:x(e),tunnel:r}),this.url=Kt(this.$t.dsn),this.options.sendClientReports&&Me.document&&Me.document.addEventListener("visibilitychange",()=>{"hidden"===Me.document.visibilityState&&this.kt()})}sendEvent(t){return this.Tt(function(t,e){const n=re(e),r=t.type||"event",i="transaction"===r||!!e.tunnel,{transactionSampling:s}=t.sdkProcessingMetadata||{},{method:o,rate:c}=s||{};let u;!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0),delete t.sdkProcessingMetadata;try{u=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{u=JSON.stringify(P(t))}catch(t){const e=t;u=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:e.message,stack:e.stack}})}}const a={body:u,type:r,url:i?Gt(e.dsn,e.tunnel):Kt(e.dsn)};if(i){const i=`${JSON.stringify(Object.assign(Object.assign({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:w(e.dsn)}))}\n${JSON.stringify({type:r,sample_rates:[{id:o,rate:c}]})}\n${a.body}`;a.body=i}return a}(t,this.$t),t)}sendSession(t){return this.Tt(function(t,e){const n=re(e),r="aggregates"in t?"sessions":"session";return{body:`${JSON.stringify(Object.assign(Object.assign({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:w(e.dsn)}))}\n${JSON.stringify({type:r})}\n${JSON.stringify(t)}`,type:r,url:Gt(e.dsn,e.tunnel)}}(t,this.$t),t)}close(t){return this.Et.drain(t)}recordLostEvent(t,e){var n;if(!this.options.sendClientReports)return;const r=`${Ie(e)}:${t}`;k.log(`Adding outcome: ${r}`),this._t[r]=(null!=(n=this._t[r])?n:0)+1}kt(){if(!this.options.sendClientReports)return;const t=this._t;if(this._t={},!Object.keys(t).length)return void k.log("No outcomes to flush");k.log(`Flushing outcomes:\n${JSON.stringify(t,null,2)}`);const e=Gt(this.$t.dsn,this.$t.tunnel),n=`${JSON.stringify(Object.assign({},this.$t.tunnel&&{dsn:w(this.$t.dsn)}))}\n${JSON.stringify({type:"client_report"})}\n${JSON.stringify({timestamp:$t(),discarded_events:Object.keys(t).map(e=>{const[n,r]=e.split(":");return{reason:r,category:n,quantity:t[e]}})})}`;try{Ne(e,n)}catch(t){k.error(t)}}Dt({requestType:t,response:e,headers:n,resolve:r,reject:i}){const s=(o=e.status)>=200&&o<300?"success":429===o?"rate_limit":o>=400&&o<500?"invalid":o>=500?"failed":"unknown";var o;this.Rt(n);"success"!==s?i(e):r({status:s})}Nt(t){const e=Ie(t);return this.xt[e]||this.xt.all}It(t){return this.Nt(t)>new Date(Date.now())}Rt(t){const e=Date.now(),n=t["x-sentry-rate-limits"],r=t["retry-after"];if(n){for(const t of n.trim().split(",")){const n=t.split(":",2),r=parseInt(n[0],10),i=1e3*(isNaN(r)?60:r);for(const t of n[1].split(";"))this.xt[t||"all"]=new Date(e+i)}return!0}return!!r&&(this.xt.all=new Date(e+function(t,e){if(!e)return yt;const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?yt:r-t}(e,r)),!0)}}class Ce extends qe{constructor(t,e=Re()){super(t),this.Mt=e}Tt(t,e){if(this.It(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.Nt(t.type)} due to too many requests.`,status:429});const n={body:t.body,method:"POST",referrerPolicy:K()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this.Et.add(()=>new Ot((e,r)=>{this.Mt(t.url,n).then(n=>{const i={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};this.Dt({requestType:t.type,response:n,headers:i,resolve:e,reject:r})}).catch(r)})).then(void 0,e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e})}}class Le extends qe{Tt(t,e){return this.It(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.Nt(t.type)} due to too many requests.`,status:429})):this.Et.add(()=>new Ot((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=(()=>{if(4===r.readyState){const i={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.Dt({requestType:t.type,response:r,headers:i,resolve:e,reject:n})}}),r.open("POST",t.url);for(const t in this.options.headers)Object.prototype.hasOwnProperty.call(this.options.headers,t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)})).then(void 0,e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e})}}var Ae=Object.freeze({__proto__:null,BaseTransport:qe,FetchTransport:Ce,XHRTransport:Le});class Ue extends ne{eventFromException(t,e){return _e(this.V,t,e)}eventFromMessage(e,n=t.Severity.Info,r){return $e(this.V,e,n,r)}dt(){if(!this.V.dsn)return super.dt();const t=Object.assign(Object.assign({},this.V.transportOptions),{dsn:this.V.dsn,tunnel:this.V.tunnel,sendClientReports:this.V.sendClientReports,St:this.V.St});return this.V.transport?new this.V.transport(t):W()?new Ce(t):new Le(t)}}const Fe=i();let Be=0;function Je(){return Be>0}function Pe(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(L(t))return t}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map(t=>Pe(t,e));return t.apply(this,i)}catch(t){throw Be+=1,setTimeout(()=>{Be-=1}),Pt(n=>{n.addEventProcessor(t=>(e.mechanism&&(pt(t,void 0,void 0),bt(t,e.mechanism)),t.extra=Object.assign(Object.assign({},t.extra),{arguments:r}),t)),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}C(sentryWrapped,t),q(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function He(t={}){if(!Fe.document)return;if(!t.eventId)return void 0;if(!t.dsn)return void 0;const e=Fe.document.createElement("script");e.async=!0,e.src=function(t,e){const n=x(t),r=`${Xt(n)}embed/error-page/`;let i=`dsn=${w(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){if(!e.user)continue;e.user.name&&(i+=`&name=${encodeURIComponent(e.user.name)}`),e.user.email&&(i+=`&email=${encodeURIComponent(e.user.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${i}`}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);const n=Fe.document.head||Fe.document.body;n&&n.appendChild(e)}class Xe{constructor(t){this.name=Xe.id,this.qt={onerror:We,onunhandledrejection:ze},this.V=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50;const t=this.V;for(const e in t){const n=this.qt[e];n&&t[e]&&(Ge(e),n(),this.qt[e]=void 0)}}}function We(){Z("error",t=>{const[e,n]=Qe();if(!e.getIntegration(Xe))return;const{msg:r,url:i,line:s,column:o,error:c}=t;Je()||c&&c.__sentry_own_request__||Ve(e,c,void 0===c&&h(r)?function(t,e,n,r){let i=u(t)?t.message:t,s="Error";const o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(s=o[1],i=o[2]);return Ke({exception:{values:[{type:s,value:i}]}},e,n,r)}(r,i,s,o):Ke(Se(c||r,void 0,{attachStacktrace:n,isRejection:!1}),i,s,o),"onerror")})}function ze(){Z("unhandledrejection",e=>{const[n,r]=Qe();if(!n.getIntegration(Xe))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}if(Je()||i&&i.__sentry_own_request__)return!0;const s=f(i)?function(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}(i):Se(i,void 0,{attachStacktrace:r,isRejection:!0});s.level=t.Severity.Error,Ve(n,i,s,"onunhandledrejection")})}function Ke(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],c=o[0]=o[0]||{},u=c.stacktrace=c.stacktrace||{},a=u.frames=u.frames||[],f=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=h(e)&&e.length>0?e:function(){const t=i();try{return t.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:f,filename:d,function:"?",in_app:!0,lineno:l}),t}function Ge(t){0}function Ve(t,e,n,r){bt(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Qe(){const t=At(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}Xe.id="GlobalHandlers";const Ye=["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"];class Ze{constructor(t){this.name=Ze.id,this.V=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=i();this.V.setTimeout&&M(t,"setTimeout",tn),this.V.setInterval&&M(t,"setInterval",tn),this.V.requestAnimationFrame&&M(t,"requestAnimationFrame",en),this.V.XMLHttpRequest&&"XMLHttpRequest"in t&&M(XMLHttpRequest.prototype,"send",nn);const e=this.V.eventTarget;if(e){(Array.isArray(e)?e:Ye).forEach(rn)}}}function tn(t){return function(...e){const n=e[0];return e[0]=Pe(n,{mechanism:{data:{function:D(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function en(t){return function(e){return t.call(this,Pe(e,{mechanism:{data:{function:"requestAnimationFrame",handler:D(t)},handled:!0,type:"instrument"}}))}}function nn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&M(n,t,function(e){const n={mechanism:{data:{function:t,handler:D(e)},handled:!0,type:"instrument"}},r=L(e);return r&&(n.mechanism.data.handler=D(r)),Pe(e,n)})}),t.apply(this,e)}}function rn(t){const e=i(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:D(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:D(r),target:t},handled:!0,type:"instrument"}}),i)}}),M(n,"removeEventListener",function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}}))}Ze.id="TryCatch";class sn{constructor(t){this.name=sn.id,this.V=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.V.sentry&&At().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:dt(t)},{event:t})}setupOnce(){this.V.console&&Z("console",on),this.V.dom&&Z("dom",function(t){return function(e){let n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?m(e.event.target,r):m(e.event,r)}catch(t){n="<unknown>"}if(0===n.length)return;At().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}}(this.V.dom)),this.V.xhr&&Z("xhr",cn),this.V.fetch&&Z("fetch",un),this.V.history&&Z("history",an)}}function on(t){const e={category:"console",data:{arguments:t.args,logger:"console"},level:wt(t.level),message:N(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${N(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}At().addBreadcrumb(e,{input:t.args,level:t.level})}function cn(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};At().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function un(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?At().addBreadcrumb({category:"fetch",data:e.fetchData,level:t.Severity.Error,type:"http"},{data:e.error,input:e.args}):At().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function an(t){const e=i();let n=t.from,r=t.to;const s=ft(e.location.href);let o=ft(n);const c=ft(r);o.path||(o=s),s.protocol===c.protocol&&s.host===c.host&&(r=c.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),At().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}sn.id="Breadcrumbs";const hn="cause",fn=5;class ln{constructor(t={}){this.name=ln.id,this.Ct=t.key||hn,this.Lt=t.limit||fn}setupOnce(){Rt((t,e)=>{const n=At().getIntegration(ln);return n?function(t,e,n,r){if(!(n.exception&&n.exception.values&&r&&y(r.originalException,Error)))return n;const i=function t(e,n,r,i=[]){if(!y(n[r],Error)||i.length+1>=e)return i;const s=me(n[r]);const o=we(s);return t(e,n[r],r,[o,...i])}(e,r.originalException,t);return n.exception.values=[...i,...n.exception.values],n}(n.Ct,n.Lt,t,e):t})}}ln.id="LinkedErrors";const dn=i();class pn{constructor(){this.name=pn.id}setupOnce(){Rt(t=>{if(At().getIntegration(pn)){if(!dn.navigator&&!dn.location&&!dn.document)return t;const e=t.request&&t.request.url||dn.location&&dn.location.href,{referrer:n}=dn.document||{},{userAgent:r}=dn.navigator||{},i=Object.assign(Object.assign(Object.assign({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=Object.assign(Object.assign({},e&&{url:e}),{headers:i});return Object.assign(Object.assign({},t),{request:s})}return t})}}pn.id="UserAgent";class bn{constructor(){this.name=bn.id}setupOnce(t,e){t(t=>{const n=e().getIntegration(bn);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!mn(t,e))return!1;if(!yn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=vn(e),r=vn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!mn(t,e))return!1;if(!yn(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n.At))return k.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n.At=t}return n.At=t}return t})}}function yn(t,e){let n=gn(t),r=gn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function mn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function vn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function gn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}bn.id="Dedupe";var On=Object.freeze({__proto__:null,GlobalHandlers:Xe,TryCatch:Ze,Breadcrumbs:sn,LinkedErrors:ln,UserAgent:pn,Dedupe:bn});class jn extends te{constructor(t={}){t.St=t.St||{},t.St.sdk=t.St.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:ie}],version:ie},super(Ue,t)}showReportDialog(t={}){i().document&&(this.nt()?He(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()})):k.error("Trying to call showReportDialog with Sentry Client disabled"))}ot(t,e,n){return t.platform=t.platform||"javascript",super.ot(t,e,n)}ht(t){const e=this.getIntegration(sn);e&&e.addSentryBreadcrumb(t),super.ht(t)}}const wn=[new ue,new oe,new Ze,new sn,new Xe,new ln,new bn,new pn];function En(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let xn={};const _n=i();_n.Sentry&&_n.Sentry.Integrations&&(xn=_n.Sentry.Integrations);const $n=Object.assign(Object.assign(Object.assign({},xn),ae),On);return t.BrowserClient=jn,t.Hub=qt,t.Integrations=$n,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=ie,t.Scope=Tt,t.Transports=Ae,t.addBreadcrumb=function(t){Jt("addBreadcrumb",t)},t.addGlobalEventProcessor=Rt,t.captureEvent=function(t){return Jt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}const r="string"!=typeof e?{captureContext:e}:void 0;return Jt("captureMessage",t,"string"==typeof e?e:void 0,Object.assign({originalException:t,syntheticException:n},r))},t.close=function(t){const e=At().getClient();return e?e.close(t):vt(!1)},t.configureScope=function(t){Jt("configureScope",t)},t.defaultIntegrations=wn,t.eventFromException=_e,t.eventFromMessage=$e,t.flush=function(t){const e=At().getClient();return e?e.flush(t):vt(!1)},t.forceLoad=function(){},t.getCurrentHub=At,t.getHubFromCarrier=Ft,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=wn),void 0===t.release){const e=i();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&k.enable();const n=At(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}(jn,t),t.autoSessionTracking&&function(){if(void 0===i().document)return;const t=At();t.captureSession&&(En(t),Z("history",({from:t,to:e})=>{void 0!==t&&t!==e&&En(At())}))}()},t.injectReportDialog=He,t.lastEventId=function(){return At().lastEventId()},t.makeMain=Lt,t.onLoad=function(t){t()},t.setContext=function(t,e){Jt("setContext",t,e)},t.setExtra=function(t,e){Jt("setExtra",t,e)},t.setExtras=function(t){Jt("setExtras",t)},t.setTag=function(t,e){Jt("setTag",t,e)},t.setTags=function(t){Jt("setTags",t)},t.setUser=function(t){Jt("setUser",t)},t.showReportDialog=function(t={}){const e=At(),n=e.getScope();n&&(t.user=Object.assign(Object.assign({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());const r=e.getClient();r&&r.showReportDialog(t)},t.startTransaction=function(t,e){return Jt("startTransaction",Object.assign({},t),e)},t.withScope=Pt,t.wrap=function(t){return Pe(t)()},t}({});
1
+ /*! @sentry/browser 6.17.2 (37b1213) | https://github.com/getsentry/sentry-javascript */
2
+ var Sentry=function(t){var e;(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";const n=["fatal","error","warning","log","info","debug","critical"];const r={};function i(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}const s=Object.prototype.toString;function o(t){switch(s.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function c(t,e){return s.call(t)===`[object ${e}]`}function u(t){return c(t,"ErrorEvent")}function a(t){return c(t,"DOMError")}function h(t){return c(t,"String")}function f(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return c(t,"Object")}function d(t){return"undefined"!=typeof Event&&y(t,Event)}function p(t){return"undefined"!=typeof Element&&y(t,Element)}function b(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function y(t,e){try{return t instanceof e}catch(t){return!1}}function m(t,e){try{let n=t;const r=5,i=80,s=[];let o=0,c=0;const u=" > ",a=u.length;let h;for(;n&&o++<r&&!("html"===(h=v(n,e))||o>1&&c+s.length*a+h.length>=i);)s.push(h),c+=h.length,n=n.parentNode;return s.reverse().join(u)}catch(t){return"<unknown>"}}function v(t,e){const n=t,r=[];let i,s,o,c,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const a=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(a&&a.length)a.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),(i=n.className)&&h(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["type","name","title","alt"];for(u=0;u<f.length;u++)o=f[u],(c=n.getAttribute(o))&&r.push(`[${o}="${c}"]`);return r.join("")}const g=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});class O extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,g(this,new.target.prototype)}}const j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function w(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&i?`:${i}`:""}`+`@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function E(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function x(t){const e="string"==typeof t?function(t){const e=j.exec(t);if(!e)throw new O(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",s,o="",c]=e.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return E({host:s,pass:i,path:u,projectId:a,port:o,protocol:n,publicKey:r})}(t):E(t);return e}const _=i(),$="Sentry Logger ";function S(t){const e=i();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});const s=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),s}_.__SENTRY__=_.__SENTRY__||{};const k=_.__SENTRY__.logger||(_.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&S(()=>{_.console.log(`${$}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&S(()=>{_.console.warn(`${$}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&S(()=>{_.console.error(`${$}[Error]: ${t.join(" ")}`)})}});const T="<anonymous>";function D(t){try{return t&&"function"==typeof t&&t.name||T}catch(t){return T}}function R(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function N(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function I(t,e){return!!h(t)&&(c(e,"RegExp")?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function M(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{C(i,r)}catch(t){}t[e]=i}function q(t,e,n){Object.defineProperty(t,e,{value:n})}function C(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,q(t,"__sentry_original__",e)}function L(t){return t.__sentry_original__}function A(t){if(o(t)){const e=t,n={message:e.message,name:e.name,stack:e.stack};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}if(d(t)){const e=t,n={};n.type=e.type;try{n.target=p(e.target)?m(e.target):Object.prototype.toString.call(e.target)}catch(t){n.target="<unknown>"}try{n.currentTarget=p(e.currentTarget)?m(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){n.currentTarget="<unknown>"}"undefined"!=typeof CustomEvent&&y(t,CustomEvent)&&(n.detail=e.detail);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}return t}function U(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function F(t,e=3,n=102400){const r=P(t,e);return U(r)>n?F(t,e-1,n):r}function B(t,e){return"domain"===e&&t&&"object"==typeof t&&t.i?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":l(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${D(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:t;var n}function J(t,e,n=1/0,r=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){if(0===n)return function(t){if("string"==typeof t)return t;const e=Object.prototype.toString.call(t);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=B(t);return f(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const i=B(e,t);if(f(i))return i;const s=A(e),o=Array.isArray(e)?[]:{};if(r[0](e))return"[Circular ~]";for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(o[t]=J(t,s[t],n-1,r));return r[1](e),o}function P(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>J(t,n,e)))}catch(t){return"**non-serializable**"}}function H(t,e=40){const n=Object.keys(A(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return R(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:R(r,e)}return""}function X(t){if(l(t)){const e=t,n={};for(const t of Object.keys(e))void 0!==e[t]&&(n[t]=X(e[t]));return n}return Array.isArray(t)?t.map(X):t}function W(){if(!("fetch"in i()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function z(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function K(){if(!W())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const G=i(),V={},Q={};function Y(t){if(!Q[t])switch(Q[t]=!0,t){case"console":!function(){if(!("console"in G))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in G.console&&M(G.console,t,function(e){return function(...n){tt("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,G.console,n)}})})}();break;case"dom":!function(){if(!("document"in G))return;const t=tt.bind(null,"dom"),e=ct(t,!0);G.document.addEventListener("click",e,!1),G.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=G[e]&&G[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=ct(t);o.handler=r,e.call(this,n,r,i)}o.refCount+=1}catch(t){}return e.call(this,n,r,i)}}),M(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[e];s&&(s.refCount-=1,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in G))return;const t=XMLHttpRequest.prototype;M(t,"open",function(t){return function(...e){const n=this,r=e[1],i=n.__sentry_xhr__={method:h(e[0])?e[0].toUpperCase():e[0],url:e[1]};h(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}tt("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?M(n,"onreadystatechange",function(t){return function(...e){return s(),t.apply(n,e)}}):n.addEventListener("readystatechange",s),t.apply(n,e)}}),M(t,"send",function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),tt("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}})}();break;case"fetch":!function(){if(!function(){if(!W())return!1;const t=i();if(z(t.fetch))return!0;let e=!1;const n=t.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(e=z(t.contentWindow.fetch)),n.head.removeChild(t)}catch(t){}return e}())return;M(G,"fetch",function(t){return function(...e){const n={args:e,fetchData:{method:et(e),url:nt(e)},startTimestamp:Date.now()};return tt("fetch",Object.assign({},n)),t.apply(G,e).then(t=>(tt("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),response:t})),t),t=>{throw tt("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(!function(){const t=i(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=G.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=rt,e=String(n);rt=e,tt("history",{from:t,to:e})}return t.apply(this,e)}}G.onpopstate=function(...e){const n=G.location.href,r=rt;if(rt=n,tt("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},M(G.history,"pushState",e),M(G.history,"replaceState",e)}();break;case"error":ut=G.onerror,G.onerror=function(t,e,n,r,i){return tt("error",{column:r,error:i,line:n,msg:t,url:e}),!!ut&&ut.apply(this,arguments)};break;case"unhandledrejection":at=G.onunhandledrejection,G.onunhandledrejection=function(t){return tt("unhandledrejection",t),!at||at.apply(this,arguments)};break;default:k.warn("unknown instrumentation type:",t)}}function Z(t,e){V[t]=V[t]||[],V[t].push(e),Y(t)}function tt(t,e){if(t&&V[t])for(const n of V[t]||[])try{n(e)}catch(t){0}}function et(t=[]){return"Request"in G&&y(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function nt(t=[]){return"string"==typeof t[0]?t[0]:"Request"in G&&y(t[0],Request)?t[0].url:String(t[0])}let rt;const it=1e3;let st,ot;function ct(t,e=!1){return n=>{if(!n||ot===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;void 0===st?(t({event:n,name:r,global:e}),ot=n):function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(ot,n)&&(t({event:n,name:r,global:e}),ot=n),clearTimeout(st),st=G.setTimeout(()=>{st=void 0},it)}}let ut=null;let at=null;function ht(){const t=i(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=t=>{let e=t.toString(16);for(;e.length<4;)e=`0${e}`;return e};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function ft(t){if(!t)return{};const e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function lt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function dt(t){const{message:e,event_id:n}=t;if(e)return e;const r=lt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function pt(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function bt(t,e){const n=lt(t);if(!n)return;const r=n.mechanism;if(n.mechanism=Object.assign(Object.assign(Object.assign({},{type:"generic",handled:!0}),r),e),e&&"data"in e){const t=Object.assign(Object.assign({},r&&r.data),e.data);n.mechanism.data=t}}const yt=6e4;function mt(t){if(t&&t.__sentry_captured__)return!0;try{q(t,"__sentry_captured__",!0)}catch(t){}return!1}function vt(t){return new Ot(e=>{e(t)})}function gt(t){return new Ot((e,n)=>{n(t)})}class Ot{constructor(t){this.s=0,this.o=[],this.u=(t=>{this.h(1,t)}),this.l=(t=>{this.h(2,t)}),this.h=((t,e)=>{0===this.s&&(b(e)?e.then(this.u,this.l):(this.s=t,this.p=e,this.m()))}),this.m=(()=>{if(0===this.s)return;const t=this.o.slice();this.o=[],t.forEach(t=>{t[0]||(1===this.s&&t[1](this.p),2===this.s&&t[2](this.p),t[0]=!0)})});try{t(this.u,this.l)}catch(t){this.l(t)}}then(t,e){return new Ot((n,r)=>{this.o.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.m()})}catch(t){return this.then(t=>t,t)}finally(t){return new Ot((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}}function jt(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return gt(new O("Not adding Promise due to buffer limit reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new Ot((n,r)=>{let i=e.length;if(!i)return n(!0);const s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{vt(t).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}function wt(e){return"warn"===e?t.Severity.Warning:function(t){return-1!==n.indexOf(t)}(e)?e:t.Severity.Log}const Et={nowSeconds:()=>Date.now()/1e3};const xt=function(){const{performance:t}=i();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),_t=void 0===xt?Et:{nowSeconds:()=>(xt.timeOrigin+xt.now())/1e3},$t=Et.nowSeconds.bind(Et),St=_t.nowSeconds.bind(_t),kt=((()=>{const{performance:t}=i();if(!t||!t.now)return;const e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,s=r<36e5,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+e-n):36e5;(s||c<36e5)&&(r<=c&&t.timeOrigin)})(),100);class Tt{constructor(){this.v=!1,this.g=[],this.O=[],this.j=[],this._={},this.S={},this.k={},this.T={},this.D={}}static clone(t){const e=new Tt;return t&&(e.j=[...t.j],e.S=Object.assign({},t.S),e.k=Object.assign({},t.k),e.T=Object.assign({},t.T),e._=t._,e.R=t.R,e.N=t.N,e.I=t.I,e.M=t.M,e.q=t.q,e.O=[...t.O],e.C=t.C),e}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this.O.push(t),this}setUser(t){return this._=t||{},this.I&&this.I.update({user:t}),this.L(),this}getUser(){return this._}getRequestSession(){return this.C}setRequestSession(t){return this.C=t,this}setTags(t){return this.S=Object.assign(Object.assign({},this.S),t),this.L(),this}setTag(t,e){return this.S=Object.assign(Object.assign({},this.S),{[t]:e}),this.L(),this}setExtras(t){return this.k=Object.assign(Object.assign({},this.k),t),this.L(),this}setExtra(t,e){return this.k=Object.assign(Object.assign({},this.k),{[t]:e}),this.L(),this}setFingerprint(t){return this.q=t,this.L(),this}setLevel(t){return this.R=t,this.L(),this}setTransactionName(t){return this.M=t,this.L(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,e){return null===e?delete this.T[t]:this.T=Object.assign(Object.assign({},this.T),{[t]:e}),this.L(),this}setSpan(t){return this.N=t,this.L(),this}getSpan(){return this.N}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.I=t:delete this.I,this.L(),this}getSession(){return this.I}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof Tt?e:this}return t instanceof Tt?(this.S=Object.assign(Object.assign({},this.S),t.S),this.k=Object.assign(Object.assign({},this.k),t.k),this.T=Object.assign(Object.assign({},this.T),t.T),t._&&Object.keys(t._).length&&(this._=t._),t.R&&(this.R=t.R),t.q&&(this.q=t.q),t.C&&(this.C=t.C)):l(t)&&(t=t,this.S=Object.assign(Object.assign({},this.S),t.tags),this.k=Object.assign(Object.assign({},this.k),t.extra),this.T=Object.assign(Object.assign({},this.T),t.contexts),t.user&&(this._=t.user),t.level&&(this.R=t.level),t.fingerprint&&(this.q=t.fingerprint),t.requestSession&&(this.C=t.requestSession)),this}clear(){return this.j=[],this.S={},this.k={},this._={},this.T={},this.R=void 0,this.M=void 0,this.q=void 0,this.C=void 0,this.N=void 0,this.I=void 0,this.L(),this}addBreadcrumb(t,e){const n="number"==typeof e?Math.min(e,kt):kt;if(n<=0)return this;const r=Object.assign({timestamp:$t()},t);return this.j=[...this.j,r].slice(-n),this.L(),this}clearBreadcrumbs(){return this.j=[],this.L(),this}applyToEvent(t,e){if(this.k&&Object.keys(this.k).length&&(t.extra=Object.assign(Object.assign({},this.k),t.extra)),this.S&&Object.keys(this.S).length&&(t.tags=Object.assign(Object.assign({},this.S),t.tags)),this._&&Object.keys(this._).length&&(t.user=Object.assign(Object.assign({},this._),t.user)),this.T&&Object.keys(this.T).length&&(t.contexts=Object.assign(Object.assign({},this.T),t.contexts)),this.R&&(t.level=this.R),this.M&&(t.transaction=this.M),this.N){t.contexts=Object.assign({trace:this.N.getTraceContext()},t.contexts);const e=this.N.transaction&&this.N.transaction.name;e&&(t.tags=Object.assign({transaction:e},t.tags))}return this.A(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.j],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.U([...Dt(),...this.O],t,e)}setSDKProcessingMetadata(t){return this.D=Object.assign(Object.assign({},this.D),t),this}U(t,e,n,r=0){return new Ot((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const c=o(Object.assign({},e),n);b(c)?c.then(e=>this.U(t,e,n,r+1).then(i)).then(null,s):this.U(t,c,n,r+1).then(i).then(null,s)}})}L(){this.v||(this.v=!0,this.g.forEach(t=>{t(this)}),this.v=!1)}A(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.q&&(t.fingerprint=t.fingerprint.concat(this.q)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Dt(){const t=i();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Rt(t){Dt().push(t)}class Nt{constructor(t){this.errors=0,this.sid=ht(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;const e=St();this.timestamp=e,this.started=e,t&&this.update(t)}update(t={}){if(t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||St(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:ht()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{const t=this.timestamp-this.started;this.duration=t>=0?t:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)}close(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()}toJSON(){return X({sid:`${this.sid}`,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?`${this.did}`:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})}}const It=4,Mt=100;class qt{constructor(t,e=new Tt,n=It){this.F=n,this.B=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this.F<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Tt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,e){const n=this.J=ht();let r=e;if(!e){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.P("captureException",t,Object.assign(Object.assign({},r),{event_id:n})),n}captureMessage(t,e,n){const r=this.J=ht();let i=n;if(!n){let e;try{throw new Error(t)}catch(t){e=t}i={originalException:t,syntheticException:e}}return this.P("captureMessage",t,e,Object.assign(Object.assign({},i),{event_id:r})),r}captureEvent(t,e){const n=ht();return"transaction"!==t.type&&(this.J=n),this.P("captureEvent",t,Object.assign(Object.assign({},e),{event_id:n})),n}lastEventId(){return this.J}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Mt}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o=$t(),c=Object.assign({timestamp:o},t),u=i?S(()=>i(c,e)):c;null!==u&&n.addBreadcrumb(u,s)}setUser(t){const e=this.getScope();e&&e.setUser(t)}setTags(t){const e=this.getScope();e&&e.setTags(t)}setExtras(t){const e=this.getScope();e&&e.setExtras(t)}setTag(t,e){const n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){const n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){const n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){const e=Lt(this);try{t(this)}finally{Lt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return k.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startSpan(t){return this.H("startSpan",t)}startTransaction(t,e){return this.H("startTransaction",t,e)}traceHeaders(){return this.H("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.X()}endSession(){const t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this.X(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{},o=i(),{userAgent:c}=o.navigator||{},u=new Nt(Object.assign(Object.assign(Object.assign({release:r,environment:s},e&&{user:e.getUser()}),c&&{userAgent:c}),t));if(e){const t=e.getSession&&e.getSession();t&&"ok"===t.status&&t.update({status:"exited"}),this.endSession(),e.setSession(u)}return u}X(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession&&t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}P(t,...e){const{scope:n,client:r}=this.getStackTop();r&&r[t]&&r[t](...e,n)}H(t,...e){const n=Ct().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);k.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ct(){const t=i();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Lt(t){const e=Ct(),n=Ft(e);return Bt(e,t),n}function At(){const t=Ct();return Ut(t)&&!Ft(t).isOlderThan(It)||Bt(t,new qt),Ft(t)}function Ut(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ft(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new qt,t.__SENTRY__.hub)}function Bt(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Jt(t,...e){const n=At();if(n&&n[t])return n[t](...e);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t,e){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Jt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Pt(t){Jt("withScope",t)}const Ht="7";function Xt(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Wt(t,e){return`${Xt(t)}${t.projectId}/${e}/`}function zt(t){return e={sentry_key:t.publicKey,sentry_version:Ht},Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");var e}function Kt(t){return`${function(t){return Wt(t,"store")}(t)}?${zt(t)}`}function Gt(t,e){return e||`${function(t){return Wt(t,"envelope")}(t)}?${zt(t)}`}const Vt=[];function Qt(t){return t.reduce((t,e)=>(t.every(t=>e.name!==t.name)&&t.push(e),t),[])}function Yt(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[...Qt(e)];Array.isArray(n)?r=[...r.filter(t=>n.every(e=>e.name!==t.name)),...Qt(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);const i=r.map(t=>t.name);return-1!==i.indexOf("Debug")&&r.push(...r.splice(i.indexOf("Debug"),1)),r}(t).forEach(t=>{e[t.name]=t,function(t){-1===Vt.indexOf(t.name)&&(t.setupOnce(Rt,At),Vt.push(t.name),k.log(`Integration installed: ${t.name}`))}(t)}),q(e,"initialized",!0),e}const Zt="Not capturing exception because it's already been captured.";class te{constructor(t,e){this.W={},this.K=0,this.G=new t(e),this.V=e,e.dsn&&(this.Y=x(e.dsn))}captureException(t,e,n){if(mt(t))return void k.log(Zt);let r=e&&e.event_id;return this.Z(this.tt().eventFromException(t,e).then(t=>this.et(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const s=f(t)?this.tt().eventFromMessage(String(t),e,n):this.tt().eventFromException(t,n);return this.Z(s.then(t=>this.et(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&mt(e.originalException))return void k.log(Zt);let r=e&&e.event_id;return this.Z(this.et(t,e,n).then(t=>{r=t})),r}captureSession(t){this.nt()&&("string"!=typeof t.release||(this.rt(t),t.update({init:!1})))}getDsn(){return this.Y}getOptions(){return this.V}getTransport(){return this.tt().getTransport()}flush(t){return this.it(t).then(e=>this.getTransport().close(t).then(t=>e&&t))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}setupIntegrations(){this.nt()&&!this.W.initialized&&(this.W=Yt(this.V))}getIntegration(t){try{return this.W[t.id]||null}catch(e){return k.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}st(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(t.update(Object.assign(Object.assign({},n&&{status:"crashed"}),{errors:t.errors||Number(r||n)})),this.captureSession(t))}rt(t){this.tt().sendSession(t)}it(t){return new Ot(e=>{let n=0;const r=setInterval(()=>{0==this.K?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}tt(){return this.G}nt(){return!1!==this.getOptions().enabled&&void 0!==this.Y}ot(t,e,n){const{normalizeDepth:r=3}=this.getOptions(),i=Object.assign(Object.assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:ht()),timestamp:t.timestamp||$t()});this.ct(i),this.ut(i);let s=e;n&&n.captureContext&&(s=Tt.clone(s).update(n.captureContext));let o=vt(i);return s&&(o=s.applyToEvent(i,n)),o.then(t=>"number"==typeof r&&r>0?this.at(t,r):t)}at(t,e){if(!t)return null;const n=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>Object.assign(Object.assign({},t),t.data&&{data:P(t.data,e)}))}),t.user&&{user:P(t.user,e)}),t.contexts&&{contexts:P(t.contexts,e)}),t.extra&&{extra:P(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),n}ct(t){const e=this.getOptions(),{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=R(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=R(o.value,s));const c=t.request;c&&c.url&&(c.url=R(c.url,s))}ut(t){const e=Object.keys(this.W);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}ht(t){this.tt().sendEvent(t)}et(t,e,n){return this.ft(t,e,n).then(t=>t.event_id,t=>{k.error(t)})}ft(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions(),s=this.getTransport();function o(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this.nt())return gt(new O("SDK not enabled, will not capture event."));const c="transaction"===t.type;return!c&&"number"==typeof i&&Math.random()>i?(o("sample_rate","event"),gt(new O(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this.ot(t,n,e).then(n=>{if(null===n)throw o("event_processor",t.type||"event"),new O("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||c||!r?n:function(t){const e="`beforeSend` method has to return `null` or a valid event.";if(b(t))return t.then(t=>{if(!l(t)&&null!==t)throw new O(e);return t},t=>{throw new O(`beforeSend rejected with ${t}`)});if(!l(t)&&null!==t)throw new O(e);return t}(r(n,e))}).then(e=>{if(null===e)throw o("before_send",t.type||"event"),new O("`beforeSend` returned `null`, will not send event.");const r=n&&n.getSession&&n.getSession();return!c&&r&&this.st(r,e),this.ht(e),e}).then(null,t=>{if(t instanceof O)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new O(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}Z(t){this.K+=1,t.then(t=>(this.K-=1,t),t=>(this.K-=1,t))}}class ee{sendEvent(t){return vt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})}close(t){return vt(!0)}}class ne{constructor(t){this.V=t,this.V.dsn||k.warn("No DSN provided, backend will not do anything."),this.lt=this.dt()}eventFromException(t,e){throw new O("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new O("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.lt.sendEvent(t).then(null,t=>{0})}sendSession(t){this.lt.sendSession&&this.lt.sendSession(t).then(null,t=>{0})}getTransport(){return this.lt}dt(){return new ee}}function re(t){if(!t.metadata||!t.metadata.sdk)return;const{name:e,version:n}=t.metadata.sdk;return{name:e,version:n}}const ie="6.17.2";let se;class oe{constructor(){this.name=oe.id}setupOnce(){se=Function.prototype.toString,Function.prototype.toString=function(...t){const e=L(this)||this;return se.apply(e,t)}}}oe.id="FunctionToString";const ce=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ue{constructor(t={}){this.V=t,this.name=ue.id}setupOnce(){Rt(t=>{const e=At();if(!e)return t;const n=e.getIntegration(ue);if(n){const r=e.getClient(),i=r?r.getOptions():{},s="function"==typeof n._mergeOptions?n._mergeOptions(i):{};return"function"!=typeof n.pt?t:n.pt(t,s)?null:t}return t})}pt(t,e){return!!this.bt(t,e)||(!!this.yt(t,e)||(!!this.vt(t,e)||!this.gt(t,e)))}bt(t,e){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}yt(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Ot(t).some(t=>e.ignoreErrors.some(e=>I(t,e)))}vt(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;const n=this.jt(t);return!!n&&e.denyUrls.some(t=>I(n,t))}gt(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;const n=this.jt(t);return!n||e.allowUrls.some(t=>I(n,t))}_mergeOptions(t={}){return{allowUrls:[...this.V.whitelistUrls||[],...this.V.allowUrls||[],...t.whitelistUrls||[],...t.allowUrls||[]],denyUrls:[...this.V.blacklistUrls||[],...this.V.denyUrls||[],...t.blacklistUrls||[],...t.denyUrls||[]],ignoreErrors:[...this.V.ignoreErrors||[],...t.ignoreErrors||[],...ce],ignoreInternal:void 0===this.V.ignoreInternal||this.V.ignoreInternal}}Ot(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(t){return[]}return[]}wt(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}jt(t){try{if(t.stacktrace)return this.wt(t.stacktrace.frames);let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?this.wt(e):null}catch(t){return null}}}ue.id="InboundFilters";var ae=Object.freeze({__proto__:null,FunctionToString:oe,InboundFilters:ue});const he="?",fe=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,le=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,de=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,be=/\((\S*)(?::(\d+))(?::(\d+))\)/,ye=/Minified React error #\d+;/i;function me(t){let e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:ye.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;const e=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=e.split("\n"),s=[];let o;for(let t=0;t<i.length;t+=2){let e=null;(o=n.exec(i[t]))?e={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(i[t]))&&(e={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),e&&(!e.func&&e.line&&(e.func=he),s.push(e))}if(!s.length)return null;return{message:Oe(t),name:t.name,stack:s}}(t))return ge(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;const e=[],n=t.stack.split("\n");let r,i,s,o;for(let c=0;c<n.length;++c){if(s=fe.exec(n[c])){const t=s[2]&&0===s[2].indexOf("native");(r=s[2]&&0===s[2].indexOf("eval"))&&(i=be.exec(s[2]))&&(s[2]=i[1],s[3]=i[2],s[4]=i[3]);let e=s[2]&&0===s[2].indexOf("address at ")?s[2].substr("address at ".length):s[2],n=s[1]||he;[n,e]=ve(n,e),o={url:e,func:n,args:t?[s[2]]:[],line:s[3]?+s[3]:null,column:s[4]?+s[4]:null}}else if(s=de.exec(n[c]))o={url:s[2],func:s[1]||he,args:[],line:+s[3],column:s[4]?+s[4]:null};else{if(!(s=le.exec(n[c])))continue;{(r=s[3]&&s[3].indexOf(" > eval")>-1)&&(i=pe.exec(s[3]))?(s[1]=s[1]||"eval",s[3]=i[1],s[4]=i[2],s[5]=""):0!==c||s[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1);let n=s[3],u=s[1]||he;[u,n]=ve(u,n),o={url:n,func:u,args:s[2]?s[2].split(","):[],line:s[4]?+s[4]:null,column:s[5]?+s[5]:null}}}!o.func&&o.line&&(o.func=he),e.push(o)}if(!e.length)return null;return{message:Oe(t),name:t.name,stack:e}}(t))return ge(e,n)}catch(t){}return{message:Oe(t),name:t&&t.name,stack:[],failed:!0}}const ve=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:he,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ge(t,e){try{return Object.assign(Object.assign({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function Oe(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}const je=50;function we(t){const e=xe(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ee(t){return{exception:{values:[we(t)]}}}function xe(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,je).map(t=>({colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line})).reverse()}function _e(e,n,r){const i=Se(n,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return bt(i),i.level=t.Severity.Error,r&&r.event_id&&(i.event_id=r.event_id),vt(i)}function $e(e,n,r=t.Severity.Info,i){const s=ke(n,i&&i.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return s.level=r,i&&i.event_id&&(s.event_id=i.event_id),vt(s)}function Se(t,e,n={}){let r;if(u(t)&&t.error){return r=Ee(me(t=t.error))}if(a(t)||c(t,"DOMException")){const i=t;if("stack"in t)r=Ee(me(t));else{const t=i.name||(a(i)?"DOMError":"DOMException"),s=i.message?`${t}: ${i.message}`:t;pt(r=ke(s,e,n),s)}return"code"in i&&(r.tags=Object.assign(Object.assign({},r.tags),{"DOMException.code":`${i.code}`})),r}if(o(t))return r=Ee(me(t));if(l(t)||d(t)){return bt(r=function(t,e,n){const r={exception:{values:[{type:d(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${H(t)}`}]},extra:{__serialized__:F(t)}};if(e){const t=xe(me(e).stack);r.stacktrace={frames:t}}return r}(t,e,n.isRejection),{synthetic:!0}),r}return pt(r=ke(t,e,n),`${t}`,void 0),bt(r,{synthetic:!0}),r}function ke(t,e,n={}){const r={message:t};if(n.attachStacktrace&&e){const t=xe(me(e).stack);r.stacktrace={frames:t}}return r}const Te=i();let De;function Re(){if(De)return De;if(z(Te.fetch))return De=Te.fetch.bind(Te);const t=Te.document;let e=Te.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){0}return De=e.bind(Te)}function Ne(t,e){if("[object Navigator]"===Object.prototype.toString.call(Te&&Te.navigator)&&"function"==typeof Te.navigator.sendBeacon){return Te.navigator.sendBeacon.bind(Te.navigator)(t,e)}if(W()){const n=Re();n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,t=>{console.error(t)})}else;}function Ie(t){return"event"===t?"error":t}const Me=i();class qe{constructor(t){var e,n,r;this.options=t,this.Et=jt(30),this.xt={},this._t={},this.$t=(e=t.dsn,n=t.St,r=t.tunnel,{initDsn:e,metadata:n||{},dsn:x(e),tunnel:r}),this.url=Kt(this.$t.dsn),this.options.sendClientReports&&Me.document&&Me.document.addEventListener("visibilitychange",()=>{"hidden"===Me.document.visibilityState&&this.kt()})}sendEvent(t){return this.Tt(function(t,e){const n=re(e),r=t.type||"event",i="transaction"===r||!!e.tunnel,{transactionSampling:s}=t.sdkProcessingMetadata||{},{method:o,rate:c}=s||{};let u;!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0),delete t.sdkProcessingMetadata;try{u=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{u=JSON.stringify(P(t))}catch(t){const e=t;u=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:e.message,stack:e.stack}})}}const a={body:u,type:r,url:i?Gt(e.dsn,e.tunnel):Kt(e.dsn)};if(i){const i=`${JSON.stringify(Object.assign(Object.assign({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:w(e.dsn)}))}\n${JSON.stringify({type:r,sample_rates:[{id:o,rate:c}]})}\n${a.body}`;a.body=i}return a}(t,this.$t),t)}sendSession(t){return this.Tt(function(t,e){const n=re(e),r="aggregates"in t?"sessions":"session";return{body:`${JSON.stringify(Object.assign(Object.assign({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:w(e.dsn)}))}\n${JSON.stringify({type:r})}\n${JSON.stringify(t)}`,type:r,url:Gt(e.dsn,e.tunnel)}}(t,this.$t),t)}close(t){return this.Et.drain(t)}recordLostEvent(t,e){var n;if(!this.options.sendClientReports)return;const r=`${Ie(e)}:${t}`;k.log(`Adding outcome: ${r}`),this._t[r]=(null!=(n=this._t[r])?n:0)+1}kt(){if(!this.options.sendClientReports)return;const t=this._t;if(this._t={},!Object.keys(t).length)return void k.log("No outcomes to flush");k.log(`Flushing outcomes:\n${JSON.stringify(t,null,2)}`);const e=Gt(this.$t.dsn,this.$t.tunnel),n=`${JSON.stringify(Object.assign({},this.$t.tunnel&&{dsn:w(this.$t.dsn)}))}\n${JSON.stringify({type:"client_report"})}\n${JSON.stringify({timestamp:$t(),discarded_events:Object.keys(t).map(e=>{const[n,r]=e.split(":");return{reason:r,category:n,quantity:t[e]}})})}`;try{Ne(e,n)}catch(t){k.error(t)}}Dt({requestType:t,response:e,headers:n,resolve:r,reject:i}){const s=(o=e.status)>=200&&o<300?"success":429===o?"rate_limit":o>=400&&o<500?"invalid":o>=500?"failed":"unknown";var o;this.Rt(n);"success"!==s?i(e):r({status:s})}Nt(t){const e=Ie(t);return this.xt[e]||this.xt.all}It(t){return this.Nt(t)>new Date(Date.now())}Rt(t){const e=Date.now(),n=t["x-sentry-rate-limits"],r=t["retry-after"];if(n){for(const t of n.trim().split(",")){const n=t.split(":",2),r=parseInt(n[0],10),i=1e3*(isNaN(r)?60:r);for(const t of n[1].split(";"))this.xt[t||"all"]=new Date(e+i)}return!0}return!!r&&(this.xt.all=new Date(e+function(t,e){if(!e)return yt;const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?yt:r-t}(e,r)),!0)}}class Ce extends qe{constructor(t,e=Re()){super(t),this.Mt=e}Tt(t,e){if(this.It(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.Nt(t.type)} due to too many requests.`,status:429});const n={body:t.body,method:"POST",referrerPolicy:K()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this.Et.add(()=>new Ot((e,r)=>{this.Mt(t.url,n).then(n=>{const i={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};this.Dt({requestType:t.type,response:n,headers:i,resolve:e,reject:r})}).catch(r)})).then(void 0,e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e})}}class Le extends qe{Tt(t,e){return this.It(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.Nt(t.type)} due to too many requests.`,status:429})):this.Et.add(()=>new Ot((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=(()=>{if(4===r.readyState){const i={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.Dt({requestType:t.type,response:r,headers:i,resolve:e,reject:n})}}),r.open("POST",t.url);for(const t in this.options.headers)Object.prototype.hasOwnProperty.call(this.options.headers,t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)})).then(void 0,e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e})}}var Ae=Object.freeze({__proto__:null,BaseTransport:qe,FetchTransport:Ce,XHRTransport:Le});class Ue extends ne{eventFromException(t,e){return _e(this.V,t,e)}eventFromMessage(e,n=t.Severity.Info,r){return $e(this.V,e,n,r)}dt(){if(!this.V.dsn)return super.dt();const t=Object.assign(Object.assign({},this.V.transportOptions),{dsn:this.V.dsn,tunnel:this.V.tunnel,sendClientReports:this.V.sendClientReports,St:this.V.St});return this.V.transport?new this.V.transport(t):W()?new Ce(t):new Le(t)}}const Fe=i();let Be=0;function Je(){return Be>0}function Pe(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(L(t))return t}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map(t=>Pe(t,e));return t.apply(this,i)}catch(t){throw Be+=1,setTimeout(()=>{Be-=1}),Pt(n=>{n.addEventProcessor(t=>(e.mechanism&&(pt(t,void 0,void 0),bt(t,e.mechanism)),t.extra=Object.assign(Object.assign({},t.extra),{arguments:r}),t)),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}C(sentryWrapped,t),q(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function He(t={}){if(!Fe.document)return;if(!t.eventId)return void 0;if(!t.dsn)return void 0;const e=Fe.document.createElement("script");e.async=!0,e.src=function(t,e){const n=x(t),r=`${Xt(n)}embed/error-page/`;let i=`dsn=${w(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){if(!e.user)continue;e.user.name&&(i+=`&name=${encodeURIComponent(e.user.name)}`),e.user.email&&(i+=`&email=${encodeURIComponent(e.user.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${i}`}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);const n=Fe.document.head||Fe.document.body;n&&n.appendChild(e)}class Xe{constructor(t){this.name=Xe.id,this.qt={onerror:We,onunhandledrejection:ze},this.V=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50;const t=this.V;for(const e in t){const n=this.qt[e];n&&t[e]&&(Ge(e),n(),this.qt[e]=void 0)}}}function We(){Z("error",t=>{const[e,n]=Qe();if(!e.getIntegration(Xe))return;const{msg:r,url:i,line:s,column:o,error:c}=t;Je()||c&&c.__sentry_own_request__||Ve(e,c,void 0===c&&h(r)?function(t,e,n,r){let i=u(t)?t.message:t,s="Error";const o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(s=o[1],i=o[2]);return Ke({exception:{values:[{type:s,value:i}]}},e,n,r)}(r,i,s,o):Ke(Se(c||r,void 0,{attachStacktrace:n,isRejection:!1}),i,s,o),"onerror")})}function ze(){Z("unhandledrejection",e=>{const[n,r]=Qe();if(!n.getIntegration(Xe))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}if(Je()||i&&i.__sentry_own_request__)return!0;const s=f(i)?function(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}(i):Se(i,void 0,{attachStacktrace:r,isRejection:!0});s.level=t.Severity.Error,Ve(n,i,s,"onunhandledrejection")})}function Ke(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],c=o[0]=o[0]||{},u=c.stacktrace=c.stacktrace||{},a=u.frames=u.frames||[],f=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=h(e)&&e.length>0?e:function(){const t=i();try{return t.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:f,filename:d,function:"?",in_app:!0,lineno:l}),t}function Ge(t){0}function Ve(t,e,n,r){bt(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Qe(){const t=At(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}Xe.id="GlobalHandlers";const Ye=["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"];class Ze{constructor(t){this.name=Ze.id,this.V=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=i();this.V.setTimeout&&M(t,"setTimeout",tn),this.V.setInterval&&M(t,"setInterval",tn),this.V.requestAnimationFrame&&M(t,"requestAnimationFrame",en),this.V.XMLHttpRequest&&"XMLHttpRequest"in t&&M(XMLHttpRequest.prototype,"send",nn);const e=this.V.eventTarget;if(e){(Array.isArray(e)?e:Ye).forEach(rn)}}}function tn(t){return function(...e){const n=e[0];return e[0]=Pe(n,{mechanism:{data:{function:D(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function en(t){return function(e){return t.call(this,Pe(e,{mechanism:{data:{function:"requestAnimationFrame",handler:D(t)},handled:!0,type:"instrument"}}))}}function nn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&M(n,t,function(e){const n={mechanism:{data:{function:t,handler:D(e)},handled:!0,type:"instrument"}},r=L(e);return r&&(n.mechanism.data.handler=D(r)),Pe(e,n)})}),t.apply(this,e)}}function rn(t){const e=i(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:D(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:D(r),target:t},handled:!0,type:"instrument"}}),i)}}),M(n,"removeEventListener",function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}}))}Ze.id="TryCatch";class sn{constructor(t){this.name=sn.id,this.V=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.V.sentry&&At().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:dt(t)},{event:t})}setupOnce(){this.V.console&&Z("console",on),this.V.dom&&Z("dom",function(t){return function(e){let n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?m(e.event.target,r):m(e.event,r)}catch(t){n="<unknown>"}if(0===n.length)return;At().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}}(this.V.dom)),this.V.xhr&&Z("xhr",cn),this.V.fetch&&Z("fetch",un),this.V.history&&Z("history",an)}}function on(t){const e={category:"console",data:{arguments:t.args,logger:"console"},level:wt(t.level),message:N(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${N(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}At().addBreadcrumb(e,{input:t.args,level:t.level})}function cn(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};At().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function un(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?At().addBreadcrumb({category:"fetch",data:e.fetchData,level:t.Severity.Error,type:"http"},{data:e.error,input:e.args}):At().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function an(t){const e=i();let n=t.from,r=t.to;const s=ft(e.location.href);let o=ft(n);const c=ft(r);o.path||(o=s),s.protocol===c.protocol&&s.host===c.host&&(r=c.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),At().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}sn.id="Breadcrumbs";const hn="cause",fn=5;class ln{constructor(t={}){this.name=ln.id,this.Ct=t.key||hn,this.Lt=t.limit||fn}setupOnce(){Rt((t,e)=>{const n=At().getIntegration(ln);return n?function(t,e,n,r){if(!(n.exception&&n.exception.values&&r&&y(r.originalException,Error)))return n;const i=function t(e,n,r,i=[]){if(!y(n[r],Error)||i.length+1>=e)return i;const s=me(n[r]);const o=we(s);return t(e,n[r],r,[o,...i])}(e,r.originalException,t);return n.exception.values=[...i,...n.exception.values],n}(n.Ct,n.Lt,t,e):t})}}ln.id="LinkedErrors";const dn=i();class pn{constructor(){this.name=pn.id}setupOnce(){Rt(t=>{if(At().getIntegration(pn)){if(!dn.navigator&&!dn.location&&!dn.document)return t;const e=t.request&&t.request.url||dn.location&&dn.location.href,{referrer:n}=dn.document||{},{userAgent:r}=dn.navigator||{},i=Object.assign(Object.assign(Object.assign({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=Object.assign(Object.assign({},e&&{url:e}),{headers:i});return Object.assign(Object.assign({},t),{request:s})}return t})}}pn.id="UserAgent";class bn{constructor(){this.name=bn.id}setupOnce(t,e){t(t=>{const n=e().getIntegration(bn);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!mn(t,e))return!1;if(!yn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=vn(e),r=vn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!mn(t,e))return!1;if(!yn(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n.At))return k.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n.At=t}return n.At=t}return t})}}function yn(t,e){let n=gn(t),r=gn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function mn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function vn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function gn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}bn.id="Dedupe";var On=Object.freeze({__proto__:null,GlobalHandlers:Xe,TryCatch:Ze,Breadcrumbs:sn,LinkedErrors:ln,UserAgent:pn,Dedupe:bn});class jn extends te{constructor(t={}){t.St=t.St||{},t.St.sdk=t.St.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:ie}],version:ie},super(Ue,t)}showReportDialog(t={}){i().document&&(this.nt()?He(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()})):k.error("Trying to call showReportDialog with Sentry Client disabled"))}ot(t,e,n){return t.platform=t.platform||"javascript",super.ot(t,e,n)}ht(t){const e=this.getIntegration(sn);e&&e.addSentryBreadcrumb(t),super.ht(t)}}const wn=[new ue,new oe,new Ze,new sn,new Xe,new ln,new bn,new pn];function En(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let xn={};const _n=i();_n.Sentry&&_n.Sentry.Integrations&&(xn=_n.Sentry.Integrations);const $n=Object.assign(Object.assign(Object.assign({},xn),ae),On);return t.BrowserClient=jn,t.Hub=qt,t.Integrations=$n,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=ie,t.Scope=Tt,t.Transports=Ae,t.addBreadcrumb=function(t){Jt("addBreadcrumb",t)},t.addGlobalEventProcessor=Rt,t.captureEvent=function(t){return Jt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}const r="string"!=typeof e?{captureContext:e}:void 0;return Jt("captureMessage",t,"string"==typeof e?e:void 0,Object.assign({originalException:t,syntheticException:n},r))},t.close=function(t){const e=At().getClient();return e?e.close(t):vt(!1)},t.configureScope=function(t){Jt("configureScope",t)},t.defaultIntegrations=wn,t.eventFromException=_e,t.eventFromMessage=$e,t.flush=function(t){const e=At().getClient();return e?e.flush(t):vt(!1)},t.forceLoad=function(){},t.getCurrentHub=At,t.getHubFromCarrier=Ft,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=wn),void 0===t.release){const e=i();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&k.enable();const n=At(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}(jn,t),t.autoSessionTracking&&function(){if(void 0===i().document)return;const t=At();t.captureSession&&(En(t),Z("history",({from:t,to:e})=>{void 0!==t&&t!==e&&En(At())}))}()},t.injectReportDialog=He,t.lastEventId=function(){return At().lastEventId()},t.makeMain=Lt,t.onLoad=function(t){t()},t.setContext=function(t,e){Jt("setContext",t,e)},t.setExtra=function(t,e){Jt("setExtra",t,e)},t.setExtras=function(t){Jt("setExtras",t)},t.setTag=function(t,e){Jt("setTag",t,e)},t.setTags=function(t){Jt("setTags",t)},t.setUser=function(t){Jt("setUser",t)},t.showReportDialog=function(t={}){const e=At(),n=e.getScope();n&&(t.user=Object.assign(Object.assign({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());const r=e.getClient();r&&r.showReportDialog(t)},t.startTransaction=function(t,e){return Jt("startTransaction",Object.assign({},t),e)},t.withScope=Pt,t.wrap=function(t){return Pe(t)()},t}({});
3
3
  //# sourceMappingURL=bundle.es6.min.js.map