1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`chessbook-web@8cada333a37d47d6202c119e56d2497560f13100`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`890c7d88-61d6-4bdb-9cc8-6beeb9d1985e`,e._sentryDebugIdIdentifier=`sentry-dbid-890c7d88-61d6-4bdb-9cc8-6beeb9d1985e`)}catch{}})();import{B as e,E as t,O as n,P as r,c as i,l as a,m as o,n as s,o as c}from"./web-pV0rwjaF.js";var l=t(`<div class="toast-container fixed bottom-4 left-1/2 z-[9999] w-[min(24rem,calc(100vw-2rem))] -translate-x-1/2 flex flex-col gap-2 pointer-events-none">`),u=t(`<div><div class="flex-row items-start gap-2"><span class="min-w-0 flex-1"></span><button type=button class="shrink-0 cursor-pointer text-current opacity-70 hover:opacity-100"aria-label="Dismiss notification"><i class="fa fa-xmark">`),d=1,[f,p]=e([],{ownedWrite:!0}),m=e=>{p(t=>t.filter(t=>t.id!==e))},h=(e,t,n)=>{let r=d++;p(n=>[...n,{id:r,level:e,message:t}]),e===`error`&&console.error(`[toast:error] ${typeof t==`string`?t:`[custom toast content]`}`);let i=n?.duration??4e3;return i!==1/0&&window.setTimeout(()=>m(r),i),r},g=(e,t)=>h(`info`,e,t);g.error=(e,t)=>h(`error`,e,t),g.success=(e,t)=>h(`success`,e,t),g.dismiss=m;var ee=e=>e===`success`?`border-green-70 bg-green-95 text-green-30`:e===`error`?`border-red-60 bg-red-90 text-red-30`:`border-gray-60 bg-gray-92 text-gray-21`,te=()=>r(s,{get children(){var e=l();return o(e,r(n,{get each(){return f()},children:e=>(()=>{var t=u(),n=t.firstChild.firstChild,r=n.nextSibling;return o(n,()=>e.message),r._$$click=()=>m(e.id),a(()=>`pointer-events-auto rounded-md border px-3 py-2 text-sm shadow-lg ${ee(e.level)}`,(e,n)=>{c(t,e,n)}),t})()})),e}}
1);i([`click`]);var _=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,v=globalThis,y=`10.70.0`;function b(){return x(v),v}function x(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.70.0`,t[y]=t[`10.70.0`]||{}}function S(e,t,n=v){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[y]=r[`10.70.0`]||{};return i[e]||(i[e]=t())}var ne=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],re=`Sentry Logger `,ie={};function C(e){if(!(`console`in v))return e();let t=v.console,n={},r=Object.keys(ie);r.forEach(e=>{let r=ie[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ae(){fe().enabled=!0}function oe(){fe().enabled=!1}function se(){return fe().enabled}function ce(...e){de(`log`,...e)}function le(...e){de(`warn`,...e)}function ue(...e){de(`error`,...e)}function de(e,...t){_&&se()&&C(()=>{v.console[e](`${re}[${e}]:`,...t)})}function fe(){return _?S(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var w={enable:ae,disable:oe,isEnabled:se,log:ce,warn:le,error:ue},pe=50,me=/\(error: (.*)\)/,he=/captureMessage|captureException/;function ge(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(` 2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=me.test(n)?n.replace(me,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=pe+r)break}}return ve(i.slice(r))}}function _e(e){return Array.isArray(e)?ge(...e):e}function ve(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(T(t).function||``)&&t.pop(),t.reverse(),he.test(T(t).function||``)&&(t.pop(),he.test(T(t).function||``)&&t.pop()),t.slice(0,pe).map(e=>({...e,filename:e.filename||T(t).filename,function:e.function||`?`}))}function T(e){return e[e.length-1]||{}}var E=`<anonymous>`;function ye(e){try{return!e||typeof e!=`function`?E:e.name||E}catch{return E}}function be(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var xe=Object.prototype.toString;function Se(e){switch(xe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return A(e,Error)}}function D(e,t){return xe.call(e)===`[object ${t}]`}function Ce(e){return D(e,`ErrorEvent`)}function we(e){return D(e,`DOMError`)}function Te(e){return D(e,`DOMException`)}function O(e){return D(e,`String`)}function Ee(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function De(e){return e===null||Ee(e)||typeof e!=`object`&&typeof e!=`function`}function Oe(e){return D(e,`Object`)}function ke(e){return typeof e==`object`&&!!e}function Ae(e){return typeof Event<`u`&&A(e,Event)}function je(e){return D(e,`RegExp`)}function k(e){return!!(e?.then&&typeof e.then==`function`)}function A(e,t){try{return e instanceof t}catch{return!1}}function Me(e){return typeof Request<`u`&&A(e,Request)}function Ne(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Pe(i,r);try{e[t]=i}catch{_&&w.log(`Failed to replace method "${t}" in object`,e)}}function j(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{_&&w.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Pe(e,t){try{e.prototype=t.prototype=t.prototype||{},j(e,`__sentry_original__`,t)}catch{}}function Fe(e){return e.__sentry_original__}function Ie(e){if(Se(e))return{message:e.message,name:e.name,stack:e.stack,...Le(e)};if(Ae(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Le(e)}}return e}function Le(e){return ke(e)?Object.fromEntries(Object.entries(e)):{}}function Re(e){let t=Object.keys(Ie(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var M;function N(e){if(M!==void 0)return M?M(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=v;return t in n&&typeof n[t]==`function`?(M=n[t],M(e)):(M=null,e())}function P(){return N(()=>Math.random())}function ze(){return N(()=>Date.now())}var Be=Symbol.for(`sentry.skipNormalization`),Ve=Symbol.for(`sentry.overrideNormalizationDepth`);function He(e){return!!e[Be]}function Ue(e){let t=e[Ve];return typeof t==`number`?t:void 0}var F;function We(e){F=e}function I(e,t=100,n=1/0){try{return L(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ge(e,t=3,n=102400){let r=I(e,t);return Ye(r)>n?Ge(e,t-1,n):r}function L(e,t,n=1/0,r=1/0,i=Xe()){let[a,o]=i;
2if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ke(e,t);if(!s.startsWith(`[object `))return s;if(He(t))return t;let c=Ue(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return L(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ie(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=L(e,t,l-1,r,i),f++}return o(t),d}function Ke(e,t){try{if(F){let e=F(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${ye(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${qe(t)}]`}catch(e){return`**non-serializable** (${e})`}}function qe(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Je(e){return~-encodeURI(e).split(/%..|./).length}function Ye(e){return Je(JSON.stringify(e))}function Xe(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function R(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ze(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];De(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ke(void 0,r))}return n.join(t)}function Qe(e,t,n=!1){return O(e)?je(t)?t.test(e):O(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function $e(e,t=[],n=!1){for(let r of t)if(Qe(e,r,n))return!0;return!1}function et(){let e=v;return e.crypto||e.msCrypto}var tt;function nt(){return P()*16}function z(e=et()){try{if(e?.randomUUID)return N(()=>e.randomUUID()).replace(/-/g,``)}catch{}return tt||=`10000000100040008000100000000000`,tt.replace(/[018]/g,e=>(e^(nt()&15)>>e/4).toString(16))}function rt(e){return e.exception?.values?.[0]}function it(e){let{message:t,event_id:n}=e;if(t)return t;let r=rt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function at(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function ot(e,t){let n=rt(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function st(e){if(ct(e))return!0;try{j(e,`__sentry_captured__`,!0)}catch{}return!1}function ct(e){try{return e.__sentry_captured__}catch{}}var lt=1e3;function B(){return ze()/lt}function ut(){let{performance:e}=v;if(!e?.now||!e.timeOrigin)return B;let t=e.timeOrigin;return()=>(t+N(()=>e.now()))/lt}var dt;function V(){return(dt??=ut())()}function ft(e){let t=V(),n={sid:z(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>mt(n)};return e&&H(n,e),n}function H(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||V(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:z()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function pt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),H(e,n)}function mt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`
2number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function U(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=U(r[e],t[e],n-1));return r}function ht(){return z()}function gt(){return z().substring(16)}function _t(e){try{let t=v.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function vt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var W=`_sentrySpan`;function yt(e,t){t?j(e,W,_t(t)):delete e[W]}function bt(e){return vt(e[W])}var xt=100,G=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ht(),sampleRand:P()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,yt(t,bt(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&H(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Oe(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,yt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ht(),sampleRand:P()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:xt;if(n<=0)return this;let r={timestamp:B(),...e,message:e.message?R(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:bt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=U(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||z();if(!this._client)return _&&w.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||z();if(!this._client)return _&&w.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||z();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(_&&w.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function St(){return S(`defaultCurrentScope`,()=>new G)}function Ct(){return S(`defaultIsolationScope`,()=>new G)}var wt=e=>e instanceof Promise&&!e[Tt],Tt=Symbol(`chained PromiseLike`),Et=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return wt(r)&&wt(e)?r:Dt(e,r)},Dt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Tt]:!0}),t},Ot=class{constructor(e,t){let n;n=e||new G;let r;r=t||new G,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return k(n)?Et(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(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function K(){let e=x(b());return e.stack=e.stack||new Ot(St(),Ct())}function kt(e){return K().withScope(e)}function At(e,t){let n=K();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function jt(e){return K().withScope(()=>e(K().getIsolationScope()))}function Mt(){return{withIsolationScope:jt,withScope:kt,withSetScope:At,withSetIsolationScope:(e,t)=>jt(t),getCurrentScope:()=>K().getScope(),getIsolationScope:()=>K().getIsolationScope()}}function Nt(e){let t=x(e);return t.acs?t.acs:Mt()}function Pt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Ft(e,t){let{value:n,unit:r}=Pt(e)?e:{value:e,unit:void 0},i=Lt(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function It(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Ft(i,t);e&&(n[r]=e)}return n}function Lt(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function q(){return Nt(b()).getCurrentScope()}function J(){return Nt(b()).getIsolationScope()}function Rt(){return S(`globalScope`,()=>new G)}function zt(...e){let t=Nt(b());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Y(){return q().getClient()}function Bt(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||gt()};return n&&(i.parent_span_id=n),i}var Vt=`sentry.op`,Ht=`sentry.origin`,Ut=`sentry.profile_id`,Wt=`sentry.exclusive_time`,Gt=`gen_ai.conversation.id`,Kt=`_sentryScope`,qt=`_sentryIsolationScope`;function Jt(e){let t=e;return{scope:t[Kt],isolationScope:vt(t[qt])}}function Yt(e){let t=Xt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Xt(e){if(e&&(O(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Zt(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Zt(e)}function Zt(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Qt=/^o(\d+)\./,$t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function en(e){return e===`http`||e===`https`}function tn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function nn(e){let t=$t.exec(e);if(!t){C(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return rn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function rn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function an(e){if(!_)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(w.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?en(r)?t&&isNaN(parseInt(t,10))?(w.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(w.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(w.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function on(e){return e.match(Qt)?.[1]}function sn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=on(n)),r}function cn(e){let t=typeof e==`string`?nn(e):rn(e);if(t&&an(t))return t}var ln=!1;function un(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:X(e).parent_span_id,a=Jt(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||gt():t,trace_id:n}}function dn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function fn(e){return typeof e==`number`?pn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?pn(e.getTime()):V()}function pn(e){return e>9999999999?e/1e3:e}function X(e){if(_n(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(gn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:mn(e),start_timestamp:fn(i),timestamp:fn(o)||void 0,status:yn(s),op:r[Vt],origin:r[Ht],links:dn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function mn(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function hn(e){return{...e,attributes:It(e.attributes),links:e.links?.map(e=>({...e,attributes:It(e.attributes)}))}}function gn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function _n(e){return typeof e.getSpanJSON==`function`}function vn(e){let{traceFlags:t}=e.spanContext();return t===1}function yn(e){if(e&&e.code!==0)return e.code===1?`ok`:e.message||`internal_error`}var bn=`_sentryRootSpan`,xn=Sn;function Sn(e){return e[bn]||e}function Cn(){ln||=(C(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function wn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||Y()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var Tn=Symbol.for(`sentry.nonRecordingSpan`);function En(e){return!!e&&e[Tn]===!0}var Dn=`production`,On=`_frozenDsc`;function kn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:sn(t)};return t.emit(`createDsc`,i),i}function An(e,t){let n=t.getPropagationContext();return n.dsc||kn(n.traceId,e)}function jn(e){let t=Y();if(!t)return{};let n=xn(e),r=X(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[On];if(c)return s(c);let l=En(n),u=l&&n.dropReason===`ignored`;if(l&&(!wn(t.getOptions())||u)){let e=Jt(n).scope;if(e){let n={...An(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&Yt(d);if(f)return s(f);let p=kn(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),wn()&&(p.sampled=String(vn(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Jt(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function Mn(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Fn(e,t),r&&Rn(e,r),zn(e,n),In(e,i),Ln(e,a)}function Nn(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;
2Z(e,`extra`,n),Z(e,`tags`,r),Z(e,`attributes`,i),Z(e,`user`,a),Z(e,`contexts`,o),e.sdkProcessingMetadata=U(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Z(e,t,n){e[t]=U(e[t],n,1)}function Pn(e,t){let n=Rt().getScopeData();return e&&Nn(n,e.getScopeData()),t&&Nn(n,t.getScopeData()),n}function Fn(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function In(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ln(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Rn(e,t){e.contexts={trace:un(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:jn(t),...e.sdkProcessingMetadata};let n=X(xn(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function zn(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var Bn=0,Vn=1,Hn=2;function Un(e){return new Gn(t=>{t(e)})}function Wn(e){return new Gn((t,n)=>{n(e)})}var Gn=class e{constructor(e){this._state=Bn,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Bn)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Vn&&e[1](this._value),this._state===Hn&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Bn){if(k(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Vn,e)},r=e=>{t(Hn,e)};try{e(n,r)}catch(e){r(e)}}};function Kn(e,t,n,r=0){try{let i=qn(t,n,e,r);return k(i)?i:Un(i)}catch(e){return Wn(e)}}function qn(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return _&&a===null&&w.log(`Event processor "${i.id||`?`}" dropped event`),k(a)?a.then(e=>qn(e,t,n,r+1)):qn(a,t,n,r+1)}var Q,Jn,Yn,$;function Xn(e){let t=v._sentryDebugIds,n=v._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if($&&r.length===Jn&&i.length===Yn)return $;Jn=r.length,Yn=i.length,$={},Q||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Q?.[r];if(i&&$&&t)$[i[0]]=t,Q&&(Q[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&$&&Q){$[i]=t,Q[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),$}function Zn(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||z(),timestamp:t.timestamp||B()},l=n.integrations||e.integrations.map(e=>e.name);Qn(c,e),tr(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&$n(c,e.stackParser);let u=rr(r,n.captureContext);n.mechanism&&ot(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Pn(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Mn(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Un(c):Kn(m,c,n)).then(e=>(e&&er(e),typeof o==`number`&&o>0?nr(e,o,s):e))}function Qn(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=R(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=R(e.value,a)})}function $n(e,t){let n=Xn(t);
2e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function er(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function tr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function nr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:I(e.data,t,n)}}))},...e.user&&{user:I(e.user,t,n)},...e.contexts&&{contexts:I(e.contexts,t,n)},...e.extra&&{extra:I(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=I(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:I(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=I(e.contexts.flags,3,n)),r}function rr(e,t){if(!t)return e;let n=e?e.clone():new G;return n.update(t),n}function ir(e){if(e)return ar(e)||sr(e)?{captureContext:e}:e}function ar(e){return e instanceof G||typeof e==`function`}var or=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function sr(e){return Object.keys(e).some(e=>or.includes(e))}function cr(e,t){return q().captureException(e,ir(t))}function lr(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return q().captureMessage(e,n,r)}function ur(e,t){return q().captureEvent(e,t)}function dr(e,t){J().setContext(e,t)}function fr(e){J().setTags(e)}function pr(e){J().setUser(e)}function mr(e){let t=J(),{user:n}=Pn(t,q()),{userAgent:r}=v.navigator||{},i=ft({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&H(a,{status:`exited`}),hr(),t.setSession(i),i}function hr(){let e=J(),t=q().getSession()||e.getSession();t&&pt(t),gr(),e.setSession()}function gr(){let e=J(),t=Y(),n=e.getSession();n&&t&&t.captureSession(n)}function _r(e=!1){if(e){hr();return}gr()}export{Ce as $,B as A,I as B,Y as C,zt as D,Bt as E,it as F,j as G,We as H,z as I,Fe as J,Re as K,Qe as L,ot as M,at as N,U as O,st as P,Se as Q,Ze as R,Vt as S,g as St,J as T,ze as U,Ge as V,P as W,we as X,Pe as Y,Te as Z,tn as _,x as _t,dr as a,Me as at,Wt as b,_ as bt,mr as c,ge as ct,Un as d,_e as dt,Ae as et,An as f,ne as ft,hn as g,S as gt,X as h,ie as ht,_r as i,De as it,V as j,H as k,Zn as l,be as lt,Cn as m,w as mt,cr as n,Ee as nt,fr as o,O as ot,Dn as p,C as pt,Ne as q,lr as r,Oe as rt,pr as s,k as st,ur as t,ke as tt,Wn as u,ye as ut,cn as v,y as vt,q as w,Ut as x,te as xt,Gt as y,v as yt,$e as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.