(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.sentry"],{"0065":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("adbc"),s=n("0cab");let i=null;function o(t){const e="unhandledrejection";Object(s["a"])(e,t),Object(s["b"])(e,a)}function a(){i=r["a"].onunhandledrejection,r["a"].onunhandledrejection=function(t){const e=t;return Object(s["c"])("unhandledrejection",e),!(i&&!i.__SENTRY_LOADER__)||i.apply(this,arguments)},r["a"].onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},"02c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return p}));n("f0b6"),n("f7f6"),n("91db"),n("f404");var r=n("adbc"),s=n("a946"),i=(n("8972"),n("1888")),o=n("bfff"),a=n("d875");function c(t,e){return Object(i["a"])().captureException(t,Object(a["a"])(e))}function u(t,e){return Object(i["a"])().captureEvent(t,e)}function l(t,e){Object(i["a"])().addBreadcrumb(t,e)}function d(t,e){Object(i["a"])().setContext(t,e)}function p(...t){const e=Object(i["a"])();if(2===t.length){const[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function h(){return Object(i["a"])().getClient()}function f(){return Object(i["a"])().getScope()}function m(t){const e=h(),n=Object(i["b"])(),a=f(),{release:c,environment:u=s["a"]}=e&&e.getOptions()||{},{userAgent:l}=r["a"].navigator||{},d=Object(o["b"])({release:c,environment:u,user:a.getUser()||n.getUser(),...l&&{userAgent:l},...t}),p=n.getSession();return p&&"ok"===p.status&&Object(o["c"])(p,{status:"exited"}),g(),n.setSession(d),a.setSession(d),d}function g(){const t=Object(i["b"])(),e=f(),n=e.getSession()||t.getSession();n&&Object(o["a"])(n),b(),t.setSession(),e.setSession()}function b(){const t=Object(i["b"])(),e=f(),n=h(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function y(t=!1){t?g():b()}},"0cab":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n("422c"),s=n("f0b6"),i=n("a5189");const o={},a={};function c(t,e){o[t]=o[t]||[],o[t].push(e)}function u(t,e){a[t]||(e(),a[t]=!0)}function l(t,e){const n=t&&o[t];if(n)for(const o of n)try{o(e)}catch(a){r["a"]&&s["c"].error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Object(i["b"])(o)}\nError:`,a)}}},"0d3a":function(t,e,n){"use strict";function r(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}n.d(e,"a",(function(){return r}))},1463:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return c}));n("f324"),n("f0b6");var r=n("e8f5"),s=(n("8972"),n("02c5")),i=n("1888");n("f404");var o=n("15d6"),a=n("8bff");function c(t){if(!Object(o["a"])())return;const e=l(t),n=Object(i["a"])(),r=t.scope?t.scope.getSpan():u(),a=t.onlyIfParent&&!r;if(a)return;const c=Object(i["b"])(),d=Object(s["f"])();let p;if(r)p=r.startChild(e);else{const{traceId:t,dsc:r,parentSpanId:s,sampled:i}={...c.getPropagationContext(),...d.getPropagationContext()};p=n.startTransaction({traceId:t,parentSpanId:s,parentSampled:i,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}return h(p,d,c),p}function u(){return Object(s["f"])().getSpan()}function l(t){if(t.startTime){const e={...t};return e.startTimestamp=Object(a["d"])(t.startTime),delete e.startTime,e}return t}const d="_sentryScope",p="_sentryIsolationScope";function h(t,e,n){t&&(Object(r["a"])(t,p,n),Object(r["a"])(t,d,e))}function f(t){return{scope:t[d],isolationScope:t[p]}}},"15d6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("02c5");function s(t){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Object(r["e"])(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},"15f7":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n("f404"),s=n("c020"),i=n("e8f5"),o=n("a5189");function a(t,e=100,n=1/0){try{return u("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function c(t,e=3,n=102400){const r=a(t,e);return h(r)>n?c(t,e-1,n):r}function u(t,e,n=1/0,o=1/0,a=Object(s["a"])()){const[c,d]=a;if(null==e||["number","boolean","string"].includes(typeof e)&&!Object(r["h"])(e))return e;const p=l(t,e);if(!p.startsWith("[object "))return p;if(e["__sentry_skip_normalization__"])return e;const h="number"===typeof e["__sentry_override_normalization_depth__"]?e["__sentry_override_normalization_depth__"]:n;if(0===h)return p.replace("object ","");if(c(e))return"[Circular ~]";const f=e;if(f&&"function"===typeof f.toJSON)try{const t=f.toJSON();return u("",t,h-1,o,a)}catch(y){}const m=Array.isArray(e)?[]:{};let g=0;const b=Object(i["b"])(e);for(const r in b){if(!Object.prototype.hasOwnProperty.call(b,r))continue;if(g>=o){m[r]="[MaxProperties ~]";break}const t=b[r];m[r]=u(r,t,h-1,o,a),g++}return d(e),m}function l(e,n){try{if("domain"===e&&n&&"object"===typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof t&&n===t)return"[Global]";if("undefined"!==typeof window&&n===window)return"[Window]";if("undefined"!==typeof document&&n===document)return"[Document]";if(Object(r["p"])(n))return"[VueViewModel]";if(Object(r["n"])(n))return"[SyntheticEvent]";if("number"===typeof n&&n!==n)return"[NaN]";if("function"===typeof n)return`[Function: ${Object(o["b"])(n)}]`;if("symbol"===typeof n)return`[${String(n)}]`;if("bigint"===typeof n)return`[BigInt: ${String(n)}]`;const s=d(n);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(s){return`**non-serializable** (${s})`}}function d(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function p(t){return~-encodeURI(t).split(/%..|./).length}function h(t){return p(JSON.stringify(t))}}).call(this,n("c8ba"))},1888:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return S}));var r=n("f404"),s=n("f7f6"),i=n("91db"),o=n("f0b6"),a=n("adbc"),c=n("a946"),u=n("8972"),l=n("bcec"),d=n("bfff"),p=n("f8a5");const h=parseFloat(p["a"]),f=100;class m{constructor(t,e,n,r=h){let s,i;this._version=r,e?s=e:(s=new l["a"],s.setClient(t)),n?i=n:(i=new l["a"],i.setClient(t)),this._stack=[{scope:s}],t&&this.bindClient(t),this._isolationScope=i}isOlderThan(t){return this._version<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(s){throw this.popScope(),s}return Object(r["o"])(n)?n.then(t=>(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:Object(s["f"])(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Object(s["f"])(),i=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Object(s["f"])();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=f}=r.getOptions&&r.getOptions()||{};if(a<=0)return;const c=Object(i["b"])(),u={timestamp:c,...t},l=s?Object(o["b"])(()=>s(u,e)):u;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=b(this);try{t(this)}finally{b(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return u["a"]&&o["c"].warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(u["a"]&&!n){const t=this.getClient();t?o["c"].warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):o["c"].warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop(),e=t.scope,n=e.getSession();n&&Object(d["a"])(n),this._sendSessionUpdate(),e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s=c["a"]}=n&&n.getOptions()||{},{userAgent:i}=a["a"].navigator||{},o=Object(d["b"])({release:r,environment:s,user:e.getUser(),...i&&{userAgent:i},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&Object(d["c"])(u,{status:"exited"}),this.endSession(),e.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=g(),r=n.__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[t])return r.extensions[t].apply(this,e);u["a"]&&o["c"].warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function g(){return a["a"].__SENTRY__=a["a"].__SENTRY__||{extensions:{},hub:void 0},a["a"]}function b(t){const e=g(),n=O(e);return w(e,t),n}function y(){const t=g();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return v(t)}function _(){return y().getIsolationScope()}function v(t=g()){return k(t)&&!O(t).isOlderThan(h)||w(t,new m),O(t)}function S(t,e={}){const n=g();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function k(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function O(t){return Object(a["c"])("hub",()=>new m,t)}function w(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},"1c4e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=["activate","mount","update"]},"1d1e":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i}));var r,s=n("f404");function i(t){return new a(e=>{e(t)})}function o(t){return new a((e,n)=>{n(t)})}(function(t){const e=0;t[t["PENDING"]=e]="PENDING";const n=1;t[t["RESOLVED"]=n]="RESOLVED";const r=2;t[t["REJECTED"]=r]="REJECTED"})(r||(r={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new a((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(s){r(s)}else n(e)},t=>{if(e)try{n(e(t))}catch(s){r(s)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new a((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}__init(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===r.PENDING&&(Object(s["o"])(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)})}}}},"20bd":function(t,e,n){"use strict";var r;function s(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}n.d(e,"a",(function(){return i})),function(t){const e="ok";t["Ok"]=e;const n="deadline_exceeded";t["DeadlineExceeded"]=n;const r="unauthenticated";t["Unauthenticated"]=r;const s="permission_denied";t["PermissionDenied"]=s;const i="not_found";t["NotFound"]=i;const o="resource_exhausted";t["ResourceExhausted"]=o;const a="invalid_argument";t["InvalidArgument"]=a;const c="unimplemented";t["Unimplemented"]=c;const u="unavailable";t["Unavailable"]=u;const l="internal_error";t["InternalError"]=l;const d="unknown_error";t["UnknownError"]=d;const p="cancelled";t["Cancelled"]=p;const h="already_exists";t["AlreadyExists"]=h;const f="failed_precondition";t["FailedPrecondition"]=f;const m="aborted";t["Aborted"]=m;const g="out_of_range";t["OutOfRange"]=g;const b="data_loss";t["DataLoss"]=b}(r||(r={}));function i(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=s(e);"unknown_error"!==n&&t.setStatus(n)}},3044:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return d}));var r=n("f7f6"),s=n("f0b6"),i=n("8972"),o=n("924c"),a=(n("02c5"),n("1888"));const c=[];function u(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.keys(e).map(t=>e[t])}function l(t){const e=t.defaultIntegrations||[],n=t.integrations;let s;e.forEach(t=>{t.isDefaultInstance=!0}),s=Array.isArray(n)?[...e,...n]:"function"===typeof n?Object(r["c"])(n(e)):e;const i=u(s),o=f(i,t=>"Debug"===t.name);if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function d(t,e){const n={};return e.forEach(e=>{e&&h(t,e,n)}),n}function p(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function h(t,e,n){if(n[e.name])i["a"]&&s["c"].log("Integration skipped because it was already installed: "+e.name);else{if(n[e.name]=e,-1===c.indexOf(e.name)&&(e.setupOnce(o["a"],a["a"]),c.push(e.name)),e.setup&&"function"===typeof e.setup&&e.setup(t),t.on&&"function"===typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if(t.addEventProcessor&&"function"===typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}i["a"]&&s["c"].log("Integration installed: "+e.name)}}function f(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return-1}function m(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}function g(t){return t}},"3c10":function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r=n("f7f6"),s=n("91db"),i=n("f0b6"),o=n("e8f5"),a=n("8972"),c=n("c23f"),u=n("b9f7"),l=n("6957"),d=n("8bff"),p=n("20bd");class h{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class f{constructor(t={}){this._traceId=t.traceId||Object(r["f"])(),this._spanId=t.spanId||Object(r["f"])().substring(16),this._startTime=t.startTimestamp||Object(s["c"])(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[u["b"]]:t.origin||"manual",[u["a"]]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[u["a"]]}set op(t){this.setAttribute(u["a"],t)}get origin(){return this._attributes[u["b"]]}set origin(t){this.setAttribute(u["b"],t)}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?d["b"]:d["a"]}}startChild(t){const e=new f({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);const n=Object(l["a"])(this);if(e.transaction=n,a["a"]&&n){const r=t&&t.op||"< unknown op >",s=Object(d["e"])(e).description||"< unknown name >",o=n.spanContext().spanId,a=`[Tracing] Starting '${r}' span on transaction '${s}' (${o}).`;i["c"].log(a),this._logMessage=a}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Object(p["a"])(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;const e=Object(l["a"])(this);if(a["a"]&&e&&e.spanContext().spanId!==this._spanId){const t=this._logMessage;t&&i["c"].log(t.replace("Starting","Finishing"))}this._endTime=Object(d["d"])(t)}toTraceparent(){return Object(d["g"])(this)}toContext(){return Object(o["c"])({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return Object(d["f"])(this)}getSpanJSON(){return Object(o["c"])({data:this._getData(),description:this._name,op:this._attributes[u["a"]],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[u["b"]],_metrics_summary:Object(c["a"])(this)})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;if(n||r)return n&&r?{...t,...e}:n?t:e}}},"422c":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},"450c":function(t,e,n){"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function s(){return"npm"}n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return r}))},"4c6d0":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("adbc"),s=n("0cab");let i=null;function o(t){const e="error";Object(s["a"])(e,t),Object(s["b"])(e,a)}function a(){i=r["a"].onerror,r["a"].onerror=function(t,e,n,r,o){const a={column:r,error:o,line:n,msg:t,url:e};return Object(s["c"])("error",a),!(!i||i.__SENTRY_LOADER__)&&i.apply(this,arguments)},r["a"].onerror.__SENTRY_INSTRUMENTED__=!0}},"509f":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return d}));var r=n("422c"),s=n("f0b6");const i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function o(t){return"http"===t||"https"===t}function a(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?":"+s:""}@${n}${i?":"+i:""}/${r?r+"/":r}${o}`}function c(t){const e=i.exec(t);if(!e)return void Object(s["b"])(()=>{console.error("Invalid Sentry Dsn: "+t)});const[n,r,o="",a,c="",l]=e.slice(1);let d="",p=l;const h=p.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return u({host:a,pass:o,path:d,projectId:p,port:c,protocol:n,publicKey:r})}function u(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function l(t){if(!r["a"])return!0;const{port:e,projectId:n,protocol:i}=t,a=["protocol","publicKey","host","projectId"],c=a.find(e=>!t[e]&&(s["c"].error(`Invalid Sentry Dsn: ${e} missing`),!0));return!c&&(n.match(/^\d+$/)?o(i)?!e||!isNaN(parseInt(e,10))||(s["c"].error("Invalid Sentry Dsn: Invalid port "+e),!1):(s["c"].error("Invalid Sentry Dsn: Invalid protocol "+i),!1):(s["c"].error("Invalid Sentry Dsn: Invalid projectId "+n),!1))}function d(t){const e="string"===typeof t?c(t):u(t);if(e&&l(e))return e}},6742:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("f7f6"),s=n("e8f5"),i=n("adbc"),o=n("0cab");const a=i["a"],c=1e3;let u,l,d;function p(t){const e="dom";Object(o["a"])(e,t),Object(o["b"])(e,h)}function h(){if(!a.document)return;const t=o["c"].bind(null,"dom"),e=g(t,!0);a.document.addEventListener("click",e,!1),a.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=a[e]&&a[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(s["e"])(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=g(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch(i){}return e.call(this,n,r,s)}})),Object(s["e"])(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))})}function f(t){if(t.type!==l)return!1;try{if(!t.target||t.target._sentryId!==d)return!1}catch(e){}return!0}function m(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}function g(t,e=!1){return n=>{if(!n||n["_sentryCaptured"])return;const i=b(n);if(m(n.type,i))return;Object(s["a"])(n,"_sentryCaptured",!0),i&&!i._sentryId&&Object(s["a"])(i,"_sentryId",Object(r["f"])());const o="keypress"===n.type?"input":n.type;if(!f(n)){const r={event:n,name:o,global:e};t(r),l=n.type,d=i?i._sentryId:void 0}clearTimeout(u),u=a.setTimeout(()=>{d=void 0,l=void 0},c)}}function b(t){try{return t.target}catch(e){return null}}},6957:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,"a",(function(){return r}))},"6e6d":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("4c6d0"),s=n("0065"),i=n("f0b6"),o=n("8972"),a=n("d8b6");let c=!1;function u(){c||(c=!0,Object(r["a"])(l),Object(s["a"])(l))}function l(){const t=Object(a["a"])();if(t){const e="internal_error";o["a"]&&i["c"].log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}l.tag="sentry_tracingErrorCallback"},"72af":function(t,e,n){"use strict";function r(t,e){return null!=t?t:e()}function s(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}n.d(e,"a",(function(){return zi}));var i=n("02c5");function o(t,e){const n=e&&l(e)?e.getClient():e,r=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return c(t,r)||a(t,s)}function a(t,e){return!!e&&u(t)===u(e)}function c(t,e){return!!e&&t.includes(e.host)}function u(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function l(t){return void 0!==t.getClient}var d=n("a0c7"),p=n("d875"),h=n("1888"),f=n("8bff"),m=n("b9f7"),g=n("adbc"),b=n("15f7"),y=n("e8f5"),_=n("bc5b"),v=n("91db"),S=n("f0b6"),k=n("f7f6"),O=n("d564"),w=n("fbdd"),E=n("9175"),x=n("6742"),T=n("bcac"),I=n("a19e"),C=n("8c86"),j=n("f80d");function R(){return"undefined"!==typeof window&&(!Object(j["a"])()||M())}function M(){return void 0!==g["a"].process&&"renderer"===g["a"].process.type}var A=n("034b");const D=g["a"],N="sentryReplaySession",L="replay_event",P="Unable to send Replay",F=3e5,$=9e5,U=5e3,B=5500,z=6e4,H=5e3,W=3,q=15e4,Y=5e3,V=3e3,K=300,J=2e7,G=4999,X=15e3,Q=36e5;function Z(t,e){return null!=t?t:e()}function tt(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}var et;function nt(t){return t.nodeType===t.ELEMENT_NODE}function rt(t){const e=tt([t,"optionalAccess",t=>t.host]);return Boolean(tt([e,"optionalAccess",t=>t.shadowRoot])===t)}function st(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function it(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function ot(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function at(t){try{const e=t.rules||t.cssRules;return e?it(Array.from(e,ct).join("")):null}catch(e){return null}}function ct(t){let e;if(lt(t))try{e=at(t.styleSheet)||ot(t)}catch(n){}else if(dt(t)&&t.selectorText.includes(":"))return ut(t.cssText);return e||t.cssText}function ut(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function lt(t){return"styleSheet"in t}function dt(t){return"selectorText"in t}(function(t){t[t["Document"]=0]="Document",t[t["DocumentType"]=1]="DocumentType",t[t["Element"]=2]="Element",t[t["Text"]=3]="Text",t[t["CDATA"]=4]="CDATA",t[t["Comment"]=5]="Comment"})(et||(et={}));class pt{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const e=tt([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]);return Z(e,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ht(){return new pt}function ft({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t["text"])}function mt({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function gt(t){return t.toLowerCase()}function bt(t){return t.toUpperCase()}const yt="__rrweb_original__";function _t(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let s=0;s<t.height;s+=n){const i=e.getImageData,o=yt in i?i[yt]:i,a=new Uint32Array(o.call(e,r,s,Math.min(n,t.width-r),Math.min(n,t.height-s)).data.buffer);if(a.some(t=>0!==t))return!1}return!0}function vt(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?gt(e):null}function St(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let kt=1;const Ot=new RegExp("[^a-z0-9-_:]"),wt=-2;function Et(){return kt++}function xt(t){if(t instanceof HTMLFormElement)return"form";const e=gt(t.tagName);return Ot.test(e)?"div":e}function Tt(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}let It,Ct;const jt=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rt=/^(?:[a-z+]+:)?\/\//i,Mt=/^www\..*/i,At=/^(data:)([^,]*),(.*)/i;function Dt(t,e){return(t||"").replace(jt,(t,n,r,s,i,o)=>{const a=r||i||o,c=n||s||"";if(!a)return t;if(Rt.test(a)||Mt.test(a))return`url(${c}${a}${c})`;if(At.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${Tt(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`})}const Nt=/^[^ \t\n\r\u000c]+/,Lt=/^[, \t\n\r\u000c]+/;function Pt(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const s=t.exec(e.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];while(1){if(r(Lt),n>=e.length)break;let i=r(Nt);if(","===i.slice(-1))i=Ft(t,i.substring(0,i.length-1)),s.push(i);else{let r="";i=Ft(t,i);let o=!1;while(1){const t=e.charAt(n);if(""===t){s.push((i+r).trim());break}if(o)")"===t&&(o=!1);else{if(","===t){n+=1,s.push((i+r).trim());break}"("===t&&(o=!0)}r+=t,n+=1}}}return s.join(", ")}function Ft(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function $t(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function Ut(){const t=document.createElement("a");return t.href="",t.href}function Bt(t,e,n,r,s,i){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ft(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?Pt(t,r):"style"===n?Dt(r,Ut()):"object"===e&&"data"===n?Ft(t,r):"function"===typeof i?i(n,r,s):r:Ft(t,r):r}function zt(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Ht(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"===typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(s){}return!1}function Wt(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function qt(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:qt(t.parentNode,e,n,r+1):-1}function Yt(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"===typeof t){if(r.matches("."+t))return!0}else if(Wt(r,t))return!0;return!(!e||!r.matches(e))}catch(s){return!1}}}function Vt(t,e,n,r,s,i){try{const o=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){const t=o.getAttribute("autocomplete"),e=["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"];if(e.includes(t))return!0}let a=-1,c=-1;if(i){if(c=qt(o,Yt(r,s)),c<0)return!0;a=qt(o,Yt(e,n),c>=0?c:1/0)}else{if(a=qt(o,Yt(e,n)),a<0)return!1;c=qt(o,Yt(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(o){}return!!i}function Kt(t,e,n){const r=t.contentWindow;if(!r)return;let s,i=!1;try{s=r.document.readyState}catch(a){return}if("complete"!==s){const r=setTimeout(()=>{i||(e(),i=!0)},n);return void t.addEventListener("load",()=>{clearTimeout(r),i=!0,e()})}const o="about:blank";if(r.location.href!==o||t.src===o||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Jt(t,e,n){let r,s=!1;try{r=t.sheet}catch(o){return}if(r)return;const i=setTimeout(()=>{s||(e(),s=!0)},n);t.addEventListener("load",()=>{clearTimeout(i),s=!0,e()})}function Gt(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:b={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:v,newlyAddedElement:S=!1}=e,k=Xt(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:et.Document,childNodes:[],compatMode:t.compatMode}:{type:et.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:et.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:k};case t.ELEMENT_NODE:return Zt(t,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:b,inlineImages:y,recordCanvas:_,keepIframeSrcFn:v,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return Qt(t,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case t.CDATA_SECTION_NODE:return{type:et.CDATA,textContent:"",rootId:k};case t.COMMENT_NODE:return{type:et.Comment,textContent:t.textContent||"",rootId:k};default:return!1}}function Xt(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}function Qt(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{t.nextSibling||t.previousSibling||tt([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(p=at(t.parentNode.sheet))}catch(b){console.warn("Cannot get CSS styles from text's parentNode. Error: "+b,t)}p=Dt(p,Ut())}f&&(p="SCRIPT_PLACEHOLDER");const g=Vt(t,r,i,s,o,n);if(h||f||m||!p||!g||(p=a?a(p):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p){const e=ft({type:null,tagName:d,maskInputOptions:c});p=mt({isMasked:Vt(t,r,i,s,o,e),element:t,value:p,maskInputFn:u})}return{type:et.Text,textContent:p||"",isStyle:h,rootId:l}}function Zt(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:b,unmaskTextClass:y,maskTextSelector:_,unmaskTextSelector:v}=e,S=Ht(t,r,s,i),k=xt(t);let O={};const w=t.attributes.length;for(let T=0;T<w;T++){const e=t.attributes[T];e.name&&!zt(k,e.name,e.value)&&(O[e.name]=Bt(n,k,gt(e.name),e.value,t,c))}if("link"===k&&o){const e=Array.from(n.styleSheets).find(e=>e.href===t.href);let r=null;e&&(r=at(e)),r&&(delete O.rel,delete O.href,O._cssText=Dt(r,e.href))}if("style"===k&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=at(t.sheet);e&&(O._cssText=Dt(e,Ut()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const e=t,n=vt(e),r=St(e,bt(k),n),s=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Vt(e,b,_,y,v,ft({type:n,tagName:bt(k),maskInputOptions:a}));O.value=mt({isMasked:t,element:e,value:r,maskInputFn:u})}s&&(O.checked=s)}if("option"===k&&(t.selected&&!a["select"]?O.selected=!0:delete O.selected),"canvas"===k&&p)if("2d"===t.__context)_t(t)||(O.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;const r=n.toDataURL(l.type,l.quality);e!==r&&(O.rr_dataURL=e)}if("img"===k&&d){It||(It=n.createElement("canvas"),Ct=It.getContext("2d"));const e=t,r=e.crossOrigin;e.crossOrigin="anonymous";const s=()=>{e.removeEventListener("load",s);try{It.width=e.naturalWidth,It.height=e.naturalHeight,Ct.drawImage(e,0,0),O.rr_dataURL=It.toDataURL(l.type,l.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}r?O.crossOrigin=r:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}if("audio"!==k&&"video"!==k||(O.rr_mediaState=t.paused?"paused":"played",O.rr_mediaCurrentTime=t.currentTime),f||(t.scrollLeft&&(O.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(O.rr_scrollTop=t.scrollTop)),S){const{width:e,height:n}=t.getBoundingClientRect();O={class:O.class,rr_width:e+"px",rr_height:n+"px"}}let E;"iframe"!==k||h(O.src)||(t.contentDocument||(O.rr_src=O.src),delete O.src);try{customElements.get(k)&&(E=!0)}catch(x){}return{type:et.Element,tagName:k,attributes:O,childNodes:[],isSVG:$t(t)||void 0,needBlock:S,rootId:m,isCustom:E}}function te(t){return void 0===t||null===t?"":t.toLowerCase()}function ee(t,e){if(e.comment&&t.type===et.Comment)return!0;if(t.type===et.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"===typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(te(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===te(t.attributes.name)||"icon"===te(t.attributes.rel)||"apple-touch-icon"===te(t.attributes.rel)||"shortcut icon"===te(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&te(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(te(t.attributes.property).match(/^(og|twitter|fb):/)||te(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===te(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===te(t.attributes.name)||"googlebot"===te(t.attributes.name)||"bingbot"===te(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===te(t.attributes.name)||"generator"===te(t.attributes.name)||"framework"===te(t.attributes.name)||"publisher"===te(t.attributes.name)||"progid"===te(t.attributes.name)||te(t.attributes.property).match(/^article:/)||te(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===te(t.attributes.name)||"yandex-verification"===te(t.attributes.name)||"csrf-token"===te(t.attributes.name)||"p:domain_verify"===te(t.attributes.name)||"verify-v1"===te(t.attributes.name)||"verification"===te(t.attributes.name)||"shopify-checkout-api-token"===te(t.attributes.name)))return!0}}return!1}function ne(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOMOptions:y,dataURLOptions:_={},inlineImages:v=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:w=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:I=!1}=e;let{preserveWhiteSpace:C=!0}=e;const j=Gt(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,dataURLOptions:_,inlineImages:v,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!j)return console.warn(t,"not serialized"),null;let R;R=r.hasNode(t)?r.getId(t):ee(j,y)||!C&&j.type===et.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?wt:Et();const M=Object.assign(j,{id:R});if(r.add(t,M),R===wt)return null;k&&k(t);let A=!p;if(M.type===et.Element){A=A&&!M.needBlock,delete M.needBlock;const e=t.shadowRoot;e&&st(e)&&(M.isShadowHost=!0)}if((M.type===et.Document||M.type===et.Element)&&A){y.headWhitespace&&M.type===et.Element&&"head"===M.tagName&&(C=!1);const e={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOMOptions:y,dataURLOptions:_,inlineImages:v,recordCanvas:S,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T};for(const n of Array.from(t.childNodes)){const t=ne(n,e);t&&M.childNodes.push(t)}if(nt(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=ne(n,e);r&&(st(t.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}return t.parentNode&&rt(t.parentNode)&&st(t.parentNode)&&(M.isShadow=!0),M.type===et.Element&&"iframe"===M.tagName&&Kt(t,()=>{const e=t.contentDocument;if(e&&O){const n=ne(e,{doc:e,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOMOptions:y,dataURLOptions:_,inlineImages:v,recordCanvas:S,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T});n&&O(t,n)}},w),M.type===et.Element&&"link"===M.tagName&&"stylesheet"===M.attributes.rel&&Jt(t,()=>{if(E){const e=ne(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOMOptions:y,dataURLOptions:_,inlineImages:v,recordCanvas:S,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T});e&&E(t,e)}},x),M}function re(t,e){const{mirror:n=new pt,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:x=(()=>!1)}=e||{},T=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,I=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y;return ne(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:T,maskAttributeFn:m,maskTextFn:g,maskInputFn:b,slimDOMOptions:I,dataURLOptions:_,inlineImages:p,recordCanvas:h,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:x,newlyAddedElement:!1})}function se(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}function ie(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const oe="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ae={map:{},getId(){return console.error(oe),-1},getNode(){return console.error(oe),null},removeNodeFromMap(){console.error(oe)},has(){return console.error(oe),!1},reset(){console.error(oe)}};function ce(t,e,n={}){let r=null,s=0;return function(...i){const o=Date.now();s||!1!==n.leading||(s=o);const a=e-(o-s),c=this;a<=0||a>e?(r&&(clearTimeout(r),r=null),s=o,t.apply(c,i)):r||!1===n.trailing||(r=setTimeout(()=>{s=!1===n.leading?0:Date.now(),r=null,t.apply(c,i)},a))}}function ue(t,e,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(t){setTimeout(()=>{n.set.call(this,t)},0),i&&i.set&&i.set.call(this,t)}}),()=>ue(t,e,i||{},!0)}function le(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return"function"===typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(ae=new Proxy(ae,{get(t,e,n){return"map"===e&&console.error(oe),Reflect.get(t,e,n)}}));let de,pe=Date.now;function he(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:se([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||se([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||se([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:se([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||se([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||se([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function fe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function me(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ge(t,e,n,r,s){if(!t)return!1;const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!i)return!1;const o=Yt(e,n);if(!s){const t=r&&i.matches(r);return o(i)&&!t}const a=qt(i,o);let c=-1;return!(a<0)&&(r&&(c=qt(i,Yt(null,r))),a>-1&&c<0||a<c)}function be(t,e){return-1!==e.getId(t)}function ye(t,e){return e.getId(t)===wt}function _e(t,e){if(rt(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||_e(t.parentNode,e))}function ve(t){return Boolean(t.changedTouches)}function Se(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}function ke(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function Oe(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function we(t){return Boolean(se([t,"optionalAccess",t=>t.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(pe=()=>(new Date).getTime());class Ee{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return r(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function xe(t){let e=null;return se([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Te(t){let e,n=t;while(e=xe(n))n=e;return n}function Ie(t){const e=t.ownerDocument;if(!e)return!1;const n=Te(t);return e.contains(n)}function Ce(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||Ie(t))}function je(){if(de)return de;const t=window.document;let e=window.requestAnimationFrame;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.requestAnimationFrame&&(e=r.requestAnimationFrame),t.head.removeChild(n)}catch(n){}return de=e.bind(window)}function Re(...t){return je()(...t)}var Me=(t=>(t[t["DomContentLoaded"]=0]="DomContentLoaded",t[t["Load"]=1]="Load",t[t["FullSnapshot"]=2]="FullSnapshot",t[t["IncrementalSnapshot"]=3]="IncrementalSnapshot",t[t["Meta"]=4]="Meta",t[t["Custom"]=5]="Custom",t[t["Plugin"]=6]="Plugin",t))(Me||{}),Ae=(t=>(t[t["Mutation"]=0]="Mutation",t[t["MouseMove"]=1]="MouseMove",t[t["MouseInteraction"]=2]="MouseInteraction",t[t["Scroll"]=3]="Scroll",t[t["ViewportResize"]=4]="ViewportResize",t[t["Input"]=5]="Input",t[t["TouchMove"]=6]="TouchMove",t[t["MediaInteraction"]=7]="MediaInteraction",t[t["StyleSheetRule"]=8]="StyleSheetRule",t[t["CanvasMutation"]=9]="CanvasMutation",t[t["Font"]=10]="Font",t[t["Log"]=11]="Log",t[t["Drag"]=12]="Drag",t[t["StyleDeclaration"]=13]="StyleDeclaration",t[t["Selection"]=14]="Selection",t[t["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",t[t["CustomElement"]=16]="CustomElement",t))(Ae||{}),De=(t=>(t[t["MouseUp"]=0]="MouseUp",t[t["MouseDown"]=1]="MouseDown",t[t["Click"]=2]="Click",t[t["ContextMenu"]=3]="ContextMenu",t[t["DblClick"]=4]="DblClick",t[t["Focus"]=5]="Focus",t[t["Blur"]=6]="Blur",t[t["TouchStart"]=7]="TouchStart",t[t["TouchMove_Departed"]=8]="TouchMove_Departed",t[t["TouchEnd"]=9]="TouchEnd",t[t["TouchCancel"]=10]="TouchCancel",t))(De||{}),Ne=(t=>(t[t["Mouse"]=0]="Mouse",t[t["Pen"]=1]="Pen",t[t["Touch"]=2]="Touch",t))(Ne||{});function Le(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}function Pe(t){return"__ln"in t}class Fe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Le([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Pe(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Pe(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const $e=(t,e)=>`${t}@${e}`;class Ue{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Fe,r=t=>{let e=t,n=wt;while(n===wt)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{if(!s.parentNode||!Ce(s))return;const i=rt(s.parentNode)?this.mirror.getId(xe(s)):this.mirror.getId(s.parentNode),o=r(s);if(-1===i||-1===o)return n.addNode(s);const a=ne(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{ke(t,this.mirror)&&this.iframeManager.addIframe(t),Oe(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),we(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:i,nextId:o,node:a}),e.add(a.id))};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)ze(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||s(a);for(const a of this.addedSet)We(this.droppedSet,a)||ze(this.removes,a,this.mirror)?We(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let i=null;while(n.length){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==e&&-1!==n&&(t=i)}if(!t){let e=n.tail;while(e){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode),s=r(n.value);if(-1===s)continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host,s=this.mirror.getId(r);if(-1!==s){t=n;break}}}}}}if(!t){while(n.head)n.removeNode(n.head.value);break}i=t.previous,n.removeNode(t.value),s(t.value)}const o={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{const{attributes:e}=t;if("string"===typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(ye(t.target,this.mirror))return;let e;try{e=document.implementation.createHTMLDocument()}catch(n){e=this.doc}switch(t.type){case"characterData":{const e=t.target.textContent;ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Vt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if("value"===r){const e=vt(n),r=n.tagName;s=St(n,r,e);const i=ft({maskInputOptions:this.maskInputOptions,tagName:r,type:e}),o=Vt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i);s=mt({isMasked:o,element:n,value:s,maskInputFn:this.maskInputFn})}if(ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributes.find(e=>e.node===t.target);if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(s)){if(n.contentDocument)return;r="rr_src"}if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i)),"type"===r&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!zt(n.tagName,r)&&(i.attributes[r]=Bt(this.doc,gt(n.tagName),gt(r),s,n,this.maskAttributeFn),"style"===r)){const r=e.createElement("span");t.oldValue&&r.setAttribute("style",t.oldValue);for(const t of Array.from(n.style)){const e=n.style.getPropertyValue(t),s=n.style.getPropertyPriority(t);e!==r.style.getPropertyValue(t)||s!==r.style.getPropertyPriority(t)?i.styleDiff[t]=""===s?e:[e,s]:i._unchangedStyles[t]=[e,s]}for(const t of Array.from(r.style))""===n.style.getPropertyValue(t)&&(i.styleDiff[t]=!1)}break}case"childList":if(ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{const n=this.mirror.getId(e),r=rt(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ye(e,this.mirror)||!be(e,this.mirror)||(this.addedSet.has(e)?(Be(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||_e(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[$e(n,r)]?Be(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!rt(t.target)||!st(t.target))||void 0})),this.mapRemoves.push(e))});break}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(ye(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[$e(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ge(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(t=>this.genAdds(t)),we(t)&&t.shadowRoot.childNodes.forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Be(t,e){t.delete(e),e.childNodes.forEach(e=>Be(t,e))}function ze(t,e,n){return 0!==t.length&&He(t,e,n)}function He(t,e,n){const{parentNode:r}=e;if(!r)return!1;const s=n.getId(r);return!!t.some(t=>t.id===s)||He(t,r,n)}function We(t,e){return 0!==t.size&&qe(t,e)}function qe(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||qe(t,n))}let Ye;function Ve(t){Ye=t}function Ke(){Ye=void 0}const Je=t=>{if(!Ye)return t;const e=(...e)=>{try{return t(...e)}catch(n){if(Ye&&!0===Ye(n))return()=>{};throw n}};return e};function Ge(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}const Xe=[];function Qe(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function Ze(t,e){const n=new Ue;Xe.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const s=Ge([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r(Je(e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)}));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function tn({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const s="number"===typeof e.mousemove?e.mousemove:50,i="number"===typeof e.mousemoveCallback?e.mousemoveCallback:500;let o,a=[];const c=ce(Je(e=>{const n=Date.now()-o;t(a.map(t=>(t.timeOffset-=n,t)),e),a=[],o=null}),i),u=Je(ce(Je(t=>{const e=Qe(t),{clientX:n,clientY:s}=ve(t)?t.changedTouches[0]:t;o||(o=pe()),a.push({x:n,y:s,id:r.getId(e),timeOffset:pe()-o}),c("undefined"!==typeof DragEvent&&t instanceof DragEvent?Ae.Drag:t instanceof MouseEvent?Ae.MouseMove:Ae.TouchMove)}),s,{trailing:!1})),l=[ie("mousemove",u,n),ie("touchmove",u,n),ie("drag",u,n)];return Je(()=>{l.forEach(t=>t())})}function en({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,c=[];let u=null;const l=e=>o=>{const a=Qe(o);if(ge(a,r,s,i,!0))return;let c=null,l=e;if("pointerType"in o){switch(o.pointerType){case"mouse":c=Ne.Mouse;break;case"touch":c=Ne.Touch;break;case"pen":c=Ne.Pen;break}c===Ne.Touch?De[e]===De.MouseDown?l="TouchStart":De[e]===De.MouseUp&&(l="TouchEnd"):Ne.Pen}else ve(o)&&(c=Ne.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Ne.Touch||l.startsWith("Mouse")&&c===Ne.Mouse)&&(c=null)):De[e]===De.Click&&(c=u,u=null);const d=ve(o)?o.changedTouches[0]:o;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;Je(t)({type:De[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})};return Object.keys(De).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t]).forEach(t=>{let n=gt(t);const r=l(t);if(window.PointerEvent)switch(De[t]){case De.MouseDown:case De.MouseUp:n=n.replace("mouse","pointer");break;case De.TouchStart:case De.TouchEnd:return}c.push(ie(n,r,e))}),Je(()=>{c.forEach(t=>t())})}function nn({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=Je(ce(Je(o=>{const a=Qe(o);if(!a||ge(a,r,s,i,!0))return;const c=n.getId(a);if(a===e&&e.defaultView){const n=he(e.defaultView);t({id:c,x:n.left,y:n.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100));return ie("scroll",a,e)}function rn({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const s=Je(ce(Je(()=>{const e=fe(),s=me();n===e&&r===s||(t({width:Number(s),height:Number(e)}),n=e,r=s)}),200));return ie("resize",s,e)}const sn=["INPUT","TEXTAREA","SELECT"],on=new WeakMap;function an({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(t){let n=Qe(t);const l=t.isTrusted,g=n&&bt(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||sn.indexOf(g)<0||ge(n,r,s,i,!0))return;const y=n;if(y.classList.contains(o)||a&&y.matches(a))return;const _=vt(n);let v=St(y,g,_),S=!1;const k=ft({maskInputOptions:c,tagName:g,type:_}),O=Vt(n,p,f,h,m,k);"radio"!==_&&"checkbox"!==_||(S=n.checked),v=mt({isMasked:O,element:n,value:v,maskInputFn:u}),b(n,d?{text:v,isChecked:S,userTriggered:l}:{text:v,isChecked:S});const w=n.name;"radio"===_&&w&&S&&e.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(t=>{if(t!==n){const e=mt({isMasked:O,element:t,value:St(t,g,_),maskInputFn:u});b(t,d?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}})}function b(e,r){const s=on.get(e);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){on.set(e,r);const s=n.getId(e);Je(t)({...r,id:s})}}const y="last"===l.input?["change"]:["input","change"],_=y.map(t=>ie(t,Je(g),e)),v=e.defaultView;if(!v)return()=>{_.forEach(t=>t())};const S=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),k=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&_.push(...k.map(t=>ue(t[0],t[1],{set(){Je(g)({target:this,isTrusted:!1})}},!1,v))),Je(()=>{_.forEach(t=>t())})}function cn(t){const e=[];function n(t,e){if(yn("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||yn("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||yn("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||yn("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules),r=n.indexOf(t);e.unshift(r)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules),r=n.indexOf(t);e.unshift(r)}return e}return n(t,e)}function un(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function ln({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Je((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=un(s,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:o,index:a}]}),r.apply(s,i)})});const i=r.CSSStyleSheet.prototype.deleteRule;let o,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Je((r,s,i)=>{const[o]=i,{id:a,styleId:c}=un(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:o}]}),r.apply(s,i)})}),r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Je((r,s,i)=>{const[o]=i,{id:a,styleId:c}=un(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replace:o}),r.apply(s,i)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Je((r,s,i)=>{const[o]=i,{id:a,styleId:c}=un(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replaceSync:o}),r.apply(s,i)})}));const c={};_n("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(_n("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),_n("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),_n("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Je((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=un(s.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:o,index:[...cn(s),a||0]}]}),r.apply(s,i)})}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Je((r,s,i)=>{const[o]=i,{id:a,styleId:c}=un(s.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:[...cn(s),o]}]}),r.apply(s,i)})})}),Je(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule})})}function dn({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const s="#document"===n.nodeName?Ge([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):Ge([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),i=Ge([s,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(Ge([s,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Ge([i,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=Ge([i,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(s){}return n}}),Je(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function pn({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Je((s,o,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(o,[c,u,l]);const{id:d,styleId:p}=un(Ge([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&t({id:d,styleId:p,set:{property:c,value:u,priority:l},index:cn(o.parentRule)}),s.apply(o,a)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Je((s,i,a)=>{const[c]=a;if(n.has(c))return o.apply(i,[c]);const{id:u,styleId:l}=un(Ge([i,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:c},index:cn(i.parentRule)}),s.apply(i,a)})}),Je(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function hn({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=Je(o=>ce(Je(i=>{const a=Qe(i);if(!a||ge(a,e,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:o,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),i.media||500)),c=[ie("play",a(0),o),ie("pause",a(1),o),ie("seeked",a(2),o),ie("volumechange",a(3),o),ie("ratechange",a(4),o)];return Je(()=>{c.forEach(t=>t())})}function fn({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,n){const r=new i(t,e,n);return s.set(r,{family:t,buffer:"string"!==typeof e,descriptors:n,fontSource:"string"===typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const o=le(e.fonts,"add",(function(e){return function(n){return setTimeout(Je(()=>{const e=s.get(n);e&&(t(e),s.delete(n))}),0),e.apply(this,[n])}}));return r.push(()=>{n.FontFace=i}),r.push(o),Je(()=>{r.forEach(t=>t())})}function mn(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=t;let a=!0;const c=Je(()=>{const t=e.getSelection();if(!t||a&&Ge([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const o=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=o,p=ge(a,r,s,i,!0)||ge(l,r,s,i,!0);p||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}o({ranges:c})});return c(),ie("selectionchange",c)}function gn({doc:t,customElementCb:e}){const n=t.defaultView;if(!n||!n.customElements)return()=>{};const r=le(n.customElements,"define",(function(t){return function(n,r,s){try{e({define:{name:n}})}catch(i){}return t.apply(this,[n,r,s])}}));return r}function bn(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};const r=Ze(t,t.doc),s=tn(t),i=en(t),o=nn(t),a=rn(t,{win:n}),c=an(t),u=hn(t),l=ln(t,{win:n}),d=dn(t,t.doc),p=pn(t,{win:n}),h=t.collectFonts?fn(t):()=>{},f=mn(t),m=gn(t),g=[];for(const b of t.plugins)g.push(b.observer(b.callback,n,b.options));return Je(()=>{Xe.forEach(t=>t.reset()),r.disconnect(),s(),i(),o(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach(t=>t())})}function yn(t){return"undefined"!==typeof window[t]}function _n(t){return Boolean("undefined"!==typeof window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class vn{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const s=n||this.getIdToRemoteIdMap(t),i=r||this.getRemoteIdToIdMap(t);let o=s.get(e);return o||(o=this.generateIdFn(),s.set(e,o),i.set(o,e)),o}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,r))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!==typeof e)return e;const s=r.get(e);return s||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function Sn(t){let e=void 0,n=t[0],r=1;while(r<t.length){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i((...t)=>n.call(e,...t)),e=void 0)}return n}class kn{constructor(){this.crossOriginIframeMirror=new vn(Et),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class On{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new vn(Et),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Sn([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;const n=t.source;if(!n)return;const r=this.crossOriginIframeMap.get(t.source);if(!r)return;const s=this.transformCrossOriginEvent(r,e.data.event);s&&this.wrappedEmit(s,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case Me.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:Me.IncrementalSnapshot,data:{source:Ae.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Me.Meta:case Me.Load:case Me.DomContentLoaded:return!1;case Me.Plugin:return e;case Me.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case Me.IncrementalSnapshot:switch(e.data.source){case Ae.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)}),e.data.removes.forEach(e=>{this.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,t,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case Ae.Drag:case Ae.TouchMove:case Ae.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case Ae.ViewportResize:return!1;case Ae.MediaInteraction:case Ae.MouseInteraction:case Ae.Scroll:case Ae.CanvasMutation:case Ae.Input:return this.replaceIds(e.data,t,["id"]),e;case Ae.StyleSheetRule:case Ae.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Ae.Font:return e;case Ae.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case Ae.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),Sn([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e(e=>{this.replaceStyleIds(e,t,["styleId"])})]),e}}return!1}replace(t,e,n,r){for(const s of r)(Array.isArray(e[s])||"number"===typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(n,e[s]):e[s]=t.getId(n,e[s]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(t,e){t.type===et.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}}class wn{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class En{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!st(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=Ze({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(nn({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(dn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(le(t.prototype,"attachShadow",(function(t){return function(r){const s=t.call(this,r);return this.shadowRoot&&Ce(this)&&n.addShadowRoot(this.shadowRoot,e),s}})))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class xn{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Tn{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ee,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const s of t){let t;this.styleMirror.has(s)?t=this.styleMirror.getId(s):(t=this.styleMirror.add(s),r.push({styleId:t,rules:Array.from(s.rules||CSSRule,(t,e)=>({rule:ct(t),index:e}))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class In{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Re(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some(t=>t!==e)}add(t,e){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Cn(t){const e=t;return e.timestamp=pe(),e}let jn;const Rn=ht();function Mn(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:b,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,packFn:k,sampling:O={},dataURLOptions:w={},mousemoveWait:E,recordCanvas:x=!1,recordCrossOriginIframes:T=!1,recordAfter:I=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:C=!1,collectFonts:j=!1,inlineImages:R=!1,plugins:M,keepIframeSrcFn:A=(()=>!1),ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:P}=t;Ve(N);const F=!T||window.parent===window;let $=!1;if(!F)try{window.parent.document&&($=!1)}catch(nt){$=!0}if(F&&!e)throw new Error("emit function is required");void 0!==E&&void 0===O.mousemove&&(O.mousemove=E),Rn.reset();const U=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==b?b:{},B=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let z;Se();let H=0;const W=t=>{for(const e of M||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&!$&&(t=k(t)),t},q=(t,i)=>{if(!s([Xe,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])||t.type===Me.FullSnapshot||t.type===Me.IncrementalSnapshot&&t.data.source===Ae.Mutation||Xe.forEach(t=>t.unfreeze()),F)s([e,"optionalCall",e=>e(W(t),i)]);else if($){const e={type:"rrweb",event:W(t),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(t.type===Me.FullSnapshot)z=t,H=0;else if(t.type===Me.IncrementalSnapshot){if(t.data.source===Ae.Mutation&&t.data.isAttachIframe)return;H++;const e=r&&H>=r,s=n&&t.timestamp-z.timestamp>n;(e||s)&&et(!0)}},Y=t=>{q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.Mutation,...t}}))},V=t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.Scroll,...t}})),K=t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.CanvasMutation,...t}})),J=t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.AdoptedStyleSheet,...t}})),G=new Tn({mutationCb:Y,adoptedStyleSheetCb:J}),X="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new kn:new On({mirror:Rn,mutationCb:Y,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:q});for(const s of M||[])s.getMirror&&s.getMirror({nodeMirror:Rn,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new In,Z=Dn(P,{mirror:Rn,win:window,mutationCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.CanvasMutation,...t}})),recordCanvas:x,blockClass:i,blockSelector:o,unblockSelector:a,sampling:O["canvas"],dataURLOptions:w,errorHandler:N}),tt="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new wn:new En({mutationCb:Y,scrollCb:V,bypassOptions:{onMutation:L,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:U,dataURLOptions:w,maskAttributeFn:_,maskTextFn:S,maskInputFn:v,recordCanvas:x,inlineImages:R,sampling:O,slimDOMOptions:B,iframeManager:X,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:A,processedNodeManager:Q},mirror:Rn}),et=(t=!1)=>{q(Cn({type:Me.Meta,data:{href:window.location.href,width:me(),height:fe()}}),t),G.reset(),tt.init(),Xe.forEach(t=>t.lock());const e=re(document,{mirror:Rn,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:U,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,slimDOM:B,dataURLOptions:w,recordCanvas:x,inlineImages:R,onSerialize:t=>{ke(t,Rn)&&X.addIframe(t),Oe(t,Rn)&&G.trackLinkElement(t),we(t)&&tt.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{X.attachIframe(t,e),tt.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:A});if(!e)return console.warn("Failed to snapshot the document");q(Cn({type:Me.FullSnapshot,data:{node:e,initialOffset:he(window)}})),Xe.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Rn.getId(document))};jn=et;try{const t=[],e=t=>Je(bn)({onMutation:L,mutationCb:Y,mousemoveCb:(t,e)=>q(Cn({type:Me.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.MouseInteraction,...t}})),scrollCb:V,viewportResizeCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.ViewportResize,...t}})),inputCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.Input,...t}})),mediaInteractionCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.MediaInteraction,...t}})),styleSheetRuleCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.StyleSheetRule,...t}})),styleDeclarationCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.StyleDeclaration,...t}})),canvasMutationCb:K,fontCb:t=>q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.Font,...t}})),selectionCb:t=>{q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.Selection,...t}}))},customElementCb:t=>{q(Cn({type:Me.IncrementalSnapshot,data:{source:Ae.CustomElement,...t}}))},blockClass:i,ignoreClass:c,ignoreSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:U,inlineStylesheet:m,sampling:O,recordCanvas:x,inlineImages:R,userTriggeredOnInput:C,collectFonts:j,doc:t,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,keepIframeSrcFn:A,blockSelector:o,unblockSelector:a,slimDOMOptions:B,dataURLOptions:w,mirror:Rn,iframeManager:X,stylesheetManager:G,shadowDomManager:tt,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:D,plugins:s([M,"optionalAccess",t=>t.filter,"call",t=>t(t=>t.observer),"optionalAccess",t=>t.map,"call",t=>t(t=>({observer:t.observer,options:t.options,callback:e=>q(Cn({type:Me.Plugin,data:{plugin:t.name,payload:e}}))}))])||[]},{});X.addLoadListener(n=>{try{t.push(e(n.contentDocument))}catch(r){console.warn(r)}});const n=()=>{et(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(ie("DOMContentLoaded",()=>{q(Cn({type:Me.DomContentLoaded,data:{}})),"DOMContentLoaded"===I&&n()})),t.push(ie("load",()=>{q(Cn({type:Me.Load,data:{}})),"load"===I&&n()},window))),()=>{t.forEach(t=>t()),Q.destroy(),jn=void 0,Ke()}}catch(rt){console.warn(rt)}}function An(t){if(!jn)throw new Error("please take full snapshot after start recording");jn(t)}function Dn(t,e){try{return t?t(e):new xn}catch(n){return console.warn("Unable to initialize CanvasManager"),new xn}}Mn.mirror=Rn,Mn.takeFullSnapshot=An;const Nn=3,Ln=5;function Pn(t){const e=t>9999999999;return e?t:1e3*t}function Fn(t){const e=t>9999999999;return e?t/1e3:t}function $n(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:Me.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:Object(b["a"])(e,10,1e3)}}),"console"===e.category)))}const Un="button,a";function Bn(t){const e=t.closest(Un);return e||t}function zn(t){const e=Hn(t);return e&&e instanceof Element?Bn(e):e}function Hn(t){return Wn(t)?t.target:t}function Wn(t){return"object"===typeof t&&!!t&&"target"in t}let qn;function Yn(t){return qn||(qn=[],Vn()),qn.push(t),()=>{const e=qn?qn.indexOf(t):-1;e>-1&&qn.splice(e,1)}}function Vn(){Object(y["e"])(D,"open",(function(t){return function(...e){if(qn)try{qn.forEach(t=>t())}catch(n){}return t.apply(D,e)}}))}function Kn(t,e,n){t.handleClick(e,n)}class Jn{constructor(t,e,n=$n){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=Yn(()=>{this._lastMutation=Zn()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(Xn(e,this._ignoreSelector)||!Qn(t))return;const n={timestamp:Fn(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some(t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Fn(t)}registerScroll(t=Date.now()){this._lastScroll=Fn(t)}registerClick(t){const e=Bn(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach(t=>{t.clickCount++})}_getClicks(t){return this._clicks.filter(e=>e.node===t)}_checkClicks(){const t=[],e=Zn();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=e&&t.push(n)});for(const n of t){const t=this._clicks.indexOf(n);t>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:i,clickBreadcrumb:o}=t;if(s){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:D.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(e,s)}else if(i>1){const t={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:D.location.href,route:e.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const Gn=["A","BUTTON","INPUT"];function Xn(t,e){return!Gn.includes(t.tagName)||("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||(!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!e||!t.matches(e))))}function Qn(t){return!(!t.data||"number"!==typeof t.data.nodeId||!t.timestamp)}function Zn(){return Date.now()/1e3}function tr(t,e){try{if(!er(e))return;const{source:n}=e.data;if(n===Ae.Mutation&&t.registerMutation(e.timestamp),n===Ae.Scroll&&t.registerScroll(e.timestamp),nr(e)){const{type:n,id:r}=e.data,s=Mn.mirror.getNode(r);s instanceof HTMLElement&&n===De.Click&&t.registerClick(s)}}catch(n){}}function er(t){return t.type===Nn}function nr(t){return t.data.source===Ae.MouseInteraction}function rr(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var sr;(function(t){t[t["Document"]=0]="Document",t[t["DocumentType"]=1]="DocumentType",t[t["Element"]=2]="Element",t[t["Text"]=3]="Text",t[t["CDATA"]=4]="CDATA",t[t["Comment"]=5]="Comment"})(sr||(sr={}));const ir=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function or(t){const e={};for(const n in t)if(ir.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const ar=t=>e=>{if(!t.isEnabled())return;const n=ur(e);if(!n)return;const r="click"===e.name,s=r?e.event:void 0;!(r&&t.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||Kn(t.clickDetector,n,zn(e.event)),$n(t,n)};function cr(t,e){const n=Mn.mirror.getId(t),r=n&&Mn.mirror.getNode(n),s=r&&Mn.mirror.getMeta(r),i=s&&dr(s)?s:null;return{message:e,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(t=>t.type===sr.Text&&t.textContent).filter(Boolean).map(t=>t.trim()).join(""),attributes:or(i.attributes)}}:{}}}function ur(t){const{target:e,message:n}=lr(t);return rr({category:"ui."+t.name,...cr(e,n)})}function lr(t){const e="click"===t.name;let n,r=null;try{r=e?zn(t.event):Hn(t.event),n=Object(_["d"])(r,{maxStringLength:200})||"<unknown>"}catch(s){n="<unknown>"}return{target:r,message:n}}function dr(t){return t.type===sr.Element}function pr(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=hr(e);n&&$n(t,n)}function hr(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=t;if(!o||fr(o)||!i)return null;const a=e||r||s,c=1===i.length;if(!a&&c)return null;const u=Object(_["d"])(o,{maxStringLength:200})||"<unknown>",l=cr(o,u);return rr({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function fr(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}const mr={resource:Sr,paint:_r,navigation:vr};function gr(t){return t.map(br).filter(Boolean)}function br(t){return mr[t.entryType]?mr[t.entryType](t):null}function yr(t){return((v["a"]||D.performance.timeOrigin)+t)/1e3}function _r(t){const{duration:e,entryType:n,name:r,startTime:s}=t,i=yr(s);return{type:n,name:r,start:i,end:i+e,data:void 0}}function vr(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=t;return 0===s?null:{type:`${e}.${m}`,start:yr(h),end:yr(i),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}function Sr(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:yr(i),end:yr(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function kr(t){const e=t.entries,n=e[e.length-1],r=n?n.element:void 0,s=t.value,i=yr(s),o={type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:s,size:s,nodeId:r?Mn.mirror.getId(r):void 0}};return o}function Or(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(t=>{r.push(Object(A["d"])(t,n))}),r.push(Object(A["c"])(({metric:e})=>{t.replayPerformanceEntries.push(kr(e))})),()=>{r.forEach(t=>t())}}const wr="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Er='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function xr(){const t=new Blob([Er]);return URL.createObjectURL(t)}function Tr(t,e){wr&&(S["c"].info(t),e&&Cr(t))}function Ir(t,e){wr&&(S["c"].info(t),e&&setTimeout(()=>{Cr(t)},0))}function Cr(t){Object(i["a"])({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class jr extends Error{constructor(){super(`Event buffer exceeded maximum size of ${J}.`)}}class Rr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>J)throw new jr;this.events.push(t)}finish(){return new Promise(t=>{const e=this.events;this.clear(),t(JSON.stringify(e))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(t=>t.timestamp).sort()[0];return t?Pn(t):null}}class Mr{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){Tr("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise((r,s)=>{const i=({data:e})=>{const o=e;if(o.method===t&&o.id===n){if(this._worker.removeEventListener("message",i),!o.success)return wr&&S["c"].error("[Replay]",o.response),void s(new Error("Error in compression worker"));r(o.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:t,arg:e})})}_getAndIncrementId(){return this._id++}}class Ar{constructor(t){this._worker=new Mr(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=Pn(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>J?Promise.reject(new jr):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{wr&&S["c"].warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Dr{constructor(t){this._fallback=new Rr,this._compression=new Ar(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void Tr("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e}=this._fallback,n=[];for(const s of t)n.push(this._compression.addEvent(s));this._compression.hasCheckout=e,this._used=this._compression;try{await Promise.all(n)}catch(r){wr&&S["c"].warn("[Replay] Failed to add events when switching buffers.",r)}}}function Nr({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=Lr(e);if(t)return t}return Tr("[Replay] Using simple buffer"),new Rr}function Lr(t){try{const e=t||Pr();if(!e)return;Tr("[Replay] Using compression worker"+(t?" from "+t:""));const n=new Worker(e);return new Dr(n)}catch(e){Tr("[Replay] Failed to create compression worker")}}function Pr(){return"undefined"!==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":xr()}function Fr(){try{return"sessionStorage"in D&&!!D.sessionStorage}catch(t){return!1}}function $r(t){Ur(),t.session=void 0}function Ur(){if(Fr())try{D.sessionStorage.removeItem(N)}catch(t){}}function Br(t){return void 0!==t&&Math.random()<t}function zr(t){const e=Date.now(),n=t.id||Object(k["f"])(),r=t.started||e,s=t.lastActivity||e,i=t.segmentId||0,o=t.sampled,a=t.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a}}function Hr(t){if(Fr())try{D.sessionStorage.setItem(N,JSON.stringify(t))}catch(e){}}function Wr(t,e){return Br(t)?"session":!!e&&"buffer"}function qr({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=Wr(t,e),i=zr({sampled:s,previousSessionId:r});return n&&Hr(i),i}function Yr(t){if(!Fr())return null;try{const e=D.sessionStorage.getItem(N);if(!e)return null;const n=JSON.parse(e);return Ir("[Replay] Loading existing session",t),zr(n)}catch(e){return null}}function Vr(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Kr(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Vr(t.started,e,r)||Vr(t.lastActivity,n,r)}function Jr(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!!Kr(t,{sessionIdleExpire:e,maxReplayDuration:n})&&("buffer"!==t.sampled||0!==t.segmentId)}function Gr({traceInternals:t,sessionIdleExpire:e,maxReplayDuration:n,previousSessionId:r},s){const i=s.stickySession&&Yr(t);return i?Jr(i,{sessionIdleExpire:e,maxReplayDuration:n})?(Ir("[Replay] Session in sessionStorage is expired, creating new one..."),qr(s,{previousSessionId:i.id})):i:(Ir("[Replay] Creating new session",t),qr(s,{previousSessionId:r}))}function Xr(t){return t.type===Me.Custom}function Qr(t,e,n){return!!es(t,e)&&(ts(t,e,n),!0)}function Zr(t,e,n){return es(t,e)?ts(t,e,n):Promise.resolve(null)}async function ts(t,e,n){if(!t.eventBuffer)return null;try{n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=t.getOptions(),s=ns(e,r.beforeAddRecordingEvent);if(!s)return;return await t.eventBuffer.addEvent(s)}catch(r){const e=r&&r instanceof jr?"addEventSizeExceeded":"addEvent";wr&&S["c"].error(r),await t.stop({reason:e});const n=Object(i["e"])();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function es(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Pn(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(Tr(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1))}function ns(t,e){try{if("function"===typeof e&&Xr(t))return e(t)}catch(n){return wr&&S["c"].error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return t}function rs(t){return!t.type}function ss(t){return"transaction"===t.type}function is(t){return"replay_event"===t.type}function os(t){return"feedback"===t.type}function as(t){const e=ls();return(n,r)=>{if(!t.isEnabled()||!rs(n)&&!ss(n))return;const s=r&&r.statusCode;e&&(!s||s<200||s>=300)||(ss(n)?cs(t,n):us(t,n))}}function cs(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function us(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();("function"!==typeof r||r(e))&&setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function ls(){const t=Object(i["e"])();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function ds(t){return e=>{t.isEnabled()&&rs(e)&&ps(t,e)}}function ps(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0].value;if("string"===typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const e=rr({category:"replay.hydrate-error"});$n(t,e)}}function hs(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}function fs(t,e){t.triggerUserActivity(),t.addUpdate(()=>!e.timestamp||(t.throttledAddEvent({type:Me.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1))}function ms(t,e){return"buffer"===t.recordingMode&&(e.message!==P&&(!(!e.exception||e.type)&&Br(t.getOptions().errorSampleRate)))}function gs(t,e=!1){const n=e?as(t):void 0;return Object.assign((e,r)=>{if(!t.isEnabled())return e;if(is(e))return delete e.breadcrumbs,e;if(!rs(e)&&!ss(e)&&!os(e))return e;const s=t.checkAndHandleExpiredSession();if(!s)return e;if(os(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),fs(t,e),e;if(hs(e,r)&&!t.getOptions()._experiments.captureExceptions)return wr&&S["c"].log("[Replay] Ignoring error from rrweb internals",e),null;const i=ms(t,e),o=i||"session"===t.recordingMode;return o&&(e.tags={...e.tags,replayId:t.getSessionId()}),n&&n(e,{statusCode:200}),e},{id:"Replay"})}function bs(t,e){return e.map(({type:e,start:n,end:r,name:s,data:i})=>{const o=t.throttledAddEvent({type:Me.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:s,startTimestamp:n,endTimestamp:r,data:i}}});return"string"===typeof o?Promise.resolve(null):o})}function ys(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function _s(t){return e=>{if(!t.isEnabled())return;const n=ys(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(bs(t,[n]),!1)))}}function vs(t,e){return(!wr||!t.getOptions()._experiments.traceInternals)&&o(e,Object(i["e"])())}function Ss(t,e){t.isEnabled()&&null!==e&&(vs(t,e.name)||t.addUpdate(()=>(bs(t,[e]),!0)))}function ks(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:s}=t;if(!n)return null;const{method:i,url:o}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:o,data:{method:i,statusCode:s?s.status:void 0}}}function Os(t){return e=>{if(!t.isEnabled())return;const n=ks(e);Ss(t,n)}}function ws(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,s=r[O["a"]];if(!e||!n||!s)return null;const{method:i,url:o,status_code:a}=s;return void 0===o?null:{type:"resource.xhr",name:o,start:e/1e3,end:n/1e3,data:{method:i,statusCode:a}}}function Es(t){return e=>{if(!t.isEnabled())return;const n=ws(e);Ss(t,n)}}function xs(t,e){if(t)try{if("string"===typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Ds(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(n){}}function Ts(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Is(t){try{if("string"===typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Ds(t)];if(!t)return[void 0]}catch(e){return wr&&S["c"].warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return wr&&S["c"].info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Cs(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function js(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=e,u={type:t,start:n/1e3,end:r/1e3,name:s,data:Object(y["c"])({method:i,statusCode:o,request:a,response:c})};return u}function Rs(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Ms(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:i}=Ns(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function As(t,e){return Object.keys(t).reduce((n,r)=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=t[r]),n},{})}function Ds(t){return new URLSearchParams(t).toString()}function Ns(t){if(!t||"string"!==typeof t)return{body:t};const e=t.length>q,n=Ls(t);if(e){const e=t.slice(0,q);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:e+"…",warnings:["TEXT_TRUNCATED"]}}if(n)try{const e=JSON.parse(t);return{body:e}}catch(r){}return{body:t}}function Ls(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}function Ps(t,e){const n=Fs(t);return Object(w["c"])(n,e)}function Fs(t,e=D.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(D.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function $s(t,e,n){try{const r=await Bs(t,e,n),s=js("resource.fetch",r);Ss(n.replay,s)}catch(r){wr&&S["c"].error("[Replay] Failed to capture fetch breadcrumb",r)}}function Us(t,e,n){const{input:r,response:s}=e,i=r?Ys(r):void 0,o=xs(i,n.textEncoder),a=s?Ts(s.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==a&&(t.data.response_body_size=a)}async function Bs(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=e,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=Ps(o,n.networkDetailAllowUrls)&&!Ps(o,n.networkDetailDenyUrls),p=d?zs(n,e.input,u):Rs(u),h=await Hs(d,n,e.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:p,response:h}}function zs({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?Ks(n,e):{};if(!t)return Ms(s,r,void 0);const i=Ys(n),[o,a]=Is(i),c=Ms(s,r,o);return a?Cs(c,a):c}async function Hs(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},s,i){if(!t&&void 0!==i)return Rs(i);const o=s?Vs(s.headers,r):{};if(!s||!e&&void 0!==i)return Ms(o,i,void 0);const[a,c]=await qs(s),u=Ws(a,{networkCaptureBodies:e,textEncoder:n,responseBodySize:i,captureDetails:t,headers:o});return c?Cs(u,c):u}function Ws(t,{networkCaptureBodies:e,textEncoder:n,responseBodySize:r,captureDetails:s,headers:i}){try{const o=t&&t.length&&void 0===r?xs(t,n):r;return s?Ms(i,o,e?t:void 0):Rs(o)}catch(o){return wr&&S["c"].warn("[Replay] Failed to serialize response body",o),Ms(i,r,void 0)}}async function qs(t){const e=Gs(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await Xs(e);return[t]}catch(n){return wr&&S["c"].warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function Ys(t=[]){if(2===t.length&&"object"===typeof t[1])return t[1].body}function Vs(t,e){const n={};return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function Ks(t,e){return 1===t.length&&"string"!==typeof t[0]?Js(t[0],e):2===t.length?Js(t[1],e):{}}function Js(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Vs(n,e):Array.isArray(n)?{}:As(n,e):{}}function Gs(t){try{return t.clone()}catch(e){wr&&S["c"].warn("[Replay] Failed to clone response body",e)}}function Xs(t){return new Promise((e,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);Qs(t).then(t=>e(t),t=>n(t)).finally(()=>clearTimeout(r))})}async function Qs(t){return await t.text()}async function Zs(t,e,n){try{const r=ei(t,e,n),s=js("resource.xhr",r);Ss(n.replay,s)}catch(r){wr&&S["c"].error("[Replay] Failed to capture xhr breadcrumb",r)}}function ti(t,e,n){const{xhr:r,input:s}=e;if(!r)return;const i=xs(s,n.textEncoder),o=r.getResponseHeader("content-length")?Ts(r.getResponseHeader("content-length")):ii(r.response,r.responseType,n.textEncoder);void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o)}function ei(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=t.data;if(!c)return null;if(!a||!Ps(c,n.networkDetailAllowUrls)||Ps(c,n.networkDetailDenyUrls)){const t=Rs(d),e=Rs(p);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:t,response:e}}const h=a[O["a"]],f=h?As(h.request_headers,n.networkRequestHeaders):{},m=As(ni(a),n.networkResponseHeaders),[g,b]=n.networkCaptureBodies?Is(o):[void 0],[y,_]=n.networkCaptureBodies?ri(a):[void 0],v=Ms(f,d,g),S=Ms(m,p,y);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:b?Cs(v,b):v,response:_?Cs(S,_):S}}function ni(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((t,e)=>{const[n,r]=e.split(": ");return t[n.toLowerCase()]=r,t},{}):{}}function ri(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return si(t.response,t.responseType)}catch(n){e.push(n)}return wr&&S["c"].warn("[Replay] Failed to get xhr response body",...e),[void 0]}function si(t,e){try{if("string"===typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"===typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return wr&&S["c"].warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return wr&&S["c"].info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ii(t,e,n){try{const r="json"===e&&t&&"object"===typeof t?JSON.stringify(t):t;return xs(r,n)}catch(r){return}}function oi(t){const e=Object(i["e"])();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",(t,e)=>ai(c,t,e)):(Object(E["a"])(Os(t)),Object(O["b"])(Es(t)))}catch(n){}}function ai(t,e,n){if(e.data)try{ci(e)&&li(n)&&(ti(e,n,t),Zs(e,n,t)),ui(e)&&di(n)&&(Us(e,n,t),$s(e,n,t))}catch(r){wr&&S["c"].warn("Error when enriching network breadcrumb")}}function ci(t){return"xhr"===t.category}function ui(t){return"fetch"===t.category}function li(t){return t&&t.xhr}function di(t){return t&&t.response}let pi=null;function hi(t){return!!t.category}const fi=t=>e=>{if(!t.isEnabled())return;const n=mi(e);n&&$n(t,n)};function mi(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return pi!==e&&e?(pi=e,!hi(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?gi(e):rr(e)):null}function gi(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return rr(t);let n=!1;const r=e.map(t=>{if(!t)return t;if("string"===typeof t)return t.length>Y?(n=!0,t.slice(0,Y)+"…"):t;if("object"===typeof t)try{const e=Object(b["a"])(t,7),r=JSON.stringify(e);return r.length>Y?(n=!0,JSON.stringify(e,null,2).slice(0,Y)+"…"):e}catch(e){}return t});return rr({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function bi(t){const e=Object(i["f"])(),n=Object(i["e"])();e.addScopeListener(fi(t)),Object(x["a"])(ar(t)),Object(T["a"])(_s(t)),oi(t);const r=gs(t,!yi(n));n&&n.addEventProcessor?n.addEventProcessor(r):Object(d["b"])(r),yi(n)&&(n.on("beforeSendEvent",ds(t)),n.on("afterSendEvent",as(t)),n.on("createDsc",e=>{const n=t.getSessionId();if(n&&t.isEnabled()&&"session"===t.recordingMode){const r=t.checkAndHandleExpiredSession();r&&(e.replay_id=n)}}),n.on("startTransaction",e=>{t.lastTransaction=e}),n.on("finishTransaction",e=>{t.lastTransaction=e}),n.on("beforeSendFeedback",(e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&(t.flush(),e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r))}))}function yi(t){return!(!t||!t.on)}async function _i(t){try{return Promise.all(bs(t,[vi(D.performance.memory)]))}catch(e){return[]}}function vi(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Si(t,e,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==s&&clearTimeout(s),void 0!==i&&clearTimeout(i),s=i=void 0}function u(){return void 0!==s||void 0!==i?a():r}function l(){return s&&clearTimeout(s),s=setTimeout(a,e),o&&void 0===i&&(i=setTimeout(a,o)),r}return l.cancel=c,l.flush=u,l}function ki(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(wr&&S["c"].warn("[Replay] Received replay event after session expired."));const s=r||!e;e=!0,t.clickDetector&&tr(t.clickDetector,n),t.addUpdate(()=>{if("buffer"===t.recordingMode&&s&&t.setInitialState(),!Qr(t,n,s))return!0;if(!s)return!1;if(wi(t,s),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(Tr("[Replay] Updating session start time to earliest event in buffer to "+new Date(e),t.getOptions()._experiments.traceInternals),t.session.started=e,t.getOptions().stickySession&&Hr(t.session))}return"session"===t.recordingMode&&t.flush(),!0})}}function Oi(t){const e=t.getOptions();return{type:Me.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function wi(t,e){e&&t.session&&0===t.session.segmentId&&Qr(t,Oi(t),!1)}function Ei(t,e,n,r){return Object(I["c"])(Object(I["d"])(t,Object(I["g"])(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"===typeof e?(new TextEncoder).encode(e).length:e.length},e]])}function xi({recordingData:t,headers:e}){let n;const r=JSON.stringify(e)+"\n";if("string"===typeof t)n=`${r}${t}`;else{const e=new TextEncoder,s=e.encode(r);n=new Uint8Array(s.length+t.length),n.set(s),n.set(t,s.length)}return n}async function Ti({client:t,scope:e,replayId:n,event:r}){const s="object"!==typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),i={event_id:n,integrations:s};t.emit&&t.emit("preprocessEvent",r,i);const o=await Object(p["b"])(t.getOptions(),r,i,e,t,Object(h["b"])());if(!o)return null;o.platform=o.platform||"javascript";const a=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function Ii({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:o}){const a=xi({recordingData:t,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:l,initialTimestamp:d}=r,p=Object(i["e"])(),h=Object(i["f"])(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!p||!f||!m||!o.sampled)return;const g={type:L,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:u,trace_ids:l,urls:c,replay_id:e,segment_id:n,replay_type:o.sampled},b=await Ti({scope:h,client:p,replayId:e,event:g});if(!b)return p.recordDroppedEvent("event_processor","replay",g),void Tr("An event processor returned `null`, will not send event.");delete b.sdkProcessingMetadata;const y=Ei(b,a,m,p.getOptions().tunnel);let _;try{_=await f.send(y)}catch(S){const t=new Error(P);try{t.cause=S}catch(k){}throw t}if(!_)return _;if("number"===typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new Ci(_.statusCode);const v=Object(C["b"])({},_);if(Object(C["a"])(v,"replay"))throw new ji(v);return _}class Ci extends Error{constructor(t){super("Transport returned status code "+t)}}class ji extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Ri(t,e={count:0,interval:H}){const{recordingData:n,options:r}=t;if(n.length)try{return await Ii(t),!0}catch(s){if(s instanceof Ci||s instanceof ji)throw s;if(Object(i["g"])("Replays",{_retryCount:e.count}),wr&&r._experiments&&r._experiments.captureExceptions&&Object(i["c"])(s),e.count>=W){const t=new Error(P+" - max retries exceeded");try{t.cause=s}catch(o){}throw t}return e.interval*=++e.count,new Promise((n,r)=>{setTimeout(async()=>{try{await Ri(t,e),n(!0)}catch(s){r(s)}},e.interval)})}}const Mi="__THROTTLED",Ai="__SKIPPED";function Di(t,e,n){const r=new Map,s=t=>{const e=t-n;r.forEach((t,n)=>{n<e&&r.delete(n)})},i=()=>[...r.values()].reduce((t,e)=>t+e,0);let o=!1;return(...n)=>{const a=Math.floor(Date.now()/1e3);if(s(a),i()>=e){const t=o;return o=!0,t?Ai:Mi}o=!1;const c=r.get(a)||0;return r.set(a,c+1),t(...n)}}class Ni{constructor({options:t,recordingOptions:e}){Ni.prototype.__init.call(this),Ni.prototype.__init2.call(this),Ni.prototype.__init3.call(this),Ni.prototype.__init4.call(this),Ni.prototype.__init5.call(this),Ni.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:F,sessionIdleExpire:$},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=e,this._options=t,this._debouncedFlush=Si(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Di((t,e)=>Zr(this,t,e),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(V,n),timeout:n,scrollTimeout:K,ignoreSelector:r?r.join(","):""}:void 0;s&&(this.clickDetector=new Jn(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options;e<=0&&n<=0||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Ir(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Ir("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const t=Gr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Ir("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=Gr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Mn({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:z},emit:ki(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{Tr("[Replay] Stopping Replay"+(e?" triggered by "+e:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,$r(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Tr("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Tr("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();Tr("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Vr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${D.location.pathname}${D.location.hash}${D.location.search}`,e=`${D.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===Mi){const t=rr({category:"replay.throttled"});this.addUpdate(()=>!Qr(this,{type:Ln,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}}))}return n}getCurrentRoute(){const t=this.lastTransaction||Object(i["f"])().getTransaction(),e=t&&Object(f["e"])(t).data||{},n=e[m["d"]];if(t&&n&&["route","custom"].includes(n))return Object(f["e"])(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Nr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){wr&&S["c"].error("[Replay]",t),wr&&this._options._experiments&&this._options._experiments.captureExceptions&&Object(i["c"])(t)}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=Gr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!Jr(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{D.document.addEventListener("visibilitychange",this._handleVisibilityChange),D.addEventListener("blur",this._handleWindowBlur),D.addEventListener("focus",this._handleWindowFocus),D.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(bi(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=Or(this)}_removeListeners(){try{D.document.removeEventListener("visibilitychange",this._handleVisibilityChange),D.removeEventListener("blur",this._handleWindowBlur),D.removeEventListener("focus",this._handleWindowFocus),D.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===D.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=rr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=rr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{pr(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=Kr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});e||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;const e=this.checkAndHandleExpiredSession();e?t&&this._createCustomBreadcrumb(t):Tr("[Replay] Document has become active, but session has expired")}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Me.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=gr(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(bs(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await _i(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Ri({replayId:t,recordingData:s,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:e})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Object(i["e"])();t&&t.recordDroppedEvent("send_error","replay")}}else wr&&S["c"].error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(wr&&S["c"].error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now(),r=n-e;this._debouncedFlush.cancel();const s=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(s||i)return Tr(`[Replay] Session duration (${Math.floor(r/1e3)}s) is too ${s?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(s&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&Tr("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(a){wr&&S["c"].error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hr(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,s=n&&e>n;if(e>r||s){const t=rr({category:"replay.mutations",data:{count:e,limit:s}});this._createCustomBreadcrumb(t)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Li(t,e,n,r){const s="string"===typeof r?r.split(","):[],i=[...t,...s,...e];return"undefined"!==typeof n&&("string"===typeof n&&i.push("."+n),Object(S["b"])(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function Pi({mask:t,unmask:e,block:n,unblock:r,ignore:s,blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l=['base[href="/"]'],d=Li(t,[".sentry-mask","[data-sentry-mask]"],a,c),p=Li(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:d,unmaskTextSelector:p,blockSelector:Li(n,[".sentry-block","[data-sentry-block]",...l],i,o),unblockSelector:Li(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Li(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(h.blockClass=i),a instanceof RegExp&&(h.maskTextClass=a),h}function Fi({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return r?s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?i:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}const $i='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ui=["content-length","content-type","accept"];let Bi=!1;const zi=t=>new Hi(t);class Hi{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=U,flushMaxDelay:e=B,minReplayDuration:n=G,maxReplayDuration:r=Q,stickySession:s=!0,useCompression:i=!0,workerUrl:o,_experiments:a={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:y=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:S=[],mask:k=[],maskAttributes:O=["title","placeholder"],unmask:w=[],block:E=[],unblock:x=[],ignore:T=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:j,blockClass:M,blockSelector:A,maskInputOptions:D,maskTextClass:N,maskTextSelector:L,ignoreClass:P}={}){this.name=Hi.id;const F=Pi({mask:k,unmask:w,block:E,unblock:x,ignore:T,blockClass:M,blockSelector:A,maskTextClass:N,maskTextSelector:L,ignoreClass:P});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...D||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(t,e,n)=>Fi({maskAttributes:O,maskAllText:l,privacyOptions:F,key:t,value:e,el:n}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,X),maxReplayDuration:Math.min(r,Q),stickySession:s,sessionSampleRate:c,errorSampleRate:u,useCompression:i,workerUrl:o,blockAllMedia:p,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:b,networkDetailDenyUrls:y,networkCaptureBodies:_,networkRequestHeaders:qi(v),networkResponseHeaders:qi(S),beforeAddRecordingEvent:C,beforeErrorSampling:j,_experiments:a},"number"===typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"===typeof u&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$i}`:$i),this._isInitialized&&R())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Bi}set _isInitialized(t){Bi=t}setupOnce(){R()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=Wi(this._initialOptions);this._replay=new Ni({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const t=Object(i["e"])(),e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay["_canvas"]=e.getOptions()}catch(t){}}}function Wi(t){const e=Object(i["e"])(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Object(y["c"])(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&Object(S["b"])(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"===typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"===typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(Object(S["b"])(()=>{console.warn("SDK client is not available.")}),r)}function qi(t){return[...Ui,...t.map(t=>t.toLowerCase())]}Hi.__initStatic()},8972:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},"8a39":function(t,e,n){"use strict";n.d(e,"a",(function(){return yn}));var r=n("f8a5"),s=n("f0b6"),i=n("f7f6"),o=n("fbdd"),a=n("8972"),c=n("3044");const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],l=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],d="InboundFilters",p=(t={})=>({name:d,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),i=f(t,s);return m(e,i)?null:e}}),h=Object(c["c"])(p);Object(c["b"])(d,h);function f(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:u],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:l],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}function m(t,e){return e.ignoreInternal&&S(t)?(a["a"]&&s["c"].warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(i["e"])(t)),!0):g(t,e.ignoreErrors)?(a["a"]&&s["c"].warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(i["e"])(t)),!0):b(t,e.ignoreTransactions)?(a["a"]&&s["c"].warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: "+Object(i["e"])(t)),!0):y(t,e.denyUrls)?(a["a"]&&s["c"].warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Object(i["e"])(t)}.\nUrl: ${O(t)}`),!0):!_(t,e.allowUrls)&&(a["a"]&&s["c"].warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Object(i["e"])(t)}.\nUrl: ${O(t)}`),!0)}function g(t,e){return!(t.type||!e||!e.length)&&v(t).some(t=>Object(o["c"])(t,e))}function b(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&Object(o["c"])(n,e)}function y(t,e){if(!e||!e.length)return!1;const n=O(t);return!!n&&Object(o["c"])(n,e)}function _(t,e){if(!e||!e.length)return!0;const n=O(t);return!n||Object(o["c"])(n,e)}function v(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(r){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),a["a"]&&0===e.length&&s["c"].error("Could not extract message for event "+Object(i["e"])(t)),e}function S(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}function k(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function O(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?k(n):null}catch(n){return a["a"]&&s["c"].error("Cannot extract url for event "+Object(i["e"])(t)),null}}var w=n("e8f5"),E=n("02c5");let x;const T="FunctionToString",I=new WeakMap,C=()=>({name:T,setupOnce(){x=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Object(w["f"])(this),n=I.has(Object(E["e"])())&&void 0!==e?e:this;return x.apply(n,t)}}catch(t){}},setup(t){I.set(t,!0)}}),j=Object(c["c"])(C);Object(c["b"])(T,j);var R=n("1888");function M(t,e){!0===e.debug&&(a["a"]?s["c"].enable():Object(s["b"])(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));const n=Object(E["f"])();n.update(e.initialScope);const r=new t(e);A(r),D(r)}function A(t){const e=Object(R["a"])(),n=e.getStackTop();n.client=t,n.scope.setClient(t)}function D(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}n("dccb");var N=n("a5189"),L=n("e12b"),P=n("bcac"),F=n("a0c7");function $(t,e,n=[e],s="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript."+e,packages:n.map(t=>({name:`${s}:@sentry/${t}`,version:r["a"]})),version:r["a"]}),t._metadata=i}var U=n("450c"),B=n("a19e"),z=n("91db");function H(t,e,n){const r=[{type:"client_report"},{timestamp:n||Object(z["b"])(),discarded_events:t}];return Object(B["c"])(e?{dsn:e}:{},[r])}var W=n("509f");const q="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Y=n("f404"),V=n("15f7"),K=n("1d1e");function J(t,e){const n=Q(t,e),r={type:e&&e.name,value:et(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function G(t,e,n,r){const s=Object(E["e"])(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:Object(Y["f"])(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:ot(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Object(V["b"])(e,i)}};if(n){const e=Q(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}function X(t,e){return{exception:{values:[J(t,e)]}}}function Q(t,e){const n=e.stacktrace||e.stack||"",r=tt(e);try{return t(n,r)}catch(s){}return[]}const Z=/Minified React error #\d+;/i;function tt(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(Z.test(t.message))return 1}return 0}function et(t){const e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function nt(t,e,n,r){const s=n&&n.syntheticException||void 0,o=st(t,e,s,r);return Object(i["a"])(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Object(K["c"])(o)}function rt(t,e,n="info",r,s){const i=r&&r.syntheticException||void 0,o=it(t,e,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Object(K["c"])(o)}function st(t,e,n,r,s){let o;if(Object(Y["e"])(e)&&e.error){const n=e;return X(t,n.error)}if(Object(Y["a"])(e)||Object(Y["b"])(e)){const s=e;if("stack"in e)o=X(t,e);else{const e=s.name||(Object(Y["a"])(s)?"DOMError":"DOMException"),a=s.message?`${e}: ${s.message}`:e;o=it(t,a,n,r),Object(i["b"])(o,a)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":""+s.code}),o}if(Object(Y["d"])(e))return X(t,e);if(Object(Y["j"])(e)||Object(Y["f"])(e)){const r=e;return o=G(t,r,n,s),Object(i["a"])(o,{synthetic:!0}),o}return o=it(t,e,n,r),Object(i["b"])(o,""+e,void 0),Object(i["a"])(o,{synthetic:!0}),o}function it(t,e,n,r){const s={};if(r&&n){const r=Q(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(Object(Y["i"])(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function ot(t,{isUnhandledRejection:e}){const n=Object(w["d"])(t),r=e?"promise rejection":"exception";if(Object(Y["e"])(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(Object(Y["f"])(t)){const e=at(t);return`Event \`${e}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function at(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}var ct=n("bf37");function ut(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Object(W["a"])(r)}},i=lt(t);return Object(B["c"])(s,[i])}function lt(t){const e={type:"user_report"};return[e,t]}class dt extends F["a"]{constructor(t){const e=ct["a"].SENTRY_SDK_SOURCE||Object(U["a"])();$(t,"browser",["browser"],e),super(t),t.sendClientReports&&ct["a"].document&&ct["a"].document.addEventListener("visibilitychange",()=>{"hidden"===ct["a"].document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return nt(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return rt(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(q&&s["c"].warn("SDK not enabled, will not capture user feedback."));const e=ut(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(q&&s["c"].log("No outcomes to send"));if(!this._dsn)return void(q&&s["c"].log("No dsn provided, will not send outcomes"));q&&s["c"].log("Sending outcomes:",t);const e=H(t,this._options.tunnel&&Object(W["a"])(this._dsn));this._sendEnvelope(e)}}var pt=n("adbc"),ht=n("0cab");function ft(t){const e="console";Object(ht["a"])(e,t),Object(ht["b"])(e,mt)}function mt(){"console"in pt["a"]&&s["a"].forEach((function(t){t in pt["a"].console&&Object(w["e"])(pt["a"].console,t,(function(e){return s["d"][t]=e,function(...e){const n={args:e,level:t};Object(ht["c"])("console",n);const r=s["d"][t];r&&r.apply(pt["a"].console,e)}}))}))}var gt=n("6742"),bt=n("d564"),yt=n("9175"),_t=n("bc5b");const vt=["fatal","error","warning","log","info","debug"];function St(t){return"warn"===t?"warning":vt.includes(t)?t:"log"}var kt=n("0d3a");const Ot=1024,wt="Breadcrumbs",Et=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:wt,setupOnce(){},setup(t){e.console&&ft(Ct(t)),e.dom&&Object(gt["a"])(It(t,e.dom)),e.xhr&&Object(bt["b"])(jt(t)),e.fetch&&Object(yt["a"])(Rt(t)),e.history&&Object(P["a"])(Mt(t)),e.sentry&&t.on&&t.on("beforeSendEvent",Tt(t))}}},xt=Object(c["c"])(Et);Object(c["b"])(wt,xt);function Tt(t){return function(e){Object(E["e"])()===t&&Object(E["a"])({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(i["e"])(e)},{event:e})}}function It(t,e){return function(n){if(Object(E["e"])()!==t)return;let r,i,o="object"===typeof e?e.serializeAttribute:void 0,a="object"===typeof e&&"number"===typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>Ot&&(q&&s["c"].warn(`\`dom.maxStringLength\` cannot exceed ${Ot}, but a value of ${a} was configured. Sentry will use ${Ot} instead.`),a=Ot),"string"===typeof o&&(o=[o]);try{const t=n.event,e=At(t)?t.target:t;r=Object(_t["d"])(e,{keyAttrs:o,maxStringLength:a}),i=Object(_t["a"])(e)}catch(u){r="<unknown>"}if(0===r.length)return;const c={category:"ui."+n.name,message:r};i&&(c.data={"ui.component_name":i}),Object(E["a"])(c,{event:n.event,name:n.name,global:n.global})}}function Ct(t){return function(e){if(Object(E["e"])()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:St(e.level),message:Object(o["a"])(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: "+(Object(o["a"])(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Object(E["a"])(n,{input:e.args,level:e.level})}}function jt(t){return function(e){if(Object(E["e"])()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[bt["a"]];if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s,u={method:i,url:o,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};Object(E["a"])({category:"xhr",data:u,type:"http"},l)}}function Rt(t){return function(e){if(Object(E["e"])()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const t=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};Object(E["a"])({category:"fetch",data:t,level:"error",type:"http"},s)}else{const t=e.response,s={...e.fetchData,status_code:t&&t.status},i={input:e.args,response:t,startTimestamp:n,endTimestamp:r};Object(E["a"])({category:"fetch",data:s,type:"http"},i)}}}function Mt(t){return function(e){if(Object(E["e"])()!==t)return;let n=e.from,r=e.to;const s=Object(kt["a"])(ct["a"].location.href);let i=n?Object(kt["a"])(n):void 0;const o=Object(kt["a"])(r);i&&i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),Object(E["a"])({category:"navigation",data:{from:n,to:r}})}}function At(t){return!!t&&!!t.target}const Dt="Dedupe",Nt=()=>{let t;return{name:Dt,setupOnce(){},processEvent(e){if(e.type)return e;try{if(Pt(e,t))return q&&s["c"].warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},Lt=Object(c["c"])(Nt);Object(c["b"])(Dt,Lt);function Pt(t,e){return!!e&&(!!Ft(t,e)||!!$t(t,e))}function Ft(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Bt(t,e)&&!!Ut(t,e))))}function $t(t,e){const n=zt(e),r=zt(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Bt(t,e)&&!!Ut(t,e)))}function Ut(t,e){let n=Ht(t),r=Ht(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const t=r[s],e=n[s];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function Bt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(s){return!1}}function zt(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Ht(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}var Wt=n("4c6d0"),qt=n("0065");const Yt="GlobalHandlers",Vt=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Yt,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(Jt(t),ee("onerror")),e.onunhandledrejection&&(Gt(t),ee("onunhandledrejection"))}}},Kt=Object(c["c"])(Vt);Object(c["b"])(Yt,Kt);function Jt(t){Object(Wt["a"])(e=>{const{stackParser:n,attachStacktrace:r}=ne();if(Object(E["e"])()!==t||Object(ct["b"])())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=void 0===c&&Object(Y["m"])(s)?Zt(s,i,o,a):te(st(n,c||s,void 0,r,!1),i,o,a);u.level="error",Object(E["b"])(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Gt(t){Object(qt["a"])(e=>{const{stackParser:n,attachStacktrace:r}=ne();if(Object(E["e"])()!==t||Object(ct["b"])())return;const s=Xt(e),i=Object(Y["k"])(s)?Qt(s):st(n,s,void 0,r,!0);i.level="error",Object(E["b"])(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Xt(t){if(Object(Y["k"])(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(n){}return t}function Qt(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function Zt(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Object(Y["e"])(t)?t.message:t,o="Error";const a=i.match(s);a&&(o=a[1],i=a[2]);const c={exception:{values:[{type:o,value:i}]}};return te(c,e,n,r)}function te(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=Object(Y["m"])(e)&&e.length>0?e:Object(_t["c"])();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function ee(t){q&&s["c"].log("Global Handler attached: "+t)}function ne(){const t=Object(E["e"])(),e=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return e}const re="HttpContext",se=()=>({name:re,setupOnce(){},preprocessEvent(t){if(!ct["a"].navigator&&!ct["a"].location&&!ct["a"].document)return;const e=t.request&&t.request.url||ct["a"].location&&ct["a"].location.href,{referrer:n}=ct["a"].document||{},{userAgent:r}=ct["a"].navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}}),ie=Object(c["c"])(se);Object(c["b"])(re,ie);function oe(t,e,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!Object(Y["g"])(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=le(ae(t,e,s,o.originalException,r,i.exception.values,a,0),n))}function ae(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(Object(Y["g"])(r[s],Error)){ce(o,a);const i=t(e,r[s]),u=c.length;ue(i,s,u,a),c=ae(t,e,n,r[s],s,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(Object(Y["g"])(r,Error)){ce(o,a);const u=t(e,r),l=c.length;ue(u,`errors[${i}]`,l,a),c=ae(t,e,n,r,s,[u,...c],u,l)}}),c}function ce(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function ue(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function le(t,e){return t.map(t=>(t.value&&(t.value=Object(o["d"])(t.value,e)),t))}const de="cause",pe=5,he="LinkedErrors",fe=(t={})=>{const e=t.limit||pe,n=t.key||de;return{name:he,setupOnce(){},preprocessEvent(t,r,s){const i=s.getOptions();oe(J,i.stackParser,i.maxValueLength,n,e,t,r)}}},me=Object(c["c"])(fe),ge=(Object(c["b"])(he,me),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),be="TryCatch",ye=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:be,setupOnce(){e.setTimeout&&Object(w["e"])(ct["a"],"setTimeout",ve),e.setInterval&&Object(w["e"])(ct["a"],"setInterval",ve),e.requestAnimationFrame&&Object(w["e"])(ct["a"],"requestAnimationFrame",Se),e.XMLHttpRequest&&"XMLHttpRequest"in ct["a"]&&Object(w["e"])(XMLHttpRequest.prototype,"send",ke);const t=e.eventTarget;if(t){const e=Array.isArray(t)?t:ge;e.forEach(Oe)}}}},_e=Object(c["c"])(ye);Object(c["b"])(be,_e);function ve(t){return function(...e){const n=e[0];return e[0]=Object(ct["c"])(n,{mechanism:{data:{function:Object(N["b"])(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Se(t){return function(e){return t.apply(this,[Object(ct["c"])(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(N["b"])(t)},handled:!1,type:"instrument"}})])}}function ke(t){return function(...e){const n=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach(t=>{t in n&&"function"===typeof n[t]&&Object(w["e"])(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Object(N["b"])(e)},handled:!1,type:"instrument"}},r=Object(w["f"])(e);return r&&(n.mechanism.data.handler=Object(N["b"])(r)),Object(ct["c"])(e,n)}))}),t.apply(this,e)}}function Oe(t){const e=ct["a"],n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(w["e"])(n,"addEventListener",(function(e){return function(n,r,s){try{"function"===typeof r.handleEvent&&(r.handleEvent=Object(ct["c"])(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Object(N["b"])(r),target:t},handled:!1,type:"instrument"}}))}catch(i){}return e.apply(this,[n,Object(ct["c"])(r,{mechanism:{data:{function:"addEventListener",handler:Object(N["b"])(r),target:t},handled:!1,type:"instrument"}}),s])}})),Object(w["e"])(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(i){}return t.call(this,e,s,r)}})))}const we="?",Ee=30,xe=40,Te=50;function Ie(t,e,n,r){const s={filename:t,function:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const Ce=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,je=/\((\S*)(?::(\d+))(?::(\d+))\)/,Re=t=>{const e=Ce.exec(t);if(e){const t=e[2]&&0===e[2].indexOf("eval");if(t){const t=je.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[n,r]=ze(e[1]||we,e[2]);return Ie(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Me=[Ee,Re],Ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,De=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ne=t=>{const e=Ae.exec(t);if(e){const t=e[3]&&e[3].indexOf(" > eval")>-1;if(t){const t=De.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let n=e[3],r=e[1]||we;return[r,n]=ze(r,n),Ie(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Le=[Te,Ne],Pe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fe=t=>{const e=Pe.exec(t);return e?Ie(e[2],e[1]||we,+e[3],e[4]?+e[4]:void 0):void 0},$e=[xe,Fe],Ue=[Me,Le,$e],Be=Object(N["a"])(...Ue),ze=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:we,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};var He=n("f4fc");function We(t){const e=[];function n(){return void 0===t||e.length<t}function r(t){return e.splice(e.indexOf(t),1)[0]}function s(t){if(!n())return Object(K["b"])(new He["a"]("Not adding Promise because buffer limit was reached."));const s=t();return-1===e.indexOf(s)&&e.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function i(t){return new K["a"]((n,r)=>{let s=e.length;if(!s)return n(!0);const i=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{Object(K["c"])(t).then(()=>{--s||(clearTimeout(i),n(!0))},r)})})}return{$:e,add:s,drain:i}}var qe=n("8c86");const Ye=30;function Ve(t,e,n=We(t.bufferSize||Ye)){let r={};const i=t=>n.drain(t);function o(i){const o=[];if(Object(B["f"])(i,(e,n)=>{const s=Object(B["e"])(n);if(Object(qe["a"])(r,s)){const r=Ke(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else o.push(e)}),0===o.length)return Object(K["c"])();const c=Object(B["c"])(i[0],o),u=e=>{Object(B["f"])(c,(n,r)=>{const s=Ke(n,r);t.recordDroppedEvent(e,Object(B["e"])(r),s)})},l=()=>e({body:Object(B["h"])(c,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&a["a"]&&s["c"].warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Object(qe["b"])(r,t),t),t=>{throw u("network_error"),t});return n.add(l).then(t=>t,t=>{if(t instanceof He["a"])return a["a"]&&s["c"].error("Skipped sending event because buffer is full."),u("queue_overflow"),Object(K["c"])();throw t})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Ke(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let Je=void 0;function Ge(){if(Je)return Je;if(Object(L["a"])(ct["a"].fetch))return Je=ct["a"].fetch.bind(ct["a"]);const t=ct["a"].document;let e=ct["a"].fetch;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){q&&s["c"].warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Je=e.bind(ct["a"])}function Xe(){Je=void 0}function Qe(t,e=Ge()){let n=0,r=0;function s(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then(t=>(n-=i,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(a){return Xe(),n-=i,r--,Object(K["b"])(a)}}return Ve(t,s)}const Ze=4;function tn(t){function e(e){return new K["a"]((n,r)=>{const s=new XMLHttpRequest;s.onerror=r,s.onreadystatechange=()=>{s.readyState===Ze&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&s.setRequestHeader(e,t.headers[e]);s.send(e.body)})}return Ve(t,e)}const en=[h(),j(),_e(),xt(),Kt(),me(),Lt(),ie()];function nn(t){return[...en]}function rn(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=nn()),void 0===t.release&&("string"===typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ct["a"].SENTRY_RELEASE&&ct["a"].SENTRY_RELEASE.id&&(t.release=ct["a"].SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:Object(N["c"])(t.stackParser||Be),integrations:Object(c["d"])(t),transport:t.transport||(Object(L["b"])()?Qe:tn)};M(dt,e),t.autoSessionTracking&&sn()}function sn(){"undefined"!==typeof ct["a"].document?(Object(E["h"])({ignoreDuration:!0}),Object(E["d"])(),Object(P["a"])(({from:t,to:e})=>{void 0!==t&&t!==e&&(Object(E["h"])({ignoreDuration:!0}),Object(E["d"])())})):q&&s["c"].warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var on=n("15d6"),an=n("1c4e"),cn=n("f35e");const un=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:i}=t.config;t.config.errorHandler=(o,a,c)=>{const u=Object(cn["a"])(a,!1),l=a?Object(cn["b"])(a):"",d={componentName:u,lifecycleHook:c,trace:l};if(e.attachProps&&a&&(a.$options&&a.$options.propsData?d.propsData=a.$options.propsData:a.$props&&(d.propsData=a.$props)),setTimeout(()=>{Object(E["c"])(o,{captureContext:{contexts:{vue:d}},mechanism:{handled:!1}})}),"function"===typeof n&&n.call(t,o,a,c),e.logErrors){const t="undefined"!==typeof console,e=`Error in ${c}: "${o&&o.toString()}"`;r?r.call(null,e,a,l):t&&!i&&Object(s["b"])(()=>{console.error(`[Vue warn]: ${e}${l}`)})}}};var ln=n("af06");const dn=pt["a"],pn={Vue:dn.Vue,attachProps:!0,logErrors:!0,hooks:an["a"],timeout:2e3,trackComponents:!1},hn="Vue",fn=(t={})=>({name:hn,setupOnce(){},setup(e){gn(e,t)}}),mn=Object(c["c"])(fn);Object(c["b"])(hn,mn);function gn(t,e){const n={...pn,...t.getOptions(),...e};if(n.Vue||n.app)if(n.app){const t=Object(i["c"])(n.app);t.forEach(t=>bn(t,n))}else n.Vue&&bn(n.Vue,n);else Object(s["b"])(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")})}const bn=(t,e)=>{const n=t,r=n._instance&&n._instance.isMounted;!0===r&&Object(s["b"])(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),un(t,e),Object(on["a"])(e)&&t.mixin(Object(ln["a"])({...e,...e.tracingOptions}))};function yn(t={}){const e={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r["a"]}],version:r["a"]}},defaultIntegrations:[...nn(t),mn()],...t};rn(e)}},"8bff":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return u}));var r=n("e8f5"),s=n("f324"),i=n("91db");const o=0,a=1;function c(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:i,parent_span_id:o,status:a,tags:c,origin:u}=p(t);return Object(r["c"])({data:s,op:i,parent_span_id:o,span_id:e,status:a,tags:c,trace_id:n,origin:u})}function u(t){const{traceId:e,spanId:n}=t.spanContext(),r=f(t);return Object(s["b"])(e,n,r)}function l(t){return"number"===typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):Object(i["c"])()}function d(t){const e=t>9999999999;return e?t/1e3:t}function p(t){return h(t)?t.getSpanJSON():"function"===typeof t.toJSON?t.toJSON():{}}function h(t){return"function"===typeof t.getSpanJSON}function f(t){const{traceFlags:e}=t.spanContext();return Boolean(e&a)}},"8c86":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));const r=6e4;function s(t,e=Date.now()){const n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(""+t);return isNaN(s)?r:s-e}function i(t,e){return t[e]||t.all||0}function o(t,e,n=Date.now()){return i(t,e)>n}function a(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[t,e]=s.split(":",2),n=parseInt(t,10),o=1e3*(isNaN(n)?60:n);if(e)for(const s of e.split(";"))i[s]=r+o;else i.all=r+o}else a?i.all=r+s(a,r):429===e&&(i.all=r+6e4);return i}},"8d77":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return d}));var r=n("422c"),s=n("f404"),i=n("f0b6");const o="baggage",a="sentry-",c=/^sentry-/,u=8192;function l(t){if(!Object(s["m"])(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{const n=p(e);for(const r of Object.keys(n))t[r]=n[r];return t},{});else{if(!t)return;e=p(t)}const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(c)){const r=e.slice(a.length);t[r]=n}return t},{});return Object.keys(n).length>0?n:void 0}function d(t){if(!t)return;const e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t),{});return h(e)}function p(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}function h(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[e,n],s)=>{const o=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?o:`${t},${o}`;return a.length>u?(r["a"]&&i["c"].warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a},"")}},9175:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e8f5"),s=n("e12b"),i=n("adbc"),o=n("0cab");function a(t){const e="fetch";Object(o["a"])(e,t),Object(o["b"])(e,c)}function c(){Object(s["c"])()&&Object(r["e"])(i["a"],"fetch",(function(t){return function(...e){const{method:n,url:r}=d(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Object(o["c"])("fetch",{...s}),t.apply(i["a"],e).then(t=>{const e={...s,endTimestamp:Date.now(),response:t};return Object(o["c"])("fetch",e),t},t=>{const e={...s,endTimestamp:Date.now(),error:t};throw Object(o["c"])("fetch",e),t})}}))}function u(t,e){return!!t&&"object"===typeof t&&!!t[e]}function l(t){return"string"===typeof t?t:t?u(t,"url")?t.url:t.toString?t.toString():"":""}function d(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:l(e),method:u(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:l(e),method:u(e,"method")?String(e.method).toUpperCase():"GET"}}},"91db":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var r=n("adbc");const s=1e3;function i(){return Date.now()/s}function o(){const{performance:t}=r["a"];if(!t||!t.now)return i;const e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/s}const a=o();let c;const u=(()=>{const{performance:t}=r["a"];if(!t||!t.now)return void(c="none");const e=36e5,n=t.now(),s=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,o=i<e,a=t.timing&&t.timing.navigationStart,u="number"===typeof a,l=u?Math.abs(a+n-s):e,d=l<e;return o||d?i<=l?(c="timeOrigin",t.timeOrigin):(c="navigationStart",a):(c="dateNow",s)})()},"924c":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l}));var r=n("adbc"),s=n("1d1e"),i=n("f0b6"),o=n("f404"),a=n("8972");function c(){return Object(r["c"])("globalEventProcessors",()=>[])}function u(t){c().push(t)}function l(t,e,n,r=0){return new s["a"]((s,c)=>{const u=t[r];if(null===e||"function"!==typeof u)s(e);else{const d=u({...e},n);a["a"]&&u.id&&null===d&&i["c"].log(`Event processor "${u.id}" dropped event`),Object(o["o"])(d)?d.then(e=>l(t,e,n,r+1).then(s)).then(null,c):l(t,d,n,r+1).then(s).then(null,c)}})}},a0c7:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return j}));var r=n("509f"),s=n("f0b6"),i=n("f7f6"),o=n("f404"),a=n("1d1e"),c=n("a19e"),u=n("f4fc"),l=n("dccb"),d=n("8972");function p(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]],t):t}function h(t,e,n,s){const i=Object(c["g"])(n),o={sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!s&&e&&{dsn:Object(r["a"])(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Object(c["c"])(o,[a])}function f(t,e,n,r){const s=Object(c["g"])(n),i=t.type&&"replay_event"!==t.type?t.type:"event";p(t,n&&n.sdk);const o=Object(c["d"])(t,s,r,e);delete t.sdkProcessingMetadata;const a=[{type:i},t];return Object(c["c"])(o,[a])}var m=n("02c5"),g=n("1888"),b=n("3044");n("e8f5");function y(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?"|#"+t.map(([t,e])=>`${t}:${e}`).join(","):"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}function _(t,e,n,s){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),s&&e&&(i.dsn=Object(r["a"])(e));const o=v(t);return Object(c["c"])(i,[o])}function v(t){const e=y(t),n={type:"statsd",length:e.length};return[n,e]}var S=n("bfff"),k=n("dffb9"),O=n("d875");const w="Not capturing exception because it's already been captured.";class E{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Object(r["b"])(t.dsn):d["a"]&&s["c"].warn("No DSN provided, client will not send events."),this._dsn){const e=Object(l["a"])(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(Object(i["d"])(t))return void(d["a"]&&s["c"].log(w));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const i=Object(o["i"])(t)?t:String(t),a=Object(o["k"])(t)?this.eventFromMessage(i,e,n):this.eventFromException(t,n);return this._process(a.then(t=>this._captureEvent(t,n,r)).then(t=>{s=t})),s}captureEvent(t,e,n){if(e&&e.originalException&&Object(i["d"])(e.originalException))return void(d["a"]&&s["c"].log(w));let r=e&&e.event_id;const o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope;return this._process(this._captureEvent(t,e,a||n).then(t=>{r=t})),r}captureSession(t){"string"!==typeof t.release?d["a"]&&s["c"].warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Object(S["c"])(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):Object(a["c"])(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return d["a"]&&s["c"].warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];Object(b["e"])(this,t,this._integrations),e||Object(b["a"])(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=f(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of e.attachments||[])n=Object(c["a"])(n,Object(c["b"])(s,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){const e=h(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;d["a"]&&s["c"].log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(t){d["a"]&&s["c"].log("Flushing aggregated metrics, number of metrics: "+t.length);const e=_(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach(t=>t(...e))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Object(b["f"])(this,t),Object(b["a"])(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const i="ok"===t.status,o=i&&0===t.errors||i&&n;o&&(Object(S["c"])(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new a["a"](e=>{let n=0;const r=1,s=setInterval(()=>{0==this._numProcessing?(clearInterval(s),e(!0)):(n+=r,t&&n>=t&&(clearInterval(s),e(!1)))},r)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=Object(g["b"])()){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),Object(O["b"])(s,t,e,n,this,r).then(t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},s=t.contexts&&t.contexts.trace;if(!s&&e){const{traceId:r,spanId:s,parentSpanId:i,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:s,parent_span_id:i},...t.contexts};const a=o||Object(k["a"])(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(t=>t.event_id,t=>{if(d["a"]){const e=t;"log"===e.logLevel?s["c"].log(e.message):s["c"].warn(e)}})}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,i=C(t),o=I(t),c=t.type||"error",l=`before send for type \`${c}\``;if(o&&"number"===typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),Object(a["b"])(new u["a"](`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d="replay_event"===c?"replay":c,p=t.sdkProcessingMetadata||{},h=p.capturedSpanIsolationScope;return this._prepareEvent(t,e,n,h).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,t),new u["a"]("An event processor returned `null`, will not send event.","log");const s=e.data&&!0===e.data.__sentry__;if(s)return n;const i=T(r,n,e);return x(i,l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",d,t),new u["a"](l+" returned `null`, will not send event.","log");const s=n&&n.getSession();!i&&s&&this._updateSessionFromEvent(s,r);const o=r.transaction_info;if(i&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof u["a"])throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new u["a"]("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{d["a"]&&s["c"].error("Error while sending event:",t)});d["a"]&&s["c"].error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}}function x(t,e){const n=e+" must return `null` or a valid event.";if(Object(o["o"])(t))return t.then(t=>{if(!Object(o["j"])(t)&&null!==t)throw new u["a"](n);return t},t=>{throw new u["a"](`${e} rejected with ${t}`)});if(!Object(o["j"])(t)&&null!==t)throw new u["a"](n);return t}function T(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;return I(e)&&r?r(e,n):C(e)&&s?s(e,n):e}function I(t){return void 0===t.type}function C(t){return"transaction"===t.type}function j(t){const e=Object(m["e"])();e&&e.addEventProcessor&&e.addEventProcessor(t)}},a19e:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return l}));var r=n("509f"),s=n("15f7"),i=n("e8f5");function o(t,e=[]){return[t,e]}function a(t,e){const[n,r]=t;return[n,[...r,e]]}function c(t,e){const n=t[1];for(const r of n){const t=r[0].type,n=e(r,t);if(n)return!0}return!1}function u(t,e){const n=e||new TextEncoder;return n.encode(t)}function l(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(t){"string"===typeof i?i="string"===typeof t?i+t:[u(i,e),t]:i.push("string"===typeof t?u(t,e):t)}for(const c of r){const[t,e]=c;if(o(`\n${JSON.stringify(t)}\n`),"string"===typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(a){t=JSON.stringify(Object(s["a"])(e))}o(t)}}return"string"===typeof i?i:d(i)}function d(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function p(t,e){const n="string"===typeof t.data?u(t.data,e):t.data;return[Object(i["c"])({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function f(t){return h[t]}function m(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function g(t,e,n,s){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&s&&{dsn:Object(r["a"])(s)},...o&&{trace:Object(i["c"])({...o})}}}},a448:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("d8b6");function s(t,e,n){const s=Object(r["a"])();s&&s.setMeasurement(t,e,n)}},a5189:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return a}));const r=50,s=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{const i=[],o=t.split("\n");for(let a=n;a<o.length;a++){const t=o[a];if(t.length>1024)continue;const n=s.test(t)?t.replace(s,"$1"):t;if(!n.match(/\S*Error: /)){for(const t of e){const e=t(n);if(e){i.push(e);break}}if(i.length>=r)break}}return c(i)}}function a(t){return Array.isArray(t)?o(...t):t}function c(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,r).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}const u="<anonymous>";function l(t){try{return t&&"function"===typeof t&&t.name||u}catch(e){return u}}},a946:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="production"},aa76:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n("e8f5"),s=n("f7f6"),i=n("dffb9"),o=n("6957"),a=n("8bff");function c(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;d(t,e),r&&f(t,r),m(t,n),p(t,s),h(t,i)}function u(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",s),l(t,"contexts",i),l(t,"sdkProcessingMetadata",a),o&&(t.level=o),f&&(t.transactionName=f),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...h}}function l(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function d(t,e){const{extra:n,tags:s,user:i,contexts:o,level:a,transactionName:c}=e,u=Object(r["c"])(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const l=Object(r["c"])(s);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});const d=Object(r["c"])(i);d&&Object.keys(d).length&&(t.user={...d,...t.user});const p=Object(r["c"])(o);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),a&&(t.level=a),c&&(t.transaction=c)}function p(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function h(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function f(t,e){t.contexts={trace:Object(a["f"])(e),...t.contexts};const n=Object(o["a"])(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:Object(i["b"])(e),...t.sdkProcessingMetadata};const r=Object(a["e"])(n).description;r&&(t.tags={transaction:r,...t.tags})}}function m(t,e){t.fingerprint=t.fingerprint?Object(s["c"])(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}},adbc:function(t,e,n){"use strict";(function(t){function r(t){return t&&t.Math==Math?t:void 0}n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));const s="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof t&&r(t)||function(){return this}()||{};function i(){return s}function o(t,e,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{},o=i[t]||(i[t]=e());return o}}).call(this,n("c8ba"))},aebe:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("b559"),s=(n("bf37"),n("02c5")),i=n("b9f7"),o=n("8bff"),a=n("af06");function c(t,e,n){t.onError(t=>Object(s["c"])(t,{mechanism:{handled:!1}})),t.beforeEach((t,r,s)=>{const c=null==r.name&&0===r.matched.length,u={[i["b"]]:"auto.navigation.vue"};for(const e of Object.keys(t.params))u["params."+e]=t.params[e];for(const e of Object.keys(t.query)){const n=t.query[e];n&&(u["query."+e]=n)}let l=t.path,d="url";if(t.name&&"path"!==e.routeLabel?(l=t.name.toString(),d="custom"):t.matched[0]&&t.matched[0].path&&(l=t.matched[0].path,d="route"),e.instrumentPageLoad&&c){const t=Object(a["b"])();if(t){const e=Object(o["e"])(t).data||{};"custom"!==e[i["d"]]&&(t.updateName(l),t.setAttribute(i["d"],d)),t.setAttributes({...u,[i["b"]]:"auto.pageload.vue"})}}e.instrumentNavigation&&!c&&(u[i["d"]]=d,n({name:l,op:"navigation",attributes:u})),s&&s()})}function u(t={}){if(!t.router)return Object(r["a"])(t);const e=Object(r["a"])({...t,instrumentNavigation:!1}),{router:n,instrumentNavigation:s=!0,instrumentPageLoad:i=!0,routeLabel:o="name"}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t);const a=e=>{Object(r["b"])(t,e)};c(n,{routeLabel:o,instrumentNavigation:s,instrumentPageLoad:i},a)}}}},aef2:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("e8f5"),s=n("f0b6"),i=n("8972"),o=n("1888"),a=n("c23f"),c=n("b9f7"),u=n("8bff"),l=n("dffb9"),d=n("3c10"),p=n("1463");class h extends d["a"]{constructor(t,e){super(t),this._measurements={},this._contexts={},this._hub=e||Object(o["a"])(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[c["d"]]&&{source:this._attributes[c["d"]]},...this._attributes[c["c"]]&&{sampleRate:this._attributes[c["c"]]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(c["d"],e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new d["b"](t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const e=Object(u["d"])(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Object(r["c"])({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Object(l["b"])(this)}setHub(t){this._hub=t}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(i["a"]&&s["c"].warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled)return i["a"]&&s["c"].log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&Object(u["e"])(t).timestamp):[];if(this._trimEnd&&n.length>0){const t=n.map(t=>Object(u["e"])(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}const{scope:r,isolationScope:o}=Object(p["b"])(this),{metadata:c}=this,{source:d}=c,h={contexts:{...this._contexts,trace:Object(u["f"])(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...c,capturedSpanScope:r,capturedSpanIsolationScope:o,dynamicSamplingContext:Object(l["b"])(this)},_metrics_summary:Object(a["a"])(this),...d&&{transaction_info:{source:d}}},f=Object.keys(this._measurements).length>0;return f&&(i["a"]&&s["c"].log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),h.measurements=this._measurements),i["a"]&&s["c"].log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),h}}},af06:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p}));var r=n("02c5"),s=n("1463"),i=n("f0b6"),o=n("91db"),a=n("1c4e");const c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var u=n("f35e");const l="ui.vue",d={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function p(){return Object(r["f"])().getTransaction()}function h(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},n)}const f=t=>{const e=(t.hooks||[]).concat(a["a"]).filter((t,e,n)=>n.indexOf(t)===e),n={};for(const r of e){const e=d[r];if(e)for(const i of e)n[i]=function(){const n=this.$root===this;if(n){const t=Object(s["a"])();t&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Object(s["c"])({name:"Application Render",op:l+".render",origin:"auto.ui.vue"}))}const a=Object(u["a"])(this,!1),c=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(a)>-1:t.trackComponents;if(n||c)if(this.$_sentrySpans=this.$_sentrySpans||{},i==e[0]){const t=this.$root&&this.$root.$_sentryRootSpan||Object(s["a"])();if(t){const t=this.$_sentrySpans[r];t&&t.end(),this.$_sentrySpans[r]=Object(s["c"])({name:`Vue <${a}>`,op:`${l}.${r}`,origin:"auto.ui.vue"})}}else{const e=this.$_sentrySpans[r];if(!e)return;e.end(),h(this,Object(o["c"])(),t.timeout)}};else c&&i["c"].warn("Unknown hook: "+r)}return n}},b9f7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return r}));const r="sentry.source",s="sentry.sample_rate",i="sentry.op",o="sentry.origin"},bc5b:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return a}));var r=n("f404"),s=n("adbc");const i=Object(s["b"])(),o=80;function a(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,a=0;const u=" > ",l=u.length;let d;const p=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||o;while(n&&i++<r){if(d=c(n,p),"html"===d||i>1&&a+s.length*l+d.length>=h)break;s.push(d),a+=d.length,n=n.parentNode}return s.reverse().join(u)}catch(n){return"<unknown>"}}function c(t,e){const n=t,s=[];let o,a,c,u,l;if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset["sentryComponent"])return n.dataset["sentryComponent"];s.push(n.tagName.toLowerCase());const d=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(d&&d.length)d.forEach(t=>{s.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&s.push("#"+n.id),o=n.className,o&&Object(r["m"])(o))for(a=o.split(/\s+/),l=0;l<a.length;l++)s.push("."+a[l]);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)c=p[l],u=n.getAttribute(c),u&&s.push(`[${c}="${u}"]`);return s.join("")}function u(){try{return i.document.location.href}catch(t){return""}}function l(t){return i.document&&i.document.querySelector?i.document.querySelector(t):null}function d(t){if(!i.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset["sentryComponent"])return e.dataset["sentryComponent"];e=e.parentNode}return null}},bcac:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("e8f5"),s=n("adbc");const i=Object(s["b"])();function o(){const t=i.chrome,e=t&&t.app&&t.app.runtime,n="history"in i&&!!i.history.pushState&&!!i.history.replaceState;return!e&&n}var a=n("0cab");const c=s["a"];let u;function l(t){const e="history";Object(a["a"])(e,t),Object(a["b"])(e,d)}function d(){if(!o())return;const t=c.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=u,e=String(n);u=e;const r={from:t,to:e};Object(a["c"])("history",r)}return t.apply(this,e)}}c.onpopstate=function(...e){const n=c.location.href,r=u;u=n;const s={from:r,to:n};if(Object(a["c"])("history",s),t)try{return t.apply(this,e)}catch(i){}},Object(r["e"])(c.history,"pushState",e),Object(r["e"])(c.history,"replaceState",e)}},bcec:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return h}));var r=n("f404"),s=n("91db"),i=n("f7f6"),o=n("f0b6"),a=n("924c"),c=n("bfff"),u=n("aa76");const l=100;let d;class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(t){return t?t.clone():new p}clone(){const t=new p;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Object(c["c"])(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"===typeof t){const e=t(this);return e instanceof p?e:this}return t instanceof p?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...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),t._propagationContext&&(this._propagationContext=t._propagationContext)):Object(r["j"])(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...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),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){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._attachments=[],this._propagationContext=f(),this}addBreadcrumb(t,e){const n="number"===typeof e?e:l;if(n<=0)return this;const r={timestamp:Object(s["b"])(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){const t=this.getScopeData();return t.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:s,_user:i,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:p}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:s,user:i,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:d,span:p}}applyToEvent(t,e={},n=[]){Object(u["a"])(t,this.getScopeData());const r=[...n,...Object(a["b"])(),...this._eventProcessors];return Object(a["c"])(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:Object(i["f"])();if(!this._client)return o["c"].warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:Object(i["f"])();if(!this._client)return o["c"].warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Object(i["f"])();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(o["c"].warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function h(){return d||(d=new p),d}function f(){return{traceId:Object(i["f"])(),spanId:Object(i["f"])().substring(16)}}},bf37:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return d}));var r=n("02c5"),s=n("adbc"),i=n("e8f5"),o=n("f7f6");const a=s["a"];let c=0;function u(){return c>0}function l(){c++,setTimeout(()=>{c--})}function d(t,e={},n){if("function"!==typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(Object(i["f"])(t))return t}catch(a){return t}const s=function(){const s=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const r=s.map(t=>d(t,e));return t.apply(this,r)}catch(i){throw l(),Object(r["i"])(t=>{t.addEventProcessor(t=>(e.mechanism&&(Object(o["b"])(t,void 0,void 0),Object(o["a"])(t,e.mechanism)),t.extra={...t.extra,arguments:s},t)),Object(r["c"])(i)}),i}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s[e]=t[e])}catch(c){}Object(i["g"])(s,t),Object(i["a"])(t,"__sentry_wrapped__",s);try{const e=Object.getOwnPropertyDescriptor(s,"name");e.configurable&&Object.defineProperty(s,"name",{get(){return t.name}})}catch(c){}return s}},bfff:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n("91db"),s=n("f7f6"),i=n("e8f5");function o(t){const e=Object(r["c"])(),n={sid:Object(s["f"])(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>u(n)};return t&&a(n,t),n}function a(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Object(r["c"])(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Object(s["f"])()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=""+e.did),"number"===typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"===typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"===typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}function u(t){return Object(i["c"])({sid:""+t.sid,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"===typeof t.did||"string"===typeof t.did?""+t.did:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}},c020:function(t,e,n){"use strict";function r(){const t="function"===typeof WeakSet,e=t?new WeakSet:[];function n(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++){const r=e[t];if(r===n)return!0}return e.push(n),!1}function r(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}return[n,r]}n.d(e,"a",(function(){return r}))},c23f:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("e8f5");n("1463");let s;function i(t){return s?s.get(t):void 0}function o(t){const e=i(t);if(!e)return;const n={};for(const[,[s,i]]of e)n[s]||(n[s]=[]),n[s].push(Object(r["c"])(i));return n}},d564:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n("f404"),s=n("e8f5"),i=n("adbc"),o=n("0cab");const a=i["a"],c="__sentry_xhr_v3__";function u(t){const e="xhr";Object(o["a"])(e,t),Object(o["b"])(e,l)}function l(){if(!a.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;Object(s["e"])(t,"open",(function(t){return function(...e){const n=Date.now(),i=Object(r["m"])(e[0])?e[0].toUpperCase():void 0,a=d(e[1]);if(!i||!a)return t.apply(this,e);this[c]={method:i,url:a,request_headers:{}},"POST"===i&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const t=this[c];if(t&&4===this.readyState){try{t.status_code=this.status}catch(e){}const r={args:[i,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};Object(o["c"])("xhr",r)}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?Object(s["e"])(this,"onreadystatechange",(function(t){return function(...e){return u(),t.apply(this,e)}})):this.addEventListener("readystatechange",u),Object(s["e"])(this,"setRequestHeader",(function(t){return function(...e){const[n,s]=e,i=this[c];return i&&Object(r["m"])(n)&&Object(r["m"])(s)&&(i.request_headers[n.toLowerCase()]=s),t.apply(this,e)}})),t.apply(this,e)}})),Object(s["e"])(t,"send",(function(t){return function(...e){const n=this[c];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);const r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return Object(o["c"])("xhr",r),t.apply(this,e)}}))}function d(t){if(Object(r["m"])(t))return t;try{return t.toString()}catch(e){}}},d5ab:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return u}));var r=n("f0b6"),s=n("91db"),i=n("8972"),o=n("8bff"),a=n("3c10"),c=n("aef2");const u={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},l="finishReason",d=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class p extends a["b"]{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===Object(o["e"])(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class h extends c["a"]{constructor(t,e,n=u.idleTimeout,s=u.finalTimeout,o=u.heartbeatInterval,a=!1,c=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=o,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=d[4],this._autoFinishAllowed=!c,a&&(i["a"]&&r["c"].log("Setting idle transaction on scope. Span ID: "+this.spanContext().spanId),e.getScope().setSpan(this)),c||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=d[3],this.end())},this._finalTimeout)}end(t){const e=Object(o["d"])(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute(l,this._finishReason),this.spanRecorder){i["a"]&&r["c"].log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;Object(o["e"])(t).timestamp||(t.setStatus("cancelled"),t.end(e),i["a"]&&r["c"].log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const{start_timestamp:n,timestamp:s}=Object(o["e"])(t),a=n&&n<e,c=(this._finalTimeout+this._idleTimeout)/1e3,u=s&&n&&s-n<c;if(i["a"]){const e=JSON.stringify(t,void 0,2);a?u||r["c"].log("[Tracing] discarding Span since it finished after Transaction final timeout",e):r["c"].log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return a&&u}),i["a"]&&r["c"].log("[Tracing] flushing IdleTransaction")}else i["a"]&&r["c"].log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new p(e,n,this.spanContext().spanId,t),i["a"]&&r["c"].log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=d[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(i["a"]&&r["c"].log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=d[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),i["a"]&&r["c"].log("[Tracing] pushActivity: "+t),this.activities[t]=!0,i["a"]&&r["c"].log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(i["a"]&&r["c"].log("[Tracing] popActivity "+t),delete this.activities[t],i["a"]&&r["c"].log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=Object(s["c"])();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=d[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(i["a"]&&r["c"].log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=d[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){i["a"]&&r["c"].log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}},d875:function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return h}));var r=n("f7f6"),s=n("91db"),i=n("fbdd"),o=n("adbc"),a=n("15f7"),c=n("a946"),u=n("924c"),l=n("bcec"),d=n("aa76"),p=n("8bff");function h(t,e,n,i,o,a){const{normalizeDepth:c=3,normalizeMaxBreadth:p=1e3}=t,h={...e,event_id:e.event_id||n.event_id||Object(r["f"])(),timestamp:e.timestamp||Object(s["b"])()},m=n.integrations||t.integrations.map(t=>t.name);f(h,t),y(h,m),void 0===e.type&&g(h,t.stackParser);const S=v(i,n.captureContext);n.mechanism&&Object(r["a"])(h,n.mechanism);const k=o&&o.getEventProcessors?o.getEventProcessors():[],O=Object(l["b"])().getScopeData();if(a){const t=a.getScopeData();Object(d["b"])(O,t)}if(S){const t=S.getScopeData();Object(d["b"])(O,t)}const w=[...n.attachments||[],...O.attachments];w.length&&(n.attachments=w),Object(d["a"])(h,O);const E=[...k,...Object(u["b"])(),...O.eventProcessors],x=Object(u["c"])(E,h,n);return x.then(t=>(t&&b(t),"number"===typeof c&&c>0?_(t,c,p):t))}function f(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:c["a"]),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==s&&(t.dist=s),t.message&&(t.message=Object(i["d"])(t.message,o));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=Object(i["d"])(a.value,o));const u=t.request;u&&u.url&&(u.url=Object(i["d"])(u.url,o))}const m=new WeakMap;function g(t,e){const n=o["a"]._sentryDebugIds;if(!n)return;let r;const s=m.get(e);s?r=s:(r=new Map,m.set(e,r));const i=Object.keys(n).reduce((t,s)=>{let i;const o=r.get(s);o?i=o:(i=e(s),r.set(s,i));for(let e=i.length-1;e>=0;e--){const r=i[e];if(r.filename){t[r.filename]=n[s];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=i[t.filename])})})}catch(a){}}function b(t){const e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(r){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}function y(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function _(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:Object(a["a"])(t.data,e,n)}}))},...t.user&&{user:Object(a["a"])(t.user,e,n)},...t.contexts&&{contexts:Object(a["a"])(t.contexts,e,n)},...t.extra&&{extra:Object(a["a"])(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Object(a["a"])(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>{const r=Object(p["e"])(t).data;return r&&(t.data=Object(a["a"])(r,e,n)),t})),r}function v(t,e){if(!e)return t;const n=t?t.clone():new l["a"];return n.update(e),n}function S(t){if(t)return k(t)||w(t)?{captureContext:t}:t}function k(t){return t instanceof l["a"]||"function"===typeof t}const O=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function w(t){return Object.keys(t).some(t=>O.includes(t))}},d8b6:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("f324"),s=n("1888");function i(t){const e=t||Object(s["a"])(),n=e.getScope();return n.getTransaction()}r["a"]},dccb:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l}));var r=n("e8f5"),s=n("509f");const i="7";function o(t){const e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return`${e}//${t.host}${n}${t.path?"/"+t.path:""}/api/`}function a(t){return`${o(t)}${t.projectId}/envelope/`}function c(t,e){return Object(r["h"])({sentry_key:t.publicKey,sentry_version:i,...e&&{sentry_client:`${e.name}/${e.version}`}})}function u(t,e={}){const n="string"===typeof e?e:e.tunnel,r="string"!==typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${a(t)}?${c(t,r)}`}function l(t,e){const n=Object(s["b"])(t);if(!n)return"";const r=o(n)+"embed/error-page/";let i="dsn="+Object(s["a"])(n);for(const s in e)if("dsn"!==s&&"onClose"!==s)if("user"===s){const t=e.user;if(!t)continue;t.name&&(i+="&name="+encodeURIComponent(t.name)),t.email&&(i+="&email="+encodeURIComponent(t.email))}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(e[s])}`;return`${r}?${i}`}},dffb9:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n("e8f5"),s=n("a946"),i=n("02c5"),o=n("6957"),a=n("8bff");function c(t,e,n){const i=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=Object(r["c"])({environment:i.environment||s["a"],release:i.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",c),c}function u(t){const e=Object(i["e"])();if(!e)return{};const n=c(Object(a["e"])(t).trace_id||"",e,Object(i["f"])()),r=Object(o["a"])(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:u,source:l}=r.metadata;null!=u&&(n.sample_rate=""+u);const d=Object(a["e"])(r);return l&&"url"!==l&&(n.transaction=d.description),n.sampled=String(Object(a["c"])(r)),e.emit&&e.emit("createDsc",n),n}},e12b:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u}));var r=n("422c"),s=n("f0b6"),i=n("adbc");const o=Object(i["b"])();function a(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function c(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function u(){if("string"===typeof EdgeRuntime)return!0;if(!a())return!1;if(c(o.fetch))return!0;let t=!1;const e=o.document;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=c(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){r["a"]&&s["c"].warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}},e436:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return b}));var r=n("f0b6"),s=n("8972"),i=n("1888"),o=n("8bff"),a=n("6e6d"),c=n("d5ab"),u=n("f404"),l=n("b9f7"),d=n("15d6");function p(t,e,n){if(!Object(d["a"])(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(l["c"],Number(t.sampled)),t;let i;return"function"===typeof e.tracesSampler?(i=e.tracesSampler(n),t.setAttribute(l["c"],Number(i))):void 0!==n.parentSampled?i=n.parentSampled:"undefined"!==typeof e.tracesSampleRate?(i=e.tracesSampleRate,t.setAttribute(l["c"],Number(i))):(i=1,t.setAttribute(l["c"],i)),h(i)?i?(t.sampled=Math.random()<i,t.sampled?(s["a"]&&r["c"].log(`[Tracing] starting ${t.op} transaction - ${Object(o["e"])(t).description}`),t):(s["a"]&&r["c"].log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),t)):(s["a"]&&r["c"].log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(s["a"]&&r["c"].warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function h(t){return Object(u["h"])(t)||"number"!==typeof t&&"boolean"!==typeof t?(s["a"]&&r["c"].warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):!(t<0||t>1)||(s["a"]&&r["c"].warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}var f=n("aef2");function m(){const t=this.getScope(),e=t.getSpan();return e?{"sentry-trace":Object(o["g"])(e)}:{}}function g(t,e){const n=this.getClient(),i=n&&n.getOptions()||{},o=i.instrumenter||"sentry",a=t.instrumenter||"sentry";o!==a&&(s["a"]&&r["c"].error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let c=new f["a"](t,this);return c=p(c,i,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),c.isRecording()&&c.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",c),c}function b(t,e,n,r,s,i,o,a=!1){const u=t.getClient(),l=u&&u.getOptions()||{};let d=new c["a"](e,t,n,r,o,s,a);return d=p(d,l,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...i}),d.isRecording()&&d.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",d),d}function y(){const t=Object(i["c"])();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=g),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=m),Object(a["a"])())}},e8f5:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return p}));var r=n("bc5b"),s=n("422c"),i=n("f404"),o=n("f0b6"),a=n("fbdd");function c(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"===typeof s&&l(s,r),t[e]=s}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){s["a"]&&o["c"].log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(n){}}function d(t){return t.__sentry_original__}function p(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function h(t){if(Object(i["d"])(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if(Object(i["f"])(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...m(t)};return"undefined"!==typeof CustomEvent&&Object(i["g"])(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return Object(i["c"])(t)?Object(r["d"])(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function m(t){if("object"===typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function g(t,e=40){const n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(a["d"])(n[0],e);for(let r=n.length;r>0;r--){const t=n.slice(0,r).join(", ");if(!(t.length>e))return r===n.length?t:Object(a["d"])(t,e)}return""}function b(t){const e=new Map;return y(t,e)}function y(t,e){if(_(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const s of Object.keys(t))"undefined"!==typeof t[s]&&(r[s]=y(t[s],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach(t=>{r.push(y(t,e))}),r}return t}function _(t){if(!Object(i["j"])(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(e){return!0}}},f0b6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return a}));var r=n("422c"),s=n("adbc");const i="Sentry Logger ",o=["debug","info","warn","error","log","assert","trace"],a={};function c(t){if(!("console"in s["a"]))return t();const e=s["a"].console,n={},r=Object.keys(a);r.forEach(t=>{const r=a[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function u(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r["a"]?o.forEach(n=>{e[n]=(...e)=>{t&&c(()=>{s["a"].console[n](`${i}[${n}]:`,...e)})}}):o.forEach(t=>{e[t]=()=>{}}),e}const l=u()},f324:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return a}));var r=n("8d77"),s=n("f7f6");const i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){if(!t)return;const e=t.match(i);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function a(t,e){const n=o(t),i=Object(r["b"])(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceparentData:n,dynamicSamplingContext:i||{},propagationContext:{traceId:a||Object(s["f"])(),parentSpanId:c||Object(s["f"])().substring(16),spanId:Object(s["f"])().substring(16),sampled:u,dsc:i||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:a||Object(s["f"])(),spanId:Object(s["f"])().substring(16)}}}function c(t,e){const n=o(t),i=Object(r["b"])(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||Object(s["f"])(),parentSpanId:c||Object(s["f"])().substring(16),spanId:Object(s["f"])().substring(16),sampled:u,dsc:i||{}}:{traceId:a||Object(s["f"])(),spanId:Object(s["f"])().substring(16)}}function u(t=Object(s["f"])(),e=Object(s["f"])().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},f35e:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));const r=/(?:^|[-_])(\w)/g,s=t=>t.replace(r,t=>t.toUpperCase()).replace(/[-_]/g,""),i="<Root>",o="<Anonymous>",a=(t,e)=>t.repeat?t.repeat(e):t,c=(t,e)=>{if(!t)return o;if(t.$root===t)return i;if(!t.$options)return o;const n=t.$options;let r=n.name||n._componentTag;const a=n.__file;if(!r&&a){const t=a.match(/([^/\\]+)\.vue$/);t&&(r=t[1])}return(r?`<${s(r)}>`:o)+(a&&!1!==e?" at "+a:"")},u=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;while(t){if(e.length>0){const r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}const r=e.map((t,e)=>""+((0===e?"---\x3e ":a(" ",5+2*e))+(Array.isArray(t)?`${c(t[0])}... (${t[1]} recursive calls)`:c(t)))).join("\n");return"\n\nfound in\n\n"+r}return`\n\n(found in ${c(t)})`}},f404:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return y})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return m})),n.d(e,"m",(function(){return u})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return g})),n.d(e,"p",(function(){return v}));const r=Object.prototype.toString;function s(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function i(t,e){return r.call(t)===`[object ${e}]`}function o(t){return i(t,"ErrorEvent")}function a(t){return i(t,"DOMError")}function c(t){return i(t,"DOMException")}function u(t){return i(t,"String")}function l(t){return"object"===typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||l(t)||"object"!==typeof t&&"function"!==typeof t}function p(t){return i(t,"Object")}function h(t){return"undefined"!==typeof Event&&_(t,Event)}function f(t){return"undefined"!==typeof Element&&_(t,Element)}function m(t){return i(t,"RegExp")}function g(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function b(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t){return"number"===typeof t&&t!==t}function _(t,e){try{return t instanceof e}catch(n){return!1}}function v(t){return!("object"!==typeof t||null===t||!t.__isVue&&!t._isVue)}},f4fc:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}},f7f6:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return i}));var r=n("e8f5"),s=(n("fbdd"),n("adbc"));function i(){const t=s["a"],e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function o(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const r=o(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function u(t,e){const n=o(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const t={...s&&s.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{Object(r["a"])(t,"__sentry_captured__",!0)}catch(e){}return!1}function d(t){return Array.isArray(t)?t:[t]}},f80d:function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return i}));var s=n("450c");function i(){return!Object(s["b"])()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof t?t:0)}}).call(this,n("4362"),n("dd40")(t))},f8a5:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="7.101.0"},fbdd:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return s}));var r=n("f404");function s(t,e=0){return"string"!==typeof t||0===e||t.length<=e?t:t.slice(0,e)+"..."}function i(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function o(t,e){if(!Array.isArray(t))return"";const n=[];for(let i=0;i<t.length;i++){const e=t[i];try{Object(r["p"])(e)?n.push("[VueViewModel]"):n.push(String(e))}catch(s){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e,n=!1){return!!Object(r["m"])(t)&&(Object(r["l"])(e)?e.test(t):!!Object(r["m"])(e)&&(n?t===e:t.includes(e)))}function c(t,e=[],n=!1){return e.some(e=>a(t,e,n))}}}]);