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