mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
1 line
73 KiB
JavaScript
1 line
73 KiB
JavaScript
(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[137],{260:function(e,t,n){"use strict";n.r(t);var r={};n.r(r);n.d(r,"FunctionToString",(function(){return Z}));n.d(r,"InboundFilters",(function(){return ee}));var i={};n.r(i);n.d(i,"GlobalHandlers",(function(){return he}));n.d(i,"TryCatch",(function(){return ne}));n.d(i,"Breadcrumbs",(function(){return de}));n.d(i,"LinkedErrors",(function(){return _e}));n.d(i,"UserAgent",(function(){return me}));var o={};n.r(o);n.d(o,"BaseTransport",(function(){return q}));n.d(o,"FetchTransport",(function(){return W}));n.d(o,"XHRTransport",(function(){return Y}));var a=n(264);var s;(function(e){e["Fatal"]="fatal";e["Error"]="error";e["Warning"]="warning";e["Log"]="log";e["Info"]="info";e["Debug"]="debug";e["Critical"]="critical"})(s||(s={}));(function(e){function fromString(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}e.fromString=fromString})(s||(s={}));var u;(function(e){e["Unknown"]="unknown";e["Skipped"]="skipped";e["Success"]="success";e["RateLimit"]="rate_limit";e["Invalid"]="invalid";e["Failed"]="failed"})(u||(u={}));(function(e){function fromHttpCode(t){if(t>=200&&t<300){return e.Success}if(t===429){return e.RateLimit}if(t>=400&&t<500){return e.Invalid}if(t>=500){return e.Failed}return e.Unknown}e.fromHttpCode=fromHttpCode})(u||(u={}));var c=n(291);var f;(function(e){e["PENDING"]="PENDING";e["RESOLVED"]="RESOLVED";e["REJECTED"]="REJECTED"})(f||(f={}));var l=function(){function SyncPromise(e){var t=this;this._state=f.PENDING;this._handlers=[];this._resolve=function(e){t._setResult(f.RESOLVED,e)};this._reject=function(e){t._setResult(f.REJECTED,e)};this._setResult=function(e,n){if(t._state!==f.PENDING){return}if(Object(c["m"])(n)){n.then(t._resolve,t._reject);return}t._state=e;t._value=n;t._executeHandlers()};this._attachHandler=function(e){t._handlers=t._handlers.concat(e);t._executeHandlers()};this._executeHandlers=function(){if(t._state===f.PENDING){return}var e=t._handlers.slice();t._handlers=[];e.forEach((function(e){if(e.done){return}if(t._state===f.RESOLVED){if(e.onfulfilled){e.onfulfilled(t._value)}}if(t._state===f.REJECTED){if(e.onrejected){e.onrejected(t._value)}}e.done=true}))};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}SyncPromise.prototype.toString=function(){return"[object SyncPromise]"};SyncPromise.resolve=function(e){return new SyncPromise((function(t){t(e)}))};SyncPromise.reject=function(e){return new SyncPromise((function(t,n){n(e)}))};SyncPromise.all=function(e){return new SyncPromise((function(t,n){if(!Array.isArray(e)){n(new TypeError("Promise.all requires an array as input."));return}if(e.length===0){t([]);return}var r=e.length;var i=[];e.forEach((function(e,o){SyncPromise.resolve(e).then((function(e){i[o]=e;r-=1;if(r!==0){return}t(i)})).then(null,n)}))}))};SyncPromise.prototype.then=function(e,t){var n=this;return new SyncPromise((function(r,i){n._attachHandler({done:false,onfulfilled:function(t){if(!e){r(t);return}try{r(e(t));return}catch(e){i(e);return}},onrejected:function(e){if(!t){i(e);return}try{r(t(e));return}catch(e){i(e);return}}})}))};SyncPromise.prototype.catch=function(e){return this.then((function(e){return e}),e)};SyncPromise.prototype.finally=function(e){var t=this;return new SyncPromise((function(n,r){var i;var o;return t.then((function(t){o=false;i=t;if(e){e()}}),(function(t){o=true;i=t;if(e){e()}})).then((function(){if(o){r(i);return}n(i)}))}))};return SyncPromise}();var p=n(307);var d=function(){function Scope(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._user={};this._tags={};this._extra={};this._context={}}Scope.prototype.addScopeListener=function(e){this._scopeListeners.push(e)};Scope.prototype.addEventProcessor=function(e){this._eventProcessors.push(e);return this};Scope.prototype._notifyScopeListeners=function(){var e=this;if(!this._notifyingListeners){this._notifyingListeners=true;setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)}));e._notifyingListeners=false}))}};Scope.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;if(r===void 0){r=0}return new l((function(o,s){var u=e[r];if(t===null||typeof u!=="function"){o(t)}else{var f=u(a["a"]({},t),n);if(Object(c["m"])(f)){f.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,s)}else{i._notifyEventProcessors(e,f,n,r+1).then(o).then(null,s)}}}))};Scope.prototype.setUser=function(e){this._user=e||{};this._notifyScopeListeners();return this};Scope.prototype.setTags=function(e){this._tags=a["a"]({},this._tags,e);this._notifyScopeListeners();return this};Scope.prototype.setTag=function(e,t){var n;this._tags=a["a"]({},this._tags,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setExtras=function(e){this._extra=a["a"]({},this._extra,e);this._notifyScopeListeners();return this};Scope.prototype.setExtra=function(e,t){var n;this._extra=a["a"]({},this._extra,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setFingerprint=function(e){this._fingerprint=e;this._notifyScopeListeners();return this};Scope.prototype.setLevel=function(e){this._level=e;this._notifyScopeListeners();return this};Scope.prototype.setTransaction=function(e){this._transaction=e;if(this._span){this._span.transaction=e}this._notifyScopeListeners();return this};Scope.prototype.setContext=function(e,t){var n;this._context=a["a"]({},this._context,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setSpan=function(e){this._span=e;this._notifyScopeListeners();return this};Scope.prototype.getSpan=function(){return this._span};Scope.clone=function(e){var t=new Scope;if(e){t._breadcrumbs=a["d"](e._breadcrumbs);t._tags=a["a"]({},e._tags);t._extra=a["a"]({},e._extra);t._context=a["a"]({},e._context);t._user=e._user;t._level=e._level;t._span=e._span;t._transaction=e._transaction;t._fingerprint=e._fingerprint;t._eventProcessors=a["d"](e._eventProcessors)}return t};Scope.prototype.clear=function(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._context={};this._level=undefined;this._transaction=undefined;this._fingerprint=undefined;this._span=undefined;this._notifyScopeListeners();return this};Scope.prototype.addBreadcrumb=function(e,t){var n=a["a"]({timestamp:Object(p["l"])()},e);this._breadcrumbs=t!==undefined&&t>=0?a["d"](this._breadcrumbs,[n]).slice(-t):a["d"](this._breadcrumbs,[n]);this._notifyScopeListeners();return this};Scope.prototype.clearBreadcrumbs=function(){this._breadcrumbs=[];this._notifyScopeListeners();return this};Scope.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[];if(this._fingerprint){e.fingerprint=e.fingerprint.concat(this._fingerprint)}if(e.fingerprint&&!e.fingerprint.length){delete e.fingerprint}};Scope.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length){e.extra=a["a"]({},this._extra,e.extra)}if(this._tags&&Object.keys(this._tags).length){e.tags=a["a"]({},this._tags,e.tags)}if(this._user&&Object.keys(this._user).length){e.user=a["a"]({},this._user,e.user)}if(this._context&&Object.keys(this._context).length){e.contexts=a["a"]({},this._context,e.contexts)}if(this._level){e.level=this._level}if(this._transaction){e.transaction=this._transaction}if(this._span){e.contexts=a["a"]({trace:this._span.getTraceContext()},e.contexts)}this._applyFingerprint(e);e.breadcrumbs=a["d"](e.breadcrumbs||[],this._breadcrumbs);e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:undefined;return this._notifyEventProcessors(a["d"](getGlobalEventProcessors(),this._eventProcessors),e,t)};return Scope}();function getGlobalEventProcessors(){var e=Object(p["f"])();e.__SENTRY__=e.__SENTRY__||{};e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[];return e.__SENTRY__.globalEventProcessors}function addGlobalEventProcessor(e){getGlobalEventProcessors().push(e)}var h=Object(p["f"])();var v="Sentry Logger ";var g=function(){function Logger(){this._enabled=false}Logger.prototype.disable=function(){this._enabled=false};Logger.prototype.enable=function(){this._enabled=true};Logger.prototype.log=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(!this._enabled){return}Object(p["c"])((function(){h.console.log(v+"[Log]: "+e.join(" "))}))};Logger.prototype.warn=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(!this._enabled){return}Object(p["c"])((function(){h.console.warn(v+"[Warn]: "+e.join(" "))}))};Logger.prototype.error=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(!this._enabled){return}Object(p["c"])((function(){h.console.error(v+"[Error]: "+e.join(" "))}))};return Logger}();h.__SENTRY__=h.__SENTRY__||{};var _=h.__SENTRY__.logger||(h.__SENTRY__.logger=new g);var b=3;var m=100;var y=100;var E=function(){function Hub(e,t,n){if(t===void 0){t=new d}if(n===void 0){n=b}this._version=n;this._stack=[];this._stack.push({client:e,scope:t})}Hub.prototype._invokeClient=function(e){var t;var n=[];for(var r=1;r<arguments.length;r++){n[r-1]=arguments[r]}var i=this.getStackTop();if(i&&i.client&&i.client[e]){(t=i.client)[e].apply(t,a["d"](n,[i.scope]))}};Hub.prototype.isOlderThan=function(e){return this._version<e};Hub.prototype.bindClient=function(e){var t=this.getStackTop();t.client=e;if(e&&e.setupIntegrations){e.setupIntegrations()}};Hub.prototype.pushScope=function(){var e=this.getStack();var t=e.length>0?e[e.length-1].scope:undefined;var n=d.clone(t);this.getStack().push({client:this.getClient(),scope:n});return n};Hub.prototype.popScope=function(){return this.getStack().pop()!==undefined};Hub.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}};Hub.prototype.getClient=function(){return this.getStackTop().client};Hub.prototype.getScope=function(){return this.getStackTop().scope};Hub.prototype.getStack=function(){return this._stack};Hub.prototype.getStackTop=function(){return this._stack[this._stack.length-1]};Hub.prototype.captureException=function(e,t){var n=this._lastEventId=Object(p["m"])();var r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}this._invokeClient("captureException",e,a["a"]({},r,{event_id:n}));return n};Hub.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(p["m"])();var i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}this._invokeClient("captureMessage",e,t,a["a"]({},i,{event_id:r}));return r};Hub.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(p["m"])();this._invokeClient("captureEvent",e,a["a"]({},t,{event_id:n}));return n};Hub.prototype.lastEventId=function(){return this._lastEventId};Hub.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(!n.scope||!n.client){return}var r=n.client.getOptions&&n.client.getOptions()||{},i=r.beforeBreadcrumb,o=i===void 0?null:i,s=r.maxBreadcrumbs,u=s===void 0?m:s;if(u<=0){return}var c=Object(p["l"])();var f=a["a"]({timestamp:c},e);var l=o?Object(p["c"])((function(){return o(f,t)})):f;if(l===null){return}n.scope.addBreadcrumb(l,Math.min(u,y))};Hub.prototype.setUser=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setUser(e)};Hub.prototype.setTags=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setTags(e)};Hub.prototype.setExtras=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setExtras(e)};Hub.prototype.setTag=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setTag(e,t)};Hub.prototype.setExtra=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setExtra(e,t)};Hub.prototype.setContext=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setContext(e,t)};Hub.prototype.configureScope=function(e){var t=this.getStackTop();if(t.scope&&t.client){e(t.scope)}};Hub.prototype.run=function(e){var t=makeMain(this);try{e(this)}finally{makeMain(t)}};Hub.prototype.getIntegration=function(e){var t=this.getClient();if(!t){return null}try{return t.getIntegration(e)}catch(t){_.warn("Cannot retrieve integration "+e.id+" from the current Hub");return null}};Hub.prototype.startSpan=function(e,t){if(t===void 0){t=false}return this._callExtensionMethod("startSpan",e,t)};Hub.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")};Hub.prototype._callExtensionMethod=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}var r=getMainCarrier();var i=r.__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]==="function"){return i.extensions[e].apply(this,t)}_.warn("Extension method "+e+" couldn't be found, doing nothing.")};return Hub}();function getMainCarrier(){var e=Object(p["f"])();e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:undefined};return e}function makeMain(e){var t=getMainCarrier();var n=getHubFromCarrier(t);setHubOnCarrier(t,e);return n}function getCurrentHub(){var e=getMainCarrier();if(!hasHubOnCarrier(e)||getHubFromCarrier(e).isOlderThan(b)){setHubOnCarrier(e,new E)}if(Object(p["i"])()){return getHubFromActiveDomain(e)}return getHubFromCarrier(e)}function getHubFromActiveDomain(e){try{var t="domain";var n=getMainCarrier();var r=n.__SENTRY__;if(!r||!r.extensions||!r.extensions[t]){return getHubFromCarrier(e)}var i=r.extensions[t];var o=i.active;if(!o){return getHubFromCarrier(e)}if(!hasHubOnCarrier(o)||getHubFromCarrier(o).isOlderThan(b)){var a=getHubFromCarrier(e).getStackTop();setHubOnCarrier(o,new E(a.client,d.clone(a.scope)))}return getHubFromCarrier(o)}catch(t){return getHubFromCarrier(e)}}function hasHubOnCarrier(e){if(e&&e.__SENTRY__&&e.__SENTRY__.hub){return true}return false}function getHubFromCarrier(e){if(e&&e.__SENTRY__&&e.__SENTRY__.hub){return e.__SENTRY__.hub}e.__SENTRY__=e.__SENTRY__||{};e.__SENTRY__.hub=new E;return e.__SENTRY__.hub}function setHubOnCarrier(e,t){if(!e){return false}e.__SENTRY__=e.__SENTRY__||{};e.__SENTRY__.hub=t;return true}function callOnHub(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}var r=getCurrentHub();if(r&&r[e]){return r[e].apply(r,a["d"](t))}throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function captureException(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return callOnHub("captureException",e,{originalException:e,syntheticException:t})}function captureMessage(e,t){var n;try{throw new Error(e)}catch(e){n=e}return callOnHub("captureMessage",e,t,{originalException:e,syntheticException:n})}function captureEvent(e){return callOnHub("captureEvent",e)}function configureScope(e){callOnHub("configureScope",e)}function addBreadcrumb(e){callOnHub("addBreadcrumb",e)}function setContext(e,t){callOnHub("setContext",e,t)}function setExtras(e){callOnHub("setExtras",e)}function setTags(e){callOnHub("setTags",e)}function setExtra(e,t){callOnHub("setExtra",e,t)}function setTag(e,t){callOnHub("setTag",e,t)}function setUser(e){callOnHub("setUser",e)}function withScope(e){callOnHub("withScope",e)}function _callOnClient(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}callOnHub.apply(void 0,a["d"](["_invokeClient",e],t))}var O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?setProtoOf:mixinProperties);function setProtoOf(e,t){e.__proto__=t;return e}function mixinProperties(e,t){for(var n in t){if(!e.hasOwnProperty(n)){e[n]=t[n]}}return e}var S=function(e){a["b"](SentryError,e);function SentryError(t){var n=this.constructor;var r=e.call(this,t)||this;r.message=t;r.name=n.prototype.constructor.name;O(r,n.prototype);return r}return SentryError}(Error);var x=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/;var j="Invalid Dsn";var w=function(){function Dsn(e){if(typeof e==="string"){this._fromString(e)}else{this._fromComponents(e)}this._validate()}Dsn.prototype.toString=function(e){if(e===void 0){e=false}var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId,s=t.protocol,u=t.user;return s+"://"+u+(e&&i?":"+i:"")+("@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a)};Dsn.prototype._fromString=function(e){var t=x.exec(e);if(!t){throw new S(j)}var n=a["c"](t.slice(1),6),r=n[0],i=n[1],o=n[2],s=o===void 0?"":o,u=n[3],c=n[4],f=c===void 0?"":c,l=n[5];var p="";var d=l;var h=d.split("/");if(h.length>1){p=h.slice(0,-1).join("/");d=h.pop()}this._fromComponents({host:u,pass:s,path:p,projectId:d,port:f,protocol:r,user:i})};Dsn.prototype._fromComponents=function(e){this.protocol=e.protocol;this.user=e.user;this.pass=e.pass||"";this.host=e.host;this.port=e.port||"";this.path=e.path||"";this.projectId=e.projectId};Dsn.prototype._validate=function(){var e=this;["protocol","user","host","projectId"].forEach((function(t){if(!e[t]){throw new S(j)}}));if(this.protocol!=="http"&&this.protocol!=="https"){throw new S(j)}if(this.port&&isNaN(parseInt(this.port,10))){throw new S(j)}};return Dsn}();var k=n(574);var T="7";var H=function(){function API(e){this.dsn=e;this._dsnObject=new w(e)}API.prototype.getDsn=function(){return this._dsnObject};API.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()};API.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e=this._dsnObject;var t={sentry_key:e.user,sentry_version:T};return this.getStoreEndpoint()+"?"+Object(k["e"])(t)};API.prototype._getBaseUrl=function(){var e=this._dsnObject;var t=e.protocol?e.protocol+":":"";var n=e.port?":"+e.port:"";return t+"//"+e.host+n};API.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"};API.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject;var r=["Sentry sentry_version="+T];r.push("sentry_client="+e+"/"+t);r.push("sentry_key="+n.user);if(n.pass){r.push("sentry_secret="+n.pass)}return{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}};API.prototype.getReportDialogEndpoint=function(e){if(e===void 0){e={}}var t=this._dsnObject;var n=""+this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/";var r=[];r.push("dsn="+t.toString());for(var i in e){if(i==="user"){if(!e.user){continue}if(e.user.name){r.push("name="+encodeURIComponent(e.user.name))}if(e.user.email){r.push("email="+encodeURIComponent(e.user.email))}}else{r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]))}}if(r.length){return n+"?"+r.join("&")}return n};return API}();var C=n(370);var I=[];function getIntegrationsToSetup(e){var t=e.defaultIntegrations&&a["d"](e.defaultIntegrations)||[];var n=e.integrations;var r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name}));var o=[];t.forEach((function(e){if(i.indexOf(e.name)===-1&&o.indexOf(e.name)===-1){r.push(e);o.push(e.name)}}));n.forEach((function(e){if(o.indexOf(e.name)===-1){r.push(e);o.push(e.name)}}))}else if(typeof n==="function"){r=n(t);r=Array.isArray(r)?r:[r]}else{r=a["d"](t)}var s=r.map((function(e){return e.name}));var u="Debug";if(s.indexOf(u)!==-1){r.push.apply(r,a["d"](r.splice(s.indexOf(u),1)))}return r}function setupIntegration(e){if(I.indexOf(e.name)!==-1){return}e.setupOnce(addGlobalEventProcessor,getCurrentHub);I.push(e.name);_.log("Integration installed: "+e.name)}function setupIntegrations(e){var t={};getIntegrationsToSetup(e).forEach((function(e){t[e.name]=e;setupIntegration(e)}));return t}var F=function(){function BaseClient(e,t){this._integrations={};this._processing=false;this._backend=new e(t);this._options=t;if(t.dsn){this._dsn=new w(t.dsn)}}BaseClient.prototype.captureException=function(e,t,n){var r=this;var i=t&&t.event_id;this._processing=true;this._getBackend().eventFromException(e,t).then((function(e){return r._processEvent(e,t,n)})).then((function(e){i=e&&e.event_id;r._processing=false})).then(null,(function(e){_.error(e);r._processing=false}));return i};BaseClient.prototype.captureMessage=function(e,t,n,r){var i=this;var o=n&&n.event_id;this._processing=true;var a=Object(c["i"])(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n);a.then((function(e){return i._processEvent(e,n,r)})).then((function(e){o=e&&e.event_id;i._processing=false})).then(null,(function(e){_.error(e);i._processing=false}));return o};BaseClient.prototype.captureEvent=function(e,t,n){var r=this;var i=t&&t.event_id;this._processing=true;this._processEvent(e,t,n).then((function(e){i=e&&e.event_id;r._processing=false})).then(null,(function(e){_.error(e);r._processing=false}));return i};BaseClient.prototype.getDsn=function(){return this._dsn};BaseClient.prototype.getOptions=function(){return this._options};BaseClient.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){clearInterval(n.interval);return t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))};BaseClient.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){t.getOptions().enabled=false;return e}))};BaseClient.prototype.setupIntegrations=function(){if(this._isEnabled()){this._integrations=setupIntegrations(this._options)}};BaseClient.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){_.warn("Cannot retrieve integration "+e.id+" from the current Client");return null}};BaseClient.prototype._isClientProcessing=function(e){var t=this;return new l((function(n){var r=0;var i=1;var o=0;clearInterval(o);o=setInterval((function(){if(!t._processing){n({interval:o,ready:true})}else{r+=i;if(e&&r>=e){n({interval:o,ready:false})}}}),i)}))};BaseClient.prototype._getBackend=function(){return this._backend};BaseClient.prototype._isEnabled=function(){return this.getOptions().enabled!==false&&this._dsn!==undefined};BaseClient.prototype._prepareEvent=function(e,t,n){var r=this;var i=this.getOptions(),o=i.environment,s=i.release,u=i.dist,c=i.maxValueLength,f=c===void 0?250:c,d=i.normalizeDepth,h=d===void 0?3:d;var v=a["a"]({},e);if(v.environment===undefined&&o!==undefined){v.environment=o}if(v.release===undefined&&s!==undefined){v.release=s}if(v.dist===undefined&&u!==undefined){v.dist=u}if(v.message){v.message=Object(C["d"])(v.message,f)}var g=v.exception&&v.exception.values&&v.exception.values[0];if(g&&g.value){g.value=Object(C["d"])(g.value,f)}var _=v.request;if(_&&_.url){_.url=Object(C["d"])(_.url,f)}if(v.event_id===undefined){v.event_id=n&&n.event_id?n.event_id:Object(p["m"])()}this._addIntegrations(v.sdk);var b=l.resolve(v);if(t){b=t.applyToEvent(v,n)}return b.then((function(e){if(typeof h==="number"&&h>0){return r._normalizeEvent(e,h)}return e}))};BaseClient.prototype._normalizeEvent=function(e,t){if(!e){return null}return a["a"]({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return a["a"]({},e,e.data&&{data:Object(k["c"])(e.data,t)})}))},e.user&&{user:Object(k["c"])(e.user,t)},e.contexts&&{contexts:Object(k["c"])(e.contexts,t)},e.extra&&{extra:Object(k["c"])(e.extra,t)})};BaseClient.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);if(e&&t.length>0){e.integrations=t}};BaseClient.prototype._processEvent=function(e,t,n){var r=this;var i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled()){return l.reject("SDK not enabled, will not send event.")}if(typeof a==="number"&&Math.random()>a){return l.reject("This event has been sampled, will not send event.")}return new l((function(i,a){r._prepareEvent(e,n,t).then((function(e){if(e===null){a("An event processor returned null, will not send event.");return}var n=e;var s=t&&t.data&&t.data.__sentry__===true;if(s||!o){r._getBackend().sendEvent(n);i(n);return}var u=o(e,t);if(typeof u==="undefined"){_.error("`beforeSend` method has to return `null` or a valid event.")}else if(Object(c["m"])(u)){r._handleAsyncBeforeSend(u,i,a)}else{n=u;if(n===null){_.log("`beforeSend` returned `null`, will not send event.");i(null);return}r._getBackend().sendEvent(n);i(n)}})).then(null,(function(e){r.captureException(e,{data:{__sentry__:true},originalException:e});a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))}))};BaseClient.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){if(e===null){n("`beforeSend` returned `null`, will not send event.");return}r._getBackend().sendEvent(e);t(e)})).then(null,(function(e){n("beforeSend rejected with "+e)}))};return BaseClient}();var R=function(){function NoopTransport(){}NoopTransport.prototype.sendEvent=function(e){return l.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})};NoopTransport.prototype.close=function(e){return l.resolve(true)};return NoopTransport}();var B=function(){function BaseBackend(e){this._options=e;if(!this._options.dsn){_.warn("No DSN provided, backend will not do anything.")}this._transport=this._setupTransport()}BaseBackend.prototype._setupTransport=function(){return new R};BaseBackend.prototype.eventFromException=function(e,t){throw new S("Backend has to implement `eventFromException` method")};BaseBackend.prototype.eventFromMessage=function(e,t,n){throw new S("Backend has to implement `eventFromMessage` method")};BaseBackend.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){_.error("Error while sending event: "+e)}))};BaseBackend.prototype.getTransport=function(){return this._transport};return BaseBackend}();function supportsErrorEvent(){try{new ErrorEvent("");return true}catch(e){return false}}function supportsDOMError(){try{new DOMError("");return true}catch(e){return false}}function supportsDOMException(){try{new DOMException("");return true}catch(e){return false}}function supportsFetch(){if(!("fetch"in Object(p["f"])())){return false}try{new Headers;new Request("");new Response;return true}catch(e){return false}}function isNativeFetch(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if(!supportsFetch()){return false}var e=Object(p["f"])();if(isNativeFetch(e.fetch)){return true}var t=false;var n=e.document;if(n&&typeof n.createElement==="function"){try{var r=n.createElement("iframe");r.hidden=true;n.head.appendChild(r);if(r.contentWindow&&r.contentWindow.fetch){t=isNativeFetch(r.contentWindow.fetch)}n.head.removeChild(r)}catch(e){_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return t}function supportsReportingObserver(){return"ReportingObserver"in Object(p["f"])()}function supportsReferrerPolicy(){if(!supportsFetch()){return false}try{new Request("_",{referrerPolicy:"origin"});return true}catch(e){return false}}function supportsHistory(){var e=Object(p["f"])();var t=e.chrome;var n=t&&t.app&&t.app.runtime;var r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}var P="?";var N=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;var D=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i;var L=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var U=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;var M=/\((\S*)(?::(\d+))(?::(\d+))\)/;function computeStackTrace(e){var t=null;var n=e&&e.framesToPop;try{t=computeStackTraceFromStacktraceProp(e);if(t){return popFrames(t,n)}}catch(e){}try{t=computeStackTraceFromStackProp(e);if(t){return popFrames(t,n)}}catch(e){}return{message:extractMessage(e),name:e&&e.name,stack:[],failed:true}}function computeStackTraceFromStackProp(e){if(!e||!e.stack){return null}var t=[];var n=e.stack.split("\n");var r;var i;var o;var a;for(var s=0;s<n.length;++s){if(o=N.exec(n[s])){var u=o[2]&&o[2].indexOf("native")===0;r=o[2]&&o[2].indexOf("eval")===0;if(r&&(i=M.exec(o[2]))){o[2]=i[1];o[3]=i[2];o[4]=i[3]}a={url:o[2]&&o[2].indexOf("address at ")===0?o[2].substr("address at ".length):o[2],func:o[1]||P,args:u?[o[2]]:[],line:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}else if(o=L.exec(n[s])){a={url:o[2],func:o[1]||P,args:[],line:+o[3],column:o[4]?+o[4]:null}}else if(o=D.exec(n[s])){r=o[3]&&o[3].indexOf(" > eval")>-1;if(r&&(i=U.exec(o[3]))){o[1]=o[1]||"eval";o[3]=i[1];o[4]=i[2];o[5]=""}else if(s===0&&!o[5]&&e.columnNumber!==void 0){t[0].column=e.columnNumber+1}a={url:o[3],func:o[1]||P,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null}}else{continue}if(!a.func&&a.line){a.func=P}t.push(a)}if(!t.length){return null}return{message:extractMessage(e),name:e.name,stack:t}}function computeStackTraceFromStacktraceProp(e){if(!e||!e.stacktrace){return null}var t=e.stacktrace;var n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;var r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i;var i=t.split("\n");var o=[];var a;for(var s=0;s<i.length;s+=2){var u=null;if(a=n.exec(i[s])){u={url:a[2],func:a[3],args:[],line:+a[1],column:null}}else if(a=r.exec(i[s])){u={url:a[6],func:a[3]||a[4],args:a[5]?a[5].split(","):[],line:+a[1],column:+a[2]}}if(u){if(!u.func&&u.line){u.func=P}o.push(u)}}if(!o.length){return null}return{message:extractMessage(e),name:e.name,stack:o}}function popFrames(e,t){try{return a["a"]({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function extractMessage(e){var t=e&&e.message;if(!t){return"No error message"}if(t.error&&typeof t.error.message==="string"){return t.error.message}return t}var A=50;function exceptionFromStacktrace(e){var t=prepareFramesForEvent(e.stack);var n={type:e.name,value:e.message};if(t&&t.length){n.stacktrace={frames:t}}if(n.type===undefined&&n.value===""){n.value="Unrecoverable error caught"}return n}function eventFromPlainObject(e,t,n){var r={exception:{values:[{type:Object(c["f"])(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(k["a"])(e)}]},extra:{__serialized__:Object(k["d"])(e)}};if(t){var i=computeStackTrace(t);var o=prepareFramesForEvent(i.stack);r.stacktrace={frames:o}}return r}function eventFromStacktrace(e){var t=exceptionFromStacktrace(e);return{exception:{values:[t]}}}function prepareFramesForEvent(e){if(!e||!e.length){return[]}var t=e;var n=t[0].func||"";var r=t[t.length-1].func||"";if(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1){t=t.slice(1)}if(r.indexOf("sentryWrapped")!==-1){t=t.slice(0,-1)}return t.map((function(e){return{colno:e.column===null?undefined:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:true,lineno:e.line===null?undefined:e.line}})).slice(0,A).reverse()}function eventFromUnknownInput(e,t,n){if(n===void 0){n={}}var r;if(Object(c["e"])(e)&&e.error){var i=e;e=i.error;r=eventFromStacktrace(computeStackTrace(e));return r}if(Object(c["a"])(e)||Object(c["b"])(e)){var o=e;var a=o.name||(Object(c["a"])(o)?"DOMError":"DOMException");var s=o.message?a+": "+o.message:a;r=eventFromString(s,t,n);Object(p["b"])(r,s);return r}if(Object(c["d"])(e)){r=eventFromStacktrace(computeStackTrace(e));return r}if(Object(c["h"])(e)||Object(c["f"])(e)){var u=e;r=eventFromPlainObject(u,t,n.rejection);Object(p["a"])(r,{synthetic:true});return r}r=eventFromString(e,t,n);Object(p["b"])(r,""+e,undefined);Object(p["a"])(r,{synthetic:true});return r}function eventFromString(e,t,n){if(n===void 0){n={}}var r={message:e};if(n.attachStacktrace&&t){var i=computeStackTrace(t);var o=prepareFramesForEvent(i.stack);r.stacktrace={frames:o}}return r}var G=function(){function PromiseBuffer(e){this._limit=e;this._buffer=[]}PromiseBuffer.prototype.isReady=function(){return this._limit===undefined||this.length()<this._limit};PromiseBuffer.prototype.add=function(e){var t=this;if(!this.isReady()){return l.reject(new S("Not adding Promise due to buffer limit reached."))}if(this._buffer.indexOf(e)===-1){this._buffer.push(e)}e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))}));return e};PromiseBuffer.prototype.remove=function(e){var t=this._buffer.splice(this._buffer.indexOf(e),1)[0];return t};PromiseBuffer.prototype.length=function(){return this._buffer.length};PromiseBuffer.prototype.drain=function(e){var t=this;return new l((function(n){var r=setTimeout((function(){if(e&&e>0){n(false)}}),e);l.all(t._buffer).then((function(){clearTimeout(r);n(true)})).then(null,(function(){n(true)}))}))};return PromiseBuffer}();var q=function(){function BaseTransport(e){this.options=e;this._buffer=new G(30);this.url=new H(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}BaseTransport.prototype.sendEvent=function(e){throw new S("Transport Class has to implement `sendEvent` method")};BaseTransport.prototype.close=function(e){return this._buffer.drain(e)};return BaseTransport}();var z=Object(p["f"])();var W=function(e){a["b"](FetchTransport,e);function FetchTransport(){var t=e!==null&&e.apply(this,arguments)||this;t._disabledUntil=new Date(Date.now());return t}FetchTransport.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil){return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429})}var n={body:JSON.stringify(e),method:"POST",referrerPolicy:supportsReferrerPolicy()?"origin":""};if(this.options.headers!==undefined){n.headers=this.options.headers}return this._buffer.add(new l((function(e,r){z.fetch(t.url,n).then((function(n){var i=u.fromHttpCode(n.status);if(i===u.Success){e({status:i});return}if(i===u.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(p["j"])(o,n.headers.get("Retry-After")));_.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)})).catch(r)})))};return FetchTransport}(q);var Y=function(e){a["b"](XHRTransport,e);function XHRTransport(){var t=e!==null&&e.apply(this,arguments)||this;t._disabledUntil=new Date(Date.now());return t}XHRTransport.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil){return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429})}return this._buffer.add(new l((function(n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState!==4){return}var e=u.fromHttpCode(i.status);if(e===u.Success){n({status:e});return}if(e===u.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(p["j"])(o,i.getResponseHeader("Retry-After")));_.warn("Too many requests, backing off till: "+t._disabledUntil)}r(i)};i.open("POST",t.url);for(var o in t.options.headers){if(t.options.headers.hasOwnProperty(o)){i.setRequestHeader(o,t.options.headers[o])}}i.send(JSON.stringify(e))})))};return XHRTransport}(q);var X=function(e){a["b"](BrowserBackend,e);function BrowserBackend(){return e!==null&&e.apply(this,arguments)||this}BrowserBackend.prototype._setupTransport=function(){if(!this._options.dsn){return e.prototype._setupTransport.call(this)}var t=a["a"]({},this._options.transportOptions,{dsn:this._options.dsn});if(this._options.transport){return new this._options.transport(t)}if(supportsFetch()){return new W(t)}return new Y(t)};BrowserBackend.prototype.eventFromException=function(e,t){var n=t&&t.syntheticException||undefined;var r=eventFromUnknownInput(e,n,{attachStacktrace:this._options.attachStacktrace});Object(p["a"])(r,{handled:true,type:"generic"});r.level=s.Error;if(t&&t.event_id){r.event_id=t.event_id}return l.resolve(r)};BrowserBackend.prototype.eventFromMessage=function(e,t,n){if(t===void 0){t=s.Info}var r=n&&n.syntheticException||undefined;var i=eventFromString(e,r,{attachStacktrace:this._options.attachStacktrace});i.level=t;if(n&&n.event_id){i.event_id=n.event_id}return l.resolve(i)};return BrowserBackend}(B);var V="sentry.javascript.browser";var J="5.15.4";var $=function(e){a["b"](BrowserClient,e);function BrowserClient(t){if(t===void 0){t={}}return e.call(this,X,t)||this}BrowserClient.prototype._prepareEvent=function(t,n,r){t.platform=t.platform||"javascript";t.sdk=a["a"]({},t.sdk,{name:V,packages:a["d"](t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:J}]),version:J});return e.prototype._prepareEvent.call(this,t,n,r)};BrowserClient.prototype.showReportDialog=function(e){if(e===void 0){e={}}var t=Object(p["f"])().document;if(!t){return}if(!this._isEnabled()){_.error("Trying to call showReportDialog with Sentry Client is disabled");return}var n=e.dsn||this.getDsn();if(!e.eventId){_.error("Missing `eventId` option in showReportDialog call");return}if(!n){_.error("Missing `Dsn` option in showReportDialog call");return}var r=t.createElement("script");r.async=true;r.src=new H(n).getReportDialogEndpoint(e);if(e.onLoad){r.onload=e.onLoad}(t.head||t.body).appendChild(r)};return BrowserClient}(F);var K;var Z=function(){function FunctionToString(){this.name=FunctionToString.id}FunctionToString.prototype.setupOnce=function(){K=Function.prototype.toString;Function.prototype.toString=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=this.__sentry_original__||this;return K.apply(n,e)}};FunctionToString.id="FunctionToString";return FunctionToString}();var Q=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];var ee=function(){function InboundFilters(e){if(e===void 0){e={}}this._options=e;this.name=InboundFilters.id}InboundFilters.prototype.setupOnce=function(){addGlobalEventProcessor((function(e){var t=getCurrentHub();if(!t){return e}var n=t.getIntegration(InboundFilters);if(n){var r=t.getClient();var i=r?r.getOptions():{};var o=n._mergeOptions(i);if(n._shouldDropEvent(e,o)){return null}}return e}))};InboundFilters.prototype._shouldDropEvent=function(e,t){if(this._isSentryError(e,t)){_.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(p["d"])(e));return true}if(this._isIgnoredError(e,t)){_.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(p["d"])(e));return true}if(this._isBlacklistedUrl(e,t)){_.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(p["d"])(e)+".\nUrl: "+this._getEventFilterUrl(e));return true}if(!this._isWhitelistedUrl(e,t)){_.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(p["d"])(e)+".\nUrl: "+this._getEventFilterUrl(e));return true}return false};InboundFilters.prototype._isSentryError=function(e,t){if(t===void 0){t={}}if(!t.ignoreInternal){return false}try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].type==="SentryError"||false}catch(e){return false}};InboundFilters.prototype._isIgnoredError=function(e,t){if(t===void 0){t={}}if(!t.ignoreErrors||!t.ignoreErrors.length){return false}return this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(C["a"])(e,t)}))}))};InboundFilters.prototype._isBlacklistedUrl=function(e,t){if(t===void 0){t={}}if(!t.blacklistUrls||!t.blacklistUrls.length){return false}var n=this._getEventFilterUrl(e);return!n?false:t.blacklistUrls.some((function(e){return Object(C["a"])(n,e)}))};InboundFilters.prototype._isWhitelistedUrl=function(e,t){if(t===void 0){t={}}if(!t.whitelistUrls||!t.whitelistUrls.length){return true}var n=this._getEventFilterUrl(e);return!n?true:t.whitelistUrls.some((function(e){return Object(C["a"])(n,e)}))};InboundFilters.prototype._mergeOptions=function(e){if(e===void 0){e={}}return{blacklistUrls:a["d"](this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:a["d"](this._options.ignoreErrors||[],e.ignoreErrors||[],Q),ignoreInternal:typeof this._options.ignoreInternal!=="undefined"?this._options.ignoreInternal:true,whitelistUrls:a["d"](this._options.whitelistUrls||[],e.whitelistUrls||[])}};InboundFilters.prototype._getPossibleEventMessages=function(e){if(e.message){return[e.message]}if(e.exception){try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=n===void 0?"":n,i=t.value,o=i===void 0?"":i;return[""+o,r+": "+o]}catch(t){_.error("Cannot extract message for event "+Object(p["d"])(e));return[]}}return[]};InboundFilters.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){_.error("Cannot extract url for event "+Object(p["d"])(e));return null}};InboundFilters.id="InboundFilters";return InboundFilters}();function initAndBind(e,t){if(t.debug===true){_.enable()}var n=getCurrentHub();var r=new e(t);n.bindClient(r)}var te=0;function shouldIgnoreOnError(){return te>0}function ignoreNextOnError(){te+=1;setTimeout((function(){te-=1}))}function wrap(e,t,n){if(t===void 0){t={}}if(typeof e!=="function"){return e}try{if(e.__sentry__){return e}if(e.__sentry_wrapped__){return e.__sentry_wrapped__}}catch(t){return e}var sentryWrapped=function(){var r=Array.prototype.slice.call(arguments);try{if(n&&typeof n==="function"){n.apply(this,arguments)}var i=r.map((function(e){return wrap(e,t)}));if(e.handleEvent){return e.handleEvent.apply(this,i)}return e.apply(this,i)}catch(e){ignoreNextOnError();withScope((function(n){n.addEventProcessor((function(e){var n=a["a"]({},e);if(t.mechanism){Object(p["b"])(n,undefined,undefined);Object(p["a"])(n,t.mechanism)}n.extra=a["a"]({},n.extra,{arguments:r});return n}));captureException(e)}));throw e}};try{for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){sentryWrapped[r]=e[r]}}}catch(e){}e.prototype=e.prototype||{};sentryWrapped.prototype=e.prototype;Object.defineProperty(e,"__sentry_wrapped__",{enumerable:false,value:sentryWrapped});Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:false,value:true},__sentry_original__:{enumerable:false,value:e}});try{var i=Object.getOwnPropertyDescriptor(sentryWrapped,"name");if(i.configurable){Object.defineProperty(sentryWrapped,"name",{get:function(){return e.name}})}}catch(e){}return sentryWrapped}var ne=function(){function TryCatch(){this._ignoreOnError=0;this.name=TryCatch.id}TryCatch.prototype._wrapTimeFunction=function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=t[0];t[0]=wrap(r,{mechanism:{data:{function:Object(p["e"])(e)},handled:true,type:"instrument"}});return e.apply(this,t)}};TryCatch.prototype._wrapRAF=function(e){return function(t){return e(wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(p["e"])(e)},handled:true,type:"instrument"}}))}};TryCatch.prototype._wrapEventTarget=function(e){var t=Object(p["f"])();var n=t[e]&&t[e].prototype;if(!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")){return}Object(k["b"])(n,"addEventListener",(function(t){return function(n,r,i){try{if(typeof r.handleEvent==="function"){r.handleEvent=wrap(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(p["e"])(r),target:e},handled:true,type:"instrument"}})}}catch(e){}return t.call(this,n,wrap(r,{mechanism:{data:{function:"addEventListener",handler:Object(p["e"])(r),target:e},handled:true,type:"instrument"}}),i)}}));Object(k["b"])(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}}))};TryCatch.prototype._wrapXHR=function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=this;var i=["onload","onerror","onprogress","onreadystatechange"];i.forEach((function(e){if(e in r&&typeof r[e]==="function"){Object(k["b"])(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(p["e"])(t)},handled:true,type:"instrument"}};if(t.__sentry_original__){n.mechanism.data.handler=Object(p["e"])(t.__sentry_original__)}return wrap(t,n)}))}}));return e.apply(this,t)}};TryCatch.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(p["f"])();Object(k["b"])(e,"setTimeout",this._wrapTimeFunction.bind(this));Object(k["b"])(e,"setInterval",this._wrapTimeFunction.bind(this));Object(k["b"])(e,"requestAnimationFrame",this._wrapRAF.bind(this));if("XMLHttpRequest"in e){Object(k["b"])(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this))}["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))};TryCatch.id="TryCatch";return TryCatch}();var re=Object(p["f"])();var ie={};var oe={};function instrument(e){if(oe[e]){return}oe[e]=true;switch(e){case"console":instrumentConsole();break;case"dom":instrumentDOM();break;case"xhr":instrumentXHR();break;case"fetch":instrumentFetch();break;case"history":instrumentHistory();break;case"error":instrumentError();break;case"unhandledrejection":instrumentUnhandledRejection();break;default:_.warn("unknown instrumentation type:",e)}}function addInstrumentationHandler(e){if(!e||typeof e.type!=="string"||typeof e.callback!=="function"){return}ie[e.type]=ie[e.type]||[];ie[e.type].push(e.callback);instrument(e.type)}function triggerHandlers(e,t){var n,r;if(!e||!ie[e]){return}try{for(var i=a["e"](ie[e]||[]),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(t)}catch(t){_.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(p["e"])(s)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(n)throw n.error}}}function instrumentConsole(){if(!("console"in re)){return}["debug","info","warn","error","log","assert"].forEach((function(e){if(!(e in re.console)){return}Object(k["b"])(re.console,e,(function(t){return function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}triggerHandlers("console",{args:n,level:e});if(t){Function.prototype.apply.call(t,re.console,n)}}}))}))}function instrumentFetch(){if(!supportsNativeFetch()){return}Object(k["b"])(re,"fetch",(function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r={args:t,fetchData:{method:getFetchMethod(t),url:getFetchUrl(t)},startTimestamp:Date.now()};triggerHandlers("fetch",a["a"]({},r));return e.apply(re,t).then((function(e){triggerHandlers("fetch",a["a"]({},r,{endTimestamp:Date.now(),response:e}));return e}),(function(e){triggerHandlers("fetch",a["a"]({},r,{endTimestamp:Date.now(),error:e}));throw e}))}}))}function getFetchMethod(e){if(e===void 0){e=[]}if("Request"in re&&Object(c["g"])(e[0],Request)&&e[0].method){return String(e[0].method).toUpperCase()}if(e[1]&&e[1].method){return String(e[1].method).toUpperCase()}return"GET"}function getFetchUrl(e){if(e===void 0){e=[]}if(typeof e[0]==="string"){return e[0]}if("Request"in re&&Object(c["g"])(e[0],Request)){return e[0].url}return String(e[0])}function instrumentXHR(){if(!("XMLHttpRequest"in re)){return}var e=XMLHttpRequest.prototype;Object(k["b"])(e,"open",(function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=t[1];this.__sentry_xhr__={method:Object(c["k"])(t[0])?t[0].toUpperCase():t[0],url:t[1]};if(Object(c["k"])(r)&&this.__sentry_xhr__.method==="POST"&&r.match(/sentry_key/)){this.__sentry_own_request__=true}return e.apply(this,t)}}));Object(k["b"])(e,"send",(function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=this;var i={args:t,startTimestamp:Date.now(),xhr:r};triggerHandlers("xhr",a["a"]({},i));r.addEventListener("readystatechange",(function(){if(r.readyState===4){try{if(r.__sentry_xhr__){r.__sentry_xhr__.status_code=r.status}}catch(e){}triggerHandlers("xhr",a["a"]({},i,{endTimestamp:Date.now()}))}}));return e.apply(this,t)}}))}var ae;function instrumentHistory(){if(!supportsHistory()){return}var e=re.onpopstate;re.onpopstate=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=re.location.href;var i=ae;ae=r;triggerHandlers("history",{from:i,to:r});if(e){return e.apply(this,t)}};function historyReplacementFunction(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=t.length>2?t[2]:undefined;if(r){var i=ae;var o=String(r);ae=o;triggerHandlers("history",{from:i,to:o})}return e.apply(this,t)}}Object(k["b"])(re.history,"pushState",historyReplacementFunction);Object(k["b"])(re.history,"replaceState",historyReplacementFunction)}function instrumentDOM(){if(!("document"in re)){return}re.document.addEventListener("click",domEventHandler("click",triggerHandlers.bind(null,"dom")),false);re.document.addEventListener("keypress",keypressEventHandler(triggerHandlers.bind(null,"dom")),false);["EventTarget","Node"].forEach((function(e){var t=re[e]&&re[e].prototype;if(!t||!t.hasOwnProperty||!t.hasOwnProperty("addEventListener")){return}Object(k["b"])(t,"addEventListener",(function(e){return function(t,n,r){if(n&&n.handleEvent){if(t==="click"){Object(k["b"])(n,"handleEvent",(function(e){return function(t){domEventHandler("click",triggerHandlers.bind(null,"dom"))(t);return e.call(this,t)}}))}if(t==="keypress"){Object(k["b"])(n,"handleEvent",(function(e){return function(t){keypressEventHandler(triggerHandlers.bind(null,"dom"))(t);return e.call(this,t)}}))}}else{if(t==="click"){domEventHandler("click",triggerHandlers.bind(null,"dom"),true)(this)}if(t==="keypress"){keypressEventHandler(triggerHandlers.bind(null,"dom"))(this)}}return e.call(this,t,n,r)}}));Object(k["b"])(t,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}}))}))}var se=1e3;var ue=0;var ce;var fe;function domEventHandler(e,t,n){if(n===void 0){n=false}return function(r){ce=undefined;if(!r||fe===r){return}fe=r;if(ue){clearTimeout(ue)}if(n){ue=setTimeout((function(){t({event:r,name:e})}))}else{t({event:r,name:e})}}}function keypressEventHandler(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(!r||r!=="INPUT"&&r!=="TEXTAREA"&&!n.isContentEditable){return}if(!ce){domEventHandler("input",e)(t)}clearTimeout(ce);ce=setTimeout((function(){ce=undefined}),se)}}var le=null;function instrumentError(){le=re.onerror;re.onerror=function(e,t,n,r,i){triggerHandlers("error",{column:r,error:i,line:n,msg:e,url:t});if(le){return le.apply(this,arguments)}return false}}var pe=null;function instrumentUnhandledRejection(){pe=re.onunhandledrejection;re.onunhandledrejection=function(e){triggerHandlers("unhandledrejection",e);if(pe){return pe.apply(this,arguments)}return true}}var de=function(){function Breadcrumbs(e){this.name=Breadcrumbs.id;this._options=a["a"]({console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true},e)}Breadcrumbs.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:s.fromString(e.level),message:Object(C["b"])(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){t.message="Assertion failed: "+(Object(C["b"])(e.args.slice(1)," ")||"console.assert");t.data.arguments=e.args.slice(1)}else{return}}getCurrentHub().addBreadcrumb(t,{input:e.args,level:e.level})};Breadcrumbs.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(p["h"])(e.event.target):Object(p["h"])(e.event)}catch(e){t="<unknown>"}if(t.length===0){return}getCurrentHub().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})};Breadcrumbs.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__){return}getCurrentHub().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr});return}if(this._options.sentry&&e.xhr.__sentry_own_request__){addSentryBreadcrumb(e.args[0])}};Breadcrumbs.prototype._fetchBreadcrumb=function(e){if(!e.endTimestamp){return}var t=getCurrentHub().getClient();var n=t&&t.getDsn();if(this._options.sentry&&n){var r=new H(n).getStoreEndpoint();if(r&&e.fetchData.url.indexOf(r)!==-1&&e.fetchData.method==="POST"&&e.args[1]&&e.args[1].body){addSentryBreadcrumb(e.args[1].body);return}}if(e.error){getCurrentHub().addBreadcrumb({category:"fetch",data:a["a"]({},e.fetchData,{status_code:e.response.status}),level:s.Error,type:"http"},{data:e.error,input:e.args})}else{getCurrentHub().addBreadcrumb({category:"fetch",data:a["a"]({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}};Breadcrumbs.prototype._historyBreadcrumb=function(e){var t=Object(p["f"])();var n=e.from;var r=e.to;var i=Object(p["k"])(t.location.href);var o=Object(p["k"])(n);var a=Object(p["k"])(r);if(!o.path){o=i}if(i.protocol===a.protocol&&i.host===a.host){r=a.relative}if(i.protocol===o.protocol&&i.host===o.host){n=o.relative}getCurrentHub().addBreadcrumb({category:"navigation",data:{from:n,to:r}})};Breadcrumbs.prototype.setupOnce=function(){var e=this;if(this._options.console){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}e._consoleBreadcrumb.apply(e,a["d"](t))},type:"console"})}if(this._options.dom){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}e._domBreadcrumb.apply(e,a["d"](t))},type:"dom"})}if(this._options.xhr){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}e._xhrBreadcrumb.apply(e,a["d"](t))},type:"xhr"})}if(this._options.fetch){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}e._fetchBreadcrumb.apply(e,a["d"](t))},type:"fetch"})}if(this._options.history){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}e._historyBreadcrumb.apply(e,a["d"](t))},type:"history"})}};Breadcrumbs.id="Breadcrumbs";return Breadcrumbs}();function addSentryBreadcrumb(e){try{var t=JSON.parse(e);getCurrentHub().addBreadcrumb({category:"sentry."+(t.type==="transaction"?"transaction":"event"),event_id:t.event_id,level:t.level||s.fromString("error"),message:Object(p["d"])(t)},{event:t})}catch(e){_.error("Error while adding sentry type breadcrumb")}}var he=function(){function GlobalHandlers(e){this.name=GlobalHandlers.id;this._onErrorHandlerInstalled=false;this._onUnhandledRejectionHandlerInstalled=false;this._options=a["a"]({onerror:true,onunhandledrejection:true},e)}GlobalHandlers.prototype.setupOnce=function(){Error.stackTraceLimit=50;if(this._options.onerror){_.log("Global Handler attached: onerror");this._installGlobalOnErrorHandler()}if(this._options.onunhandledrejection){_.log("Global Handler attached: onunhandledrejection");this._installGlobalOnUnhandledRejectionHandler()}};GlobalHandlers.prototype._installGlobalOnErrorHandler=function(){var e=this;if(this._onErrorHandlerInstalled){return}addInstrumentationHandler({callback:function(t){var n=t.error;var r=getCurrentHub();var i=r.getIntegration(GlobalHandlers);var o=n&&n.__sentry_own_request__===true;if(!i||shouldIgnoreOnError()||o){return}var a=r.getClient();var s=Object(c["i"])(n)?e._eventFromIncompleteOnError(t.msg,t.url,t.line,t.column):e._enhanceEventWithInitialFrame(eventFromUnknownInput(n,undefined,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:false}),t.url,t.line,t.column);Object(p["a"])(s,{handled:false,type:"onerror"});r.captureEvent(s,{originalException:n})},type:"error"});this._onErrorHandlerInstalled=true};GlobalHandlers.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;if(this._onUnhandledRejectionHandlerInstalled){return}addInstrumentationHandler({callback:function(t){var n=t;try{if("reason"in t){n=t.reason}else if("detail"in t&&"reason"in t.detail){n=t.detail.reason}}catch(e){}var r=getCurrentHub();var i=r.getIntegration(GlobalHandlers);var o=n&&n.__sentry_own_request__===true;if(!i||shouldIgnoreOnError()||o){return true}var a=r.getClient();var u=Object(c["i"])(n)?e._eventFromIncompleteRejection(n):eventFromUnknownInput(n,undefined,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:true});u.level=s.Error;Object(p["a"])(u,{handled:false,type:"onunhandledrejection"});r.captureEvent(u,{originalException:n});return},type:"unhandledrejection"});this._onUnhandledRejectionHandlerInstalled=true};GlobalHandlers.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var o=Object(c["e"])(e)?e.message:e;var a;if(Object(c["k"])(o)){var s=o.match(i);if(s){a=s[1];o=s[2]}}var u={exception:{values:[{type:a||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(u,t,n,r)};GlobalHandlers.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}};GlobalHandlers.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{};e.exception.values=e.exception.values||[];e.exception.values[0]=e.exception.values[0]||{};e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{};e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?undefined:r;var o=isNaN(parseInt(n,10))?undefined:n;var a=Object(c["k"])(t)&&t.length>0?t:Object(p["g"])();if(e.exception.values[0].stacktrace.frames.length===0){e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:true,lineno:o})}return e};GlobalHandlers.id="GlobalHandlers";return GlobalHandlers}();var ve="cause";var ge=5;var _e=function(){function LinkedErrors(e){if(e===void 0){e={}}this.name=LinkedErrors.id;this._key=e.key||ve;this._limit=e.limit||ge}LinkedErrors.prototype.setupOnce=function(){addGlobalEventProcessor((function(e,t){var n=getCurrentHub().getIntegration(LinkedErrors);if(n){return n._handler(e,t)}return e}))};LinkedErrors.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!Object(c["g"])(t.originalException,Error)){return e}var n=this._walkErrorTree(t.originalException,this._key);e.exception.values=a["d"](n,e.exception.values);return e};LinkedErrors.prototype._walkErrorTree=function(e,t,n){if(n===void 0){n=[]}if(!Object(c["g"])(e[t],Error)||n.length+1>=this._limit){return n}var r=computeStackTrace(e[t]);var i=exceptionFromStacktrace(r);return this._walkErrorTree(e[t],t,a["d"]([i],n))};LinkedErrors.id="LinkedErrors";return LinkedErrors}();var be=Object(p["f"])();var me=function(){function UserAgent(){this.name=UserAgent.id}UserAgent.prototype.setupOnce=function(){addGlobalEventProcessor((function(e){if(getCurrentHub().getIntegration(UserAgent)){if(!be.navigator||!be.location){return e}var t=e.request||{};t.url=t.url||be.location.href;t.headers=t.headers||{};t.headers["User-Agent"]=be.navigator.userAgent;return a["a"]({},e,{request:t})}return e}))};UserAgent.id="UserAgent";return UserAgent}();var ye=[new r.InboundFilters,new r.FunctionToString,new ne,new de,new he,new _e,new me];function init(e){if(e===void 0){e={}}if(e.defaultIntegrations===undefined){e.defaultIntegrations=ye}if(e.release===undefined){var t=Object(p["f"])();if(t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id){e.release=t.SENTRY_RELEASE.id}}initAndBind($,e)}function showReportDialog(e){if(e===void 0){e={}}if(!e.eventId){e.eventId=getCurrentHub().lastEventId()}var t=getCurrentHub().getClient();if(t){t.showReportDialog(e)}}function lastEventId(){return getCurrentHub().lastEventId()}function forceLoad(){}function onLoad(e){e()}function flush(e){var t=getCurrentHub().getClient();if(t){return t.flush(e)}return l.reject(false)}function sdk_close(e){var t=getCurrentHub().getClient();if(t){return t.close(e)}return l.reject(false)}function sdk_wrap(e){return wrap(e)()}n.d(t,"Integrations",(function(){return Se}));n.d(t,"Severity",(function(){return s}));n.d(t,"Status",(function(){return u}));n.d(t,"addGlobalEventProcessor",(function(){return addGlobalEventProcessor}));n.d(t,"addBreadcrumb",(function(){return addBreadcrumb}));n.d(t,"captureException",(function(){return captureException}));n.d(t,"captureEvent",(function(){return captureEvent}));n.d(t,"captureMessage",(function(){return captureMessage}));n.d(t,"configureScope",(function(){return configureScope}));n.d(t,"getHubFromCarrier",(function(){return getHubFromCarrier}));n.d(t,"getCurrentHub",(function(){return getCurrentHub}));n.d(t,"Hub",(function(){return E}));n.d(t,"Scope",(function(){return d}));n.d(t,"setContext",(function(){return setContext}));n.d(t,"setExtra",(function(){return setExtra}));n.d(t,"setExtras",(function(){return setExtras}));n.d(t,"setTag",(function(){return setTag}));n.d(t,"setTags",(function(){return setTags}));n.d(t,"setUser",(function(){return setUser}));n.d(t,"withScope",(function(){return withScope}));n.d(t,"BrowserClient",(function(){return $}));n.d(t,"defaultIntegrations",(function(){return ye}));n.d(t,"forceLoad",(function(){return forceLoad}));n.d(t,"init",(function(){return init}));n.d(t,"lastEventId",(function(){return lastEventId}));n.d(t,"onLoad",(function(){return onLoad}));n.d(t,"showReportDialog",(function(){return showReportDialog}));n.d(t,"flush",(function(){return flush}));n.d(t,"close",(function(){return sdk_close}));n.d(t,"wrap",(function(){return sdk_wrap}));n.d(t,"SDK_NAME",(function(){return V}));n.d(t,"SDK_VERSION",(function(){return J}));n.d(t,"Transports",(function(){return o}));var Ee={};var Oe=Object(p["f"])();if(Oe.Sentry&&Oe.Sentry.Integrations){Ee=Oe.Sentry.Integrations}var Se=a["a"]({},Ee,r,i)},291:function(e,t,n){"use strict";n.d(t,"d",(function(){return isError}));n.d(t,"e",(function(){return isErrorEvent}));n.d(t,"a",(function(){return isDOMError}));n.d(t,"b",(function(){return isDOMException}));n.d(t,"k",(function(){return isString}));n.d(t,"i",(function(){return isPrimitive}));n.d(t,"h",(function(){return isPlainObject}));n.d(t,"f",(function(){return isEvent}));n.d(t,"c",(function(){return isElement}));n.d(t,"j",(function(){return isRegExp}));n.d(t,"m",(function(){return isThenable}));n.d(t,"l",(function(){return isSyntheticEvent}));n.d(t,"g",(function(){return isInstanceOf}));function isError(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return true;case"[object Exception]":return true;case"[object DOMException]":return true;default:return isInstanceOf(e,Error)}}function isErrorEvent(e){return Object.prototype.toString.call(e)==="[object ErrorEvent]"}function isDOMError(e){return Object.prototype.toString.call(e)==="[object DOMError]"}function isDOMException(e){return Object.prototype.toString.call(e)==="[object DOMException]"}function isString(e){return Object.prototype.toString.call(e)==="[object String]"}function isPrimitive(e){return e===null||typeof e!=="object"&&typeof e!=="function"}function isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isEvent(e){return typeof Event!=="undefined"&&isInstanceOf(e,Event)}function isElement(e){return typeof Element!=="undefined"&&isInstanceOf(e,Element)}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function isThenable(e){return Boolean(e&&e.then&&typeof e.then==="function")}function isSyntheticEvent(e){return isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function isInstanceOf(e,t){try{return e instanceof t}catch(e){return false}}},307:function(e,t,n){"use strict";(function(e,r,i){n.d(t,"i",(function(){return isNodeEnv}));n.d(t,"f",(function(){return getGlobalObject}));n.d(t,"m",(function(){return uuid4}));n.d(t,"k",(function(){return parseUrl}));n.d(t,"d",(function(){return getEventDescription}));n.d(t,"c",(function(){return consoleSandbox}));n.d(t,"b",(function(){return addExceptionTypeValue}));n.d(t,"a",(function(){return addExceptionMechanism}));n.d(t,"g",(function(){return getLocationHref}));n.d(t,"h",(function(){return htmlTreeAsString}));n.d(t,"l",(function(){return timestampWithMs}));n.d(t,"j",(function(){return parseRetryAfterHeader}));n.d(t,"e",(function(){return getFunctionName}));var o=n(291);var a=n(370);function dynamicRequire(e,t){return e.require(t)}function isNodeEnv(){return Object.prototype.toString.call(typeof e!=="undefined"?e:0)==="[object process]"}var s={};function getGlobalObject(){return isNodeEnv()?r:typeof window!=="undefined"?window:typeof self!=="undefined"?self:s}function uuid4(){var e=getGlobalObject();var t=e.crypto||e.msCrypto;if(!(t===void 0)&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n);n[3]=n[3]&4095|16384;n[4]=n[4]&16383|32768;var pad=function(e){var t=e.toString(16);while(t.length<4){t="0"+t}return t};return pad(n[0])+pad(n[1])+pad(n[2])+pad(n[3])+pad(n[4])+pad(n[5])+pad(n[6])+pad(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.random()*16|0;var n=e==="x"?t:t&3|8;return n.toString(16)}))}function parseUrl(e){if(!e){return{}}var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}var n=t[6]||"";var r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function getEventDescription(e){if(e.message){return e.message}if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];if(t.type&&t.value){return t.type+": "+t.value}return t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function consoleSandbox(e){var t=getGlobalObject();var n=["debug","info","warn","error","log","assert"];if(!("console"in t)){return e()}var r=t.console;var i={};n.forEach((function(e){if(e in t.console&&r[e].__sentry_original__){i[e]=r[e];r[e]=r[e].__sentry_original__}}));var o=e();Object.keys(i).forEach((function(e){r[e]=i[e]}));return o}function addExceptionTypeValue(e,t,n){e.exception=e.exception||{};e.exception.values=e.exception.values||[];e.exception.values[0]=e.exception.values[0]||{};e.exception.values[0].value=e.exception.values[0].value||t||"";e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function addExceptionMechanism(e,t){if(t===void 0){t={}}try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{};Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function getLocationHref(){try{return document.location.href}catch(e){return""}}function htmlTreeAsString(e){try{var t=e;var n=5;var r=80;var i=[];var o=0;var a=0;var s=" > ";var u=s.length;var c=void 0;while(t&&o++<n){c=_htmlElementAsString(t);if(c==="html"||o>1&&a+i.length*u+c.length>=r){break}i.push(c);a+=c.length;t=t.parentNode}return i.reverse().join(s)}catch(e){return"<unknown>"}}function _htmlElementAsString(e){var t=e;var n=[];var r;var i;var a;var s;var u;if(!t||!t.tagName){return""}n.push(t.tagName.toLowerCase());if(t.id){n.push("#"+t.id)}r=t.className;if(r&&Object(o["k"])(r)){i=r.split(/\s+/);for(u=0;u<i.length;u++){n.push("."+i[u])}}var c=["type","name","title","alt"];for(u=0;u<c.length;u++){a=c[u];s=t.getAttribute(a);if(s){n.push("["+a+'="'+s+'"]')}}return n.join("")}var u=Date.now();var c=0;var f={now:function(){var e=Date.now()-u;if(e<c){e=c}c=e;return e},timeOrigin:u};var l=function(){if(isNodeEnv()){try{var e=dynamicRequire(i,"perf_hooks");return e.performance}catch(e){return f}}if(getGlobalObject().performance){if(performance.timeOrigin===undefined){performance.timeOrigin=performance.timing&&performance.timing.navigationStart||u}}return getGlobalObject().performance||f}();function timestampWithMs(){return(l.timeOrigin+l.now())/1e3}var p=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function parseSemver(e){var t=e.match(p)||[];var n=parseInt(t[1],10);var r=parseInt(t[2],10);var i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?undefined:n,minor:isNaN(r)?undefined:r,patch:isNaN(i)?undefined:i,prerelease:t[4]}}var d=60*1e3;function parseRetryAfterHeader(e,t){if(!t){return d}var n=parseInt(""+t,10);if(!isNaN(n)){return n*1e3}var r=Date.parse(""+t);if(!isNaN(r)){return r-e}return d}var h="<anonymous>";function getFunctionName(e){try{if(!e||typeof e!=="function"){return h}return e.name||h}catch(e){return h}}function addContextToFrame(e,t,n){if(n===void 0){n=5}var r=t.lineno||0;var i=e.length;var o=Math.max(Math.min(i,r-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((function(e){return Object(a["c"])(e,0)}));t.context_line=Object(a["c"])(e[Math.min(i-1,o)],t.colno||0);t.post_context=e.slice(Math.min(o+1,i),o+1+n).map((function(e){return Object(a["c"])(e,0)}))}}).call(this,n(159),n(100),n(573)(e))},370:function(e,t,n){"use strict";n.d(t,"d",(function(){return truncate}));n.d(t,"c",(function(){return snipLine}));n.d(t,"b",(function(){return safeJoin}));n.d(t,"a",(function(){return isMatchingPattern}));var r=n(291);function truncate(e,t){if(t===void 0){t=0}if(typeof e!=="string"||t===0){return e}return e.length<=t?e:e.substr(0,t)+"..."}function snipLine(e,t){var n=e;var r=n.length;if(r<=150){return n}if(t>r){t=r}var i=Math.max(t-60,0);if(i<5){i=0}var o=Math.min(i+140,r);if(o>r-5){o=r}if(o===r){i=Math.max(o-140,0)}n=n.slice(i,o);if(i>0){n="'{snip} "+n}if(o<r){n+=" {snip}"}return n}function safeJoin(e,t){if(!Array.isArray(e)){return""}var n=[];for(var r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function isMatchingPattern(e,t){if(Object(r["j"])(t)){return t.test(e)}if(typeof t==="string"){return e.indexOf(t)!==-1}return false}},574:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return fill}));n.d(t,"e",(function(){return urlEncode}));n.d(t,"d",(function(){return normalizeToSize}));n.d(t,"c",(function(){return normalize}));n.d(t,"a",(function(){return extractExceptionKeysForMessage}));var r=n(264);var i=n(291);var o=n(575);var a=n(307);var s=n(370);function fill(e,t,n){if(!(t in e)){return}var r=e[t];var i=n(r);if(typeof i==="function"){try{i.prototype=i.prototype||{};Object.defineProperties(i,{__sentry_original__:{enumerable:false,value:r}})}catch(e){}}e[t]=i}function urlEncode(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function getWalkSource(e){if(Object(i["d"])(e)){var t=e;var n={message:t.message,name:t.name,stack:t.stack};for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r)){n[r]=t[r]}}return n}if(Object(i["f"])(e)){var o=e;var s={};s.type=o.type;try{s.target=Object(i["c"])(o.target)?Object(a["h"])(o.target):Object.prototype.toString.call(o.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=Object(i["c"])(o.currentTarget)?Object(a["h"])(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){s.currentTarget="<unknown>"}if(typeof CustomEvent!=="undefined"&&Object(i["g"])(e,CustomEvent)){s.detail=o.detail}for(var r in o){if(Object.prototype.hasOwnProperty.call(o,r)){s[r]=o}}return s}return e}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}function normalizeToSize(e,t,n){if(t===void 0){t=3}if(n===void 0){n=100*1024}var r=normalize(e,t);if(jsonSize(r)>n){return normalizeToSize(e,t-1,n)}return r}function serializeValue(e){var t=Object.prototype.toString.call(e);if(typeof e==="string"){return e}if(t==="[object Object]"){return"[Object]"}if(t==="[object Array]"){return"[Array]"}var n=normalizeValue(e);return Object(i["i"])(n)?n:t}function normalizeValue(t,n){if(n==="domain"&&t&&typeof t==="object"&&t._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof e!=="undefined"&&t===e){return"[Global]"}if(typeof window!=="undefined"&&t===window){return"[Window]"}if(typeof document!=="undefined"&&t===document){return"[Document]"}if(Object(i["l"])(t)){return"[SyntheticEvent]"}if(typeof t==="number"&&t!==t){return"[NaN]"}if(t===void 0){return"[undefined]"}if(typeof t==="function"){return"[Function: "+Object(a["e"])(t)+"]"}return t}function walk(e,t,n,r){if(n===void 0){n=+Infinity}if(r===void 0){r=new o["a"]}if(n===0){return serializeValue(t)}if(t!==null&&t!==undefined&&typeof t.toJSON==="function"){return t.toJSON()}var a=normalizeValue(t,e);if(Object(i["i"])(a)){return a}var s=getWalkSource(t);var u=Array.isArray(t)?[]:{};if(r.memoize(t)){return"[Circular ~]"}for(var c in s){if(!Object.prototype.hasOwnProperty.call(s,c)){continue}u[c]=walk(c,s[c],n-1,r)}r.unmemoize(t);return u}function normalize(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return walk(e,n,t)})))}catch(e){return"**non-serializable**"}}function extractExceptionKeysForMessage(e,t){if(t===void 0){t=40}var n=Object.keys(getWalkSource(e));n.sort();if(!n.length){return"[object has no keys]"}if(n[0].length>=t){return Object(s["d"])(n[0],t)}for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(i.length>t){continue}if(r===n.length){return i}return Object(s["d"])(i,t)}return""}function dropUndefinedKeys(e){var t,n;if(Object(i["h"])(e)){var o=e;var a={};try{for(var s=r["e"](Object.keys(o)),u=s.next();!u.done;u=s.next()){var c=u.value;if(typeof o[c]!=="undefined"){a[c]=dropUndefinedKeys(o[c])}}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(n=s.return))n.call(s)}finally{if(t)throw t.error}}return a}if(Array.isArray(e)){return e.map(dropUndefinedKeys)}return e}}).call(this,n(100))},575:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function Memo(){this._hasWeakSet=typeof WeakSet==="function";this._inner=this._hasWeakSet?new WeakSet:[]}Memo.prototype.memoize=function(e){if(this._hasWeakSet){if(this._inner.has(e)){return true}this._inner.add(e);return false}for(var t=0;t<this._inner.length;t++){var n=this._inner[t];if(n===e){return true}}this._inner.push(e);return false};Memo.prototype.unmemoize=function(e){if(this._hasWeakSet){this._inner.delete(e)}else{for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e){this._inner.splice(t,1);break}}}};return Memo}()}}]); |