PageSourceSearch

https://www.veed.io/frontend-assets/dashboard-frontend/dashboard-static/src-hId4uPmf.js

js veed.io collected 2026-10-02 08:33:02 UTC 50,971 bytes, 3 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`29ae0319a6961340fd1207c714d43b4796313dfd`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3a069ea8-d22f-4264-8fcc-b65808e5594e`,e._sentryDebugIdIdentifier=`sentry-dbid-3a069ea8-d22f-4264-8fcc-b65808e5594e`)}catch{}})();var e=globalThis,t=`10.38.0`;function n(){return r(e),e}function r(e){let n=e.__SENTRY__=e.__SENTRY__||{};return n.version=n.version||`10.38.0`,n[t]=n[`10.38.0`]||{}}function i(n,r,i=e){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[t]=a[`10.38.0`]||{};return o[n]||(o[n]=r())}var a=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],o={};function s(t){if(!(`console`in e))return t();let n=e.console,r={},i=Object.keys(o);i.forEach(e=>{let t=o[e];r[e]=n[e],n[e]=t});try{return t()}finally{i.forEach(e=>{n[e]=r[e]})}}function c(){m().enabled=!0}function l(){m().enabled=!1}function u(){return m().enabled}function d(...e){[...e]}function f(...e){[...e]}function p(...e){[...e]}function m(){return{enabled:!1}}var ee={enable:c,disable:l,isEnabled:u,log:d,warn:f,error:p},te=50,ne=/\(error: (.*)\)/,re=/captureMessage|captureException/;function ie(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=ne.test(n)?n.replace(ne,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=te+r)break}}return oe(i.slice(r))}}function ae(e){return Array.isArray(e)?ie(...e):e}function oe(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(se(t).function||``)&&t.pop(),t.reverse(),re.test(se(t).function||``)&&(t.pop(),re.test(se(t).function||``)&&t.pop()),t.slice(0,te).map(e=>({...e,filename:e.filename||se(t).filename,function:e.function||`?`}))}function se(e){return e[e.length-1]||{}}var ce=`<anonymous>`;function le(e){try{return!e||typeof e!=`function`?ce:e.name||ce}catch{return ce}}function ue(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function de(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var fe=Object.prototype.toString;function pe(e){switch(fe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return _(e,Error)}}function h(e,t){return fe.call(e)===`[object ${t}]`}function me(e){return h(e,`ErrorEvent`)}function he(e){return h(e,`DOMError`)}function ge(e){return h(e,`DOMException`)}function _e(e){return h(e,`String`)}function ve(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function ye(e){return e===null||ve(e)||typeof e!=`object`&&typeof e!=`function`}function be(e){return h(e,`Object`)}function xe(e){return typeof Event<`u`&&_(e,Event)}function Se(e){return typeof Element<`u`&&_(e,Element)}function Ce(e){return h(e,`RegExp`)}function g(e){return!!(e?.then&&typeof e.then==`function`)}function we(e){return be(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function _(e,t){try{return e instanceof t}catch{return!1}}function Te(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Ee(e){return typeof Request<`u`&&_(e,Request)}var De=e,Oe=80;function ke(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Oe;for(;n&&i++<5&&(o=Ae(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Ae(e,t){let n=e,r=[];if(!n?.tagName)return``;if(De.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
2if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&_e(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function je(){try{return De.document.location.href}catch{return``}}function Me(e){if(!De.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ne(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Pe(i,r);try{e[t]=i}catch{}}function v(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function Pe(e,t){try{e.prototype=t.prototype=t.prototype||{},v(e,`__sentry_original__`,t)}catch{}}function Fe(e){return e.__sentry_original__}function Ie(e){if(pe(e))return{message:e.message,name:e.name,stack:e.stack,...Re(e)};if(xe(e)){let t={type:e.type,target:Le(e.target),currentTarget:Le(e.currentTarget),...Re(e)};return typeof CustomEvent<`u`&&_(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Le(e){try{return Se(e)?ke(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Re(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ze(e){let t=Object.keys(Ie(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var y;function Be(t){if(y!==void 0)return y?y(t):t();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=e;return n in r&&typeof r[n]==`function`?(y=r[n],y(t)):(y=null,t())}function b(){return Be(()=>Math.random())}function Ve(){return Be(()=>Date.now())}function He(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ue(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Te(r)?n.push(de(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function We(e,t,n=!1){return _e(e)?Ce(t)?t.test(e):_e(t)?n?e===t:e.includes(t):!1:!1}function Ge(e,t=[],n=!1){return t.some(t=>We(e,t,n))}function Ke(){let t=e;return t.crypto||t.msCrypto}var qe;function Je(){return b()*16}function x(e=Ke()){try{if(e?.randomUUID)return Be(()=>e.randomUUID()).replace(/-/g,``)}catch{}return qe||=`10000000100040008000100000000000`,qe.replace(/[018]/g,e=>(e^(Je()&15)>>e/4).toString(16))}function Ye(e){return e.exception?.values?.[0]}function Xe(e){let{message:t,event_id:n}=e;if(t)return t;let r=Ye(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Ze(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Qe(e,t){let n=Ye(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function $e(e){if(et(e))return!0;try{v(e,`__sentry_captured__`,!0)}catch{}return!1}function et(e){try{return e.__sentry_captured__}catch{}}var tt=1e3;function nt(){return Ve()/tt}function rt(){let{performance:t}=e;if(!t?.now||!t.timeOrigin)return nt;let n=t.timeOrigin;return()=>(n+Be(()=>t.now()))/tt}var it;function S(){return(it??=rt())()}var at=null;function ot(){let{performance:t}=e;if(!t?.now)return;let n=3e5,r=Be(()=>t.now()),i=Ve(),a=t.timeOrigin;if(typeof a==`number`&&Math.abs(a+r-i)<n)return a;let o=t.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+r-i)<n?o:i-r}function st(){return at===null&&(at=ot()),at}function ct(e){let t=S(),n={sid:x(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>ut(n)};return e&&C(n,e),n}function C(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||S(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:x()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
2ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function lt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),C(e,n)}function ut(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function dt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=dt(r[e],t[e],n-1));return r}function w(){return x()}function T(){return x().substring(16)}var ft=`_sentrySpan`;function E(e,t){t?v(e,ft,t):delete e[ft]}function D(e){return e[ft]}var pt=100,O=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:w(),sampleRand:b()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,E(t,D(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&C(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():be(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,E(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w(),sampleRand:b()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:pt;if(n<=0)return this;let r={timestamp:nt(),...e,message:e.message?He(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:D(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=dt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||x();if(!this._client)return n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||x();if(!this._client)return r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||x();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function mt(){return i(`defaultCurrentScope`,()=>new O)}function ht(){return i(`defaultIsolationScope`,()=>new O)}var gt=class{constructor(e,t){let n;n=e||new O;let r;r=t||new O,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return g(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function k(){let e=r(n());return e.stack=e.stack||new gt(mt(),ht())}function _t(e){return k().withScope(e)}function vt(e,t){let n=k();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function yt(e){return k().withScope(()=>e(k().getIsolationScope()))}function bt(){return{withIsolationScope:yt,withScope:_t,withSetScope:vt,withSetIsolationScope:(e,t)=>yt(t),getCurrentScope:()=>k().getScope(),getIsolationScope:()=>k().getIsolationScope()}}function A(e){let t=r(e);return t.acs?t.acs:bt()}function j(){return A(n()).getCurrentScope()}function M(){return A(n()).getIsolationScope()}function xt(){return i(`globalScope`,()=>new O)}function N(...e){let t=A(n());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function P(){return j().getClient()}function St(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||T()};return n&&(i.parent_span_id=n),i}var F=`sentry.source`,Ct=`sentry.sample_rate`,wt=`sentry.previous_trace_sample_rate`,Tt=`sentry.op`,Et=`sentry.origin`,Dt=`sentry.idle_span_finish_reason`,Ot=`sentry.measurement_unit`,kt=`sentry.measurement_value`,At=`sentry.custom_span_name`,jt=`sentry.profile_id`,Mt=`sentry.exclusive_time`,Nt=`sentry.link.type`,Pt=`gen_ai.conversation.id`;function Ft(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function It(e,t){e.setAttribute(`http.response.status_code`,t);let n=Ft(t);n.message!==`unknown_error`&&e.setStatus(n)}var Lt=`_sentryScope`,Rt=`_sentryIsolationScope`;function zt(t){try{let n=e.WeakRef;if(typeof n==`function`)return new n(t)}catch{}return t}function Bt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function Vt(e,t,n){e&&(v(e,Rt,zt(n)),v(e,Lt,t))}function Ht(e){let t=e;return{scope:t[Lt],isolationScope:Bt(t[Rt])}}var Ut=`sentry-`,Wt=/^sentry-/;function Gt(e){let t=qt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Wt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Kt(e){if(e)return Yt(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Ut}${t}`]=n),e),{}))}function qt(e){if(!(!e||!_e(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Jt(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Jt(e)}function Jt(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function Yt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?e:a},``)}var Xt=/^o(\d+)\./,Zt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function I(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Qt(e){let t=Zt.exec(e);if(!t){s(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,c=``]=t.slice(1),l=``,u=c,d=u.split(`/`);if(d.length>1&&(l=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return $t({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function $t(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function en(e){return!0}function tn(e){return e.match(Xt)?.[1]}function nn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=tn(n)),r}function rn(e){let t=typeof e==`string`?Qt(e):$t(e);if(!(!t||!en(t)))return t}function L(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var an=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function on(e){if(!e)return;let t=e.match(an);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function sn(e,t){let n=on(e),r=Gt(t);if(!n?.traceId)return{traceId:w(),sampleRand:b()};let i=un(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function cn(e=w(),t=T(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function ln(e=w(),t=T(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function un(e,t){let n=L(t?.sample_rand);if(n!==void 0)return n;let r=L(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?b()*r:r+b()*(1-r):b()}var dn=!1;function fn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=z(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function pn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:z(e).parent_span_id,a=Ht(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||T():t,trace_id:n}}function mn(e){let{traceId:t,spanId:n}=e.spanContext();return cn(t,n,B(e))}function hn(e){let{traceId:t,spanId:n}=e.spanContext();return ln(t,n,B(e))}function gn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function R(e){return typeof e==`number`?_n(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?_n(e.getTime()):S()}function _n(e){return e>9999999999?e/1e3:e}function z(e){if(yn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(vn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:R(i),timestamp:R(o)||void 0,status:bn(s),op:r[Tt],origin:r[Et],links:gn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function vn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function yn(e){return typeof e.getSpanJSON==`function`}function B(e){let{traceFlags:t}=e.spanContext();return t===1}function bn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var V=`_sentryChildSpans`,xn=`_sentryRootSpan`;function Sn(e,t){v(t,xn,e[xn]||e),e[V]?e[V].add(t):v(e,V,new Set([t]))}function Cn(e,t){e[V]&&e[V].delete(t)}function wn(e){let t=new Set;function n(e){if(!t.has(e)&&B(e)){t.add(e);let r=e[V]?Array.from(e[V]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function H(e){return e[xn]||e}function Tn(){let e=A(n());return e.getActiveSpan?e.getActiveSpan():D(j())}function En(){dn||=(s(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function Dn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||P()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function On(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(An(n)){if(We(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;let t=n.name?We(e.description,n.name):!0,r=n.op?e.op&&We(e.op,n.op):!0;if(t&&r)return!0}return!1}function kn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function An(e){return typeof e==`string`||e instanceof RegExp}var jn=`production`,Mn=`_frozenDsc`;function Nn(e,t){v(e,Mn,t)}function Pn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:nn(t)};return t.emit(`createDsc`,i),i}function Fn(e,t){let n=t.getPropagationContext();return n.dsc||Pn(n.traceId,e)}function U(e){let t=P();if(!t)return{};
2let n=H(e),r=z(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Mn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Gt(l);if(u)return s(u);let d=Pn(e.spanContext().traceId,t),f=i[F],p=r.description;return f!==`url`&&p&&(d.transaction=p),Dn()&&(d.sampled=String(B(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??Ht(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var W=class{constructor(e={}){this._traceId=e.traceId||w(),this._spanId=e.spanId||T()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function G(e,t=100,n=1/0){try{return Ln(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function In(e,t=3,n=100*1024){let r=G(e,t);return Vn(r)>n?In(e,t-1,n):r}function Ln(e,t,n=1/0,r=1/0,i=Hn()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Rn(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Ln(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Ie(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Ln(e,t,c-1,r,i),d++}return o(t),u}function Rn(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Te(t))return de(t);if(we(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${le(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=zn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function zn(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Bn(e){return~-encodeURI(e).split(/%..|./).length}function Vn(e){return Bn(JSON.stringify(e))}function Hn(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function K(e,t=[]){return[e,t]}function Un(e,t){let[n,r]=e;return[n,[...r,t]]}function Wn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Gn(e,t){return Wn(e,(e,n)=>t.includes(n))}function Kn(t){let n=r(e);return n.encodePolyfill?n.encodePolyfill(t):new TextEncoder().encode(t)}function qn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Kn(r),e]:r.push(typeof e==`string`?Kn(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(G(n))}i(e)}}return typeof r==`string`?r:Jn(r)}function Jn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Yn(e){return[{type:`span`},e]}function Xn(e){let t=typeof e.data==`string`?Kn(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Zn={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,raw_security:`security`,log:`log_item`,metric:`metric`,trace_metric:`metric`};function Qn(e){return Zn[e]}function $n(e){if(!e?.sdk)return;
2let{name:t,version:n}=e.sdk;return{name:t,version:n}}function er(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:I(r)},...i&&{trace:i}}}function tr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function nr(e,t,n,r){let i=$n(n);return K({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:I(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function rr(e,t,n,r){let i=$n(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;tr(e,n?.sdk);let o=er(e,i,r,t);return delete e.sdkProcessingMetadata,K(o,[[{type:a},e]])}function ir(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=U(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:I(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!On(z(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=z(e);return s(t)||(En(),t)}:z,f=[];for(let e of l){let t=d(e);t&&f.push(Yn(t))}return K(o,f)}function ar(e,t,n,r=Tn()){let i=r&&H(r);i&&i.addEvent(e,{[kt]:t,[Ot]:n})}function or(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Ot],i=n[kt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var sr=1e3,cr=class{constructor(e={}){this._traceId=e.traceId||w(),this._spanId=e.spanId||T(),this._startTime=e.startTimestamp||S(),this._links=e.links,this._attributes={},this.setAttributes({[Et]:`manual`,[Tt]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=R(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(F,`custom`),this}end(e){this._endTime||(this._endTime=R(e),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Tt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:bn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Et],profile_id:this._attributes[jt],exclusive_time:this._attributes[Mt],measurements:or(this._events),is_segment:this._isStandaloneSpan&&H(this)===this||void 0,segment_id:this._isStandaloneSpan?H(this).spanContext().spanId:void 0,links:gn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){let r=lr(t)?t:n||S(),i=lr(t)?{}:t||{},a={name:e,time:R(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=P();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===H(this)))return;if(this._isStandaloneSpan){this._sampled?fr(ir([this],e)):e&&e.recordDroppedEvent(`sample_rate`,`span`);return}let t=this._convertSpanToTransaction();t&&(Ht(this).scope||j()).captureEvent(t)}_convertSpanToTransaction(){if(!ur(z(this)))return;this._name||=`<unlabeled transaction>`;let{scope:e,isolationScope:t}=Ht(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=wn(this).filter(e=>e!==this&&!dr(e)).map(e=>z(e)).filter(ur),i=this._attributes[F];
2delete this._attributes[At],r.forEach(e=>{delete e.data[At]});let a={contexts:{trace:fn(this)},spans:r.length>sr?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,sr):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:U(this)},request:n,...i&&{transaction_info:{source:i}}},o=or(this._events);return o&&Object.keys(o).length&&(a.measurements=o),a}};function lr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function ur(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function dr(e){return e instanceof cr&&e.isStandaloneSpan()}function fr(e){let t=P();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function pr(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return mr(i,t,n,r)}function mr(e,t,n,r){return g(e)?e.then(e=>(n(),r(e),e),e=>{throw t(e),n(),e}):(n(),r(e),e)}function hr(e,t,n){if(!Dn(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=L(i);return a===void 0?[!1]:a?[n<a,a,r]:[!1,a,r]}var gr=`__SENTRY_SUPPRESS_TRACING__`;function _r(e,t){let n=Sr();if(n.startSpan)return n.startSpan(e,t);let r=xr(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return N(s,()=>Er(a)(()=>{let n=j(),o=Tr(n,a),s=e.onlyIfParent&&!o?new W:br({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return E(n,s),pr(()=>t(s),()=>{let{status:e}=z(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function vr(e){let t=Sr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=xr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>N(e.scope,t):i===void 0?e=>e():e=>yr(i,e))(()=>{let t=j(),a=Tr(t,i);return e.onlyIfParent&&!a?new W:br({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function yr(e,t){let n=Sr();return n.withActiveSpan?n.withActiveSpan(e,t):N(n=>(E(n,e||void 0),t(n)))}function br({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Dn()){let r=new W;return(n||!e)&&Nn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...U(r)}),r}let i=M(),a;if(e&&!n)a=wr(e,r,t),Sn(e,a);else if(e){let n=U(e),{traceId:i,spanId:o}=e.spanContext(),s=B(e);a=Cr({traceId:i,parentSpanId:o,...t},r,s),Nn(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Cr({traceId:e,parentSpanId:o,...t},r,s),n&&Nn(a,n)}return Vt(a,r,i),a}function xr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=R(e.startTime),delete n.startTime,n}return t}function Sr(){return A(n())}function Cr(e,t,n){let r=P(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[u,d,f]=t.getScopeData().sdkProcessingMetadata[gr]?[!1]:hr(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:L(l.dsc?.sample_rate)},l.sampleRand),p=new cr({...e,attributes:{[F]:`custom`,[Ct]:d!==void 0&&f?d:void 0,...c},sampled:u});return!u&&r&&r.recordDroppedEvent(`sample_rate`,`transaction`),r&&r.emit(`spanStart`,p),p}function wr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[gr]?!1:B(e),o=a?new cr({...n,parentSpanId:r,traceId:i,sampled:a}):new W({traceId:i});Sn(e,o);let s=P();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function Tr(e,t){if(t)return t;if(t===null)return;let n=D(e);if(!n)return;let r=P();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?H(n):n}function Er(e){return e===void 0?e=>e():t=>yr(e,t)}var Dr=0,Or=1,kr=2;function Ar(e){return new Mr(t=>{t(e)})}function jr(e){return new Mr((t,n)=>{n(e)})}var Mr=class e{constructor(e){this._state=Dr,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
2{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Dr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Or&&e[1](this._value),this._state===kr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Dr){if(g(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Or,e)},r=e=>{t(kr,e)};try{e(n,r)}catch(e){r(e)}}};function Nr(e,t,n,r=0){try{let i=Pr(t,n,e,r);return g(i)?i:Ar(i)}catch(e){return jr(e)}}function Pr(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return g(a)?a.then(e=>Pr(e,t,n,r+1)):Pr(a,t,n,r+1)}var q,Fr,Ir,J;function Lr(t){let n=e._sentryDebugIds,r=e._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(J&&i.length===Fr&&a.length===Ir)return J;Fr=i.length,Ir=a.length,J={},q||={};let o=(e,n)=>{for(let r of e){let e=n[r],i=q?.[r];if(i&&J&&e)J[i[0]]=e,q&&(q[r]=[i[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let i=n[t]?.filename;if(i&&J&&q){J[i]=e,q[r]=[i,e];break}}}}};return n&&o(i,n),r&&o(a,r),J}function Rr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Vr(e,t),r&&Wr(e,r),Gr(e,n),Hr(e,i),Ur(e,a)}function zr(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:ee}=t;Y(e,`extra`,n),Y(e,`tags`,r),Y(e,`attributes`,i),Y(e,`user`,a),Y(e,`contexts`,o),e.sdkProcessingMetadata=dt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),ee&&(e.span=ee),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Y(e,t,n){e[t]=dt(e[t],n,1)}function Br(e,t){let n=xt().getScopeData();return e&&zr(n,e.getScopeData()),t&&zr(n,t.getScopeData()),n}function Vr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Hr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ur(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Wr(e,t){e.contexts={trace:pn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:U(t),...e.sdkProcessingMetadata};let n=z(H(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Gr(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Kr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||x(),timestamp:t.timestamp||nt()},l=n.integrations||e.integrations.map(e=>e.name);qr(c,e),Xr(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Jr(c,e.stackParser);let u=Qr(r,n.captureContext);n.mechanism&&Qe(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Br(a,u),p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),Rr(c,f),Nr([...d,...f.eventProcessors],c,n).then(e=>(e&&Yr(e),typeof o==`number`&&o>0?Zr(e,o,s):e))}function qr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=He(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=He(e.value,a)})}function Jr(e,t){let n=Lr(t);e.exception?.values?.forEach(e=>
2{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Yr(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Xr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:G(e.data,t,n)}}))},...e.user&&{user:G(e.user,t,n)},...e.contexts&&{contexts:G(e.contexts,t,n)},...e.extra&&{extra:G(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=G(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:G(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=G(e.contexts.flags,3,n)),r}function Qr(e,t){if(!t)return e;let n=e?e.clone():new O;return n.update(t),n}function $r(e){if(e)return ei(e)||ni(e)?{captureContext:e}:e}function ei(e){return e instanceof O||typeof e==`function`}var ti=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function ni(e){return Object.keys(e).some(e=>ti.includes(e))}function ri(e,t){return j().captureException(e,$r(t))}function ii(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return j().captureMessage(e,n,r)}function ai(e,t){return j().captureEvent(e,t)}function oi(e,t){M().setContext(e,t)}function si(e,t){M().setTag(e,t)}function ci(){let e=P();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function li(t){let n=M(),r=j(),{userAgent:i}=e.navigator||{},a=ct({user:r.getUser()||n.getUser(),...i&&{userAgent:i},...t}),o=n.getSession();return o?.status===`ok`&&C(o,{status:`exited`}),ui(),n.setSession(a),a}function ui(){let e=M(),t=j().getSession()||e.getSession();t&&lt(t),di(),e.setSession()}function di(){let e=M(),t=P(),n=e.getSession();n&&t&&t.captureSession(n)}function fi(e=!1){if(e){ui();return}di()}function pi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function mi(e,t){let{value:n,unit:r}=pi(e)?e:{value:e,unit:void 0},i=gi(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function hi(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=mi(i,t);e&&(n[r]=e)}return n}function gi(e){let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function _i(e,t){return t?N(t,()=>{let n=Tn(),r=n?pn(n):St(t);return[n?U(n):Fn(e,t),r]}):[void 0,void 0]}function vi(e){return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{items:e}]}function yi(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=I(r)),K(i,[vi(e)])}var bi=1e3;function X(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function xi(e,t){let n=Di(),r=Ei(e);r===void 0?n.set(e,[t]):r.length>=bi?(Ti(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Si(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};X(a,`user.id`,n.id,!1),X(a,`user.email`,n.email,!1),X(a,`user.name`,n.username,!1),X(a,`sentry.release`,r),X(a,`sentry.environment`,i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};X(a,`sentry.sdk.name`,o),X(a,`sentry.sdk.version`,s);let c=t.getIntegrationByName(`Replay`),l=c?.getReplayId(!0);return X(a,`sentry.replay_id`,l),l&&c?.getRecordingMode()===`buffer`&&X(a,`sentry._internal.replay_is_buffering`,!0),{...e,attributes:a}}function Ci(e,t,n,r){let[,i]=_i(t,n),a=D(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0;return{timestamp:S(),trace_id:o??``,span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...hi(r),...hi(e.attributes,`skip-undefined`)}}}function wi(e,t){let n=t?.scope??j(),r=t?.captureSerializedMetric??xi,i=n?.getClient()??P();if(!i)return;let{_experiments:a,enableMetrics:o,beforeSendMetric:s}=i.getOptions();if(!(o??a?.enableMetrics??!0))return;let{user:c,attributes:l}=Br(M(),n),u=Si(e,i,c);i.emit(`processMetric`,u);let d=s||a?.beforeSendMetric,f=d?d(u):u;f&&(r(i,Ci(f,i,n,l)),i.emit(`afterCaptureMetric`,f))}function Ti(e,t){let n=t??Ei(e)??[];if(n.length===0)return;let r=e.getOptions(),i=yi(n,r._metadata,r.tunnel,e.getDsn());Di().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Ei(e){return Di().get(e)}function Di(){return i(`clientToMetricBufferMap`,()=>new WeakMap)}function Oi(e,t,n,r){wi({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function ki(e,t=1,n){Oi(`counter`,e,t,n)}var Ai=e=>{if(e==null)return{message:String(e),originalError:`Null or undefined error`};if(typeof e==`string`||typeof e==`number`)return{message:String(e)};if(e instanceof Error){let t=Object.keys(e);if(t.every(e=>[`message`,`stack`,`name`,`cause`].includes(e))&&t.length<=4)return e}try{let t={};e?.name&&(t.name=String(e.name)),e?.message&&(t.message=String(e.message)),e?.stack&&(t.stack=String(e.stack)),e?.code&&(t.code=String(e.code)),e?.cause&&(t.cause=Ai(e.cause)),e?.issues&&Array.isArray(e.issues)&&(t.issues=e.issues.map(e=>{let t={};return e.code&&(t.code=e.code),e.path&&(t.path=e.path),e.message&&(t.message=e.message),e.expected!==void 0&&(t.expected=e.expected),e.received!==void 0&&(t.received=e.received),t}));let n=Object.getOwnPropertyNames(e);for(let r of n)if(!t[r]&&r!==`constructor`&&typeof e[r]!=`function`)try{t[r]=JSON.parse(JSON.stringify(e[r]))}catch{try{t[r]=String(e[r])}catch{}}return t}catch{try{return{message:String(e),originalError:`Error occurred during serialization`}}catch{return{message:`Unknown error`,originalError:`Error occurred during serialization`}}}},ji=(e,t)=>{ki(e,1,{attributes:t})},Z={EDITOR:`Editor`,DASHBOARD:`Dashboard`,RECORDER:`Recorder`,AUTH:`Auth`,COMPOSER:`Composer`,AI_STUDIO:`AIStudio`},Mi=`edit`,Ni=`workspaces`,Pi=`screen-recorder`,Fi=`login`,Ii=`signup`,Li=`ai-studio`,Q=()=>window?.location?.href,Ri=()=>
2{if(Q()?.includes(Li))return Z.AI_STUDIO;if(Q()?.includes(Mi))return Z.EDITOR;if(Q()?.includes(Ni))return Z.DASHBOARD;if(Q()?.includes(Pi))return Z.RECORDER;if(Q()?.includes(Fi)||Q()?.includes(Ii))return Z.AUTH},zi=({message:e,tags:t={},contexts:n={},extra:r={},fingerprint:i,level:a})=>{console.error(e);let o={};i&&(o={...o,fingerprint:i}),a&&(o={...o,level:a}),Object.keys(t).length>0&&(o={...o,tags:t}),Object.keys(n).length>0&&(o={...o,contexts:n}),Object.keys(r).length>0&&(o={...o,extra:r}),ii(e,o)},Bi=({message:e,tags:t={},extra:n={}})=>{zi({message:e,tags:{...t,section:Ri()},extra:n})},Vi=e=>{if(typeof e==`string`)return e;if(typeof e?.message==`string`&&e.message)return e.message;if(typeof e?.error==`string`&&e.error)return e.error;if(Array.isArray(e?.errors)&&e.errors.length>0){let t=e.errors[0];return typeof t==`string`?t:t?.message??JSON.stringify(t)}if(typeof e?.statusText==`string`&&e.statusText)return e.status?`${e.status} ${e.statusText}`:e.statusText;try{let t=JSON.stringify(e);if(t&&t!==`{}`)return t}catch{}return`Unknown error`},$=({error:e,contexts:t={},tags:n={},extra:r={}})=>{if(e){console.error(Ai(e));let i={};if(Object.keys(n).length>0&&(i={...i,tags:n}),Object.keys(t).length>0&&(i={...i,contexts:t}),Object.keys(r).length>0&&(i={...i,extra:r}),!(e instanceof Error)){let t=typeof e==`object`&&e?{...e}:e;i={...i,originalError:t},e=Error(Vi(t),{cause:t}),e.stack=t.stack,e.code=t.code}ri(e,i)}},Hi=({error:e,contexts:t={},tags:n={},extra:r={}})=>{$({error:e,tags:{...n,section:Z.EDITOR},contexts:t,extra:r})},Ui=({error:e,contexts:t={},tags:n={},extra:r={}})=>{$({error:e,tags:{...n,section:Z.DASHBOARD},contexts:t,extra:r})},Wi=({error:e,contexts:t={},tags:n={},extra:r={}})=>{$({error:e,tags:{...n,section:Z.AI_STUDIO},contexts:t,extra:r})},Gi=({error:e,contexts:t={},tags:n={},extra:r={}})=>{$({error:e,tags:{...n,section:Ri()},contexts:t,extra:r})};export{z as $,je as $t,Un as A,E as At,Fn as B,$e as Bt,vr as C,t as Cn,Nt as Ct,ar as D,St as Dt,cr as E,M as Et,Wn as F,st as Ft,Dn as G,Ve as Gt,jn as H,x as Ht,qn as I,nt as It,wn as J,ze as Jt,Tn as K,b as Kt,In as L,S as Lt,K as M,w as Mt,Gn as N,dt as Nt,rr as O,N as Ot,Qn as P,C as Pt,R as Q,Me as Qt,W as R,Qe as Rt,Ar as S,n as Sn,F as St,yr as T,j as Tt,kn as U,Ue as Ut,U as V,Xe as Vt,On as W,Ge as Wt,En as X,Fe as Xt,Cn as Y,Ne as Yt,B as Z,Pe as Zt,oi as _,a as _n,kt as _t,Hi as a,xe as an,sn as at,Kr as b,o as bn,wt as bt,Gi as c,be as cn,rn as ct,Ti as d,_e as dn,It as dt,ke as en,mn as et,ai as f,g as fn,Pt as ft,ci as g,ae as gn,Ot as gt,fi as h,le as hn,Dt as ht,Ui as i,me as in,ln as it,Xn as j,T as jt,nr as k,A as kt,Bi as l,ye as ln,Ut as lt,ii as m,ue as mn,jt as mt,ji as n,ge as nn,an as nt,$ as o,_ as on,L as ot,ri as p,ie as pn,Mt as pt,H as q,v as qt,Wi as r,pe as rn,cn as rt,zi as s,ve as sn,I as st,Z as t,he as tn,hn as tt,Ai as u,Ee as un,Kt as ut,si as v,s as vn,Tt as vt,_r as w,e as wn,P as wt,jr as x,i as xn,Ct as xt,li as y,ee as yn,Et as yt,Nn as z,Ze as zt};
3//# sourceMappingURL=src-hId4uPmf.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.