PageSourceSearch

https://www.smartcms.ai/_next/static/chunks/4295.6d2350feda71799d.js

js smartcms.ai collected 2026-10-05 14:59:43 UTC 575,933 bytes, 496 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4295],{547:(e,t,n)=>{"use strict";function r(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=s(l,t),o&&void 0===a&&(a=s(l,o)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?l():r},c}n.d(t,{s:()=>r})},902:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(18213);let i={};try{"undefined"!=typeof Node&&(i.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(i.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,i.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,i.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,i.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(i.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function a(e,t,n){let r=i[t];if(r)try{return r.call(e,n)}catch{}let a=e[t];return"function"==typeof a?a.call(e,n):a}function o(e,t={}){if(!e)return"<unknown>";try{let n,i=e,o=[],s=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&s++<5&&(n=function(e,t){let n=[],i=a(e,"tagName");if(!i)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){let t=a(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(i.toLowerCase());let o=t?.length?t.filter(t=>a(e,"getAttribute",t)).map(t=>[t,a(e,"getAttribute",t)]):null;if(o?.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=a(e,"id");t&&n.push(`#${t}`);let i=a(e,"className");if(i&&(0,r.Kg)(i))for(let e of i.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=a(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(i,u),"html"!==n&&(!(s>1)||!(l+3*o.length+n.length>=c)));)o.push(n),l+=n.length,i=a(i,"parentNode");return o.reverse().join(" > ")}catch{return"<unknown>"}}},2471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let r=n(92385),i=n(98156);function a(e,t,n){let a="",o=(0,i.getRouteRegex)(e),s=o.groups,l=(t!==e?(0,r.getRouteMatcher)(o)(t):"")||n;a=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=s[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(a=a.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return Z},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return y},AdapterOutputType:function(){return a},BARREL_OPTIMIZATION_PREFIX:function(){return z},BLOCKED_PAGES:function(){return U},BUILD_ID_FILE:function(){return $},BUILD_MANIFEST:function(){return v},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return B},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return K},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return er},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return en},COMPILER_INDEXES:function(){return o},COMPILER_NAMES:function(){return i},CONFIG_FILES:function(){return D},DEFAULT_RUNTIME_WEBPACK:function(){return ea},DEFAULT_SANS_SERIF_FONT:function(){return ec},DEFAULT_SERIF_FONT:function(){return eu},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return L},DEV_CLIENT_PAGES_MANIFEST:function(){return C},DYNAMIC_CSS_MANIFEST:function(){return X},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return e_},EXPORT_DETAIL:function(){return T},EXPORT_MARKER:function(){return x},FUNCTIONS_CONFIG_MANIFEST:function(){return S},IMAGES_MANIFEST:function(){return P},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return V},MIDDLEWARE_BUILD_MANIFEST:function(){return G},MIDDLEWARE_MANIFEST:function(){return A},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return J},MODERN_BROWSERSLIST_TARGET:function(){return r.default},NEXT_BUILTIN_DOCUMENT:function(){return W},NEXT_FONT_MANIFEST:function(){return w},PAGES_MANIFEST:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return p},PHASE_TEST:function(){return f},PRERENDER_MANIFEST:function(){return R},REACT_LOADABLE_MANIFEST:function(){return j},ROUTES_MANIFEST:function(){return k},RSC_MODULE_TYPES:function(){return eh},SERVER_DIRECTORY:function(){return M},SERVER_FILES_MANIFEST:function(){return I},SERVER_PROPS_ID:function(){return el},SERVER_REFERENCE_MANIFEST:function(){return Y},STATIC_PROPS_ID:function(){return es},STATIC_STATUS_PAGES:function(){return ep},STRING_LITERAL_DROP_BUNDLE:function(){return H},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return E},SYSTEM_ENTRYPOINTS:function(){return eg},TRACE_OUTPUT_VERSION:function(){return ed},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return N},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return O},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ef},UNDERSCORE_NOT_FOUND_ROUTE:function(){return s},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return g}});let r=n(30943)._(n(41616)),i={client:"client",server:"server",edgeServer:"edge-server"};var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PRERENDER="PRERENDER",e.STATIC_FILE="STATIC_FILE",e.MIDDLEWARE="MIDDLEWARE",e}({});let o={[i.client]:0,[i.server]:1,[i.edgeServer]:2},s="/_not-found",l=""+s+"/page",u="phase-export",c="phase-production-build",p="phase-production-server",d="phase-development-server",f="phase-test",h="phase-info",_="pages-manifest.json",g
1="webpack-stats.json",m="app-paths-manifest.json",y="app-path-routes-manifest.json",v="build-manifest.json",b="app-build-manifest.json",S="functions-config-manifest.json",E="subresource-integrity-manifest",w="next-font-manifest",x="export-marker.json",T="export-detail.json",R="prerender-manifest.json",k="routes-manifest.json",P="images-manifest.json",I="required-server-files.json",C="_devPagesManifest.json",A="middleware-manifest.json",O="_clientMiddlewareManifest.json",N="client-build-manifest.json",L="_devMiddlewareManifest.json",j="react-loadable-manifest.json",M="server",D=["next.config.js","next.config.mjs","next.config.ts"],$="BUILD_ID",U=["/_document","/_app","/_error"],F="public",B="static",H="__NEXT_DROP_CLIENT_FILE__",W="__NEXT_BUILTIN_DOCUMENT__",z="__barrel_optimize__",q="client-reference-manifest",Y="server-reference-manifest",G="middleware-build-manifest",J="middleware-react-loadable-manifest",V="interception-route-rewrite-manifest",X="dynamic-css-manifest",K="main",Q=""+K+"-app",Z="app-pages-internals",ee="react-refresh",et="amp",en="webpack",er="polyfills",ei=Symbol(er),ea="webpack-runtime",eo="edge-runtime-webpack",es="__N_SSG",el="__N_SSP",eu={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ec={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ep=["/500"],ed=1,ef=6e3,eh={client:"client",server:"server"},e_=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eg=new Set([K,ee,et,Q]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5560:(e,t,n)=>{"use strict";n.d(t,{h:()=>function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}})},6997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let r=n(73879),i=n(2018);function a(e,t,n,a){if(!t||t===n)return e;let o=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(o,"/api")||(0,i.pathHasPrefix)(o,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},8173:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>a,xv:()=>i});var r=n(59476);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t=[],n=!1){for(let i of t)if(function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):(0,r.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}(e,i,n))return!0;return!1}},8518:(e,t,n)=>{"use strict";function r(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}}),n(5240),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9278:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});let r=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},10271:(e,t,n)=>{"use strict";n.d(t,{Ef:()=>a,JD:()=>s,i_:()=>r,sy:()=>i,uT:()=>o});let r="sentry.source",i="sentry.sample_rate",a="sentry.previous_trace_sample_rate",o="sentry.op",s="sentry.origin"},10734:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r=n(16355),i=n(15859);let a=e=>e instanceof Promise&&!e[o],o=Symbol("chained PromiseLike");var s=n(59476);class l{constructor(e,t){let n,r;n=e||new i.H,r=t||new i.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,s.Qg)(t)?((e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return a(r)&&a(e)?r:((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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[o]:!0}),t})(e,r)})(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}
1getClient(){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)&&!!this._stack.pop()}}function u(){let e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new l((0,r.BY)("defaultCurrentScope",()=>new i.H),(0,r.BY)("defaultIsolationScope",()=>new i.H))}function c(e){return u().withScope(e)}function p(e,t){let n=u();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return u().withScope(()=>e(u().getIsolationScope()))}function f(e){let t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:p,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>u().getScope(),getIsolationScope:()=>u().getIsolationScope()}}},12504:(e,t,n)=>{"use strict";let r,i,a,o;n.d(t,{li:()=>R,mG:()=>T});var s=n(76639),l=n(20456),u=n(55862),c=n(59476);function p(e){return new d(t=>{t(e)})}class d{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new d((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new d((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i)return void n(r);t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,c.Qg)(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}var f=n(15859),h=n(33783),_=n(67080),g=n(37786),m=n(87198),y=n(90178),v=n(5560),b=n(23065);function S(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;E(e,"extra",n),E(e,"tags",r),E(e,"attributes",i),E(e,"user",a),E(e,"contexts",o),e.sdkProcessingMetadata=(0,v.h)(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function E(e,t,n){e[t]=(0,v.h)(e[t],n,1)}var w=n(8173),x=n(14005);function T(e,t,n,v,E,T){var R,k,P,I,C,A;let{normalizeDepth:O=3,normalizeMaxBreadth:N=1e3}=e,L={...t,event_id:t.event_id||n.event_id||(0,_.eJ)(),timestamp:t.timestamp||(0,x.lu)()},j=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||s.U,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=(0,w.xv)(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,w.xv)(e.value,a))})})(L,e),R=L,(k=j).length>0&&(R.sdk=R.sdk||{},R.sdk.integrations=[...R.sdk.integrations||[],...k]),E&&E.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=h.O._sentryDebugIds,n=h.O._debugIds;if(!t&&!n)return{};let s=t?Object.keys(t):[],l=n?Object.keys(n):[];if(o&&s.length===i&&l.length===a)return o;i=s.length,a=l.length,o={},r||(r={});let u=(t,n)=>{for(let i of t){let t=n[i],a=r?.[i];if(a&&o&&t)o[a[0]]=t,r&&(r[i]=[a[0],t]);else if(t){let n=e(i);for(let e=n.length-1;e>=0;e--){let a=n[e],s=a?.filename;if(s&&o&&r){o[s]=t,r[i]=[s,t];break}}}}};return t&&u(s,t),n&&u(l,n),o}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(L,e.stackParser);let M=function(e,t){if(!t)return e;let n=e?e.clone():new f.H;return n.update(t),n}(v,n.captureContext);n.mechanism&&(0,_.M6)(L,n.mechanism);let D=E?E.getEventProcessors():[],$=function(e,t){let n=(0,m.m6)().getScopeData();return e&&S(n,e.getScopeData()),t&&S(n,t.getScopeData()),n}(T,M),U=[...n.attachments||[],...$.attachments];U.length&&(n.attachments=U);let{fingerprint:F,span:B,breadcrumbs:H,sdkProcessingMetadata:W}=$;(function(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&&"transaction"!==e.type&&(e.transaction=s)})(L,$),B&&function(e,t){e.contexts={trace:(0,b.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,y.k1)(t),...e.sdkProcessingMetadata};let n=(0,b.zU)(t),r=(0,b.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(L,B),P=L,I=F,P.fingerprint=P.fingerprint?Array.isArray(P.fingerprint)?P.fingerprint:[P.fingerprint]:[],I&&(P.fingerprint=P.fingerprint.concat(I
1)),P.fingerprint.length||delete P.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(L,H),C=L,A=W,C.sdkProcessingMetadata={...C.sdkProcessingMetadata,...A};let z=[...D,...$.eventProcessors];return(n.data&&!0===n.data.__sentry__?p(L):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let a=r[i];if(!t||!a)return t;let o=a({...t},n);return(l.T&&null===o&&u.Yz.log(`Event processor "${a.id||"?"}" dropped event`),(0,c.Qg)(o))?o.then(t=>e(t,n,r,i+1)):e(o,n,r,i+1)}(t,n,e,r);return(0,c.Qg)(i)?i:p(i)}catch(e){return new d((t,n)=>{n(e)})}}(z,L,n)).then(e=>(e&&function(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)})}),0===Object.keys(t).length)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})})}(e),"number"==typeof O&&O>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,n)}}))},...e.user&&{user:(0,g.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,g.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,g.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,g.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,g.S8)(e.contexts.flags,3,n)),r}(e,O,N):e)}function R(e){if(e){var t;return(t=e)instanceof f.H||"function"==typeof t||Object.keys(e).some(e=>k.includes(e))?{captureContext:e}:e}}let k=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},13243:(e,t,n)=>{"use strict";let r,i,a,o,s,l,u,c,p,d,f,h,_,g,m,y,v,b,S,E,w,x,T,R,k,P,I,C,A,O,N,L,j,M,D;n.r(t),n.d(t,{BrowserClient:()=>as,ErrorBoundary:()=>mT,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>dE,OpenFeatureIntegrationHook:()=>gy,Profiler:()=>mb,SDK_VERSION:()=>e$,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>ns,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>nl,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>na,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>ni,Scope:()=>tq,WINDOW:()=>ar,addBreadcrumb:()=>aT,addEventProcessor:()=>rj,addIntegration:()=>rW,bindScopeToEmitter:()=>dP,breadcrumbsIntegration:()=>aU,browserApiErrorsIntegration:()=>aB,browserProfilingIntegration:()=>gd,browserSessionIntegration:()=>aY,browserTracingIntegration:()=>uZ,buildLaunchDarklyFlagUsedHandler:()=>gg,captureConsoleIntegration:()=>dA,captureEvent:()=>rb,captureException:()=>ry,captureFeedback:()=>dO,captureMessage:()=>rv,captureReactException:()=>gP,captureRequestError:()=>yV,captureRouterTransitionStart:()=>uq,captureSession:()=>rU,captureUnderscoreErrorException:()=>yX,chromeStackLineParser:()=>ol,close:()=>rO,consoleLoggingIntegration:()=>dD,contextLinesIntegration:()=>h8,continueTrace:()=>oJ,createConsolaReporter:()=>dU,createLangChainCallbackHandler:()=>fz,createReduxEnhancer:()=>mI,createTransport:()=>iA,createUserFeedbackEnvelope:()=>hV,cultureContextIntegration:()=>aV,dedupeIntegration:()=>rQ,defaultRequestInstrumentationOptions:()=>up,defaultStackLineParsers:()=>oy,defaultStackParser:()=>ov,diagnoseSdkConnectivity:()=>gx,elementTimingIntegration:()=>_z,endSession:()=>rD,eventFiltersIntegration:()=>rY,eventFromException:()=>i7,eventFromMessage:()=>i8,exceptionFromError:()=>i2,extraErrorDataIntegration:()=>fq,featureFlagsIntegration:()=>fX,feedbackAsyncIntegration:()=>db,feedbackIntegration:()=>dS,feedbackSyncIntegration:()=>dS,fetchStreamPerformanceIntegration:()=>l2,flush:()=>rA,forceLoad:()=>oR,functionToStringIntegration:()=>rK,geckoStackLineParser:()=>op,getAbsoluteUrl:()=>uP,getActiveSpan:()=>rr,getClient:()=>t7,getCurrentScope:()=>t2,getDefaultIntegrations:()=>oT,getFeedback:()=>ps,getGlobalScope:()=>t4,getIsolationScope:()=>t3,getReplay:()=>_o.M,getRootSpan:()=>rt,getSpanDescendants:()=>re,getSpanStatusFromHttpCode:()=>nC,getTraceData:()=>ua,globalHandlersIntegration:()=>a3,graphqlClientIntegration:()=>_i,growthbookIntegration:()=>gE,httpClientIntegration:()=>h3,httpContextIntegration:()=>a8,inboundFiltersIntegration:()=>rG,init:()=>cr,instrumentAnthropicAiClient:()=>f4,instrumentCreateReactAgent:()=>f9,instrumentGoogleGenAIClient:()=>ho,instrumentLangChainEmbeddings:()=>hl,instrumentLangGraph:()=>he,instrumentOpenAiClient:()=>hf,instrumentOutgoingRequests:()=>ud,instrumentSupabaseClient:()=>hE,isBotUserAgent:()=>u_,isEnabled:()=>rL,isInitialized:()=>rN,lastEventId:()=>rC,launchDarklyIntegration:()=>g_,lazyLoadIntegration:()=>dv,linkedErrorsIntegration:()=>on,logger:()=>U,makeBrowserOfflineTransport:()=>_Q,makeFetchTransport:()=>oE,makeMultiplexedTransport:()=>dx,metrics:()=>F,moduleMetadataIntegration:()=>hB,normalizeStringifyValue:()=>
1ox,onLoad:()=>ok,openFeatureIntegration:()=>gm,opera10StackLineParser:()=>o_,opera11StackLineParser:()=>om,parameterize:()=>hx,reactErrorHandler:()=>gI,reactRouterBrowserTracingIntegration:()=>yD,reactRouterV3BrowserTracingIntegration:()=>mC,reactRouterV4BrowserTracingIntegration:()=>mj,reactRouterV5BrowserTracingIntegration:()=>mM,reactRouterV6BrowserTracingIntegration:()=>yk,reactRouterV7BrowserTracingIntegration:()=>yO,registerSpanErrorInstrumentation:()=>se,registerWebWorker:()=>gk,replayCanvasIntegration:()=>_j,replayIntegration:()=>_o.w,reportPageLoaded:()=>_q,reportingObserverIntegration:()=>hQ,rewriteFramesIntegration:()=>u3,sendFeedback:()=>c7,setActiveSpanInBrowser:()=>_Y,setAttribute:()=>rk,setAttributes:()=>rR,setContext:()=>rS,setConversationId:()=>rI,setCurrentClient:()=>r2,setExtra:()=>rw,setExtras:()=>rE,setHttpStatus:()=>nA,setMeasurement:()=>oD,setTag:()=>rT,setTags:()=>rx,setUser:()=>rP,showReportDialog:()=>hX,spanStreamingIntegration:()=>_J,spanToBaggageHeader:()=>rf,spanToJSON:()=>nK,spanToTraceHeader:()=>nY,spotlightBrowserIntegration:()=>gh,startBrowserTracingNavigationSpan:()=>uv,startBrowserTracingPageLoadSpan:()=>uy,startInactiveSpan:()=>vJ,startNewTrace:()=>oQ,startSession:()=>rM,startSpan:()=>vY,startSpanManual:()=>vG,statsigIntegration:()=>gw,supabaseIntegration:()=>hw,suppressTracing:()=>oX,tanstackRouterBrowserTracingIntegration:()=>mO,thirdPartyErrorFilterIntegration:()=>hH,uiProfiler:()=>hJ,unleashIntegration:()=>gv,updateSpanName:()=>ra,useProfiler:()=>mE,viewHierarchyIntegration:()=>_a,webVitalsIntegration:()=>un,webWorkerIntegration:()=>gT,winjsStackLineParser:()=>of,withActiveSpan:()=>oV,withErrorBoundary:()=>mR,withIsolationScope:()=>t6,withProfiler:()=>mS,withScope:()=>t5,withSentryConfig:()=>ci,withSentryReactRouterV6Routing:()=>yA,withSentryReactRouterV7Routing:()=>yN,withSentryRouting:()=>m$,withServerActionInstrumentation:()=>vV,withStreamedSpan:()=>r5,wrapApiHandlerWithSentryVercelCrons:()=>vK,wrapAppGetInitialPropsWithSentry:()=>v1,wrapCreateBrowserRouter:()=>yU,wrapCreateBrowserRouterV6:()=>yI,wrapCreateBrowserRouterV7:()=>yL,wrapCreateMemoryRouter:()=>yF,wrapCreateMemoryRouterV6:()=>yC,wrapCreateMemoryRouterV7:()=>yj,wrapDocumentGetInitialPropsWithSentry:()=>v2,wrapErrorGetInitialPropsWithSentry:()=>v3,wrapGenerationFunctionWithSentry:()=>v4,wrapGetInitialPropsWithSentry:()=>v5,wrapGetServerSidePropsWithSentry:()=>v6,wrapGetStaticPropsWithSentry:()=>v7,wrapMiddlewareWithSentry:()=>v8,wrapPageComponentWithSentry:()=>be,wrapReactRouterRouting:()=>y$,wrapRouteHandlerWithSentry:()=>bt,wrapServerComponentWithSentry:()=>bn,wrapUseRoutes:()=>yB,wrapUseRoutesV6:()=>yP,wrapUseRoutesV7:()=>yM,zodErrorsIntegration:()=>hG});var $,U={};n.r(U),n.d(U,{debug:()=>hP,error:()=>hA,fatal:()=>hO,fmt:()=>hT,info:()=>hI,trace:()=>hk,warn:()=>hC});var F={};n.r(F),n.d(F,{count:()=>hL,distribution:()=>hM,gauge:()=>hj});let B=globalThis,H="10.67.0";function W(){return z(B),B}function z(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||H,t[H]=t[H]||{}}function q(e,t,n=B){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[H]=r[H]||{};return i[e]||(i[e]=t())}let Y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,G={};function J(e){if(!("console"in B))return e();let t=B.console,n={},r=Object.keys(G);r.forEach(e=>{let r=G[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function V(e,...t){Y&&function(){return Y?q("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&J(()=>{B.console[e](`Sentry Logger [${e}]:`,...t)})}let X={log:function(...e){V("log",...e)},warn:function(...e){V("warn",...e)}};function K(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in B&&"function"==typeof B[t]?(r=B[t])(e):(r=null,e())}function Q(){return K(()=>Math.random())}function Z(){return K(()=>Date.now())}function ee(e=B.crypto||B.msCrypto){try{if(e?.randomUUID)return K(()=>e.randomUUID()).replace(/-/g,"")}catch{}return i||(i="10000000100040008000100000000000"),i.replace(/[018]/g,e=>(e^(15&16*Q())>>e/4).toString(16))}function et(){return Z()/1e3}function en(){return(a??(a=function(){let{performance:e}=B;if(!e?.now||!e.timeOrigin)return et;let t=e.timeOrigin;return()=>(t+K(()=>e.now()))/1e3}()))()}let er=null;function ei(){return null===er&&(er=function(){let{performance:e}=B;if(!e?.now)return;let t=K(()=>e.now()),n=Z(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let i=e.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+t-n)?i:n-t}()),er}let ea=Object.prototype.toString;function eo(e){switch(ea.call(e)){case"[object Error]":case"[object E
1xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}function es(e,t){return ea.call(e)===`[object ${t}]`}function el(e){return es(e,"String")}function eu(e){return"object"==typeof e&&null!==e}function ec(e){return!!(e?.then&&"function"==typeof e.then)}function ep(){return ee().substring(16)}function ed(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Y&&X.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function ef(e){try{let t=B.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function eh(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let e_="_sentrySpan";function eg(e,t){t?ed(e,e_,ef(t)):delete e[e_]}function em(e,t,n=!1){return!!el(e)&&(es(t,"RegExp")?t.test(e):el(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}class ey{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:ee(),sampleRand:Q()}}clone(){let e=new ey;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,eg(e,eh(this[e_])),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&&function(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||en(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ee()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof ey?t.getScopeData():es(t,"Object")?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,eg(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ee(),sampleRand:Q()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:et(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(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:eh(this[e_]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ee();if(!this._client)return Y&&X.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||ee();if(!this._client)return Y&&X.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||ee();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):Y&&X.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}let ev=e=>e instanceof Promise&&!e[eb],eb=Symbol("chained PromiseLike"),eS=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return ev(r)&&ev(e)?r:eE(e,r)},eE=(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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[eb]:!0}),t};class ew{constructor(e,t){let n,r;n=e||new ey,r=t||new ey,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return ec(t)?eS(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function ex(){let e=z(W());return e.stack=e.stack||new ew(q("defaultCurrentScope",()=>new ey),q("defaultIsolationScope",()=>new ey))}function eT(e){return ex().withScope(e)}function eR(e,t){let n=ex();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ek(e){return ex().withScope(()=>e(ex().getIsolationScope()))}function eP(e){let t=z(e);return t.acs?t.acs:{withIsolationScope:ek,withScope:eT,withSetScope:eR,withSetIsolationScope:(e,t)=>ek(t),getCurrentScope:()=>ex().getScope(),getIsolationScope:()=>ex().getIsolationScope()}}function eI(){return eP(W()).getCurrentScope()}function eC(){return eP(W()).getIsolationScope()}function eA(...e){let t=eP(W());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function eO(...e){let t=eP(W());if(2===e.length){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function eN(){return eI().getClient()}let eL=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ej(e,t){return eI().captureException(e,function(e){if(e){var t;return(t=e)instanceof ey||"function"==typeof t||Object.keys(e).some(e=>eL.includes(e))?{captureContext:e}:e}}(t))}function eM(e,t){let n=eI(),r=eN();if(r)if(r.captureCheckIn)return r.captureCheckIn(e,t,n);else Y&&X.warn("Cannot capture check-in. Client does not support sending check-ins.");else Y&&X.warn("Cannot capture check-in. No client defined.");return ee()}async function eD(e){let t=eN();return t?t.flush(e):(Y&&X.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}let e$="10.67.0",eU=globalThis;function eF(){return eB(eU),eU}function eB(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||e$,t[e$]=t[e$]||{}}function eH(e,t,n=eU){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[e$]=r[e$]||{};return i[e]||(i[e]=t())}let eW="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ez=["debug","info","warn","error","log","assert","trace"],eq={};function eY(e){if(!("console"in eU))return e();let t=eU.console,n={},r=Object.keys(eq);r.forEach(e=>{let r=eq[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function eG(){return eV().enabled}function eJ(e,...t){eW&&eG()&&eY(()=>{eU.console[e](`Sentry Logger [${e}]:`,...t)})}function eV(){return eW?eH("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let eX={enable:function(){eV().enabled=!0},isEnabled:eG,log:function(...e){eJ("log",...e)},warn:function(...e){eJ("warn",...e)},error:function(...e){eJ("error",...e)}},eK=Object.prototype.toString;function eQ(e){switch(eK.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return e9(e,Error)}}function eZ(e,t){return eK.call(e)===`[object ${t}]`}function e0(e){return eZ(e,"ErrorEvent")}function e1(e){return eZ(e,"DOMError")}function e2(e){return eZ(e,"String")}function e3(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function e4(e){return null===e||e3(e)||"object"!=typeof e&&"function"!=typeof e}function e5(e){return eZ(e,"Object")}function e6(e){return"object"==typeof e&&null!==e}function e7(e){return"undefined"!=typeof Event&&e9(e,Event)}function e8(e){return!!(e?.then&&"function"==typeof e.then)}function e9(e,t){try{return e instanceof t}catch{return!1}}function te(e){return"undefined"!=typeof Request&&e9(e,Request)}function tt(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&tr(i,r);try{e[t]=i}catch{eW&&eX.log(`Failed to replace method "${t}" in object`,e)}}function tn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{eW&&eX.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function tr(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,tn(e,"__sentry_original__",t)}catch{}}function ti(e){return e.__sentry_original__}function ta(e){if(eQ(e))return{message:e.message,name:e.name,stack:e.stack,...to(e)};
1if(e7(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...to(e)}}return e}function to(e){return e6(e)?Object.fromEntries(Object.entries(e)):{}}function ts(e){if(void 0!==s)return s?s(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in eU&&"function"==typeof eU[t]?(s=eU[t])(e):(s=null,e())}function tl(){return ts(()=>Math.random())}function tu(){return ts(()=>Date.now())}let tc=Symbol.for("sentry.skipNormalization"),tp=Symbol.for("sentry.overrideNormalizationDepth"),td=/\(error: (.*)\)/,tf=/captureMessage|captureException/;function th(...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("\n");for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=td.test(n)?n.replace(td,"$1"):n;if(!o.includes("Error: ")){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=50+r)break}}var o=i.slice(r);if(!o.length)return[];let s=Array.from(o);return/sentryWrapped/.test(t_(s).function||"")&&s.pop(),s.reverse(),tf.test(t_(s).function||"")&&(s.pop(),tf.test(t_(s).function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||t_(s).filename,function:e.function||"?"}))}}function t_(e){return e[e.length-1]||{}}let tg="<anonymous>";function tm(e){try{if(!e||"function"!=typeof e)return tg;return e.name||tg}catch{return tg}}function ty(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{}}}function tv(e,t=100,n=1/0){try{return function e(t,n,r=1/0,i=1/0,a=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[o,s]=a;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let l=tb(t,n);if(!l.startsWith("[object "))return l;if(n[tc])return n;let u=function(e){let t=e[tp];return"number"==typeof t?t:void 0}(n),c=void 0!==u?u:r;if(0===c)return l.replace("object ","");if(o(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,c-1,i,a)}catch{}let p=Array.isArray(n)?[]:{},d=0,f=ta(n);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=i){p[t]="[MaxProperties ~]";break}let n=f[t];p[t]=e(t,n,c-1,i,a),d++}return s(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tb(e,t){try{if(l){let e=l(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${tm(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let e=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}function tS(e,t="[unserializable]"){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return"function"==typeof t?t(e):t}}function tE(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function tw(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=" {snip}"),n}function tx(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];e4(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(tb(void 0,r))}return n.join(t)}function tT(e,t,n=!1){return!!e2(e)&&(eZ(t,"RegExp")?t.test(e):e2(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function tR(e,t=[],n=!1){for(let r of t)if(tT(e,r,n))return!0;return!1}function tk(e=eU.crypto||eU.msCrypto){try{if(e?.randomUUID)return ts(()=>e.randomUUID()).replace(/-/g,"")}catch{}return u||(u="10000000100040008000100000000000"),u.replace(/[018]/g,e=>(e^(15&16*tl())>>e/4).toString(16))}function tP(e){return e.exception?.values?.[0]}function tI(e){let{message:t,event_id:n}=e;if(t)return t;let r=tP(e);return r?r.type&&r.value?`${r.type}: ${r.value}
1`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function tC(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function tA(e,t){let n=tP(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function tO(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{tn(e,"__sentry_captured__",!0)}catch{}return!1}function tN(){return tu()/1e3}function tL(){return(c??(c=function(){let{performance:e}=eU;if(!e?.now||!e.timeOrigin)return tN;let t=e.timeOrigin;return()=>(t+ts(()=>e.now()))/1e3}()))()}let tj=null;function tM(){return null===tj&&(tj=function(){let{performance:e}=eU;if(!e?.now)return;let t=ts(()=>e.now()),n=tu(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let i=e.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+t-n)?i:n-t}()),tj}function tD(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||tL(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:tk()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function t$(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t$(r[e],t[e],n-1));return r}function tU(){return tk().substring(16)}function tF(e){try{let t=eU.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function tB(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let tH="_sentrySpan";function tW(e,t){t?tn(e,tH,tF(t)):delete e[tH]}function tz(e){return tB(e[tH])}class tq{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:tk(),sampleRand:tl()}}clone(){let e=new tq;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,tW(e,tz(this)),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&&tD(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof tq?t.getScopeData():e5(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,tW(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tk(),sampleRand:tl()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:tN(),...e,message:e.message?tE(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:tz(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=t$(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||tk();if(!this._client)return eW&&eX.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||tk();if(!this._client)return eW&&eX.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||tk();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):eW&&eX.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}let tY=e=>e instanceof Promise&&!e[tG],tG=Symbol("chained PromiseLike"),tJ=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return tY(r)&&tY(e)?r:tV(e,r)},tV=(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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[tG]:!0}),t};class tX{constructor(e,t){let n,r;n=e||new tq,r=t||new tq,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return e8(t)?tJ(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function tK(){let e=eB(eF());return e.stack=e.stack||new tX(eH("defaultCurrentScope",()=>new tq),eH("defaultIsolationScope",()=>new tq))}function tQ(e){return tK().withScope(e)}function tZ(e,t){let n=tK();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function t0(e){return tK().withScope(()=>e(tK().getIsolationScope()))}function t1(e){let t=eB(e);return t.acs?t.acs:{withIsolationScope:t0,withScope:tQ,withSetScope:tZ,withSetIsolationScope:(e,t)=>t0(t),getCurrentScope:()=>tK().getScope(),getIsolationScope:()=>tK().getIsolationScope()}}function t2(){return t1(eF()).getCurrentScope()}function t3(){return t1(eF()).getIsolationScope()}function t4(){return eH("globalScope",()=>new tq)}function t5(...e){let t=t1(eF());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function t6(...e){let t=t1(eF());if(2===e.length){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function t7(){return t2().getClient()}function t8(e){let t=p?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||tU()};return r&&(a.parent_span_id=r),a}let t9="production";function ne(e){return new nn(t=>{t(e)})}function nt(e){return new nn((t,n)=>{n(e)})}class nn{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new nn((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new nn((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i)return void n(r);t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(e8(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function nr(e){let t=eU._sentryDebugIds,n=eU._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(_&&r.length===f&&i.length===h)return _;f=r.length,h=i.length,_={},d||(d={});let a=(t,n)=>{for(let r of t){let t=n[r],i=d?.[r];if(i&&_&&t)_[i[0]]=t,d&&(d[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e],a=i?.filename;if(a&&_&&d){_[a]=t,d[r]=[a,t];break}}}}};return t&&a(r,t),n&&a(i,n),_}let ni="sentry.source",na="sentry.sample_rate",no="sentry.previous_trace_sample_rate",ns="sentry.op",nl="sentry.origin",nu="sentry.idle_span_finish_reason",nc="sentry.measurement_unit",np="sentry.measurement_value",nd="sentry.custom_span_name",nf="sentry.profile_id",nh="sentry.exclusive_time",n_="sentry-";function ng(e){let t=function(e){if(e&&(e2(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
1(Object.entries(ny(t)).forEach(([t,n])=>{e[t]=n}),e),{}):ny(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(n_)&&(e[t.slice(n_.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function nm(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${n_}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?i:`${e},${i}`;return a.length>8192?(eW&&eX.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},""):void 0}}function ny(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[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),{})}let nv=/^o(\d+)\./,nb=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function nS(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function nE(e){let t=nb.exec(e);if(!t)return void eY(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",a="",o="",s=""]=t.slice(1),l="",u=s,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return nw({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function nw(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function nx(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};return n.orgId?t=String(n.orgId):r&&(t=function(e){let t=e.match(nv);return t?.[1]}(r)),t}function nT(e){let t="string"==typeof e?nE(e):nw(e);if(t&&function(e){if(!eW)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eX.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(eX.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(eX.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eX.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}function nR(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||t7()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function nk(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),a=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...a};if(!t||"skip-undefined"===t&&void 0===n)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...a}}(i,t);e&&(n[r]=e)}return n}function nP(e){if(!e)return 0;let t=0;for(let[n,r]of Object.entries(e)){t+=2*n.length,t+=2*r.type.length,t+=(r.unit?.length??0)*2;let e=r.value;Array.isArray(e)?t+=nI(e[0])*e.length:e4(e)?t+=nI(e):t+=100}return t}function nI(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:8*("number"==typeof e)}function nC(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}function nA(e,t){e.setAttribute("http.response.status_code",t);let n=nC(t);"unknown_error"!==n.message&&e.setStatus(n)}let nO="_sentryScope",nN="_sentryIsolationScope",nL=Symbol.for("sentry.otelSourceInference"),nj=Symbol.for("sentry.otelSourceExplicitlySet"),nM=Symbol.for("sentry.tracerProviderSpan");function nD(e,t,n){e&&(tn(e,nN,tF(n)),tn(e,nO,t))}function n$(e){return{scope:e[nO],isolationScope:tB(e[nN])}}function nU(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let nF=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function nB(e,t){let n=function(e){let t;if(!e)return;let n=e.match(nF);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=ng(t);if(!n?.traceId)return{traceId:tk(),sampleRand:tl()};let i=function(e,t){let n=nU(t?.sample_rand);if(void 0!==n)return n;let r=nU(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?tl()*r:r+tl()*(1-r):tl()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function nH(e=tk(),t=tU(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function nW(e=tk(),t=tU(),n){return`00-${e}-${t}-${n?"01":"00"}`}let nz=!1;function nq(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:nK(e).parent_span_id,a=n$(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||tU():t,trace_id:n}}function nY(e){let{traceId:t,spanId:n}=e.spanContext();return nH(t,n,n3(e))}function nG(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function nJ(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function nV(e){return"number"==typeof e?nX(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nX(e.getTime()):tL()}function nX(e){return e>0x2540be3ff?e/1e3:e}function nK(e){if(n2(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(n1(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:l}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:nZ(e),start_timestamp:nV(i),timestamp:nV(o)||void 0,status:n4(s),op:r[ns],origin:r[nl],links:nG(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function nQ(e){if(n2(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(n1(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:l}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:nZ(e),start_timestamp:nV(i),end_timestamp:nV(o),is_segment:e===rn(e),status:n5(s),attributes:n6(r,s),links:nJ(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===rn(e)}}function nZ(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function n0(e){return{...e,attributes:nk(e.attributes),links:e.links?.map(e=>({...e,attributes:nk(e.attributes)}))}}function n1(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function n2(e){return"function"==typeof e.getSpanJSON}function n3(e){let{traceFlags:t}=e.spanContext();return 1===t}function n4(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function n5(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function n6(e,t){let n="error"===n5(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}let n7="_sentryChildSpans",n8="_sentryRootSpan";function n9(e,t){let n=e[n8]||e;tn(t,n8,n),e[n7]?e[n7].add(t):tn(e,n7,new Set([t]))}function re(e){let t=new Set;return!function e(n){if(!t.has(n)&&n3(n))for(let r of(t.add(n),n[n7]?Array.from(n[n7]):[]))e(r)}(e),Array.from(t)}let rt=rn;function rn(e){return e[n8]||e}function rr(){let e=t1(eF());return e.getActiveSpan?e.getActiveSpan():tz(t2())}function ri(){nz||(eY(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),nz=!0)}function ra(e,t){e.updateName(t),e.setAttributes({[ni]:"custom",[nd]:t})}let ro=Symbol.for("sentry.nonRecordingSpan");class rs{constructor(e={}){this._traceId=e.traceId||tk(),this._spanId=e.spanId||tU(),this.dropReason=e.dropReason,tn(this,ro,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
1addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function rl(e){return!!e&&!0===e[ro]}let ru="_frozenDsc";function rc(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||t9,release:n.release,public_key:r,trace_id:e,org_id:nx(t)};return t.emit("createDsc",i),i}function rp(e,t){let n=t.getPropagationContext();return n.dsc||rc(n.traceId,e)}function rd(e){let t=t7();if(!t)return{};let n=rt(e),r=nK(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[na]??i[no];function s(e){return("number"==typeof o||"string"==typeof o)&&(e.sample_rate=`${o}`),e}let l=n[ru];if(l)return s(l);let u=rl(n),c=u&&"ignored"===n.dropReason;if(u&&(!nR(t.getOptions())||c)){let e=n$(n).scope;if(e){let n={...rp(t,e)};return c&&(n.sampled="false"),s(n)}}let p=a?.get("sentry.dsc"),d=p&&ng(p);if(d)return s(d);let f=rc(e.spanContext().traceId,t),h=i[ni]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),nR()&&(f.sampled=String(n3(n)),f.sample_rand=a?.get("sentry.sample_rand")??n$(n).scope?.getPropagationContext().sampleRand.toString()),s(f),t.emit("createDsc",f,n),f}function rf(e){return nm(rd(e))}function rh(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;r_(e,"extra",n),r_(e,"tags",r),r_(e,"attributes",i),r_(e,"user",a),r_(e,"contexts",o),e.sdkProcessingMetadata=t$(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function r_(e,t,n){e[t]=t$(e[t],n,1)}function rg(e,t){let n=t4().getScopeData();return e&&rh(n,e.getScopeData()),t&&rh(n,t.getScopeData()),n}let rm=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ry(e,t){return t2().captureException(e,function(e){if(e){var t;return(t=e)instanceof tq||"function"==typeof t||Object.keys(e).some(e=>rm.includes(e))?{captureContext:e}:e}}(t))}function rv(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return t2().captureMessage(e,n,r)}function rb(e,t){return t2().captureEvent(e,t)}function rS(e,t){t3().setContext(e,t)}function rE(e){t3().setExtras(e)}function rw(e,t){t3().setExtra(e,t)}function rx(e){t3().setTags(e)}function rT(e,t){t3().setTag(e,t)}function rR(e){t3().setAttributes(e)}function rk(e,t){t3().setAttribute(e,t)}function rP(e){t3().setUser(e)}function rI(e){t3().setConversationId(e)}function rC(){return t3().lastEventId()}async function rA(e){let t=t7();return t?t.flush(e):(eW&&eX.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function rO(e){let t=t7();return t?t.close(e):(eW&&eX.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function rN(){return!!t7()}function rL(){let e=t7();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function rj(e){t3().addEventProcessor(e)}function rM(e){let t=t3(),{user:n}=rg(t,t2()),{userAgent:r}=eU.navigator||{},i=function(e){let t=tL(),n={sid:tk(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=n,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${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}}}};return e&&tD(n,e),n}({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status==="ok"&&tD(a,{status:"exited"}),rD(),t.setSession(i),i}function rD(){let e,t=t3(),n=t2().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),tD(n,e)),r$(),t.setSession()}function r$(){let e=t3(),t=t7(),n=e.getSession();n&&t&&t.captureSession(n)}function rU(e=!1){if(e)return void rD();r$()}let rF=[];function rB(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function rH(e,t,n){if(n[t.name]){eW&&eX.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,rF.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),rF.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),eW&&eX.log(`Integration installed: ${t.name}`)}function rW(e){let t=t7();if(!t){eW&&eX.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function rz(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}let rq=[/^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$/],rY=(e={})=>{let t;return{name:"EventFilters",setup(n){t=rJ(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=rJ(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&tR(n,t)}(e,t.ignoreTransactions))return eW&&eX.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
2Event: ${tI(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&rz(n).some(e=>tR(e,r)))return eW&&eX.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
3Event: ${tI(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return eW&&eX.warn(`Event dropped due to not having an error message, error type or stacktrace.
4Event: ${tI(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=rV(e);return!!n&&tR(n,t)}(e,t.denyUrls))return eW&&eX.warn(`Event dropped due to being matched by \`denyUrls\` option.
5Event: ${tI(e)}.
6Url: ${rV(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=rV(e);return!n||tR(n,t)}(e,t.allowUrls))return eW&&eX.warn(`Event dropped due to not being matched by \`allowUrls\` option.
7Event: ${tI(e)}.
8Url: ${rV(e)}`),!0}return!1}(n,t)?n:null)}},rG=(e={})=>({...rY(e),name:"InboundFilters"});function rJ(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:rq],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function rV(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return eW&&eX.error(`Cannot extract url for event ${tI(e)}`),null}}let rX=new WeakMap,rK=()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=new Proxy(e,{apply(e,t,n){let r=ti(t),i=t;try{rX.has(t7())&&r&&(i=r)}catch{}return Reflect.apply(e,i,n)}})}catch{}},setup(e){rX.set(e,!0)}}),rQ=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r;if(n=t,(r=e)&&(function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!r0(e,t)&&!!rZ(e,t)&&!0}(n,r)||function(e,t){let n=r1(t),r=r1(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!r0(e,t)&&!!rZ(e,t)}(n,r)))return eW&&eX.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function rZ(e,t){let n=ty(e),r=ty(t);if(!n&&!r)return!0;
8if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function r0(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function r1(e){return e.exception?.values?.[0]}function r2(e){t2().setClient(e)}function r3(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function r4(e,t,n){return t||`${r3(e)}${e.projectId}/envelope/?${function(e,t){let n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}function r5(e){return tn(e,"_streamed",!0),e}function r6(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}function r7(e,t=[]){return[e,t]}function r8(e,t){let[n,r]=e;return[n,[...r,t]]}function r9(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function ie(e,t){return r9(e,(e,n)=>t.includes(n))}function it(e){let t=eB(eU);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function ir(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[it(r),e]:r.push("string"==typeof e?it(e):e)}for(let e of n){let[t,n]=e;if(i(`
9${JSON.stringify(t)}
10`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(tv(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}let ii={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",trace_metric:"metric"};function ia(e){return e in ii?ii[e]:e}function io(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function is(e){eX.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function il(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&tT(e.description,r))return eW&&is(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&tT(e.description,r.name),a=!r.op||e.op&&tT(e.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?tT(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&a&&o)return eW&&is(e),!0}return!1}let iu=0;function ic(e){let t=Math.floor(1e3*e);void 0!==g&&t!==g&&(iu=0);let n=iu;return iu++,g=t,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}function ip(e,t){return t?t5(t,()=>{let n=rr(),r=n?nq(n):t8(t);return[n?rd(n):rp(e,t),r]}):[void 0,void 0]}let id={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var ih=n(87358);function i_(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==ih?ih:0))||function(){let e=eU.process;return e?.type==="renderer"}())}function ig(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function im(e,t){var n;let r=ib(),i=(n=e,ib().get(n));void 0===i?r.set(e,[t]):i.length>=100?(iv(e,i),r.set(e,[t])):r.set(e,[...i,t])}function iy(e,t=t2(),n=im){let r=t?.getClient()??t7();if(!r){eW&&eX.warn("No client available to capture log.");return}let{release:i,environment:a,enableLogs:o=!1,beforeSendLog:s}=r.getOptions();if(!o){eW&&eX.warn("logging option not enabled, log will not be captured.");return}let[,l]=ip(r,t),u={...e.attributes},{user:{id:c,email:p,username:d},attributes:f={}}=rg(t3(),t);ig(u,"user.id",c,!1),ig(u,"user.email",p,!1),ig(u,"user.name",d,!1),ig(u,"sentry.release",i),ig(u,"sentry.environment",a);let{name:h,version:_}=r.getSdkMetadata()?.sdk??{};ig(u,"sentry.sdk.name",h),ig(u,"sentry.sdk.version",_);let g=r.getIntegrationByName("Replay"),m=g?.getReplayId(!0);ig(u,"sentry.replay_id",m),m&&g?.getRecordingMode()==="buffer"&&ig(u,"sentry._internal.replay_is_buffering",!0);let y=e.message;
10if(e3(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let v=tz(t);ig(u,"sentry.trace.parent_span_id",v?.spanContext().spanId);let b={...e,attributes:u};r.emit("beforeCaptureLog",b);let S=s?eY(()=>s(b)):b;if(!S){r.recordDroppedEvent("before_send","log_item",1),eW&&eX.warn("beforeSendLog returned null, log will not be captured.");return}let{level:E,message:w,attributes:x={},severityNumber:T}=S,R=tL(),k=ic(R);n(r,{timestamp:R,level:E,body:iS(String(w)),trace_id:l?.trace_id,severity_number:T??id[E],attributes:function(e){let t={};for(let[n,r]of Object.entries(e)){let e=iS(n);"string"===r.type?t[e]={...r,value:iS(r.value)}:t[e]=r}return t}({...nk(f),...nk(x,!0),[k.key]:k.value})}),r.emit("afterCaptureLog",S)}function iv(e,t){var n;let r=t??(n=e,ib().get(n))??[];if(0===r.length)return;let i=e.getOptions(),a=function(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=nS(r)),r7(a,[function(e,t){let n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...i_()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}(e,i)])}(r,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);ib().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a)}function ib(){return eH("clientToLogBufferMap",()=>new WeakMap)}function iS(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}function iE(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function iw(e,t){var n;let r=iT(),i=(n=e,iT().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(ix(e,i),r.set(e,[t])):r.set(e,[...i,t])}function ix(e,t){var n;let r=t??(n=e,iT().get(n))??[];if(0===r.length)return;let i=e.getOptions(),a=function(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=nS(r)),r7(a,[function(e,t){let n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...i_()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}(e,i)])}(r,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);iT().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a)}function iT(){return eH("clientToMetricBufferMap",()=>new WeakMap)}function iR(e){return"stream"===e.getOptions().traceLifecycle}function ik(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let iP=Symbol.for("SentryBufferFullError");function iI(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return nt(iP);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return ne(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>ik(setTimeout(()=>t(!1),e)))]):n}}}function iC(e,t=tu()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function iA(e,t,n=iI(e.bufferSize||64)){let r={};return{send:function(i){let a=[];if(r9(i,(t,n)=>{let i=ia(n);!function(e,t,n=tu()){return(e[t]||e.all||0)>n}(r,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return Promise.resolve({});let o=r7(i[0],a),s=t=>{if(ie(o,["client_report"])){eW&&eX.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}r9(o,(n,r)=>{e.recordDroppedEvent(t,ia(r))})};return n.add(()=>t({body:ir(o)}).then(e=>(413===e.statusCode?(eW&&eX.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(eW&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eX.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=tu()){let i={...e},a=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,a]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else o?i.all=r+iC(o,r):429===t&&(i.all=r+6e4);return i}(r,e)),e),e=>{throw s("network_error"),eW&&eX.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
10{if(e===iP)return eW&&eX.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}let iO="[Filtered]",iN=["forwarded","-ip","remote-","via","-user"],iL=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],ij=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],iM={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},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},iD="Not capturing exception because it's already been captured.",i$="Discarded session because of missing or non-string release",iU=Symbol.for("SentryInternalError"),iF=Symbol.for("SentryDoNotSendEventError");function iB(e){return{message:e,[iU]:!0}}function iH(e){return{message:e,[iF]:!0}}function iW(e){return e6(e)&&iU in e}function iz(e){return e6(e)&&iF in e}function iq(e,t,n,r,i){let a,o=0,s=!1;e.on(n,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{if((o+=r(t))>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,a=ik(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class iY{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=iI(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?iM:!0===e.sendDefaultPii?{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},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:iN},httpHeaders:{request:{deny:iN},response:{deny:iN}},httpBodies:[],urlQueryParams:{deny:iN},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=nT(e.dsn):eW&&eX.warn("No DSN provided, client will not send events."),this._dsn){let t=r4(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&iq(this,"afterCaptureLog","flushLogs",iK,iv),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&iq(this,"afterCaptureMetric","flushMetrics",iX,ix)}captureException(e,t,n){let r=tk();if(tO(e))return eW&&eX.log(iD),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:tk(),...n},a=e3(e)?e:String(e),o=e4(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=tk();if(t?.originalException&&tO(t.originalException))return eW&&eX.log(iD),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,l=iG(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),l),i.event_id}captureSession(e){this.sendSession(e),tD(e,{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(e){let t=this._transport;
10if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),rH(this,e,this._integrations),t||rB(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||iR(t))return;let n=[],r=[];for(let t of e.spans)if(t.op?.startsWith("gen_ai."))n.push(n0({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||t.start_timestamp,status:t.status&&"ok"!==t.status&&"cancelled"!==t.status?"error":"ok",is_segment:!1,attributes:{...t.data},links:t.links}));else r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...i_()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),r=function(e,t,n,r){let i=io(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);let o=function(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(tu()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:nS(r)},...i&&{trace:i}}}(e,i,r,t);return delete e.sdkProcessingMetadata,r7(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=r8(r,function(e){let t="string"==typeof e.data?it(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));n&&(r=r8(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:n=t9}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){eW&&eX.warn(i$);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){eW&&eX.warn(i$);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=function(e,t,n,r){let i=io(n);return r7({sent_at:new Date(tu()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:nS(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;eW&&eX.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return eW&&eX.error("Error while sending envelope:",e),{}}return eW&&eX.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&rH(e,t,n)}),n}(this,e),rB(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&n)&&(tD(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();
10return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(function(e,t,n,r,i,a){var o,s,l,u,c,p;let{normalizeDepth:d=3,normalizeMaxBreadth:f=1e3}=e,h={...t,event_id:t.event_id||n.event_id||tk(),timestamp:t.timestamp||tN()},_=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||t9,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=tE(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=tE(e.value,a))})})(h,e),o=h,(s=_).length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...s]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=nr(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(h,e.stackParser);let g=function(e,t){if(!t)return e;let n=e?e.clone():new tq;return n.update(t),n}(r,n.captureContext);n.mechanism&&tA(h,n.mechanism);let m=i?i.getEventProcessors():[],y=rg(a,g),v=[...n.attachments||[],...y.attachments];v.length&&(n.attachments=v);let{fingerprint:b,span:S,breadcrumbs:E,sdkProcessingMetadata:w}=y;(function(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&&"transaction"!==e.type&&(e.transaction=s)})(h,y),S&&function(e,t){e.contexts={trace:nq(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rd(t),...e.sdkProcessingMetadata};let n=nK(rt(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(h,S),l=h,u=b,l.fingerprint=l.fingerprint?Array.isArray(l.fingerprint)?l.fingerprint:[l.fingerprint]:[],u&&(l.fingerprint=l.fingerprint.concat(u)),l.fingerprint.length||delete l.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(h,E),c=h,p=w,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...p};let x=[...m,...y.eventProcessors];return(n.data&&!0===n.data.__sentry__?ne(h):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let a=r[i];if(!t||!a)return t;let o=a({...t},n);return(eW&&null===o&&eX.log(`Event processor "${a.id||"?"}" dropped event`),e8(o))?o.then(t=>e(t,n,r,i+1)):e(o,n,r,i+1)}(t,n,e,r);return e8(i)?i:ne(i)}catch(e){return nt(e)}}(x,h,n)).then(e=>(e&&function(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)})}),0===Object.keys(t).length)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})})}(e),"number"==typeof d&&d>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tv(e.data,t,n)}}))},...e.user&&{user:tv(e.user,t,n)},...e.contexts&&{contexts:tv(e.contexts,t,n)},...e.extra&&{extra:tv(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=tv(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:tv(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=tv(e.contexts.flags,3,n)),r}(e,d,f):e)})(i,e,t,n,this,r).then(e=>
10(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...t8(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rp(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=t2(),r=t3()){return eW&&iJ(e)&&eX.log(`Captured error event \`${rz(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{eW&&(iz(e)?eX.log(e.message):iW(e)?eX.warn(e.message):eX.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=iV(e),s=iJ(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:nU(a);if(s&&"number"==typeof c&&tl()>c)return this.recordDroppedEvent("sample_rate","error"),nt(iH(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let p=iG(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),iH("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(e8(e))return e.then(e=>{if(!e5(e)&&null!==e)throw iB(n);return e},e=>{throw iB(`${t} rejected with ${e}`)});if(!e5(e)&&null!==e)throw iB(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!r6(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(iJ(l)&&i)return i(l,r);if(iV(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[nf],exclusive_time:o?.[nh],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&il({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);if(e)l=t$(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[nf]:e.profile_id},...e.exclusive_time&&{[nh]:e.exclusive_time}}}},measurements:e.measurements});else ri()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&il({description:e.description,op:e.op,attributes:e.data},o)){let t=e.parent_span_id,r=e.span_id;if(t)for(let e of n)e.parent_span_id===r&&(e.parent_span_id=t);continue}if(s){let n=s(e);n?t.push(n):(ri(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",p),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw iH(`${u} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(iz(e)||iW(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),iB(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
11Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===iP&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;eW&&eX.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){eW&&eX.log("No outcomes to send");return}if(!this._dsn){eW&&eX.log("No dsn provided, will not send outcomes");return}eW&&eX.log("Sending outcomes:",t);let n=r7((e=this._options.tunnel&&nS(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:tN(),discarded_events:t}]]);this.sendEnvelope(n)}}function iG(e){return"replay_event"===e?"replay":e||"error"}function iJ(e){return void 0===e.type}function iV(e){return"transaction"===e.type}function iX(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+iQ(e.attributes)}function iK(e){let t=0;return e.message&&(t+=2*e.message.length),t+iQ(e.attributes)}function iQ(e){if(!e)return 0;let t=0;
11return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*iZ(e[0]):e4(e)?t+=iZ(e):t+=100}),t}function iZ(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function i0(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function i1(e){return eQ(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function i2(e,t){let n=i4(e,t),r={type:function(e){let t=e?.name;return!t&&i6(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return i6(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?i1(t.error):i1(e):"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function i3(e,t){return{exception:{values:[i2(e,t)]}}}function i4(e,t){var n,r;let i=t.stacktrace||t.stack||"",a=(n=t)&&i5.test(n.message)?1:0,o="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,a,o)}catch{}return[]}let i5=/Minified React error #\d+;/i;function i6(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function i7(e,t,n,r){let i=i9(e,t,n?.syntheticException||void 0,r);return tA(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),ne(i)}function i8(e,t,n="info",r,i){let a=ae(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ne(a)}function i9(e,t,n,r,i){let a;if(e0(t)&&t.error)return i3(e,t.error);if(e1(t)||eZ(t,"DOMException")){if("stack"in t){a=i3(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=i4(e,n);t.length&&(i.stacktrace={frames:t},tA(a,{synthetic:!0}))}}else{let i=t.name||(e1(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;tC(a=ae(e,o,n,r),o)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return eQ(t)?i3(e,t):(e5(t)||e7(t)?tA(a=function(e,t,n,r){let i=t7(),a=i?.getOptions().normalizeDepth,o=Object.values(t).find(e=>e instanceof Error),s={__serialized__:function e(t,n=3,r=102400){let i=tv(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,a)};if(o)return{exception:{values:[i2(e,o)]},extra:s};let l={exception:{values:[{type:e7(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e){let t=Object.keys(ta(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),r=t?"promise rejection":"exception";if(e0(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(e7(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=i4(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),{synthetic:!0}):(tC(a=ae(e,t,n,r),`${t}`,void 0),tA(a,{synthetic:!0})),a)}function ae(e,t,n,r){let i={};if(r&&n){let r=i4(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),tA(i,{synthetic:!0})}if(e3(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function at(){try{return eU.document.location.href}catch{return""}}function an(e,t=5){if(!eU.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){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}let ar=eU,ai=0;function aa(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if(ti(e))return e}catch{return e}let n=function(...n){eU._sentryWrappedDepth=(eU._sentryWrappedDepth||0)+1;try{let r=n.map(e=>aa(e,t));return e.apply(this,r)}catch(e){throw ai++,setTimeout(()=>{ai--}),t5(r=>{r.addEventProcessor(e=>(t.mechanism&&(tC(e,void 0,void 0),tA(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),ry(e)}),e}finally{eU._sentryWrappedDepth=(eU._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}tr(n,e),tn(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function ao(){let e=at(),{referrer:t}=ar.document||{},{userAgent:n}=ar.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class as extends iY{constructor(e){var t;let n=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ar.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});!function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:e$})),i.version=e$)}(n,"browser",["browser"],ar.SENTRY_SDK_SOURCE||"npm"),super(n);let{userInfo:r}=this.getDataCollectionOptions();n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:r?"auto":"never",...n._metadata.sdk.settings});let{sendClientReports:i}=this._options;ar.document&&ar.document.addEventListener("visibilitychange",()=>{"hidden"===ar.document.visibilityState&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",i0)}eventFromException(e,t){return i7(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return i8(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let al={},au={};function ac(e,t){return al[e]=al[e]||[],al[e].push(t),()=>{let n=al[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function ap(e,t){if(!au[e]){au[e]=!0;try{t()}catch(t){eW&&eX.error(`Error while instrumenting ${e}`,t)}}}function ad(e,t){let n=e&&al[e];
11if(n)for(let r of n)try{r(t)}catch(t){eW&&eX.error(`Error while triggering instrumentation handler.
12Type: ${e}
13Name: ${tm(r)}
14Error:`,t)}}let af=new Set([]);function ah(e){let t="console",n=ac(t,e);return ap(t,ag),n}let a_=new Set;function ag(){"console"in eU&&ez.forEach(function(e){!a_.has(e)&&e in eU.console&&(a_.add(e),tt(eU.console,e,function(t){return eq[e]=t,function(...t){let n=t[0],r=eq[e],i=af.size&&"string"==typeof n&&tR(n,af);i||ad("console",{args:t,level:e}),(!i||eW&&eX.isEnabled())&&r?.apply(eU.console,t)}}))})}function am(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ay(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eU))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(am(eU.fetch))return!0;let e=!1,t=eU.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=am(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){eW&&eX.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function av(e,t){let n="fetch",r=ac(n,e);return ap(n,()=>ab(void 0,t)),r}function ab(e,t=!1){(!t||ay())&&tt(eU,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ax(t),method:aw(n,"method")?String(n.method).toUpperCase():te(t)&&aw(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:ax(t),method:aw(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:1e3*tL(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(te(t))return new Headers(t.headers)}catch{}}(n)};return e||ad("fetch",{...o}),t.apply(eU,n).then(async t=>(e?e(t):ad("fetch",{...o,endTimestamp:1e3*tL(),response:t}),t),e=>{ad("fetch",{...o,endTimestamp:1e3*tL(),error:e}),eQ(e)&&void 0===e.stack&&(e.stack=r.stack,tn(e,"framesToPop",1));let t=t7(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:tn(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function aS(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function aE(e){let t;try{t=e.clone()}catch{return}aS(t,()=>{ad("fetch-body-resolved",{endTimestamp:1e3*tL(),response:e})})}function aw(e,t){return e6(e)&&!!e[t]}function ax(e){return"string"==typeof e?e:e?aw(e,"url")?e.url:e.toString?e.toString():"":""}function aT(e,t){let n=t7(),r=t3();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let o={timestamp:tN(),...e},s=i?eY(()=>i(o,t)):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a))}function aR(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function ak(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function aP(e){return"isRelative"in e}function aI(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function aC(e){if(aP(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function aA(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function aO(e){return e.split(/[?#]/,1)[0]}function aN(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(","),o="";if(t&&-1!==a){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${o?`,${o}`:""}`}return e}var aL=n(81304),aj=n(91774),aM=n(71540),aD=n(902);let a$="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,aU=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,a,o,s,l;t.console&&ah((n=e,function(e){if(t7()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:aR(e.level),message:tx(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${tx(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);aT(t,{input:e.args,level:e.level})})),t.dom&&(0,aL.i)((r=e,i=t.dom,function(e){let t,n;if(t7()!==r)return;let a="object"==typeof i?i.serializeAttribute:void 0,o="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;o&&o>1024&&(a$&&eX.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]
14);try{var s;let r=e.event,i=(s=r)&&s.target?r.target:r;t=(0,aD.H)(i,{keyAttrs:a,maxStringLength:o}),n=an(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),aT(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&(0,aj.Mn)((a=e,function(e){if(t7()!==a)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[aj.Er];if(!t||!n||!r)return;let{method:i,url:o,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:o,status_code:s},type:"http",level:ak(s)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),aT(c,u)})),t.fetch&&av((o=e,function(e){if(t7()!==o)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",i,r),aT(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},a={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:i,type:"http",level:ak(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,a),aT(s,a)}})),t.history&&(0,aM._)((s=e,function(e){if(t7()!==s)return;let t=e.from,n=e.to,r=aA(ar.location.href),i=t?aA(t):void 0,a=aA(n);i?.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),aT({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){t7()===l&&aT({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:tI(e)},{event:e})}))}}},aF="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(","),aB=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&tt(ar,"setTimeout",aH),t.setInterval&&tt(ar,"setInterval",aH),t.requestAnimationFrame&&tt(ar,"requestAnimationFrame",aW),t.XMLHttpRequest&&"XMLHttpRequest"in ar&&tt(XMLHttpRequest.prototype,"send",az);let e=t.eventTarget;e&&(Array.isArray(e)?e:aF).forEach(e=>(function(e,t){let n=ar[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(tt(n,"addEventListener",function(n){return function(r,i,a){var o,s,l,u;try{o=i,"function"==typeof o.handleEvent&&(i.handleEvent=aa(i.handleEvent,{mechanism:{data:{handler:tm(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(s=this,l=r,u=i,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),n.apply(this,[r,aa(i,{mechanism:{data:{handler:tm(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),tt(n,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))})(e,t))}}};function aH(e){return function(...t){let n=t[0];return t[0]=aa(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${tm(e)}`}}),e.apply(this,t)}}function aW(e){return function(t){return e.apply(this,[aa(t,{mechanism:{data:{handler:tm(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function az(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&tt(n,e,function(t){let n={mechanism:{data:{handler:tm(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=ti(t);return r&&(n.mechanism.data.handler=tm(r)),aa(t,n)})}),e.apply(this,t)}}var aq=n(77316);let aY=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===ar.document){a$&&eX.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}rM({ignoreDuration:!0});let e=!1;(0,aq.k)(()=>{e||(rU(),e=!0)});let n=t3(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&rU())}),"route"===t&&(0,aM._)(({from:t,to:n})=>{t!==n&&(rM({ignoreDuration:!0}),rU(),e=!0)})}}};var aG=n(69610);function aJ(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}let aV=()=>({name:"CultureContext",preprocessEvent(e){let t=aX();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=aX();t&&aJ(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function aX(){try{let e=ar.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let aK=null;function aQ(e){let t="error";ac(t,e),ap(t,aZ)}function aZ(){aK=eU.onerror,eU.onerror=function(e,t,n,r,i){return ad("error",{column:r,error:i,line:n,msg:e,url:t}),!!aK&&aK.apply(this,arguments)},eU.onerror.__SENTRY_INSTRUMENTED__=!0}let a0=null;function a1(e){let t="unhandledrejection";ac(t,e),ap(t,a2)}function a2(){a0=eU.onunhandledrejection,eU.onunhandledrejection=function(e){return ad("unhandledrejection",e),!a0||a0.apply(this,arguments)},eU.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let a3=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,aQ(e=>{let{stackParser:t,attachStacktrace:r}=a7();if(t7()!==n||ai>0)return;let{msg:i,url:a,line:o,column:s,error:l}=e,u=function(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[];return 0===l.length&&l.push({colno:r,lineno:n,filename:function(e){if(e2(e)&&0!==e.length)return e.startsWith("data:")?`<${aN(e,!1)}>`:e}(t)??at(),function:"?",in_app:!0}),e}(i9(t,l||i,void 0,r,!1),a,o,s);u.level="error",rb(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),a6("onerror")),t.onunhandledrejection&&(r=e,a1(e=>{let{stackParser:t,attachStacktrace:n}=a7();if(t7()!==r||ai>0)return;let i=a4(e),a=e4(i)?a5(i):i9(t,i,void 0,n,!0);a.level="error",rb(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),a6("onunhandledrejection"))}}};function a4(e){if(e4(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function a5(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function a6(e){a$&&eX.log(`Global Handler attached: ${e}`)}function a7(){let e=t7();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let a8=()=>({name:"HttpContext",preprocessEvent(e){if(!ar.navigator&&!ar.location&&!ar.document)return;let t=ao(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[ns];if(!ar.navigator&&!ar.location&&!ar.document)return;let n=ao();aJ(e,{"url.full":"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}});function a9(e){return Array.isArray(e.errors)}function oe(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...a9(n)&&{is_exception_group:!0}
14,...e.mechanism,exception_id:t}}function ot(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let on=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,a){if(!i.exception?.values||!a||!e9(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,n,r,i,a,o,s,l){if(o.length>=r+1)return o;let u=[...o];if(e9(i[a],Error)){oe(s,l,i);let o=t(n,i[a]),c=u.length;ot(o,a,c,l),u=e(t,n,r,i[a],a,[o,...u],o,c)}return a9(i)&&i.errors.forEach((o,c)=>{if(e9(o,Error)){oe(s,l,i);let p=t(n,o),d=u.length;ot(p,`errors[${c}]`,d,l),u=e(t,n,r,o,a,[p,...u],p,d)}}),u}(e,t,r,a.originalException,n,i.exception.values,o,0))}(i2,i.getOptions().stackParser,n,t,e,r)}}};function or(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let oi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,oa=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oo=/\((\S*)(?::(\d+))(?::(\d+))\)/,os=/at (.+?) ?\(data:(.+?),/,ol=[30,e=>{let t=e.match(os);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=oi.exec(e);if(n){let[,e,t,r]=n;return or(e,"?",+t,+r)}let r=oa.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=oo.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ob(r[1]||"?",r[2]);return or(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],ou=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,op=[50,e=>{let t=ou.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=oc.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=ob(n,e),or(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],od=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,of=[40,e=>{let t=od.exec(e);return t?or(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],oh=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o_=[10,e=>{let t=oh.exec(e);return t?or(t[2],t[3]||"?",+t[1]):void 0}],og=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,om=[20,e=>{let t=og.exec(e);return t?or(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],oy=[ol,op],ov=th(...oy),ob=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var oS=n(65087);function oE(e,t=(0,oS.qd)("fetch")){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,oS.y7)("fetch"),e}finally{n-=a,r--}}return iA(e,i,iI(e.bufferSize||40))}let ow=/^HTML(\w*)Element$/;function ox(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(ow.test(t))return`[HTMLElement: ${(0,aD.H)(e)}]`}}function oT(e){return[rG(),rK(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=t2().getScopeData(),n=t3().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=nK(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",r)}})}},aB(),aU(),a3(),on(),rQ(),a8(),aV(),aY()]}function oR(){}function ok(e){e()}let oP="10.67.0";var oI=n(12115);let oC=Object.prototype.toString;function oA(e){return"[object Object]"===oC.call(e)}function oO(e){return!!(e?.then&&"function"==typeof e.then)}let oN="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var oL=n(87358);function oj(e){return eo(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FA
14LLBACK;404"].includes(e.digest)}function oM(e){return eo(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}function oD(e,t,n,r=rr()){let i=r&&rt(r);i&&(eW&&eX.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[np]:t,[nc]:n}))}function o$(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[nc],i=n[np];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function oU(){return eB(eF()).segmentSpanCaptureStrategy}class oF{constructor(e={}){this._traceId=e.traceId||tk(),this._spanId=e.spanId||tU(),this._startTime=e.startTimestamp||tL(),this._links=e.links,this._attributes={},this.setAttributes({[nl]:"manual",[ns]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===ni&&void 0!==t&&!0===this[nL]&&tn(this,nj,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=nV(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[nL]&&this.setAttribute(ni,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[nM];return}this._endTime=nV(e),function(e){if(!eW)return;let{description:t="< unknown name >",op:n="< unknown op >"}=nK(e),{spanId:r}=e.spanContext(),i=rt(e)===e,a=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;eX.log(a)}(this),this._onSpanEnded(),this._frozen=!0===this[nM]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ns],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:n4(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[nl],profile_id:this._attributes[nf],exclusive_time:this._attributes[nh],measurements:o$(this._events),is_segment:this._isStandaloneSpan&&rt(this)===this||void 0,segment_id:this._isStandaloneSpan?rt(this).spanContext().spanId:void 0,links:nG(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===rt(this),status:n5(this._status),attributes:n6(this._attributes,this._status),links:nJ(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;eW&&eX.log("[Tracing] Adding an event to span:",e);let r=oB(t)?t:n||tL(),i=oB(t)?{}:t||{},a={name:e,time:nV(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=t7();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=rt(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=t7();if(!t)return;let n=e[1];if(!n||0===n.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let n=rd(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date(tu()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:nS(r)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=nK(e);return!il({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=nK(e),n=r6(o)?t:o(t);return n||(ri(),t)}:nK,p=[];for(let e of l){let t=c(e);t&&p.push([{type:"span"},t])}return r7(a,p)}([this],e)):(eW&&eX.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=oU();if(e){let n=n$(this).scope||t2();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&iR(e))return void e.emit("afterSegmentSpanEnd",this);let r=n$(this).scope||t2(),i=oU();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!oH(nK(this)))return;this._name||(eW&&eX.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=n$(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of re(this)){var a;if(t===this||(a=t)instanceof oF&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=nK(t);oH(n)&&(e.onSpanCaptured?.(t),i.push(n))}let o=this._attributes[ni];delete this._attributes[nd];let s=!1;
14i.forEach(e=>{delete e.data[nd],e.op?.startsWith("gen_ai.")&&(s=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:l}=nK(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:l}}(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:rd(this),hasGenAiSpans:s},request:r,...o&&{transaction_info:{source:o}}},u=o$(this._events);return u&&Object.keys(u).length&&(eW&&eX.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function oB(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function oH(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function oW(e,t,n=()=>{},r=()=>{}){var i,a,o,s;let l;try{l=e()}catch(e){throw t(e),n(),e}return i=l,a=t,o=n,s=r,e8(i)?tJ(i,e=>{o(),s(e)},e=>{a(e),o()}):(o(),s(i),i)}let oz="__SENTRY_SUPPRESS_TRACING__";function oq(e,t){let n=o2();if(n.startSpan)return n.startSpan(e,t);let r=o1(e),{forceTransaction:i,parentSpan:a,scope:o}=e;return t5(o?.clone(),()=>o5(a)(()=>{let n=t2(),o=o4(n,a),s=t7(),l=e.onlyIfParent&&!o?oZ(n,s):o0({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return o6(l)&&o||tW(n,l),oW(()=>t(l),()=>{let{status:e}=nK(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:2,message:"internal_error"})},()=>{l.end()})}))}function oY(e,t){let n=o2();if(n.startSpanManual)return n.startSpanManual(e,t);let r=o1(e),{forceTransaction:i,parentSpan:a,scope:o}=e;return t5(o?.clone(),()=>o5(a)(()=>{let n=t2(),o=o4(n,a),s=e.onlyIfParent&&!o?oZ(n,t7()):o0({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return o6(s)&&o||tW(n,s),oW(()=>t(s,()=>s.end()),()=>{let{status:e}=nK(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:2,message:"internal_error"})})}))}function oG(e){let t=o2();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=o1(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>t5(e.scope,t):void 0!==r?e=>oV(r,e):e=>e())(()=>{let i=t2(),a=o4(i,r),o=t7();return e.onlyIfParent&&!a?oZ(i,o):o0({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}(e)}let oJ=(e,t)=>{let n=t1(eF());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:r,baggage:i}=e,a=t7(),o=ng(i);return a&&!function(e,t){let n=nx(e);return t&&n&&t!==n?(eX.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!e.getOptions().strictTraceContinuation||(!t||!!n)&&(!!t||!n)||(eX.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}(a,o?.org_id)?oQ(t):t5(e=>{let n=nB(r,i);return e.setPropagationContext(n),tW(e,void 0),t()})};function oV(e,t){let n=o2();return n.withActiveSpan?n.withActiveSpan(e,t):t5(n=>(tW(n,e||void 0),t(n)))}function oX(e){let t=o2();return t.suppressTracing?t.suppressTracing(e):t5(t=>{t.setSDKProcessingMetadata({[oz]:!0});let n=e();return t.setSDKProcessingMetadata({[oz]:void 0}),n})}function oK(e=t2()){let t=o2();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[oz]}function oQ(e){let t=o2();return t.startNewTrace?t.startNewTrace(e):t5(t=>(t.setPropagationContext({traceId:tk(),sampleRand:tl()}),eW&&eX.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),oV(null,e)))}function oZ(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new rs({traceId:e.getPropagationContext().traceId});return nD(n,e,t3()),n}function o0({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i,a=t3();if(!nR()){let t={...a.getPropagationContext(),...r.getPropagationContext()},i=new rs({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&n9(e,i),nD(i,r,a),i}let o=t7();if(function(e,t){let n=e?.getOptions().ignoreSpans;return!!e&&!!iR(e)&&!!n?.length&&il({description:t.name||"",op:t.attributes?.[ns]||t.op,attributes:t.attributes},n)}(o,t)){oK(r)||o?.recordDroppedEvent("ignored","span");
14let t=new rs({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&n9(e,t),nD(t,r,a),t}if(e&&!n)i=function(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=oK(t),s=!o&&n3(e),l=s?new oF({...n,parentSpanId:i,traceId:a,sampled:s}):new rs({traceId:a});n9(e,l),nD(l,t,r);let u=t7();return u&&(iR(u)&&rl(l)&&(rl(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,r,t,a),n9(e,i);else if(e){let n=rd(e),{traceId:o,spanId:s}=e.spanContext(),l=n3(e);tn(i=o3({traceId:o,parentSpanId:s,...t},r,a,l),ru,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};i=o3({traceId:e,parentSpanId:o,...t},r,a,s),n&&tn(i,ru,n)}return!function(e){if(!eW)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=nK(e),{spanId:i}=e.spanContext(),a=n3(e),o=rt(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=nK(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}eX.log(`${l}
15  ${u.join("\n  ")}`)}(i),i}function o1(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=nV(e.startTime),delete n.startTime,n}return t}function o2(){return t1(eF())}function o3(e,t,n,r){let i=t7(),a=i?.getOptions()||{},{name:o=""}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit("beforeSampling",s,{decision:!1});let l=s.parentSampled??r,u=s.spanAttributes,c=t.getPropagationContext(),p=oK(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!nR(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let a=nU(r);if(void 0===a)return eW&&eX.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return eW&&eX.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=n<a;return!o&&eW&&eX.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,a,i]}(a,{name:o,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:nU(c.dsc?.sample_rate)},c.sampleRand),_=new oF({...e,attributes:{[ni]:"custom",[na]:void 0!==f&&h?f:void 0,...u},sampled:d});return d||!i||p||(eW&&eX.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",iR(i)?"span":"transaction")),nD(_,t,n),i&&i.emit("spanStart",_),_}function o4(e,t){if(t)return t;if(null===t)return;let n=tz(e);if(!n)return;let r=t7();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?rt(n):n}function o5(e){return void 0!==e?t=>oV(e,t):e=>e()}function o6(e){return rl(e)&&"ignored"===e.dropReason}let o7={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function o8(e,t={}){let n,r=new Map,i=!1,a="externalFinish",o=!t.disableAutoFinish,s=[],{idleTimeout:l=o7.idleTimeout,finalTimeout:u=o7.finalTimeout,childSpanTimeout:c=o7.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:d=!0}=t,f=t7(),h=t2();if(!f||!nR()){let e=new rs({traceId:h.getPropagationContext().traceId});return nD(e,h,t3()),e}let _=rr(),g=function(e){let t=oG(e);return tW(t2(),t),eW&&eX.log("[Tracing] Started span is an idle span"),t}(e);function m(){n&&(clearTimeout(n),n=void 0)}function y(e){m(),n=setTimeout(()=>{!i&&0===r.size&&o&&(a="idleTimeout",g.end(e))},l)}function v(e){n=setTimeout(()=>{!i&&o&&(a="heartbeatFailed",g.end(e))},c)}
15function b(e){i=!0,r.clear(),s.forEach(e=>e()),tW(h,_);let t=nK(g),{start_timestamp:n}=t;if(!n)return;t.data[nu]||g.setAttribute(nu,a);let o=t.status;o&&"unknown"!==o||g.setStatus({code:1}),eX.log(`[Tracing] Idle span "${t.op}" finished`);let c=re(g).filter(e=>e!==g),p=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),eW&&eX.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=nK(t),i=r<=e,a=n-r<=(u+l)/1e3;if(eW){let e=JSON.stringify(t,void 0,2);i?a||eX.log("[Tracing] Discarding span since it finished after idle span final timeout",e):eX.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&(g[n7]&&g[n7].delete(t),p++)}),p>0&&g.setAttribute("sentry.idle_span_discarded_spans",p)}return g.end=new Proxy(g.end,{apply(e,t,n){if(p&&p(g),rl(t))return;let[r,...i]=n,a=nV(r||tL()),o=re(g).filter(e=>e!==g),s=nK(g);if(!o.length||!d)return b(a),Reflect.apply(e,t,[a,...i]);let l=f.getOptions().ignoreSpans,c=o?.reduce((e,t)=>{let n=nK(t);return!n.timestamp||l&&il({description:n.description,op:n.op,attributes:n.data},l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),h=s.start_timestamp,_=Math.min(h?h+u/1e3:1/0,Math.max(h||-1/0,Math.min(a,c||1/0)));return b(_),Reflect.apply(e,t,[_,...i])}}),s.push(f.on("spanStart",e=>{var t;!(i||e===g||nK(e).timestamp||e instanceof oF&&e.isStandaloneSpan())&&re(g).includes(e)&&(t=e.spanContext().spanId,m(),r.set(t,!0),v(tL()+c/1e3))})),s.push(f.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&y(tL()+l/1e3)}})),s.push(f.on("idleSpanEnableAutoFinish",e=>{e===g&&(o=!0,y(),r.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(g.setStatus({code:2,message:"deadline_exceeded"}),a="finalTimeout",g.end())},u),g}let o9=!1;function se(){o9||(o9=!0,aQ(e),a1(e));function e(){let e=rr(),t=e&&rt(e);if(t){let e="internal_error";eW&&eX.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}}var st=n(97644),sn=n(27778),sr=n(25735),si=n(62037),sa=n(88711),so=n(18213);function ss(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=ss(r[e],t[e],n-1));return r}function sl(){return(0,si.eJ)()}function su(){return(0,si.eJ)().substring(16)}var sc=n(88566),sp=n(83478),sd=n(76016);function sf(e){try{let t=sd.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function sh(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let s_="_sentrySpan";function sg(e,t){t?(0,sp.my)(e,s_,sf(t)):delete e[s_]}function sm(e){return sh(e[s_])}function sy(e,t,n=!1){return!!(0,so.Kg)(e)&&((0,so.gd)(t)?t.test(e):(0,so.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}class sv{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:sl(),sampleRand:(0,sc.hY)()}}clone(){let e=new sv;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,sg(e,sm(this)),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&&function(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||(0,st.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,si.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof sv?t.getScopeData():(0,so.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,sg(this,void 0),this._attachments=[],this.setPropagationContext({traceId:sl(),sampleRand:(0,sc.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,st.lu)(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(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:sm(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ss(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
15captureException(e,t){let n=t?.event_id||(0,si.eJ)();if(!this._client)return sr.T&&sa.Yz.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||(0,si.eJ)();if(!this._client)return sr.T&&sa.Yz.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||(0,si.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):sr.T&&sa.Yz.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let sb=e=>e instanceof Promise&&!e[sS],sS=Symbol("chained PromiseLike");class sE{constructor(e,t){let n,r;n=e||new sv,r=t||new sv,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,so.Qg)(t)?((e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return sb(r)&&sb(e)?r:((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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[sS]:!0}),t})(e,r)})(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function sw(){let e=(0,sn.EU)(),t=(0,sn.Se)(e);return t.stack=t.stack||new sE((0,sn.BY)("defaultCurrentScope",()=>new sv),(0,sn.BY)("defaultIsolationScope",()=>new sv))}function sx(e){return sw().withScope(e)}function sT(e,t){let n=sw();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function sR(e){return sw().withScope(()=>e(sw().getIsolationScope()))}function sk(e){let t=(0,sn.Se)(e);return t.acs?t.acs:{withIsolationScope:sR,withScope:sx,withSetScope:sT,withSetIsolationScope:(e,t)=>sR(t),getCurrentScope:()=>sw().getScope(),getIsolationScope:()=>sw().getIsolationScope()}}function sP(){return sk((0,sn.EU)()).getCurrentScope()}function sI(){return sk((0,sn.EU)()).getIsolationScope()}function sC(...e){let t=sk((0,sn.EU)());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function sA(){return sP().getClient()}let sO="sentry.source",sN="sentry.sample_rate",sL="sentry.op",sj="sentry.origin",sM="sentry.measurement_unit",sD="sentry.measurement_value",s$="sentry.custom_span_name",sU="sentry.exclusive_time",sF="_sentryScope",sB="_sentryIsolationScope",sH=Symbol.for("sentry.otelSourceInference"),sW=Symbol.for("sentry.otelSourceExplicitlySet"),sz=Symbol.for("sentry.tracerProviderSpan");function sq(e,t,n){e&&((0,sp.my)(e,sB,sf(n)),(0,sp.my)(e,sF,t))}function sY(e){return{scope:e[sF],isolationScope:sh(e[sB])}}let sG=!1;function sJ(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function sV(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function sX(e){return"number"==typeof e?sK(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sK(e.getTime()):(0,st.zf)()}function sK(e){return e>0x2540be3ff?e/1e3:e}function sQ(e){if(s2(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(s1(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:l}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:s0(e),start_timestamp:sX(i),timestamp:sX(o)||void 0,status:s4(s),op:r[sL],origin:r[sj],links:sJ(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function sZ(e){if(s2(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(s1(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:l}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:s0(e),start_timestamp:sX(i),end_timestamp:sX(o),is_segment:e===lt(e),status:s5(s),attributes:s6(r,s),links:sV(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===lt(e)}}function s0(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function s1(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function s2(e){return"function"==typeof e.getSpanJSON}function s3(e){let{traceFlags:t}=e.spanContext();return 1===t}function s4(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function s5(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function s6(e,t){let n="error"===s5(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}let s7="_sentryChildSpans",s8="_sentryRootSpan";function s9(e,t){let n=e[s8]||e;(0,sp.my)(t,s8,n),e[s7]?e[s7].add(t):(0,sp.my)(e,s7,new Set([t]))}let le=lt;function lt(e){return e[s8]||e}function ln(){let e=sk((0,sn.EU)());return e.getActiveSpan?e.getActiveSpan():sm(sP())}let lr=sd.O;function li(e,t,n,r=ln()){let i=r&&le(r);i&&(sr.T&&sa.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[sD]:t,[sM]:n}))}function la(e){if(!e||0===e.length)return;let t={};
15return e.forEach(e=>{let n=e.attributes||{},r=n[sM],i=n[sD];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}var lo=n(94451),ls=n(83976),ll=n(18009);function lu(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||sA()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function lc(e){sa.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function lp(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&sy(e.description,r))return sr.T&&lc(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&sy(e.description,r.name),a=!r.op||e.op&&sy(e.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?sy(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));
15if(i&&a&&o)return sr.T&&lc(e),!0}return!1}function ld(e){return"stream"===e.getOptions().traceLifecycle}function lf(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let lh="sentry-";function l_(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[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),{})}let lg=/^o(\d+)\./;function lm(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}let ly=Symbol.for("sentry.nonRecordingSpan");class lv{constructor(e={}){this._traceId=e.traceId||sl(),this._spanId=e.spanId||su(),this.dropReason=e.dropReason,(0,sp.my)(this,ly,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function lb(e){return!!e&&!0===e[ly]}let lS="_frozenDsc";function lE(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:function(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};return n.orgId?t=String(n.orgId):r&&(t=function(e){let t=e.match(lg);return t?.[1]}(r)),t}(t)};return t.emit("createDsc",i),i}function lw(e,t){let n=t.getPropagationContext();return n.dsc||lE(n.traceId,e)}function lx(e){let t=sA();if(!t)return{};let n=le(e),r=sQ(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[sN]??i["sentry.previous_trace_sample_rate"];function s(e){return("number"==typeof o||"string"==typeof o)&&(e.sample_rate=`${o}`),e}let l=n[lS];if(l)return s(l);let u=lb(n),c=u&&"ignored"===n.dropReason;if(u&&(!lu(t.getOptions())||c)){let e=sY(n).scope;if(e){let n={...lw(t,e)};return c&&(n.sampled="false"),s(n)}}let p=a?.get("sentry.dsc"),d=p&&function(e){let t=function(e){if(e&&((0,so.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
15(Object.entries(l_(t)).forEach(([t,n])=>{e[t]=n}),e),{}):l_(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(lh)&&(e[t.slice(lh.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(p);if(d)return s(d);let f=lE(e.spanContext().traceId,t),h=i[sO]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),lu()&&(f.sampled=String(s3(n)),f.sample_rand=a?.get("sentry.sample_rand")??sY(n).scope?.getPropagationContext().sampleRand.toString()),s(f),t.emit("createDsc",f,n),f}function lT(e,t=[]){return[e,t]}function lR(){return(0,sn.Se)((0,sn.EU)()).segmentSpanCaptureStrategy}class lk{constructor(e={}){this._traceId=e.traceId||sl(),this._spanId=e.spanId||su(),this._startTime=e.startTimestamp||(0,st.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[sj]:"manual",[sL]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===sO&&void 0!==t&&!0===this[sH]&&(0,sp.my)(this,sW,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=sX(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[sH]&&this.setAttribute(sO,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[sz];return}this._endTime=sX(e),function(e){if(!sr.T)return;let{description:t="< unknown name >",op:n="< unknown op >"}=sQ(e),{spanId:r}=e.spanContext(),i=le(e)===e,a=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;sa.Yz.log(a)}(this),this._onSpanEnded(),this._frozen=!0===this[sz]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[sL],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:s4(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[sj],profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[sU],measurements:la(this._events),is_segment:this._isStandaloneSpan&&le(this)===this||void 0,segment_id:this._isStandaloneSpan?le(this).spanContext().spanId:void 0,links:sJ(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===le(this),status:s5(this._status),attributes:s6(this._attributes,this._status),links:sV(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;sr.T&&sa.Yz.log("[Tracing] Adding an event to span:",e);let r=lP(t)?t:n||(0,st.zf)(),i=lP(t)?{}:t||{},a={name:e,time:sX(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=sA();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=le(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=sA();if(!t)return;let n=e[1];if(!n||0===n.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let n=lx(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date((0,sc.Wk)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:lm(r)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=sQ(e);return!lp({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=sQ(e),n=o&&"function"==typeof o&&"_streamed"in o&&o._streamed?t:o(t);return n||(sG||((0,sa.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),sG=!0),t)}:sQ,p=[];for(let e of l){let t=c(e);t&&p.push([{type:"span"},t])}return lT(a,p)}([this],e)):(sr.T&&sa.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=lR();if(e){let n=sY(this).scope||sP();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&ld(e))return void e.emit("afterSegmentSpanEnd",this);let r=sY(this).scope||sP(),i=lR();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!lI(sQ(this)))return;this._name||(sr.T&&sa.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=sY(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of function(e){let t=new Set;return!function e(n){if(!t.has(n)&&s3(n))for(let r of(t.add(n),n[s7]?Array.from(n[s7]):[]))e(r)}(e),Array.from(t)}(this)){var a;if(t===this||(a=t)instanceof lk&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=sQ(t);lI(n)&&(e.onSpanCaptured?.(t),i.push(n))}let o=this._attributes[sO];delete this._attributes[s$];let s=!1;
15i.forEach(e=>{delete e.data[s$],e.op?.startsWith("gen_ai.")&&(s=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:l}=sQ(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:l}}(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:lx(this),hasGenAiSpans:s},request:r,...o&&{transaction_info:{source:o}}},u=la(this._events);return u&&Object.keys(u).length&&(sr.T&&sa.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function lP(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function lI(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function lC(e){let t=lN();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=sX(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>sC(e.scope,t):void 0!==r?e=>lA(r,e):e=>e())(()=>{let i=sP(),a=function(e,t){if(t)return t;if(null===t)return;let n=sm(e);if(!n)return;let r=sA();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?le(n):n}(i,r),o=sA();return e.onlyIfParent&&!a?function(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new lv({traceId:e.getPropagationContext().traceId});return sq(n,e,sI()),n}(i,o):function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i,a;let o,s=sI();if(!lu()){let t={...s.getPropagationContext(),...r.getPropagationContext()},i=new lv({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&s9(e,i),sq(i,r,s),i}let l=sA();if(function(e,t){let n=e?.getOptions().ignoreSpans;return!!e&&!!ld(e)&&!!n?.length&&lp({description:t.name||"",op:t.attributes?.[sL]||t.op,attributes:t.attributes},n)}(l,t)){lO(r)||l?.recordDroppedEvent("ignored","span");let t=new lv({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&s9(e,t),sq(t,r,s),t}if(e&&!n)o=function(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=lO(t),s=!o&&s3(e),l=s?new lk({...n,parentSpanId:i,traceId:a,sampled:s}):new lv({traceId:a});s9(e,l),sq(l,t,r);let u=sA();return u&&(ld(u)&&lb(l)&&(lb(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,r,t,s),s9(e,o);else if(e){let n=lx(e),{traceId:a,spanId:l}=e.spanContext(),u=s3(e);i=o=lL({traceId:a,parentSpanId:l,...t},r,s,u),(0,sp.my)(i,lS,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:l}={...s.getPropagationContext(),...r.getPropagationContext()};o=lL({traceId:e,parentSpanId:i,...t},r,s,l),n&&(a=o,(0,sp.my)(a,lS,n))}return!function(e){if(!sr.T)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=sQ(e),{spanId:i}=e.spanContext(),a=s3(e),o=le(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=sQ(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}sa.Yz.log(`${l}
16  ${u.join("\n  ")}`)}(o),o}({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}(e)}function lA(e,t){let n=lN();return n.withActiveSpan?n.withActiveSpan(e,t):sC(n=>(sg(n,e||void 0),t(n)))}function lO(e=sP()){let t=lN();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function lN(){return sk((0,sn.EU)())}function lL(e,t,n,r){let i=sA(),a=i?.getOptions()||{},{name:o=""}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit("beforeSampling",s,{decision:!1});let l=s.parentSampled??r,u=s.spanAttributes,c=t.getPropagationContext(),p=lO(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!lu(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let a=lf(r);if(void 0===a)return sr.T&&sa.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return sr.T&&sa.Yz.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=n<a;return!o&&sr.T&&sa.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,a,i]}(a,{name:o,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:lf(c.dsc?.sample_rate)},c.sampleRand),_=new lk({...e,attributes:{[sO]:"custom",[sN]:void 0!==f&&h?f:void 0,...u},sampled:d});return d||!i||p||(sr.T&&sa.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",ld(i)?"span":"transaction")),sq(_,t,n),i&&i.emit("spanStart",_),_}var lj=n(59101);function lM(e){return"number"==typeof e&&isFinite(e)}function lD(e,t,n,{...r}){let i=sQ(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),lA(e,()=>{let e=lC({startTime:t,...r});return e&&e.end(n),e})}function l$(e){let t,n=sA();if(!n)return;let{name:r,transaction:i,attributes:a,startTime:o}=e,{release:s,environment:l}=n.getOptions(),{userInfo:u}=n.getDataCollectionOptions(),c=n.getIntegrationByName("Replay"),p=c?.getReplayId(),d=sP(),f=d.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch{}return lC({name:r,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":lo.j.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a},startTime:o,experimental:{standalone:!0}})}function lU(){return lo.j.addEventListener&&lo.j.performance}function lF(e){return e/1e3}function lB(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function lH(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}let a=e=>{("pagehide"===e.type||lo.j.document?.visibilityState==="hidden")&&i("pagehide")};(0,lj.d)("visibilitychange",a,{capture:!0,once:!0}),(0,lj.d)("pagehide",a,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e,s()})}function lW(e){return null!=e&&e>0&&e<=6e4}function lz(e){return e?(((0,st.k3)()||performance.timeOrigin)+e)/1e3:e}function lq(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}
16return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,st.k3)()||lU()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":lz(e.redirectStart),"http.request.redirect_end":lz(e.redirectEnd),"http.request.worker_start":lz(e.workerStart),"http.request.fetch_start":lz(e.fetchStart),"http.request.domain_lookup_start":lz(e.domainLookupStart),"http.request.domain_lookup_end":lz(e.domainLookupEnd),"http.request.connect_start":lz(e.connectStart),"http.request.secure_connection_start":lz(e.secureConnectionStart),"http.request.connection_end":lz(e.connectEnd),"http.request.request_start":lz(e.requestStart),"http.request.response_start":lz(e.responseStart),"http.request.response_end":lz(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}var lY=n(26275),lG=n(82889),lJ=n(37571);let lV=0,lX={};function lK(){y=void 0,v=void 0,lX={}}function lQ(e,t,n,r,i=n){var a;let o=t["secureConnection"===(a=n)?"connectEnd":"fetch"===a?"domainLookupStart":`${a}End`],s=t[`${n}Start`];s&&o&&lD(e,r+lF(s),r+lF(o),{op:`browser.${i}`,name:t.name,attributes:{[sj]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let lZ=new WeakMap,l0=new WeakMap,l1=["text/event-stream","application/x-ndjson","application/stream+json"],l2=()=>({name:"FetchStreamPerformance",setup(){!function(e){let t="fetch-body-resolved";ac(t,e),ap(t,()=>ab(aE))}(e=>{if(e.response){let t=lZ.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=l0.get(e.response);n&&clearTimeout(n)}}}),av(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!l1.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=aI(n),a=n.startsWith("data:")?aN(n):i?aC(i):n,o=oG({name:`${r} ${a}`,startTime:e.endTimestamp,attributes:{url:aN(n),"http.method":r,type:"fetch",[ns]:"http.client.stream",[nl]:"auto.http.browser.stream"}});lZ.set(e.response,o);let s=setTimeout(()=>{o.isRecording()&&o.end()},9e4);l0.set(e.response,s)}})}});var l3=n(87358);function l4(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==l3?l3:0))||function(){let e=sd.O.process;return e?.type==="renderer"}())}let l5=[],l6=new Map,l7=new Map,l8={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},l9=({metric:e})=>{if(void 0==e.value)return;let t=lF(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&l8[t.name]);if(!n)return;let{interactionId:r}=n,i=l8[n.name],a=lF((0,st.k3)()+n.startTime),o=ln(),s=o?le(o):void 0,l=null!=r?l6.get(r):void 0,u=l?.span||s,c=u?sQ(u).description:sP().getScopeData().transactionName,p=l$({name:l?.elementName||(0,aD.H)(n.target),transaction:c,attributes:{[sj]:"auto.http.browser.inp",[sL]:`ui.interaction.${i}`,[sU]:n.duration},startTime:a});p&&(p.addEvent("inp",{[sM]:"millisecond",[sD]:e.value}),p.end(a+t))};function ue(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:l,startTime:u,endTime:c}=e,p=sP().getScopeData().transactionName,d={[sj]:r,[sL]:n,[sU]:0,[`browser.web_vital.${i}.value`]:a,[aG.zNS]:p,[aG.suP]:p,"user_agent.original":lo.j.navigator?.userAgent,...o};s&&sZ(s).attributes?.[sL]==="pageload"&&(d["sentry.pageload.span_id"]=s.spanContext().spanId),l&&(d[`browser.web_vital.${i}.report_event`]=l);let f=lC({name:t,attributes:d,startTime:u,parentSpan:s});f&&f.end(c??u)}let ut="WebVitals",un=(e={})=>{let t=new Set(e.ignore??[]);return{name:ut,setup(n){let r=iR(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has("cls")?void 0:i||!1,s=r||t.has("lcp")?void 0:a||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=lU();if(r&&(0,st.k3)()){r.mark&&lo.j.performance.mark("sentry-tracing-init");let i=t?function(e){let t,n=0;if(!lB("largest-contentful-paint"))return;let r=(0,ll.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&lW(e.value)&&(n=e.value,t=r)},!0);lH(e,(e,i)=>{(function(e,t,n,r){if(!lW(e))return;ls.T&&sa.Yz.log(`Sending LCP span (${e})`);let i=lF(((0,st.k3)()||0)+(t?.startTime||0)),a=sP().getScopeData().transactionName,o=t?(0,aD.H)(t.element):"Largest contentful paint",s={[sj]:"auto.http.browser.lcp",[sL]:"ui.webvital.lcp",[sU]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=(0,aD.H)(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=l$({name:o,transaction:a,attributes:s,startTime:i});l&&(l.addEvent("lcp",{[sM]:"millisecond",[sD]:e}),l.end(i))})(n,t,i,e),r()})}(n):!1===t?(0,ll.Pt)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&lW(e.value)&&(lX.lcp={value:e.value,unit:"millisecond"},y=t)},!0):void 0,a=e?function(e){let t,n=0;if(!lB("layout-shift"))return;let r=(0,ll.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);lH(e,(e,i)=>{(function(e,t,n,r){ls.T&&sa.Yz.log(`Sending CLS span (${e})`);let i=t?lF(((0,st.k3)()||0)+t.startTime):(0,st.zf)(),a=sP().getScopeData().transactionName,o=t?(0,aD.H)(t.sources[0]?.node):"Layout shift",s={[sj]:"auto.http.browser.cls",[sL]:"ui.webvital.cls",[sU]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};
16t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=(0,aD.H)(e.node)});let l=l$({name:o,transaction:a,attributes:s,startTime:i});l&&(l.addEvent("cls",{[sM]:"",[sD]:e}),l.end(i))})(n,t,i,e),r()})}(n):!1===e?(0,ll.a9)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(lX.cls={value:e.value,unit:""},v=t)},!0):void 0,o=(0,ll.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(lX.ttfb={value:e.value,unit:"millisecond"})}),s=(0,ll.wv)("paint",({entries:e})=>{let t=(0,lJ.N)();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(lX.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(lX.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",e=>{u.add(e)}),n.on("spanEnd",e=>{u.delete(e)&&(l(),function(e,t){let n=(0,st.k3)();if(!lU()?.getEntries||!n)return lK();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=lF(n);if("pageload"===sQ(e).op){if(function(e){let t=(0,lG.z)(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(lX),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),ls.T&&sa.Yz.log("Setting web vital attribute",{[i]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{lX[e]&&t(e,lX[e].value)}),lX["ttfb.requestTime"]&&t("ttfb.requestTime",lX["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var s,l;i||delete lX.cls,a||delete lX.lcp,Object.entries(lX).forEach(([t,n])=>{li(t,n.value,n.unit,e)}),s=e,l=t,y&&l.recordLcpOnPageloadSpan&&(y.element&&s.setAttribute("lcp.element",(0,aD.H)(y.element)),y.id&&s.setAttribute("lcp.id",y.id),y.url&&s.setAttribute("lcp.url",y.url.trim().slice(0,200)),null!=y.loadTime&&s.setAttribute("lcp.loadTime",y.loadTime),null!=y.renderTime&&s.setAttribute("lcp.renderTime",y.renderTime),s.setAttribute("lcp.size",y.size)),v?.sources&&l.recordClsOnPageloadSpan&&v.sources.forEach((e,t)=>s.setAttribute(`cls.source.${t+1}`,(0,aD.H)(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",o),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",(0,lY.b)())}lK()}(e,{recordClsOnPageloadSpan:!1===o,recordLcpOnPageloadSpan:!1===s,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!lB("largest-contentful-paint"))return;let r=(0,ll.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&lW(e.value)&&(n=e.value,t=r)},!0);lH(e,(e,i,a)=>{(function(e,t,n,r){if(!lW(e))return;ls.T&&sa.Yz.log(`Sending LCP span (${e})`);let i=(0,st.k3)()||0,a=lF(i),o=lF(i+(t?.startTime||0)),s=t?(0,aD.H)(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=(0,aD.H)(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),ue({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:a,endTime:o})})(n,t,a,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!lB("layout-shift"))return;let r=(0,ll.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);lH(e,(e,i,a)=>{(function(e,t,n,r){ls.T&&sa.Yz.log(`Sending CLS span (${e})`);let i=t?lF(((0,st.k3)()||0)+t.startTime):(0,st.zf)(),a=t?(0,aD.H)(t.sources[0]?.node):"Layout shift",o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=(0,aD.H)(e.node)}),ue({name:a,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})})(n,t,a,e),r()})}(n),t.has("inp")||lU()&&(0,st.k3)()&&(0,ll.hT)(({metric:e})=>{if(null==e.value||lF(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&l8[t.name]);t&&function(e,t){var n;ls.T&&sa.Yz.log(`Sending INP span (${e})`);let r=lF((0,st.k3)()+t.startTime),i=lF(e),a=l8[t.name],o=null!=(n=t.interactionId)?l6.get(n):void 0,s=ln(),l=s?le(s):void 0,u=o?.span||l,c=u?sZ(u).name:sP().getScopeData().transactionName;ue({name:o?.elementName||(0,aD.H)(t.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[sU]:t.duration,[aG.zNS]:c,[aG.suP]:c},startTime:r,endTime:r+i,parentSpan:u})}(e.value,t)})):t.has("inp")||function(){if(lU()&&(0,st.k3)()){let e=(0,ll.hT)(l9);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(l8);function t(e){let t=e.target;if(!t)return;let n=(0,aD.H)(t),r=Math.round(e.timeStamp);if(l7.set(r,n),l7.size>50){let e=l7.keys().next().value;void 0!==e&&l7.delete(e)}}
16l4()&&e.forEach(e=>{lo.j.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=ln(),n=t&&le(t);e.forEach(e=>{if(!(0,ll.tC)(e))return;let t=e.interactionId;if(null==t||l6.has(t))return;let r=e.target?(0,aD.H)(e.target):function(e){let t=Math.round(e.startTime),n=l7.get(t);if(!n)for(let e=-5;e<=5;e++){let r=l7.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(l5.length>10){let e=l5.shift();l6.delete(e)}l5.push(t),l6.set(t,{span:n,elementName:r})})};(0,ll.wv)("event",n),(0,ll.wv)("first-input",n)}()}}},ur="sentry_previous_trace";function ui(e){return 1===e.traceFlags}function ua(e={}){let t=e.client||t7();if(!rL()||!t)return{};let n=t1(eF());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||t2(),i=e.span||rr(),a=rl(i)&&!nR(t.getOptions());if(!i&&void 0!==p)return{};let o=i&&!a?nY(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return nH(t,r,n)}(r),s=nm(i?rd(i):rp(t,r));if(!nF.test(o))return eX.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let l={"sentry-trace":o,baggage:s};return e.propagateTraceparent&&(l.traceparent=i&&!a?function(e){let{traceId:t,spanId:n}=e.spanContext();return nW(t,n,n3(e))}(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return nW(t,r,n)}(r)),l}function uo(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(n_))}function us(e,t,n,r){let i={url:aN(e),type:"fetch","http.method":n,[nl]:r,[ns]:"http.client"};return t&&(aP(t)||(i["http.url"]=aN(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}var ul=n(31249);function uu(e){try{return new URL(e,ar.location.origin).href}catch{return}}function uc(e){try{return new Headers(e)}catch{return}}let up={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ud(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:l}={...up,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let n=at();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?tR(r.toString(),t)||a&&tR(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?tR(e,t):n}})(e,o),p={},d=e.getOptions().propagateTraceparent;n&&av(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=nR()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(function(e,t){if(t.response){nA(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),function(e,t,n){let r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,i)),delete r[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof i?i:{spanOrigin:i},c=t7(),p=!!rr(),d=p||!!c&&iR(c),f=s&&d?oG(function(e,t,n){if(e.startsWith("data:")){let r=aN(e);return{name:`${t} ${r}`,attributes:us(e,void 0,t,n)}}let r=aI(e),i=r?aC(r):e;return{name:`${t} ${i}`,attributes:us(e,r,t,n)}}(o,a,l)):new rs,h=o6(f)&&p?void 0:f;if(s&&!d&&c?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i,a;let o=ua({span:n,propagateTraceparent:r}),s=o["sentry-trace"],l=o.baggage,u=o.traceparent;if(!s)return;let c=t.headers||(te(e)?e.headers:void 0);if(!c)return{...o};if(i=c,"undefined"!=typeof Headers&&e9(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",s),r&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?uo(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(a=c)&&a.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),r&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&uo(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],a=n&&(Array.isArray(n)?n.find(e=>uo(e)):uo(n));l&&!a&&i.push(l);let o=Object.assign({},c,{"sentry-trace":e??s,baggage:i.length>0?i.join(","):void 0});return r&&u&&!t&&(o.traceparent=u),o}}(t,n,nR()&&d?h:void 0,u);r&&(e.args[1]=n,n.headers=r)}if(c){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",f,t)}return f}(t,u,c,p,{propagateTraceparent:d,onRequestSpanEnd:l});if(n){let r=uu(t.fetchData.url),i=r?aA(r).host:void 0,o=r?aN(r):void 0;n.setAttributes({"http.url":o,"url.full":o,"server.address":i}),a&&uf(n,e),s?.(n,{headers:t.headers})}}),r&&(0,aj.Mn)(t=>{let n=function(e,t,n,r,i,a){let o=e.xhr,s=o?.[aj.Er];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=nR()&&t(l);
16if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==s.status_code&&(nA(n,s.status_code),n.end(),a?.(n,{headers:uc((0,ul.ti)(o)),error:e.error})),delete r[t]);return}let p=uu(l),d=p?aA(p):aA(l),f=p?aN(p):void 0,h=aN(aO(l)),_=t7(),g=!!rr(),m=g||!!_&&iR(_),y=c&&m?oG({name:`${u} ${h}`,attributes:{url:aN(l),type:"xhr","http.method":u,"http.url":f,"url.full":f,"server.address":d?.host,[nl]:"auto.http.browser",[ns]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new rs,v=o6(y)&&g?void 0:y;return c&&!m&&_?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=y.spanContext().spanId,r[o.__sentry_xhr_span_id__]=y,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=ua({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,a)}(o,nR()&&m?v:void 0,i),_&&_.emit("beforeOutgoingRequestSpan",y,e),y}(t,u,c,p,d,l);n&&(a&&uf(n,e),s?.(n,{headers:uc(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function uf(e,t){let{url:n}=nK(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if(iR(t)){let t=e.end.bind(e);e.end=e=>{let n=e??tL(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,300)}}let i=(0,ll.wv)("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(lq(t)),r())})})}let uh=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function u_(){let e=ar.navigator;return!!e?.userAgent&&uh.test(e.userAgent)}let ug={...o7,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...up},um=(e={})=>{let t,n;"enableElementTiming"in e&&eY(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},i=ar.document,{enableInp:a,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:p,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:_,traceFetch:g,traceXHR:m,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:v,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:E,instrumentPageLoad:w,instrumentNavigation:x,detectRedirects:T,linkPreviousTrace:R,consistentTraceSampling:k,enableReportPageLoaded:P,onRequestSpanStart:I,onRequestSpanEnd:C}={...ug,...e},A=u_();function O(e,t,a=!0,o){let s="pageload"===t.op,l=t.name,u=p?p(t):t,c=aI(o||at()),_={...c?.pathname&&{[aG.mqy]:c.pathname},...c&&!aP(c)&&{[aG.aVR]:c.href},...u.attributes};if(l!==u.name&&(_[ni]="custom"),u.attributes=_,!a){let e=tN();oG({...u,startTime:e}).end(e);return}r.name=u.name,r.source=_[ni];let g=o8(u,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:s,beforeSpanEnd:t=>{!function(e,t){let n=lU(),r=(0,st.k3)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=lF(r),l=n.getEntries(),{op:u,start_timestamp:c}=sQ(e);l.slice(lV).forEach(t=>{let n=lF(t.startTime),r=lF(Math.max(0,t.duration));if("navigation"!==u||!c||!(s+n<c))switch(t.entryType){case"navigation":var i,l,p;i=e,l=t,p=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{lQ(i,l,e,p)}),lQ(i,l,"secureConnection",p,"TLS/SSL"),lQ(i,l,"fetch",p,"cache"),lQ(i,l,"domainLookup",p,"DNS"),function(e,t,n){let r=n+lF(t.requestStart),i=n+lF(t.responseEnd),a=n+lF(t.responseStart);t.responseEnd&&(lD(e,r,i,{op:"browser.request",name:t.name,attributes:{[sj]:"auto.ui.browser.metrics"}}),lD(e,a,i,{op:"browser.response",name:t.name,attributes:{[sj]:"auto.ui.browser.metrics"}}))}(i,l,p);break;case"mark":case"paint":case"measure":!function(e,t,n,r,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&function(e,t=[],n=!1){for(let r of t)if(sy(e,r,n))return!0;return!1}(t.name,a))return;let o=(0,lG.z)(!1),s=i+Math.max(n,lF(o?o.requestStart:0)),l=i+n,u=l+r,c={[sj]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,so.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,so.sO)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),s<=u&&lD(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,n,r,s,a);break;case"resource":!function(e,t,n,r,i,a,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[sj]:"auto.resource.browser.metrics"},p=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}(n);p.protocol&&(c["url.scheme"]=p.protocol.split(":").pop()),p.host&&(c["server.address"]=p.host),c["url.same_origin"]=n.includes(lo.j.location.origin),c["url.full"]=n,s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
16h(([e,t])=>{let n=s[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(l[t]=n)});let d={...c,...lq(t)},f=a+r;lD(e,f,f+i,{name:n.replace(lo.j.location.origin,""),op:u,attributes:d})}(e,t,t.name,n,r,s,o)}}),lV=Math.max(l.length-1,0),function(e,t){let n=lo.j.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),lM(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===sQ(e).op&&li("connection.rtt",r.rtt,"millisecond"))),lM(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),lM(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:S,ignorePerformanceApiSpans:E,spanStreamingEnabled:iR(e)}),tn(e,uE,void 0);let r=t2(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:g.spanContext().traceId,sampled:n3(g),dsc:rd(t)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!P});function m(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),i.removeEventListener("readystatechange",m))}s&&P&&(n=g),tn(e,uE,g),s&&!P&&i&&(i.addEventListener("readystatechange",m),m())}return{name:"BrowserTracing",setup(e){if(A){a$&&eX.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(se(),s&&eU.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=ln();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=lF((0,st.k3)()+n.startTime),{start_timestamp:r,op:i}=sQ(t);if("navigation"===i&&r&&e<r)continue;let a=lF(n.duration),o={[sj]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:p}=n.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==p&&(o["browser.script.source_char_position"]=p),lD(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):o&&(0,ll.wv)("longtask",({entries:e})=>{let t=ln();if(!t)return;let{op:n,start_timestamp:r}=sQ(t);for(let i of e){let e=lF((0,st.k3)()+i.startTime),a=lF(i.duration);"navigation"===n&&r&&e<r||lD(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[sj]:"auto.ui.browser.metrics"}})}}),l&&(0,ll.wv)("event",({entries:e})=>{let t=ln();if(t){for(let n of e)if("click"===n.name){let e=lF((0,st.k3)()+n.startTime),r=lF(n.duration),i={name:(0,aD.H)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[sj]:"auto.ui.browser.metrics"}},a=function(e,t=5){if(!lr.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){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}(n.target);a&&(i.attributes["ui.component_name"]=a),lD(t,e,e+r,i)}}}),T&&i){let e=()=>{t=tL()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function r(){let t=e[uE];t&&!nK(t).timestamp&&(a$&&eX.log(`[Tracing] Finishing current active span with op: ${nK(t).op}`),t.setAttribute(nu,"cancelled"),t.end())}e.on("startNavigationSpan",(n,i)=>{if(t7()!==e)return;if(i?.isRedirect){a$&&eX.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),O(e,{op:"navigation.redirect",...n},!1,i.url);return}t=void 0,r(),t3().setPropagationContext({traceId:tk(),sampleRand:Math.random(),propagationSpanId:nR()?void 0:tU()});let a=t2();a.setPropagationContext({traceId:tk(),sampleRand:Math.random(),propagationSpanId:nR()?void 0:tU()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),O(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0},!0,i?.url)}),e.on("startPageLoadSpan",(t,n={})=>
16{if(t7()!==e)return;r();let i=nB(n.sentryTrace||ub("sentry-trace")||uS("sentry-trace"),n.baggage||ub("baggage")||uS("baggage")),a=t2();a.setPropagationContext(i),nR()||(a.getPropagationContext().propagationSpanId=tU()),a.setSDKProcessingMetadata({normalizedRequest:ao()}),O(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{P&&n&&(n.setAttribute(nu,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,i,o,s,p;let S;if(A)return;e.addIntegration&&!e.getIntegrationByName?.(ut)&&e.addIntegration(un({ignore:a?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let E=at();if("off"!==R&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=ar.sessionStorage?.getItem(ur);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(rt(e)!==e)return;let t=t2().getPropagationContext();i=function(e,t,n){let r=nK(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[na]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(a$&&eX.log(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:a,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!ui(a)}`)),i)}(i,e,t),r&&function(e){try{ar.sessionStorage.setItem(ur,JSON.stringify(e))}catch(e){a$&&eX.warn("Could not store previous trace in sessionStorage",e)}}(i)});let a=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=t2(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(ui(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=ui(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[no]:i.sampleRate}})}(e,{linkPreviousTrace:R,consistentTraceSampling:k}),ar.location){if(w){let t=tM();uy(e,{name:ar.location.pathname,startTime:t?t/1e3:void 0,attributes:{[ni]:"url",[nl]:"auto.pageload.browser"}})}x&&(0,aM._)(({to:n,from:r})=>{if(void 0===r&&E?.indexOf(n)!==-1){E=void 0;return}E=void 0;let i=aI(n),a=e[uE],o=a&&T&&function(e,t){let n=nK(e),r=tN();return!(r-n.start_timestamp>1.5)&&(!t||!(r-t<=1.5))}(a,t);uv(e,{name:i?.pathname||ar.location.pathname,attributes:{[ni]:"url",[nl]:"auto.navigation.browser"}},{url:n,isRedirect:o})})}_&&(ar.document?ar.document.addEventListener("visibilitychange",()=>{let e=rr();if(!e)return;let t=rt(e);if(ar.document.hidden&&t){let e="cancelled",{op:n,status:r}=nK(t);a$&&eX.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):a$&&eX.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(n=e,i=d,o=f,s=h,p=r,ar.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[uE]}(n);if(t&&["navigation","pageload"].includes(nK(t).op)){a$&&eX.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(S&&(S.setAttribute(nu,"interactionInterrupted"),S.end(),S=void 0),!p.name){a$&&eX.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}S=o8({name:p.name,op:e,attributes:{[ni]:p.source||"url"}},{idleTimeout:i,finalTimeout:o,childSpanTimeout:s})},{capture:!0})),ud(e,{traceFetch:g,traceXHR:m,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b,onRequestSpanStart:I,onRequestSpanEnd:C}),y&&e.addIntegration(l2())}}};function uy(e,t,n){e.emit("startPageLoadSpan",t,n),t2().setTransactionName(t.name);let r=e[uE];return r&&e.emit("afterStartPageLoadSpan",r),r}function uv(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});let a=t2();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...ao(),url:r}}),e[uE]}function ub(e){let t=ar.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function uS(e){let t=ar.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let uE="_sentry_idleSpan",uw="sentry.source",ux="sentry.sample_rate",uT="sentry.op",uR="sentry.origin",uk="sentry.custom_span_name";function uP(e){try{return new URL(e,lo.j.location.origin).toString()}catch{return e}}let uI=null,uC=new Map,uA=new Map;
16function uO(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function uN(e){if(uC.has(e))return uC.get(e)??null;try{let t=new RegExp(e);return uC.set(e,t),t}catch(t){return oN&&X.warn("Could not compile regex",{regexString:e,error:t}),null}}function uL(){if(!B?._sentryRouteManifest||"string"!=typeof B._sentryRouteManifest)return null;let e=B._sentryRouteManifest;if(uI&&M===e)return uI;uC.clear(),uA.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return uI=t,M=e,t}catch{return oN&&X.warn("Could not extract route manifest"),null}}let uj=e=>{let t=uL();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(uA.has(n))return uA.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let a=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=uN(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=uN(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>uO(e)-uO(t))[0];return uA.set(n,a),a};var uM=n(87358);function uD(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function u$(e,t,n){e.setAttributes({[aG.mqy]:t,[aG.aVR]:uP(n)})}let uU="incomplete-app-router-transaction",uF="router-patch",uB={current:void 0};function uH(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let uW=new WeakSet;function uz(e,t,n){uW.has(t)||(uW.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,a){if("router-patch"!==uF)return t.apply(i,a);let o=uU,s={[uT]:"navigation",[uR]:"auto.navigation.nextjs.app_router_instrumentation",[uw]:"url"},l=a[0],u=uM.env._sentryBasePath??B._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===r?(o=uD(uH(c)),s["navigation.type"]="router.push"):"replace"===r?(o=uD(uH(c)),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward");let p=uj(o),d="back"===r||"forward"===r?void 0:uP(c);return n.current=uv(e,{name:p??o,attributes:{...s,[uw]:p?"route":"url",...p&&{[aG.B8_]:p}}},d?{url:d}:void 0),t.apply(i,a)}}))}))}function uq(e,t){D&&D(e,t)}let uY="sentry-";function uG(e){let t=uJ(e);
16if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(uY)&&(e[t.slice(uY.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function uJ(e){if(e&&(el(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(uV(t)).forEach(([t,n])=>{e[t]=n}),e),{}):uV(e)}function uV(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[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 uX=n(73360),uK=n.n(uX);let uQ=uK().events?uK():uK().default;function uZ(e={}){let t=um({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!u_()&&(r&&function(e){if(ar.document.getElementById("__NEXT_DATA__"))uQ.events.on("routeChangeStart",t=>{let n,r,i=t.split(/[?#]/,1)[0],a=function(e){let t=ar.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(i);a?(n=a,r="route"):(n=i,r="url"),uv(e,{name:n,attributes:{[uT]:"navigation",[uR]:"auto.navigation.nextjs.pages_router_instrumentation",[uw]:r,..."route"===r&&{[aG.B8_]:n}}},{url:uP(t)})});else{D=(t,n)=>{let r=uM.env._sentryBasePath??B._sentryBasePath,i=r&&!t.startsWith(r)?`${r}${t}`:t,a=uD(new URL(i,ar.location.href).pathname),o=uj(a),s=o??a;"router-patch"===uF&&(uF="transition-start-hook");let l=uB.current;l?(l.updateName(s),l.setAttributes({"navigation.type":`router.${n}`,[uw]:o?"route":"url",...o&&{[aG.B8_]:o}}),u$(l,a,i),uB.current=void 0):uv(e,{name:s,attributes:{[uT]:"navigation",[uR]:"auto.navigation.nextjs.app_router_instrumentation",[uw]:o?"route":"url","navigation.type":`router.${n}`,...o&&{[aG.B8_]:o}}},{url:uP(i)})},ar.addEventListener("popstate",()=>{let t=uD(ar.location.pathname),n=uj(t);uB.current?.isRecording()?(uB.current.updateName(n??t),uB.current.setAttribute(uw,n?"route":"url"),n&&uB.current.setAttribute(aG.B8_,n),u$(uB.current,t,ar.location.href)):uB.current=uv(e,{name:n??t,attributes:{[uR]:"auto.navigation.nextjs.app_router_instrumentation",[uw]:n?"route":"url","navigation.type":"browser.popstate",...n&&{[aG.B8_]:n}}},{url:uP(t)})});let t=!1,n=0,r=setInterval(()=>{n++;let i=B?.next?.router??B?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,uz(e,i,uB),["nd","next"].forEach(t=>{let n=B[t];n&&(B[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&uz(e,r,uB),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(ar.document.getElementById("__NEXT_DATA__")){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e,t=ar.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{oN&&X.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a?.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),a=uJ(i),o=t||ar.location.pathname;a?.["sentry-transaction"]&&"/_error"===o&&(o=(o=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=ei();uy(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[uT]:"pageload",[uR]:"auto.pageload.nextjs.pages_router_instrumentation",[uw]:t?"route":"url",...t&&{[aG.B8_]:t},...n&&{...n}}},{sentryTrace:r,baggage:i})}else{let t=uD(ar.location.pathname),n=uj(t),r=ei();uy(e,{name:n??t,startTime:r?r/1e3:void 0,attributes:{[uT]:"pageload",[uR]:"auto.pageload.nextjs.app_router_instrumentation",[uw]:n?"route":"url",...n&&{[aG.B8_]:n}}})}}(e))}}}let u0=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function u1(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function u2(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let u3=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in eU&&!!eU.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?function(e,t){e=u1(e).slice(1),t=u1(t).slice(1);let n=u2(e.split("/")),r=u2(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;
16e<n.length;e++)o.push("..");return(o=o.concat(r.slice(a))).join("/")}(t,e):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=u0.exec(t);return n?n.slice(1):[]}(e)[2]||"";r.filename=`${n}${a}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},u4=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/;class u5{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let u6=new u5(100),u7=/^o(\d+)\./,u8=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function u9(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};return n.orgId?t=String(n.orgId):r&&(t=function(e){let t=e.match(u7);return t?.[1]}(r)),t}var ce=n(87358),ct=n(87358);let cn=!1;function cr(e){cn&&J(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),cn=!0,!oN&&e.debug&&J(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){ar.document&&function(e){let t=uj(e)||e,n=u6.get(t);if(void 0!==n)return n;let r=uL();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return u6.set(t,!1),!1;let i=r.isrRoutes.includes(t);return u6.set(t,i),i}(ar.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=ar.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:e.environment||ct.env.SENTRY_ENVIRONMENT||function(e){let t=e?oL.env.NEXT_PUBLIC_VERCEL_ENV:oL.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=oT(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(uZ());let n=ct.env._sentryRewriteFramesAssetPrefixPath||B._sentryRewriteFramesAssetPrefixPath||"",r=ct.env._sentryAssetPrefix||B._sentryAssetPrefix,i=ct.env._sentryBasePath||B._sentryBasePath,a="true"===ct.env._experimentalThirdPartyOriginStackFrames||"true"===B._experimentalThirdPartyOriginStackFrames;return t.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...u3({iteratee:i=>{if(r){let n="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(u4)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:r,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:a})),t}(e),release:ct.env._sentryRelease||B._sentryRelease,...e};!function(e){let t=ce.env._sentryRewritesTunnelPath||B._sentryRewritesTunnelPath;if(t&&e.dsn){let n=function(e){var t;let n=u8.exec(e);if(!n)return void J(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,i,a="",o="",s="",l=""]=n.slice(1),u="",c=l,p=c.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),c=p.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return{protocol:(t={host:o,pass:a,path:u,projectId:c,port:s,protocol:r,publicKey:i}).protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],o=`${t}?o=${i}&p=${n.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,oN&&X.log(`Tunneling events to "${o}"`)}else oN&&X.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:H})),i.version=H)}(t,"nextjs",["nextjs","react"]),t.ignoreSpans=[...t.ignoreSpans||[],/^\/404$/,new RegExp("^".concat(uU,"$"))];let n=function(e){let t={...e};return!function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:oP})),i.version=oP)}(t,"react"),rS("react",{version:oI.version}),function(e={}){var t;
16let n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ar.window||ar.nw)return!1;let e=ar.chrome||ar.browser;if(!e?.runtime?.id)return!1;let t=at();return!(ar===ar.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(a$&&eY(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),r=null==e.defaultIntegrations?oT():e.defaultIntegrations,i={...e,enabled:!n&&e.enabled,stackParser:Array.isArray(t=e.stackParser||ov)?th(...t):t,integrations:function(e){let t,n=e.defaultIntegrations||[],r=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;let i={};return t.forEach(e=>{let{name:t}=e,n=i[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||oE};l=ox,!0===i.debug&&(eW?eX.enable():eY(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),t2().update(i.initialScope);let a=new as(i);return r2(a),a.init(),a}(t)}(t),r=(e,t)=>{var n,r,i;return oM(null==t?void 0:t.originalException)||(null==(i=e.exception)||null==(r=i.values)||null==(n=r[0])?void 0:n.value)==="NEXT_REDIRECT"?null:e};return r.id="NextRedirectErrorFilter",eC().addEventProcessor(r),n}function ci(e){return e}let ca=globalThis,co="10.67.0";function cs(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||co,t[co]=t[co]||{}}function cl(e,t,n=ca){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[co]=r[co]||{};return i[e]||(i[e]=t())}let cu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function cc(e){if(void 0!==b)return b?b(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in ca&&"function"==typeof ca[t]?(b=ca[t])(e):(b=null,e())}function cp(){return cc(()=>Math.random())}function cd(e=ca.crypto||ca.msCrypto){try{if(e?.randomUUID)return cc(()=>e.randomUUID()).replace(/-/g,"")}catch{}return S||(S="10000000100040008000100000000000"),S.replace(/[018]/g,e=>(e^(15&16*cp())>>e/4).toString(16))}function cf(){return cc(()=>Date.now())/1e3}let ch={};function c_(e,...t){cu&&function(){return cu?cl("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&function(e){if(!("console"in ca))return e();let t=ca.console,n={},r=Object.keys(ch);r.forEach(e=>{let r=ch[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}(()=>{ca.console[e](`Sentry Logger [${e}]:`,...t)})}let cg={log:function(...e){c_("log",...e)},warn:function(...e){c_("warn",...e)},error:function(...e){c_("error",...e)}},cm=Object.prototype.toString,cy="_sentrySpan";function cv(e,t){if(t){var n=function(e){try{let t=ca.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t);try{Object.defineProperty(e,cy,{value:n,writable:!0,configurable:!0})}catch{cu&&cg.log(`Failed to add non-enumerable property "${String(cy)}" to object`,e)}}else delete e[cy]}function cb(e){var t=e[cy];if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}class cS{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:cd(),sampleRand:cp()}}clone(){let e=new cS;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,cv(e,cb(this)),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&&function(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||(E??(E=function(){let{performance:e}=ca;if(!e?.now||!e.timeOrigin)return cf;let t=e.timeOrigin;return()=>(t+cc(()=>e.now()))/1e3}()))(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:cd()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof cS?t.getScopeData():"[object Object]"===cm.call(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,cv(this,void 0),this._attachments=[],this.setPropagationContext({traceId:cd(),sampleRand:cp()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:cf(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(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:cb(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||cd();if(!this._client)return cu&&cg.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||cd();if(!this._client)return cu&&cg.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||cd();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):cu&&cg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
16h(e=>{e(this)}),this._notifyingListeners=!1)}}let cE=e=>e instanceof Promise&&!e[cw],cw=Symbol("chained PromiseLike");class cx{constructor(e,t){let n,r;n=e||new cS,r=t||new cS,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){var t;let n,r=this._pushScope();try{n=e(r)}catch(e){throw this._popScope(),e}return(t=n,t?.then&&"function"==typeof t.then)?((e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return cE(r)&&cE(e)?r:((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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[cw]:!0}),t})(e,r)})(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)&&!!this._stack.pop()}}function cT(){let e=(cs(ca),ca),t=cs(e);return t.stack=t.stack||new cx(cl("defaultCurrentScope",()=>new cS),cl("defaultIsolationScope",()=>new cS))}function cR(e){return cT().withScope(e)}function ck(e,t){let n=cT();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function cP(e){return cT().withScope(()=>e(cT().getIsolationScope()))}function cI(e){let t=cs(e);return t.acs?t.acs:{withIsolationScope:cP,withScope:cR,withSetScope:ck,withSetIsolationScope:(e,t)=>cP(t),getCurrentScope:()=>cT().getScope(),getIsolationScope:()=>cT().getIsolationScope()}}function cC(){return cI((cs(ca),ca)).getCurrentScope()}function cA(){return cC().getClient()}function cO(e){let t=cA();if(!t){cu&&cg.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}var cN=n(87358);let cL=ca.document,cj=ca.navigator,cM="Report a Bug",cD="Cancel",c$="Send Bug Report",cU="Confirm",cF="Report a Bug",cB="[email protected]",cH="Email",cW="What's the bug? What did you expect?",cz="Description",cq="Your Name",cY="Name",cG="Thank y
16ou for your report!",cJ="(required)",cV="Add a screenshot",cX="Remove screenshot",cK="Highlight",cQ="Hide",cZ="Remove",c0="Unable to submit feedback with empty message",c1="No client setup, cannot send feedback.",c2="Unable to determine if Feedback was correctly sent.",c3="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",c4="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",c5={ERROR_EMPTY_MESSAGE:c0,ERROR_NO_CLIENT:c1,ERROR_TIMEOUT:c2,ERROR_FORBIDDEN:c3,ERROR_GENERIC:c4};function c6(e,t){return t?.[e]??c5[e]}let c7=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Error(c6("ERROR_EMPTY_MESSAGE",n));let r=cA();if(!r)throw Error(c6("ERROR_NO_CLIENT",n));e.tags&&Object.keys(e.tags).length&&cC().setTags(e.tags);let i=function(e,t={},n=cC()){let{message:r,name:i,email:a,url:o,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:a,name:i,message:r,url:o,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=n?.getClient()||cA();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}({source:"api",url:function(){try{return ca.document.location.href}catch{return""}}(),...e},t);return new Promise((e,t)=>{let a=setTimeout(()=>{o(),t(c6("ERROR_TIMEOUT",n))},3e4),o=r.on("afterSendEvent",(r,s)=>{if(r.event_id===i)return(clearTimeout(a),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300)?e(i):s?.statusCode===403?t(c6("ERROR_FORBIDDEN",n)):t(c6("ERROR_GENERIC",n))})})},c8="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function c9(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function pe(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let pt="rgba(88, 74, 192, 1)",pn={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:pt,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},pr={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:pt,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function pi(e){return`
17  --foreground: ${e.foreground};
18  --background: ${e.background};
19  --accent-foreground: ${e.accentForeground};
20  --accent-background: ${e.accentBackground};
21  --success-color: ${e.successColor};
22  --error-color: ${e.errorColor};
23  --border: ${e.border};
24  --box-shadow: ${e.boxShadow};
25  --outline: ${e.outline};
26  --interactive-filter: ${e.interactiveFilter};
27  `}function pa({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=cL.createElement("style");return i.textContent=`
28:host {
29  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
30  --font-size: 14px;
31  --z-index: 100000;
32
33  --page-margin: 16px;
34  --inset: auto 0 0 auto;
35  --actor-inset: var(--inset);
36
37  font-family: var(--font-family);
38  font-size: var(--font-size);
39
40  ${"system"!==e?`color-scheme: only ${e};`:""}
41
42  ${pi("dark"===e?{...pr,...t}:{...pn,...n})}
43}
44
45${"system"===e?`
46@media (prefers-color-scheme: dark) {
47  :host {
48    color-scheme: only dark;
49
50    ${pi({...pr,...t})}
51  }
52}`:""}
53`,r&&i.setAttribute("nonce",r),i}let po=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:i=!0,showBranding:a=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:p={email:"email",name:"username"},tags:d,styleNonce:f,scriptNonce:h,colorScheme:_="system",themeLight:g={},themeDark:m={},addScreenshotButtonLabel:y=cV,cancelButtonLabel:v=cD,confirmButtonLabel:b=cU,emailLabel:S=cH,emailPlaceholder:E=cB,formTitle:w=cF,isRequiredLabel:x=cJ,messageLabel:T=cz,messagePlaceholder:R=cW,nameLabel:k=cY,namePlaceholder:P=cq,removeScreenshotButtonLabel:I=cX,submitButtonLabel:C=c$,successMessageText:A=cG,triggerLabel:O=cM,triggerAriaLabel:N="",highlightToolText:L=cK,hideToolText:j=cQ,removeHighlightText:M=cZ,errorEmptyMessageText:D=c0,errorNoClientText:$=c1,errorTimeoutText:U=c2,errorForbiddenText:F=c3,errorGenericText:B=c4,onFormOpen:H,onFormClose:W,onSubmitSuccess:z,onSubmitError:q,onFormSubmitted:Y}={})=>{let G={id:r,autoInject:i,showBranding:a,isEmailRequired:o,isNameRequired:s,showEmail
53:l,showName:u,enableScreenshot:c,useSentryUser:p,tags:d,styleNonce:f,scriptNonce:h,colorScheme:_,themeDark:m,themeLight:g,triggerLabel:O,triggerAriaLabel:N,cancelButtonLabel:v,submitButtonLabel:C,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:E,messageLabel:T,messagePlaceholder:R,nameLabel:k,namePlaceholder:P,successMessageText:A,isRequiredLabel:x,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:I,highlightToolText:L,hideToolText:j,removeHighlightText:M,errorEmptyMessageText:D,errorNoClientText:$,errorTimeoutText:U,errorForbiddenText:F,errorGenericText:B,onFormClose:W,onFormOpen:H,onSubmitError:q,onSubmitSuccess:z,onFormSubmitted:Y},J=null,V=null,X=[],K=e=>{if(!J){let t=cL.createElement("div");t.id=String(e.id),cL.body.appendChild(t),J=t.attachShadow({mode:"open"}),V=pa(e),J.appendChild(V)}return J},Q=async r=>{let i,a,o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(cj.userAgent)||/Macintosh/i.test(cj.userAgent)&&cj.maxTouchPoints&&cj.maxTouchPoints>1)&&!!isSecureContext;try{i=(t?t():await e("feedbackModalIntegration",h))(),cO(i)}catch{throw c8&&cg.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}
53try{let t=o?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(a=t(),cO(a))}catch{c8&&cg.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},l=i.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:a,sendFeedback:(e,t)=>c7(e,{includeReplay:!0,...t,errorMessages:s}),shadow:K(r)});return l},Z=(e,t={})=>{let n=c9(G,t),r="string"==typeof e?cL.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw c8&&cg.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let i=null,a=async()=>{i||(i=await Q({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}})),i.appendToDom(),i.open()};r.addEventListener("click",a);let o=()=>{X=X.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener("click",a)};return X.push(o),o},ee=(e={})=>{let t=c9(G,e),n=K(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=cL.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||cM,i.appendChild(function(){let e=e=>ca.document.createElementNS("http://www.w3.org/2000/svg",e),t=pe(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=pe(e("g"),{clipPath:"url(#clip0_57_80)"}),r=pe(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let i=e("defs"),a=pe(e("clipPath"),{id:"clip0_57_80"}),o=pe(e("rect"),{width:"20",height:"20",fill:"white"});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}()),e){let t=cL.createElement("span");t.appendChild(cL.createTextNode(e)),i.appendChild(t)}let a=function(e){let t=cL.createElement("style");return t.textContent=`
54.widget__actor {
55  position: fixed;
56  z-index: var(--z-index);
57  margin: var(--page-margin);
58  inset: var(--actor-inset);
59
60  display: flex;
61  align-items: center;
62  gap: 8px;
63  padding: 16px;
64
65  font-family: inherit;
66  font-size: var(--font-size);
67  font-weight: 600;
68  line-height: 1.14em;
69  text-decoration: none;
70
71  background: var(--actor-background, var(--background));
72  border-radius: var(--actor-border-radius, 1.7em/50%);
73  border: var(--actor-border, var(--border));
74  box-shadow: var(--actor-box-shadow, var(--box-shadow));
75  color: var(--actor-color, var(--foreground));
76  fill: var(--actor-color, var(--foreground));
77  cursor: pointer;
78  opacity: 1;
79  transition: transform 0.2s ease-in-out;
80  transform: translate(0, 0) scale(1);
81}
82.widget__actor[aria-hidden="true"] {
83  opacity: 0;
84  pointer-events: none;
85  visibility: hidden;
86  transform: translate(0, 16px) scale(0.98);
87}
88
89.widget__actor:hover {
90  background: var(--actor-hover-background, var(--background));
91  filter: var(--interactive-filter);
92}
93
94.widget__actor svg {
95  width: 1.14em;
96  height: 1.14em;
97}
98
99@media (max-width: 600px) {
100  .widget__actor span {
101    display: none;
102  }
103}
104`,e&&t.setAttribute("nonce",e),t}(r);return{el:i,appendToDom(){n.appendChild(a),n.appendChild(i)},removeFromDom(){i.remove(),a.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return Z(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==cN?cN:0))||function(){let e=ca.process;return e?.type==="renderer"}())&&G.autoInject&&("loading"===cL.readyState?cL.addEventListener("DOMContentLoaded",()=>ee().appendToDom()):ee().appendToDom())},attachTo:Z,createWidget(e={}){let t=ee(c9(G,e));return t.appendToDom(),t},createForm:async(e={})=>Q(c9(G,e)),setTheme(e){if(G.colorScheme=e,J){let e=pa(G);V?J.replaceChild(e,V):J.prepend(e),V=e}},remove(){J&&(J.parentElement?.remove(),J=null,V=null),X.forEach(e=>e()),X=[]}}};function ps(){let e=cA();return e?.getIntegrationByName("Feedback")}var pl,pu,pc,pp,pd,pf,ph,p_={},pg=[],pm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,py=Array.isArray;function pv(e,t){for(var n in t)e[n]=t[n];return e}function pb(e){var t=e.parentNode;t&&t.removeChild(e)}function pS(e,t,n){var r,i,a,o={};for(a in t)"key"==a?r=t[a]:"ref"==a?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?pl.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]
vendor: 4,216 bytes, line 104
104);return pE(e,o,r,i,null)}function pE(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++pc:i,__i:-1,__u:0};return null==i&&null!=pu.vnode&&pu.vnode(a),a}function pw(e){return e.children}function px(e,t){this.props=e,this.context=t}function pT(e,t){if(null==t)return e.__?pT(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?pT(e):null}function pR(e){(!e.__d&&(e.__d=!0)&&pp.push(e)&&!pk.__r++||pd!==pu.debounceRendering)&&((pd=pu.debounceRendering)||pf)(pk)}function pk(){var e,t,n,r=[],i=[];for(pp.sort(ph);e=pp.shift();)e.__d&&(n=pp.length,t=function(e,t,n){var r,i=e.__v,a=i.__e,o=e.__P;if(o)return(r=pv({},i)).__v=i.__v+1,pu.vnode&&pu.vnode(r),pN(o,r,i,e.__n,void 0!==o.ownerSVGElement,32&i.__u?[a]:null,t,null==a?pT(i):a,!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,i)||t,0===n||pp.length>n?(pL(r,t,i),i.length=r.length=0,t=void 0,pp.sort(ph)):t&&pu.__c&&pu.__c(t,pg));t&&pL(r,t,i),pk.__r=0}function pP(e,t,n,r,i,a,o,s,l,u,c){var p,d,f,h,_,g=r&&r.__k||pg,m=t.length;for(n.__d=l,function(e,t,n){var r,i,a,o,s,l=t.length,u=n.length,c=u,p=0;for(e.__k=[],r=0;r<l;r++)null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?pE(null,i,null,null,i):py(i)?pE(pw,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?pE(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&a===l.type)return n;if(r>+(null!=l&&0==(131072&l.__u)))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return -1}(i,n,o=r+p,c),i.__i=s,a=null,-1!==s&&(c--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&p--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s===o+1?p++:s>o?c>l-o?p+=s-o:p--:p=s<o&&s==o-1?s-o:0,s!==r+p&&(i.__u|=65536))):(a=n[r])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=pT(a)),pM(a,a,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null!=(a=n[r])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=pT(a)),pM(a,a))}(n,t,g),l=n.__d,p=0;p<m;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?p_:g[f.__i]||p_,f.__i=p,pN(e,f,d,i,a,o,s,l,u,c),h=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&pj(d.ref,null,f),c.push(f.ref,f.__c||h,f)),null==_&&null!=h&&(_=h),65536&f.__u||d.__k===f.__k?l=function e(t,n,r){var i,a;if("function"==typeof t.type){for(i=t.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=t,n=e(i[a],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function pI(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||pm.test(t)?n:n+"px"}function pC(e,t,n,r,i){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||pI(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||pI(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?pO:pA,a)):e.removeEventListener(t,a?pO:pA,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function pA(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();
vendor: 4,224 bytes, line 104
104return t(pu.event?pu.event(e):e)}}function pO(e){if(this.l)return this.l[e.type+!0](pu.event?pu.event(e):e)}function pN(e,t,n,r,i,a,o,s,l,u){var c,p,d,f,h,_,g,m,y,v,b,S,E,w,x,T=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(c=pu.__b)&&c(t);e:if("function"==typeof T)try{if(m=t.props,y=(c=T.contextType)&&r[c.__c],v=c?y?y.props.value:c.__:r,n.__c?g=(p=t.__c=n.__c).__=p.__E:("prototype"in T&&T.prototype.render?t.__c=p=new T(m,v):(t.__c=p=new px(m,v),p.constructor=T,p.render=pD),y&&y.sub(p),p.props=m,p.state||(p.state={}),p.context=v,p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=T.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=pv({},p.__s)),pv(p.__s,T.getDerivedStateFromProps(m,p.__s))),f=p.props,h=p.state,p.__v=t,d)null==T.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==T.getDerivedStateFromProps&&m!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,v),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=m,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<p._sb.length;b++)p.__h.push(p._sb[b]);p._sb=[],p.__h.length&&o.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,v),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,h,_)})}if(p.context=v,p.props=m,p.__P=e,p.__e=!1,S=pu.__r,E=0,"prototype"in T&&T.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),c=p.render(p.props,p.state,p.context),w=0;w<p._sb.length;w++)p.__h.push(p._sb[w]);p._sb=[]}else do p.__d=!1,S&&S(t),c=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++E<25);p.state=p.__s,null!=p.getChildContext&&(r=pv(pv({},r),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(_=p.getSnapshotBeforeUpdate(f,h)),pP(e,py(x=null!=c&&c.type===pw&&null==c.key?c.props.children:c)?x:[x],t,n,r,i,a,o,s,l,u),p.base=t.__e,t.__u&=-161,p.__h.length&&o.push(p),g&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),pu.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,a,o,s,l){var u,c,p,d,f,h,_,g=n.props,m=t.props,y=t.type;if("svg"===y&&(i=!0),null!=a){for(u=0;u<a.length;u++)if((f=a[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,a[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,m.is&&m),a=null,s=!1}if(null===y)g===m||s&&e.data===m||(e.data=m);else{if(a=a&&pl.call(e.childNodes),g=n.props||p_,!s&&null!=a)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?p=f:"key"===u||u in m||pC(e,u,null,f,i));for(u in m)f=m[u],"children"==u?d=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?_=f:"key"===u||s&&"function"!=typeof f||g[u]===f||pC(e,u,f,g[u],i);if(c)s||p&&(c.__html===p.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(p&&(e.innerHTML=""),pP(e,py(d)?d:[d],t,n,r,i&&"foreignObject"!==y,a,o,a?a[0]:n.__k&&pT(n,0),s,l),null!=a)for(u=a.length;u--;)null!=a[u]&&pb(a[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===g[u])||pC(e,u,h,g[u],!1),u="checked",void 0!==_&&_!==e[u]&&pC(e,u,_,g[u],!1))}return e}(n.__e,t,n,r,i,a,o,l,u);(c=pu.diffed)&&c(t)}function pL(e,t,n){for(var r=0;r<n.length;r++)pj(n[r],n[++r],n[++r]);pu.__c&&pu.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){pu.__e(e,t.__v)}})}function pj(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){pu.__e(e,n)}}function pM(e,t,n){var r,i;if(pu.unmount&&pu.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||pj(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){pu.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&pM(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||pb(e.__e),e.__=e.__e=e.__d=void 0}
104function pD(e,t,n){return this.constructor(e,n)}pl=pg.slice,pu={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},pc=0,px.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=pv({},this.state),"function"==typeof e&&(e=e(pv({},n),this.props)),e&&pv(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),pR(this))},px.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pR(this))},px.prototype.render=pw,pp=[],pf="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ph=function(e,t){return e.__v.__b-t.__v.__b},pk.__r=0;var p$,pU,pF,pB,pH=0,pW=[],pz=[],pq=pu,pY=pq.__b,pG=pq.__r,pJ=pq.diffed,pV=pq.__c,pX=pq.unmount,pK=pq.__;function pQ(e,t){pq.__h&&pq.__h(pU,e,pH||t),pH=0;var n=pU.__H||(pU.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:pz}),n.__[e]}function pZ(e){return pH=1,p0(p9,e)}function p0(e,t,n){var r=pQ(p$++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):p9(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=pU,!pU.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};pU.u=!0;var a=pU.shouldComponentUpdate,o=pU.componentWillUpdate;pU.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},pU.shouldComponentUpdate=i}return r.__N||r.__}function p1(e,t){var n=pQ(p$++,4);!pq.__s&&p8(n.__H,t)&&(n.__=e,n.i=t,pU.__h.push(n))}function p2(e,t){var n=pQ(p$++,7);return p8(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function p3(e,t){return pH=8,p2(function(){return e},t)}function p4(){for(var e;e=pW.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(p6),e.__H.__h.forEach(p7),e.__H.__h=[]}catch(t){e.__H.__h=[],pq.__e(t,e.__v)}}pq.__b=function(e){pU=null,pY&&pY(e)},pq.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pK&&pK(e,t)},pq.__r=function(e){pG&&pG(e),p$=0;var t=(pU=e.__c).__H;t&&(pF===pU?(t.__h=[],pU.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=pz,e.__N=e.i=void 0})):(t.__h.forEach(p6),t.__h.forEach(p7),t.__h=[],p$=0)),pF=pU},pq.diffed=function(e){pJ&&pJ(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pW.push(t)&&pB===pq.requestAnimationFrame||((pB=pq.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),p5&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);p5&&(t=requestAnimationFrame(n))})(p4)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==pz&&(e.__=e.__V),e.i=void 0,e.__V=pz})),pF=pU=null},pq.__c=function(e,t){t.some(function(e){try{e.__h.forEach(p6),e.__h=e.__h.filter(function(e){return!e.__||p7(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],pq.__e(n,e.__v)}}),pV&&pV(e,t)},pq.unmount=function(e){pX&&pX(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{p6(e)}catch(e){t=e}}),n.__H=void 0,t&&pq.__e(t,n.__v))};var p5="function"==typeof requestAnimationFrame;function p6(e){var t=pU,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),pU=t}function p7(e){var t=pU;e.__c=e.__(),pU=t}function p8(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function p9(e,t){return"function"==typeof t?t(e):t}let de=Object.defineProperty({__proto__:null,useCallback:p3,useContext:function(e){var t=pU.context[e.__c],n=pQ(p$++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(pU)),t.props.value):e.__},useDebugValue:function(e,t){pq.useDebugValue&&pq.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=pQ(p$++,3);!pq.__s&&p8(n.__H,t)&&(n.__=e,n.i=t,pU.__H.__h.push(n))},useErrorBoundary:function(e){var t=pQ(p$++,10),n=pZ();return t.__=e,pU.componentDidCatch||(pU.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=pQ(p$++,11);if(!e.__){for(var t=pU.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){pH=6,p1(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:p1,useMemo:p2,useReducer:p0,useRef:function(e){return pH=5,p2(function(){return{current:e}},[])},useState:pZ},Symbol.toStringTag,{value:"Module"});function dt({options:e}){let t=p2(()=>({__html:function(){let e=e=>cL.createElementNS("http://www.w3.org/2000/svg",e),t=pe(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=pe(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}().outerHTML}),[]);return pS("h2",{class:"dialog__header"},pS("span",{class:"dialog__title"},e.formTitle),e.showBranding?pS("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function dn(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function dr({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
104:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:d,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:_,isEmailRequired:g,isNameRequired:m,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:E,isRequiredLabel:w}=e,[x,T]=pZ(!1),[R,k]=pZ(null),[P,I]=pZ(!1),C=u?.input,[A,O]=pZ(null),N=p3(e=>{O(e),I(!1)},[]),L=p3(e=>{let t=function(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:g,isNameRequired:m,messageLabel:y,nameLabel:b});return t.length>0?k(`Please enter in the following required fields: ${t.join(", ")}`):k(null),0===t.length},[h,g,m,y,b]);return pS("form",{class:"form",onSubmit:p3(async e=>{T(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&P?u.value():void 0),r={name:dn(t,"name"),email:dn(t,"email"),message:dn(t,"message"),attachments:n?[n]:void 0};if(!L(r))return;try{let e=await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});a(r,e)}catch(t){c8&&cg.error(t);let e=t instanceof Error?t:Error(String(t));k(e.message),o(e)}}finally{T(!1)}},[u&&P,a,o])},C&&P?pS(C,{onError:N}):null,pS("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},pS("div",{class:"form__top"},R?pS("div",{class:"form__error-container"},R):null,l?pS("label",{for:"name",class:"form__label"},pS(di,{label:b,isRequiredLabel:w,isRequired:m}),pS("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:m,type:"text"})):pS("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?pS("label",{for:"email",class:"form__label"},pS(di,{label:h,isRequiredLabel:w,isRequired:g}),pS("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:_,required:g,type:"email"})):pS("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),pS("label",{for:"message",class:"form__label"},pS(di,{label:y,isRequiredLabel:w,isRequired:!0}),pS("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),C?pS("label",{for:"screenshot",class:"form__label"},pS("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{O(null),I(e=>!e)}},P?d:p),A?pS("div",{class:"form__error-container"},A.message):null):null),pS("div",{class:"btn-group"},pS("button",{class:"btn btn--primary",disabled:x,type:"submit"},E),pS("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},f))))}function di({label:e,isRequired:t,isRequiredLabel:n}){return pS("span",{class:"form__label__text"},e,t&&pS("span",{class:"form__label__text--required"},n))}function da({open:e,onFormSubmitted:t,...n}){let r=n.options,i=p2(()=>({__html:function(){let e=e=>ca.document.createElementNS("http://www.w3.org/2000/svg",e),t=pe(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=pe(e("g"),{clipPath:"url(#clip0_57_156)"}),r=pe(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=pe(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
10410.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);let a=e("defs"),o=pe(e("clipPath"),{id:"clip0_57_156"}),s=pe(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}().outerHTML}),[]),[a,o]=pZ(null),s=p3(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),l=p3((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},5e3))},[t]);return pS(pw,null,a?pS("div",{class:"success__position",onClick:s},pS("div",{class:"success__content"},r.successMessageText,pS("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):pS("dialog",{class:"dialog",onClick:r.onFormClose,open:e},pS("div",{class:"dialog__position"},pS("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},pS(dt,{options:r}),pS(dr,{...n,onSubmitSuccess:l})))))}let ds=`
105.dialog {
106  position: fixed;
107  z-index: var(--z-index);
108  margin: 0;
109  inset: 0;
110
111  display: flex;
112  align-items: center;
113  justify-content: center;
114  padding: 0;
115  height: 100vh;
116  width: 100vw;
117
118  color: var(--dialog-color, var(--foreground));
119  fill: var(--dialog-color, var(--foreground));
120  line-height: 1.75em;
121
122  background-color: rgba(0, 0, 0, 0.05);
123  border: none;
124  inset: 0;
125  opacity: 1;
126  transition: opacity 0.2s ease-in-out;
127}
128
129.dialog__position {
130  position: fixed;
131  z-index: var(--z-index);
132  inset: var(--dialog-inset);
133  padding: var(--page-margin);
134  display: flex;
135  max-height: calc(100vh - (2 * var(--page-margin)));
136}
137@media (max-width: 600px) {
138  .dialog__position {
139    inset: var(--page-margin);
140    padding: 0;
141  }
142}
143
144.dialog__position:has(.editor) {
145  inset: var(--page-margin);
146  padding: 0;
147}
148
149.dialog:not([open]) {
150  opacity: 0;
151  pointer-events: none;
152  visibility: hidden;
153}
154.dialog:not([open]) .dialog__content {
155  transform: translate(0, -16px) scale(0.98);
156}
157
158.dialog__content {
159  display: flex;
160  flex-direction: column;
161  gap: 16px;
162  padding: var(--dialog-padding, 24px);
163  max-width: 100%;
164  width: 100%;
165  max-height: 100%;
166  overflow: auto;
167
168  background: var(--dialog-background, var(--background));
169  border-radius: var(--dialog-border-radius, 20px);
170  border: var(--dialog-border, var(--border));
171  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
172  transform: translate(0, 0) scale(1);
173  transition: transform 0.2s ease-in-out;
174}
175
176`,dl=`
177.dialog__header {
178  display: flex;
179  gap: 4px;
180  justify-content: space-between;
181  font-weight: var(--dialog-header-weight, 600);
182  margin: 0;
183}
184.dialog__title {
185  align-self: center;
186  width: var(--form-width, 272px);
187}
188
189@media (max-width: 600px) {
190  .dialog__title {
191    width: auto;
192  }
193}
194
195.dialog__position:has(.editor) .dialog__title {
196  width: auto;
197}
198
199
200.brand-link {
201  display: inline-flex;
202}
203.brand-link:focus-visible {
204  outline: var(--outline);
205}
206`,du=`
207.form {
208  display: flex;
209  overflow: auto;
210  flex-direction: row;
211  gap: 16px;
212  flex: 1 0;
213}
214
215.form fieldset {
216  border: none;
217  margin: 0;
218  padding: 0;
219}
220
221.form__right {
222  flex: 0 0 auto;
223  display: flex;
224  overflow: auto;
225  flex-direction: column;
226  justify-content: space-between;
227  gap: 20px;
228  width: var(--form-width, 100%);
229}
230
231.dialog__position:has(.editor) .form__right {
232  width: var(--form-width, 272px);
233}
234
235.form__top {
236  display: flex;
237  flex-direction: column;
238  gap: 8px;
239}
240
241.form__error-container {
242  color: var(--error-color);
243  fill: var(--error-color);
244}
245
246.form__label {
247  display: flex;
248  flex-direction: column;
249  gap: 4px;
250  margin: 0px;
251}
252
253.form__label__text {
254  display: flex;
255  gap: 4px;
256  align-items: center;
257}
258
259.form__label__text--required {
260  font-size: 0.85em;
261}
262
263.form__input {
264  font-family: inherit;
265  line-height: inherit;
266  background: transparent;
267  box-sizing: border-box;
268  border: var(--input-border, var(--border));
269  border-radius: var(--input-border-radius, 6px);
270  color: var(--input-color, inherit);
271  fill: var(--input-color, inherit);
272  font-size: var(--input-font-size, inherit);
273  font-weight: var(--input-font-weight, 500);
274  padding: 6px 12px;
275}
276
277.form__input::placeholder {
278  opacity: 0.65;
279  color: var(--input-placeholder-color, inherit);
280  filter: var(--interactive-filter);
281}
282
283.form__input:focus-visible {
284  outline: var(--input-focus-outline, var(--outline));
285}
286
287.form__input--textarea {
288  font-family: inherit;
289  resize: vertical;
290}
291
292.error {
293  color: var(--error-color);
294  fill: var(--error-color);
295}
296`,dc=`
297.btn-group {
298  display: grid;
299  gap: 8px;
300}
301
302.btn {
303  line-height: inherit;
304  border: var(--button-border, var(--border));
305  border-radius: var(--button-border-radius, 6px);
306  cursor: pointer;
307  font-family: inherit;
308  font-size: var(--button-font-size, inherit);
309  font-weight: var(--button-font-weight, 600);
310  padding: var(--button-padding, 6px 16px);
311}
312.btn[disabled] {
313  opacity: 0.6;
314  pointer-events: none;
315}
316
317.btn--primary {
318  color: var(--button-primary-color, var(--accent-foreground));
319  fill: var(--button-primary-color, var(--accent-foreground));
320  background: var(--button-primary-background, var(--accent-background));
321  border: var(--button-primary-border, var(--border));
322  border-radius: var(--button-primary-border-radius, 6px);
323  font-weight: var(--button-primary-font-weight, 500);
324}
325.btn--primary:hover {
326  color: var(--button-primary-hover-color, var(--accent-foreground));
327  fill: var(--button-primary-hover-color, var(--accent-foreground));
328  background: var(--button-primary-hover-background, var(--accent-background));
329  filter: var(--interactive-filter);
330}
331.btn--primary:focus-visible {
332  background: var(--button-primary-hover-background, var(--accent-background));
333  filter: var(--interactive-filter);
334  outline: var(--button-primary-focus-outline, var(--outline));
335}
336
337.btn--default {
338  color: var(--button-color, var(--foreground));
339  fill: var(--button-color, var(--foreground));
340  background: var(--button-background, var(--background));
341  border: var(--button-border, var(--border));
342  border-radius: var(--button-border-radius, 6px);
343  font-weight: var(--button-font-weight, 500);
344}
345.btn--default:hover {
346  color: var(--button-color, var(--foreground));
347  fill: var(--button-color, var(--foreground));
348  background: var(--button-hover-background, var(--background));
349  filter: var(--interactive-filter);
350}
351.btn--default:focus-visible {
352  background: var(--button-hover-background, var(--background));
353  filter: var(--interactive-filter);
354  outline: var(--button-focus-outline, var(--outline));
355}
356`,dp=`
357.success__position {
358  position: fixed;
359  inset: var(--dialog-inset);
360  padding: var(--page-margin);
361  z-index: var(--z-index);
362}
363.success__content {
364  background: var(--success-background, var(--background));
365  border: var(--success-border, var(--border));
366  border-radius: var(--success-border-radius, 1.7em/50%);
367  box-shadow: var(--success-box-shadow, var(--box-shadow));
368  font-weight: var(--success-font-weight, 600);
369  color: var(--success-color);
370  fill: var(--success-color);
371  padding: 12px 24px;
372  line-height: 1.75em;
373
374  display: grid;
375  align-items: center;
376  grid-auto-flow: column;
377  gap: 6px;
378  cursor: default;
379}
380
381.success__icon {
382  display: flex;
383}
384`,dd=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=e.useSentryUser,a=function(){let e=cC().getUser(),t=cI((cs(ca),ca)).getIsolationScope().getUser(),n=cl("globalScope",()=>new cS).getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),o=cL.createElement("div"),s=function(e){let t=cL.createElement("style");return t.textContent=`
385:host {
386  --dialog-inset: var(--inset);
387}
388
389${ds}
390${dl}
391${du}
392${dc}
393${dp}
394`,e&&t.setAttribute("nonce",e),t}(e.styleNonce),l="",u={get el(){return o},appendToDom(){r.contains(s)||r.contains(o)||(r.appendChild(s),r.appendChild(o))},removeFromDom(){o.remove(),s.remove(),cL.body.style.overflow=l},open(){p(!0),e.onFormOpen?.(),cA()?.emit("openFeedbackWidget"),l=cL.body.style.overflow,cL.body.style.overflow="hidden"},close(){p(!1),cL.body.style.overflow=l}},c=t?.createInput({h:pS,hooks:de,dialog:u,options:e}),p=t=>{!function(e,t,n){var r,i,a;pu.__&&pu.__(e,t),r=t.__k,i=[],a=[],pN(t,e=t.__k=pS(pw,null,[e]),r||p_,p_,void 0!==t.ownerSVGElement,r?null:t.firstChild?pl.call(t.childNodes):null,i,r?r.__e:t.firstChild,!1,a),e.__d=void 0,pL(i,e,a)}(pS(da,{options:e,screenshotInput:c,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&a?.[i.name]||""),defaultEmail:String(i&&a?.[i.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{p(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),o)};return u}});function df(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function dh(e,t){df(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function d_(e,t,n){df(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let dg=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=cL.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:i}){let a=function(){let[t,n]=e.useState(ca.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(ca.devicePixelRatio)},t=matchMedia(`(resolution: ${ca.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await cj.mediaDevices.getDisplayMedia({video:{width:ca.innerWidth*a,height:ca.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=cL.createElement("video");await new Promise((t,r)=>{i.srcObject=e,i.onloadedmetadata=()=>{n(i,a),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(r)}),r()})().catch(i)},[])}}({hooks:t}),o=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),s=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),l={__html:function(e){let t=cL.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
395.editor {
396  display: flex;
397  flex-grow: 1;
398  flex-direction: column;
399}
400
401.editor__image-container {
402  justify-items: center;
403  padding: 15px;
404  position: relative;
405  height: 100%;
406  border-radius: var(--menu-border-radius, 6px);
407
408  background-color: ${n};
409  background-image: repeating-linear-gradient(
410      -145deg,
411      transparent,
412      transparent 8px,
413      ${n} 8px,
414      ${n} 11px
415    ),
416    repeating-linear-gradient(
417      -45deg,
418      transparent,
419      transparent 15px,
420      ${r} 15px,
421      ${r} 16px
422    );
423}
424
425.editor__canvas-container {
426  width: 100%;
427  height: 100%;
428  position: relative;
429  display: flex;
430  align-items: center;
431  justify-content: center;
432}
433
434.editor__canvas-container > * {
435  object-fit: contain;
436  position: absolute;
437}
438
439.editor__tool-container {
440  padding-top: 8px;
441  display: flex;
442  justify-content: center;
443}
444
445.editor__tool-bar {
446  display: flex;
447  gap: 8px;
448}
449
450.editor__tool {
451  display: flex;
452  padding: 8px 12px;
453  justify-content: center;
454  align-items: center;
455  border: var(--button-border, var(--border));
456  border-radius: var(--button-border-radius, 6px);
457  background: var(--button-background, var(--background));
458  color: var(--button-color, var(--foreground));
459}
460
461.editor__tool--active {
462  background: var(--button-primary-background, var(--accent-background));
463  color: var(--button-primary-color, var(--accent-foreground));
464}
465
466.editor__rect {
467  position: absolute;
468  z-index: 2;
469}
470
471.editor__rect button {
472  opacity: 0;
473  position: absolute;
474  top: -12px;
475  right: -12px;
476  cursor: pointer;
477  padding: 0;
478  z-index: 3;
479  border: none;
480  background: none;
481}
482
483.editor__rect:hover button {
484  opacity: 1;
485}
486`,e&&t.setAttribute("nonce",e),t}(i.styleNonce).innerText},u=r.el.style,c=({screenshot:r})=>{let[a,u]=t.useState("highlight"),[c,p]=t.useState([]),d=t.useRef(null),f=t.useRef(null),h=t.useRef(null),_=t.useRef(null),[g,m]=t.useState(1),y=t.useMemo(()=>{let e=cL.getElementById(i.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=d.current;t&&(df(r.canvas,{alpha:!1},e=>
486{m(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),ca.addEventListener("resize",e),()=>{ca.removeEventListener("resize",e)}},[r]);let v=t.useCallback((e,t)=>{df(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{v(f.current,r.dpi),dh(f.current,r.canvas)},[r]),t.useEffect(()=>{v(h.current,r.dpi),df(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),d_(h.current,y,c)},[c,y]),t.useEffect(()=>{v(n,r.dpi),dh(n,r.canvas),df(cL.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,d_(e,y,c),dh(n,e)})},[c,r,y]);let b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),p(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*g}px`,height:`${r.canvas.height*g}px`},E=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:d},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:_,onMouseDown:e=>{if(!a||!_.current)return;let t=_.current.getBoundingClientRect(),n={type:a,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{let r=(n.clientX-t.x)/g,i=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{df(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),d_(h.current,y,[...c,r(n,e)])},o=e=>{let t=r(n,e);t.w*g>=1&&t.h*g>=1&&p(e=>[...e,t]),cL.removeEventListener("mousemove",i),cL.removeEventListener("mouseup",o)};cL.addEventListener("mousemove",i),cL.addEventListener("mouseup",o)},style:S},c.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:b(n),onMouseDown:E,onMouseUp:E,type:"button"},e(s,null))))))),e(o,{options:i,action:a,setAction:u}))};return function({onError:r}){let[i,o]=t.useState();return(a({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{df(cL.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(e=>{u.display="block",r(e)},[])}),i)?e(c,{screenshot:i}):e("div",null)}}({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),dm=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],dy={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function dv(e,t){let n=dm.includes(e)?dy[e]||e.replace("Integration","").toLowerCase():void 0,r=ar.Sentry=ar.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let i=r[e];if("function"==typeof i&&!("_isShim"in i))return i;let a=function(e){let t=t7();return new URL(`/${e$}/${e}.min.js`,t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com").toString()}(n),o=ar.document.createElement("script");o.src=a,o.crossOrigin="anonymous",o.referrerPolicy="strict-origin",t&&o.setAttribute("nonce",t);let s=new Promise((e,t)=>
486{o.addEventListener("load",()=>e()),o.addEventListener("error",t)}),l=ar.document.currentScript,u=ar.document.body||ar.document.head||l?.parentElement;if(u)u.appendChild(o);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let c=r[e];if("function"!=typeof c)throw Error(`Could not load integration: ${e}`);return c}let db=po({lazyLoadIntegration:dv}),dS=po({getModalIntegration:()=>dd,getScreenshotIntegration:()=>dg}),dE="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function dw(e,t){let n;return r9(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function dx(e,t){return n=>{let r=e(n),i=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.[dE]&&Array.isArray(t.extra[dE])?t.extra[dE]:[]});function o(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=nE(t);if(!s)return;let l=r4(s,n.tunnel);o=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=dw(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),i.set(a,o)}return[t,o]}return{send:async function(e){let t=a({envelope:e,getEvent:function(t){return dw(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send(r7(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}let dT=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],dR=["removeListener","off","removeEventListener"],dk=Symbol("SentryScopeBoundListeners");function dP(e,t=t2()){var n,r;if(e[dk])return e;for(let n of(dC(e),dT))"function"==typeof e[n]&&(e[n]=function(e,t,n){return function(...r){let i=r[0],a=r[1],o=r.slice(2);if(!dI(a)||void 0!==w&&(a===w||a.listener===w))return t.apply(this,r);let s=function(e){return e[dk]}(e)||dC(e),l=s.get(i);l||(l=new WeakMap,s.set(i,l));let u=l.get(a);u||(u=function(...e){return t5(n,()=>a.apply(this,e))},l.set(a,u));let c=w;w=u;try{return t.call(this,i,u,...o)}finally{w=c}}}(e,e[n],t));for(let t of dR)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...n){let r=n[0],i=n[1],a=n.slice(2),o=dI(i)?(function(e){return e[dk]})(e)?.get(r)?.get(i):void 0;return o?t.call(this,r,o,...a):t.apply(this,n)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(n=e,r=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[dk]}(n);if(t)if(0===e.length)dC(n);else{let n=e[0];t.delete(n)}return r.apply(this,e)}),e}function dI(e){return"function"==typeof e}function dC(e){let t=new Map;return e[dk]=t,t}let dA=(e={})=>{let t=e.levels||ez,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in eU&&ah(({args:r,level:i})=>{t7()===e&&t.includes(i)&&function(e,t,n){let r=aR(t),i=Error(),a={level:aR(t),extra:{arguments:e}};t5(o=>{if(o.addEventProcessor(e=>(e.logger="console",tA(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${tx(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),o.captureMessage(t,r,{captureContext:a,syntheticException:i})}return}let s=e.find(e=>e instanceof Error);if(s)return void ry(s,a);let l=tx(e," ");o.captureMessage(l,r,{captureContext:a,syntheticException:i})})}(r,i,n)})}}};function dO(e,t={},n=t2()){let{message:r,name:i,email:a,url:o,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:a,name:i,message:r,url:o,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=n?.getClient()||t7();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}function dN(e,t,n){var r,i,a;return"util"in eU&&"function"==typeof eU.util.format?eU.util.format(...e):(r=e,i=t,a=n,r.map(e=>e4(e)?String(e):JSON.stringify(tv(e,i,a))).join(" "))}function dL(e){return/%[sdifocO]/.test(e)}function dj(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}
486let dM={[nl]:"auto.log.console"},dD=(e={})=>{let t=e.levels||ez;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();if(!n){eW&&eX.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let a=ah(({args:n,level:a})=>{if(t7()!==e||!t.includes(a))return;let o=n[0],s=n.slice(1);if("assert"===a){o||iy({level:"error",message:s.length>0?`Assertion failed: ${dN(s,r,i)}`:"Assertion failed",attributes:dM});return}let l="log"===a,u={...dM};if(e5(o)){Object.assign(u,tv(o,r,i));let e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=tv(e,r,i)})}else if(s.length>0&&"string"==typeof o&&!dL(o))for(let[e,t]of Object.entries(dj(o,s)))u[e]=e.startsWith("sentry.message.parameter.")?tv(t,r,i):t;iy({level:l?"info":a,message:dN(n,r,i),severityNumber:l?10:void 0,attributes:u})});e.registerCleanup(a)}}},d$=["trace","debug","info","warn","error","fatal"];function dU(e={}){let t=new Set(e.levels??d$),n=e.client;return{log(e){let{type:r,level:i,message:a,args:o,tag:s,date:l,...u}=e,c=n||t7();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=dF[e];if(t)return t}if("number"==typeof t){let e=dB[t];if(e)return e}return"info"}(r,i);if(!t.has(p))return;let{normalizeDepth:d=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=tv(t,d,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),r&&(h["consola.type"]=r),null!=i&&"number"==typeof i&&(h["consola.level"]=i);let _=function(e,t,n){let{message:r,attributes:i,messageTemplate:a,messageParameters:o}=e,s={};if(a&&o)for(let[e,r]of Object.entries(dj(a,o)))s[e]=e.startsWith("sentry.message.parameter.")?tv(r,t,n):r;else o&&o.length>0&&o.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=tv(e,t,n)});return{message:r,attributes:{...tv(i,t,n),...s}}}(function(e,t,n){if(!e?.length)return{message:""};let r=dN(e,t,n),i=e[0];if(e5(i)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof i&&!dL(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}(o,d,f),d,f);_?.attributes&&Object.assign(h,_.attributes),iy({level:p,message:_?.message||a||o&&dN(o,d,f)||"",attributes:h})}}}let dF={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},dB={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},dH="gen_ai.system",dW="gen_ai.request.model",dz="gen_ai.request.stream",dq="gen_ai.request.temperature",dY="gen_ai.request.max_tokens",dG="gen_ai.request.frequency_penalty",dJ="gen_ai.request.presence_penalty",dV="gen_ai.request.top_p",dX="gen_ai.request.top_k",dK="gen_ai.request.encoding_format",dQ="gen_ai.request.dimensions",dZ="gen_ai.response.finish_reasons",d0="gen_ai.response.model",d1="gen_ai.response.id",d2="gen_ai.usage.input_tokens",d3="gen_ai.usage.output_tokens",d4="gen_ai.usage.total_tokens",d5="gen_ai.operation.name",d6="sentry.sdk_meta.gen_ai.input.messages.original_length",d7="gen_ai.input.messages",d8="gen_ai.system_instructions",d9="gen_ai.response.text",fe="gen_ai.request.available_tools",ft="gen_ai.response.tool_calls",fn="gen_ai.agent.name",fr="gen_ai.conversation.id",fi="gen_ai.embeddings.input",fa="gen_ai.embeddings",fo="gen_ai.execute_tool",fs="gen_ai.tool.name",fl="gen_ai.tool.input",fu="gen_ai.tool.output";function fc(e){var t,n,r,i,a,o,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&fc(t.source)||fd(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):fp(n))||ff(e)||fh(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(i=e)&&"file"===i.type&&"mediaType"in i&&"string"==typeof i.mediaType&&"data"in i&&"string"==typeof i.data&&!i.data.startsWith("http://")&&!i.data.startsWith("https://")||"type"in(a=e)&&"image"===a.type&&"image"in a&&"string"==typeof a.image&&!a.image.startsWith("http://")&&!a.image.startsWith("https://")||"type"in(o=e)&&("blob"===o.type||"base64"===o.type)||"b64_json"in e||"type"in(s=e)&&"result"in s&&"image_generation"===s.type||"uri"in(l=e)&&"string"==typeof l.uri&&l.uri.startsWith("data:"))}function fp(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.
486image_url.url.startsWith("data:")}function fd(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function ff(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function fh(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let f_="[Blob substitute]",fg=["image_url","data","content","b64_json","result","uri","image"];function fm(e){let t={...e};for(let n of(fc(t.source)&&(t.source=fm(t.source)),fd(e)&&(t.inlineData={...e.inlineData,data:f_}),fp(e)&&(t.image_url={...e.image_url,url:f_}),ff(e)&&(t.input_audio={...e.input_audio,data:f_}),fh(e)&&(t.file={...e.file,file_data:f_}),fg))"string"==typeof t[n]&&(t[n]=f_);return t}let fy=e=>new TextEncoder().encode(e).length,fv=e=>fy(JSON.stringify(e));function fb(e,t){if(fy(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){let a=Math.floor((n+r)/2),o=e.slice(0,a);fy(o)<=t?(i=o,n=a+1):r=a-1}return i}function fS(e,t){return"string"==typeof e?t:{...e,text:t}}function fE(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function fw(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function fx(e){let t=t7()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function fT(e){if(void 0!==e)return e;let t=t7();return!t||!iR(t)&&!1===t.getOptions().streamGenAiSpans}function fR(e,t){return e?`${e}.${t}`:t}function fk(e,t,n){if(!e.isRecording())return;let r={"gen_ai.response.streaming":!0};t.responseId&&(r[d1]=t.responseId),t.responseModel&&(r[d0]=t.responseModel),void 0!==t.promptTokens&&(r[d2]=t.promptTokens),void 0!==t.completionTokens&&(r[d3]=t.completionTokens),void 0!==t.totalTokens?r[d4]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(r[d4]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[dZ]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[d9]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[ft]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function fP(e){if("string"==typeof e)return fb(e,2e4);try{return JSON.stringify(Array.isArray(e)?function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(fE(t)?n={...t,content:e(t.content)}:"content"in t&&fc(t.content)&&(n={...t,content:fm(t.content)}),fw(t)&&(n={...n??t,parts:e(t.parts)}),fc(n)?n=fm(n):fc(t)&&(n=fm(t))),n??t})}([e[e.length-1]]),n=t[0];return 19998>=fv(n)?t:function(e,t){if(!e)return[];if("string"==typeof e){let t=fb(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let n=t-fv({...e,content:""});if(n<=0)return[];let r=fb(e.content,n);return[{...e,content:r}]}return fE(e)||fw(e)?function(e,t){let{key:n,items:r}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===n||0===r.length)return[];let i=r.map(e=>fS(e,"")),a=t-fv({...e,[n]:i});if(a<=0)return[];let o=[];for(let e of r){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",n=fy(t);if(n<=a)o.push(e),a-=n;else if(0===o.length){let n=fb(t,a);n&&o.push(fS(e,n));break}else break}return o.length<=0?[]:[{...e,[n]:o}]}(e,t):[]}(n,19998)}(e):e)}catch{return"[unserializable]"}}function fI(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}
486async function fC(e,t,n){let r=e.catch(e=>{throw ry(e,{mechanism:{handled:!1,type:n}}),e}),i=await t,a=await r;return a&&"object"==typeof a&&"data"in a?{...a,data:i}:i}function fA(e,t,n){return e8(e)?new Proxy(e,{get(e,r){let i=r in Promise.prototype||r===Symbol.toStringTag?t:e,a=Reflect.get(i,r);return"withResponse"===r&&"function"==typeof a?function(){return fC(a.call(e),t,n)}:"function"==typeof a?a.bind(i):a}}):t}let fO="auto.ai.langchain",fN={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},fL=(e,t,n)=>{null!=n&&(e[t]=n)},fj=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function fM(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&fc(e)?fm(e):e);return JSON.stringify(t)}catch{return String(e)}return tS(e,String)}function fD(e){let t=e.toLowerCase();return fN[t]??t}function f$(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function fU(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function fF(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:fD(t.call(e)),content:fM(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:fD("string"==typeof n?f$(n):"user"),content:fM(e.kwargs?.content)}}if(e.type)return{role:fD(String(e.type).toLowerCase()),content:fM(e.content)};if(e.role)return{role:fD(String(e.role)),content:fM(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:fD(f$(n)),content:fM(e.content)}:{role:"user",content:fM(e.content)}})}function fB(e,t,n,r,i){return{[dH]:tS(e??"langchain",String),[d5]:"chat",[dW]:tS(t,String),[nl]:fO,...function(e,t,n){let r={},i="kwargs"in e?e.kwargs:void 0;return fj(r,dq,t?.temperature??n?.ls_temperature??i?.temperature),fj(r,dY,t?.max_tokens??n?.ls_max_tokens??i?.max_tokens),fj(r,dV,t?.top_p??i?.top_p),fj(r,dG,t?.frequency_penalty),fj(r,dJ,t?.presence_penalty),t&&"stream"in t&&fL(r,dz,!!t.stream),r}(n,r,i)}}function fH(e){let t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[fn]=n),t}function fW(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function fz(e={}){let{recordInputs:t,recordOutputs:n}=fx(e),r=fT(e.enableTruncation),i=new Map,a=e=>{let t=i.get(e);t?.isRecording()&&(t.end(),i.delete(e))},o={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,a,o,s,l,u,c){let p=function(e,t,n,r,i,a){let o=fB(a?.ls_provider,i?.model??a?.ls_model_name??"unknown",e,i,a);if(n&&Array.isArray(t)&&t.length>0){fL(o,d6,t.length);let e=t.map(e=>({role:"user",content:e}));fL(o,d7,r?fP(e):tS(e))}return o}(e,n,t,r,fU(l),u),d=p[dW],f=p[d5];oY({name:`${f} ${d}`,op:"gen_ai.chat",attributes:{...fH(u),...p,[ns]:"gen_ai.chat"}},e=>(i.set(a,e),e))},handleChatModelStart(e,n,a,o,s,l,u,c){let p=function(e,t,n,r,i,a){let o=fB(a?.ls_provider??e.id?.[2],i?.model??a?.ls_model_name??"unknown",e,i,a);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=fI(fF(t.flat()));e&&fL(o,d8,e),fL(o,d6,Array.isArray(n)?n.length:0),fL(o,d7,r?fP(n):tS(n))}return o}(e,n,t,r,fU(l),u),d=function(e){let t=e?.invocation_params?.tools??e?.options?.tools;if(Array.isArray(t)&&0!==t.length)return JSON.stringify(t.map(e=>{let t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}}))}(s);d&&(p[fe]=d);let f=p[dW],h=p[d5];oY({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...fH(u),...p,[ns]:"gen_ai.chat"}},e=>(i.set(a,e),e))},handleLLMEnd(e,t,r,o,s){let l=i.get(t);if(l?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&fL(n,dZ,tS(r,String)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message,r=e?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}}n.length>0&&fL(t,ft,tS(n,String))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&fL(n,d9,tS(t,String))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)fj(t,d2,n.promptTokens),fj(t,d3,n.completionTokens),fj(t,d4,n.totalTokens);else if(r){fj(t,d2,r.input_tokens),fj(t,d3,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&fj(t,d4,i),void 0!==r.cache_creation_input_tokens&&fj(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&fj(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0],a=i?.message,o=r?.model_name??r?.model??a?.response_metadata?.model_name;o&&fL(n,d0,o);let s=r?.id??a?.id;s&&fL(n,d1,s);let l=r?.stop_reason??a?.response_metadata?.finish_reason;return l&&fL(n,"gen_ai.response.stop_reason",tS(l,String)),n}(e,n);r&&l.setAttributes(r),a(t)}},handleLLMError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),a(t)),ry(e,{mechanism:{handled:!1,type:`${fO}.llm_error_handler`}})},handleChainStart(e,n,r,a,o,s,l,u){if(s?.__sentry_langgraph__)return;let c=u||e.name||"unknown_chain",p={[nl]:"auto.ai.langchain","langchain.chain.name":c};t&&(p["langchain.chain.inputs"]=JSON.stringify(n)),oY({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...p,[ns]:"gen_ai.invoke_agent"}},e=>(i.set(r,e),e))},handleChainEnd(e,t){let r=i.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),a(t))},handleChainError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),a(t)),ry(e,{mechanism:{handled:!1,type:`${fO}.chain_error_handler`}})},handleToolStart(e,n,r,a,o,s,l){if(s?.__sentry_langgraph__)return;let u=l||e.name||"unknown_tool",c={...fH(s),[nl]:fO,[d5]:"execute_tool",[fs]:u};t&&(c[fl]=n),oY({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...c,[ns]:"gen_ai.execute_tool"}},e=>(i.set(r,e),e))},handleToolEnd(e,t){let r=i.get(t);if(r?.isRecording()){if(n){let t=e&&"object"==typeof e&&"content"in e?e.content:e;
486r.setAttributes({[fu]:"string"==typeof t?t:JSON.stringify(t)})}a(t)}},handleToolError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),a(t)),ry(e,{mechanism:{handled:!1,type:`${fO}.tool_error_handler`}})},copy:()=>o,toJSON:()=>({lc:1,type:"not_implemented",id:o.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:o.lc_id})};return o}let fq=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,i){let{maxValueLength:a}=i.getOptions();return function(e,t={},n,r,i){if(!t.originalException||!eQ(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=function e(t,n,r){try{let i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(let e of Object.keys(t)){if(-1!==i.indexOf(e))continue;let n=t[e];a[e]=eQ(n)||"string"==typeof n?r?tE(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause&&(eQ(t.cause)?a.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:a.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];a[t]=eQ(n)?n.toString():n}}return a}catch(e){eW&&eX.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,i);if(o){let t={...e.contexts},r=tv(o,n);return e5(r)&&(tn(r,tc,!0),t[a]=r),{...e,contexts:t}}return e}(e,r,t,n,a)}}},fY="flag.evaluation.";function fG(e){if(e.type)return e;let t=t2().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function fJ(e,t,n=100){let r=t2().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r){eW&&eX.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function fV(e,t,n=10){if("boolean"!=typeof t)return;let r=rr();if(!r)return;let i=nK(r).data;if(`${fY}${e}`in i)return void r.setAttribute(`${fY}${e}`,t);Object.keys(i).filter(e=>e.startsWith(fY)).length<n&&r.setAttribute(`${fY}${e}`,t)}let fX=()=>
486({name:"FeatureFlags",processEvent:(e,t,n)=>fG(e),addFeatureFlag(e,t){fJ(e,t),fV(e,t)}}),fK={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},fQ={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function fZ(e){return e&&fQ[e]||"internal_error"}function f0(e,t,n,r){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(r.setStatus({code:2,message:fZ(e.error?.type)}),ry(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let i=r.inputJsonParts.join("");try{n=i?JSON.parse(i):{}}catch{n={__unparsed:i}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*f1(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)f0(i,r,n,t),yield i}finally{fk(t,r,n)}}function f2(e,t,n){!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:i}=fI(t);r&&e.setAttributes({[d8]:r});let a=Array.isArray(i)?i.length:1;e.setAttributes({[d7]:n?fP(i):tS(i),[d6]:a})}(e,function(e){let{system:t,messages:n,input:r}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],a=Array.isArray(r)?r:null!=r?[r]:void 0,o=Array.isArray(n)?n:null!=n?[n]:[];return[...i,...a??o]}(t),n),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function f3(e,t,n){throw ry(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end()),e}function f4(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,i){let a=t[i],o=fR(n,String(i)),s=fK[o];if("function"==typeof a&&s)return new Proxy(a,{apply(e,n,i){let l,u=s.operation||"unknown",c=function(e,t,n){let r={[dH]:"anthropic",[d5]:n,[nl]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[fe]=JSON.stringify(t.tools)),r[dW]=t.model??"unknown","temperature"in t&&(r[dq]=t.temperature),"top_p"in t&&(r[dV]=t.top_p),"stream"in t&&(r[dz]=t.stream),"top_k"in t&&(r[dX]=t.top_k),"frequency_penalty"in t&&(r[dG]=t.frequency_penalty),"max_tokens"in t&&(r[dY]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[dW]=e[0]:r[dW]="unknown";return r}(i,o,u),p=c[dW]??"unknown",d="object"==typeof i[0]?i[0]:void 0,f=!!d?.stream,h=!0===s.streaming;if(f||h){let n=c[dW]??"unknown",s={name:`${u} ${n}`,op:`gen_ai.${u}`,attributes:c};if(!f||h)return oY(s,n=>{try{r.recordInputs&&d&&f2(n,d,fT(r.enableTruncation));var a=e.apply(t,i),s=r.recordOutputs??!1;let o={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return a.on("streamEvent",e=>{f0(e,o,s,n)}),a.on("message",()=>{fk(n,o,s)}),a.on("error",e=>{ry(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),n.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),n.end())}),a}catch(e){return f3(e,n,o)}});{let e,n=oY(s,n=>(e=a.apply(t,i),r.recordInputs&&d&&f2(n,d,fT(r.enableTruncation)),(async()=>{try{let t=await e;return f1(t,n,r.recordOutputs??!1)}catch(e){return f3(e,n,o)}})()));return fA(e,n,"auto.ai.anthropic")}}let _=oq({name:`${u} ${p}`,op:`gen_ai.${u}`,attributes:c},n=>
486(l=e.apply(t,i),r.recordInputs&&d&&f2(n,d,fT(r.enableTruncation)),l.then(e=>(!function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:2,message:fZ(t.error.type)}),ry(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[d9]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[ft]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[d9]:t.completion}),"input_tokens"in t&&e.setAttributes({[d9]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var n,r,i,a;e.setAttributes({[d1]:t.id,[d0]:t.model}),"usage"in t&&t.usage&&(n=t.usage.input_tokens,r=t.usage.output_tokens,i=t.usage.cache_creation_input_tokens,a=t.usage.cache_read_input_tokens,void 0!==n&&e.setAttributes({[d2]:n}),void 0!==r&&e.setAttributes({[d3]:r}),(void 0!==n||void 0!==r||void 0!==i||void 0!==a)&&e.setAttributes({[d4]:(n??0)+(r??0)+(i??0)+(a??0)}))}}(e,t)}}(n,e,r.recordOutputs),e),e=>{throw ry(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),e})));return fA(l,_,"auto.ai.anthropic")}});return"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,o,r):a}})}(e,"",fx(t))}let f5="auto.ai.langgraph",f6=!1,f7="__sentry_patched__";function f8(e,t,n,r,i,a){return new Proxy(e,{apply(e,o,s){let l=i?.modelName??i?.model;return oq({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[nl]:f5,[ns]:"gen_ai.invoke_agent",[d5]:"invoke_agent"}},async i=>{try{let u=n?.name;u&&"string"==typeof u&&(i.setAttribute("gen_ai.pipeline.name",u),i.setAttribute(fn,u),i.updateName(`invoke_agent ${u}`)),l&&i.setAttribute(dW,l);let c=s.length>1?s[1]:void 0,p=c?.configurable,d=p?.thread_id;if(d&&"string"==typeof d&&i.setAttribute(fr,d),a){let e=s[1]??{};s[1]=e;let t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof u?{lc_agent_name:u}:{}},e.callbacks=function(e,t){if(!e)return[t];if(e&&"object"==typeof e&&"function"==typeof e.addHandler&&"function"==typeof e.copy){if((e.handlers??[]).some(fW))return e;let n=e.copy();return n.addHandler(t,!0),n}let n=Array.isArray(e)?e:[e];return n.some(fW)?e:[...n,t]}(e.callbacks,a)}let f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(t);f&&i.setAttribute(fe,JSON.stringify(f));let h=r.recordInputs,_=r.recordOutputs,g=s.length>0?s[0]?.messages??[]:[];if(g&&h){let e=fF(g),{systemInstructions:t,filteredMessages:n}=fI(e);t&&i.setAttribute(d8,t);let a=fT(r.enableTruncation),o=Array.isArray(n)?n.length:0;i.setAttributes({[d7]:a?fP(n):tS(n),[d6]:o})}let m=await Reflect.apply(e,o,s);return _&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let i=t?.length??0,a=r.length>i?r.slice(i):[];if(0===a.length)return;let o=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(a);o&&e.setAttribute(ft,JSON.stringify(o));let s=fF(a);e.setAttribute(d9,JSON.stringify(s));let l=0,u=0,c=0;for(let t of a){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let i=e.usage_metadata;return"number"==typeof i.input_tokens&&(t=i.input_tokens),"number"==typeof i.output_tokens&&(n=i.output_tokens),"number"==typeof i.total_tokens&&(r=i.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let i=e.response_metadata;if(i.tokenUsage&&"object"==typeof i.tokenUsage){let e=i.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);l+=n.inputTokens,u+=n.outputTokens,c+=n.totalTokens;if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(d0,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(dZ,[n.finish_reason])}}l>0&&e.setAttribute(d2,l),u>0&&e.setAttribute(d3,u),c>0&&e.setAttribute(d4,c)}(i,g??null,m),m}catch(e){throw i.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function f9(e,t){if(Object.prototype.hasOwnProperty.call(e,f7))return e;let n=fx(t),r=fz(n),i=new Proxy(e,{apply(e,t,i){let a,o=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(i),s=function(e){let t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null}(i),l=i[0];l&&Array.isArray(l.tools)&&l.tools.length>0&&function(e,t,n){let r="__sentry_tool_wrapped__";for(let i of e){if(!i||"object"!=typeof i)continue;let e=i.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(i,r))continue;
486let a="string"==typeof i.name?i.name:"unknown_tool",o="string"==typeof i.description?i.description:void 0;i.invoke=new Proxy(e,{apply(e,r,i){let s={[nl]:f5,[ns]:fo,[d5]:"execute_tool",[fs]:a,"gen_ai.tool.type":"function"},l=i[1],u=l?.metadata?.lc_agent_name??n;"string"==typeof u&&(s[fn]=u),o&&(s["gen_ai.tool.description"]=o);let c=i[0];if("object"==typeof c&&c&&("id"in c&&"string"==typeof c.id&&(s["gen_ai.tool.call.id"]=c.id),t.recordInputs)){let e="args"in c&&"object"==typeof c.args?c.args:c;try{s[fl]=JSON.stringify(e)}catch{}}return oq({op:fo,name:`execute_tool ${a}`,attributes:s},async n=>{try{let a=await Reflect.apply(e,r,i);if(t.recordOutputs)try{let e=a&&"object"==typeof a&&"content"in a?a.content:a;n.setAttribute(fu,"string"==typeof e?e:JSON.stringify(e))}catch{}return a}catch(e){throw n.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}}),Object.defineProperty(i,r,{value:!0,enumerable:!1})}}(l.tools,n,s??void 0),f6=!0;try{a=Reflect.apply(e,t,i)}finally{f6=!1}let u=a.invoke;if(u&&"function"==typeof u){let e={};s&&(e.name=s),a.invoke=f8(u.bind(a),a,e,n,o,r)}return a}});return Object.defineProperty(i,f7,{value:!0,enumerable:!1}),i}function he(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,f7))return e;let n=fz(t),r=new Proxy(e,{apply:(e,r,i)=>{var a;
486return f6?Reflect.apply(e,r,i):oq({op:"gen_ai.create_agent",name:"create_agent",attributes:{[nl]:f5,[ns]:"gen_ai.create_agent",[d5]:"create_agent"}},a=>{try{let o=Reflect.apply(e,r,i),s=i.length>0?i[0]:{};s?.name&&"string"==typeof s.name&&(a.setAttribute(fn,s.name),a.updateName(`create_agent ${s.name}`));let l=o.invoke;return l&&"function"==typeof l&&(o.invoke=f8(l.bind(o),o,s,t,void 0,n)),o}catch(e){throw a.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});return Object.defineProperty(r,f7,{value:!0,enumerable:!1}),r}(e.compile,fx(t)),e}let ht={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}};async function*hn(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let i of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:2,message:"internal_error"}),ry(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);let r=e.usageMetadata;r&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount));for(let r of(Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason),r?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(i,r,n,t),yield i}finally{fk(t,r,n)}}function hr(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>hr(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function hi(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function ha(e,t,n,r){if("embeddings"===n){let n=t.contents;null!=n&&e.setAttribute(fi,"string"==typeof n?n:JSON.stringify(n));return}let i=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&i.push(...hr(t.config.systemInstruction,"system")),"history"in t&&i.push(...hr(t.history,"user")),"contents"in t&&i.push(...hr(t.contents,"user")),"message"in t&&i.push(...hr(t.message,"user")),Array.isArray(i)&&i.length){let{systemInstructions:t,filteredMessages:n}=fI(i);t&&e.setAttribute(d8,t);let a=Array.isArray(n)?n.length:0;e.setAttributes({[d6]:a,[d7]:r?fP(n):tS(n)})}}function ho(e,t){return function e(t,n="",r){return new Proxy(t,{get:(t,i,a)=>{let o=Reflect.get(t,i,a),s=fR(n,String(i)),l=ht[s];if("function"==typeof o&&l){let n=l.operation?function(e,t,n,r,i){let a="embeddings"===n.operation;return new Proxy(e,{apply(e,o,s){let l=n.operation||"unknown",u=s[0],c=function(e,t,n){let r={[dH]:"google_genai",[d5]:e,[nl]:"auto.ai.google_genai"};if(t){if(r[dW]=hi(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e=t.config;if(Object.assign(r,function(e){let t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[dq]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[dV]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[dX]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[dY]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[dG]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[dJ]=e.presencePenalty
486),t}(e)),"tools"in e&&Array.isArray(e.tools)){let t=e.tools.flatMap(e=>e.functionDeclarations);r[fe]=JSON.stringify(t)}}}else r[dW]=hi({},n);return r}(l,u,r),p=c[dW]??"unknown";return n.streaming?oY({name:`${l} ${p}`,op:`gen_ai.${l}`,attributes:c},async n=>{try{i.recordInputs&&u&&ha(n,u,l,fT(i.enableTruncation));let t=await e.apply(r,s);return hn(t,n,!!i.recordOutputs)}catch(e){throw n.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),n.end(),e}}):oq({name:`${l} ${p}`,op:`gen_ai.${l}`,attributes:c},n=>(i.recordInputs&&u&&ha(n,u,l,fT(i.enableTruncation)),oW(()=>e.apply(r,s),e=>{ry(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{a||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(d0,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[d2]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[d3]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[d4]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[d9]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[ft]:JSON.stringify(n)})}}}(n,e,i.recordOutputs)})))}})}(o,s,l,t,r):o.bind(t);return l.proxyResultPath?function(...t){let i=n(...t);return i&&"object"==typeof i?e(i,l.proxyResultPath,r):i}:n}return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,r):o}})}(e,"",fx(t))}function hs(e,t={}){return new Proxy(e,{apply:(e,n,r)=>oq(function(e,t,n={}){let{recordInputs:r}=fx(n),i=function(e){let t=e??{},n={[nl]:fO,[ns]:fa,[d5]:"embeddings",[dW]:t.model??"unknown"};return n[dH]=function(e){let t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}(t),"dimensions"in t&&(n[dQ]=t.dimensions),"encodingFormat"in t&&(n[dK]=t.encodingFormat),n}(e),a=i[dW]||"unknown";return r&&null!=t&&(i[fi]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${a}`,op:fa,attributes:i}}(n,r[0],t),()=>Reflect.apply(e,n,r).then(void 0,e=>{throw ry(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))})}function hl(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=hs(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=hs(e.embedDocuments,t)),e}let hu={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},hc=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];async function*hp(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let i of e){if(null!==i&&"object"==typeof i&&"object"in i&&"chat.completion.chunk"===i.object){for(let e of(r.responseId=i.id??r.responseId,r.responseModel=i.model??r.responseModel,i.usage&&(r.promptTokens=i.usage.prompt_tokens,r.completionTokens=i.usage.completion_tokens,r.totalTokens=i.usage.total_tokens),i.choices??[]))n&&(e.delta?.content&&r.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(e.delta.tool_calls,r)),e.finish_reason&&r.finishReasons.push(e.finish_reason)}else null!==i&&"object"==typeof i&&"type"in i&&"string"==typeof i.type&&i.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
486if(e instanceof Error){r.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!hc.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(i,r,n,t);yield i}}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];fk(t,{...r,toolCalls:e},n)}}function hd(e,t,n,r){if("embeddings"===n&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute(fi,"string"==typeof n?n:JSON.stringify(n));return}let i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i||Array.isArray(i)&&0===i.length)return;let{systemInstructions:a,filteredMessages:o}=fI(i);a&&e.setAttribute(d8,a),e.setAttribute(d7,r?fP(o):tS(o)),Array.isArray(o)?e.setAttribute(d6,o.length):e.setAttribute(d6,1)}function hf(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,i){let a=t[i],o=fR(n,String(i)),s=hu[o];if("function"==typeof a&&s)return function(...e){let n,i=s.operation||"unknown",l=function(e,t){let n={[dH]:"openai",[d5]:t,[nl]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0],r=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){eW&&eX.error("Failed to serialize OpenAI tools:",e);return}}(t);r&&(n[fe]=r),Object.assign(n,function(e){let t={[dW]:e.model??"unknown"};"temperature"in e&&(t[dq]=e.temperature),"top_p"in e&&(t[dV]=e.top_p),"frequency_penalty"in e&&(t[dG]=e.frequency_penalty),"presence_penalty"in e&&(t[dJ]=e.presence_penalty),"stream"in e&&(t[dz]=e.stream),"encoding_format"in e&&(t[dK]=e.encoding_format),"dimensions"in e&&(t[dQ]=e.dimensions);let n="conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0;return n&&(t[fr]=n),t}(t))}else n[dW]="unknown";return n}(e,i),u=l[dW]||"unknown",c=e[0],p=c&&"object"==typeof c&&!0===c.stream,d={name:`${i} ${u}`,op:`gen_ai.${i}`,attributes:l};if(p){let n,s=oY(d,s=>(n=a.apply(t,e),r.recordInputs&&c&&hd(s,c,i,fT(r.enableTruncation)),(async()=>{try{let e=await n;return hp(e,s,r.recordOutputs??!1)}catch(e){throw s.setStatus({code:2,message:"internal_error"}),ry(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),s.end(),e}})()));return fA(n,s,"auto.ai.openai")}let f=oq(d,s=>(n=a.apply(t,e),r.recordInputs&&c&&hd(s,c,i,fT(r.enableTruncation)),n.then(e=>(!function(e,t,n){if(!t||"object"!=typeof t)return;let r={};if("string"==typeof t.id&&(r[d1]=t.id),"string"==typeof t.model&&(r[d0]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(r[fr]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,n=e.prompt_tokens??e.input_tokens;"number"==typeof n&&(r[d2]=n);let i=e.completion_tokens??e.output_tokens;"number"==typeof i&&(r[d3]=i),"number"==typeof e.total_tokens&&(r[d4]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,i=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(i.length>0&&(r[dZ]=JSON.stringify(i)),n){let t=e.map(e=>{let t=e.message;return t?.content||""});r[d9]=JSON.stringify(t);let n=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(r[ft]=JSON.stringify(n))}}if("string"!=typeof t.status||r[dZ]||(r[dZ]=JSON.stringify([t.status])),n&&("string"!=typeof t.output_text||r[d9]||(r[d9]=t.output_text),Array.isArray(t.output)&&t.output.length>
4860&&!r[ft])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(r[ft]=JSON.stringify(e))}e.setAttributes(r)}(s,e,r.recordOutputs),e),e=>{throw ry(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),e})));return fA(n,f,"auto.ai.openai")};return"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,o,r):a}})}(e,"",fx(t))}let hh=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],h_=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],hg={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},hm=["select","insert","upsert","update","delete"];function hy(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function hv(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function hb(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function hS(e,t=!1){return new Proxy(e,{apply:(n,r,i)=>oq({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[nl]:"auto.db.supabase",[ns]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,i).then(t=>(e6(t)&&"error"in t&&t.error?(e.setStatus({code:2}),ry(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),ry(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}let hE=(e,t={})=>{if(!e){eW&&eX.warn("Supabase integration was not installed because no Supabase client was provided.");return}!function(e,t){hv(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,n,r){let i=Reflect.apply(e,n,r);return function(e,t){for(let n of hm)hv(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,i){let a=Reflect.apply(e,r,i
486),o=a.constructor;return eW&&eX.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),!function(e,t){hv(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let i=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(n.method,n.headers);if(!hm.includes(i)||!n?.url?.pathname||"string"!=typeof n.url.pathname)return Reflect.apply(e,n,r);let a=n.url.pathname.split("/"),o=a.length>0?a[a.length-1]:"",s=[];for(let[e,t]of n.url.searchParams.entries())s.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...i]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&hg[r]||"filter",`${n}(${e}, ${i.join(".")})`}(e,t));let l=Object.create(null);if(e5(n.body))for(let[e,t]of Object.entries(n.body))l[e]=t;let u=t7(),c=t.sendOperationData??u?.getDataCollectionOptions().databaseQueryData===!0,p=hb(n.body,l),d="select"===i?"":`${i}${void 0!==hb(n.body,l)?"(...) ":""}`,f=c?s.join(" "):s.length>0?"[redacted]":"",h=[d.trimEnd(),f].filter(Boolean).join(" "),_=h?`${h} from(${o})`:`from(${o})`,g={"db.table":o,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":n.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[nl]:"auto.db.supabase",[ns]:"db"};return s.length&&c&&(g["db.query"]=s),void 0!==p&&c&&(g["db.body"]=p),oq({name:_,attributes:g},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&nA(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};s.length&&c&&(n.query=s),void 0!==p&&c&&(n.body=p),ry(t,e=>(e.addEventProcessor(e=>(tA(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let n={type:"supabase",category:`db.${i}`,message:_},r={};return s.length&&c&&(r.query=s),void 0!==p&&c&&(r.body=p),Object.keys(r).length&&(n.data=r),aT(n),e},e=>{throw t&&(nA(t,500),t.end()),e}).then(...r))}}),hy(e.prototype.then))}(o,t),a}}),hy(e.prototype[n]))}(i.constructor,t),i}}),hy(e.prototype.from))}(e.constructor===Function?e:e.constructor,t),function(e){let t=e.auth;if(!(!t||hv(e.auth))){for(let n of hh){let r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=hS(r))}for(let n of h_){let r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=hS(r,!0))}hy(e.auth)}}(e)},hw=e=>{let t,n;return t=e.supabaseClient,n={sendOperationData:e.sendOperationData},{setupOnce(){hE(t,n)},name:"Supabase"}};function hx(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}let hT=hx;function hR(e,t,n,r,i){iy({level:e,message:t,attributes:n,severityNumber:i},r)}function hk(e,t,{scope:n}={}){hR("trace",e,t,n)}function hP(e,t,{scope:n}={}){hR("debug",e,t,n)}function hI(e,t,{scope:n}={}){hR("info",e,t,n)}function hC(e,t,{scope:n}={}){hR("warn",e,t,n)}function hA(e,t,{scope:n}={}){hR("error",e,t,n)}function hO(e,t,{scope:n}={}){hR("fatal",e,t,n)}function hN(e,t,n,r){!function(e,t){let n=t?.scope??t2(),r=t?.captureSerializedMetric??iw,i=n?.getClient()??t7();if(!i){eW&&eX.warn("No client available to capture metric.");return}let{_experiments:a,enableMetrics:o,beforeSendMetric:s}=i.getOptions();if(!(o??a?.enableMetrics??!0)){eW&&eX.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=rg(t3(),n),c=function(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};iE(a,"user.id",n.id,!1),iE(a,"user.email",n.email,!1),iE(a,"user.name",n.username,!1),iE(a,"sentry.release",r),iE(a,"sentry.environment",i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};iE(a,"sentry.sdk.name",o),iE(a,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return iE(a,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&iE(a,"sentry._internal.replay_is_buffering",!0),{...e,attributes:a}}(e,i,l);i.emit("processMetric",c);let p=s||a?.beforeSendMetric,d=p?p(c):c;if(!d){eW&&eX.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,n,r){let[,i]=ip(t,n),a=tz(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,l=tL(),u=ic(l);return{timestamp:l,trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...nk(r),...nk(e.attributes,"skip-undefined"),[u.key]:u.value}}}(d,i,n,u);eW&&eX.log("[Metric]",f),r(i,f),i.emit("afterCaptureMetric",d)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function hL(e,t=1,n){hN("counter",e,t,n)}function hj(e,t,n){hN("gauge",e,t,n)}
486function hM(e,t,n){hN("distribution",e,t,n)}let hD=new Map,h$=new Set;function hU(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(eU._sentryModuleMetadata)for(let t of Object.keys(eU._sentryModuleMetadata)){let n=eU._sentryModuleMetadata[t];if(!h$.has(t)){for(let r of(h$.add(t),e(t).reverse()))if(r.filename){hD.set(r.filename,n);break}}}return hD.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function hF(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let hB=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{r9(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(hF(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||hU(e.getOptions().stackParser,t)})}}),hH=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{r9(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(hF(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||hU(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(eU._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=ty(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(hq))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(hz))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(hW)).map(e=>e.slice(hW.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),hW="_sentryBundlerPluginAppKey:",hz="Attempt to invoke user-land function",hq="fn.apply(this, wrappedArguments)";function hY(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let hG=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var i;if(!n.exception?.values||!r.originalException||!(eQ(i=r.originalException)&&"ZodError"===i.name&&Array.isArray(i.issues))||0===r.originalException.issues.length)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(hY);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${tE(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
487${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}},hJ={startProfiler:function(){let e=t7();if(!e){a$&&eX.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){a$&&eX.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=t7();if(!e){a$&&eX.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){a$&&eX.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function hV(e,{metadata:t,tunnel:n,dsn:r}){return r7({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:nS(r)}},[[{type:"user_report"},e]])}function hX(e={}){let t=ar.document,n=t?.head||t?.body;if(!n){a$&&eX.error("[showReportDialog] Global document not defined");return}let r=t2(),i=t7(),a=i?.getDsn();if(!a){a$&&eX.error("[showReportDialog] DSN not configured");return}let o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||rC()},s=ar.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let n=nT(e);if(!n)return"";let r=`${r3(n)}embed/error-page/`,i=`dsn=${nS(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}
487`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}(a,o);let{onLoad:l,onClose:u}=o;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{ar.removeEventListener("message",e)}};ar.addEventListener("message",e)}n.appendChild(s)}let hK=new WeakMap,hQ=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(hK.has(t7()))for(let t of e)t5(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}rv(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in eU&&new eU.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){hK.set(e,!0)}}};function hZ(e,t){return t.some(t=>e.includes(t))}function h0(e,t,n){if(!1===t)return{};let r=null!=n?[...iL,...n]:iL,i={};if(!0===t){for(let t of Object.keys(e))i[t]=hZ(t.toLowerCase(),r)?iO:e[t];return i}if("deny"in t){let n=t.deny.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let a=t.toLowerCase(),o=hZ(a,r)||n.some(e=>a.includes(e));i[t]=o?iO:e[t]}return i}let a=t.allow.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let n=t.toLowerCase();if(hZ(n,r))i[t]=iO;else{let r=a.some(e=>n.includes(e));i[t]=r?e[t]:iO}}return i}function h1(e,t){if(!1===t)return{};try{let n=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let i=e.indexOf(";",n);if(-1===i)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}let a=e.slice(n,r).trim();if(void 0===t[a]){let n=e.slice(r+1,i).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
487try{t[a]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[a]=n}}n=i+1}return t}(e);if(0===Object.keys(n).length)return{};return h0(n,t,ij)}catch{return iO}}function h2(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let h3=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,i,a;n=e,r=t,ay()&&av(e=>{if(t7()!==n)return;let{response:t,args:i,error:a,virtualError:o}=e,[s,l]=i;t&&function(e,t,n,r,i){if(h5(e,n.status,n.url)){var a,o;let e,s,l,u,c=(a=t,!(o=r)&&a instanceof Request||a instanceof Request&&a.bodyUsed?a:new Request(a,o)),p=h7();if(!1!==p.requestHeaders&&(e=h0(h4(c.headers),p.requestHeaders)),!1!==p.responseHeaders&&(s=h0(h4(n.headers),p.responseHeaders)),!1!==p.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=h1(e,p.cookies);"object"==typeof t&&(l=t)}let t=n.headers.get("Set-Cookie")||void 0;if(t){let e=h1(t,p.cookies);"object"==typeof e&&(u=e)}}rb(h6({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:i,type:"fetch"}))}}(r,s,t,l,a||o)},!1),i=e,a=t,"XMLHttpRequest"in eU&&(0,aj.Mn)(e=>{if(t7()!==i)return;let{error:t,virtualError:n}=e,r=e.xhr,o=r[aj.Er];if(!o)return;let{method:s,request_headers:l}=o;try{!function(e,t,n,r,i){if(h5(e,t.status,t.responseURL)){let e,a,o,s=h7();if(!1!==s.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=h1(e,s.cookies);"object"==typeof t&&(a=t)}}catch{}if(!1!==s.responseHeaders)try{o=h0(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t),s.responseHeaders)}catch{}!1!==s.requestHeaders&&(e=h0(r,s.requestHeaders)),rb(h6({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:"xhr"}))}}(a,r,s,l,t||n)}catch(e){a$&&eX.warn("Error while extracting response event form XHR response",e)}})}}};function h4(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function h5(e,t,n){var r,i;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!function(e,t){var n,r;let i=t?.getDsn(),a=t?.getOptions().tunnel;return function(e,t){var n,r;let i=aI(e);return!(!i||aP(i))&&!!t&&(n=i.hostname,n===(r=t.host)||r.length>0&&n.endsWith(`.${r}`))&&/(^|&|\?)sentry_key=/.test(i.search)}(e,i)||(n=e,!!(r=a)&&h2(n)===h2(r))}(n,t7())}function h6(e){let t=t7(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return tA(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function h7(){let e=t7();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(null==t.dataCollection){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}let h8=(e={})=>({name:"ContextLines",processEvent:(t,n,r)=>(function(e,t){let n=eU.document,r=eU.location&&aO(eU.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let o=["<!DOCTYPE html>","<html>",...a.split("\n"),"</html>"];return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>{var n,i,a,s;return n=e,i=o,a=r,s=t,n.filename===a&&n.lineno&&i.length&&!function(e,t,n=5){if(void 0===t.lineno)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>tw(e,0)),t.context_line=tw(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>tw(e,0))}(i,n,s),n}))}),e})(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)});function h9(e){if(_n(e))return`persisted ${e.operationName}`;if(_t(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${i} ${r}`:`${i}`}return"unknown"}function _e(e){let t;if("xhr"in e){let n=e.xhr[aj.Er];t=n&&(0,ul.sY)(n.body)[0]}else{let n=(0,ul.Gv)(e.input);t=(0,ul.sY)(n)[0]}return t}function _t(e){return e6(e)&&"string"==typeof e.query}
487function _n(e){return e6(e)&&"string"==typeof e.operationName&&e6(e.extensions)&&e6(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function _r(e){try{let t=JSON.parse(e);if(_t(t)||_n(t))return t;return}catch{return}}let _i=e=>({name:"GraphQLClient",setup(t){var n,r,i,a;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let i=nK(e).data||{};if("http.client"!==i[ns])return;let a=i["url.full"]||i["http.url"]||i.url,o=i["http.request.method"]||i["http.method"];if(!e2(a)||!e2(o))return;let{endpoints:s}=r,l=tR(a,s),u=_e(t);if(l&&u){let t=_r(u);if(t){let r=h9(t);e.updateName(`${o} ${a} (${r})`),_t(t)&&!0===n.getDataCollectionOptions().graphQL.document&&e.setAttribute(aG.o4U,t.query),_n(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),i=t,a=e,i.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:n,type:r,data:o}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=o?.url,{endpoints:n}=a,r=tR(e,n),s=_e(t);if(r&&o&&s){let e=_r(s);if(!o.graphql&&e){let t=h9(e);o["graphql.operation"]=t,_t(e)&&!0===i.getDataCollectionOptions().graphQL.document&&(o[aG.o4U]=e.query),_n(e)&&(o["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),_a=(e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(n,r)=>{if(void 0!==n.type||e.shouldAttach?.(n,r)===!1)return n;let i={rendering_system:"DOM",positioning:"absolute",windows:[]};!function n(r,i,a=0){if(r)for(let o of"shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children){if(!(o instanceof HTMLElement))continue;let r=an(o,1)||void 0,s=o.tagName.toLowerCase();if(t.includes(s))continue;let l=e.onElement?.({element:o,componentName:r,tagName:s,depth:a})||{};if("skip"===l)continue;if("children"===l){n(o,i,a+1);continue}let{x:u,y:c,width:p,height:d}=o.getBoundingClientRect(),f={identifier:o.id||void 0,type:r||s,visible:!0,alpha:1,height:d,width:p,x:u,y:c,...l};f.children=[],n(o,f.children,a+1),i.push(f)}}(e.rootElement?.()||ar.document.body,i.windows);let a={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(a),n}}};var _o=n(37019),_s=Object.defineProperty,_l=(e,t,n)=>((e,t,n)=>t in e?_s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class _u{constructor(){_l(this,"idNodeMap",new Map),_l(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function _c(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_c(e.parentNode,t,n,r+1)}function _p(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let _d="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",_f={map:{},getId:()=>(console.error(_d),-1),getNode:()=>(console.error(_d),null),removeNodeFromMap(){console.error(_d)},has:()=>(console.error(_d),!1),reset(){console.error(_d)}};function _h(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);
487return i.Object.defineProperty(e,t,r?n:{set(e){_b(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>_h(e,t,a||{},!0)}function __(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}function _g(e,t,n,r,i){if(!e)return!1;let a=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!a)return!1;let o=_p(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=_c(a,o),l=-1;return!(s<0)&&(r&&(l=_c(a,_p(null,r))),s>-1&&l<0||s<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_f=new Proxy(_f,{get:(e,t,n)=>("map"===t&&console.error(_d),Reflect.get(e,t,n))})),Date.now().toString();let _m={};function _y(e){let t=_m[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return _m[e]=r.bind(window)}function _v(...e){return _y("requestAnimationFrame")(...e)}function _b(...e){return _y("setTimeout")(...e)}var _S=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(_S||{});let _E=e=>x?(...t)=>{try{return e(...t)}catch(e){if(x&&!0===x(e))return()=>{};throw e}}:e;for(var _w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_x="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_T=0;_T<_w.length;_T++)_x[_w.charCodeAt(_T)]=_T;var _R=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=_w[n[t]>>2],i+=_w[(3&n[t])<<4|n[t+1]>>4],i+=_w[(15&n[t+1])<<2|n[t+2]>>6],i+=_w[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let _k=new Map,_P=(e,t,n)=>{if(!e||!(_C(e,t)||"object"==typeof e))return;let r=function(e,t){let n=_k.get(e);return n||(n=new Map,_k.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),i=r.indexOf(e);return -1===i&&(i=r.length,r.push(e)),i},_I=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:_R(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(_C(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:_P(t,n,r)};return t})(e,t,n)),_C=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function _A(e,t,n,r,i){let a=[];try{let o=__(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(a,...o){if(!_g(this,t,n,r,!0)){let e="experimental-webgl"===a?"webgl":a;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(e=>e())}}function _O(e,t,n,r,i,a,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if
487("function"!=typeof e[o])continue;let u=__(e,o,function(e){return function(...l){let u=e.apply(this,l);if(_P(u,s,this),"tagName"in this.canvas&&!_g(this.canvas,r,i,a,!0)){let e=_I(l,s,this),r={type:t,property:o,args:e};n(this.canvas,r)}return u}});l.push(u)}catch{let r=_h(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(r)}return l}class _N{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:i,errorHandler:a}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&(x=a),(i&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t)return;_E(()=>{i&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}_E(()=>{if(a&&"all"===t&&this.initCanvasMutationObserver(e,n,r,i),a&&"number"==typeof t){let t=_A(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame)return void this.takeSnapshot(performance.now(),!0,e);_v(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker(function(){let e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:i,width:a,height:o}=t;this.mutationCb({id:n,type:_S["2D"],commands:[{property:"clearRect",args:[0,0,a,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0,a,o]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=_v(t)};e=_v(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let i=_A(e,t,n,r,!1),a=function(e,t,n,r,i){let a=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=__(t.CanvasRenderingContext2D.prototype,o,function(a){return function(...s){return _g(this.canvas,n,r,i,!0)||_b(()=>{let n=_I(s,t,this);e(this.canvas,{type:_S["2D"],property:o,args:n})},0),a.apply(this,s)}});a.push(s)}catch{let n=_h(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:_S["2D"],property:o,args:[t],setter:!0})}});a.push(n)}return()=>
487{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),o=function(e,t,n,r,i,a){let o=[];return o.push(..._O(t.WebGLRenderingContext.prototype,_S.WebGL,e,n,r,i,a,t)),void 0!==t.WebGL2RenderingContext&&o.push(..._O(t.WebGL2RenderingContext.prototype,_S.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{i(),a(),o()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{_g(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&i(t)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,a,o)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{_E(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){_v(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,_v(e)};_v(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),_v(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new _u,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}($||($={}));let _L={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},_j=(e={})=>{let t,n,[r,i]=e.maxCanvasSize||[],a={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,i?Math.min(i,1280):1280]},o=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:i}=a;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let a=new _N({...e,enableManualSnapshot:r,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=a,n(a),a},..._L[e]||_L.medium}},async snapshot(e,n){(t||await o).snapshot(e,n)}}};function _M(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),a=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...a};if(!t||"skip-undefined"===t&&void 0===n)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...a}}(i,t);e&&(n[r]=e)}return n}function _D(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;_$(e,"extra",n),_$(e,"tags",r),_$(e,"attributes",i),_$(e,"user",a),_$(e,"contexts",o),e.sdkProcessingMetadata=ss(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function _$(e,t,n){e[t]=ss(e[t],n,1)}let _U=0;function _F(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function _B(e,t){var n;let r=_H(),i=(n=e,_H().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(function(e,t){let n=t??function(e){return _H().get(e)}(e)??[];if(0===n.length)return;let r=e.getOptions(),i=function(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=lm(r)),lT(a,[function(e,t){let n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...l4()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}(e,i)])}(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_H().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}(e,i),r.set(e,[t])):r.set(e,[...i,t])}function _H(){return(0,sn.BY)("clientToMetricBufferMap",()=>new WeakMap)}function _W(e,t,n){(function(e,t){let n=t?.scope??sP(),r=t?.captureSerializedMetric??_B,i=n?.getClient()??sA();if(!i){sr.T&&sa.Yz.warn("No client available to capture metric.");return}let{_experiments:a,enableMetrics:o,beforeSendMetric:s}=i.getOptions();if(!(o??a?.enableMetrics??!0)){sr.T&&sa.Yz.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=function(e,t){let n=(0,sn.BY)("globalScope",()=>new sv).getScopeData();return e&&_D(n,e.getScopeData()),t&&_D(n,t.getScopeData()),n}(sI(),n),c=function(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};_F(a,"user.id",n.id,!1),_F(a,"user.email",n.email,!1),_F(a,"user.name",n.username,!1),_F(a,"sentry.release",r),_F(a,"sentry.environment",i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};_F(a,"sentry.sdk.name",o),_F(a,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return _F(a,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&_F(a,"sentry._internal.replay_is_buffering",!0),{...e,attributes:a}}(e,i,l);i.emit("processMetric",c);let p=s||a?.beforeSendMetric,d=p?p(c):c;if(!d){sr.T&&sa.Yz.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,n,r){let[,i]=n?sC(n,()=>{let e=ln(),r=e?function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:sQ(e).parent_span_id,a=sY(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||su():t,trace_id:n}}(e):function(e){let t=m?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||su()};return r&&(a.parent_span_id=r),a}(n);return[e?lx(e):lw(t,n),r]}):[void 0,void 0],a=sm(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,l=(0,st.zf)(),u=function(e){let t=Math.floor(1e3*e);void 0!==T&&t!==T&&(_U=0);let n=_U;return _U++,T=t,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}(l);return{timestamp:l,trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{..._M(r),..._M(e.attributes,"skip-undefined"),[u.key]:u.value}}}(d,i,n,u);sr.T&&sa.Yz.log("[Metric]",f),r(i,f),i.emit("afterCaptureMetric",d)})({type:"distribution",name:e,value:t,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}let _z=()=>({name:"ElementTiming",setup(){lU()&&(0,st.k3)()&&(0,ll.wv)("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,n=t.name,r=t.renderTime,i=t.loadTime,a={"sentry.origin":"auto.ui.browser.element_timing","ui.element.i
487dentifier":e};n&&(a["ui.element.paint_type"]=n),t.id&&(a["ui.element.id"]=t.id),t.element&&(a["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(a["ui.element.url"]=t.url),t.naturalWidth&&(a["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(a["ui.element.height"]=t.naturalHeight),r>0&&_W("ui.element.render_time",r,{unit:"millisecond",attributes:a}),i>0&&_W("ui.element.load_time",i,{unit:"millisecond",attributes:a})}})}});function _q(e=t7()){e?.emit("endPageloadSpan")}function _Y(e){let t=rr();if(t===e)return;let n=t2();e.end=new Proxy(e.end,{apply:(e,r,i)=>(tW(n,t),Reflect.apply(e,r,i))}),tW(n,e)}class _G{constructor(e,t){this._traceBuckets=new Map,this._client=e;let{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:ik(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t;if(t=156+2*e.name.length+nP(e.attributes),e.links&&e.links.length>0){let n=e.links[0],r=n?.attributes;t+=(100+(r?nP(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(eW&&eX.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){let t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size)return void this._removeTrace(e);let n=Array.from(t.spans),r=n[0]?._segmentSpan;if(!r){eW&&eX.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}let i=rd(r),a=n.map(e=>{let{_segmentSpan:t,...n}=e;return n}),o=function(e,t,n){var r;let i=n.getOptions(),a=n.getDsn(),o=i.tunnel,s=io(i._metadata),l={sent_at:new Date(tu()).toISOString(),...!!(r=t).trace_id&&!!r.public_key&&{trace:t},...s&&{sdk:s},...!!o&&a&&{dsn:nS(a)}},u=n.getDataCollectionOptions().userInfo?"auto":"never";return r7(l,[[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...i_()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:e}]])}(a,i,this._client);eW&&eX.log(`Sending span envelope for trace ${e} with ${a.length} spans`),this._client.sendEnvelope(o).then(null,e=>{eW&&eX.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}let _J=()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(a$&&eX.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){let t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!iR(e)){r.traceLifecycle="static",a$&&eX.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}let i=r.beforeSendSpan;if(i&&!r6(i)){r.traceLifecycle="static",a$&&eX.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}let a=new _G(e);e.on("afterSpanEnd",t=>{n3(t)&&a.add(function(e,t){let n=nQ(e),r=rn(e),i=nQ(r),{isolationScope:a,scope:o}=n$(e),s=rg(a,o);var l=n,u=i,c=t,p=s;let d=c.getSdkMetadata(),{release:f,environment:h}=c.getOptions();aJ(l,{[aG.Bfx]:"stream",[aG.suP]:u.name,[aG.ewL]:u.span_id,[aG.VEj]:d?.sdk?.name,[aG._1V]:d?.sdk?.version,"sentry.release":f,"sentry.environment":h||t9,"user.id":p.user?.id,"user.email":p.user?.email,"user.ip_address":p.user?.ip_address,"user.name":p.user?.username,...p.attributes});let _=e.kind;t.emit("preprocessSpan",n,{spanKind:_}),n.is_segment&&(aJ(n,function(e){let t={},{response:n,profile:r,cloud_resource:i,culture:a,state:o}=e;if(n&&(null!=n.status_code&&(t["http.response.status_code"]=n.status_code),null!=n.body_size&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),i)for(let[e,n]of Object.entries(i))null!=n&&(t[e]=n);a&&(a.locale&&(t["culture.locale"]=a.locale),a.timezone&&(t["culture.timezone"]=a.timezone)),o?.state&&"string"==typeof o.state.type&&(t["state.type"]=o.state.type);let s=e.angular;if(s){let e=s.version;("string"==typeof e||"number"==typeof e)&&(t["angular.version"]=e)}let l=e.react;if(l){let e=l.version;("string"==typeof e||"number"==typeof e)&&(t["react.version"]=e)}return t}(s.contexts)),function(e,t){let n=t.getIntegrationNames();n.length&&aJ(e,{"sentry.sdk.integrations":n})}(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);let{beforeSendSpan:g}=t.getOptions(),m=g&&r6(g)?function(e,t){let n=t(e);return n||(ri(),e)}(n,g):n,y=m.attributes?.[ni];return n.is_segment&&y&&aJ(m,{"sentry.segment.name.source":y}),{...n0(m),_segmentSpan:r}}(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{a.flush(t)},500)})}});function _V(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function _X(e){return _V(e.getAllKeys())}function _K(e){let t;function n(){return void 0==t&&(t=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=_V(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{var r,i;let a=ir(t);await (r=n(),i=e.maxQueueSize||30,r(e=>_X(e).then(t=>{if(!(t.length>=i))return e.put(a,Math.max(...t,0)+1),_V(e.transaction)})))}catch{}},unshift:async t=>{try{var r,i;let a=ir(t);await (r=n(),i=e.maxQueueSize||30,r(e=>_X(e).then(t=>{if(!(t.length>=i))return e.put(a,Math.min(...t,0)-1),_V(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>_X(e).then(t=>{let n=t[0];if(null!=n)return _V(e.get(n)).then(t=>(e.delete(n),_V(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?it(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){let t=eB(eU);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}(n(e)))}let i=r(),a=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?n(t):r()])}return[i,a]}(e)}catch{}}}}function _Q(e=oE){var t;return t=function(e){function t(...e){eW&&eX.log("[Offline]:",...e)}return n=>{let r,i=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let a=n.createStore(n),o=5e3;function s(e){r&&clearTimeout(r),r=ik(setTimeout(async()=>{r=void 0;let e=await a.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date(tu()).toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){r||(s(o),o=Math.min(2*o,36e5))}async function u(e,r=!1){if(!r&&ie(e,["replay_event","replay_recording"]))return await a.push(e),s(100),{};
487try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await i.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=iC(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),o=5e3,t}catch(i){var c;if(await (c=o,!ie(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,i,c))))return r?await a.unshift(e):await a.push(e),l(),t("Error sending. Event queued.",i),{};throw i}}return n.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(o=5e3,s(100)),i.flush(e))}}}(e),e=>{let n=t({...e,createStore:_K});return ar.addEventListener("online",async e=>{await n.flush()}),n}}let _Z="window"in eU&&eU.window===eU&&"undefined"==typeof importScripts,_0=String(0),_1=_Z?"main":"worker",_2=ar.navigator,_3="",_4="",_5="",_6=_2?.userAgent||"",_7="",_8=_2?.language||_2?.languages?.[0]||"",_9=_2?.userAgentData;function ge(e){return"pageload"===nK(e).op}function gt(e){let t=t7(),n=t?.getOptions(),r=n?.stackParser;if(!r)return[];let i=nr(r);if(!i)return[];let a=[];for(let t of e){let e=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}(t);e&&i[e]&&a.push({type:"sourcemap",code_file:t,debug_id:i[e]})}return a}function gn(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(a$&&eX.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(a$&&eX.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}(function(e){return"object"==typeof e&&null!==e&&"getHighEntropyValues"in e})(_9)&&_9.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(_3=e.platform||"",_5=e.architecture||"",_7=e.model||"",_4=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];_6=`${t.brand} ${t.version}`}}).catch(e=>void 0);let gr=!1;function gi(){let e=ar.Profiler;if("function"!=typeof e){a$&&eX.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){a$&&(eX.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),eX.log("[Profiling] Disabling profiling for current user session.")),gr=!0}}function ga(e){if(gr)return a$&&eX.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return a$&&eX.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=t7(),n=t?.getOptions();if(!n)return a$&&eX.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return gn(r)?r?!!(!0===r||Math.random()<r)||(a$&&eX.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(a$&&eX.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(a$&&eX.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function go(e){return void 0!==e.profilesSampleRate}let gs=new Map,gl=new WeakSet;function gu(e){e.setAttribute("thread.id",_0),e.setAttribute("thread.name",_1)}function gc(e){let t;ge(e)&&(t=1e3*tL());let n=gi();if(!n)return;a$&&eX.log(`[Profiling] started profiling span: ${nK(e).description}`);let r=tk(),i=null;async function a(){if(e&&n){if(i){a$&&eX.log("[Profiling] profile for:",nK(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(o&&(ar.clearTimeout(o),o=void 0),a$&&eX.log(`[Profiling] stopped profiling of span: ${nK(e).description}`),!t){a$&&eX.log(`[Profiling] profiler returned null profile for: ${nK(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}i=t;if(gs.set(r,t),gs.size>30){let e=gs.keys().next().value;void 0!==e&&gs.delete(e)}}).catch(e=>{a$&&eX.log("[Profiling] error while stopping profiler:",e)})}}t2().setContext("profile",{profile_id:r,start_timestamp:t}),gl.add(e),gu(e);let o=ar.setTimeout(()=>{a$&&eX.log("[Profiling] max profile duration elapsed, stopping profiling for:",nK(e).description),a()},3e4),s=e.end.bind(e);
487e.end=function(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}}class gp{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(gr)return a$&&eX.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return a$&&eX.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return gn(t)?t?Math.random()<=t:(a$&&eX.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(a$&&eX.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());a$&&eX.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!n&&a$&&eX.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=tk(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&gu(e)})}start(){if("trace"===this._lifecycleMode){a$&&eX.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){a$&&eX.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){a$&&eX.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){a$&&eX.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){a$&&eX.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(a$&&eX.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling()),this._isRunning&&gu(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,a$&&eX.log("[Profiling] Started profiling with profiler ID:",this._profilerId),t4().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){a$&&eX.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{a$&&eX.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&t4().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){a$&&eX.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==rt(e))return;if(!e.isRecording()){a$&&eX.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(a$&&eX.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;a$&&eX.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{a$&&eX.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,t4().setContext("profile",{})}
487_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=gi();if(!e){a$&&eX.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{a$&&eX.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(a$&&eX.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=void 0===a.parentId?void 0:e.stacks[a.parentId];n[t]=i}let r=tM(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:_0,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[_0]:{name:_1}}}}(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:tk(),client_sdk:{name:a?.name??"sentry.javascript.browser",version:a?.version??"0.0.0"},profiler_id:n||tk(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:gt(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r){a$&&eX.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),a$&&eX.log("[Profiling] Collected browser profile chunk.")}catch(e){a$&&eX.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,n=io(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=r7({event_id:tk(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:nS(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(a).then(null,e=>{a$&&eX.error("Error while sending profile chunk envelope:",e)})}}let gd=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new gp;if(go(t)||t.profileLifecycle||(t.profileLifecycle="manual"),go(t)&&!t.profilesSampleRate){a$&&eX.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=rr(),i=r&&rt(r);
487if(go(t)&&void 0!==t.profileSessionSampleRate&&a$&&eX.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),go(t))i&&ge(i)&&ga(i)&&gc(i),e.on("spanStart",e=>{let t=rt(e);e===t?ga(e)&&gc(e):gl.has(t)&&gu(e)}),e.on("beforeEnvelope",e=>{if(!gs.size)return;let t=function(e){let t=[];return r9(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof r||!r){a$&&eX.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let a=function(e){let t=gs.get(e);return t&&gs.delete(e),t}(r);if(!a){a$&&eX.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let o=function(e,t,n,r){var i;if(!(n.samples.length<2?(a$&&eX.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!n.frames.length||(a$&&eX.log("[Profiling] Discarding profile because it contains no frames"),!1)))return null;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let a=function(e){let t=e.contexts?.trace?.trace_id;return("string"==typeof t&&32!==t.length&&a$&&eX.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(r),o="thread_metadata"in(i=n)?i:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[_0]:{name:_1}}},i=e.samples[0];if(!i)return r;let a=i.timestamp,o=tM(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,l=s-(o||s);return e.samples.forEach((i,o)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+l-a)*1e6).toFixed(0),stack_id:t,thread_id:_0};return}let s=e.stacks[i.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((i.timestamp+l-a)*1e6).toFixed(0),stack_id:n,thread_id:_0};r.stacks[n]=u,r.samples[o]=c,n++}),r}(i),s=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*tL()),l="number"==typeof r.timestamp?1e3*r.timestamp:1e3*tL();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||t9,runtime:{name:"javascript",version:ar.navigator.userAgent},os:{name:_3,version:_4,build_number:_6},device:{locale:_8,model:_7,manufacturer:_6,architecture:_5,is_emulator:!1},debug_meta:{images:gt(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||tk(),trace_id:a,active_thread_id:_0,relative_start_ns:"0",relative_end_ns:((l-s)*1e6).toFixed(0)}]}}(r,i,a,e);o&&n.push(o)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,n)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!nR(t)){a$&&eX.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),ar.setTimeout(()=>{let e=rr(),t=e&&rt(e);t&&n.notifyRootSpanActive(t)},0)}}}}),gf=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],gh=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{a$&&eX.log("Using Sidecar URL",t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...gf]},afterAllSetup:e=>{!function(e,t){let n=(0,oS.qd)("fetch"),r=0;e.on("beforeEnvelope",e=>{if(r>3)return void eX.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);n(t,{method:"POST",body:ir(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>
487{r++,eX.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}},g_=()=>({name:"LaunchDarkly",processEvent:(e,t,n)=>fG(e)});function gg(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{fJ(e,t.value),fV(e,t.value)}}}let gm=()=>({name:"OpenFeature",processEvent:(e,t,n)=>fG(e)});class gy{after(e,t){fJ(t.flagKey,t.value),fV(t.flagKey,t.value)}error(e,t,n){fJ(e.flagKey,e.defaultValue),fV(e.flagKey,e.defaultValue)}}let gv=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){tt(e.prototype,"isEnabled",gb)},processEvent:(e,t,n)=>fG(e)});function gb(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(fJ(n,r),fV(n,r)):a$&&eX.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}function gS(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(fJ(n,r),fV(n,r)),r}}let gE=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&tt(t,"isOn",gS),"function"==typeof t.getFeatureValue&&tt(t,"getFeatureValue",gS)}
487,processEvent:(e,t,n)=>fG(e)}))({growthbookClass:e}),gw=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{fJ(e.gate.name,e.gate.value),fV(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>fG(e)});async function gx(){let e=t7();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await oX(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let gT=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>gR(e))},addWorker:e=>gR(e)});function gR(e){e.addEventListener("message",e=>{if(function(e){if(!e5(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!i)&&(!t||!!(e5(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!(e5(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!e5(e._sentryWorkerError))&&(!i||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>e5(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(a$&&eX.log("Sentry debugId web worker message received",e.data),ar._sentryDebugIds={...e.data._sentryDebugIds,...ar._sentryDebugIds}),e.data._sentryModuleMetadata&&(a$&&eX.log("Sentry module metadata web worker message received",e.data),ar._sentryModuleMetadata={...e.data._sentryModuleMetadata,...ar._sentryModuleMetadata}),e.data._sentryWasmImages){a$&&eX.log("Sentry WASM images web worker message received",e.data);let t=ar._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>e5(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));ar._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(a$&&eX.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=t7();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,a=e4(i)?a5(i):i9(n,i,void 0,r,!0);a.level="error",e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),rb(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),a$&&eX.log("Captured worker unhandled rejection",i)}(e.data._sentryWorkerError))}})}function gk({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:a4(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),a$&&eX.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),a$&&eX.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function gP(e,{componentStack:t},n){if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(oI.version)&&function(e){switch(oC.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t;let r=new WeakSet;!function e(t,n){if(!r.has(t)){if(t.cause)return r.add(t),e(t.cause,n);t.cause=n}}(e,n)}return ry(e,n)}function gI(e){return(t,n)=>{let r=!!e,i=gP(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,i)}}let gC="sentry.source",gA="sentry.op",gO="sentry.origin",gN=globalThis;function gL(e){if(void 0!==R)return R?R(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in gN&&"function"==typeof gN[t]?(R=gN[t])(e):(R=null,e())}function gj(){return gL(()=>Math.random())}function gM(){return gL(()=>Date.now())/1e3}function gD(){return(k??(k=function(){let{performance:e}=gN;if(!e?.now||!e.timeOrigin)return gM;let t=e.timeOrigin;return()=>(t+gL(()=>e.now()))/1e3}()))()}function g$(){return gU(gN),gN}function gU(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||oP,t[oP]=t[oP]||{}}function gF(e,t,n=gN){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[oP]=r[oP]||{};return i[e]||(i[e]=t())}let gB="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function gH(e=gN.crypto||gN.msCrypto){try{if(e?.randomUUID)return gL(()=>e.randomUUID()).replace(/-/g,"")}catch{}return P||(P="10000000100040008000100000000000"),P.replace(/[018]/g,e=>(e^(15&16*gj())>>e/4).toString(16))}let gW={};function gz(e){if(!("console"in gN))return e();let t=gN.console,n={},r=Object.keys(gW);
487r.forEach(e=>{let r=gW[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function gq(e,...t){gB&&function(){return gB?gF("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&gz(()=>{gN.console[e](`Sentry Logger [${e}]:`,...t)})}let gY={log:function(...e){gq("log",...e)},warn:function(...e){gq("warn",...e)}};function gG(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{gB&&gY.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}let gJ="_sentrySpan";function gV(e,t){t?gG(e,gJ,function(e){try{let t=gN.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[gJ]}function gX(e){var t=e[gJ];if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}class gK{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:gH(),sampleRand:gj()}}clone(){let e=new gK;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,gV(e,gX(this)),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&&function(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||gD(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:gH()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof gK?t.getScopeData():oA(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,gV(this,void 0),this._attachments=[],this.setPropagationContext({traceId:gH(),sampleRand:gj()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:gM(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(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:gX(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||gH();if(!this._client)return gB&&gY.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||gH();if(!this._client)return gB&&gY.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||gH();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):gB&&gY.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
487h(e=>{e(this)}),this._notifyingListeners=!1)}}let gQ=e=>e instanceof Promise&&!e[gZ],gZ=Symbol("chained PromiseLike");class g0{constructor(e,t){let n,r;n=e||new gK,r=t||new gK,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return oO(t)?((e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return gQ(r)&&gQ(e)?r:((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];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[gZ]:!0}),t})(e,r)})(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function g1(){let e=gU(g$());return e.stack=e.stack||new g0(gF("defaultCurrentScope",()=>new gK),gF("defaultIsolationScope",()=>new gK))}function g2(e){return g1().withScope(e)}function g3(e,t){let n=g1();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function g4(e){return g1().withScope(()=>e(g1().getIsolationScope()))}function g5(e){let t=gU(e);return t.acs?t.acs:{withIsolationScope:g4,withScope:g2,withSetScope:g3,withSetIsolationScope:(e,t)=>g4(t),getCurrentScope:()=>g1().getScope(),getIsolationScope:()=>g1().getIsolationScope()}}function g6(){return g5(g$()).getCurrentScope()}function g7(){return g6().getClient()}function g8(e,t){let n=g5(g$());return n.withActiveSpan?n.withActiveSpan(e,t):function(...e){let t=g5(g$());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}(n=>(gV(n,e||void 0),t(n)))}function g9(e){return"number"==typeof e?me(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?me(e.getTime()):gD()}function me(e){return e>0x2540be3ff?e/1e3:e}function mt(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:o,endTime:s,status:l,links:u}=e;return{span_id:r,trace_id:i,data:t,description:o,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:g9(a),timestamp:g9(s)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(l),op:t[gA],origin:t[gO],links:u&&u.length>0?u.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}let mn=function(e){return e._sentryRootSpan||e};function mr(){let e=g5(g$());return e.getActiveSpan?e.getActiveSpan():gX(g6())}let mi="ui.react.render",ma="ui.react.mount",mo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ms={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ml={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mu=Symbol.for("react.forward_ref"),mc=Symbol.for("react.memo"),mp={};function md(e){if("object"==typeof e&&null!==e&&e.$$typeof===mc)return ml;let t=e.$$typeof;return t&&mp[t]||mo}mp[mu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mp[mc]=ml;let mf=Object.defineProperty.bind(Object),mh=Object.getOwnPropertyNames.bind(Object),m_=Object.getOwnPropertySymbols?.bind(Object),mg=Object.getOwnPropertyDescriptor.bind(Object),mm=Object.getPrototypeOf.bind(Object),my=Object.prototype;function mv(e,t,n){if("string"!=typeof t){if(my){let n=mm(t);n&&n!==my&&mv(e,n)}let n=mh(t);m_&&(n=n.concat(m_(t)));let r=md(e),i=md(t);for(let a of n)if(!ms[a]&&!i?.[a]&&!r?.[a]&&!mg(e,a)){let n=mg(t,a);if(n)try{mf(e,a,n)}catch(e){}}}return e}class mb extends oI.Component{constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=oG({name:`<${t}>`,onlyIfParent:!0,op:ma,attributes:{[gO]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=gD();this._updateSpan=g8(this._mountSpan,()=>oG({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[gO]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=gD(),{name:t,includeRender:n=!0}
487=this.props;if(this._mountSpan&&n){let n=mt(this._mountSpan).timestamp;g8(this._mountSpan,()=>{let r=oG({onlyIfParent:!0,name:`<${t}>`,op:mi,startTime:n,attributes:{[gO]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function mS(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>oI.createElement(mb,{...t,name:n,updateProps:r},oI.createElement(e,{...r}));return r.displayName=`profiler(${n})`,mv(r,e),r}function mE(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=oI.useState(()=>{if(!t?.disabled)return oG({name:`<${e}>`,onlyIfParent:!0,op:ma,attributes:{[gO]:"auto.ui.react.profiler","ui.component_name":e}})});oI.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=mt(n).timestamp,r=gD(),i=oG({name:`<${e}>`,onlyIfParent:!0,op:mi,startTime:t,attributes:{[gO]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(r)}}),[])}Object.assign(mb,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let mw="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mx={componentStack:null,error:null,eventId:null};class mT extends oI.Component{constructor(e){super(e),this.state=mx,this._openFallbackReportDialog=!0;let t=t7();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&hX({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:i,showDialog:a,dialogOptions:o}=this.props;t5(s=>{r&&r(s,e,n);let l=gP(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});i&&i(e,n,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&hX({...o,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===mx?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(mx)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?oI.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return oI.isValidElement(r)?r:(e&&mw&&gY.warn("fallback did not produce a valid ReactElement"),null)}}function mR(e,t){let n=e.displayName||e.name||"unknown",r=oI.memo(n=>oI.createElement(mT,{...t},oI.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,mv(r,e),r}let mk=Symbol.for("sentry.overrideNormalizationDepth"),mP={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function mI(e){let t={...mP,...e};return e=>(n,r)=>{function i(e){return(n,r)=>{let i=e(n,r),a=g6(),o=t.actionTransformer(r);null!=o&&function(e,t){let n=g7(),r=g5(g$()).getIsolationScope();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let o={timestamp:gM(),...e},s=i?gz(()=>i(o,void 0)):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,void 0),r.addBreadcrumb(s,a))}({category:"redux.action",data:o,type:"info"});let s=t.stateTransformer(i);if(null!=s){let e=g7(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};gG(r,mk,3+n),a.setContext("state",r)}else a.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(a,i),i}}t.attachReduxState&&gF("globalScope",()=>new gK).addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let a=e(i(n),r);return a.replaceReducer=new Proxy(a.replaceReducer,{apply:function(e,t,n){e.apply(t,[i(n[0])])}}),a}}function mC(e){let t=um({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),a&&ar.location&&mA(r,ar.location,i,(t,n="url")=>{uy(e,{name:t,attributes:{[gA]:"pageload",[gO]:"auto.pageload.react.reactrouter_v3",[gC]:n,..."route"===n&&{[aG.B8_]:t}}})}),o&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&mA(r,t,i,(t,n="url")=>{uv(e,{name:t,attributes:{[gA]:"navigation",[gO]:"auto.navigation.react.reactrouter_v3",[gC]:n,..."route"===n&&{[aG.B8_]:t}}})})})}}}function mA(e,t,n,r){let i=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(i);let a=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===a.length||"/*"===a?r(i):r(i=a,"route")})}function mO(e,t={}){let n=um({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:i=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let a=(t,n)=>{let r=e.matchRoutes(t,n,{preload:!1,throwOnError:!1}),i=r[r.length-1];return i?.routeId!=="__root__"?i:void 0},o=(t,n,r,i)=>{t.updateName(n?n.routeId:i),t.setAttribute(gC,n?"route":"url"),t.setAttributes({...n&&{[aG.B8_]:n.routeId},...function(e,t){let n=mN(e,t);return{[aG.mqy]:t.pathname,[aG.aVR]:n}}(e,r),...mL(n)})},s=ar.location;if(r&&s){let n=a(s.pathname,e.options.parseSearch(s.search)),r=uy(t,{name:n?n.routeId:s.pathname,attributes:{[gA]:"pageload",[gO]:"auto.pageload.react.tanstack_router",[gC]:n?"route":"url",...n&&{[aG.B8_]:n.routeId},...mL(n)}}),i=e.subscribe("onResolved",e=>{if(i(),!r)return;let{toLocation:t}=e;o(r,a(t.pathname,t.search),t,t.pathname)})}if(i){let n;e.subscribe("onBeforeLoad",r=>{let{toLocation:i,fromLocation:s}=r;if(!s||i.state===s.state)return;let l=a(i.pathname,i.search),u=ar.location?.pathname||i.pathname;if(n)return void o(n,l,i,u);n=uv(t,{name:l?l.routeId:u,attributes:{[gA]:"navigation",[gO]:"auto.navigation.react.tanstack_router",[gC]:l?"route":"url",...l&&{[aG.B8_]:l.routeId},...mL(l)}},{url:mN(e,i)})}),e.subscribe("onResolved",e=>{let t=n;if(n=void 0,!t)return;let{toLocation:r}=e,i=a(r.pathname,r.search);i&&o(t,i,r,ar.location?.pathname||r.pathname)})}}}}function mN(e,t){let n=e.options.stringifySearch?.(t.search)??"";return uP(`${t.pathname}${n&&"?"!==n?n:""}`)}function mL(e){if(!e)return{};let t={};
487return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`${aG.sPK}.${e}`]=n,t[`${aG.BS2}.${e}`]=n}),t}function mj(e){let t=um({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mD(e,a,o,n,"reactrouter_v4",r,i)}}}function mM(e){let t=um({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mD(e,a,o,n,"reactrouter_v5",r,i)}}}function mD(e,t,n,r,i,a=[],o){function s(e){if(0===a.length||!o)return[e,"url"];for(let t of function e(t,n,r,i=[]){return t.some(t=>{let a=t.path?r(n,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return a&&(i.push({route:t,match:a}),t.routes&&e(t.routes,n,r,i)),!!a}),i}(a,e,o))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:ar.location?ar.location.pathname:void 0;if(t){let[n,r]=s(t);uy(e,{name:n,attributes:{[gA]:"pageload",[gO]:`auto.pageload.react.${i}`,[gC]:r,..."route"===r&&{[aG.B8_]:n}}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);uv(e,{name:n,attributes:{[gA]:"navigation",[gO]:`auto.navigation.react.${i}`,[gC]:r,..."route"===r&&{[aG.B8_]:n}}})}})}function m$(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=mr(),t=e&&mn(e);if(!t)return;let n=mt(t).op;return"navigation"===n||"pageload"===n?t:void 0}();g6().setTransactionName(e),n&&(n.updateName(e),n.setAttributes({[gC]:"route",[aG.B8_]:e}))}return oI.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,mv(n,e),n}function mU(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let mF=new WeakMap;function mB(e,t){return void 0!==e&&void 0!==t&&(!!mW.test(t)||e===t)}function mH(e){return e.split("/").filter(Boolean)}let mW=/^:[\w-]+$/;function mz(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else mW.test(e)?n+=3:""===e?n+=1:n+=10;return n}let mq=!1,mY=[];function mG(){let e=mY.length;return e>0?mY[e-1]??null:null}function mJ(e){return e.params["*"]||""}function mV(e){return"*"===e[e.length-1]?e.slice(0,-1):e}function mX(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function mK(e){return e.endsWith("*")}function mQ(e){return e.includes("/*")||e.endsWith("*")}function mZ(e,t){return mK(e)&&!!t.route.children?.length||!1}function m0(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function m1(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function m2(e){return"/"===e[0]?e:`/${e}`}function m3(e,t){let n=I(e,t);if(!n||0===n.length)return"";for(let r of n)if(r.route.path&&"*"!==r.route.path){let n=mV(r.route.path||""),i=mU(t.pathname,m2(r.pathnameBase));if(t.pathname===i)return mX(i);return mX(mX(n||"")+m2(m3(e.filter(e=>e!==r.route),{pathname:i})))}return""}function m4(e,t){return mq?mU(e.pathname,t):e.pathname||""}function m5(e,t,n,r,i="",a,o){let s;if(o&&a&&a.length>0){let t=function(e,t,n){if(!e||!t?.length)return null;let r=n?mU(e,n):e,i=mF.get(t);for(let e of(!i&&(i=[...t].sort((e,t)=>{let n=mz(e);return mz(t)-n}),mF.set(t,i),mw&&gY.log("[React Router] Sorted route manifest by specificity:",i.length,"patterns")),i))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=mH(e),r=mH(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!mB(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!mB(n[e],t))return!1;return!0}(r,e))return mw&&gY.log("[React Router] Matched pathname",r,"to pattern",e),e;return mw&&gY.log("[React Router] No manifest match found for pathname:",r),null}(e.pathname,a,i);if(t)return[(mq?"":i)+t,"route"]}let l="url",u=function(e,t){let n=I(t,e);if(n){for(let e of n)if(m0(e.route)&&mJ(e))return!0}return!1}(e,n);u&&(s=m2(m3(n,e)),l="route"),u&&s||([s,l]=function(e,t,n,r=""){if(!e||0===e.length)return[mq?mU(t.pathname,r):t.pathname,"url"];if(!n)return[m4(t,r),"url"];let i="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:mq?mU(t,n):t,i="/*"===r.slice(-2)?r.slice(0,-2):r;return i.length>1&&"/"===i[i.length-1]&&(i=i.slice(0,-1)),[i,"route"]}(i,e.pathname,r);let a=n.path;if(!a||mZ(a,e))continue;let o="/"===a[0]||"/"===i[i.length-1]?a:`/${a}`;if(i=mX(i)+m2(o),mX(t.pathname)===mX(r+e.pathname)){if(m1(i)!==m1(e.pathname)&&!mK(i))return[(mq?"":r)+o,"route"];return mZ(i,e)&&(i=i.slice(0,-1)),[(mq?"":r)+i,"route"]}}return[m4(t,r),"url"]}(t,e,r,i));let c=function(e,t,n){let r=t.filter(m0);if(!r.length)return;let i=I(r,e),a=i?.[i.length-1];if(!a||!mJ(a))return;let o=mX(mV(a.route.path||""));if(!o)return;let s=m2(o),l=o.split("/")[0],u=l?.startsWith(":")&&n?.split("/").includes(l);if(n===s||n?.startsWith(`${s}/`)||u)return;let c=mU(e.pathname,m2(a.pathnameBase))||"/",p=m3(t.filter(e=>e!==a.route),{pathname:c});return p?m2(`${o}${m2(p)}`):void 0}(e,n,s);return c?[c,"route"]:[s||e.pathname,l]}function m6(){let e=mr(),t=e?mn(e):void 0;if(!t)return;let n=mt(t).op;return"navigation"===n||"pageload"===n?t:void 0}function m7(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let i=new Proxy(e,{apply(e,i,a){let o=function(){let e=mG();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==ar)try{let e=ar.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{mw&&gY.warn("[React Router] Could not access window.location")}return null}(),s=function(){let e=mG();return e?e.span:m6()}(),l=e.apply(i,a);return function(e,t,n,r,i,a){oO(e)?e.then(e=>{Array.isArray(e)&&r(e,t,i??void 0,a)}).catch(e=>{mw&&gY.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,i??void 0,a)}(l,t,n,r,o,s),l}}
487);return gG(i,"__sentry_proxied__",!0),i}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)m7(n,t)}let m8=!1,m9=3e3,ye="",yt=new WeakSet,yn=ar?.document?oI.useLayoutEffect:oI.useEffect,yr=new WeakMap,yi=new Set,ya=new WeakMap,yo=new WeakMap;function ys(e){ar?.cancelAnimationFrame?ar.cancelAnimationFrame(e):clearTimeout(e)}function yl(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function yu(e){return e.includes(":")||e.includes("*")}function yc(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function yp(e,t){let n=ya.get(e);n||(n=new Set,ya.set(e,n)),n.add(t),t.finally(()=>{let n=ya.get(e);n&&n.delete(t)})}function yd(e){let t=new Promise(t=>{yo.set(e,t)});yp(e,t)}function yf(e,t,n=null,r){e.forEach(e=>{yi.add(e),m8&&m7(e,yf)}),t&&yc(e,t);let i=r??m6();if(i){let e=mt(i);if(e.timestamp){mw&&gY.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,a=n;if(!a&&!r&&void 0!==ar){let e=ar.location;e?.pathname&&(a={pathname:e.pathname})}a&&("pageload"===t?yw({activeRootSpan:i,location:{pathname:a.pathname},routes:Array.from(yi),allRoutes:Array.from(yi)}):"navigation"===t&&yh(i,a,Array.from(yi),!1,L))}}function yh(e,t,n,r=!1,i){let a=mt(e),o=a.description,s=e?.__sentry_navigation_name_set__,l=o&&mQ(o);if((!s||r||l)&&!a.timestamp){let r=i(n,t),[u,c]=m5(t,n,n,r||[],ye,j,m8),p=a.data?.[gC];u&&(!o||!s&&("route"!==p||"route"===c)||"route"!==p&&"route"===c||"route"===p&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(gC,c),"route"===c&&e.setAttribute(aG.B8_,u),mQ(u)||"route"!==c||gG(e,"__sentry_navigation_name_set__",!0))}}function y_(e,t,n,r,i){let a=!1,o=!!i&&"pageload"===mt(i).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!a){let t=m6();t&&"pageload"===mt(t).op?o=!0:o&&("POP"!==e.historyAction||s?a=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&a){let i=yl(e.location),a=()=>{u!==i&&(u=i,l=null,yS({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(yi)}))};if("idle"!==e.navigation.state)u!==i&&(u=null),null!==l&&ys(l),l=ar?.requestAnimationFrame?ar.requestAnimationFrame(a):setTimeout(a,0);else null!==l&&(ys(l),l=null),a()}})}function yg(e,t){return C&&A&&O&&L?function(n,r){if(yE(n),m8)for(let e of n)m7(e,yf);let i=m6();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&i&&(gG(i,"__sentry_may_have_lazy_routes__",!0),yd(i));let a=e(n,yb(r,!1,i)),o=r?.basename;return"POP"===a.state.historyAction&&i&&yw({activeRootSpan:i,location:a.state.location,routes:n,basename:o,allRoutes:Array.from(yi)}),ye=o||"",y_(a,n,t,o,i),a}:(mw&&gY.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function ym(e,t){return C&&A&&O&&L?function(n,r){let i;if(yE(n),m8)for(let e of n)m7(e,yf);let a=m6();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&(gG(a,"__sentry_may_have_lazy_routes__",!0),yd(a));let o=e(n,yb(r,!0,a)),s=r?.basename,l=r?.initialEntries,u=r?.initialIndex,c=l?.length===1,p=void 0!==u&&l?.[u],d=(i=c?l[0]:p?l[u]:void 0)?"string"==typeof i?{pathname:i}:i:o.state.location,f=m6();return"POP"===o.state.historyAction&&f&&yw({activeRootSpan:f,location:d,routes:n,basename:s,allRoutes:Array.from(yi)}),ye=s||"",y_(o,n,t,s,f),o}:(mw&&gY.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function yy(e,t){let n=um({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:a,createRoutesFromChildren:o,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:c=!0,instrumentNavigation:p=!0,lazyRouteTimeout:d,lazyRouteManifest:f}=e;return{...n,setup(t){n.setup(t);let c=e.finalTimeout??3e4,p=(e.idleTimeout??1e3)*3,h=d??p;h===1/0?(m9=c,mw&&gY.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",c,"ms to prevent indefinite hangs")):Number.isNaN(h)?(mw&&gY.
487warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",p),m9=p):h<0?(mw&&gY.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",h,"falling back to:",p),m9=p):m9=h,C=r,A=i,O=a,L=s,N=o,m8=u,j=f,function(e,t=!1){I=e,mq=t}(s,l||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=ar.location?.pathname;c&&r&&uy(e,{name:r,attributes:{[gC]:"url",[gA]:"pageload",[gO]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),p&&yt.add(e)}}}function yv(e,t){if(!C||!A||!O||!L)return mw&&gY.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let n=n=>{let r=oI.useRef(!0),{routes:i,locationArg:a}=n,o=e(i,a),s=A(),l=O(),u="string"==typeof a||a?.pathname?a:s;return yn(()=>{let e="string"==typeof u?{pathname:u}:u;r.current?(yE(i),yw({activeRootSpan:m6(),location:e,routes:i,allRoutes:Array.from(yi)}),r.current=!1):yS({location:e,routes:i,navigationType:l,version:t,allRoutes:Array.from(yi)})},[l,u]),o};return(e,t)=>oI.createElement(n,{routes:e,locationArg:t})}function yb(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let i=e?.path,a=m6()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(yE(r),n&&n.length>0){let t=n[n.length-1],i=t?.route;if(i){let t=Array.from(yi).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===i,a=void 0!==t.path&&void 0!==i.path&&t.path===i.path;return n||r||a});t&&yc(r,t)}}let o=a?mt(a):void 0;return i&&a&&o&&!o.timestamp&&"navigation"===o.op&&yh(a,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(yi),!0,L),t(e,r)})}let o=(async()=>{let t,n=function(e,t){let n={};return mY.length>=10&&(mw&&gY.warn("[React Router] Navigation context stack overflow - removing oldest context"),mY.shift()),mY.push({token:n,targetPath:e,span:t}),n}(i,a);try{t=await r(e)}finally{let e=mY[mY.length-1];e?.token===n&&mY.pop(),a&&function(e){let t=yo.get(e);t&&(t(),yo.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}(a)}let o=a?mt(a):void 0;return a&&o&&!o.timestamp&&"navigation"===o.op&&i&&yh(a,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(yi),!1,L),t})();return a&&yp(a,o),o}}}function yS(e){let{location:t,routes:n,navigationType:r,version:i,matches:a,basename:o,allRoutes:s}=e,l=Array.isArray(a)?a:L(s||n,t,o),u=g7();if(!u||!yt.has(u))return;let c=m6();if((!c||"pageload"!==mt(c).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e,[r,a]=m5(t,s||n,s||n,l,o,j,m8),c=yl(t),p=yr.get(u),d=!!p&&!p.isPlaceholder&&!!mt(p.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&mQ(e.routeName),r=mQ(n),i=!!e.routeName&&yu(e.routeName),a=yu(n),o=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!i&&a||o))}}return{skip:!1,shouldUpdate:!1}}(p,c,r,d);if(f){if(h&&p){let e=p.routeName;p.isPlaceholder?(p.routeName=r,mw&&gY.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${r}" (will apply to real span)`)):(p.span.updateName(r),p.span.setAttribute(gC,a),"route"===a&&p.span.setAttribute(aG.B8_,r),gG(p.span,"__sentry_navigation_name_set__",!0),p.routeName=r,mw&&gY.log(`[Tracing] Updated navigation span name from "${e}" to "${r}"`))}else mw&&gY.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let _={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:c,isPlaceholder:!0};yr.set(u,_);try{e=uv(u,{name:_.routeName,attributes:{[gC]:a,[gA]:"navigation",[gO]:`auto.navigation.react.reactrouter${i?`_v${i}`:""}`,..."route"===a&&{[aG.B8_]:_.routeName}}})}catch(e){throw yr.delete(u),e}e?(yr.set(u,{span:e,routeName:_.routeName,pathname:t.pathname,locationKey:c}),yT(e,t,n,o,"navigation")):yr.delete(u)}}function yE(e){e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n}
487)(e).forEach(e=>{yi.add(e)})})}function yw({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:a}){let o=Array.isArray(r)?r:L(a||n,t,i);if(o){let[r,s]=m5(t,a||n,a||n,o,i,j,m8);g6().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(gC,s),"route"===s&&e.setAttribute(aG.B8_,r),yT(e,t,n,i,"pageload"))}else e&&yT(e,t,n,i,"pageload")}function yx(e,t,n,r,i,a,o,s){try{let l=t.data?.[gC];if("route"===l&&n&&!mQ(n))return;let u=Array.from(s),c=u.length>0?u:i,p=L(c,r,a);if(!p)return;let[d,f]=m5(r,c,c,p,a,j,m8),h=function(e,t,n,r,i=!1){return!!n&&(!!(!e&&i||e&&mQ(e)&&"route"===r&&!mQ(n))||"route"!==t&&"route"===r)}(n,l,d,f,!0),_="pageload"===o||!t.timestamp;h&&_&&(e.updateName(d),e.setAttribute(gC,f),"route"===f&&e.setAttribute(aG.B8_,d))}catch(e){mw&&gY.warn(`Error updating span details before ending: ${e}`)}}function yT(e,t,n,r,i){let a=`__sentry_${i}_end_patched__`;if(e?.[a]||!e.end)return;let o=e.end.bind(e),s=!1;e.end=function(...a){if(s)return;s=!0;let l=a.length>0?a[0]:Date.now()/1e3,u=mt(e),c=u.description,p=u.data?.[gC],d=()=>{let t=g7();if(t&&"navigation"===i){let n=yr.get(t);n&&n.span===e&&yr.delete(t)}},f=ya.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(mQ(c)||"route"!==p)){let a;if(0===m9){yx(e,u,c,t,n,r,i,yi),d(),o(l);return}let s=new Promise(e=>setTimeout(e,m9));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});a=m9===1/0?e:Promise.race([e,s])}else a=s;a.then(()=>{let a=mt(e);yx(e,a,a.description,t,n,r,i,yi),d(),o(l)}).catch(()=>{d(),o(l)});return}yx(e,u,c,t,n,r,i,yi),d(),o(l)},gG(e,a,!0)}function yR(e,t){if(!C||!A||!O||!N||!L)return mw&&gY.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
488      useEffect: ${C}. useLocation: ${A}. useNavigationType: ${O}.
489      createRoutesFromChildren: ${N}. matchRoutes: ${L}.`),e;let n=n=>{let r=oI.useRef(!0),i=A(),a=O();return yn(()=>{let e=N(n.children);r.current?(yE(e),yw({activeRootSpan:m6(),location:i,routes:e,allRoutes:Array.from(yi)}),r.current=!1):yS({location:i,routes:e,navigationType:a,version:t,allRoutes:Array.from(yi)})},[i,a]),oI.createElement(e,{...n})};return mv(n,e),n}function yk(e){return yy(e,"6")}function yP(e){return yv(e,"6")}function yI(e){return yg(e,"6")}function yC(e){return ym(e,"6")}function yA(e){return yR(e,"6")}function yO(e){return yy(e,"7")}function yN(e){return yR(e,"7")}function yL(e){return yg(e,"7")}function yj(e){return ym(e,"7")}function yM(e){return yv(e,"7")}function yD(e){return yy(e,"")}function y$(e){return yR(e,"")}function yU(e){return yg(e,"")}function yF(e){return ym(e,"")}function yB(e){return yv(e,"")}function yH(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function yW(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n?t[e]=n:"number"==typeof n&&(t[e]=String(n))})}catch{}return t}function yz(e){let t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),r=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),i=e.url||"",a=function({url:e,protocol:t,host:n}){return e?.startsWith("http")?e:e&&n?`${t}://${n}${e}`:void 0}({url:i,host:n,protocol:r}),o=e.body||void 0,s=e.cookies;return{url:a,method:e.method,query_string:yq(i),headers:yW(t),cookies:s,data:o}}function yq(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}async function yY(){try{oN&&X.log("Flushing events..."),await eD(2e3),oN&&X.log("Done flushing events")}catch(e){oN&&X.log("Error while flushing events:\n",e)}}function yG(e){if("function"==typeof yJ()?.waitUntil){var t;return void(t=e,yJ()?.waitUntil(t))}!function(e){if("string"!=typeof EdgeRuntime)return;let t=B[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}(e)}function yJ(){let e=Symbol.for("__cloudflare-context__");return B[e]?.ctx}function yV(e,t,n){eA(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:yW(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),yG(yY())})}async function yX(e){let{req:t,res:n,err:r}=e,i=n?.statusCode||e.statusCode;if(i&&i<500||!e.pathname)return;if(r&&function(e){try{return e.__sentry_captured__}catch{}}(r)){yG(yY());let e="object"==typeof r?r.__sentry_event_id__:void 0;return"string"==typeof e?(eC().setLastEventId(e),e):eC().lastEventId()}let a=eA(e=>{if(t){let n=yz(t);e.setSDKProcessingMetadata({normalizedRequest:n})}
489return ej(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return yG(yY()),a}function yK(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}function yQ(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let yZ=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function y0(e){let t;if(!e)return;let n=e.match(yZ);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function y1(e=ee(),t=ep(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function y2(e=ee(),t=ep(),n){return`00-${e}-${t}-${n?"01":"00"}`}let y3=!1;function y4(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function y5(e){return"number"==typeof e?y6(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?y6(e.getTime()):en()}function y6(e){return e>0x2540be3ff?e/1e3:e}function y7(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:o,endTime:s,status:l,links:u}=e;return{span_id:r,trace_id:i,data:t,description:o,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:y5(a),timestamp:y5(s)||void 0,status:y9(l),op:t[uT],origin:t[uR],links:y4(u)}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function y8(e){let{traceFlags:t}=e.spanContext();return 1===t}function y9(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function ve(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}let vt="_sentryChildSpans",vn="_sentryRootSpan";function vr(e,t){let n=e[vn]||e;ed(t,vn,n),e[vt]?e[vt].add(t):ed(e,vt,new Set([t]))}let vi=function(e){return e[vn]||e};function va(){let e=eP(W());return e.getActiveSpan?e.getActiveSpan():eh(eI()[e_])}let vo=Symbol.for("sentry.nonRecordingSpan");class vs{constructor(e={}){this._traceId=e.traceId||ee(),this._spanId=e.spanId||ep(),this.dropReason=e.dropReason,ed(this,vo,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function vl(e){return!!e&&!0===e[vo]}function vu(e,t,n=()=>{},r=()=>{}){var i,a,o,s;let l;try{l=e()}catch(e){throw t(e),n(),e}return i=l,a=t,o=n,s=r,ec(i)?eS(i,e=>{o(),s(e)},e=>{a(e),o()}):(o(),s(i),i)}function vc(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eN()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function vp(e){X.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function vd(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&em(e.description,r))return Y&&vp(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&em(e.description,r.name),a=!r.op||e.op&&em(e.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?em(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&a&&o)return Y&&vp(e),!0}return!1}function vf(e){return"stream"===e.getOptions().traceLifecycle}let vh="_sentryScope",v_="_sentryIsolationScope",vg=Symbol.for("sentry.otelSourceInference"),vm=Symbol.for("sentry.otelSourceExplicitlySet"),vy=Symbol.for("sentry.tracerProviderSpan");function vv(e,t,n){e&&(ed(e,v_,ef(n)),ed(e,vh,t))}function vb(e){return{scope:e[vh],isolationScope:eh(e[v_])}}let vS="_frozenDsc";function vE(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:u9(t)};return t.emit("createDsc",i),i}function vw(e,t){let n=t.getPropagationContext();return n.dsc||vE(n.traceId,e)}function vx(e){let t=eN();if(!t)return{};let n=vi(e),r=y7(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[ux]??i["sentry.previous_trace_sample_rate"];function s(e){return("number"==typeof o||"string"==typeof o)&&(e.sample_rate=`${o}`),e}let l=n[vS];if(l)return s(l);let u=vl(n),c=u&&"ignored"===n.dropReason;if(u&&(!vc(t.getOptions())||c)){let e=vb(n).scope;if(e){let n={...vw(t,e)};return c&&(n.sampled="false"),s(n)}}let p=a?.get("sentry.dsc"),d=p&&uG(p);if(d)return s(d);let f=vE(e.spanContext().traceId,t),h=i[uw]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),vc()&&(f.sampled=String(y8(n)),f.sample_rand=a?.get("sentry.sample_rand")??vb(n).scope?.getPropagationContext().sampleRand.toString()),s(f),t.emit("createDsc",f,n),f}function vT(e){if(!e||0===e.length)return;let t={};
489return e.forEach(e=>{let n=e.attributes||{},r=n["sentry.measurement_unit"],i=n["sentry.measurement_value"];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function vR(){return z(W()).segmentSpanCaptureStrategy}class vk{constructor(e={}){this._traceId=e.traceId||ee(),this._spanId=e.spanId||ep(),this._startTime=e.startTimestamp||en(),this._links=e.links,this._attributes={},this.setAttributes({[uR]:"manual",[uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===uw&&void 0!==t&&!0===this[vg]&&ed(this,vm,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=y5(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[vg]&&this.setAttribute(uw,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[vy];return}this._endTime=y5(e),function(e){if(!Y)return;let{description:t="< unknown name >",op:n="< unknown op >"}=y7(e),{spanId:r}=e.spanContext(),i=vi(e)===e,a=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;X.log(a)}(this),this._onSpanEnded(),this._frozen=!0===this[vy]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:y9(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[uR],profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:vT(this._events),is_segment:this._isStandaloneSpan&&vi(this)===this||void 0,segment_id:this._isStandaloneSpan?vi(this).spanContext().spanId:void 0,links:y4(this._links)}}getStreamedSpanJSON(){var e;return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===vi(this),status:ve(this._status),attributes:function(e,t){let n="error"===ve(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}(this._attributes,this._status),links:(e=this._links,e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;Y&&X.log("[Tracing] Adding an event to span:",e);let r=vP(t)?t:n||en(),i=vP(t)?{}:t||{},a={name:e,time:y5(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eN();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=vi(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eN();if(!t)return;let n=e[1];if(!n||0===n.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let n=vx(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date(Z()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:function(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}(r)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=y7(e);return!vd({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=y7(e),n=o&&"function"==typeof o&&"_streamed"in o&&o._streamed?t:o(t);return n||(y3||(J(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y3=!0),t)}:y7,p=[];for(let e of l){let t=c(e);t&&p.push([{type:"span"},t])}return function(e,t=[]){return[e,t]}(a,p)}([this],e)):(Y&&X.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=vR();if(e){let n=vb(this).scope||eI();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&vf(e))return void e.emit("afterSegmentSpanEnd",this);let r=vb(this).scope||eI(),i=vR();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!vI(y7(this)))return;this._name||(Y&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=vb(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of function(e){let t=new Set;return!function e(n){if(!t.has(n)&&y8(n))for(let r of(t.add(n),n[vt]?Array.from(n[vt]):[]))e(r)}(e),Array.from(t)}(this)){var a;if(t===this||(a=t)instanceof vk&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=y7(t);vI(n)&&(e.onSpanCaptured?.(t),i.push(n))}let o=this._attributes[uw];delete this._attributes[uk];let s=!1;
489i.forEach(e=>{delete e.data[uk],e.op?.startsWith("gen_ai.")&&(s=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:l}=y7(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:l}}(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:vx(this),hasGenAiSpans:s},request:r,...o&&{transaction_info:{source:o}}},u=vT(this._events);return u&&Object.keys(u).length&&(Y&&X.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function vP(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function vI(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function vC(e,t){let n=vM();if(n.startSpan)return n.startSpan(e,t);let r=vj(e),{forceTransaction:i,parentSpan:a,scope:o}=e;return eA(o?.clone(),()=>vU(a)(()=>{let n=eI(),o=v$(n,a),s=eN(),l=e.onlyIfParent&&!o?vN(n,s):vL({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return vF(l)&&o||eg(n,l),vu(()=>t(l),()=>{let{status:e}=y7(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:2,message:"internal_error"})},()=>{l.end()})}))}function vA(e,t){let n=vM();return n.withActiveSpan?n.withActiveSpan(e,t):eA(n=>(eg(n,e||void 0),t(n)))}function vO(e=eI()){let t=vM();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function vN(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new vs({traceId:e.getPropagationContext().traceId});return vv(n,e,eC()),n}function vL({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i,a=eC();if(!vc()){let t={...a.getPropagationContext(),...r.getPropagationContext()},i=new vs({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&vr(e,i),vv(i,r,a),i}let o=eN();if(function(e,t){let n=e?.getOptions().ignoreSpans;return!!e&&!!vf(e)&&!!n?.length&&vd({description:t.name||"",op:t.attributes?.[uT]||t.op,attributes:t.attributes},n)}(o,t)){vO(r)||o?.recordDroppedEvent("ignored","span");let t=new vs({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&vr(e,t),vv(t,r,a),t}if(e&&!n)i=function(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=vO(t),s=!o&&y8(e),l=s?new vk({...n,parentSpanId:i,traceId:a,sampled:s}):new vs({traceId:a});vr(e,l),vv(l,t,r);let u=eN();return u&&(vf(u)&&vl(l)&&(vl(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,r,t,a),vr(e,i);else if(e){let n=vx(e),{traceId:o,spanId:s}=e.spanContext(),l=y8(e);ed(i=vD({traceId:o,parentSpanId:s,...t},r,a,l),vS,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};i=vD({traceId:e,parentSpanId:o,...t},r,a,s),n&&ed(i,vS,n)}return!function(e){if(!Y)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=y7(e),{spanId:i}=e.spanContext(),a=y8(e),o=vi(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=y7(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}X.log(`${l}
490  ${u.join("\n  ")}`)}(i),i}function vj(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=y5(e.startTime),delete n.startTime,n}return t}function vM(){return eP(W())}function vD(e,t,n,r){let i=eN(),a=i?.getOptions()||{},{name:o=""}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit("beforeSampling",s,{decision:!1});let l=s.parentSampled??r,u=s.spanAttributes,c=t.getPropagationContext(),p=vO(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!vc(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let a=yQ(r);if(void 0===a)return Y&&X.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return Y&&X.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=n<a;return!o&&Y&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,a,i]}(a,{name:o,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:yQ(c.dsc?.sample_rate)},c.sampleRand),_=new vk({...e,attributes:{[uw]:"custom",[ux]:void 0!==f&&h?f:void 0,...u},sampled:d});return d||!i||p||(Y&&X.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",vf(i)?"span":"transaction")),vv(_,t,n),i&&i.emit("spanStart",_),_}function v$(e,t){if(t)return t;if(null===t)return;let n=eh(e[e_]);if(!n)return;let r=eN();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?vi(n):n}function vU(e){return void 0!==e?t=>vA(e,t):e=>e()}function vF(e){return vl(e)&&"ignored"===e.dropReason}var vB=n(4868),vH=n(87358);function vW(){return vH.env.NEXT_PHASE===vB.PHASE_PRODUCTION_BUILD}function vz(e){let t=vW(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&oN&&X.log("Skipping span creation in Cache Components context"),t||n}function vq(){return new vs({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function vY(e,t){return vz(t)?t(vq()):vC(e,t)}function vG(e,t){if(vz(t)){let e=vq();return t(e,()=>e.end())}let n=vM();if(n.startSpanManual)return n.startSpanManual(e,t);let r=vj(e),{forceTransaction:i,parentSpan:a,scope:o}=e;return eA(o?.clone(),()=>vU(a)(()=>{let n=eI(),o=v$(n,a),s=e.onlyIfParent&&!o?vN(n,eN()):vL({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return vF(s)&&o||eg(n,s),vu(()=>t(s,()=>s.end()),()=>{let{status:e}=y7(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:2,message:"internal_error"})})}))}function vJ(e){if(vz())return vq();let t=vM();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=vj(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>eA(e.scope,t):void 0!==r?e=>vA(r,e):e=>e())(()=>{let i=eI(),a=v$(i,r),o=eN();return e.onlyIfParent&&!a?vN(i,o):vL({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}(e)}function vV(...e){if("function"==typeof e[1]){let[t,n]=e;return vX(t,{},n)}{let[t,n,r]=e;return vX(t,n,r)}}async function vX(e,t,n){return eO(async r=>{let i,a,o=eN()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),s={};try{let e=await t.headers;i=e?.get("sentry-trace")??void 0,a=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{oN&&X.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),(va()?(e,t)=>t():(e,t)=>{let n=eP(W());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:r,baggage:i}=e,a=eN(),o=uG(i);return a&&!function(e,t){let n=u9(e);return t&&n&&t!==n?(X.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!e.getOptions().strictTraceContinuation||(!t||!!n)&&(!!t||!n)||(X.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}(a,o?.org_id)?function(e){let t=vM();return t.startNewTrace?t.startNewTrace(e):eA(t=>(t.setPropagationContext({traceId:ee(),sampleRand:Q()}
490),Y&&X.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),vA(null,e)))}(t):eA(e=>{let n=function(e,t){let n=y0(e),r=uG(t);if(!n?.traceId)return{traceId:ee(),sampleRand:Q()};let i=function(e,t){let n=yQ(t?.sample_rand);if(void 0!==n)return n;let r=yQ(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Q()*r:r+Q()*(1-r):Q()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}(r,i);return e.setPropagationContext(n),eg(e,void 0),t()})})({sentryTrace:i,baggage:a},async()=>{try{return await vC({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[uw]:"route",[uR]:"auto.function.nextjs.server_action"}},async e=>{let r=await vu(n,t=>{oj(t)?e.setStatus({code:2,message:"not_found"}):oM(t)?(e.setStatus({code:1}),e.end()):(e.setStatus({code:2,message:"internal_error"}),ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:o)&&eC().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{eC().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{yG(yY())}})})}function vK(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i;if(!r?.[0])return e.apply(n,r);let[a]=r,o="nextUrl"in a?a.nextUrl.pathname:a.url,s="nextUrl"in a?a.headers.get("user-agent"):a.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(n,r);let l=t.find(e=>e.path===o);if(!l?.path||!l.schedule)return e.apply(n,r);let u=l.path,c=eM({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),p=Z()/1e3,d=()=>{eM({checkInId:c,monitorSlug:u,status:"error",duration:Z()/1e3-p})};try{i=e.apply(n,r)}catch(e){throw d(),e}return eu(i)&&"then"in i?Promise.resolve(i).then(()=>{eM({checkInId:c,monitorSlug:u,status:"ok",duration:Z()/1e3-p})},()=>{d()}):eM({checkInId:c,monitorSlug:u,status:"ok",duration:Z()/1e3-p}),i}})}function vQ(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function vZ(e,t,n,r){return async function(...n){let i=yz(t);eI().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),eC().setSDKProcessingMetadata({normalizedRequest:i});let a=va();a&&"/_error"!==r.requestedRouteName&&vi(a).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":s,baggage:l}=function(e={}){let t=e.client||eN();if(!function(){let e=eN();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}()||!t)return{};let n=eP(W());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||eI(),i=e.span||va(),a=vl(i)&&!vc(t.getOptions());if(!i&&void 0!==o)return{};let s=i&&!a?function(e){let{traceId:t,spanId:n}=e.spanContext();return y1(t,n,y8(e))}(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return y1(t,r,n)}(r),l=function(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${uY}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?i:`${e},${i}`;return a.length>8192?(Y&&X.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},""):void 0}}(i?vx(i):vw(t,r));if(!yZ.test(s))return X.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(u.traceparent=i&&!a?function(e){let{traceId:t,spanId:n}=e.spanContext();return y2(t,n,y8(e))}(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return y2(t,r,n)}(r)),u}();return{sentryTrace:s,baggage:l,data:await e.apply(this,n)}}}async function v0(e,t){try{return await e(...t)}catch(e){throw ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function v1(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vW())return e.apply(t,n);let[r]=n,{req:i,res:a}=r.ctx,o=vQ(e);if(!i||!a)return o.apply(t,n);{let e=vZ(o,i,a,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})}function v2(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vW())return e.apply(t,n);let[r]=n,{req:i,res:a}=r,o=vQ(e);if(!i||!a)return o.apply(t,n);{let e=vZ(o,i,a,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})}function v3(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vW())return e.apply(t,n);let[r]=n,{req:i,res:a}=r,o=vQ(e);if(!i||!a)return o.apply(t,n);{let e=vZ(o,i,a,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function v4(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i,a=eC();try{i=t.requestAsyncStorage?.getStore()?.headers}catch{}let o=i?yH(i):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),vu(()=>e.apply(n,r),e=>{let n=va(),{componentRoute:r,componentType:i,generationFunctionIdentifier:o}=t,s=!0;a.setTransactionName(`${i}.${o} (${r})`),n&&(oj(e)?(s=!1,n.setStatus({code:2,message:"not_found"})):oM(e)?(s=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),s&&ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:o}}})},()=>{yG(yY())})}})}function v5(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vW())return e.apply(t,n);let[r]=n,{req:i,res:a}=r,o=vQ(e);if(!i||!a)return o.apply(t,n);{let e=vZ(o,i,a,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function v6(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(vW())return e.apply(n,r);let[i]=r,{req:a,res:o}=i,s=vZ(vQ(e),a,o,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})}function v7(e,t){return new Proxy(e,{apply:async(e,t,n)=>vW()?e.apply(t,n):v0(vQ(e),n)})}function v8(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request){var i;if((i=new URL(e.url).pathname)===r||i.startsWith(`${r}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return eO(r=>{let i,a,o=n[0],s=eI();o instanceof Request?(r.setSDKProcessingMetadata({normalizedRequest:function(e){let t=yH(e.headers);return{method:e.method,url:e.url,query_string:yq(e.url),headers:t}}(o)}),i=`middleware ${o.method}`,a="url"):(i="middleware",a="component"),s.setTransactionName(i);let l=va();if(l){i="middleware",a="component";let e=vi(l);e&&vv(e,s,r)}return vC({name:i,op:"http.server.middleware",attributes:{[uw]:a,[uR]:"auto.function.nextjs.wrap_middleware"}},()=>vu(()=>e.apply(t,n),e=>{ej(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{yG(yY())}))})}})}function v9(e,t){eu(e)&&ed(e,"__sentry_event_id__",t)}function be(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return eO(()=>{let t=eI(),n=eu(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=y0(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw v9(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>eO(()=>{let r=eI(),i=n?.[0]?._sentryTraceData;if(i){let e=y0(i);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw v9(t,e),t}})}):e}function bt(e,t){let{method:n,parameterizedRoute:r,headers:i}=t;return new Proxy(e,{apply:async(e,t,i)=>{let a=va(),o=a?vi(a):void 0;return eO(eC(),()=>eA(async s=>{s.setTransactionName(`${n} ${r}`);let l=await vu(()=>e.apply(t,i),e=>{oM(e)||(oj(e)?(a&&yK(a,404),o&&yK(o,404)):ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{yG(yY())});try{l.status&&(a&&yK(a,l.status),o&&yK(o,l.status))}catch{}return l}))}})}function bn(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i=eC(),a=t.headers?yH(t.headers):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),vu(()=>e.apply(n,r),e=>{let n=va(),{componentRoute:r,componentType:a}=t,o=!0;i.setTransactionName(`${a} Server Component (${r})`),n&&(oj(e)?(o=!1,n.setStatus({code:2,message:"not_found"})):oM(e)?(o=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),o&&ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{yG(yY())})}})}},13314:(e,t)=>
490{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},13644:(e,t)=>{"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},14005:(e,t,n)=>{"use strict";let r;n.d(t,{k3:()=>u,lu:()=>o,zf:()=>s});var i=n(45997),a=n(33783);function o(){return(0,i.Wk)()/1e3}function s(){return(r??(r=function(){let{performance:e}=a.O;if(!e?.now||!e.timeOrigin)return o;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=a.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),n=(0,i.Wk)(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let o=e.timing?.navigationStart;return"number"==typeof o&&3e5>Math.abs(o+t-n)?o:n-t}()),l}},15657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),n(30943);let r=n(95155);n(12115);let i=n(73360);function a(e){function t(t){return(0,r.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15859:(e,t,n)=>{"use strict";n.d(t,{H:()=>f});var r=n(20456),i=n(67080),a=n(14005),o=n(55862),s=n(59476),l=n(5560),u=n(84253),c=n(45997),p=n(43903),d=n(8173);class f{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:(0,u.e)(),sampleRand:(0,c.hY)()}}clone(){let e=new f;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,(0,p.r)(e,(0,p.f)(this)),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&&function(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||(0,a.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:o,level:l,fingerprint:u=[],propagationContext:c,conversationId:p}=(t instanceof f?t.getScopeData():(0,s.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),p&&(this._conversationId=p),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,(0,p.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,c.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,a.lu)(),...e,message:e.message?(0,d.xv)(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:(0,p.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,l.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
490captureException(e,t){let n=t?.event_id||(0,i.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture exception!"),n;let a=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...t,event_id:n},this),n}captureMessage(e,t,n){let a=n?.event_id||(0,i.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture message!"),a;let s=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:a},this),a}captureEvent(e,t){let n=e.event_id||t?.event_id||(0,i.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):r.T&&o.Yz.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},16355:(e,t,n)=>{"use strict";n.d(t,{BY:()=>s,EU:()=>a,Se:()=>o});let r="10.67.0";var i=n(33783);function a(){return o(i.O),i.O}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r,t[r]=t[r]||{}}function s(e,t,n=i.O){let a=n.__SENTRY__=n.__SENTRY__||{},o=a[r]=a[r]||{};return o[e]||(o[e]=t())}},16832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return L},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return O},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return J},GSSP_COMPONENT_MEMBER_ERROR:function(){return K},GSSP_NO_RETURNED_VALUE:function(){return V},HTML_CONTENT_TYPE_HEADER:function(){return r},INFINITE_CACHE:function(){return k},INSTRUMENTATION_HOOK_FILENAME:function(){return C},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return P},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return T},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return v},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return x},NEXT_CACHE_TAGS_HEADER:function(){return y},NEXT_CACHE_TAG_MAX_ITEMS:function(){return E},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return o},NEXT_META_SUFFIX:function(){return g},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return S},NON_STANDARD_NODE_ENV:function(){return Q},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return u},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return H},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return B},RSC_ACTION_ENCRYPTION_ALIAS:function(){return F},RSC_ACTION_PROXY_ALIAS:function(){return D},RSC_ACTION_VALIDATE_ALIAS:function(){return M},RSC_CACHE_WRAPPER_ALIAS:function(){return $},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return U},RSC_MOD_REF_PROXY_ALIAS:function(){return j},RSC_PREFETCH_SUFFIX:function(){return c},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return d},RSC_SUFFIX:function(){return f},SERVER_PROPS_EXPORT_ERROR:function(){return G},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return z},SERVER_PROPS_SSG_CONFLICT:function(){return q},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Z},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return W},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Y},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return n},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return X},WEBPACK_LAYERS:function(){return er},WEBPACK_RESOURCE_QUERIES:function(){return ei}});let n="text/plain",r="text/html; charset=utf-8",i="application/json; charset=utf-8",a="nxtP",o="nxtI",s="x-matched-path",l="x-prerender-revalidate",u="x-prerender-revalidate-if-generated",c=".prefetch.rsc",p=".segments",d=".segment.rsc",f=".rsc",h=".action",_=".json",g
490=".meta",m=".body",y="x-next-cache-tags",v="x-next-revalidated-tags",b="x-next-revalidate-tag-token",S="next-resume",E=128,w=256,x=1024,T="_N_T_",R=31536e3,k=0xfffffffe,P="middleware",I=`(?:src/)?${P}`,C="instrumentation",A="private-next-pages",O="private-dot-next",N="private-next-root-dir",L="private-next-app-dir",j="private-next-rsc-mod-ref-proxy",M="private-next-rsc-action-validate",D="private-next-rsc-server-reference",$="private-next-rsc-cache-wrapper",U="private-next-rsc-track-dynamic-import",F="private-next-rsc-action-encryption",B="private-next-rsc-action-client-wrapper",H="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",W="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",z="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",q="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Y="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",G="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",J="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",X="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",K="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Q='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Z="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},en={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},er={...en,GROUP:{builtinReact:[en.reactServerComponents,en.actionBrowser],serverOnly:[en.reactServerComponents,en.actionBrowser,en.instrument,en.middleware],neutralTarget:[en.apiNode,en.apiEdge],clientOnly:[en.serverSideRendering,en.appPagesBrowser],bundled:[en.reactServerComponents,en.actionBrowser,en.serverSideRendering,en.appPagesBrowser,en.shared,en.instrument,en.middleware],appPages:[en.reactServerComponents,en.serverSideRendering,en.appPagesBrowser,en.actionBrowser]}},ei={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},18009:(e,t,n)=>{"use strict";let r,i,a,o,s;n.d(t,{a9:()=>B,hT:()=>z,Pt:()=>H,wv:()=>q,YG:()=>W,tC:()=>ee});var l=n(88711),u=n(81336),c=n(83976),p=n(94451);let d=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t))}};var f=n(37571),h=n(26275),_=n(82889);let g=(e,t=-1)=>{let n=(0,_.z)(),r="navigate";return n&&(p.j.document?.prerendering||(0,h.b)()>0?r="prerender":p.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},m=new WeakMap;function y(e,t){try{return m.get(e)||m.set(e,new t),m.get(e)}catch(e){return new t}}class v{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let b=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}};var S=n(9278);let E=e=>{p.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},w=[1800,3e3],x=[.1,.25],T=0,R=1/0,k=0,P=e=>
490{e.forEach(e=>{e.interactionId&&(R=Math.min(R,e.interactionId),T=(k=Math.max(k,e.interactionId))?(k-R)/7+1:0)})},I=()=>r?T:performance.interactionCount||0,C=0;class A{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){C=I(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((I()-C)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}var O=n(77316);let N=[200,500];var L=n(59101);class j{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let M=[2500,4e3],D=[800,1800],$=e=>{p.j.document?.prerendering?E(()=>$(e)):p.j.document?.readyState!=="complete"?addEventListener("load",()=>$(e),!0):setTimeout(e)},U={},F={};function B(e,t=!1){return K("cls",e,G,i,t)}function H(e,t=!1){return K("lcp",e,J,a,t)}function W(e){return K("ttfb",e,V,o)}function z(e){return K("inp",e,X,s)}function q(e,t){return Q(e,t),F[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),b(e,t=>{Y(e,{entries:t})},t)}(e),F[e]=!0),Z(e,t)}function Y(e,t){let n=U[e];if(n?.length)for(let r of n)try{r(t)}catch(t){c.T&&l.Yz.error(`Error while triggering instrumentation handler.
491Type: ${e}
492Name: ${(0,u.qQ)(r)}
493Error:`,t)}}function G(){return((e,t={})=>{((e,t={})=>{E(()=>{let n,r=(0,f.N)(),i=g("FCP"),a=b("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-(0,h.b)(),0),i.entries.push(t),n(!0)))});a&&(n=d(e,i,w,t.reportAllChanges))})})((0,S.J)(()=>{let n,r=g("CLS",0),i=(0,f.N)(),a=y(t,v),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>r.value&&(r.value=a._sessionValue,r.entries=a._sessionEntries,n())},s=b("layout-shift",o);s&&(n=d(e,r,x,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),n(!0)}),p.j?.setTimeout?.(n))}))})(e=>{Y("cls",{metric:e}),i=e},{reportAllChanges:!0})}function J(){return((e,t={})=>{E(()=>{let n,r=(0,f.N)(),i=g("LCP"),a=y(t,j),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(o),o.startTime<r.firstHiddenTime&&(i.value=Math.max(o.startTime-(0,h.b)(),0),i.entries=[o],n())},s=b("largest-contentful-paint",o);if(s){n=d(e,i,M,t.reportAllChanges);let r=(0,S.J)(()=>{o(s.takeRecords()),s.disconnect(),n(!0)}),a=e=>{e.isTrusted&&((0,O.k)(r),(0,L.Q)(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])(0,L.d)(e,a,{capture:!0})}})})(e=>{Y("lcp",{metric:e}),a=e},{reportAllChanges:!0})}function V(){return((e,t={})=>{let n=g("TTFB"),r=d(e,n,D,t.reportAllChanges);$(()=>{let e=(0,_.z)();e&&(n.value=Math.max(e.responseStart-(0,h.b)(),0),n.entries=[e],r(!0))})})(e=>{Y("ttfb",{metric:e}),o=e})}function X(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=(0,f.N)();E(()=>{let i;"interactionCount"in performance||r||(r=b("event",P,{type:"event",buffered:!0,durationThreshold:0}));let a=g("INP"),o=y(t,A),s=e=>{(0,O.k)(()=>{for(let t of e)o._processEntry(t);let t=o._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,i())})},l=b("event",s,{durationThreshold:t.durationThreshold??40});i=d(e,a,N,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(l.takeRecords()),i(!0)}))})})(e=>{Y("inp",{metric:e}),s=e})}function K(e,t,n,r,i=!1){let a;return Q(e,t),F[e]||(a=n(),F[e]=!0),r&&t({metric:r}),Z(e,t,i?a:void 0)}function Q(e,t){U[e]=U[e]||[],U[e].push(t)}function Z(e,t,n){return()=>{n&&n();let r=U[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ee(e){return"duration"in e}},18153:(e,t,n)=>{"use strict";function r(e,t){var n,r;let a=t?.getDsn(),o=t?.getOptions().tunnel;return function(e,t){var n,r;let i=function(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=(void 0)??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}(e);return!!i&&!("isRelative"in i)&&!!t&&(n=i.hostname,n===(r=t.host)||r.length>0&&n.endsWith(`.${r}`))&&/(^|&|\?)sentry_key=/.test(i.search)}(e,a)||(n=e,!!(r=o)&&i(n)===i(r))}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}n.d(t,{A:()=>r})},18213:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>a,Qd:()=>s,Qg:()=>u,gd:()=>l,sO:()=>
493o});let r=Object.prototype.toString;function i(e,t){return r.call(e)===`[object ${t}]`}function a(e){return i(e,"String")}function o(e){return null===e||"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e||"object"!=typeof e&&"function"!=typeof e}function s(e){return i(e,"Object")}function l(e){return i(e,"RegExp")}function u(e){return!!(e?.then&&"function"==typeof e.then)}},19649:(e,t)=>{"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let i=n[r];if("query"===i){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let i=n[r];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},20056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(87198),i=n(55862),a=n(14005);function o(e,t){let n=(0,r.KU)(),o=(0,r.rm)();if(!n)return;let{beforeBreadcrumb:s=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let u={timestamp:(0,a.lu)(),...e},c=s?(0,i.pq)(()=>s(u,t)):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),o.addBreadcrumb(c,l))}},20456:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},20935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(33078),i=n(47670),a=n(13644),o=n(62296),s=n(71239),l=n(58607),u=n(55287),c=n(2471),p=n(98156),d=n(92385);function f(e,t,n){let f,h="string"==typeof t?t:(0,i.formatWithValidation)(t),_=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=_?h.slice(_[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,o.normalizeRepeatedSlashes)(g);h=(_?_[0]:"")+t}if(!(0,l.isLocalURL)(h))return n?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let n=(0,p.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(n)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);o&&(t=(0,i.formatWithValidation)({pathname:o,hash:e.hash,query:(0,a.omit)(n,s)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[o,t||o]:o}catch(e){return n?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21710:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>i});var r=n(86205);function i(e){return{scope:e._sentryScope,isolationScope:(0,r.q)(e._sentryIsolationScope)}}},22461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(55287),i=n(78305);function a(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},23065:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>m,zU:()=>g,pK:()=>_,et:()=>h,kX:()=>p});var r=n(10734),i=n(16355),a=n(87198),o=n(10271),s=n(21710),l=n(84253),u=n(14005),c=n(43903);function p(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:h(e).parent_span_id,a=(0,s.Lb)(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||(0,l.Z)():t,trace_id:n}}function d(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,u.zf)()}function f(e){return e>0x2540be3ff?e/1e3:e}function h(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:s,endTime:l,status:u,links:c}=e;return{span_id:r,trace_id:i,data:t,description:s,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:d(a),timestamp:d(l)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}
493(u),op:t[o.uT],origin:t[o.JD],links:c&&c.length>0?c.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function _(e){let{traceFlags:t}=e.spanContext();return 1===t}let g=function(e){return e._sentryRootSpan||e};function m(){let e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,c.f)((0,a.o5)())}},24362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createRouteLoader:function(){return g},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return u}}),n(30943),n(80749);let r=n(35e3),i=n(4853),a=n(98301),o=n(77278);function s(e,t,n){let r,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let a=new Promise(e=>{r=e});return t.set(e,{resolve:r,future:a}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):a}let l=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,l,{})}function c(e){return e&&l in e}let p=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function f(e,t,n){return new Promise((r,a)=>{let o=!1;e.then(e=>{o=!0,r(e)}).catch(a),(0,i.requestIdleCallback)(()=>setTimeout(()=>{o||a(n)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):f(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,u(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return h().then(n=>{if(!(t in n))throw u(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let i=n[t].map(t=>e+"/_next/"+(0,o.encodeURIPath)(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,r.__unsafeCreateTrustedScriptURL)(e)+d()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function g(e){let t=new Map,n=new Map,r=new Map,a=new Map;function o(e){{var t;let r=n.get(e.toString());return r?r:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(u(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r)}}function l(e){let t=r.get(e);return t||r.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw u(e)})),t}return{whenEntrypoint:e=>s(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),a.delete(e))})},loadRoute(n,r){return s(n,a,()=>{let i;return f(_(e,n).then(e=>{let{scripts:r,css:i}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(o)),Promise.all(i.map(l))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,u(Object.defineProperty(Error("Route did not complete loading: "+n),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(r)throw e;return{error:e}}).finally(()=>null==i?void 0:i())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(p?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,i)=>{let a='\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]';if(document.querySelector(a))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>i(u(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,
493configurable:!0}))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,i.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25403:(e,t)=>{"use strict";function n(e,t,n,r,a){let o=e[t];if(a&&a.has(t)?o=a.get(t):Array.isArray(o)?o=o.map(e=>encodeURIComponent(e)):"string"==typeof o&&(o=encodeURIComponent(o)),!o){let a="oc"===n;if("c"===n||a)return a?{param:t,value:null,type:n,treeSegment:[t,"",n]}:{param:t,value:o=r.split("/").slice(1).flatMap(t=>{var n;let r=i(t);return null!=(n=e[r.key])?n:r.key}),type:n,treeSegment:[t,o.join("/"),n]}}return{param:t,value:o,treeSegment:[t,Array.isArray(o)?o.join("/"):o,n],type:n}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PARAMETER_PATTERN:function(){return r},getDynamicParam:function(){return n},parseMatchedParameter:function(){return a},parseParameter:function(){return i}});let r=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function i(e){let t=e.match(r);return t?a(t[2]):a(e)}function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}},25735:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},26275:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(82889);let i=()=>{let e=(0,r.z)();return e?.activationStart??0}},27743:(e,t,n)=>{"use strict";n.d(t,{GS:()=>o,W4:()=>l,my:()=>s});var r=n(20456),i=n(55862),a=n(59476);function o(e,t,n){if(!(t in e))return;let a=e[t];if("function"!=typeof a)return;let o=n(a);"function"==typeof o&&function(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}catch{}}(o,a);try{e[t]=o}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function s(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e){if((0,a.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...u(e)};if((0,a.xH)(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...u(e)}}return e}function u(e){return(0,a.Z4)(e)?Object.fromEntries(Object.entries(e)):{}}},27778:(e,t,n)=>{"use strict";n.d(t,{BY:()=>s,EU:()=>a,Se:()=>o});let r="10.67.0";var i=n(76016);function a(){return o(i.O),i.O}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r,t[r]=t[r]||{}}function s(e,t,n=i.O){let a=n.__SENTRY__=n.__SENTRY__||{},o=a[r]=a[r]||{};return o[e]||(o[e]=t())}},31249:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>l,P4:()=>o,sY:()=>s,ti:()=>u});var r=n(88711),i=n(83976);let a=Symbol.for("sentry__originalRequestBody");function o(e){return new URLSearchParams(e).toString()}function s(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[o(e)];if(!e)return[void 0]}catch(n){return i.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function l(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][a];if(void 0!==t)return t}}function u(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},31693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{hasAdjacentParameterIssues:function(){return r},normalizeAdjacentParameters:function(){return i},normalizeTokensForRegexp:function(){return a},stripParameterSeparators:function(){return o}});let n="_NEXTSEP_";function r(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function i(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${n}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${n}`)}function a(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function o(e){let t={};for(let[r,i]of Object.entries(e))"string"==typeof i?t[r]=i.replace(RegExp(`^${n}`),""):Array.isArray(i)?t[r]=i.map(e=>"string"==typeof e?e.replace(RegExp(`^${n}`),""):e):t[r]=i;return t}},33078:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}
493Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},33783:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});let r=globalThis},34738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{safeCompile:function(){return o},safePathToRegexp:function(){return a},safeRegexpToFunction:function(){return s},safeRouteMatcher:function(){return l}});let r=n(80413),i=n(31693);function a(e,t,n){if("string"!=typeof e)return(0,r.pathToRegexp)(e,t,n);let a=(0,i.hasAdjacentParameterIssues)(e),o=a?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,r.pathToRegexp)(o,t,n)}catch(o){if(!a)try{let a=(0,i.normalizeAdjacentParameters)(e);return(0,r.pathToRegexp)(a,t,n)}catch(e){}throw o}}function o(e,t){let n=(0,i.hasAdjacentParameterIssues)(e),a=n?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,r.compile)(a,t)}catch(a){if(!n)try{let n=(0,i.normalizeAdjacentParameters)(e);return(0,r.compile)(n,t)}catch(e){}throw a}}function s(e,t){let n=(0,r.regexpToFunction)(e,t||[]);return e=>{let t=n(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function l(e){return t=>{let n=e(t);return!!n&&(0,i.stripParameterSeparators)(n)}}},34741:(e,t,n)=>{"use strict";n.d(t,{NJ:()=>i,a3:()=>a});let r=n(76016).O;function i(){return"history"in r&&!!r.history}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}},35e3:(e,t)=>{"use strict";let n;function r(e){var t;return(null==(t=function(){if(void 0===n){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37571:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(94451),i=n(26275),a=n(59101);let o=-1,s=new Set,l=e=>{if(("pagehide"===e.type||r.j.document?.visibilityState==="hidden")&&o>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of s)e();isFinite(o)||(o="visibilitychange"===e.type?e.timeStamp:0,(0,a.Q)("prerenderingchange",l,!0))}},u=()=>{if(r.j.document&&o<0){let e=(0,i.b)();o=(r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(r.j.document?.visibilityState!=="hidden"||r.j.document?.prerendering?1/0:0),(0,a.d)("visibilitychange",l,!0),(0,a.d)("pagehide",l,!0),(0,a.d)("prerenderingchange",l,!0)}return{get firstHiddenTime(){return o},onHidden(e){s.add(e)}}}},37786:(e,t,n)=>{"use strict";let r;n.d(t,{S8:()=>l});let i=Symbol.for("sentry.skipNormalization"),a=Symbol.for("sentry.overrideNormalizationDepth");var o=n(27743);let s="<anonymous>";function l(e,t=100,n=1/0){try{return function e(t,n,l=1/0,u=1/0,c=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[p,d]=c;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let f=function(e,t){try{if(r){let e=r(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${function(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch{return s}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let e=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}(0,n);if(!f.startsWith("[object "))return f;if(n[i])return n;let h=function(e){let t=e[a];return"number"==typeof t?t:void 0}(n),_=void 0!==h?h:l;if(0===_)return f.replace("object ","");if(p(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,_-1,u,c)}catch{}let g=Array.isArray(n)?[]:{},m=0,y=(0,o.W4)(n);for(let t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(m>=u){g[t]="[MaxProperties ~]";break}let n=y[t];g[t]=e(t,n,_-1,u,c),m++}return d(n),g}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},40579:(e,t,n)=>{"use strict";
493Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let r=n(62296),i=n(33078);function a(e,t,n){void 0===n&&(n=!0);let a=new URL((0,r.getLocationOrigin)()),o=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:s,searchParams:l,search:u,hash:c,href:p,origin:d}=new URL(e,o);if(d!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:s,query:n?(0,i.searchParamsToUrlQuery)(l):void 0,search:u,hash:c,href:p.slice(d.length),slashes:void 0}}},41402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return _}});let r=n(30943),i=n(88604),a=n(95155),o=r._(n(47650)),s=i._(n(12115)),l=n(82073),u=n(94681),c=n(4853),p=new Map,d=new Set,f=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:s="",strategy:l="afterInteractive",onError:c,stylesheets:f}=e,h=n||t;if(h&&d.has(h))return;if(p.has(t)){d.add(h),p.get(t).then(r,c);return}let _=()=>{i&&i(),d.add(h)},g=document.createElement("script"),m=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(g.innerHTML=a.__html||"",_()):s?(g.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",_()):t&&(g.src=t,p.set(t,m)),(0,u.setAttributesFromProps)(g,e),"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),f&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(f),document.body.appendChild(g)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}):f(e)}function _(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:p,stylesheets:h,..._}=e,{updateScripts:g,scripts:m,getIsSsr:y,appDir:v,nonce:b}=(0,s.useContext)(l.HeadManagerContext);b=_.nonce||b;let S=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;S.current||(i&&e&&d.has(e)&&i(),S.current=!0)},[i,t,n]);let E=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!E.current){if("afterInteractive"===u)f(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}));E.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(g?(m[u]=(m[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:p,..._,nonce:b}]),g(m)):y&&y()?d.add(t||n):y&&!y()&&f({...e,nonce:b})),v){if(h&&h.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!n)return _.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{..._,id:t}])+")"}});else return o.default.preload(n,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{..._,id:t}])+")"}});"afterInteractive"===u&&n&&o.default.preload(n,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let m=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
493dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41616:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},42742:(e,t)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return n}})},43903:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,r:()=>o});var r=n(27743),i=n(86205);let a="_sentrySpan";function o(e,t){t?(0,r.my)(e,a,(0,i.Z)(t)):delete e[a]}function s(e){return(0,i.q)(e[a])}},44415:(e,t,n)=>{"use strict";function r(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}n.d(t,{FD:()=>r})},44761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),o=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),o=!0),n.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+n+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+n+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(n.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+n+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,n){if(null!==e&&e!==n)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===n)throw Object.defineProperty(Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(n)}if(r)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,
493configurable:!0});a(this.restSlugName,n),this.restSlugName=n,i="[...]"}else{if(o)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}function i(e,t){let n={},i=[];for(let r=0;r<e.length;r++){let a=t(e[r]);n[a]=r,i[r]=a}return r(i).map(t=>e[n[t]])}},45997:(e,t,n)=>{"use strict";let r;n.d(t,{Qw:()=>a,Wk:()=>s,hY:()=>o});var i=n(33783);function a(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i.O;return t in n&&"function"==typeof n[t]?(r=n[t])(e):(r=null,e())}function o(){return a(()=>Math.random())}function s(){return a(()=>Date.now())}},47670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});let r=n(88604)._(n(33078)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,a=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+a+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},52250:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(87358),i=n(33783);function a(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0))||function(){let e=i.O.process;return e?.type==="renderer"}())}},52894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let r=n(77700),i=n(73879),a=n(77886),o=n(6997);function s(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},53200:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>o,h4:()=>a,n2:()=>s});var r=n(72289),i=n(45997);function a(e,t=[]){return[e,t]}function o(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function s(e,t,n,a){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,i.Wk)()).toISOString(),...t&&{sdk:t},...!!n&&a&&{dsn:(0,r.SB)(a)},...o&&{trace:o}}}},55287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRouteObjects:function(){return r.getSortedRouteObjects},getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(44761),i=n(72421)},55862:(e,t,n)=>{"use strict";n.d(t,{Yz:()=>p,pq:()=>s});var r=n(16355),i=n(20456),a=n(33783);let o={};function s(e){if(!("console"in a.O))return e();let t=a.O.console,n={},r=Object.keys(o);r.forEach(e=>{let r=o[e];n[e]=t[e],t[e]=r});try{return e()}
493finally{r.forEach(e=>{t[e]=n[e]})}}function l(){return c().enabled}function u(e,...t){i.T&&l()&&s(()=>{a.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},57429:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>a,SA:()=>s,o:()=>o});var r=n(87198),i=n(12504);function a(e,t){return(0,r.o5)().captureException(e,(0,i.li)(t))}function o(e,t){(0,r.rm)().setContext(e,t)}function s(e){(0,r.rm)().addEventProcessor(e)}},58110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createKey:function(){return z},default:function(){return G},matchesMiddleware:function(){return M}});let r=n(30943),i=n(88604),a=n(77700),o=n(24362),s=n(41402),l=i._(n(42444)),u=n(22461),c=n(61940),p=r._(n(82025)),d=n(62296),f=n(72421),h=n(40579),_=n(92385),g=n(98156),m=n(47670);n(75078);let y=n(5240),v=n(79785),b=n(8518),S=n(51755),E=n(96058),w=n(92929),x=n(20935),T=n(42742),R=n(76293),k=n(52894),P=n(19649),I=n(58607),C=n(93913),A=n(13644),O=n(2471),N=n(84170),L=n(16832);function j(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function M(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,y.parsePath)(e.asPath),r=(0,w.hasBasePath)(n)?(0,S.removeBasePath)(n):n,i=(0,E.addBasePath)((0,v.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}
493function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,n){let[r,i]=(0,x.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),o=r.startsWith(a),s=i&&i.startsWith(a);r=D(r),i=i?D(i):i;let l=o?r:(0,E.addBasePath)(r),u=n?D((0,x.resolveHref)(e,n)):i||r;return{url:l,as:s?u:(0,E.addBasePath)(u)}}function U(e,t){let n=(0,a.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,f.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function F(e){if(!await M(e)||!e.fetchData)return null;let t=await e.fetchData(),n=await function(e,t,n){let r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),s=i||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(L.MATCHED_PATH_HEADER);if(!l||s||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(s=l),s){if(s.startsWith("/")){let t=(0,h.parseRelativeUrl)(s),l=(0,R.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),u=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then(a=>{let[o,{__rewrites:s}]=a,p=(0,v.addLocale)(l.pathname,l.locale);if((0,f.isDynamicRoute)(p)||!i&&o.includes((0,c.normalizeLocalePath)((0,S.removeBasePath)(p),n.router.locales).pathname)){let n=(0,R.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:r,parseData:!0});t.pathname=p=(0,E.addBasePath)(n.pathname)}if(!o.includes(u)){let e=U(u,o);e!==u&&(u=e)}let d=o.includes(u)?u:U((0,c.normalizeLocalePath)((0,S.removeBasePath)(t.pathname),n.router.locales).pathname,o);if((0,f.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,g.getRouteRegex)(d))(p);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,k.formatNextPathnameInfo)({...(0,R.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""})+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,k.formatNextPathnameInfo)({...(0,R.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}let B=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:n,isPrefetch:r,hasMiddleware:i,isServerRender:a,parseJSON:s,persist
493Cache:l,isBackground:u,unstable_skipClientCache:c}=e,{href:p}=new URL(t,window.location.href),d=e=>{var u;return(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(i=>!i.ok&&n>1&&i.status>=500?e(t,n-1,r):i)})(t,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&i?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(u=null==e?void 0:e.method)?u:"GET"}).then(n=>n.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:n,text:"",json:{},cacheKey:p}:n.text().then(e=>{if(!n.ok){if(i&&[301,302,307,308].includes(n.status))return{dataHref:t,response:n,text:e,json:{},cacheKey:p};if(404===n.status){var r;if(null==(r=H(e))?void 0:r.notFound)return{dataHref:t,json:{notFound:B},response:n,text:e,cacheKey:p}}let s=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,o.markAssetError)(s),s}return{dataHref:t,json:s?H(e):null,response:n,text:e,cacheKey:p}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[p],e)).catch(e=>{throw c||delete n[p],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,o.markAssetError)(e),e})};return c&&l?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(n[p]=Promise.resolve(e)),e)):void 0!==n[p]?n[p]:n[p]=d(u?{method:"HEAD"}:{})}function z(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:n}=e;if(t===(0,E.addBasePath)((0,v.addLocale)(n.asPath,n.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let Y=e=>{let{route:t,router:n}=e,r=!1,i=n.clc=()=>{r=!0};return()=>{if(r){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}i===n.clc&&(n.clc=null)}};class G{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,r,i){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:s}=n(71727);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,o.getClientBuildManifest)())}catch(t){if(console.error(t),i)return!0;return q({url:(0,E.addBasePath)((0,v.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new s(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new s(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,p=!1;for(let{as:n,allowMatchCurrent:o}of[{as:e},{as:t}])if(n){let t=(0,a.removeTrailingSlash)(new URL(n,"http://n").pathname),d=(0,E.addBasePath)((0,v.addLocale)(t,r||this.locale));if(o||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var s,l,u;for(let e of(c=c||!!(null==(s=this._bfl_s)?void 0:s.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!p&&e<t.length+1;e++){let n=t.slice(0,e).join("/");if(n&&(null==(u=this._bfl_d)?void 0:u.contains(n))){p=!0;break}}}if(c||p){if(i)return!0;return q({url:(0,E.addBasePath)((0,v.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,n,r,i){var u,c,p,x,T,R,k,C,N;let L,D;if(!(0,I.isLocalURL)(t))return q({url:t,router:this}),!1;let F=1===r._h;F||r.shallow||await this._bfl(n,void 0,r.locale);let H=F||r._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(n).pathname,W={...this.state},z=!0!==this.isReady;this.isReady=!0;let Y=this.isSsr;if(F||(this.isSsr=!1),F&&this.clc)return!1;let J=W.locale;d.ST&&performance.mark("routeChange");let{shallow:V=!1,scroll:X=!0}=r,K={shallow:V};this._inFlightRoute&&this.clc&&(Y||G.events.emit("routeChangeError",j(),this._inFlightRoute,K),this.clc(),this.clc=null),n=(0,E.addBasePath)((0,v.addLocale)((0,w.hasBasePath)(n)?(0,S.removeBasePath)(n):n,r.locale,this.defaultLocale));let Q=(0,b.removeLocale)((0,w.hasBasePath)(n)?(0,S.removeBasePath)(n):n,W.locale);this._inFlightRoute=n;let Z=J!==W.locale;if(!F&&this.onlyAHashChange(Q)&&!Z){W.asPath=Q,G.events.emit("hashChangeStart",n,K),this.changeState(e,t,n,{...r,scroll:!1}),X&&this.scrollToHash(Q);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&G.events.emit("routeChangeError",e,Q,K),e}return G.events.emit("hashChangeComplete",n,K),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:en}=ee;try{[L,{__rewrites:D}
493]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:n,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let er=n;et=et?(0,a.removeTrailingSlash)((0,S.removeBasePath)(et)):et;let ei=(0,a.removeTrailingSlash)(et),ea=n.startsWith("/")&&(0,h.parseRelativeUrl)(n).pathname;if(null==(u=this.components[et])?void 0:u.__appRouter)return q({url:n,router:this}),new Promise(()=>{});let eo=!!(ea&&ei!==ea&&(!(0,f.isDynamicRoute)(ei)||!(0,_.getRouteMatcher)((0,g.getRouteRegex)(ei))(ea))),es=!r.shallow&&await M({asPath:n,locale:W.locale,router:this});if(F&&es&&(H=!1),H&&"/_error"!==et&&(r._shouldResolveHref=!0,ee.pathname=U(et,L),ee.pathname!==et&&(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),es||(t=(0,m.formatWithValidation)(ee)))),!(0,I.isLocalURL)(n))return q({url:n,router:this}),!1;er=(0,b.removeLocale)((0,S.removeBasePath)(er),W.locale),ei=(0,a.removeTrailingSlash)(et);let el=!1;if((0,f.isDynamicRoute)(ei)){let e=(0,h.parseRelativeUrl)(er),r=e.pathname,i=(0,g.getRouteRegex)(ei);el=(0,_.getRouteMatcher)(i)(r);let a=ei===r,o=a?(0,O.interpolateAs)(ei,r,en):{};if(el&&(!a||o.result))a?n=(0,m.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,A.omit)(en,o.params)})):Object.assign(en,el);else{let e=Object.keys(i.groups).filter(e=>!en[e]&&!i.groups[e].optional);if(e.length>0&&!es)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+ei+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}F||G.events.emit("routeChangeStart",n,K);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:ei,pathname:et,query:en,as:n,resolvedAs:er,routeProps:K,locale:W.locale,isPreview:W.isPreview,hasMiddleware:es,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:F&&!this.isFallback,isMiddlewareRewrite:eo});if(F||r.shallow||await this._bfl(n,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&es){ei=et=a.route||ei,K.shallow||(en=Object.assign({},a.query||{},en));let e=(0,w.hasBasePath)(ee.pathname)?(0,S.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&en[e]===el[e]&&delete en[e]}),(0,f.isDynamicRoute)(et)){let e=!K.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,v.addLocale)(new URL(n,location.href).pathname,W.locale),!0);(0,w.hasBasePath)(e)&&(e=(0,S.removeBasePath)(e));let t=(0,g.getRouteRegex)(et),r=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);r&&Object.assign(en,r)}}if("type"in a)if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,r);else return q({url:a.destination,router:this}),new Promise(()=>{});let o=a.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,s.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){r.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,h.parseRelativeUrl)(t);n.pathname=U(n.pathname,L);let{url:i,as:a}=$(this,t,t);return this.change(e,i,a,r)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}F&&"/_error"===this.pathname&&(null==(p=self.__NEXT_DATA__.props)||null==(c=p.pageProps)?void 0:c.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);let u=r.shallow&&W.route===(null!=(T=a.route)?T:ei),d=null!=(R=r.scroll)?R:!F&&!u,m=null!=i?i:d?{x:0,y:0}:null,y={...W,route:ei,pathname:et,query:en,asPath:Q,isFallback:!1};if(F&&eu){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:F&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,
493configurable:!0});"/_error"===this.pathname&&(null==(C=self.__NEXT_DATA__.props)||null==(k=C.pageProps)?void 0:k.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,m)}catch(e){throw(0,l.default)(e)&&e.cancelled&&G.events.emit("routeChangeError",e,Q,K),e}return!0}if(G.events.emit("beforeHistoryChange",n,K),this.changeState(e,t,n,r),!(F&&!m&&!z&&!Z&&(0,P.compareRouterStates)(y,this.state))){try{await this.set(y,a,m)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw F||G.events.emit("routeChangeError",a.error,Q,K),a.error;F||G.events.emit("routeChangeComplete",n,K),d&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r){void 0===r&&(r={}),("pushState"!==e||(0,d.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:z()},"",n))}async handleRouteInfoError(e,t,n,r,i,a){if(e.cancelled)throw e;if((0,o.isAssetError)(e)||a)throw G.events.emit("routeChangeError",e,r,i),q({url:r,router:this}),j();console.error(e);try{let r,{page:i,styleSheets:a}=await this.fetchComponent("/_error"),o={props:r,Component:i,styleSheets:a,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(i,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,n,r,i,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:i,resolvedAs:o,routeProps:s,locale:u,hasMiddleware:p,isPreview:d,unstable_skipClientCache:f,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:g}=e,y=t;try{var v,b,E,w;let e=this.components[y];if(s.shallow&&e&&this.route===y)return e;let t=Y({route:y,router:this});p&&(e=void 0);let l=!e||"initial"in e?void 0:e,x={dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:g?"/404":o,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:f,isBackground:h},R=h&&!_?null:await F({fetchData:()=>W(x),asPath:g?"/404":o,locale:u,router:this}).catch(e=>{if(h)return null;throw e});if(R&&("/_error"===n||"/404"===n)&&(R.effect=void 0),h&&(R?R.json=self.__NEXT_DATA__.props:R={json:self.__NEXT_DATA__.props}),t(),(null==R||null==(v=R.effect)?void 0:v.type)==="redirect-internal"||(null==R||null==(b=R.effect)?void 0:b.type)==="redirect-external")return R.effect;if((null==R||null==(E=R.effect)?void 0:E.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(R.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!h||i.includes(t))&&(y=t,n=R.effect.resolvedHref,r={...r,...R.effect.parsedAs.query},o=(0,S.removeBasePath)((0,c.normalizeLocalePath)(R.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],s.shallow&&e&&this.route===y&&!p))return{...e,route:y}}if((0,T.isAPIRoute)(y))return q({url:i,router:this}),new Promise(()=>{});let k=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),P=null==R||null==(w=R.response)?void 0:w.headers.get("x-middleware-skip"),I=k.__N_SSG||k.__N_SSP;P&&(null==R?void 0:R.dataHref)&&delete this.sdc[R.dataHref];let{props:C,cacheKey:A}=await this._getData(async()=>{if(I){if((null==R?void 0:R.json)&&!P)return{cacheKey:R.cacheKey,props:R.json};let e=(null==R?void 0:R.dataHref)?R.dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:n,query:r}),asPath:o,locale:u}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:P?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:f});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(k.Component,{pathname:n,query:r,asPath:i,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return k.__N_SSP&&x.dataHref&&A&&delete this.sdc[A],this.isPreview||!k.__N_SSG||h||W(Object.assign({}
493,x,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),C.pageProps=Object.assign({},C.pageProps),k.props=C,k.route=y,k.query=r,k.resolvedAs=o,this.components[y]=k,k}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),n,r,i,s)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#",2),[r,i]=e.split("#",2);return!!i&&t===r&&n===i||t===r&&n!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),n=document.getElementById(e);if(n)return void n.scrollIntoView();let r=document.getElementsByName(e)[0];r&&r.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),(0,C.isBot)(window.navigator.userAgent))return;let r=(0,h.parseRelativeUrl)(e),i=r.pathname,{pathname:o,query:s}=r,l=o,u=await this.pageLoader.getPageList(),c=t,p=void 0!==n.locale?n.locale||void 0:this.locale,d=await M({asPath:t,locale:p,router:this});r.pathname=U(r.pathname,u),(0,f.isDynamicRoute)(r.pathname)&&(o=r.pathname,r.pathname=o,Object.assign(s,(0,_.getRouteMatcher)((0,g.getRouteRegex)(r.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,m.formatWithValidation)(r)));let v=await F({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:l,query:s}),skipInterpolation:!0,asPath:c,locale:p}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:p,router:this});if((null==v?void 0:v.effect.type)==="rewrite"&&(r.pathname=v.effect.resolvedHref,o=v.effect.resolvedHref,s={...s,...v.effect.parsedAs.query},c=v.effect.parsedAs.pathname,e=(0,m.formatWithValidation)(r)),(null==v?void 0:v.effect.type)==="redirect-external")return;let b=(0,a.removeTrailingSlash)(o);await this._bfl(t,c,n.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&W({dataHref:(null==v?void 0:v.json)?null==v?void 0:v.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:p}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=Y({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,d.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:r,pageLoader:i,App:o,wrapApp:s,Component:l,err:u,subscription:c,isFallback:p,locale:_,locales:g,defaultLocale:y,domainLocales:v,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=z(),this.onPopState=e=>{let t,{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,m.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(r.__NA)return void window.location.reload();if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:i,as:a,options:o,key:s}=r;this._key=s;let{pathname:l}=(0,h.parseRelativeUrl)(i);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(r))&&this.change("replaceState",i,a,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:l,initial:!0,props:r,err:u,__N_SSG:r&&r.__N_SSG,__N_SSP:r&&r.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]},this.events=G.events,this.pageLoader=i;let w=(0,f.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!w&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:w?e:n,isPreview:!!b,locale:void 0,isFallback:p},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},i=(0,d.getURL)();this._initialMatchesMiddlewarePromise=M({router:this,locale:_,asPath:i}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?i:(0,m.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),i,r),a))}window.addEventListener("popstate",this.onPopState)}}G.events=(0,p.default)()},58607:(e,t,n)=>{"use strict";
493Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=n(62296),i=n(92929);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},59101:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a,d:()=>i});var r=n(94451);function i(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function a(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},59476:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>o,Qd:()=>s,Qg:()=>p,Z4:()=>l,bJ:()=>i,gd:()=>c,xH:()=>u});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return d(e,Error)}}function a(e,t){return r.call(e)===`[object ${t}]`}function o(e){return a(e,"String")}function s(e){return a(e,"Object")}function l(e){return"object"==typeof e&&null!==e}function u(e){return"undefined"!=typeof Event&&d(e,Event)}function c(e){return a(e,"RegExp")}function p(e){return!!(e?.then&&"function"==typeof e.then)}function d(e,t){try{return e instanceof t}catch{return!1}}},61940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let n=new WeakMap;function r(e,t){let r;if(!t)return{pathname:e};let i=n.get(t);i||(i=t.map(e=>e.toLowerCase()),n.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let o=a[1].toLowerCase(),s=i.indexOf(o);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},62037:(e,t,n)=>{"use strict";let r;n.d(t,{eJ:()=>o});var i=n(88566),a=n(76016);function o(e=function(){let e=a.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*(0,i.hY)())>>e/4).toString(16))}},62296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return m},NormalizeError:function(){return _},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return f},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>i.test(e);function o(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=o();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let d="undefined"!=typeof performance,f=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
493class h extends Error{}class _ extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},65087:(e,t,n)=>{"use strict";n.d(t,{qd:()=>l,wg:()=>c,y7:()=>u});var r=n(34741),i=n(88711),a=n(83976),o=n(94451);let s={};function l(e){let t=s[e];if(t)return t;let n=o.j[e];if((0,r.a3)(n))return s[e]=n.bind(o.j);let l=o.j.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let r=t.contentWindow;r?.[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){a.T&&i.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?s[e]=n.bind(o.j):n}function u(e){s[e]=void 0}function c(...e){return l("setTimeout")(...e)}},67080:(e,t,n)=>{"use strict";let r;n.d(t,{M6:()=>s,eJ:()=>o});var i=n(45997),a=n(33783);function o(e=function(){let e=a.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*(0,i.hY)())>>e/4).toString(16))}function s(e,t){let n=e.exception?.values?.[0];if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}},67595:(e,t,n)=>{"use strict";function r(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}n.d(t,{i:()=>r})},71540:(e,t,n)=>{"use strict";let r;n.d(t,{_:()=>l});var i=n(84678),a=n(34741),o=n(83478),s=n(94451);function l(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,u)}function u(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let a=r,o=function(e){try{return new URL(e,s.j.location.origin).toString()}catch{return e}}(String(n));if(r=o,a===o)return e.apply(this,t);(0,i.aj)("history",{from:a,to:o})}return e.apply(this,t)}}s.j.addEventListener("popstate",()=>{let e=s.j.location.href,t=r;r=e,t!==e&&(0,i.aj)("history",{from:t,to:e})}),(0,a.NJ)()&&((0,o.GS)(s.j.history,"pushState",e),(0,o.GS)(s.j.history,"replaceState",e))}},71727:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{static from(e,t){void 0===t&&(t=1e-4);let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let n=1;n<=this.numHashes;n++){let r=function(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+n)%this.numBits;t.push(r)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},72289:(e,t,n)=>{"use strict";n.d(t,{SB:()=>i,ul:()=>a});let r=/^o(\d+)\./;function i(e,t=!1){let{host:n,path:r,pass:a,port:o,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function a(e){let t,n=e.getOptions(),{host:i}=e.getDsn()||{};return n.orgId?t=String(n.orgId):i&&(t=function(e){let t=e.match(r);return t?.[1]}(i)),t}},72421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(57630),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function o(e,t){return(void 0===t&&(t=!0),(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):i.test(e)}},73360:(e,t,n)=>{"use strict";
493Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return f},makePublicRouterInstance:function(){return g},useRouter:function(){return h},withRouter:function(){return l.default}});let r=n(30943),i=r._(n(12115)),a=r._(n(58110)),o=n(79862),s=r._(n(42444)),l=r._(n(15657)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],p=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!u.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get:()=>d()[e]})}),p.forEach(e=>{u[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d()[e](...n)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{u.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i="on"+e.charAt(0).toUpperCase()+e.substring(1);if(u[i])try{u[i](...n)}catch(e){console.error("Error when running the Router event: "+i),console.error((0,s.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let f=u;function h(){let e=i.default.useContext(o.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.router=new a.default(...t),u.readyCallbacks.forEach(e=>e()),u.readyCallbacks=[],u.router}function g(e){let t={};for(let n of c){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=a.default.events,p.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e[n](...r)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76016:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});let r=globalThis},76293:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let r=n(61940),i=n(76726),a=n(2018);function o(e,t){var n,o;let{basePath:s,i18n:l,trailingSlash:u}=null!=(n=t.nextConfig)?n:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};s&&(0,a.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,s),c.basePath=s);let p=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],p="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=p)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,r.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(o=e.pathname)?o:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.anal
493yze(p):(0,r.normalizeLocalePath)(p,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},76639:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r="production"},76726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let r=n(2018);function i(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},77316:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(94451),i=n(59101),a=n(9278);let o=e=>{let t=r.j.requestIdleCallback||r.j.setTimeout;r.j.document?.visibilityState==="hidden"?e():(e=(0,a.J)(e),(0,i.d)("visibilitychange",e,{once:!0,capture:!0}),(0,i.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,i.Q)("visibilitychange",e,{capture:!0}),(0,i.Q)("pagehide",e,{capture:!0})}))}},77886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let r=n(5240);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:i,hash:a}=(0,r.parsePath)(e);return""+n+t+i+a}},78305:(e,t)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},79785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(71239);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(30943)._(n(12115)).default.createContext(null)},80413:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"===r||"+"===r||"?"===r){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if("\\"===r){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if("{"===r){t.push({type:"OPEN",index:n,value:e[n++]});continue}if("}"===r){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(":"===r){for(var i="",a=n+1;a<e.length;){var o=e.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){i+=e[a++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=a;continue}if("("===r){var s=1,l="",a=n+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(s)throw TypeError("Unbalanced pattern at ".concat(n));if(!l)throw TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=a;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,a=void 0===r?"./":r,o=t.delimiter,s=void 0===o?"/#?":o,l=[],u=0,c=0,p="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},f=function(e){var t=d(e);if(void 0!==t)return t;var r=n[c],i=r.type,a=r.index;throw TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},_=function(e){for(var t=0;t<s.length;t++){var n=s[t];if(e.indexOf(n)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||_(n)?"[^".concat(i(s),"]+?"):"(?:(?!".concat(i(n),")[^").concat(i(s),"])+?")};c<n.length;){var m=d("CHAR"),y=d("NAME"),v=d("PATTERN");if(y||v){var b=m||"";-1===a.indexOf(b)&&(p+=b,b=""),p&&(l.push(p),p=""),l.push({name:y||u++,prefix:b,suffix:"",pattern:v||g(b),modifier:d("MODIFIER")||""});continue}var S=m||d("ESCAPED_CHAR");
493if(S){p+=S;continue}if(p&&(l.push(p),p=""),d("OPEN")){var b=h(),E=d("NAME")||"",w=d("PATTERN")||"",x=h();f("CLOSE"),l.push({name:E||(w?u++:""),pattern:E&&!w?g(b):w,prefix:b,suffix:x,modifier:d("MODIFIER")||""});continue}f("END")}return l}function n(e,t){void 0===t&&(t={});var n=a(t),r=t.encode,i=void 0===r?function(e){return e}:r,o=t.validate,s=void 0===o||o,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"==typeof a){n+=a;continue}var o=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,c="*"===a.modifier||"+"===a.modifier;if(Array.isArray(o)){if(!c)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===o.length){if(u)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var p=0;p<o.length;p++){var d=i(o[p],a);if(s&&!l[r].test(d))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix}continue}if("string"==typeof o||"number"==typeof o){var d=i(String(o),a);if(s&&!l[r].test(d))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix;continue}if(!u){var f=c?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(f))}}return n}}function r(e,t,n){void 0===n&&(n={});var r=n.decode,i=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],o=r.index,s=Object.create(null),l=1;l<r.length;l++)!function(e){if(void 0!==r[e]){var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return i(e,n)}):s[n.name]=i(r[e],n)}}(l);return{path:a,index:o,params:s}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,s=n.start,l=n.end,u=n.encode,c=void 0===u?function(e){return e}:u,p=n.delimiter,d=n.endsWith,f="[".concat(i(void 0===d?"":d),"]|$"),h="[".concat(i(void 0===p?"/#?":p),"]"),_=void 0===s||s?"^":"",g=0;g<e.length;g++){var m=e[g];if("string"==typeof m)_+=i(c(m));else{var y=i(c(m.prefix)),v=i(c(m.suffix));if(m.pattern)if(t&&t.push(m),y||v)if("+"===m.modifier||"*"===m.modifier){var b="*"===m.modifier?"?":"";_+="(?:".concat(y,"((?:").concat(m.pattern,")(?:").concat(v).concat(y,"(?:").concat(m.pattern,"))*)").concat(v,")").concat(b)}else _+="(?:".concat(y,"(").concat(m.pattern,")").concat(v,")").concat(m.modifier);else{if("+"===m.modifier||"*"===m.modifier)throw TypeError('Can not repeat "'.concat(m.name,'" without a prefix and suffix'));_+="(".concat(m.pattern,")").concat(m.modifier)}else _+="(?:".concat(y).concat(v,")").concat(m.modifier)}}if(void 0===l||l)o||(_+="".concat(h,"?")),_+=n.endsWith?"(?=".concat(f,")"):"$";else{var S=e[e.length-1],E="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;o||(_+="(?:".concat(h,"(?=").concat(f,"))?")),E||(_+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(_,a(n))}function s(t,n,r){if(t instanceof RegExp){var i;if(!n)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(t.source);c;)n.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(i=t.map(function(e){return s(e,n,r).source}),new RegExp("(?:".concat(i.join("|"),")"),a(r))):o(e(t,r),n,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,r){return n(e(t,r),r)},t.tokensToFunction=n,t.match=function(e,t){var n=[];return r(s(e,n,t),n,t)},t.regexpToFunction=r,t.tokensToRegexp=o,t.pathToRegexp=s})(),e.exports=t})()},80749:(e,t)=>{"use strict";function n(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})}
493,81304:(e,t,n)=>{"use strict";let r,i,a;n.d(t,{i:()=>c});var o=n(84678),s=n(83478),l=n(62037),u=n(94451);function c(e){(0,o.s5)("dom",e),(0,o.AS)("dom",p)}function p(){if(!u.j.document)return;let e=o.aj.bind(null,"dom"),t=d(e,!0);u.j.document.addEventListener("click",t,!1),u.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=u.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,s.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=d(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),(0,s.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function d(e,t=!1){return n=>{var o;if(!n||n._sentryCaptured)return;let c=function(e){try{return e.target}catch{return null}}(n);if(o=n.type,"keypress"===o&&(!c?.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,s.my)(n,"_sentryCaptured",!0),c&&!c._sentryId&&(0,s.my)(c,"_sentryId",(0,l.eJ)());let p="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(n)&&(e({event:n,name:p,global:t}),i=n.type,a=c?c._sentryId:void 0),clearTimeout(r),r=u.j.setTimeout(()=>{a=void 0,i=void 0},1e3)}}},81336:(e,t,n)=>{"use strict";n.d(t,{qQ:()=>i});let r="<anonymous>";function i(e){try{if(!e||"function"!=typeof e)return r;return e.name||r}catch{return r}}},82025:(e,t)=>{"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},82115:(e,t,n)=>{"use strict";function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},82889:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(94451);let i=(e=!0)=>{let t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},83478:(e,t,n)=>{"use strict";n.d(t,{GS:()=>a,my:()=>o});var r=n(25735),i=n(88711);function a(e,t,n){if(!(t in e))return;let a=e[t];if("function"!=typeof a)return;let s=n(a);"function"==typeof s&&function(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,o(e,"__sentry_original__",t)}catch{}}(s,a);try{e[t]=s}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function o(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}},83976:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},84253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,e:()=>i});var r=n(67080);function i(){return(0,r.eJ)()}function a(){return(0,r.eJ)().substring(16)}},84678:(e,t,n)=>{"use strict";n.d(t,{AS:()=>u,aj:()=>c,s5:()=>l});var r=n(25735),i=n(88711),a=n(81336);let o={},s={};function l(e,t){return o[e]=o[e]||[],o[e].push(t),()=>{let n=o[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function u(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){r.T&&i.Yz.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let n=e&&o[e];if(n)for(let o of n)try{o(t)}catch(t){r.T&&i.Yz.error(`Error while triggering instrumentation handler.
494Type: ${e}
495Name: ${(0,a.qQ)(o)}
496Error:`,t)}}},86205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,q:()=>a});var r=n(33783);function i(e){try{let t=r.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function a(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}}
496,87198:(e,t,n)=>{"use strict";n.d(t,{KU:()=>u,m6:()=>l,o5:()=>o,rm:()=>s});var r=n(10734),i=n(16355),a=n(15859);function o(){let e=(0,i.EU)();return(0,r.h)(e).getCurrentScope()}function s(){let e=(0,i.EU)();return(0,r.h)(e).getIsolationScope()}function l(){return(0,i.BY)("globalScope",()=>new a.H)}function u(){return o().getClient()}},88566:(e,t,n)=>{"use strict";let r;n.d(t,{Qw:()=>a,Wk:()=>s,hY:()=>o});var i=n(76016);function a(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i.O;return t in n&&"function"==typeof n[t]?(r=n[t])(e):(r=null,e())}function o(){return a(()=>Math.random())}function s(){return a(()=>Date.now())}},88711:(e,t,n)=>{"use strict";n.d(t,{Yz:()=>p,pq:()=>s});var r=n(27778),i=n(25735),a=n(76016);let o={};function s(e){if(!("console"in a.O))return e();let t=a.O.console,n={},r=Object.keys(o);r.forEach(e=>{let r=o[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function l(){return c().enabled}function u(e,...t){i.T&&l()&&s(()=>{a.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},90178:(e,t,n)=>{"use strict";n.d(t,{k1:()=>_});var r=n(76639),i=n(87198),a=n(10271),o=n(59476);let s="sentry-";function l(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[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 u=n(72289);function c(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,i.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}var p=n(23065);let d=Symbol.for("sentry.nonRecordingSpan");var f=n(21710);function h(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},a={environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e,org_id:(0,u.ul)(t)};return t.emit("createDsc",a),a}function _(e){let t=(0,i.KU)();if(!t)return{};let n=(0,p.zU)(e),r=(0,p.et)(n),u=r.data,_=n.spanContext().traceState,g=_?.get("sentry.sample_rate")??u[a.sy]??u[a.Ef];function m(e){return("number"==typeof g||"string"==typeof g)&&(e.sample_rate=`${g}`),e}let y=n._frozenDsc;if(y)return m(y);let v=!!n&&!0===n[d],b=v&&"ignored"===n.dropReason;if(v&&(!c(t.getOptions())||b)){let e=(0,f.Lb)(n).scope;if(e){let n={...function(e,t){let n=t.getPropagationContext();return n.dsc||h(n.traceId,e)}(t,e)};return b&&(n.sampled="false"),m(n)}}let S=_?.get("sentry.dsc"),E=S&&function(e){let t=function(e){if(e&&((0,o.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(l(t)).forEach(([t,n])=>{e[t]=n}),e),{}):l(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(s)&&(e[t.slice(s.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(S);if(E)return m(E);let w=h(e.spanContext().traceId,t),x=u[a.i_]??u["sentry.segment.name.source"],T=r.description;return"url"!==x&&T&&(w.transaction=T),c()&&(w.sampled=String((0,p.pK)(n)),w.sample_rand=_?.get("sentry.sample_rand")??(0,f.Lb)(n).scope?.getPropagationContext().sampleRand.toString()),m(w),t.emit("createDsc",w,n),w}},90781:(e,t,n)=>{"use strict";n.d(t,{Jz:()=>i,wq:()=>a});var r=n(45997);function i(e,t,n=(0,r.Wk)()){return(e[t]||e.all||0)>n}function a(e,{statusCode:t,headers:n},i=(0,r.Wk)()){let o={...e},s=n?.["x-sentry-rate-limits"],l=n?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,r]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(o[e]=i+s):o[e]=i+s;else o.all=i+s}else l?o.all=i+function(e,t=(0,r.Wk)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(l,i):429===t&&(o.all=i+6e4);return o}},91774:(e,t,n)=>{"use strict";n.d(t,{Er:()=>s,Mn:()=>l});var r=n(84678),i=n(97644),a=n(18213),o=n(94451);let s="__sentry_xhr_v3__";function l(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!o.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let o=Error(),l=1e3*(0,i.zf)(),u=(0,a.Kg)(n[0])?n[0].toUpperCase():void 0,c=function(e){if((0,a.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!u||!c)return e.apply(t,n);t[s]={method:u,url:c,request_headers:{}}
496,"POST"===u&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let p=()=>{let e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let n={endTimestamp:1e3*(0,i.zf)(),startTimestamp:l,xhr:t,virtualError:o};(0,r.aj)("xhr",n),t.removeEventListener("readystatechange",p)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(p(),e.apply(t,n))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[s];return o&&(0,a.Kg)(r)&&(0,a.Kg)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let a=t[s];if(!a)return e.apply(t,n);void 0!==n[0]&&(a.body=n[0]);let o={startTimestamp:1e3*(0,i.zf)(),xhr:t};return(0,r.aj)("xhr",o),e.apply(t,n)}})}},92385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let r=n(62296),i=n(34738);function a(e){let{re:t,groups:n}=e;return(0,i.safeRouteMatcher)(e=>{let i=t.exec(e);if(!i)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new r.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},o={};for(let[e,t]of Object.entries(n)){let n=i[t.pos];void 0!==n&&(t.repeat?o[e]=n.split("/").map(e=>a(e)):o[e]=a(n))}return o})}},94451:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=n(76016).O},96756:(e,t,n)=>{"use strict";n.d(t,{$N:()=>i});let r=n(33783).O;function i(){try{return r.document.location.href}catch{return""}}},97644:(e,t,n)=>{"use strict";let r;n.d(t,{k3:()=>u,lu:()=>o,zf:()=>s});var i=n(88566),a=n(76016);function o(){return(0,i.Wk)()/1e3}function s(){return(r??(r=function(){let{performance:e}=a.O;if(!e?.now||!e.timeOrigin)return o;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=a.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),n=(0,i.Wk)(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let o=e.timing?.navigationStart;return"number"==typeof o&&3e5>Math.abs(o+t-n)?o:n-t}()),l}},98156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u}});let r=n(16832),i=n(57630),a=n(13314),o=n(77700),s=n(25403);function l(e,t,n){let r={},l=1,u=[];for(let c of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),o=c.match(s.PARAMETER_PATTERN);if(e&&o&&o[2]){let{key:t,optional:n,repeat:i}=(0,s.parseMatchedParameter)(o[2]);r[t]={pos:l++,repeat:i,optional:n},u.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(o&&o[2]){let{key:e,repeat:t,optional:i}=(0,s.parseMatchedParameter)(o[2]);r[e]={pos:l++,repeat:t,optional:i},n&&o[1]&&u.push("/"+(0,a.escapeStringRegexp)(o[1]));let c=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";n&&o[1]&&(c=c.substring(1)),u.push(c)}else u.push("/"+(0,a.escapeStringRegexp)(c));t&&o&&o[3]&&u.push((0,a.escapeStringRegexp)(o[3]))}return{parameterizedRoute:u.join(""),groups:r}}function u(e,t){let{includeSuffix:n=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:i=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:o}=l(e,n,r),s=a;return i||(s+="(?:/)?"),{re:RegExp("^"+s+"$"),groups:o}}function c(e){let t,{interceptionMarker:n,getSafeRouteKey:r,segment:i,routeKeys:o,keyPrefix:l,backreferenceDuplicateKeys:u}=e,{key:c,optional:p,repeat:d}=(0,s.parseMatchedParameter)(i),f=c.replace(/\W/g,"");l&&(f=""+l+f);let h=!1;(0===f.length||f.length>30)&&(h=!0),isNaN(parseInt(f.slice(0,1)))||(h=!0),h&&(f=r());let _=f in o;l?o[f]=""+l+c:o[f]=c;let g=n?(0,a.escapeStringRegexp)(n):"";return t=_&&u?"\\k<"+f+">":d?"(?<"+f+">.+?)":"(?<"+f+">[^/]+?)",p?"(?:/"+g+t+")?":"/"+g+t}function p(e,t,n,l,u){let p,d=(p=0,()=>{let e="",t=++p;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),f={},h=[];for(let p of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.some(e=>p.startsWith(e)),o=p.match(s.PARAMETER_PATTERN);if(e&&o&&o[2])h.push(c({getSafeRouteKey:d,interceptionMarker:o[1],segment:o[2],routeKeys:f,keyPrefix:t?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:u}));else if(o&&o[2]){l&&o[1]&&h.push("/"+(0,a.escapeStringRegexp)(o[1]));let e=c({getSafeRouteKey:d,segment:o[2],routeKeys:f,keyPrefix:t?r.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:u});l&&o[1]&&(e=e.substring(1)),h.push(e)}else h.push("/"+(0,a.escapeStringRegexp)(p));n&&o&&o[3]&&h.push((0,a.escapeStringRegexp)(o[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:f}}function d(e,t){var n,r,i;
496let a=p(e,t.prefixRouteKeys,null!=(n=t.includeSuffix)&&n,null!=(r=t.includePrefix)&&r,null!=(i=t.backreferenceDuplicateKeys)&&i),o=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(o+="(?:/)?"),{...u(e,t),namedRegex:"^"+o+"$",routeKeys:a.routeKeys}}function f(e,t){let{parameterizedRoute:n}=l(e,!1,!1),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=p(e,!1,!1,!1,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}}}]);

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.