sentry-uniapp
Version:
用于Uniapp/小程序/快应用等平台的 Sentry SDK
2 lines • 93.9 kB
JavaScript
/*! For license information please see sentry-uniapp.min.js.LICENSE.txt */
(()=>{var e={199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{API:()=>G,BaseBackend:()=>fe,BaseClient:()=>oe,Hub:()=>m,Integrations:()=>r,NoopTransport:()=>de,SDK_VERSION:()=>Se,Scope:()=>f,Session:()=>g,addBreadcrumb:()=>I,addGlobalEventProcessor:()=>_,captureEvent:()=>P,captureException:()=>j,captureMessage:()=>T,configureScope:()=>M,createTransport:()=>me,eventToSentryRequest:()=>le,getCurrentHub:()=>S,getEnvelopeEndpointWithUrlEncodedAuth:()=>X,getHubFromCarrier:()=>x,getReportDialogEndpoint:()=>Y,getRequestHeaders:()=>$,getStoreEndpointWithUrlEncodedAuth:()=>J,initAPIDetails:()=>q,initAndBind:()=>he,makeMain:()=>E,sessionToSentryRequest:()=>pe,setContext:()=>N,setExtra:()=>C,setExtras:()=>R,setTag:()=>F,setTags:()=>D,setUser:()=>H,startTransaction:()=>A,withScope:()=>U});var r={};n.r(r),n.d(r,{FunctionToString:()=>we,InboundFilters:()=>Oe});var i=n(215),o=n(936),s=n(297),a=n(412),u=n(475),c=n(284),p="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l=n(816),d=n(690),f=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,i.__spread)(t._breadcrumbs),n._tags=(0,i.__assign)({},t._tags),n._extra=(0,i.__assign)({},t._extra),n._contexts=(0,i.__assign)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,i.__spread)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,i.__assign)((0,i.__assign)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,i.__assign)((0,i.__assign)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,i.__assign)((0,i.__assign)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,i.__assign)((0,i.__assign)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,i.__assign)((0,i.__assign)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,i.__assign)((0,i.__assign)({},this._tags),t._tags),this._extra=(0,i.__assign)((0,i.__assign)({},this._extra),t._extra),this._contexts=(0,i.__assign)((0,i.__assign)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,l.Qd)(t)&&(this._tags=(0,i.__assign)((0,i.__assign)({},this._tags),t.tags),this._extra=(0,i.__assign)((0,i.__assign)({},this._extra),t.extra),this._contexts=(0,i.__assign)((0,i.__assign)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=(0,i.__assign)({timestamp:(0,s.lu)()},e);return this._breadcrumbs=(0,i.__spread)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,i.__assign)((0,i.__assign)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,i.__assign)((0,i.__assign)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,i.__assign)((0,i.__assign)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,i.__assign)((0,i.__assign)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,i.__assign)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,i.__assign)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,i.__spread)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,i.__spread)(h(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,i.__assign)((0,i.__assign)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new d.T2((function(s,a){var u=e[r];if(null===t||"function"!=typeof u)s(t);else{var c=u((0,i.__assign)({},t),n);(0,l.Qg)(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(s)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(s).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function h(){return(0,u.B)("globalEventProcessors",(function(){return[]}))}function _(e){h().push(e)}var v=n(411),g=function(){function e(e){this.errors=0,this.sid=(0,o.eJ)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,s.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,s.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,o.eJ)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,v.Ce)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),y=4,m=function(){function e(e,t,n){void 0===t&&(t=new f),void 0===n&&(n=y),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=f.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.eJ)(),r=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}r={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,(0,i.__assign)((0,i.__assign)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:(0,o.eJ)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(e){a=e}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,(0,i.__assign)((0,i.__assign)({},s),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:(0,o.eJ)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,i.__assign)((0,i.__assign)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var u=o.getOptions&&o.getOptions()||{},c=u.beforeBreadcrumb,p=void 0===c?null:c,l=u.maxBreadcrumbs,d=void 0===l?100:l;if(!(d<=0)){var f=(0,s.lu)(),h=(0,i.__assign)({timestamp:f},e),_=p?(0,a.pq)((function(){return p(h,t)})):h;null!==_&&r.addBreadcrumb(_,d)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=E(this);try{e(this)}finally{E(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return p&&a.vF.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},s=o.release,a=o.environment,c=((0,u.V)().navigator||{}).userAgent,p=new g((0,i.__assign)((0,i.__assign)((0,i.__assign)({release:s,environment:a},n&&{user:n.getUser()}),c&&{userAgent:c}),e));if(n){var l=n.getSession&&n.getSession();l&&"ok"===l.status&&l.update({status:"exited"}),this.endSession(),n.setSession(p)}return p},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,(0,i.__spread)(n,[s]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=b().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);p&&a.vF.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function b(){var e=(0,u.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function E(e){var t=b(),n=x(t);return O(t,e),n}function S(){var e=b();return w(e)&&!x(e).isOlderThan(y)||O(e,new m),(0,c.wD)()?function(e){try{var t=b().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return x(e);if(!w(n)||x(n).isOlderThan(y)){var r=x(e).getStackTop();O(n,new m(r.client,f.clone(r.scope)))}return x(n)}catch(t){return x(e)}}(e):x(e)}function w(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function x(e){return(0,u.B)("hub",(function(){return new m}),e)}function O(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=S();if(r&&r[e])return r[e].apply(r,(0,i.__spread)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function j(e,t){return k("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function T(e,t){var n=new Error(e),r="string"!=typeof t?{captureContext:t}:void 0;return k("captureMessage",e,"string"==typeof t?t:void 0,(0,i.__assign)({originalException:e,syntheticException:n},r))}function P(e){return k("captureEvent",e)}function M(e){k("configureScope",e)}function I(e){k("addBreadcrumb",e)}function N(e,t){k("setContext",e,t)}function R(e){k("setExtras",e)}function D(e){k("setTags",e)}function C(e,t){k("setExtra",e,t)}function F(e,t){k("setTag",e,t)}function H(e){k("setUser",e)}function U(e){k("withScope",e)}function A(e,t){return k("startTransaction",(0,i.__assign)({},e),t)}var L=n(831),B="7",G=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=(0,L.A)(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return W(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return V(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return J(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return X(this._dsnObject,this._tunnel)},e}();function q(e,t,n){return{initDsn:e,metadata:t||{},dsn:(0,L.A)(e),tunnel:n}}function W(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function z(e,t){return""+W(e)+e.projectId+"/"+t+"/"}function K(e){return(0,v.u4)({sentry_key:e.publicKey,sentry_version:B})}function V(e){return z(e,"store")}function J(e){return V(e)+"?"+K(e)}function X(e,t){return t||function(e){return z(e,"envelope")}(e)+"?"+K(e)}function $(e,t,n){var r=["Sentry sentry_version="+B];return r.push("sentry_client="+t+"/"+n),r.push("sentry_key="+e.publicKey),e.pass&&r.push("sentry_secret="+e.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}function Y(e,t){var n=(0,L.A)(e),r=W(n)+"embed/error-page/",i="dsn="+(0,L.S)(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return r+"?"+i}var Q=n(29),Z=n(653),ee=n(731),te="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ne=[];function re(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var ie="Not capturing exception because it's already been captured.",oe=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=(0,L.A)(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!(0,o.GR)(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}te&&a.vF.log(ie)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,s=(0,l.sO)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&(0,o.GR)(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}te&&a.vF.log(ie)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?te&&a.vF.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):te&&a.vF.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&(0,i.__spread)(e.defaultIntegrations)||[],n=e.integrations,r=(0,i.__spread)(re(t));Array.isArray(n)?r=(0,i.__spread)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),re(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),s="Debug";return-1!==o.indexOf(s)&&r.push.apply(r,(0,i.__spread)(r.splice(o.indexOf(s),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ne.indexOf(e.name)&&(e.setupOnce(_,S),ne.push(e.name),te&&a.vF.log("Integration installed: "+e.name))}(e)})),(0,v.my)(t,"initialized",!0),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return te&&a.vF.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,s=!1,a=t.exception&&t.exception.values;if(a){s=!0;try{for(var u=(0,i.__values)(a),c=u.next();!c.done;c=u.next()){var p=c.value.mechanism;if(p&&!1===p.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var l="ok"===e.status;(l&&0===e.errors||l&&o)&&(e.update((0,i.__assign)((0,i.__assign)({},o&&{status:"crashed"}),{errors:e.errors||Number(s||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new d.T2((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,a=this.getOptions(),u=a.normalizeDepth,c=void 0===u?3:u,p=a.normalizeMaxBreadth,l=void 0===p?1e3:p,h=(0,i.__assign)((0,i.__assign)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,o.eJ)()),timestamp:e.timestamp||(0,s.lu)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var _=t;n&&n.captureContext&&(_=f.clone(_).update(n.captureContext));var v=(0,d.XW)(h);return _&&(v=_.applyToEvent(h,n)),v.then((function(e){return e&&(e.sdkProcessingMetadata=(0,i.__assign)((0,i.__assign)({},e.sdkProcessingMetadata),{normalizeDepth:(0,Q.S8)(c)+" ("+typeof c+")"})),"number"==typeof c&&c>0?r._normalizeEvent(e,c,l):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,i.__assign)((0,i.__assign)({},e),e.data&&{data:(0,Q.S8)(e.data,t,n)})}))}),e.user&&{user:(0,Q.S8)(e.user,t,n)}),e.contexts&&{contexts:(0,Q.S8)(e.contexts,t,n)}),e.extra&&{extra:(0,Q.S8)(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=(0,i.__assign)((0,i.__assign)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,Z.xv)(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,Z.xv)(a.value,s));var u=e.request;u&&u.url&&(u.url=(0,Z.xv)(u.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=(0,i.__spread)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){te&&a.vF.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,s=i.sampleRate,a=this.getTransport();function u(e,t){a.recordLostEvent&&a.recordLostEvent(e,t)}if(!this._isEnabled())return(0,d.xg)(new ee.U("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"==typeof s&&Math.random()>s?(u("sample_rate","event"),(0,d.xg)(new ee.U("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw u("event_processor",e.type||"event"),new ee.U("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,l.Qg)(e))return e.then((function(e){if(!(0,l.Qd)(e)&&null!==e)throw new ee.U(t);return e}),(function(e){throw new ee.U("beforeSend rejected with "+e)}));if(!(0,l.Qd)(e)&&null!==e)throw new ee.U(t);return e}(o(n,t))})).then((function(t){if(null===t)throw u("before_send",e.type||"event"),new ee.U("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof ee.U)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new ee.U("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}(),se=n(880);function ae(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ue(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=(0,i.__spread)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=(0,i.__spread)(e.sdk.packages||[],t.packages||[]),e):e}function ce(e,t){var n=ae(t),r=(0,i.__assign)((0,i.__assign)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:(0,L.S)(t.dsn)}),o="aggregates"in e?"sessions":"session",s=[{type:o},e];return[(0,se.h4)(r,[s]),o]}function pe(e,t){var n=(0,i.__read)(ce(e,t),2),r=n[0],o=n[1];return{body:(0,se.bN)(r),type:o,url:X(t.dsn,t.tunnel)}}function le(e,t){var n,r=ae(t),o=e.type||"event",s="transaction"===o||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},u=a.method,c=a.rate;ue(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify((0,Q.S8)(e))}catch(e){var p=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:p.message,stack:p.stack}})}}var l={body:n,type:o,url:s?X(t.dsn,t.tunnel):J(t.dsn)};if(s){var d=(0,i.__assign)((0,i.__assign)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:(0,L.S)(t.dsn)}),f=[{type:o,sample_rates:[{id:u,rate:c}]},l.body],h=(0,se.h4)(d,[f]);l.body=(0,se.bN)(h)}return l}var de=function(){function e(){}return e.prototype.sendEvent=function(e){return(0,d.XW)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return(0,d.XW)(!0)},e}(),fe=function(){function e(e){this._options=e,this._options.dsn||te&&a.vF.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new ee.U("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new ee.U("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var n=ae(t),r=e.type||"event",o=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=o.method,a=o.rate;ue(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;var u=(0,i.__assign)((0,i.__assign)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:(0,L.S)(t.dsn)}),c=[{type:r,sample_rates:[{id:s,rate:a}]},e];return(0,se.h4)(u,[c])}(e,q(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){te&&a.vF.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){te&&a.vF.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=q(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,i.__read)(ce(e,t),1)[0];this._newTransport.send(n).then(null,(function(e){te&&a.vF.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){te&&a.vF.error("Error while sending session:",e)}));else te&&a.vF.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new de},e}();function he(e,t){!0===t.debug&&(te?a.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=S(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}var _e=n(473),ve=n(403),ge=n(114),ye=30;function me(e,t,n){void 0===n&&(n=(0,_e.C)(e.bufferSize||ye));var r={};return{send:function(e){var i=(0,se.Fh)(e),o="event"===i?"error":i,s={category:o,body:(0,se.bN)(e)};return(0,ve.Jz)(r,o)?(0,d.xg)({status:"rate_limit",reason:be(r,o)}):n.add((function(){return t(s).then((function(e){var t=e.body,n=e.headers,i=e.reason,s=e.statusCode,a=(0,ge.k)(s);return n&&(r=(0,ve.wq)(r,n)),"success"===a?(0,d.XW)({status:a,reason:i}):(0,d.xg)({status:a,reason:i||t||("rate_limit"===a?be(r,o):"Unknown transport error")})}))}))},flush:function(e){return n.drain(e)}}}function be(e,t){return"Too many "+t+" requests, backing off until: "+new Date((0,ve.Z3)(e,t)).toISOString()}var Ee,Se="6.19.7",we=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Ee=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,v.sp)(this)||this;return Ee.apply(n,e)}},e.id="FunctionToString",e}(),xe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Oe=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n();if(r){var s=r.getIntegration(e);if(s){var u=r.getClient(),c=u?u.getOptions():{},p=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),{allowUrls:(0,i.__spread)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:(0,i.__spread)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:(0,i.__spread)(e.ignoreErrors||[],t.ignoreErrors||[],xe),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(s._options,c);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(te&&a.vF.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,o.$X)(e)),!0):function(e,t){return!(!t||!t.length)&&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=void 0===n?"":n,i=t.value,s=void 0===i?"":i;return[""+s,r+": "+s]}catch(t){return te&&a.vF.error("Cannot extract message for event "+(0,o.$X)(e)),[]}return[]}(e).some((function(e){return t.some((function(t){return(0,Z._c)(e,t)}))}))}(e,t.ignoreErrors)?(te&&a.vF.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,o.$X)(e)),!0):function(e,t){if(!t||!t.length)return!1;var n=je(e);return!!n&&t.some((function(e){return(0,Z._c)(n,e)}))}(e,t.denyUrls)?(te&&a.vF.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,o.$X)(e)+".\nUrl: "+je(e)),!0):!function(e,t){if(!t||!t.length)return!0;var n=je(e);return!n||t.some((function(e){return(0,Z._c)(n,e)}))}(e,t.allowUrls)&&(te&&a.vF.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,o.$X)(e)+".\nUrl: "+je(e)),!0)}(t,p)?null:t}}return t}))},e.id="InboundFilters",e}();function ke(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function je(e){try{if(e.stacktrace)return ke(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?ke(t):null}catch(t){return te&&a.vF.error("Cannot extract url for event "+(0,o.$X)(e)),null}}},770:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Severity:()=>r.A,SeverityLevels:()=>r.H});var r=n(979)},979:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>r,H:()=>i}),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={}));var i=["fatal","error","warning","log","info","debug","critical"]},766:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,H:()=>o});var r=n(475),i=n(816);function o(e,t){try{for(var n=e,r=[],i=0,o=0,a=void 0;n&&i++<5&&!("html"===(a=s(n,t))||i>1&&o+3*r.length+a.length>=80);)r.push(a),o+=a.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(e,t){var n,r,o,s,a,u=e,c=[];if(!u||!u.tagName)return"";c.push(u.tagName.toLowerCase());var p=t&&t.length?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(p&&p.length)p.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&c.push("#"+u.id),(n=u.className)&&(0,i.Kg)(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)c.push("."+r[a]);var l=["type","name","title","alt"];for(a=0;a<l.length;a++)o=l[a],(s=u.getAttribute(o))&&c.push("["+o+'="'+s+'"]');return c.join("")}function a(){var e=(0,r.V)();try{return e.document.location.href}catch(e){return""}}},831:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,S:()=>a});var r=n(215),i=n(731),o=n(761),s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,i=e.pass,o=e.port,s=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+s}function u(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){var t="string"==typeof e?function(e){var t=s.exec(e);if(!t)throw new i.U("Invalid Sentry Dsn: "+e);var n=(0,r.__read)(t.slice(1),6),o=n[0],a=n[1],c=n[2],p=void 0===c?"":c,l=n[3],d=n[4],f=void 0===d?"":d,h="",_=n[5],v=_.split("/");if(v.length>1&&(h=v.slice(0,-1).join("/"),_=v.pop()),_){var g=_.match(/^\d+/);g&&(_=g[0])}return u({host:l,pass:p,path:h,projectId:_,port:f,protocol:o,publicKey:a})}(e):u(e);return function(e){if(o.w){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new i.U("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new i.U("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new i.U("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new i.U("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}},341:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(t,{Z:()=>r})},880:(e,t,n)=>{"use strict";n.d(t,{Fh:()=>a,W3:()=>s,bN:()=>u,h4:()=>o});var r=n(215),i=n(816);function o(e,t){return void 0===t&&(t=[]),[e,t]}function s(e,t){var n=(0,r.__read)(e,2),i=n[0],o=n[1];return[i,(0,r.__spread)(o,[t])]}function a(e){var t=(0,r.__read)(e,2),n=(0,r.__read)(t[1],1);return(0,r.__read)(n[0],1)[0].type}function u(e){var t=(0,r.__read)(e,2),n=t[0],o=t[1],s=JSON.stringify(n);return o.reduce((function(e,t){var n=(0,r.__read)(t,2),o=n[0],s=n[1],a=(0,i.sO)(s)?String(s):JSON.stringify(s);return e+"\n"+JSON.stringify(o)+"\n"+a}),s)}},731:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(215),i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),o=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,i(r,n.prototype),r}return(0,r.__extends)(t,e),t}(Error)},761:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},475:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,V:()=>o});var r=n(284),i={};function o(){return(0,r.wD)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},855:(e,t,n)=>{"use strict";function r(e){e.then(null,(function(e){console.error(e)}))}n.r(t),n.d(t,{CONSOLE_LEVELS:()=>d.Ow,DEFAULT_RETRY_AFTER:()=>pe.e1,SentryError:()=>a.U,SeverityLevels:()=>s,SyncPromise:()=>re.T2,TRACEPARENT_REGEXP:()=>oe,_browserPerformanceTimeOriginMode:()=>ie.gt,addContextToFrame:()=>U.db,addExceptionMechanism:()=>U.M6,addExceptionTypeValue:()=>U.gO,addInstrumentationHandler:()=>T,addItemToEnvelope:()=>ue.W3,addNonEnumerableProperty:()=>f.my,basename:()=>Y,browserPerformanceTimeOrigin:()=>ie.k3,checkOrSetAlreadyCaught:()=>U.GR,consoleSandbox:()=>d.pq,convertToPlainObject:()=>f.W4,createClientReportEnvelope:()=>ce,createEnvelope:()=>ue.h4,createStackParser:()=>h.gd,dateTimestampInSeconds:()=>ie.lu,dirname:()=>$,disabledUntil:()=>pe.Z3,dropUndefinedKeys:()=>f.Ce,dsnToString:()=>o.S,dynamicRequire:()=>A.fj,escapeStringForRegex:()=>ne.jD,eventStatusFromHttpCode:()=>te.k,extractExceptionKeysForMessage:()=>f.HF,extractTraceparentData:()=>se,fill:()=>f.GS,forget:()=>r,getEnvelopeType:()=>ue.Fh,getEventDescription:()=>U.$X,getFunctionName:()=>h.qQ,getGlobalObject:()=>u.V,getGlobalSingleton:()=>u.B,getLocationHref:()=>i.$,getOriginalFunction:()=>f.sp,htmlTreeAsString:()=>i.H,isAbsolute:()=>J,isBrowserBundle:()=>ae.Z,isDOMError:()=>l.BD,isDOMException:()=>l.W6,isElement:()=>l.vq,isError:()=>l.bJ,isErrorEvent:()=>l.T2,isEvent:()=>l.xH,isInstanceOf:()=>l.tH,isMatchingPattern:()=>ne._c,isNaN:()=>l.yr,isNativeFetch:()=>m,isNodeEnv:()=>A.wD,isPlainObject:()=>l.Qd,isPrimitive:()=>l.sO,isRateLimited:()=>pe.Jz,isRegExp:()=>l.gd,isString:()=>l.Kg,isSyntheticEvent:()=>l.mE,isThenable:()=>l.Qg,join:()=>X,loadModule:()=>A.Vw,logger:()=>d.vF,makeDsn:()=>o.A,makePromiseBuffer:()=>Q.C,markFunctionWrapped:()=>f.pO,memoBuilder:()=>H.s,normalize:()=>L.S8,normalizePath:()=>V,normalizeToSize:()=>L.cd,objectify:()=>f.ey,parseRetryAfterHeader:()=>pe.FA,parseSemver:()=>U.kf,parseUrl:()=>U.Dl,rejectedSyncPromise:()=>re.xg,relative:()=>K,resolve:()=>W,resolvedSyncPromise:()=>re.XW,safeJoin:()=>ne.gt,serializeEnvelope:()=>ue.bN,severityFromString:()=>ee,snipLine:()=>ne.nC,stripSentryFramesAndReverse:()=>h.Vi,stripUrlQueryAndFragment:()=>U.f,supportsDOMError:()=>v,supportsDOMException:()=>g,supportsErrorEvent:()=>_,supportsFetch:()=>y,supportsHistory:()=>w,supportsNativeFetch:()=>b,supportsReferrerPolicy:()=>S,supportsReportingObserver:()=>E,timestampInSeconds:()=>ie.zf,timestampWithMs:()=>ie.LU,truncate:()=>ne.xv,updateRateLimits:()=>pe.wq,urlEncode:()=>f.u4,usingPerformanceAPI:()=>ie.de,uuid4:()=>U.eJ,walk:()=>L.GG});var i=n(766),o=n(831),s=["fatal","error","warning","log","info","debug","critical"],a=n(731),u=n(475),c=n(215),p=n(761),l=n(816),d=n(412),f=n(411),h=n(917);function _(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function v(){try{return new DOMError(""),!0}catch(e){return!1}}function g(){try{return new DOMException(""),!0}catch(e){return!1}}function y(){if(!("fetch"in(0,u.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function m(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function b(){if(!y())return!1;var e=(0,u.V)();if(m(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=m(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){p.w&&d.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function E(){return"ReportingObserver"in(0,u.V)()}function S(){if(!y())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function w(){var e=(0,u.V)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}var x,O=(0,u.V)(),k={},j={};function T(e,t){k[e]=k[e]||[],k[e].push(t),function(e){if(!j[e])switch(j[e]=!0,e){case"console":"console"in O&&d.Ow.forEach((function(e){e in O.console&&(0,f.GS)(O.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];P("console",{args:n,level:e}),t&&t.apply(O.console,n)}}))}));break;case"dom":!function(){if("document"in O){var e=P.bind(null,"dom"),t=D(e,!0);O.document.addEventListener("click",t,!1),O.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=O[t]&&O[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.GS)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var a=D(e);s.handler=a,t.call(this,n,a,i)}s.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),(0,f.GS)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in O){var e=XMLHttpRequest.prototype;(0,f.GS)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=t[1],o=r.__sentry_xhr__={method:(0,l.Kg)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,l.Kg)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var s=function(){if(4===r.readyState){try{o.status_code=r.status}catch(e){}P("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?(0,f.GS)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(r,t)}})):r.addEventListener("readystatechange",s),e.apply(r,t)}})),(0,f.GS)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),P("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":b()&&(0,f.GS)(O,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i={args:t,fetchData:{method:(r=t,void 0===r&&(r=[]),"Request"in O&&(0,l.tH)(r[0],Request)&&r[0].method?String(r[0].method).toUpperCase():r[1]&&r[1].method?String(r[1].method).toUpperCase():"GET"),url:M(t)},startTimestamp:Date.now()};return P("fetch",(0,c.__assign)({},i)),e.apply(O,t).then((function(e){return P("fetch",(0,c.__assign)((0,c.__assign)({},i),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw P("fetch",(0,c.__assign)((0,c.__assign)({},i),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(w()){var e=O.onpopstate;O.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=O.location.href,i=x;if(x=r,P("history",{from:i,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,f.GS)(O.history,"pushState",t),(0,f.GS)(O.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=x,o=String(r);x=o,P("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":C=O.onerror,O.onerror=function(e,t,n,r,i){return P("error",{column:r,error:i,line:n,msg:e,url:t}),!!C&&C.apply(this,arguments)};break;case"unhandledrejection":F=O.onunhandledrejection,O.onunhandledrejection=function(e){return P("unhandledrejection",e),!F||F.apply(this,arguments)};break;default:p.w&&d.vF.warn("unknown instrumentation type:",e)}}(e)}function P(e,t){var n,r;if(e&&k[e])try{for(var i=(0,c.__values)(k[e]||[]),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(t)}catch(t){p.w&&d.vF.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+(0,h.qQ)(s)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function M(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in O&&(0,l.tH)(e[0],Request)?e[0].url:String(e[0])}var I,N,R=1e3;function D(e,t){return void 0===t&&(t=!1),function(n){if(n&&N!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===I||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(N,n))&&(e({event:n,name:r,global:t}),N=n),clearTimeout(I),I=O.setTimeout((function(){I=void 0}),R)}}}var C=null,F=null,H=n(562),U=n(936),A=n(284),L=n(29);function B(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var G=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function q(e){var t=G.exec(e);return t?t.slice(1):[]}function W(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=!1,i=e.length-1;i>=-1&&!r;i--){var o=i>=0?e[i]:"/";o&&(n=o+"/"+n,r="/"===o.charAt(0))}return(r?"/":"")+(n=B(n.split("/").filter((function(e){return!!e})),!r).join("/"))||"."}function z(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function K(e,t){e=W(e).substr(1),t=W(t).substr(1);for(var n=z(e.split("/")),r=z(t.split("/")),i=Math.min(n.length,r.length),o=i,s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}var a=[];for(s=o;s<n.length;s++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}function V(e){var t=J(e),n="/"===e.substr(-1),r=B(e.split("/").filter((function(e){return!!e})),!t).join("/");return r||t||(r="."),r&&n&&(r+="/"),(t?"/":"")+r}function J(e){return"/"===e.charAt(0)}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return V(e.join("/"))}function $(e){var t=q(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function Y(e,t){var n=q(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}var Q=n(473),Z=n(979);function ee(e){return"warn"===e?Z.A.Warning:function(e){return-1!==s.indexOf(e)}(e)?e:Z.A.Log}var te=n(114),ne=n(653),re=n(690),ie=n(297),oe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function se(e){var t=e.match(oe);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}var ae=n(341),ue=n(880);function ce(e,t,n){var r=[{type:"client_report"},{timestamp:n||(0,ie.lu)(),discarded_events:e}];return(0,ue.h4)(t?{dsn:t}:{},[r])}var pe=n(403)},816:(e,t,n)=>{"use strict";n.d(t,{BD:()=>a,Kg:()=>c,Qd:()=>l,Qg:()=>_,T2:()=>s,W6:()=>u,bJ:()=>i,gd:()=>h,mE:()=>v,sO:()=>p,tH:()=>y,vq:()=>f,xH:()=>d,yr:()=>g});var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)==="[object "+t+"]"}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function p(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function l(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function f(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function _(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e){return l(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},412:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>u,pq:()=>c,vF:()=>r});var r,i=n(215),o=n(761),s=n(475),a=(0,s.V)(),u=["debug","info","warn","error","log","assert"];function c(e){var t=(0,s.V)();if(!("console"in t))return e();var n=t.console,r={};u.forEach((function(e){var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function p(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return o.w?u.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&c((function(){var e;(e=a.console)[n].apply(e,(0,i.__spread)(["Sentry Logger ["+n+"]:"],t))}))}})):u.forEach((function(e){t[e]=function(){}})),t}r=o.w?(0,s.B)("logger",p):p()},562:(e,t,n)=>{"use strict";function r(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;r<t.length;r++)if(t[r]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(var r=0;r<t.length;r++)if(t[r]===n){t.splice(r,1);break}}]}n.d(t,{s:()=>r})},936:(e,t,n)=>{"use strict";n.d(t,{$X:()=>p,Dl:()=>u,GR:()=>g,M6:()=>d,db:()=>_,eJ:()=>a,f:()=>v,gO:()=>l,kf:()=>h});var r=n(215),i=n(475),o=n(411),s=n(653);function a(){var e=(0,i.V)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Ar