gimmecodes.com
Open in
urlscan Pro
185.66.143.49
Public Scan
URL:
https://gimmecodes.com/browser.sentry-cdn.com/6.4.1/bundle.min.js
Submission: On August 20 via api from US — Scanned from GB
Submission: On August 20 via api from US — Scanned from GB
Form analysis
0 forms found in the DOMText Content
/*! @sentry/browser 6.4.1 (f9434ed) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u,s,c,a=function(){return(a=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function f(t){var n="function"==typeof Symbol&&t[Symbol.iterator],r=0;return n?n.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function h(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function v(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(h(arguments[n]));return t}function l(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function d(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function p(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function y(t){return"[object String]"===Object.prototype.toString.call(t)}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){return"undefined"!=typeof Event&&x(t,Event)}function g(t){return"undefined"!=typeof Element&&x(t,Element)}function E(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function x(t,n){try{return t instanceof n}catch(t){return!1}}function j(t){try{for(var n=t,r=[],i=0,e=0,o=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=k(n))||i>1&&e+r.length*o+u.length>=80);)r.push(u),e+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return"<unknown>"}}function k(t){var n,r,i,e,o,u=t,s=[];if(!u||!u.tagName)return"";if(s.push(u.tagName.toLowerCase()),u.id&&s.push("#"+u.id),(n=u.className)&&y(n))for(r=n.split(/\s+/),o=0;o<r.length;o++)s.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(e=u.getAttribute(i))&&s.push("["+i+'="'+e+'"]');return s.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(i||(i={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(e||(e={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(o||(o={})),(u=t.Severity||(t.Severity={})).Fatal="fatal",u.Error="error",u.Warning="warning",u.Log="log",u.Info="info",u.Debug="debug",u.Critical="critical",function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(s=t.Status||(t.Status={})).Unknown="unknown",s.Skipped="skipped",s.Success="success",s.RateLimit="rate_limit",s.Invalid="invalid",s.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(c||(c={}));var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var S=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,_(i,r.prototype),i}return r(n,t),n}(Error),O=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,D=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.host,i=n.path,e=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.publicKey+(t&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u},t.prototype.t=function(t){var n=O.exec(t);if(!n)throw new S("Invalid Dsn");var r=h(n.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,f="",v=r[5],l=v.split("/");if(l.length>1&&(f=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this.i({host:s,pass:u,path:f,projectId:v,port:a,protocol:i,publicKey:e})},t.prototype.i=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.o=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach(function(n){if(!t[n])throw new S("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new S("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new S("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new S("Invalid Dsn: Invalid port "+this.port)},t}();function T(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function R(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function I(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i<t.length;i++){var e=t[i];try{r.push(String(e))}catch(t){r.push("[value cannot be serialized]")}}return r.join(n)}function N(t,n){return!!y(t)&&(r=n,"[object RegExp]"===Object.prototype.toString.call(r)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n));var r}var M={};function C(){return T()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:M}function A(){var t=C(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function q(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",i=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+i}}function L(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function U(t){var n=C();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)});var e=t();return Object.keys(i).forEach(function(t){r[t]=i[t]}),e}function H(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function F(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}var P=6e4;var X=C(),B="Sentry Logger ",J=function(){function t(){this.u=!1}return t.prototype.disable=function(){this.u=!1},t.prototype.enable=function(){this.u=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&U(function(){X.console.log(B+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&U(function(){X.console.warn(B+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&U(function(){X.console.error(B+"[Error]: "+t.join(" "))})},t}();X.__SENTRY__=X.__SENTRY__||{};var W=X.__SENTRY__.logger||(X.__SENTRY__.logger=new J),$=function(){function t(){this.s="function"==typeof WeakSet,this.h=this.s?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.s)return!!this.h.has(t)||(this.h.add(t),!1);for(var n=0;n<this.h.length;n++){if(this.h[n]===t)return!0}return this.h.push(t),!1},t.prototype.unmemoize=function(t){if(this.s)this.h.delete(t);else for(var n=0;n<this.h.length;n++)if(this.h[n]===t){this.h.splice(n,1);break}},t}(),G="<anonymous>";function z(t){try{return t&&"function"==typeof t&&t.name||G}catch(t){return G}}function K(t,n,r){if(n in t){var i=t[n],e=r(i);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:i}})}catch(t){}t[n]=e}}function V(t){if(l(t)){var n=t,r={message:n.message,name:n.name,stack:n.stack};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}if(w(t)){var e=t,o={};o.type=e.type;try{o.target=g(e.target)?j(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=g(e.currentTarget)?j(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e);return o}return t}function Q(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function Y(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=nt(t,n);return Q(i)>r?Y(t,n-1,r):i}function Z(t,n){return"domain"===n&&t&&"object"==typeof t&&t.v?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":b(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+z(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function tt(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new $),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=Z(t);return m(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=Z(n,t);if(m(e))return e;var o=V(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=tt(s,o[s],r-1,i));return i.unmemoize(n),u}function nt(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return tt(t,r,n)}))}catch(t){return"**non-serializable**"}}function rt(t,n){void 0===n&&(n=40);var r=Object.keys(V(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return R(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:R(e,n)}return""}function it(t){var n,r;if(b(t)){var i=t,e={};try{for(var o=f(Object.keys(i)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==i[s]&&(e[s]=it(i[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(it):t}function et(){if(!("fetch"in C()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function ot(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ut(){if(!et())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var st,ct=C(),at={},ft={};function ht(t){if(!ft[t])switch(ft[t]=!0,t){case"console":!function(){if(!("console"in ct))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in ct.console&&K(ct.console,t,function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];lt("console",{args:r,level:t}),n&&Function.prototype.apply.call(n,ct.console,r)}})})}();break;case"dom":!function(){if(!("document"in ct))return;var t=lt.bind(null,"dom"),n=wt(t,!0);ct.document.addEventListener("click",n,!1),ct.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(function(n){var r=ct[n]&&ct[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(K(r,"addEventListener",function(n){return function(r,i,e){if("click"===r||"keypress"==r)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[r]=o[r]||{refCount:0};if(!u.handler){var s=wt(t);u.handler=s,n.call(this,r,s,e)}u.refCount+=1}catch(t){}return n.call(this,r,i,e)}}),K(r,"removeEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,i),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,i)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in ct))return;var t=[],n=[],r=XMLHttpRequest.prototype;K(r,"open",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=this,u=i[1];o.__sentry_xhr__={method:y(i[0])?i[0].toUpperCase():i[0],url:i[1]},y(u)&&"POST"===o.__sentry_xhr__.method&&u.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var r=t.indexOf(o);if(-1!==r){t.splice(r);var e=n.splice(r)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}lt("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?K(o,"onreadystatechange",function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return s(),t.apply(o,n)}}):o.addEventListener("readystatechange",s),r.apply(o,i)}}),K(r,"send",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return t.push(this),n.push(i),lt("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}})}();break;case"fetch":!function(){if(!function(){if(!et())return!1;var t=C();if(ot(t.fetch))return!0;var n=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(n=ot(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n}())return;K(ct,"fetch",function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={args:n,fetchData:{method:dt(n),url:pt(n)},startTimestamp:Date.now()};return lt("fetch",a({},i)),t.apply(ct,n).then(function(t){return lt("fetch",a(a({},i),{endTimestamp:Date.now(),response:t})),t},function(t){throw lt("fetch",a(a({},i),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(t=C(),n=t.chrome,r=n&&n.app&&n.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState,r||!i)return;var t,n,r,i;var e=ct.onpopstate;function o(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var e=st,o=String(i);st=o,lt("history",{from:e,to:o})}return t.apply(this,n)}}ct.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=ct.location.href,i=st;if(st=r,lt("history",{from:i,to:r}),e)try{return e.apply(this,t)}catch(t){}},K(ct.history,"pushState",o),K(ct.history,"replaceState",o)}();break;case"error":gt=ct.onerror,ct.onerror=function(t,n,r,i,e){return lt("error",{column:i,error:e,line:r,msg:t,url:n}),!!gt&>.apply(this,arguments)};break;case"unhandledrejection":xt=ct.onunhandledrejection,ct.onunhandledrejection=function(t){return lt("unhandledrejection",t),!xt||xt.apply(this,arguments)};break;default:W.warn("unknown instrumentation type:",t)}}function vt(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(at[t.type]=at[t.type]||[],at[t.type].push(t.callback),ht(t.type))}function lt(t,n){var r,i;if(t&&at[t])try{for(var e=f(at[t]||[]),o=e.next();!o.done;o=e.next()){var u=o.value;try{u(n)}catch(n){W.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+z(u)+"\nError: "+n)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}function dt(t){return void 0===t&&(t=[]),"Request"in ct&&x(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function pt(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ct&&x(t[0],Request)?t[0].url:String(t[0])}var yt,mt,bt=1e3;function wt(t,n){return void 0===n&&(n=!1),function(r){if(r&&mt!==r&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;void 0===yt?(t({event:r,name:i,global:n}),mt=r):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}(mt,r)&&(t({event:r,name:i,global:n}),mt=r),clearTimeout(yt),yt=ct.setTimeout(function(){yt=void 0},bt)}}}var gt=null;var Et,xt=null;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(Et||(Et={}));var jt=function(){function t(t){var n=this;this.l=Et.PENDING,this.p=[],this.m=function(t){n.g(Et.RESOLVED,t)},this.j=function(t){n.g(Et.REJECTED,t)},this.g=function(t,r){n.l===Et.PENDING&&(E(r)?r.then(n.m,n.j):(n.l=t,n.k=r,n._()))},this.S=function(t){n.p=n.p.concat(t),n._()},this._=function(){if(n.l!==Et.PENDING){var t=n.p.slice();n.p=[],t.forEach(function(t){t.done||(n.l===Et.RESOLVED&&t.onfulfilled&&t.onfulfilled(n.k),n.l===Et.REJECTED&&t.onrejected&&t.onrejected(n.k),t.done=!0)})}};try{t(this.m,this.j)}catch(t){this.j(t)}}return t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,r){r(n)})},t.all=function(n){return new t(function(r,i){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach(function(n,u){t.resolve(n).then(function(t){o[u]=t,0===(e-=1)&&r(o)}).then(null,i)})}else r([]);else i(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,r){var i=this;return new t(function(t,e){i.S({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void e(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void e(t)}else e(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var r=this;return new t(function(t,i){var e,o;return r.then(function(t){o=!1,e=t,n&&n()},function(t){o=!0,e=t,n&&n()}).then(function(){o?i(e):t(e)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),kt=function(){function t(t){this.O=t,this.D=[]}return t.prototype.isReady=function(){return void 0===this.O||this.length()<this.O},t.prototype.add=function(t){var n=this;return this.isReady()?(-1===this.D.indexOf(t)&&this.D.push(t),t.then(function(){return n.remove(t)}).then(null,function(){return n.remove(t).then(null,function(){})}),t):jt.reject(new S("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this.D.splice(this.D.indexOf(t),1)[0]},t.prototype.length=function(){return this.D.length},t.prototype.drain=function(t){var n=this;return new jt(function(r){var i=setTimeout(function(){t&&t>0&&r(!1)},t);jt.all(n.D).then(function(){clearTimeout(i),r(!0)}).then(null,function(){r(!0)})})},t}(),_t={nowSeconds:function(){return Date.now()/1e3}};var St=T()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=C().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Ot=void 0===St?_t:{nowSeconds:function(){return(St.timeOrigin+St.now())/1e3}},Dt=_t.nowSeconds.bind(_t),Tt=(Ot.nowSeconds.bind(Ot),function(){var t=C().performance;if(t){var n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):36e5,e=i<36e5,o=t.timing&&t.timing.navigationStart,u="number"==typeof o?Math.abs(o+n-r):36e5;(e||u<36e5)&&(i<=u&&t.timeOrigin)}}(),function(){function t(){this.T=!1,this.R=[],this.I=[],this.N=[],this.M={},this.C={},this.A={},this.q={}}return t.clone=function(n){var r=new t;return n&&(r.N=v(n.N),r.C=a({},n.C),r.A=a({},n.A),r.q=a({},n.q),r.M=n.M,r.L=n.L,r.U=n.U,r.H=n.H,r.F=n.F,r.P=n.P,r.I=v(n.I),r.X=n.X),r},t.prototype.addScopeListener=function(t){this.R.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.setUser=function(t){return this.M=t||{},this.H&&this.H.update({user:t}),this.B(),this},t.prototype.getUser=function(){return this.M},t.prototype.getRequestSession=function(){return this.X},t.prototype.setRequestSession=function(t){return this.X=t,this},t.prototype.setTags=function(t){return this.C=a(a({},this.C),t),this.B(),this},t.prototype.setTag=function(t,n){var r;return this.C=a(a({},this.C),((r={})[t]=n,r)),this.B(),this},t.prototype.setExtras=function(t){return this.A=a(a({},this.A),t),this.B(),this},t.prototype.setExtra=function(t,n){var r;return this.A=a(a({},this.A),((r={})[t]=n,r)),this.B(),this},t.prototype.setFingerprint=function(t){return this.P=t,this.B(),this},t.prototype.setLevel=function(t){return this.L=t,this.B(),this},t.prototype.setTransactionName=function(t){return this.F=t,this.B(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.q[t]:this.q=a(a({},this.q),((r={})[t]=n,r)),this.B(),this},t.prototype.setSpan=function(t){return this.U=t,this.B(),this},t.prototype.getSpan=function(){return this.U},t.prototype.getTransaction=function(){var t,n,r,i,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(i=null===(r=e)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.H=t:delete this.H,this.B(),this},t.prototype.getSession=function(){return this.H},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.C=a(a({},this.C),n.C),this.A=a(a({},this.A),n.A),this.q=a(a({},this.q),n.q),n.M&&Object.keys(n.M).length&&(this.M=n.M),n.L&&(this.L=n.L),n.P&&(this.P=n.P),n.X&&(this.X=n.X)):b(n)&&(n=n,this.C=a(a({},this.C),n.tags),this.A=a(a({},this.A),n.extra),this.q=a(a({},this.q),n.contexts),n.user&&(this.M=n.user),n.level&&(this.L=n.level),n.fingerprint&&(this.P=n.fingerprint),n.requestSession&&(this.X=n.requestSession)),this},t.prototype.clear=function(){return this.N=[],this.C={},this.A={},this.M={},this.q={},this.L=void 0,this.F=void 0,this.P=void 0,this.X=void 0,this.U=void 0,this.H=void 0,this.B(),this},t.prototype.addBreadcrumb=function(t,n){var r=a({timestamp:Dt()},t);return this.N=void 0!==n&&n>=0?v(this.N,[r]).slice(-n):v(this.N,[r]),this.B(),this},t.prototype.clearBreadcrumbs=function(){return this.N=[],this.B(),this},t.prototype.applyToEvent=function(t,n){var r;if(this.A&&Object.keys(this.A).length&&(t.extra=a(a({},this.A),t.extra)),this.C&&Object.keys(this.C).length&&(t.tags=a(a({},this.C),t.tags)),this.M&&Object.keys(this.M).length&&(t.user=a(a({},this.M),t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=a(a({},this.q),t.contexts)),this.L&&(t.level=this.L),this.F&&(t.transaction=this.F),this.U){t.contexts=a({trace:this.U.getTraceContext()},t.contexts);var i=null===(r=this.U.transaction)||void 0===r?void 0:r.name;i&&(t.tags=a({transaction:i},t.tags))}return this.J(t),t.breadcrumbs=v(t.breadcrumbs||[],this.N),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.W(v(Rt(),this.I),t,n)},t.prototype.W=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new jt(function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var c=s(a({},n),r);E(c)?c.then(function(n){return e.W(t,n,r,i+1).then(o)}).then(null,u):e.W(t,c,r,i+1).then(o).then(null,u)}})},t.prototype.B=function(){var t=this;this.T||(this.T=!0,this.R.forEach(function(n){n(t)}),this.T=!1)},t.prototype.J=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.P&&(t.fingerprint=t.fingerprint.concat(this.P)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function Rt(){var t=C();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function It(t){Rt().push(t)}var Nt=4,Mt=function(){function t(t,n,r){void 0===n&&(n=new Tt),void 0===r&&(r=Nt),this.$=r,this.G=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.$<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=Tt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.G},t.prototype.getStackTop=function(){return this.G[this.G.length-1]},t.prototype.captureException=function(t,n){var r=this.K=A(),i=n;if(!n){var e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}i={originalException:t,syntheticException:e}}return this.V("captureException",t,a(a({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this.K=A(),e=r;if(!r){var o=void 0;try{throw new Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this.V("captureMessage",t,n,a(a({},e),{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=this.K=A();return this.V("captureEvent",t,a(a({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this.K},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),i=r.scope,e=r.client;if(i&&e){var o=e.getOptions&&e.getOptions()||{},u=o.beforeBreadcrumb,s=void 0===u?null:u,c=o.maxBreadcrumbs,f=void 0===c?100:c;if(!(f<=0)){var h=Dt(),v=a({timestamp:h},t),l=s?U(function(){return s(v,n)}):v;null!==l&&i.addBreadcrumb(l,Math.min(f,100))}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getScope();r&&r.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getScope();r&&r.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getScope();r&&r.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),r=n.scope,i=n.client;r&&i&&t(r)},t.prototype.run=function(t){var n=At(this);try{t(this)}finally{At(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return W.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.Y("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.Y("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.Y("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this.Z()},t.prototype.endSession=function(){var t,n,r,i,e;null===(r=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===r||r.close(),this.Z(),null===(e=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),r=n.scope,i=n.client,o=i&&i.getOptions()||{},u=o.release,s=o.environment,c=new Ft(a(a({release:u,environment:s},r&&{user:r.getUser()}),t));if(r){var f=r.getSession&&r.getSession();f&&f.status===e.Ok&&f.update({status:e.Exited}),this.endSession(),r.setSession(c)}return c},t.prototype.Z=function(){var t=this.getStackTop(),n=t.scope,r=t.client;if(n){var i=n.getSession&&n.getSession();i&&r&&r.captureSession&&r.captureSession(i)}},t.prototype.V=function(t){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop(),o=e.scope,u=e.client;u&&u[t]&&(n=u)[t].apply(n,v(r,[o]))},t.prototype.Y=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=Ct().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,n);W.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Ct(){var t=C();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function At(t){var n=Ct(),r=Ut(n);return Ht(n,t),r}function qt(){var t=Ct();return Lt(t)&&!Ut(t).isOlderThan(Nt)||Ht(t,new Mt),T()?function(t){var n,r,i;try{var e=null===(i=null===(r=null===(n=Ct().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===r?void 0:r.domain)||void 0===i?void 0:i.active;if(!e)return Ut(t);if(!Lt(e)||Ut(e).isOlderThan(Nt)){var o=Ut(t).getStackTop();Ht(e,new Mt(o.client,Tt.clone(o.scope)))}return Ut(e)}catch(n){return Ut(t)}}(t):Ut(t)}function Lt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ut(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Mt,t.__SENTRY__.hub)}function Ht(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}var Ft=function(){function t(t){this.errors=0,this.sid=A(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=e.Ok,this.init=!0,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:A()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===e.Ok?this.update({status:e.Exited}):this.update()},t.prototype.toJSON=function(){return it({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(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:it({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}();function Pt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=qt();if(i&&i[t])return i[t].apply(i,v(n));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t,n){var r;try{throw new Error("Sentry syntheticException")}catch(t){r=t}return Pt("captureException",t,{captureContext:n,originalException:t,syntheticException:r})}function Xt(t){Pt("withScope",t)}var Bt=function(){function t(t,n){void 0===n&&(n={}),this.dsn=t,this.tt=new D(t),this.metadata=n}return t.prototype.getDsn=function(){return this.tt},t.prototype.getBaseApiEndpoint=function(){var t=this.tt,n=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return n+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this.nt("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this.rt()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.it()+"?"+this.rt()},t.prototype.getStoreEndpointPath=function(){var t=this.tt;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var r=this.tt,i=["Sentry sentry_version=7"];return i.push("sentry_client="+t+"/"+n),i.push("sentry_key="+r.publicKey),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.tt,r=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var e in i.push("dsn="+n.toString()),t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&i.push("name="+encodeURIComponent(t.user.name)),t.user.email&&i.push("email="+encodeURIComponent(t.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return i.length?r+"?"+i.join("&"):r},t.prototype.it=function(){return this.nt("envelope")},t.prototype.nt=function(t){return""+this.getBaseApiEndpoint()+this.tt.projectId+"/"+t+"/"},t.prototype.rt=function(){var t,n={sentry_key:this.tt.publicKey,sentry_version:"7"};return t=n,Object.keys(t).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])}).join("&")},t}(),Jt=[];function Wt(t){return t.reduce(function(t,n){return t.every(function(t){return n.name!==t.name})&&t.push(n),t},[])}function $t(t){var n={};return function(t){var n=t.defaultIntegrations&&v(t.defaultIntegrations)||[],r=t.integrations,i=v(Wt(n));Array.isArray(r)?i=v(i.filter(function(t){return r.every(function(n){return n.name!==t.name})}),Wt(r)):"function"==typeof r&&(i=r(i),i=Array.isArray(i)?i:[i]);var e=i.map(function(t){return t.name});return-1!==e.indexOf("Debug")&&i.push.apply(i,v(i.splice(e.indexOf("Debug"),1))),i}(t).forEach(function(t){n[t.name]=t,function(t){-1===Jt.indexOf(t.name)&&(t.setupOnce(It,qt),Jt.push(t.name),W.log("Integration installed: "+t.name))}(t)}),n}var Gt=function(){function t(t,n){this.et={},this.ot=0,this.ut=new t(n),this.st=n,n.dsn&&(this.ct=new D(n.dsn))}return t.prototype.captureException=function(t,n,r){var i=this,e=n&&n.event_id;return this.at(this.ft().eventFromException(t,n).then(function(t){return i.ht(t,n,r)}).then(function(t){e=t})),e},t.prototype.captureMessage=function(t,n,r,i){var e=this,o=r&&r.event_id,u=m(t)?this.ft().eventFromMessage(String(t),n,r):this.ft().eventFromException(t,r);return this.at(u.then(function(t){return e.ht(t,r,i)}).then(function(t){o=t})),o},t.prototype.captureEvent=function(t,n,r){var i=n&&n.event_id;return this.at(this.ht(t,n,r).then(function(t){i=t})),i},t.prototype.captureSession=function(t){"string"!=typeof t.release?W.warn("Discarded session because of missing or non-string release"):(this.vt(t),t.update({init:!1}))},t.prototype.getDsn=function(){return this.ct},t.prototype.getOptions=function(){return this.st},t.prototype.flush=function(t){var n=this;return this.lt(t).then(function(r){return n.ft().getTransport().close(t).then(function(t){return r&&t})})},t.prototype.close=function(t){var n=this;return this.flush(t).then(function(t){return n.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){this.dt()&&(this.et=$t(this.st))},t.prototype.getIntegration=function(t){try{return this.et[t.id]||null}catch(n){return W.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.pt=function(t,n){var r,i,o,u=!1,s=!1,c=n.exception&&n.exception.values;if(c){s=!0;try{for(var h=f(c),v=h.next();!v.done;v=h.next()){var l=v.value.mechanism;if(l&&!1===l.handled){u=!0;break}}}catch(t){r={error:t}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}var d=n.user;if(!t.userAgent){var p=n.request?n.request.headers:{};for(var y in p)if("user-agent"===y.toLowerCase()){o=p[y];break}}t.update(a(a({},u&&{status:e.Crashed}),{user:d,userAgent:o,errors:t.errors+Number(s||u)})),this.captureSession(t)},t.prototype.vt=function(t){this.ft().sendSession(t)},t.prototype.lt=function(t){var n=this;return new jt(function(r){var i=0,e=setInterval(function(){0==n.ot?(clearInterval(e),r(!0)):(i+=1,t&&i>=t&&(clearInterval(e),r(!1)))},1)})},t.prototype.ft=function(){return this.ut},t.prototype.dt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ct},t.prototype.yt=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=a(a({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:A()),timestamp:t.timestamp||Dt()});this.bt(u),this.wt(u);var s=n;r&&r.captureContext&&(s=Tt.clone(s).update(r.captureContext));var c=jt.resolve(u);return s&&(c=s.applyToEvent(u,r)),c.then(function(t){return"number"==typeof o&&o>0?i.gt(t,o):t})},t.prototype.gt=function(t,n){if(!t)return null;var r=a(a(a(a(a({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return a(a({},t),t.data&&{data:nt(t.data,n)})})}),t.user&&{user:nt(t.user,n)}),t.contexts&&{contexts:nt(t.contexts,n)}),t.extra&&{extra:nt(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.bt=function(t){var n=this.getOptions(),r=n.environment,i=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=R(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=R(s.value,u));var c=t.request;c&&c.url&&(c.url=R(c.url,u))},t.prototype.wt=function(t){var n=Object.keys(this.et);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=v(t.sdk.integrations||[],n))},t.prototype.Et=function(t){this.ft().sendEvent(t)},t.prototype.ht=function(t,n,r){return this.xt(t,n,r).then(function(t){return t.event_id},function(t){W.error(t)})},t.prototype.xt=function(t,n,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;if(!this.dt())return jt.reject(new S("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?jt.reject(new S("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this.yt(t,r,n).then(function(t){if(null===t)throw new S("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||s||!o)return t;var r=o(t,n);if(void 0===r)throw new S("`beforeSend` method has to return `null` or a valid event.");return E(r)?r.then(function(t){return t},function(t){throw new S("beforeSend rejected with "+t)}):r}).then(function(t){if(null===t)throw new S("`beforeSend` returned `null`, will not send event.");var n=r&&r.getSession&&r.getSession();return!s&&n&&i.pt(n,t),i.Et(t),t}).then(null,function(t){if(t instanceof S)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new S("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.at=function(t){var n=this;this.ot+=1,t.then(function(t){return n.ot-=1,t},function(t){return n.ot-=1,t})},t}(),zt=function(){function n(){}return n.prototype.sendEvent=function(n){return jt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return jt.resolve(!0)},n}(),Kt=function(){function t(t){this.st=t,this.st.dsn||W.warn("No DSN provided, backend will not do anything."),this.jt=this.kt()}return t.prototype.eventFromException=function(t,n){throw new S("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new S("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.jt.sendEvent(t).then(null,function(t){W.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.jt.sendSession?this.jt.sendSession(t).then(null,function(t){W.error("Error while sending session: "+t)}):W.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.jt},t.prototype.kt=function(){return new zt},t}();function Vt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Qt(t,n){return n?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=v(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=v(t.sdk.packages||[],n.packages||[]),t):t}function Yt(t,n){var r=Vt(n),i="aggregates"in t?"sessions":"session";return{body:JSON.stringify(a({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(t),type:i,url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Zt(t,n){var r=Vt(n),i=t.type||"event",e="transaction"===i,o=t.debug_meta||{},u=o.transactionSampling,s=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e<i.length;e++)n.indexOf(i[e])<0&&(r[i[e]]=t[i[e]])}return r}(o,["transactionSampling"]),c=u||{},f=c.method,h=c.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var v={body:JSON.stringify(r?Qt(t,n.metadata.sdk):t),type:i,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(a({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:f,rate:h}]})+"\n"+v.body;v.body=l}return v}var tn,nn="6.4.1",rn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){tn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_original__||this;return tn.apply(r,t)}},t.id="FunctionToString",t}(),en=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],on=function(){function t(n){void 0===n&&(n={}),this.st=n,this.name=t.id}return t.prototype.setupOnce=function(){It(function(n){var r=qt();if(!r)return n;var i=r.getIntegration(t);if(i){var e=r.getClient(),o=e?e.getOptions():{},u="function"==typeof i._mergeOptions?i._mergeOptions(o):{};return"function"!=typeof i._t?n:i._t(n,u)?null:n}return n})},t.prototype._t=function(t,n){return this.St(t,n)?(W.warn("Event dropped due to being internal Sentry Error.\nEvent: "+L(t)),!0):this.Ot(t,n)?(W.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+L(t)),!0):this.Dt(t,n)?(W.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+L(t)+".\nUrl: "+this.Tt(t)),!0):!this.Rt(t,n)&&(W.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+L(t)+".\nUrl: "+this.Tt(t)),!0)},t.prototype.St=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype.Ot=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.It(t).some(function(t){return n.ignoreErrors.some(function(n){return N(t,n)})})},t.prototype.Dt=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var r=this.Tt(t);return!!r&&n.denyUrls.some(function(t){return N(r,t)})},t.prototype.Rt=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var r=this.Tt(t);return!r||n.allowUrls.some(function(t){return N(r,t)})},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:v(this.st.whitelistUrls||[],this.st.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:v(this.st.blacklistUrls||[],this.st.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:v(this.st.ignoreErrors||[],t.ignoreErrors||[],en),ignoreInternal:void 0===this.st.ignoreInternal||this.st.ignoreInternal}},t.prototype.It=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=void 0===r?"":r,e=n.value,o=void 0===e?"":e;return[""+o,i+": "+o]}catch(n){return W.error("Cannot extract message for event "+L(t)),[]}return[]},t.prototype.Tt=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return n&&n[n.length-1].filename||null}if(t.exception){var r=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return r&&r[r.length-1].filename||null}return null}catch(n){return W.error("Cannot extract url for event "+L(t)),null}},t.id="InboundFilters",t}(),un=Object.freeze({__proto__:null,FunctionToString:rn,InboundFilters:on}),sn="?",cn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,an=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vn=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=/Minified React error #\d+;/i;function dn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ln.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],s=0;s<o.length;s+=2){var c=null;(n=i.exec(o[s]))?c={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=e.exec(o[s]))&&(c={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),c&&(!c.func&&c.line&&(c.func=sn),u.push(c))}if(!u.length)return null;return{message:yn(t),name:t.name,stack:u}}(t))return pn(n,r)}catch(t){}try{if(n=function(t){if(!t||!t.stack)return null;for(var n,r,i,e=[],o=t.stack.split("\n"),u=0;u<o.length;++u){if(r=cn.exec(o[u])){var s=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(n=vn.exec(r[2]))&&(r[2]=n[1],r[3]=n[2],r[4]=n[3]);var c=r[2]&&0===r[2].indexOf("address at ")?r[2].substr("address at ".length):r[2],a=r[1]||sn,f=-1!==a.indexOf("safari-extension"),h=-1!==a.indexOf("safari-web-extension");(f||h)&&(a=-1!==a.indexOf("@")?a.split("@")[0]:sn,c=f?"safari-extension:"+c:"safari-web-extension:"+c),i={url:c,func:a,args:s?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=fn.exec(o[u]))i={url:r[2],func:r[1]||sn,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=an.exec(o[u])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(n=hn.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),i={url:r[3],func:r[1]||sn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=sn),e.push(i)}if(!e.length)return null;return{message:yn(t),name:t.name,stack:e}}(t))return pn(n,r)}catch(t){}return{message:yn(t),name:t&&t.name,stack:[],failed:!0}}function pn(t,n){try{return a(a({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function yn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var mn=50;function bn(t){var n=gn(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wn(t){return{exception:{values:[bn(t)]}}}function gn(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",i=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==i.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,mn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function En(n,r,i){var e=jn(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return F(e,{handled:!0,type:"generic"}),e.level=t.Severity.Error,i&&i.event_id&&(e.event_id=i.event_id),jt.resolve(e)}function xn(n,r,i,e){void 0===i&&(i=t.Severity.Info);var o=kn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=i,e&&e.event_id&&(o.event_id=e.event_id),jt.resolve(o)}function jn(t,n,r){var i,e;if(void 0===r&&(r={}),d(t)&&t.error)return i=wn(dn(t=t.error));if(p(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t,u=o.name||(p(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;return H(i=kn(s,n,r),s),"code"in o&&(i.tags=a(a({},i.tags),{"DOMException.code":""+o.code})),i}return l(t)?i=wn(dn(t)):b(t)||w(t)?(F(i=function(t,n,r){var i={exception:{values:[{type:w(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+rt(t)}]},extra:{__serialized__:Y(t)}};if(n){var e=gn(dn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(H(i=kn(t,n,r),""+t,void 0),F(i,{synthetic:!0}),i)}function kn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=gn(dn(n).stack);i.stacktrace={frames:e}}return i}var _n={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Sn=function(){function n(t){this.options=t,this.D=new kt(30),this.Nt={},this.Mt=new Bt(t.dsn,t.Ct),this.url=this.Mt.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new S("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.D.drain(t)},n.prototype.At=function(n){var r=n.requestType,i=n.response,e=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(i.status);this.qt(e)&&W.warn("Too many requests, backing off until: "+this.Lt(r)),s!==t.Status.Success?u(i):o({status:s})},n.prototype.Lt=function(t){var n=_n[t];return this.Nt[n]||this.Nt.all},n.prototype.Ut=function(t){return this.Lt(t)>new Date(Date.now())},n.prototype.qt=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=f(u.trim().split(",")),a=c.next();!a.done;a=c.next()){var h=a.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(i=void 0,f(h[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.Nt[y||"all"]=new Date(o+l)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this.Nt.all=new Date(o+function(t,n){if(!n)return P;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?P:i-t}(o,s)),!0)},n}();var On=function(t){function n(n,r){void 0===r&&(r=function(){var t,n,r=C();if(ot(r.fetch))return r.fetch.bind(r);var i=r.document,e=r.fetch;if("function"==typeof(null===(t=i)||void 0===t?void 0:t.createElement))try{var o=i.createElement("iframe");o.hidden=!0,i.head.appendChild(o),(null===(n=o.contentWindow)||void 0===n?void 0:n.fetch)&&(e=o.contentWindow.fetch),i.head.removeChild(o)}catch(t){W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e.bind(r)}());var i=t.call(this,n)||this;return i.Ht=r,i}return r(n,t),n.prototype.sendEvent=function(t){return this.Ft(Zt(t,this.Mt),t)},n.prototype.sendSession=function(t){return this.Ft(Yt(t,this.Mt),t)},n.prototype.Ft=function(t,n){var r=this;if(this.Ut(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Lt(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:ut()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this.D.add(new jt(function(n,e){r.Ht(t.url,i).then(function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r.At({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}).catch(e)}))},n}(Sn),Dn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ft(Zt(t,this.Mt),t)},n.prototype.sendSession=function(t){return this.Ft(Yt(t,this.Mt),t)},n.prototype.Ft=function(t,n){var r=this;return this.Ut(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Lt(t.type)+" due to too many requests.",status:429}):this.D.add(new jt(function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r.At({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))},n}(Sn),Tn=Object.freeze({__proto__:null,BaseTransport:Sn,FetchTransport:On,XHRTransport:Dn}),Rn=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.prototype.eventFromException=function(t,n){return En(this.st,t,n)},i.prototype.eventFromMessage=function(n,r,i){return void 0===r&&(r=t.Severity.Info),xn(this.st,n,r,i)},i.prototype.kt=function(){if(!this.st.dsn)return n.prototype.kt.call(this);var t=a(a({},this.st.transportOptions),{dsn:this.st.dsn,Ct:this.st.Ct});return this.st.transport?new this.st.transport(t):et()?new On(t):new Dn(t)},i}(Kt),In=0;function Nn(){return In>0}function Mn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var e=i.map(function(t){return Mn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw In+=1,setTimeout(function(){In-=1}),Xt(function(r){r.addEventProcessor(function(t){var r=a({},t);return n.mechanism&&(H(r,void 0,void 0),F(r,n.mechanism)),r.extra=a(a({},r.extra),{arguments:i}),r}),captureException(t)}),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(sentryWrapped[i]=t[i])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function Cn(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new Bt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else W.error("Missing dsn option in showReportDialog call");else W.error("Missing eventId option in showReportDialog call")}var An=function(){function n(t){this.name=n.id,this.Pt=!1,this.Xt=!1,this.st=a({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.st.onerror&&(W.log("Global Handler attached: onerror"),this.Bt()),this.st.onunhandledrejection&&(W.log("Global Handler attached: onunhandledrejection"),this.Jt())},n.prototype.Bt=function(){var t=this;this.Pt||(vt({callback:function(r){var i=r.error,e=qt(),o=e.getIntegration(n),u=i&&!0===i.__sentry_own_request__;if(o&&!Nn()&&!u){var s=e.getClient(),c=m(i)?t.Wt(r.msg,r.url,r.line,r.column):t.$t(jn(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);F(c,{handled:!1,type:"onerror"}),e.captureEvent(c,{originalException:i})}},type:"error"}),this.Pt=!0)},n.prototype.Jt=function(){var r=this;this.Xt||(vt({callback:function(i){var e=i;try{"reason"in i?e=i.reason:"detail"in i&&"reason"in i.detail&&(e=i.detail.reason)}catch(t){}var o=qt(),u=o.getIntegration(n),s=e&&!0===e.__sentry_own_request__;if(!u||Nn()||s)return!0;var c=o.getClient(),a=m(e)?r.Gt(e):jn(e,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=t.Severity.Error,F(a,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(a,{originalException:e})},type:"unhandledrejection"}),this.Xt=!0)},n.prototype.Wt=function(t,n,r,i){var e,o=d(t)?t.message:t;if(y(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(e=u[1],o=u[2])}var s={exception:{values:[{type:e||"Error",value:o}]}};return this.$t(s,n,r,i)},n.prototype.Gt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.$t=function(t,n,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var e=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,u=y(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),qn=["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"],Ln=function(){function t(n){this.name=t.id,this.st=a({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=C();(this.st.setTimeout&&K(t,"setTimeout",this.zt.bind(this)),this.st.setInterval&&K(t,"setInterval",this.zt.bind(this)),this.st.requestAnimationFrame&&K(t,"requestAnimationFrame",this.Kt.bind(this)),this.st.XMLHttpRequest&&"XMLHttpRequest"in t&&K(XMLHttpRequest.prototype,"send",this.Vt.bind(this)),this.st.eventTarget)&&(Array.isArray(this.st.eventTarget)?this.st.eventTarget:qn).forEach(this.Qt.bind(this))},t.prototype.zt=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[0];return n[0]=Mn(i,{mechanism:{data:{function:z(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype.Kt=function(t){return function(n){return t.call(this,Mn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:z(t)},handled:!0,type:"instrument"}}))}},t.prototype.Qt=function(t){var n=C(),r=n[t]&&n[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(K(r,"addEventListener",function(n){return function(r,i,e){try{"function"==typeof i.handleEvent&&(i.handleEvent=Mn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:z(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,r,Mn(i,{mechanism:{data:{function:"addEventListener",handler:z(i),target:t},handled:!0,type:"instrument"}}),e)}}),K(r,"removeEventListener",function(t){return function(n,r,i){var e,o=r;try{var u=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;u&&t.call(this,n,u,i)}catch(t){}return t.call(this,n,o,i)}}))},t.prototype.Vt=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(t){t in i&&"function"==typeof i[t]&&K(i,t,function(n){var r={mechanism:{data:{function:t,handler:z(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(r.mechanism.data.handler=z(n.__sentry_original__)),Mn(n,r)})}),t.apply(this,n)}},t.id="TryCatch",t}(),Un=function(){function n(t){this.name=n.id,this.st=a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return n.prototype.addSentryBreadcrumb=function(t){this.st.sentry&&qt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:L(t)},{event:t})},n.prototype.setupOnce=function(){var t=this;this.st.console&&vt({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.Yt.apply(t,v(n))},type:"console"}),this.st.dom&&vt({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.Zt.apply(t,v(n))},type:"dom"}),this.st.xhr&&vt({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.tn.apply(t,v(n))},type:"xhr"}),this.st.fetch&&vt({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.nn.apply(t,v(n))},type:"fetch"}),this.st.history&&vt({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.rn.apply(t,v(n))},type:"history"})},n.prototype.Yt=function(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:t.Severity.fromString(n.level),message:I(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(I(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}qt().addBreadcrumb(r,{input:n.args,level:n.level})},n.prototype.Zt=function(t){var n;try{n=t.event.target?j(t.event.target):j(t.event)}catch(t){n="<unknown>"}0!==n.length&&qt().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},n.prototype.tn=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;qt().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.nn=function(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:a(a({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.rn=function(t){var n=C(),r=t.from,i=t.to,e=q(n.location.href),o=q(r),u=q(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),qt().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},n.id="Breadcrumbs",n}(),Hn="cause",Fn=5,Pn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.in=n.key||Hn,this.O=n.limit||Fn}return t.prototype.setupOnce=function(){It(function(n,r){var i=qt().getIntegration(t);return i?i.en(n,r):n})},t.prototype.en=function(t,n){if(!(t.exception&&t.exception.values&&n&&x(n.originalException,Error)))return t;var r=this.on(n.originalException,this.in);return t.exception.values=v(r,t.exception.values),t},t.prototype.on=function(t,n,r){if(void 0===r&&(r=[]),!x(t[n],Error)||r.length+1>=this.O)return r;var i=bn(dn(t[n]));return this.on(t[n],n,v([i],r))},t.id="LinkedErrors",t}(),Xn=C(),Bn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){It(function(n){var r,i,e;if(qt().getIntegration(t)){if(!Xn.navigator&&!Xn.location&&!Xn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Xn.location)||void 0===i?void 0:i.href),u=(Xn.document||{}).referrer,s=(Xn.navigator||{}).userAgent,c=a(a(a({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=a(a({},o&&{url:o}),{headers:c});return a(a({},n),{request:f})}return n})},t.id="UserAgent",t}(),Jn=Object.freeze({__proto__:null,GlobalHandlers:An,TryCatch:Ln,Breadcrumbs:Un,LinkedErrors:Pn,UserAgent:Bn}),Wn=function(t){function n(n){void 0===n&&(n={});return n.Ct=n.Ct||{},n.Ct.sdk=n.Ct.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:nn}],version:nn},t.call(this,Rn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),C().document&&(this.dt()?Cn(a(a({},t),{dsn:t.dsn||this.getDsn()})):W.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.yt=function(n,r,i){return n.platform=n.platform||"javascript",t.prototype.yt.call(this,n,r,i)},n.prototype.Et=function(n){var r=this.getIntegration(Un);r&&r.addSentryBreadcrumb(n),t.prototype.Et.call(this,n)},n}(Gt),$n=[new on,new rn,new Ln,new Un,new An,new Pn,new Bn];var Gn={},zn=C();zn.Sentry&&zn.Sentry.Integrations&&(Gn=zn.Sentry.Integrations);var Kn=a(a(a({},Gn),un),Jn);return t.BrowserClient=Wn,t.Hub=Mt,t.Integrations=Kn,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=nn,t.Scope=Tt,t.Transports=Tn,t.addBreadcrumb=function(t){Pt("addBreadcrumb",t)},t.addGlobalEventProcessor=It,t.captureEvent=function(t){return Pt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Pt("captureMessage",t,"string"==typeof n?n:void 0,a({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=qt().getClient();return n?n.close(t):jt.reject(!1)},t.configureScope=function(t){Pt("configureScope",t)},t.defaultIntegrations=$n,t.eventFromException=En,t.eventFromMessage=xn,t.flush=function(t){var n=qt().getClient();return n?n.flush(t):jt.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=qt,t.getHubFromCarrier=Ut,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=$n),void 0===t.release){var n=C();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,n){var r;!0===n.debug&&W.enable();var i=qt();null===(r=i.getScope())||void 0===r||r.update(n.initialScope);var e=new t(n);i.bindClient(e)}(Wn,t),t.autoSessionTracking&&function(){if(void 0!==C().document){var t=qt();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession(),t.captureSession(),vt({callback:function(){t.startSession(),t.captureSession()},type:"history"}))}else W.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()},t.injectReportDialog=Cn,t.lastEventId=function(){return qt().lastEventId()},t.makeMain=At,t.onLoad=function(t){t()},t.setContext=function(t,n){Pt("setContext",t,n)},t.setExtra=function(t,n){Pt("setExtra",t,n)},t.setExtras=function(t){Pt("setExtras",t)},t.setTag=function(t,n){Pt("setTag",t,n)},t.setTags=function(t){Pt("setTags",t)},t.setUser=function(t){Pt("setUser",t)},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=qt().lastEventId());var n=qt().getClient();n&&n.showReportDialog(t)},t.startTransaction=function(t,n){return Pt("startTransaction",a({},t),n)},t.withScope=Xt,t.wrap=function(t){return Mn(t)()},t}({}); //# sourceMappingURL=bundle.min.js.map