16 lines
94 KiB
JavaScript
16 lines
94 KiB
JavaScript
const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,Ot="11.20.0";function st(){return pt(_),_}function pt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"11.20.0",e[Ot]=e["11.20.0"]||{}}function Dt(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Ot]=r["11.20.0"]||{};return s[t]||(s[t]=e())}const Ln=["debug","info","warn","error","log","assert","trace"],Fr="Sentry Logger ",Rt={};function B(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(Rt);r.forEach(s=>{const o=Rt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function jr(){Ee().enabled=!0}function Ur(){Ee().enabled=!1}function Pn(){return Ee().enabled}function Br(...t){Se("log",...t)}function Hr(...t){Se("warn",...t)}function Wr(...t){Se("error",...t)}function Se(t,...e){h&&Pn()&&B(()=>{_.console[t](`${Fr}[${t}]:`,...e)})}function Ee(){return h?Dt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:jr,disable:Ur,isEnabled:Pn,log:Br,warn:Hr,error:Wr},$n=50,Q="?",Pe=/\(error: (.*)\)/,$e=/captureMessage|captureException/;function Mn(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
`);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=Pe.test(c)?c.replace(Pe,"$1"):c;if(!u.includes("Error: ")){for(const f of e){const l=f(u);if(l){o.push(l);break}}if(o.length>=$n+s)break}}return qr(o.slice(s))}}function Gr(t){return Array.isArray(t)?Mn(...t):t}function qr(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(bt(e).function||"")&&e.pop(),e.reverse(),$e.test(bt(e).function||"")&&(e.pop(),$e.test(bt(e).function||"")&&e.pop()),e.slice(0,$n).map(n=>({...n,filename:n.filename||bt(e).filename,function:n.function||"?"}))}function bt(t){return t[t.length-1]||{}}const jt="<anonymous>";function j(t){try{return!t||typeof t!="function"?jt:t.name||jt}catch{return jt}}function Me(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ct={},Fe={};function q(t,e){return ct[t]=ct[t]||[],ct[t].push(e),()=>{const n=ct[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}}function z(t,e){if(!Fe[t]){Fe[t]=!0;try{e()}catch(n){h&&p.error(`Error while instrumenting ${t}`,n)}}}function N(t,e){const n=t&&ct[t];if(n)for(const r of n)try{r(e)}catch(s){h&&p.error(`Error while triggering instrumentation handler.
|
|
Type: ${t}
|
|
Name: ${j(r)}
|
|
Error:`,s)}}let Ut=null;function zr(t){const e="error";q(e,t),z(e,Yr)}function Yr(){Ut=_.onerror,_.onerror=function(t,e,n,r,s){return N("error",{column:r,error:s,line:n,msg:t,url:e}),Ut?Ut.apply(this,arguments):!1},_.onerror.__SENTRY_INSTRUMENTED__=!0}let Bt=null;function Kr(t){const e="unhandledrejection";q(e,t),z(e,Vr)}function Vr(){Bt=_.onunhandledrejection,_.onunhandledrejection=function(t){return N("unhandledrejection",t),Bt?Bt.apply(this,arguments):!0},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Fn=Object.prototype.toString;function D(t){switch(Fn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ve(t,Error)}}function ot(t,e){return Fn.call(t)===`[object ${e}]`}function jn(t){return ot(t,"ErrorEvent")}function je(t){return ot(t,"DOMError")}function Xr(t){return ot(t,"DOMException")}function $(t){return ot(t,"String")}function be(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function it(t){return t===null||be(t)||typeof t!="object"&&typeof t!="function"}function ht(t){return ot(t,"Object")}function At(t){return typeof t=="object"&&t!==null}function xt(t){return typeof Event<"u"&&ve(t,Event)}function Jr(t){return ot(t,"RegExp")}function mt(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function ve(t,e){try{return t instanceof e}catch{return!1}}function Un(t){return typeof Request<"u"&&ve(t,Request)}function k(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Bn(s,r);try{t[e]=s}catch{h&&p.log(`Failed to replace method "${String(e)}" in object`,t)}}function U(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&p.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function Bn(t,e){try{t.prototype=e.prototype=e.prototype||{},U(t,"__sentry_original__",e)}catch{}}function Ie(t){return t.__sentry_original__}function Hn(t){if(D(t))return{message:t.message,name:t.name,stack:t.stack,...Ue(t)};if(xt(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...Ue(t)}}return t}function Ue(t){return At(t)?Object.fromEntries(Object.entries(t)):{}}function Qr(t){const e=Object.keys(Hn(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let V;function lt(t){if(V!==void 0)return V?V(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=_;return e in n&&typeof n[e]=="function"?(V=n[e],V(t)):(V=null,t())}function Te(){return lt(()=>Math.random())}function Y(){return lt(()=>Date.now())}const Zr=Symbol.for("sentry.skipNormalization"),ts=Symbol.for("sentry.overrideNormalizationDepth");function es(t){return!!t[Zr]}function ns(t){const e=t[ts];return typeof e=="number"?e:void 0}let Vt;function rs(t){Vt=t}function P(t,e=100,n=1/0){try{return Xt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${Wn(r)})`}}}function Wn(t){try{return String(t)}catch{return"unknown error"}}function Gn(t,e=3,n=102400){const r=P(t,e);return is(r)>n?Gn(t,e-1,n):r}function Xt(t,e,n=1/0,r=1/0,s=as()){const[o,i]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=we(t,e);if(!a.startsWith("[object "))return a;if(es(e))return e;const c=ns(e),u=c!==void 0?c:n;if(u===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{return Xt("",f.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const m=Hn(e);for(const y in m){if(!Object.prototype.hasOwnProperty.call(m,y))continue;if(d>=r){l[y]="[MaxProperties ~]";break}const O=m[y];l[y]=Xt(y,O,u-1,r,s),d++}return i(e),l}function we(t,e){try{if(Vt){const n=Vt(e);if(n)return n}return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${j(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${ss(e)}]`}catch(n){return`**non-serializable** (${Wn(n)})`}}function ss(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function os(t){return~-encodeURI(t).split(/%..|./).length}function is(t){return os(JSON.stringify(t))}function as(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function cs(t,e="[unserializable]"){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return typeof e=="function"?e(t):e}}function Jt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function us(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];it(s)?n.push(String(s)):s instanceof Error?n.push(s.message?`${s.name}: ${s.message}`:s.name):n.push(we(void 0,s))}return n.join(e)}function ft(t,e,n=!1){return $(t)?Jr(e)?e.test(t):$(e)?n?t===e:t.includes(e):typeof e=="function"?e(t):!1:!1}function _t(t,e=[],n=!1){for(const r of e)if(ft(t,r,n))return!0;return!1}function fs(){const t=_;return t.crypto||t.msCrypto}let Ht;function ls(){return Te()*16}function R(t=fs()){try{if(t!=null&&t.randomUUID)return lt(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Ht||(Ht="10000000100040008000100000000000"),Ht.replace(/[018]/g,e=>(e^(ls()&15)>>e/4).toString(16))}function qn(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function W(t){const{message:e,event_id:n}=t;if(e)return e;const r=qn(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Qt(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")}function J(t,e){const n=qn(t);n&&zn(n,e)}function ds(t,e){var s;const n=(s=t.exception)==null?void 0:s.values,r=(n==null?void 0:n.find(o=>{var i;return((i=o.mechanism)==null?void 0:i.exception_id)===0}))??(n==null?void 0:n[0]);r&&zn(r,e)}function zn(t,e){const n={type:"generic",handled:!0},r=t.mechanism;t.mechanism={...n,...r,...e},e&&"data"in e&&(t.mechanism.data={...r==null?void 0:r.data,...e.data})}function Be(t){if(ps(t))return!0;try{U(t,"__sentry_captured__",!0)}catch{}return!1}function ps(t){try{return t.__sentry_captured__}catch{}}const Yn=1e3,hs=1e3,ms=100;function gt(){return Y()/Yn}let X=[];function _s(){const{performance:t}=_;if(!(t!=null&&t.now)||!t.timeOrigin)return t!=null&&t.now&&(X=[{from:0,origin:Y()-lt(()=>t.now())}]),gt;let e=t.timeOrigin;X=[{from:0,origin:e}];let n=!0,r=0;return()=>lt(()=>{const s=t.now(),o=Date.now();return Math.abs(e+s-o)>hs&&(e=o-s,n?X=[{from:0,origin:e}]:(X.push({from:r,origin:e}),X.length>ms&&X.splice(1,1))),n=!1,r=s,(e+s)/Yn})}let He;function A(){return(He??(He=_s()))()}function gs(t){const e=A(),n={sid:R(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ss(n)};return t&&Z(n,t),n}function Z(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||A(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:R()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n: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),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ys(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Z(t,n)}function Ss(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${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}}}function yt(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=yt(r[s],e[s],n-1));return r}function Es(){return R()}function Kn(){return R().substring(16)}const bs=100;var tt=class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},U(this,"refs",{}),this._propagationContext={traceId:Es(),sampleRand:Te()}}clone(){const e=new Zt;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,e.refs={...this.refs},e}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&&Z(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,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}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,n){return this._extra={...this._extra,[e]:n},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,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:f,conversationId:l}=(n instanceof Zt?n.getScopeData():ht(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),l&&(this._conversationId=l),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:bs;if(r<=0)return this;const s={timestamp:gt(),...e,message:e.message?Jt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r)),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,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=yt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||R();if(!this._client)return h&&p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=(r==null?void 0:r.event_id)||R();if(!this._client)return h&&p.warn("No client configured on scope - will not capture message!"),s;const o=(r==null?void 0:r.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=e.event_id||(n==null?void 0:n.event_id)||R();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(h&&p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function vs(){return Dt("defaultCurrentScope",()=>new tt)}function Is(){return Dt("defaultIsolationScope",()=>new tt)}const We="__SENTRY_SUPPRESS_TRACING__",Ge=t=>t instanceof Promise&&!t[Vn],Vn=Symbol("chained PromiseLike"),Ts=(t,e,n)=>{const r=t.then(s=>(e(s),s),s=>{throw n(s),s});return Ge(r)&&Ge(t)?r:ws(t,r)},ws=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...o)=>s.apply(t,o),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[Vn]:!0}),e};var ks=class{constructor(t,e){let n;t?n=t:n=new tt;let r;e?r=e:r=new tt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return mt(n)?Ts(n,()=>this._popScope(),()=>this._popScope()):(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(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function et(){const t=st(),e=pt(t);return e.stack=e.stack||new ks(vs(),Is())}function Xn(t){return et().withScope(t)}function Os(t,e){const n=et();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function qe(t){return et().withScope(()=>t(et().getIsolationScope()))}function Rs(){return{suppressTracing:Cs,withIsolationScope:qe,withScope:Xn,withSetScope:Os,withSetIsolationScope:(t,e)=>qe(e),getCurrentScope:()=>et().getScope(),getIsolationScope:()=>et().getIsolationScope()}}function Cs(t){return Xn(e=>{e.setSDKProcessingMetadata({[We]:!0});const n=t();return e.setSDKProcessingMetadata({[We]:void 0}),n})}function Lt(t){const e=pt(t);return e.acs?e.acs:Rs()}function Ns(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function Ds(t,e){const{value:n,unit:r}=Ns(t)?t:{value:t,unit:void 0},s=As(n),o=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...o};if(!e||e==="skip-undefined"&&n===void 0)return;let i="";try{i=JSON.stringify(n)??""}catch{}return{value:i,type:"string",...o}}function ze(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const o=Ds(s,e);o&&(n[r]=o)}return n}function As(t){if(Array.isArray(t))return{value:t,type:"array"};const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Jn(){var t,e;return(e=(t=pt(st())).externalPropagationContextProvider)==null?void 0:e.call(t)}function x(){const t=st();return Lt(t).getCurrentScope()}function K(){const t=st();return Lt(t).getIsolationScope()}function xs(){return Dt("globalScope",()=>new tt)}function Ls(...t){const e=st(),n=Lt(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function b(){return x().getClient()}function Qn(t){const e=Jn();if(e)return{trace_id:e.traceId,span_id:e.spanId};const{traceId:n,parentSpanId:r,propagationSpanId:s}=t.getPropagationContext(),o={trace_id:n,span_id:s||Kn()};return r&&(o.parent_span_id=r),o}const Ps=["ok","deadline_exceeded","unauthenticated","permission_denied","not_found","resource_exhausted","invalid_argument","unimplemented","unavailable","internal_error","unknown_error","cancelled","already_exists","failed_precondition","aborted","out_of_range","data_loss"],$s="culture.calendar",Ms="culture.locale",Fs="culture.timezone",js="gen_ai.conversation.id",Us="http.request.header",Zn="sentry.exclusive_time",Bs="sentry.is_localhost",tr="sentry.op",Hs="sentry.origin",er="sentry.profile_id",Ws="sentry.segment.name.source",Gs="url.full",qs="user_agent.original";function zs(t){return t!=="ok"&&Ps.includes(t)}function nr(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const Ys="_sentryScope",Ks="_sentryIsolationScope";function te(t){const e=t;return{scope:e[Ys],isolationScope:nr(e[Ks])}}function Vs(t){const e=Xs(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,o])=>{if(s.startsWith("sentry-")){const i=s.slice(7);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Xs(t){if(!(!t||!$(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Ye(n);return Object.entries(r).forEach(([s,o])=>{e[s]=o}),e},{}):Ye(t)}function Ye(t){return t.split(",").map(e=>{const n=e.indexOf("=");return n===-1?[]:[e.slice(0,n),e.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}const Js=/^o(\d+)\./,Qs=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Zs(t){return t==="http"||t==="https"}function Pt(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function to(t){const e=Qs.exec(t);if(!e){B(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return rr({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function rr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eo(t){if(!h)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(p.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Zs(r)?e&&isNaN(parseInt(e,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function no(t){var e;return(e=t.match(Js))==null?void 0:e[1]}function ro(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=no(n)),r}function ke(t){const e=typeof t=="string"?to(t):rr(t);if(!(!e||!eo(e)))return e}function so(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const oo="span";function io(t){return nr(t.refs[oo])}function ao(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:$t(t).parent_span_id,o=te(t).scope;return{parent_span_id:s,span_id:r?(o==null?void 0:o.getPropagationContext().propagationSpanId)||Kn():e,trace_id:n}}function co(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:e,trace_id:n,sampled:r===1,attributes:o,...s}))}function Ke(t){return typeof t=="number"?Ve(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ve(t.getTime()):A()}function Ve(t){return t>9999999999?t/1e3:t}function $t(t){if(po(t))return t.getStaticSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(lo(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:uo(t),start_timestamp:Ke(s),timestamp:Ke(i)||void 0,status:mo(a),op:r[tr],origin:r[Hs],links:co(c)}}return{span_id:e,trace_id:n,start_timestamp:0,status:"ok",data:{}}}function uo(t){var e;return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(e=t.parentSpanContext)==null?void 0:e.spanId:void 0}function fo(t){var e;return{...t,end_timestamp:t.end_timestamp??t.start_timestamp,attributes:ze(t.attributes),links:(e=t.links)==null?void 0:e.map(n=>({...n,attributes:ze(n.attributes)}))}}function lo(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function po(t){return typeof t.getSpanJSON=="function"}function ho(t){const{traceFlags:e}=t.spanContext();return e===1}function mo(t){return!t||t.code===0||t.code===1?"ok":t.message&&zs(t.message)?t.message:"internal_error"}const _o="_sentryRootSpan",sr=go;function go(t){return t[_o]||t}function yo(t){const e=st(),n=Lt(e);return n.getActiveSpan?n.getActiveSpan(t):io(t||x())}function Xe(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=b())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Je(t){p.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Qe(t,e){if(!(e!=null&&e.length))return!1;for(const n of e){if(bo(n)){if(t.description&&ft(t.description,n))return h&&Je(t),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const s=n.name?t.description&&ft(t.description,n.name):!0,o=n.op?t.op&&ft(t.op,n.op):!0,i=n.attributes?Object.entries(n.attributes).every(([a,c])=>{var u;return So((u=t.attributes)==null?void 0:u[a],c)}):!0;if(s&&o&&i)return h&&Je(t),!0}return!1}function So(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?ft(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t===e}function Eo(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function bo(t){return typeof t=="string"||t instanceof RegExp}const Ze=[];function vo(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function Io(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const s=n(e);r=Array.isArray(s)?s:[s]}else r=e;return vo(r)}function To(t,e){const n={};return e.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&or(t,r,n)}),n}function tn(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function or(t,e,n){if(n[e.name]){h&&p.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!Ze.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),Ze.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,o)=>r(s,o,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((o,i)=>r(o,i,t),{id:e.name});t.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=e[r];typeof s=="function"&&t.on(r,o=>s.call(e,o,t))}),h&&p.log(`Integration installed: ${e.name}`)}function C(t,e){return(...n)=>{const r=ht(n[0])?{...n[0]}:n[0],s=t(...n);return s._options=r,s._libraryOptions=e==null?void 0:e.libraryOptions,s}}const wo="production",ko=Symbol.for("sentry.nonRecordingSpan");function Oo(t){return!!t&&t[ko]===!0}const Ro="_frozenDsc";function ir(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||"production",release:n.release,public_key:r,trace_id:t,org_id:ro(e)};return e.emit("createDsc",s),s}function ar(t,e){if(Jn())return;const n=e.getPropagationContext();return n.dsc||ir(n.traceId,t)}function Co(t){var S;const e=b();if(!e)return{};const n=sr(t),r=$t(n),s=r.data,o=n.spanContext().traceState,i=(o==null?void 0:o.get("sentry.sample_rate"))??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(v){return(typeof i=="number"||typeof i=="string")&&(v.sample_rate=`${i}`),v}const c=n[Ro];if(c)return a(c);const u=Oo(n),f=u&&n.dropReason==="ignored";if(u&&(!Xe(e.getOptions())||f)){const v=te(n).scope,w=v&&ar(e,v);if(w){const I={...w};return f&&(I.sampled="false"),a(I)}}const l=o==null?void 0:o.get("sentry.dsc"),d=l&&Vs(l);if(d)return a(d);const m=ir(t.spanContext().traceId,e),y=s[Ws],O=r.description;if(y!=="url"&&O&&(m.transaction=O),Xe()){const v=(S=te(n).scope)==null?void 0:S.getPropagationContext(),w=ho(n);m.sampled=String(w),m.sample_rand=(o==null?void 0:o.get("sentry.sample_rand"))??(v==null?void 0:v.sampleRand.toString()),i==null&&typeof(v==null?void 0:v.sampled)=="boolean"&&(m.sample_rate=w?"1":"0")}return a(m),e.emit("createDsc",m,n),m}function No(t,e){const{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:s}=e;Do(t,e),Po(t,n),Ao(t,r),xo(t,s)}function en(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:m,transactionName:y}=e;at(t,"extra",n),at(t,"tags",r),at(t,"attributes",s),at(t,"user",o),at(t,"contexts",i),t.sdkProcessingMetadata=yt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),y&&(t.transactionName=y),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...m}}function at(t,e,n){t[e]=yt(t[e],n,1)}function cr(t,e){const n=xs().getScopeData();return t&&en(n,t.getScopeData()),e&&en(n,e.getScopeData()),n}function Do(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&t.type!=="transaction"&&(t.transaction=a)}function Ao(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function xo(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Lo(t,e){t.contexts={trace:ao(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Co(e),...t.sdkProcessingMetadata};const n=sr(e),r=$t(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Po(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function dt(t,e,n){let r;try{r=e()}catch(s){return nn(t,s,n)}return mt(r)?r.then(void 0,s=>nn(t,s,n)):r}function nn(t,e,n){return h&&p.error(t,e),n(e)}function ur(t){return!!t&&typeof t=="function"&&"_static"in t&&!!t._static}function rn(t,e){return dt(h?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":"",()=>e(t),()=>t)||t}function $o(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links};return fo(e)}function fr(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([r,s])=>{s!=null&&!(r in n)&&(n[r]=s)})}function Mo(t){return t.getOptions().traceLifecycle==="stream"}function Fo(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}function Mt(t,e=[]){return[t,e]}function sn(t,e){const[n,r]=t;return[n,[...r,e]]}function ee(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function jo(t,e){return ee(t,(n,r)=>e.includes(r))}function ne(t){const e=pt(_);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Uo(t){const[e,n]=t;let r=JSON.stringify(e);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[ne(r),o]:r.push(typeof o=="string"?ne(o):o)}for(const o of n){const[i,a]=o;if(s(`
|
|
${JSON.stringify(i)}
|
|
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(P(a))}s(c)}}return typeof r=="string"?r:Bo(r)}function Bo(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function Ho(t){const e=typeof t.data=="string"?ne(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const lr={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",metric:"trace_metric"};function Wo(t){return t in lr}function on(t){return Wo(t)?lr[t]:t}function dr(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Go(t,e,n,r){var o;const s=(o=t.sdkProcessingMetadata)==null?void 0:o.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(Y()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Pt(r)},...s&&{trace:s}}}function re(t){return t==="replay_event"?"replay":t||"error"}function qo(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function zo(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function Yo(){return!qo()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function pr(){return typeof window<"u"&&(!Yo()||Ko())}function Ko(){var t;return((t=_.process)==null?void 0:t.type)==="renderer"}function Vo(t,e){const n=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:t.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,ingest_settings:pr()?{infer_ip:n,infer_user_agent:n}:void 0,items:t}]}const Xo=new WeakMap;function Jo(t){return it(t)?void 0:t}function Qo(t,e,n){var i;const r=Jo(e.originalException),s=r&&Xo.get(r);if(!s)return;const o=(i=t.contexts)==null?void 0:i.trace;((o==null?void 0:o.trace_id)??(n&&Qn(n).trace_id))===s.trace_id&&(t.contexts={...t.contexts,trace:{...o,...s}})}function Zo(t,e){var r,s,o,i;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((r=t.sdk)==null?void 0:r.integrations)||[],...e.integrations||[]],packages:[...((s=t.sdk)==null?void 0:s.packages)||[],...e.packages||[]],settings:(o=t.sdk)!=null&&o.settings||e.settings?{...(i=t.sdk)==null?void 0:i.settings,...e.settings}:void 0},t}function ti(t,e,n,r){const s=dr(n),o={sent_at:new Date(Y()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Pt(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Mt(o,[i])}function ei(t,e,n,r){const s=dr(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Zo(t,n==null?void 0:n.sdk);const i=Go(t,s,r,e);return delete t.sdkProcessingMetadata,Mt(i,[[{type:o},t]])}const hr="[Filtered]",ni=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function ri(t,e){return e.some(n=>t.includes(n))}function mr(t,e,n){if(e===!1)return!0;const r=t.toLowerCase();if(ri(r,ni))return!0;if(e===!0)return!1;const s=("deny"in e?e.deny:e.allow).some(o=>r.includes(o.toLowerCase()));return"deny"in e?s:!s}function se(t,e,n){if(e===!1)return{};const r={};for(const[s,o]of Object.entries(t))r[s]=mr(s,e)?hr:o;return r}const Wt=0,an=1,cn=2;function St(t){return new _r(e=>{e(t)})}function Oe(t){return new _r((e,n)=>{n(t)})}var _r=class oe{constructor(e){this._state=Wt,this._handlers=[],this._runExecutor(e)}then(e,n){return new oe((r,s)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new oe((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,e&&e()},i=>{o=!0,s=i,e&&e()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Wt)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===an&&n[1](this._value),this._state===cn&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(o,i)=>{if(this._state===Wt){if(mt(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(an,o)},s=o=>{n(cn,o)};try{e(r,s)}catch(o){s(o)}}};function si(t,e,n,r=0,s){try{const o=ie(e,n,t,r,s);return mt(o)?o:St(o)}catch(o){return Oe(o)}}function ie(t,e,n,r,s){const o=n[r];if(!t||!o)return t;const i=`Event processor "${o.id||"?"}"`;let a=!1;const c=dt(h?`${i} threw an error, dropping event:`:"",()=>o({...t},e),()=>(a=!0,null));return h&&c===null&&p.log(`${i} dropped event`),mt(c)?c.then(u=>u?ie(u,e,n,r+1,s):(s==null||s(a?"callback_error":"event_processor"),null)):c?ie(c,e,n,r+1,s):(s==null||s(a?"callback_error":"event_processor"),null)}let L,un,fn,M;function oi(t){const e=_._sentryDebugIds,n=_._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(M&&r.length===un&&s.length===fn)return M;un=r.length,fn=s.length,M={},L||(L={});const o=(i,a)=>{var c;for(const u of i){const f=a[u],l=L==null?void 0:L[u];if(l&&M&&f)M[l[0]]=f,L&&(L[u]=[l[0],f]);else if(f){const d=t(u);for(let m=d.length-1;m>=0;m--){const y=(c=d[m])==null?void 0:c.filename;if(y&&M&&L){M[y]=f,L[u]=[y,f];break}}}}};return e&&o(r,e),n&&o(s,n),M}function ae(t){var e;return((e=t.data)==null?void 0:e.__sentry__)===!0}function gr(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function ii(t,e,n,r,s,o){var w;const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||R(),timestamp:e.timestamp||gt()},u=n.integrations||t.integrations.map(I=>I.name);ai(c,t),fi(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&ci(c,t.stackParser);const f=di(r,n.captureContext);n.mechanism&&ds(c,n.mechanism);const l=s?s.getEventProcessors():[],d=cr(o,f),m=[...n.attachments||[],...d.attachments];m.length&&(n.attachments=m),No(c,d);const y=yo(f);y&&Lo(c,y),Qo(c,n,f);const O=[...l,...d.eventProcessors],S=e.type==="transaction",v=((w=e.spans)==null?void 0:w.length)||0;return(ae(n)?St(c):si(O,c,n,0,I=>{s&&(s.recordDroppedEvent(I,re(e.type)),S&&s.recordDroppedEvent(I,"span",1+v))})).then(I=>{var xe;if(!I)return null;if(S&&s){const Le=v-(((xe=I.spans)==null?void 0:xe.length)||0);Le>0&&s.recordDroppedEvent("event_processor","span",Le)}return ui(I),typeof i=="number"&&i>0?li(I,i,a):I})}function ai(t,e){var a,c;const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||"production",!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i!=null&&i.url&&o&&(i.url=Jt(i.url,o)),o&&((c=(a=t.exception)==null?void 0:a.values)==null||c.forEach(u=>{u.value&&(u.value=Jt(u.value,o))}))}function ci(t,e){var r,s;const n=oi(e);(s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(o=>{var i,a;(a=(i=o.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function ui(t){var r,s;const e={};if((s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(o=>{var i,a;(a=(i=o.stacktrace)==null?void 0:i.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?e[c.abs_path]=c.debug_id:c.filename&&(e[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([o,i])=>{n.push({type:"sourcemap",code_file:o,debug_id:i})})}function fi(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function li(t,e,n){var s,o;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:P(i.data,e,n)}}))},...t.user&&{user:P(t.user,e,n)},...t.contexts&&{contexts:P(t.contexts,e,n)},...t.extra&&{extra:P(t.extra,e,n)}};return(s=t.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=P(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>({...i,...i.data&&{data:P(i.data,e,n)}}))),(o=t.contexts)!=null&&o.flags&&r.contexts&&(r.contexts.flags=P(t.contexts.flags,3,n)),r}function di(t,e){if(!e)return t;const n=t?t.clone():new tt;return n.update(e),n}function pi(t,e){return x().captureException(t,void 0)}function yr(t,e){return x().captureEvent(t,e)}function ln(t){var i,a;const e=K(),{user:n}=cr(e,x());let r=(i=_.navigator)==null?void 0:i.userAgent;if(r){const c=((a=b())==null?void 0:a.getDataCollectionOptions().httpHeaders.request)??!0;r=se({"User-Agent":r},c)["User-Agent"]}const s=gs({user:n,userAgent:r,...t}),o=e.getSession();return(o==null?void 0:o.status)==="ok"&&Z(o,{status:"exited"}),Sr(),e.setSession(s),s}function Sr(){const t=K(),e=x().getSession()||t.getSession();e&&ys(e),Er(),t.setSession()}function Er(){const t=K(),e=b(),n=t.getSession();n&&e&&e.captureSession(n)}function Gt(t=!1){if(t){Sr();return}Er()}function hi(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function mi(t){return`${hi(t)}${t.projectId}/envelope/`}function _i(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function gi(t,e,n){return e||`${mi(t)}?${_i(t,n)}`}function yi(t,e){var s,o,i;if(t.type!=="transaction"||!((s=t.spans)!=null&&s.length)||!((o=t.sdkProcessingMetadata)!=null&&o.hasGenAiSpans)||Mo(e))return;const n=[],r=[];for(const a of t.spans)(i=a.op)!=null&&i.startsWith("gen_ai.")?n.push($o(a)):r.push(a);if(n.length!==0)return t.spans=r,Vo(n,e)}const Re=Symbol.for("SentryBufferFullError");function Ce(t=100){const e=new Set;function n(){return e.size<t}function r(i){e.delete(i)}function s(i){if(!n())return Oe(Re);const a=i();return e.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!e.size)return St(!0);const a=Promise.allSettled(Array.from(e)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>Fo(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:s,drain:o}}const Si=6e4;function Ei(t,e=Y()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Si:r-e}function bi(t,e){return t[e]||t.all||0}function vi(t,e,n=Y()){return bi(t,e)>n}function Ii(t,e,n=Y()){const r={...t};return Ti(e,n,(s,o)=>{r[s]=Math.max(r[s]||0,o)}),r}function Ti({statusCode:t,headers:e},n,r){const s=e==null?void 0:e["x-sentry-rate-limits"],o=e==null?void 0:e["retry-after"];if(s)for(const i of s.trim().split(",")){const[a,c,,,u]=i.split(":",5),f=parseInt(a,10),l=(isNaN(f)?60:f)*1e3;if(!c)r("all",n+l);else for(const d of c.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&r(d,n+l):r(d,n+l)}else o?r("all",n+Ei(o,n)):t===429&&r("all",n+6e4)}function wi(t,e,n=Ce(t.bufferSize||64)){let r={};const s=a=>n.drain(a);function o(a,[c,u],f){var d;const l=on(f);f==="transaction"&&t.recordDroppedEvent(a,"span",(((d=u.spans)==null?void 0:d.length)??0)+1),t.recordDroppedEvent(a,l,typeof c.item_count=="number"?c.item_count:1)}function i(a){const c=[];if(ee(a,(d,m)=>{vi(r,on(m))?o("ratelimit_backoff",d,m):c.push(d)}),c.length===0)return Promise.resolve({});const u=Mt(a[0],c),f=d=>{if(jo(u,["client_report"])){h&&p.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}ee(u,(m,y)=>{o(d,m,y)})},l=()=>e({body:Uo(u)}).then(d=>d.statusCode===413?(h&&p.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(h&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&p.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Ii(r,d),d),d=>{throw f("network_error"),h&&p.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Re)return h&&p.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function ki(t,e,n){const r=[{type:"client_report"},{timestamp:gt(),discarded_events:t}];return Mt(e?{dsn:e}:{},[r])}function Oi(t){var u;const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a,links:c}=((u=t.contexts)==null?void 0:u.trace)??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s??"ok",timestamp:t.timestamp,trace_id:e??"",origin:o,links:c,profile_id:i==null?void 0:i[er],exclusive_time:i==null?void 0:i[Zn],measurements:t.measurements,is_segment:!0}}function Ri(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,links:t.links,data:{...t.data,...t.profile_id&&{[er]:t.profile_id},...t.exclusive_time&&{[Zn]:t.exclusive_time}}}},measurements:t.measurements}}function Ci(t){var e;t.traceLifecycle!=="stream"||!(t.beforeSendTransaction||(e=t.ignoreTransactions)!=null&&e.length)||B(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}const T={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function Ni(t){return typeof t=="boolean"||"allow"in t||"deny"in t}function Di(t){return t===void 0?{...T.httpHeaders}:Ni(t)?{request:t,response:t}:{request:t.request??T.httpHeaders.request,response:t.response??T.httpHeaders.response}}function Ai(t){var n,r,s,o,i,a;const e=t.dataCollection??{};return{userInfo:e.userInfo??T.userInfo,cookies:e.cookies??T.cookies,httpHeaders:Di(e.httpHeaders),httpBodies:e.httpBodies??T.httpBodies,urlQueryParams:e.urlQueryParams??T.urlQueryParams,graphQL:{document:((n=e.graphQL)==null?void 0:n.document)??T.graphQL.document,variables:((r=e.graphQL)==null?void 0:r.variables)??T.graphQL.variables},genAI:{inputs:((s=e.genAI)==null?void 0:s.inputs)??T.genAI.inputs,outputs:((o=e.genAI)==null?void 0:o.outputs)??T.genAI.outputs},mcp:{inputs:((i=e.mcp)==null?void 0:i.inputs)??T.mcp.inputs,outputs:((a=e.mcp)==null?void 0:a.outputs)??T.mcp.outputs},databaseQueryData:e.databaseQueryData??T.databaseQueryData,queues:e.queues??T.queues,stackFrameVariables:e.stackFrameVariables??T.stackFrameVariables,frameContextLines:e.frameContextLines??T.frameContextLines}}const dn="Not capturing exception because it's already been captured.",pn="Discarded session because of missing or non-string release",br=Symbol.for("SentryInternalError"),vr=Symbol.for("SentryDoNotSendEventError"),Ir=Symbol.for("SentryClosedClient");function xi(t){return Ir in t}function hn(t){return{message:t,[br]:!0}}function ce(t){return{message:t,[vr]:!0}}function mn(t){return ce(`Discarding event because it's not included in the random sample (sampling rate = ${t})`)}function _n(t){return At(t)&&br in t}function gn(t){return At(t)&&vr in t}var Li=class{constructor(t){var r;this._options={attachStacktrace:!0,...t,traceLifecycle:t.traceLifecycle==="static"?"static":"stream"},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ce(((r=t.transportOptions)==null?void 0:r.bufferSize)??64),this._dataCollection=Ai(t),this._unhandledSessionStatus="crashed",this._attachStacktraceIsDefault=t.attachStacktrace===void 0,t.dsn?this._dsn=ke(t.dsn):h&&p.warn("No DSN provided, client will not send events.");const{beforeSendSpan:e,traceLifecycle:n}=this._options;if(h&&e&&ur(e)!==(n==="static")&&B(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n==="static"?"wrap it with":"remove"} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){const s=gi(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}}captureException(t,e,n){const r=R();if(Be(t))return h&&p.log(dn),r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(o=>this._captureEvent(o,s,n)).then(o=>o),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:R(),...n},o=be(t)?t:String(t),i=it(t),a=i?this.eventFromMessage(o,e,s).then(c=>(c.exception&&this._attachStacktraceIsDefault&&(c.sdkProcessingMetadata={...c.sdkProcessingMetadata,hasDefaultSyntheticStacktrace:!0}),c)):this.eventFromException(t,s);return this._process(()=>a.then(c=>this._captureEvent(c,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=R();if(e!=null&&e.originalException&&Be(e.originalException))return h&&p.log(dn),r;const s={event_id:r,...e},o=t.sdkProcessingMetadata||{},i=o.capturedSpanScope,a=o.capturedSpanIsolationScope,c=re(t.type);return this._process(()=>this._captureEvent(t,s,i||n,a),c),s.event_id}captureSession(t){this.sendSession(t),Z(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(this.emit("flush"),!e)return!0;const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){Object.defineProperty(this,Ir,{value:!0});const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&(this._setupIntegrations(),Ci(this._options))}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),or(this,t,this._integrations),e||tn(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);const n=yi(t,this);let r=ei(t,this._dsn,this._options._metadata,this._options.tunnel);if(!ae(e))for(const s of e.attachments||[])r=sn(r,Ho(s));n&&(r=sn(r,n)),this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:e,environment:n=wo}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!e){h&&p.warn(pn);return}s.release=s.release||e,s.environment=s.environment||n,t.attrs=s}else{if(!t.release&&!e){h&&p.warn(pn);return}t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=ti(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;h&&p.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...s)=>e(...s);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(r=>r(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{const e=await this._transport.send(t);return this.emit("afterEnvelope",t),e}catch(e){return h&&p.error("Error while sending envelope:",e),{}}return h&&p.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=To(this,t),tn(this,t)}_updateSessionFromEvent(t,e){var i,a;let n=e.level==="fatal",r=!1;const s=(i=e.exception)==null?void 0:i.values;if(s){r=!0,n=!1;for(const c of s)if(((a=c.mechanism)==null?void 0:a.handled)===!1){n=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&n)&&(Z(t,{...n&&{status:this._unhandledSessionStatus},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(n=>setTimeout(n,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=this.getIntegrationNames();return!e.integrations&&o.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),ii(s,t,e,n,this,r).then(i=>{var a;return i===null||(this.emit("postprocessEvent",i,e),i.contexts={trace:{...(a=i.contexts)==null?void 0:a.trace,...Qn(n)},...i.contexts},i.sdkProcessingMetadata={dynamicSamplingContext:ar(this,n),...i.sdkProcessingMetadata}),i})}_captureEvent(t,e={},n=x(),r=K()){return h&&ue(t)&&p.log(`Captured error event \`${gr(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(s=>s.event_id,s=>{h&&(gn(s)?p.log(s.message):_n(s)?p.warn(s.message):p.warn(s))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Tr(t),a=ue(t),c=`before send for type \`${t.type||"error"}\``;let u="before_send",f=0;const l=typeof o>"u"?void 0:so(o),d=a&&typeof l=="number"&&Te()>l,m=re(t.type);let y=0;const O=n.getSession()||r.getSession();return d&&(O==null?void 0:O.status)!=="ok"?(this.recordDroppedEvent("sample_rate","error"),Oe(mn(o))):this._prepareEvent(t,e,n,r).then(S=>{var v;if(S===null)throw ce("An event processor returned `null`, will not send event.");return y=((v=S.spans)==null?void 0:v.length)||0,ae(e)?S:Pi(s,S,e,w=>{u=w},w=>{f=w})}).then(S=>{var w;if(f&&this.recordDroppedEvent("ignored","span",f),!ht(S)||S===null)throw this.recordDroppedEvent(u,m),i&&this.recordDroppedEvent(u,"span",1+y-f),S!==null?hn(`${c} must return \`null\` or a valid event.`):ce(`${u==="ignored"?"Transaction matched `ignoreSpans`":`${c} ${u==="callback_error"?"threw an error":"returned `null`"}`}, will not send event.`);if(a&&O&&this._updateSessionFromEvent(O,S),d)throw this.recordDroppedEvent("sample_rate","error"),mn(o);if(i){const I=y-f-(((w=S.spans)==null?void 0:w.length)||0);I>0&&this.recordDroppedEvent("before_send","span",I)}const v=S.transaction_info;if(i&&v&&S.transaction!==t.transaction){const I="custom";S.transaction_info={...v,source:I}}return this.sendEvent(S,e),S}).then(null,S=>{throw gn(S)||_n(S)?S:(this.captureException(S,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:S}),hn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
Reason: ${S}`))})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Re&&this.recordDroppedEvent("queue_overflow",e),n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{const[r,s]=e.split(":");return{reason:r,category:s,quantity:n}})}_flushOutcomes(){h&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){h&&p.log("No outcomes to send");return}if(!this._dsn){h&&p.log("No dsn provided, will not send outcomes");return}h&&p.log("Sending outcomes:",t);const e=ki(t,this._options.tunnel&&Pt(this._dsn));this.sendEnvelope(e)}};function Pi(t,e,n,r,s){const{beforeSend:o,ignoreSpans:i,beforeSendTransaction:a}=t,c=ur(t.beforeSendSpan)&&t.beforeSendSpan;let u=e;if(ue(u)&&o){const f=u;return dt(h?"The `beforeSend` callback threw an error, dropping the event:":"",()=>o(f,n),()=>(r("callback_error"),null))}if(Tr(u)){if(c||i){const f=Oi(u);if(i!=null&&i.length&&Qe({description:f.description,op:f.op,attributes:f.data},i))return r("ignored"),null;if(c){const l=rn(f,c);u=yt(e,Ri(l))}if(u.spans){const l=[],d=u.spans;for(const m of d){if(i!=null&&i.length&&Qe({description:m.description,op:m.op,attributes:m.data},i)){Eo(d,m);continue}c?l.push(rn(m,c)):l.push(m)}s(d.length-l.length),u.spans=l}}if(a)return dt(h?"The `beforeSendTransaction` callback threw an error, dropping the event:":"",()=>a(u,n),()=>(r("callback_error"),null))}return u}function ue(t){return t.type===void 0}function Tr(t){return t.type==="transaction"}function $i(t,e){e.debug===!0&&(h?p.enable():B(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Mi(),x().update(e.initialScope);const n=new t(e);return Fi(n),n.init(),n}function Mi(){const t=b();t&&!xi(t)&&B(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function Fi(t){x().setClient(t)}function wr(t,e){const n=t.indexOf("="),r=n===-1?t:t.slice(0,n),s=new URLSearchParams(`${r}=`).keys().next().value;return s!==void 0&&mr(s,e)?`${r}=${hr}`:t}function ji(t,e){if(!(!t||e===!1))return t.split("&").map(n=>wr(n,e)).join("&")}function Ui(t,e){if(!t||e===!1)return;const n=t.indexOf("?");return`${n===-1?"":t.slice(0,n+1)}${(n===-1?t:t.slice(n+1)).split("&").map(r=>r.includes("=")?wr(r,e):r).join("&")}`}function Bi(t,e){const n=t.indexOf("#"),r=n===-1?t:t.slice(0,n),s=n===-1?void 0:t.slice(n+1),o=r.indexOf("?");let i=r;if(o!==-1){const c=ji(r.slice(o+1),e);i=`${r.slice(0,o)}${c?`?${c}`:""}`}const a=s===void 0?void 0:Ui(s,e);return a?`${i}#${a}`:i}function Hi(t){var e;return((e=t??b())==null?void 0:e.getDataCollectionOptions().urlQueryParams)??!0}function nt(t,e){return t===void 0?void 0:Bi(t,Hi(e))}const Wi="thismessage:/";function Gi(t){return"isRelative"in t}function qi(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=e??(n?Wi:void 0);try{if("canParse"in URL&&!URL.canParse(t,r))return;const s=new URL(t,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function qt(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}}function zi(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&o!==-1){const a=t.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}function Yi(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function Ki(t){var n;const e=t?ke(t):(n=b())==null?void 0:n.getDsn();return e?`/${Yi(Pt(e))}`:void 0}function Vi(t){const e=(t!=null&&t.startsWith("./")?t.slice(1):t??"").replace(/\/$/,"");return!e||e.startsWith("/")?e:`/${e}`}function Xi(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Ji(t){return Array.from(new Set(t))}function Qi(t){var r;if((r=t._metadata)!=null&&r.optionsSetByUser)return t;const{integrations:e}=t,n={...t._metadata,optionsSetByUser:Object.keys(t).filter(s=>s!=="_metadata").sort()};return Array.isArray(e)&&(n.integrationsSetByUser=Ji(e.map(s=>s.name))),{...t,_metadata:n,...typeof e=="function"&&{integrations:s=>{const o=new Set(s),i=e(s),a=Array.isArray(i)?i:[i],c=new Set,u=new Set;for(const l of a)c.add(l.name),!o.has(l)&&!l.isDefaultInstance&&u.add(l.name);const f=new Set;for(const l of o)c.has(l.name)||f.add(l.name);return n.integrationsSetByUser=Array.from(u),f.size&&(n.removedDefaultIntegrations=Array.from(f).sort()),a}}}}function Zi(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:Ot})),s.version=Ot)}const ta="sentry-release",ea=100;function G(t,e){const n=b(),r=K();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=ea}=n.getOptions();if(o<=0)return;const i={timestamp:gt(),...t},a=s?dt(h?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":"",()=>B(()=>s(i,e)),()=>null):i;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}const na="FunctionToString",yn=new WeakMap,ra=()=>({name:na,setupOnce(){const t=Function.prototype.toString,e=Function.prototype.call.bind(t),n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);try{Function.prototype.toString=function(){let r;try{yn.has(b())&&n(this,"__sentry_original__")&&(r=Ie(this))}catch{}return e(r??this)}}catch{}},setup(t){yn.set(t,!0)}}),sa=C(ra),oa=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],ia="EventFilters",aa=C((t={})=>{let e;return{name:ia,setup(n){e=Sn(t,n.getOptions())},processEvent(n,r,s){return e||(e=Sn(t,s.getOptions())),ca(n,e)?null:n}}});function Sn(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:oa],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ca(t,e){if(t.type){if(t.type==="transaction"&&fa(t,e.ignoreTransactions))return h&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
Event: ${W(t)}`),!0}else{if(ua(t,e.ignoreErrors))return h&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
Event: ${W(t)}`),!0;if(ha(t))return h&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
Event: ${W(t)}`),!0;if(la(t,e.denyUrls))return h&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
Event: ${W(t)}.
|
|
Url: ${Ct(t)}`),!0;if(!da(t,e.allowUrls))return h&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
Event: ${W(t)}.
|
|
Url: ${Ct(t)}`),!0}return!1}function ua(t,e){return e!=null&&e.length?gr(t).some(n=>_t(n,e)):!1}function fa(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?_t(n,e):!1}function la(t,e){if(!(e!=null&&e.length))return!1;const n=Ct(t);return n?_t(n,e):!1}function da(t,e){if(!(e!=null&&e.length))return!0;const n=Ct(t);return n?_t(n,e):!0}function pa(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ct(t){var e,n,r;try{const s=(r=(n=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(o=>{var i,a,c;return((i=o.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return s?pa(s):null}catch{return h&&p.error(`Cannot extract url for event ${W(t)}`),null}}function ha(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function ma(t,e,n,r,s,o){var a;if(!((a=s.exception)!=null&&a.values)||!o||!D(o.originalException))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Tt(t,e,r,o.originalException,n,s.exception.values,i,0))}function Tt(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(D(r[s])){zt(i,a,r);const u=t(e,r[s]),f=c.length;Yt(u,s,f,a),c=Tt(t,e,n,r[s],s,[u,...c],u,f)}return kr(r)&&r.errors.forEach((u,f)=>{if(c.length<n+1&&D(u)){zt(i,a,r);const l=t(e,u),d=c.length;Yt(l,`errors[${f}]`,d,a),c=Tt(t,e,n,u,s,[l,...c],l,d)}}),_a(r)&&["error","suppressed"].forEach(u=>{const f=r[u];if(c.length<n+1&&D(f)){zt(i,a,r);const l=t(e,f),d=c.length;Yt(l,u,d,a),c=Tt(t,e,n,f,s,[l,...c],l,d)}}),c}function kr(t){return Array.isArray(t.errors)}function _a(t){return"error"in t&&"suppressed"in t}function zt(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...kr(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function Yt(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function ga(t){return D(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function En(t){const e=ya(t.message);return ga(t)?`${e} (${t.__sentry_fetch_url_host__})`:e}function ya(t){if(typeof t=="string")return t;if(t==null)return"";if(it(t))return String(t);if(ht(t)||Array.isArray(t)){const e=cs(t,"");if(e)return e}return we(void 0,t)}const Nt=new Set([]);function Sa(t){const e="console",n=q(e,t);return z(e,ba),n}function Ea(t){for(const e of t)Nt.add(e);return()=>{for(const e of t)Nt.delete(e)}}const bn=new Set;function ba(){"console"in _&&Ln.forEach(function(t){bn.has(t)||!(t in _.console)||(bn.add(t),k(_.console,t,function(e){return Rt[t]=e,function(...n){const r=n[0],s=Rt[t],o=Nt.size&&typeof r=="string"&&_t(r,Nt);o||N("console",{args:n,level:t}),(!o||h&&p.isEnabled())&&(s==null||s.apply(_.console,n))}}))})}function va(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Ia="Dedupe",Ta=()=>{let t;return{name:Ia,processEvent(e){if(e.type)return e;try{if(ka(e,t))return h&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},wa=C(Ta);function ka(t,e){return e?!!(Oa(t,e)||Ra(t,e)):!1}function Oa(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rr(t,e)||!Or(t,e))}function Ra(t,e){const n=vn(e),r=vn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rr(t,e)||!Or(t,e))}function Or(t,e){const n=Me(t),r=Me(e);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Rr(t,e){const n=t.fingerprint,r=e.fingerprint;if(!n||!r)return!n&&!r;try{return n.join("")===r.join("")}catch{return!1}}function vn(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}const Ca="Console",Na=C((t={})=>{const e=new Set(t.levels||Ln);return{name:Ca,setup(n){const r=Sa(({args:s,level:o})=>{b()!==n||!e.has(o)||Da(o,s)});if(n.registerCleanup(r),t.filter){const s=Ea(t.filter);n.registerCleanup(s)}}}});function Da(t,e){const n={category:"console",data:{arguments:e,logger:"console"},level:va(t),message:In(e)};if(t==="assert")if(e[0]===!1){const r=e.slice(1);n.message=r.length>0?`Assertion failed: ${In(r)}`:"Assertion failed",n.data.arguments=r}else return;G(n,{input:e,level:t})}function In(t){return"util"in _&&typeof _.util.format=="function"?_.util.format(...t):us(t," ")}const Aa="ConversationId",xa=()=>({name:Aa,setup(t){t.on("spanStart",e=>{const n=x().getScopeData(),r=K().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=$t(e);if(!(o!=null&&o.startsWith("gen_ai."))&&!i["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;e.setAttribute(js,s)}})}}),La=C(xa),fe=_;function Pa(){if(!("fetch"in fe))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function le(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function $a(){var n;if(typeof EdgeRuntime=="string")return!0;if(!Pa())return!1;if(le(fe.fetch))return!0;let t=!1;const e=fe.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=le(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){h&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ma(t){const e="fetch",n=q(e,t);return z(e,()=>Fa()),n}function Fa(t){pr()&&!$a()||k(_,"fetch",function(e){return new Proxy(e,{apply(n,r,s){const o=new Error,{method:i,url:a}=ja(s),c={args:s,fetchData:{method:i,url:a},startTimestamp:A()*1e3,virtualError:o,headers:Ua(s)};return N("fetch",{...c}),Reflect.apply(n,_,s).then(async u=>(N("fetch",{...c,endTimestamp:A()*1e3,response:u}),u),u=>{var l,d;N("fetch",{...c,endTimestamp:A()*1e3,error:u}),D(u)&&u.stack===void 0&&(u.stack=o.stack,U(u,"framesToPop",1));const f=((l=b())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&D(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(c.fetchData.url,(d=_.location)==null?void 0:d.href).host;m&&(f==="always"?u.message=`${u.message} (${m})`:U(u,"__sentry_fetch_url_host__",m))}catch{}throw u})}})})}function wt(t,e){return At(t)&&!!t[e]}function Tn(t){return typeof t=="string"?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}function ja(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Tn(n),method:wt(r,"method")?String(r.method).toUpperCase():Un(n)&&wt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Tn(e),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}function Ua(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Un(e))return new Headers(e.headers)}catch{}}function Cr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const de=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E=_,Ba=80,H={};try{typeof Node<"u"&&(H.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(H.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,H.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,H.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,H.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(H.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function F(t,e,n){const r=H[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return typeof s=="function"?s.call(t,n):s}function Nr(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=3;let u;const f=Array.isArray(e)?e:e.keyAttrs,l=Array.isArray(e)?void 0:e.maskAttributeFn,d=!Array.isArray(e)&&e.maxStringLength||Ba;for(;n&&o++<r&&(u=Ha(n,f,l),!(u==="html"||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=F(n,"parentNode");return s.reverse().join(a)}catch{return"<unknown>"}}function Ha(t,e,n){const r=[],s=F(t,"tagName");if(!s)return"";if(typeof HTMLElement<"u"&&t instanceof HTMLElement){const i=F(t,"dataset");if(i){if(i.sentryComponent)return n?n("data-sentry-component",i.sentryComponent,t):i.sentryComponent;if(i.sentryElement)return n?n("data-sentry-element",i.sentryElement,t):i.sentryElement}}r.push(s.toLowerCase());const o=e!=null&&e.length?e.filter(i=>F(t,"getAttribute",i)).map(i=>[i,F(t,"getAttribute",i)]):null;if(o!=null&&o.length)o.forEach(([i,a])=>{r.push(`[${i}="${n&&a?n(i,a,t):a}"]`)});else{const i=F(t,"id");i&&r.push(`#${n?n("id",i,t):i}`);const a=F(t,"className");if(a&&$(a)){const c=(n?n("class",a,t):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const i of["aria-label","type","name","title","alt"]){const a=F(t,"getAttribute",i);a&&r.push(`[${i}="${n?n(i,a,t):a}"]`)}return r.join("")}function Wa(t,e,n){E.document&&E.addEventListener(t,e,n)}function Ga(t,e,n){E.document&&E.removeEventListener(t,e,n)}const qa=t=>{var n;const e=E.requestIdleCallback||E.setTimeout;if(((n=E.document)==null?void 0:n.visibilityState)==="hidden")t();else{let r=!1;const s=()=>{r||(t(),r=!0)};Wa("visibilitychange",s,{once:!0,capture:!0}),e(()=>{s(),Ga("visibilitychange",s,{capture:!0})})}};function za(t,e=5){if(!_.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function Ne(){var t;try{return((t=E.document)==null?void 0:t.location.href)??""}catch{return""}}const Dr=new WeakMap;function Ya(t,e=b()){if(!e){de&&p.warn("Cannot set a route provider without a client.");return}de&&Ka(e)&&p.warn("A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve."),Dr.set(e,t)}function Ka(t=b()){return t&&Dr.get(t)}const Va=1e3;let wn,pe,he;function kn(t){return typeof t=="boolean"?t:!!(t!=null&&t.capture)}function Xa(t){const e="dom";q(e,t),z(e,Ja)}function Ja(){if(!E.document)return;const t=N.bind(null,"dom"),e=On(t,!0);E.document.addEventListener("click",e,!1),E.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var s,o;const r=(s=E[n])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(k(r,"addEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=kn(u);if(!l.handler){const y=On(t);l.handler=y,l.capture=d,i.call(this,a,y,l.capture)}const m=l[d?"captureListeners":"bubbleListeners"];m.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(m.add(c),l.listenerCount++))}catch{}return i.call(this,a,c,u)}}),k(r,"removeEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[kn(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(i.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function Qa(t){if(t.type!==pe)return!1;try{if(!t.target||t.target._sentryId!==he)return!1}catch{}return!0}function Za(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function On(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=tc(n);if(Za(n.type,r))return;U(n,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",R());const s=n.type==="keypress"?"input":n.type;Qa(n)||(t({event:n,name:s,global:e}),pe=n.type,he=r?r._sentryId:void 0),clearTimeout(wn),wn=E.setTimeout(()=>{he=void 0,pe=void 0},Va)}}function tc(t){try{return t.target}catch{return null}}let vt;function ec(){return"history"in E&&!!E.history}function Ar(t){const e="history";q(e,t),z(e,nc)}function nc(){if(E.addEventListener("popstate",()=>{const e=E.location.href,n=vt;vt=e,n!==e&&N("history",{from:n,to:e})}),!ec())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=vt,o=rc(String(r));if(vt=o,s===o)return e.apply(this,n);N("history",{from:s,to:o})}return e.apply(this,n)}}k(E.history,"pushState",t),k(E.history,"replaceState",t)}function rc(t){try{return new URL(t,E.location.origin).toString()}catch{return t}}const kt={};function sc(t){const e=kt[t];if(e)return e;let n=E[t];if(le(n))return kt[t]=n.bind(E);const r=E.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){de&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(kt[t]=n.bind(E))}function oc(t){kt[t]=void 0}const ut="__sentry_xhr_v3__";function ic(t){const e="xhr";q(e,t),z(e,ac)}function ac(){if(!E.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let s=new Error;const o=A()*1e3,i=$(r[0])?r[0].toUpperCase():void 0,a=cc(r[1]);if(!i||a===void 0)return e.apply(n,r);n[ut]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[ut];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:A()*1e3,startTimestamp:o,xhr:n,virtualError:s};N("xhr",f),s=void 0,n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,m]=l,y=f[ut];return y&&$(d)&&$(m)&&(y.request_headers[d.toLowerCase()]=m),u.apply(f,l)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[ut];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:A()*1e3,xhr:n};return N("xhr",o),e.apply(n,r)}})}function cc(t){if($(t))return t;try{return t.toString()}catch{}}function uc(t){if(typeof Element>"u")return!1;try{return t instanceof Element}catch{return!1}}const g=_;let me=0;const Rn=[];function xr(t){if(me>0)return!0;const e=t?Rn.findIndex(n=>fc(n,t)):-1;return e===-1?!1:(Rn.splice(e,1),!0)}function fc(t,e){return t.msg===e.msg&&t.url===e.url&&t.line===e.line&&t.column===e.column}function lc(){me++,setTimeout(()=>{me--})}function rt(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const s=t.__sentry_wrapped__;return typeof s=="function"?s:t}if(Ie(t))return t}catch{return t}const r=function(...s){_._sentryWrappedDepth=(_._sentryWrappedDepth||0)+1;try{const o=s.map(i=>rt(i,e));return t.apply(this,o)}catch(o){throw lc(),Ls(i=>{i.addEventProcessor(a=>(e.mechanism&&(Qt(a,void 0),J(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),pi(o)}),o}finally{_._sentryWrappedDepth=(_._sentryWrappedDepth||0)-1}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}Bn(r,t),U(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Cn(t){const e=Ne(),{referrer:n}=g.document||{},{userAgent:r}=g.navigator||{};return{url:e,headers:{...n&&{Referer:nt(n,t)},...r&&{"User-Agent":r}}}}function De(t,e){const n=Ft(t,e),r={type:_c(e),value:gc(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dc(t,e,n,r){var c;const s=(c=b())==null?void 0:c.getOptions().normalizeDepth,o=vc(e),i={__serialized__:Gn(e,s)};if(o)return{exception:{values:[De(t,o)]},extra:i};const a={exception:{values:[{type:xt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ec(e,{isUnhandledRejection:r})}]},extra:i};if(n){const u=Ft(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Kt(t,e){return{exception:{values:[De(t,e)]}}}function Ft(t,e){const n=e.stacktrace||e.stack||"",r=hc(e),s=mc(e);try{return t(n,r,s)}catch{}return[]}const pc=/Minified React error #\d+;/i;function hc(t){return t&&pc.test(t.message)?1:0}function mc(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Lr(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function _c(t){const e=t==null?void 0:t.name;return!e&&Lr(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function gc(t){const e=t==null?void 0:t.message;return Lr(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?En(e.error):En(t):"No error message"}function yc(t,e,n,r){const s=Ae(t,e,(n==null?void 0:n.syntheticException)||void 0,r);return J(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),St(s)}function Sc(t,e,n="info",r,s){const o=_e(t,e,(r==null?void 0:r.syntheticException)||void 0,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),St(o)}function Ae(t,e,n,r,s){var a,c;let o;if(jn(e)&&e.error)return Kt(t,e.error);if(je(e)||Xr(e)){const u=e;if("stack"in e){o=Kt(t,e);const f=(c=(a=o.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=Ft(t,n);l.length&&(f.stacktrace={frames:l},J(o,{synthetic:!0}))}}else{const f=u.name||(je(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;o=_e(t,l,n,r),Qt(o,l)}return o}if(D(e))return Kt(t,e);if(ht(e)||xt(e))return o=dc(t,e,n,s),J(o,{synthetic:!0}),o;const i=String(e);return o=_e(t,i,n,r),Qt(o,i),J(o,{synthetic:!0}),o}function _e(t,e,n,r){const s={};if(r&&n){const o=Ft(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),J(s,{synthetic:!0})}if(be(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Ec(t,{isUnhandledRejection:e}){const n=Qr(t),r=e?"promise rejection":"exception";return jn(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:xt(t)?`Event \`${bc(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bc(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function vc(t){return Object.values(t).find(D)}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Pr(t){const{tunnel:e,dsn:n,transportOptions:r}=t;if(!e)return{tunnel:e,transportOptions:r};if(typeof e=="string")return{tunnel:e,transportOptions:Ic(e)?Nn(r):r};const s=e===!0?{}:e,o=n&&ke(n),i=s.path??(o&&Ki(o));if(!i)return{tunnel:void 0,transportOptions:r};const a=`${Vi(s.basePath)}${i}${s.trailingSlash?"/":""}`;return Et&&p.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Nn(r)}}function Nn(t){return{...t,headers:{"Content-Type":"application/x-sentry-envelope",...t==null?void 0:t.headers}}}function Ic(t){var n,r;const e=qi(t,(n=g.location)==null?void 0:n.href);return e?Gi(e)||e.origin===((r=g.location)==null?void 0:r.origin):!1}var Tc=class extends Li{constructor(t){var a;const e=wc({...t,...Pr(t)}),n=g.SENTRY_SDK_SOURCE||zo();Zi(e,"browser",["browser"],n),super(e),e.routeProvider&&Ya(e.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=e._metadata)!=null&&a.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options,o=()=>{A()},i=[[g.document,"visibilitychange",()=>{o(),g.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[g.document,"freeze",o],[g.document,"resume",o],[g,"pagehide",o],[g,"pageshow",o]];i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",Xi)}eventFromException(t,e){return yc(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Sc(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function wc(t){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t,release:t.release??kc()}}function kc(){var t;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Oc()??((t=g.SENTRY_RELEASE)==null?void 0:t.id)}function Oc(){var t,e,n;return((n=(e=(t=g.document)==null?void 0:t.querySelector)==null?void 0:e.call(t,`meta[name="${ta}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Rc=40;function Cc(t,e=sc("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw oc("fetch"),c}finally{n-=i,r--}}return wi(t,s,Ce(t.bufferSize||Rc))}const Nc=30,Dc=50;function ge(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?Q:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ac=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pc=/at (.+?) ?\(data:(.+?),/,$c=t=>{var s;const e=t.match(Pc);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=Ac.exec(t);if(n){const[,o,i,a]=n;return ge(o,Q,+i,+a)}const r=xc.exec(t);if(r){if(((s=r[2])==null?void 0:s.indexOf("eval"))===0){const a=Lc.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=$r(r[1]||Q,r[2]);return ge(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mc=[Nc,$c],Fc=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Uc=t=>{const e=Fc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=jc.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||Q;return[r,n]=$r(r,n),ge(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Bc=[Dc,Uc],Hc=[Mc,Bc],Wc=Mn(...Hc),$r=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Q,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},It=1024,Gc="Breadcrumbs",qc=(t={})=>{const e={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Gc,setup(n){e.dom&&Xa(Kc(n,e.dom)),e.xhr&&ic(Vc(n)),e.fetch&&Ma(Xc(n)),e.history&&Ar(Jc(n)),e.sentry&&n.on("beforeSendEvent",Yc(n))}}},zc=C(qc);function Yc(t){return function(n){b()===t&&G({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:W(n)},{event:n})}}function Kc(t,e){return function(r){if(b()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>It&&(Et&&p.warn(`\`dom.maxStringLength\` cannot exceed ${It}, but a value of ${a} was configured. Sentry will use ${It} instead.`),a=It),typeof i=="string"&&(i=[i]);try{const u=r.event,f=Qc(u)?u.target:u;s=Nr(f,{keyAttrs:i,maxStringLength:a}),o=za(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),G(c,{event:r.event,name:r.name,global:r.global})}}function Vc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ut];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:ye(a,t),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d={category:"xhr",data:f,type:"http",level:Cr(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),G(d,l)}}function Xc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:{...n.fetchData,url:ye(n.fetchData.url,t)},level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),G(i,o)}else{const o=n.response,i={...n.fetchData,url:ye(n.fetchData.url,t),status_code:o==null?void 0:o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:Cr(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),G(c,a)}}}function Jc(t){return function(n){if(b()!==t)return;let r=n.from,s=n.to;const o=qt(g.location.href);let i=r?qt(r):void 0;const a=qt(s);i!=null&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),G({category:"navigation",data:{from:nt(r),to:nt(s)}})}}function ye(t,e){var r;const n=t===""?(r=g.location)==null?void 0:r.href:void 0;return nt(n?n.split("#")[0]??"":t,e)}function Qc(t){return!!t&&!!t.target}const Zc="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".split(","),tu="BrowserApiErrors",eu=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:tu,setupOnce(){e.setTimeout&&k(g,"setTimeout",Dn),e.setInterval&&k(g,"setInterval",Dn),e.requestAnimationFrame&&k(g,"requestAnimationFrame",ru),e.XMLHttpRequest&&"XMLHttpRequest"in g&&k(XMLHttpRequest.prototype,"send",su);const n=e.eventTarget;n&&(Array.isArray(n)?n:Zc).forEach(r=>ou(r,e))}}},nu=C(eu);function Dn(t){return function(...e){const n=e[0];return e[0]=rt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${j(t)}`}}),t.apply(this,e)}}function ru(t){return function(e){return t.apply(this,[rt(e,{mechanism:{data:{handler:j(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function su(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&k(n,r,function(s){const o={mechanism:{data:{handler:j(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},i=Ie(s);return i&&(o.mechanism.data.handler=j(i)),rt(s,o)})}),t.apply(this,e)}}function ou(t,e){var r,s;const n=(r=g[t])==null?void 0:r.prototype;(s=n==null?void 0:n.hasOwnProperty)!=null&&s.call(n,"addEventListener")&&(k(n,"addEventListener",function(o){return function(i,a,c){try{iu(a)&&(a.handleEvent=rt(a.handleEvent,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&au(this,i,a),o.apply(this,[i,rt(a,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),k(n,"removeEventListener",function(o){return function(i,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&o.call(this,i,u,c)}}catch{}return o.call(this,i,a,c)}}))}function iu(t){return typeof t.handleEvent=="function"}function au(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const cu=C((t={})=>{const e=t.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof g.document>"u"){Et&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ln({ignoreDuration:!0});let n=!1;qa(()=>{n||(Gt(),n=!0)});const r=K();let s=r.getUser();r.addScopeListener(o=>{const i=o.getUser();((s==null?void 0:s.id)!==(i==null?void 0:i.id)||(s==null?void 0:s.ip_address)!==(i==null?void 0:i.ip_address))&&(s=i,n&&Gt())}),e==="route"&&Ar(({from:o,to:i})=>{o!==i&&(ln({ignoreDuration:!0}),Gt(),n=!0)})}}}),uu="CultureContext",fu=()=>({name:uu,preprocessEvent(t){var n;const e=An();e&&(t.contexts={...t.contexts,culture:{...e,...(n=t.contexts)==null?void 0:n.culture}})},processSegmentSpan(t){const e=An();e&&fr(t,{[Ms]:e.locale,[Fs]:e.timezone,[$s]:e.calendar})}}),lu=C(fu);function An(){try{const t=g.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const du="GlobalHandlers",pu=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:du,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(mu(n),xn("onerror")),e.onunhandledrejection&&(_u(n),xn("onunhandledrejection"))}}},hu=C(pu);function mu(t){zr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr(e))return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Su(Ae(n,c||s,void 0,r,!1),o,i,a);u.level="error",yr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _u(t){Kr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr())return;const s=gu(e),o=it(s)?yu(s):Ae(n,s,void 0,r,!0);o.level="error",yr(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function gu(t){if(it(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function yu(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Su(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Eu(e)??Ne(),function:Q,in_app:!0}),t}function xn(t){Et&&p.log(`Global Handler attached: ${t}`)}function Mr(){var t;return((t=b())==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Eu(t){if(!(!$(t)||t.length===0))return t.startsWith("data:")?`<${zi(t,!1)}>`:t}const bu=C(()=>({name:"HttpContext",preprocessEvent(t,e,n){var c;if(!g.navigator&&!g.location&&!g.document)return;const{url:r,headers:s}=Cn(n),o=n.getDataCollectionOptions().httpHeaders.request,i=Object.entries(((c=t.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in s)),a={...se(s,o),...Object.fromEntries(i)};t.request={url:nt(r,n),...t.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(t,e){var a;if(!g.navigator&&!g.location&&!g.document)return;const n=Cn(e),r=se(n.headers,e.getDataCollectionOptions().httpHeaders.request),s=r.Referer,{hostname:o,protocol:i}=g.location||{};fr(t,{[qs]:r["User-Agent"],[Bs]:i==="file:"||o==="localhost"||o==="127.0.0.1"||o==="[::1]"||!!(o!=null&&o.endsWith(".localhost")),...t.is_segment&&{[Gs]:((a=t.attributes)==null?void 0:a[tr])!=="http.client"?nt(n.url):void 0,[`${Us}.referer`]:s?[s]:void 0}})}})),vu="cause",Iu=5,Tu="LinkedErrors",wu=(t={})=>{const e=t.limit||Iu,n=t.key||vu;return{name:Tu,preprocessEvent(r,s,o){const i=o.getOptions();ma(De,i.stackParser,n,e,r,s)}}},ku=C(wu),Ou=/^HTML(\w*)Element$/;function Ru(t){if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uc(t)){const e=Cu(t);if(Ou.test(e))return`[HTMLElement: ${Nr(t)}]`}}function Cu(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function Nu(){return Du()?(Et&&B(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Du(){var n,r;if(typeof g.window>"u")return!1;const t=g;if(t.nw||!((r=(n=t.chrome||t.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const e=Ne();return!(g===g.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}function Au(t){return[aa(),sa(),La(),nu(),zc(),Na(),hu(),ku(),wa(),bu(),lu(),cu()]}function xu(t={}){const e=Qi(t),n=!e.skipBrowserExtensionCheck&&Nu();let r=e.defaultIntegrations==null?Au():e.defaultIntegrations;const s=Io({integrations:e.integrations,defaultIntegrations:r}),o={...e,...Pr(e),enabled:n?!1:e.enabled,stackParser:Gr(e.stackParser||Wc),integrations:s,transport:e.transport||Cc};return rs(Ru),$i(Tc,o)}xu({dsn:"https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3",environment:"production",release:"519433fdf1773a2878bb85aa4b6fbd25ff965159",sendDefaultPii:!1});
|