1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="705d8a37-709a-4493-ba31-e680b1d4d372",e._sentryDebugIdIdentifier="sentry-dbid-705d8a37-709a-4493-ba31-e680b1d4d372")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8495],{2244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return c},isNormalizedAppRoute:function(){return u},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return d},parseNormalizedAppRoute:function(){return f}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(72299),i=r(25704),s=r(56469);function l(e){if(""===e)return null;let t=s.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,i.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function u(e){return e.normalized}function c(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function p(e,t){let r,n,a,s=e.split("/").filter(Boolean),u=[];for(let c of s){let s=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,i.getSegmentParam)(t)?t:e}catch{return e}}(c));if(s){if("route-group"===s.type&&!(2&t))throw Object.defineProperty(new o.InvariantError(`${e} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===s.type&&!(1&t))throw Object.defineProperty(new o.InvariantError(`${e} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(u.push(s),s.interceptionMarker){let o=e.split(s.interceptionMarker);if(2!==o.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});n=p(o[0],t),a=p(o[1],t),r=s.interceptionMarker}}}let c=u.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:u,dynamicSegments:c,interceptionMarker:r,interceptingRoute:n,interceptedRoute:a}}function f(e){return p(e,0)}function d(e){return p(e,1)}},5359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseUrl",{enumerable:!0,get:function(){return o}});let n=r(31393),a=r(44850);function o(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);let t=new URL(e),r=t.username,o=t.password,i=r?o?`${r}:${o}`:r:null,s=t.pathname,l=t.search;return{auth:i,hash:t.hash,hostname:t.hostname,href:t.href,pathname:s,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},5422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let n=r(97826),a=r(53811);function o(e,t,r){let o="",i=(0,a.getRouteRegex)(e),s=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;o=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],a=`[${r?"...":""}${e}]`;return n&&(a=`${!t?"/":""}[${a}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(o=o.replace(a,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},7190:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return u}});let n=r(44131),a=r(7998),o=r(90603),i=r(59515),s=r(95888),l=r(44850);function u(e,t,r,u,c,p){let f,d=!1,h=!1,m=(0,l.parseRelativeUrl)(e),g=(0,o.removeTrailingSlash)((0,i.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),p).pathname),_=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,a.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>
1{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,a.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(m=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),g=(0,o.removeTrailingSlash)((0,i.normalizeLocalePath)((0,s.removeBasePath)(e),p).pathname),t.includes(g))return d=!0,f=g,!0;if((f=c(g))!==e&&t.includes(f))return d=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(d=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(f=c(g),y=d=t.includes(f)),!y){for(let e=0;e<r.fallback.length;e++)if(_(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:d,resolvedHref:f,externalDest:h}}},7797:(e,t,r)=>{"use strict";var n,a=r(41463);Object.defineProperty(t,"__esModule",{value:!0});var o={APP_CLIENT_INTERNALS:function(){return en},APP_PATHS_MANIFEST:function(){return b},APP_PATH_ROUTES_MANIFEST:function(){return E},AdapterOutputType:function(){return p},BARREL_OPTIMIZATION_PREFIX:function(){return V},BLOCKED_PAGES:function(){return W},BUILD_ID_FILE:function(){return B},BUILD_MANIFEST:function(){return w},CLIENT_PUBLIC_FILES_PATH:function(){return H},CLIENT_REFERENCE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_PATH:function(){return q},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return er},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return es},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return eo},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return F},DEFAULT_RUNTIME_WEBPACK:function(){return el},DEFAULT_SANS_SERIF_FONT:function(){return ed},DEFAULT_SERIF_FONT:function(){return ef},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return D},DEV_CLIENT_PAGES_MANIFEST:function(){return N},DYNAMIC_CSS_MANIFEST:function(){return ee},EDGE_RUNTIME_WEBPACK:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return ey},EXPORT_DETAIL:function(){return k},EXPORT_MARKER:function(){return P},FUNCTIONS_CONFIG_MANIFEST:function(){return S},IMAGES_MANIFEST:function(){return A},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Z},MIDDLEWARE_BUILD_MANIFEST:function(){return K},MIDDLEWARE_MANIFEST:function(){return M},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Q},MODERN_BROWSERSLIST_TARGET:function(){return s.default},NEXT_BUILTIN_DOCUMENT:function(){return J},NEXT_FONT_MANIFEST:function(){return T},PAGES_MANIFEST:function(){return v},PHASE_ANALYZE:function(){return d},PHASE_DEVELOPMENT_SERVER:function(){return g},PHASE_EXPORT:function(){return f},PHASE_INFO:function(){return y},PHASE_PRODUCTION_BUILD:function(){return h},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return _},PREFETCH_HINTS:function(){return C},PRERENDER_MANIFEST:function(){return x},REACT_LOADABLE_MANIFEST:function(){return U},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return j},ROUTES_MANIFEST:function(){return O},RSC_MODULE_TYPES:function(){return e_},SERVER_DIRECTORY:function(){return z},SERVER_FILES_MANIFEST:function(){return I},SERVER_PROPS_ID:function(){return ep},SERVER_REFERENCE_MANIFEST:function(){return X},STATIC_PROPS_ID:function(){return ec},STATIC_STATUS_PAGES:function(){return eh},STRING_LITERAL_DROP_BUNDLE:function(){return Y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return R},SYSTEM_ENTRYPOINTS:function(){return ev},TRACE_OUTPUT_VERSION:function(){return em},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return $},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return L},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eg},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var i in o)Object.defineProperty(t,i,{enumerable:!0,get:o[i]});let s=r(73623)._(r(95167)),l=r(41424),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var p=((n={}
1).PAGES="PAGES",n.PAGES_API="PAGES_API",n.APP_PAGE="APP_PAGE",n.APP_ROUTE="APP_ROUTE",n.PRERENDER="PRERENDER",n.STATIC_FILE="STATIC_FILE",n.MIDDLEWARE="MIDDLEWARE",n);let f="phase-export",d="phase-analyze",h="phase-production-build",m="phase-production-server",g="phase-development-server",_="phase-test",y="phase-info",v="pages-manifest.json",b="app-paths-manifest.json",E="app-path-routes-manifest.json",w="build-manifest.json",S="functions-config-manifest.json",R="subresource-integrity-manifest",T="next-font-manifest",P="export-marker.json",k="export-detail.json",x="prerender-manifest.json",C="prefetch-hints.json",O="routes-manifest.json",A="images-manifest.json",I="required-server-files",N="_devPagesManifest.json",j="/_next/development/request-insights",M="middleware-manifest.json",L="_clientMiddlewareManifest.js",$="client-build-manifest.json",D="_devMiddlewareManifest.json",U="react-loadable-manifest.json",z="server",F=["next.config.js","next.config.mjs","next.config.ts",...a?.features?.typescript?["next.config.mts"]:[]],B="BUILD_ID",W=["/_document","/_app","/_error"],H="public",q="static",Y="__NEXT_DROP_CLIENT_FILE__",J="__NEXT_BUILTIN_DOCUMENT__",V="__barrel_optimize__",G="client-reference-manifest",X="server-reference-manifest",K="middleware-build-manifest",Q="middleware-react-loadable-manifest",Z="interception-route-rewrite-manifest",ee="dynamic-css-manifest",et="main",er=`${et}-app`,en="app-pages-internals",ea="react-refresh",eo="webpack",ei="polyfills",es=Symbol(ei),el="webpack-runtime",eu="edge-runtime-webpack",ec="__N_SSG",ep="__N_SSP",ef={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ed={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},eh=["/500"],em=1,eg=6e3,e_={client:"client",server:"server"},ey=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ev=new Set([et,ea,er]);("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)},7998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={compileNonPath:function(){return f},matchHas:function(){return p},parseDestination:function(){return d},prepareDestination:function(){return h}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(11131),i=r(5359),s=r(56469),l=r(47238),u=r(45729);function c(e){return e.replace(/__ESC_COLON_/gi,":")}function p(e,t,r=[],n=[]){let a={},o=r=>{let n,o=r.key;switch(r.type){case"header":o=o.toLowerCase(),n=e.headers[o];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[o];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!(!r.every(e=>o(e))||n.some(e=>o(e)))&&a}function f(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,u.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function d(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}
1))r&&(t=t.replace(RegExp(`:${(0,o.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,i.parseUrl)(t),n=r.pathname;n&&(n=c(n));let a=r.href;a&&(a=c(a));let s=r.hostname;s&&(s=c(s));let l=r.hash;l&&(l=c(l));let u=r.search;u&&(u=c(u));let p=r.origin;return p&&(p=c(p)),{...r,pathname:n,hostname:s,href:a,hash:l,search:u,origin:p}}function h(e){let t,r,n=d(e),{hostname:a,query:o,search:i}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let p=[],h=[];for(let e of((0,u.safePathToRegexp)(l,h),h))p.push(e.name);if(a){let e=[];for(let t of((0,u.safePathToRegexp)(a,e),e))p.push(t.name)}let m=(0,u.safeCompile)(l,{validate:!1});for(let[r,n]of(a&&(t=(0,u.safeCompile)(a,{validate:!1,encode:encodeURIComponent})),Object.entries(o)))Array.isArray(n)?o[r]=n.map(t=>f(c(t),e.params)):"string"==typeof n&&(o[r]=f(c(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>p.includes(e)))for(let t of g)t in o||(o[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[a,o]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=a,n.hash=`${o?"#":""}${o||""}`,n.search=i?f(i,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:o,parsedDestination:n}}},8955:(e,t,r)=>{"use strict";r.d(t,{FA:()=>a,Jz:()=>o,wq:()=>i});var n=r(32751);function a(e,t=(0,n.Wk)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let o=Date.parse(`${e}`);return isNaN(o)?6e4:o-t}function o(e,t,r=(0,n.Wk)()){return(e[t]||e.all||0)>r}function i(e,{statusCode:t,headers:r},o=(0,n.Wk)()){let s={...e},l=r?.["x-sentry-rate-limits"],u=r?.["retry-after"];if(l)for(let e of l.trim().split(",")){let[t,r,,,n]=e.split(":",5),a=parseInt(t,10),i=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!n||n.split(";").includes("custom"))&&(s[e]=o+i):s[e]=o+i;else s.all=o+i}else u?s.all=o+a(u,o):429===t&&(s.all=o+6e4);return s}},9244:(e,t,r)=>{"use strict";r.d(t,{qd:()=>l,wg:()=>c,y7:()=>u});var n=r(7570),a=r(56932),o=r(59195),i=r(83872);let s={};function l(e){let t=s[e];if(t)return t;let r=i.j[e];if((0,n.a3)(r))return s[e]=r.bind(i.j);let l=i.j.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let n=t.contentWindow;n?.[e]&&(r=n[e]),l.head.removeChild(t)}catch(t){o.T&&a.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?s[e]=r.bind(i.j):r}function u(e){s[e]=void 0}function c(...e){return l("setTimeout")(...e)}},9416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(31393),a=r(20091),o=r(46693),i=r(10857),s=r(50020),l=r(69470),u=r(64788),c=r(5422),p=r(53811),f=r(97826);function d(e,t,r){let d,h="string"==typeof t?t:(0,a.formatWithValidation)(t),m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[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,i.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[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 r=(0,p.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}d=new URL(t,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(h,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);
1i&&(t=(0,a.formatWithValidation)({pathname:i,hash:e.hash,query:(0,o.omit)(r,s)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[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)},11131:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return a}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function a(e){return r.test(e)?e.replace(n,"\\$&"):e}},11700:e=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t,r,n,a,o={};o.parse=function(e,r){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var a={},o=e.split(n),i=(r||{}).decode||t,s=0;s<o.length;s++){var l=o[s],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),p=l.substr(++u,l.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),void 0==a[c]&&(a[c]=function(e,t){try{return t(e)}catch(t){return e}}(p,i))}}return a},o.serialize=function(e,t,n){var o=n||{},i=o.encode||r;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!a.test(o.domain))throw TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!a.test(o.path))throw TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
1d");l+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},t=decodeURIComponent,r=encodeURIComponent,n=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,e.exports=o})()},15099:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(57739);function a(e,t){var r,a,i,s,l,u;let c,p=t?.getDsn(),f=t?.getOptions().tunnel;return r=e,a=p,!(!(c=(0,n.kg)(r))||(0,n.nt)(c))&&!!a&&(i=c.hostname,i===(s=a.host)||s.length>0&&i.endsWith(`.${s}`))&&/(^|&|\?)sentry_key=/.test(c.search)||(l=e,!!(u=f)&&o(l)===o(u))}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},17905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DYNAMIC_FILTER_PLACEHOLDER:function(){return a},hasDynamicFilterCandidate:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a="[]";function o(e,t,r){let n=e.split("/"),o=t.split("/"),i=n[n.length-1]??"";if(!(i.startsWith("[...")||i.startsWith("[[..."))&&n.length!==o.length)return!1;let s=[];for(let e=1;e<o.length;e++){if(""===o[e])continue;let t=n[e];(void 0===t||t.startsWith("["))&&s.push(e)}if(0===s.length||s.length>8)return!1;let l=(1<<s.length)-1;for(let e=0;e<l;e++){let t=o.slice();for(let r=0;r<s.length;r++)(e&1<<r)==0&&(t[s[r]]=a);if(r(t.join("/")))return!0}return!1}},20619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return a}});let n=r(28356);function a(e,t,r){return new Promise((r,a)=>{let o=!1;e.then(e=>{o=!0,r(e)}).catch(a),(0,n.requestIdleCallback)(()=>setTimeout(()=>{o||a(t)},3800))})}("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)},21541:(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.d(t,{t:()=>n})},21617:(e,t)=>{"use strict";let r;function n(e){return(void 0===r&&(r=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),r)?.createScriptURL(e)||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return 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)},23869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=(...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)},24871:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0});var a={createKey:function(){return X},default:function(){return Z},matchesMiddleware:function(){return B}};for(var o in a)Object.defineProperty(t,o,{enumerable:!0,get:a[o]});let i=r(73623),s=r(66388),l=r(90603),u=r(45945),c=r(42593),p=s._(r(36981)),f=r(54960),d=r(59515),h=i._(r(57806)),m=r(10857),g=r(42592),_=r(44850),y=r(97826),v=r(53811),b=r(17905),E=r(20091);r(23869);let w=r(52697),S=r(25946),R=r(31267),T=r(95888),P=r(70127),k=r(48512),x=r(9416),C=r(32063),O=r(71020),A=r(37745),I=r(38876),N=r(69470),j=r(98080),M=r(46693),L=r(5422),$=r(58465),D=r(7103),U=r(53887),z=r(145);function F(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function B(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,w.parsePath)(e.asPath),n=(0,k.hasBasePath)(r)?(0,T.removeBasePath)(r):r,a=(0,P.addBasePath)((0,S.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function W(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function H(e,t,r){let[n,a]=(0,x.resolveHref)(e,t,!0),o=(0,m.getLocationOrigin)(),i=n.startsWith(o),s=a&&a.startsWith(o);n=W(n),a=a?W(a):a;let l=i?n:(0,P.addBasePath)(n),u=r?W((0,x.resolveHref)(e,r)):a||n;return{url:l,as:s?u:(0,P.addBasePath)(u)}}function q(e,t){let r=(0,l.removeTrailingSlash)((0,f.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function Y(e){if(!await B(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),i=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(D.MATCHED_PATH_HEADER);if(!s||i||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(i=s),i){if(i.startsWith("/")){let t=(0,_.parseRelativeUrl)(i),s=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}
1),c=(0,l.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,u.getClientBuildManifest)()]).then(([i,{__rewrites:l}])=>{let u=(0,S.addLocale)(s.pathname,s.locale);if((0,g.isDynamicRoute)(u)||!o&&i.includes((0,d.normalizeLocalePath)((0,T.removeBasePath)(u),r.router.locales).pathname)){let r=(0,O.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:a.basePath,trailingSlash:a.trailingSlash},parseData:!0});t.pathname=u=(0,P.addBasePath)(r.pathname)}{let e=n(u,i,l,t.query,e=>q(e,i),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,u=t.pathname,Object.assign(t.query,e.parsedAs.query))}let p=i.includes(c)?c:q((0,d.normalizeLocalePath)((0,T.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,g.isDynamicRoute)(p)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(p))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:p}})}let t=(0,w.parsePath)(e),s=(0,A.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,w.parsePath)(c),t=(0,A.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.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:c})}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:r}}n=r(7190).A;let J=Symbol("SSG_DATA_NOT_FOUND");function V(e){try{return JSON.parse(e)}catch(e){return null}}function G({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:o,persistCache:i,isBackground:s,unstable_skipClientCache:l}){let{href:c}=new URL(e,window.location.href),p=(0,U.getDeploymentId)(),f=s=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},p?{"x-deployment-id":p}:{}),method:s?.method??"GET"}).then(t=>t.ok&&s?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&V(r)?.notFound)return{dataHref:e,json:{notFound:J},response:t,text:r,cacheKey:c};let o=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,u.markAssetError)(o),o}let i=t.headers.get(D.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=i&&i!==p){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw a||(0,u.markAssetError)(e),e}return{dataHref:e,json:o?V(r):null,response:t,text:r,cacheKey:c}})).then(e=>(i&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw l||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,u.markAssetError)(e),e});return l&&i?f({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=f(s?{method:"HEAD"}:{})}function X(){return Math.random().toString(36).slice(2,10)}function K({url:e,router:t}){if(e===(0,P.addBasePath)((0,S.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let Q=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}
1"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class Z{static{this.events=(0,h.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:o,wrapApp:i,Component:s,err:u,subscription:c,isFallback:p,locale:f,locales:d,defaultLocale:h,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=X(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,E.formatWithValidation)({pathname:(0,P.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:o,options:i,key:s}=n;this._key=s;let{pathname:l}=(0,_.parseRelativeUrl)(a);this.isSsr&&o===(0,P.addBasePath)(this.asPath)&&l===(0,P.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,o,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};const b=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[b]={Component:s,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]},this.events=Z.events,this.pageLoader=a;const w=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=i,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&&0),this.state={route:b,pathname:e,query:t,asPath:w?e:r,isPreview:!!v,locale:void 0,isFallback:p},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){const n={locale:f},a=(0,m.getURL)();this._initialMatchesMiddlewarePromise=B({router:this,locale:f,asPath:a}).then(o=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",o?a:(0,E.formatWithValidation)({pathname:(0,P.addBasePath)(e),query:t}),a,n),o))}window.addEventListener("popstate",this.onPopState)}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,z.isJavaScriptURLString)(e.toString())||t&&(0,z.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,z.isJavaScriptURLString)(e.toString())||t&&(0,z.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,a){{if(!this._bfl_s&&!this._bfl_d){let t,o,{BloomFilter:i}=r(44624);try{({__routerFilterStatic:t,__routerFilterDynamic:o}=await (0,u.getClientBuildManifest)())}catch(t){if(console.error(t),a)return!0;return K({url:(0,P.addBasePath)((0,S.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}t?.numHashes&&(this._bfl_s=new i(t.numItems,t.errorRate),this._bfl_s.import(t)),o?.numHashes&&(this._bfl_d=new i(o.numItems,o.errorRate),this._bfl_d.import(o))}let o=!1,i=!1;for(let{as:r,allowMatchCurrent:s}of[{as:e},{as:t}])if(r){let t=(0,l.removeTrailingSlash)(new URL(r,"http://n").pathname),u=(0,P.addBasePath)((0,S.addLocale)(t,n||this.locale));if(s||t!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(o=o||!!this._bfl_s?.contains(t)||!!this._bfl_s?.contains(u),[t,u])){let t=e.split("/");for(let e=0;!i&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){i=!0;break}}}if(o||i){if(a)return!0;return K({url:(0,P.addBasePath)((0,S.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,a,o){let i,s;if(!(0,N.isLocalURL)(t))return K({url:t,router:this}),!1;let f=1===a._h;f||a.shallow||await this._bfl(r,void 0,a.locale);let d=f||a._shouldResolveHref||(0,w.parsePath)(t).pathname===(0,w.parsePath)(r).pathname,h={...this.state},x=!0!==this.isReady;this.isReady=!0;let C=this.isSsr;if(f||(this.isSsr=!1),f&&this.clc)return!1;let O=h.locale;m.ST&&performance.mark("routeChange");let{shallow:A=!1,scroll:j=!0}=a,$={shallow:A};this._inFlightRoute&&this.clc&&(C||Z.events.emit("routeChangeError",F(),this._inFlightRoute,$),this.clc(),this.clc=null),r=(0,P.addBasePath)((0,S.addLocale)((0,k.hasBasePath)(r)?(0,T.removeBasePath)(r):r,a.locale,this.defaultLocale));let D=(0,R.removeLocale)((0,k.hasBasePath)(r)?(0,T.removeBasePath)(r):r,h.locale);this._inFlightRoute=r;let U=O!==h.locale;if(!f&&this.onlyAHashChange(D)&&!U){h.asPath=D,Z.events.emit("hashChangeStart",r,$),this.changeState(e,t,r,{...a,scroll:!1}),j&&this.scrollToHash(D);try{await this.set(h,this.components[h.route],null)}catch(e){throw(0,p.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,D,$),e}
1return Z.events.emit("hashChangeComplete",r,$),!0}let z=(0,_.parseRelativeUrl)(t),{pathname:W,query:Y}=z;try{[i,{__rewrites:s}]=await Promise.all([this.pageLoader.getPageList(),(0,u.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return K({url:r,router:this}),!1}this.urlIsNew(D)||U||(e="replaceState");let V=r;W=W?(0,l.removeTrailingSlash)((0,T.removeBasePath)(W)):W;let G=(0,l.removeTrailingSlash)(W),X=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[W]?.__appRouter)return K({url:r,router:this}),new Promise(()=>{});let Q=!!(X&&G!==X&&(!(0,g.isDynamicRoute)(G)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(G))(X))),ee=!a.shallow&&await B({asPath:r,locale:h.locale,router:this});if(f&&ee&&(d=!1),d&&"/_error"!==W)if(a._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,P.addBasePath)((0,S.addLocale)(D,h.locale),!0),i,s,Y,e=>q(e,i),this.locales);if(e.externalDest)return K({url:r,router:this}),!0;ee||(V=e.asPath),e.matchedPage&&e.resolvedHref&&(W=e.resolvedHref,z.pathname=(0,P.addBasePath)(W),ee||(t=(0,E.formatWithValidation)(z)))}else z.pathname=q(W,i),z.pathname!==W&&(W=z.pathname,z.pathname=(0,P.addBasePath)(W),ee||(t=(0,E.formatWithValidation)(z)));if(!f&&!a.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(W)){let e=(0,l.removeTrailingSlash)((0,_.parseRelativeUrl)(D).pathname);if((0,b.hasDynamicFilterCandidate)(W,e,e=>!!this._bfl_d?.contains(e)))return K({url:r,router:this}),new Promise(()=>{})}if(!(0,N.isLocalURL)(r))return K({url:r,router:this}),!1;V=(0,R.removeLocale)((0,T.removeBasePath)(V),h.locale),G=(0,l.removeTrailingSlash)(W);let et=!1;if((0,g.isDynamicRoute)(G)){let e=(0,_.parseRelativeUrl)(V),n=e.pathname,a=(0,v.getRouteRegex)(G);et=(0,y.getRouteMatcher)(a)(n);let o=G===n,i=o?(0,L.interpolateAs)(G,n,Y):{};if(et&&(!o||i.result))o?r=(0,E.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,M.omit)(Y,i.params)})):Object.assign(Y,et);else{let e=Object.keys(a.groups).filter(e=>!Y[e]&&!a.groups[e].optional);if(e.length>0&&!ee)throw Object.defineProperty(Error((o?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${G}). `)+`Read more: https://nextjs.org/docs/messages/${o?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}f||Z.events.emit("routeChangeStart",r,$);let er="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:G,pathname:W,query:Y,as:r,resolvedAs:V,routeProps:$,locale:h.locale,isPreview:h.isPreview,hasMiddleware:ee,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:f&&!this.isFallback,isMiddlewareRewrite:Q});if(f||a.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,h.locale),"route"in n&&ee){G=W=n.route||G,$.shallow||(Y=Object.assign({},n.query||{},Y));let e=(0,k.hasBasePath)(z.pathname)?(0,T.removeBasePath)(z.pathname):z.pathname;if(et&&W!==e&&Object.keys(et).forEach(e=>{et&&Y[e]===et[e]&&delete Y[e]}),(0,g.isDynamicRoute)(W)){let e=!$.shallow&&n.resolvedAs?n.resolvedAs:(0,P.addBasePath)((0,S.addLocale)(new URL(r,location.href).pathname,h.locale),!0);(0,k.hasBasePath)(e)&&(e=(0,T.removeBasePath)(e));let t=(0,v.getRouteRegex)(W),a=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);a&&Object.assign(Y,a)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,a);else return K({url:n.destination,router:this}),new Promise(()=>{});let s=n.Component;if(s&&s.unstable_scriptLoader&&[].concat(s.unstable_scriptLoader()).forEach(e=>{(0,c.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){a.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,_.parseRelativeUrl)(t);r.pathname=q(r.pathname,i);let{url:n,as:o}=H(this,t,t);return this.change(e,n,o,a)}return K({url:t,router:this}),new Promise(()=>{})}if(h.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===J){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:Y,as:r,resolvedAs:V,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,
1configurable:!0})}}f&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=a.shallow&&h.route===(n.route??G),u=a.scroll??(!f&&!l),d=o??(u?{x:0,y:0}:null),m={...h,route:G,pathname:W,query:Y,asPath:D,isFallback:!1};if(f&&er){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:Y,as:r,resolvedAs:V,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isQueryUpdating:f&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,d)}catch(e){throw(0,p.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,D,$),e}return!0}if(Z.events.emit("beforeHistoryChange",r,$),this.changeState(e,t,r,a),!(f&&!d&&!x&&!U&&(0,I.compareRouterStates)(m,this.state))){try{await this.set(m,n,d)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw f||Z.events.emit("routeChangeError",n.error,D,$),n.error;f||Z.events.emit("routeChangeComplete",r,$),u&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,p.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:X()},"",r))}async handleRouteInfoError(e,t,r,n,a,o){if(e.cancelled)throw e;if((0,u.isAssetError)(e)||o)throw Z.events.emit("routeChangeError",e,n,a),K({url:n,router:this}),F();console.error(e);try{let n,{page:a,styleSheets:o}=await this.fetchComponent("/_error"),i={props:n,Component:a,styleSheets:o,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,p.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:o,locale:i,hasMiddleware:s,isPreview:u,unstable_skipClientCache:c,isQueryUpdating:f,isMiddlewareRewrite:h,isNotFound:m}){let g=e;try{let e=this.components[g];if(o.shallow&&e&&this.route===g)return e;let p=Q({route:g,router:this});s&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":a,locale:i}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c,isBackground:f},v=f&&!h?null:await Y({fetchData:()=>G(y),asPath:m?"/404":a,locale:i,router:this}).catch(e=>{if(f)return null;throw e});if(v&&("/_error"===t||"/404"===t)&&(v.effect=void 0),f&&(v?v.json=self.__NEXT_DATA__.props:v={json:self.__NEXT_DATA__.props}),p(),v?.effect?.type==="redirect-internal"||v?.effect?.type==="redirect-external")return v.effect;if(v?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(v.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!f||i.includes(n))&&(g=n,t=v.effect.resolvedHref,r={...r,...v.effect.parsedAs.query},a=(0,T.removeBasePath)((0,d.normalizeLocalePath)(v.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],o.shallow&&e&&this.route===g&&!s))return{...e,route:g}}if((0,C.isAPIRoute)(g))return K({url:n,router:this}),new Promise(()=>{});let b=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),w=v?.response?.headers.get("x-middleware-skip"),S=b.__N_SSG||b.__N_SSP;w&&v?.dataHref&&delete this.sdc[v.dataHref];let{props:R,cacheKey:P}=await this._getData(async()=>{if(S){if(v?.json&&!w)return{cacheKey:v.cacheKey,props:v.json};let e=v?.dataHref?v.dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:i}),n=await G({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:w?{}
1:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(b.Component,{pathname:t,query:r,asPath:n,locale:i,locales:this.locales,defaultLocale:this.defaultLocale})}});return b.__N_SSP&&y.dataHref&&P&&delete this.sdc[P],this.isPreview||!b.__N_SSG||f||G(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),b.props=R,b.route=g,b.query=r,b.resolvedAs=a,this.components[g]=b,b}catch(e){return this.handleRouteInfoError((0,p.getProperError)(e),t,r,n,o)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,$.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if((0,j.isBot)(window.navigator.userAgent))return;let a=(0,_.parseRelativeUrl)(e),o=a.pathname,{pathname:i,query:s}=a,c=i,p=await this.pageLoader.getPageList(),f=t,d=void 0!==r.locale?r.locale||void 0:this.locale,h=await B({asPath:t,locale:d,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,u.getClientBuildManifest)());let o=n((0,P.addBasePath)((0,S.addLocale)(t,this.locale),!0),p,r,a.query,e=>q(e,p),this.locales);if(o.externalDest)return;h||(f=(0,R.removeLocale)((0,T.removeBasePath)(o.asPath),this.locale)),o.matchedPage&&o.resolvedHref&&(a.pathname=i=o.resolvedHref,h||(e=(0,E.formatWithValidation)(a)))}a.pathname=q(a.pathname,p),(0,g.isDynamicRoute)(a.pathname)&&(i=a.pathname,a.pathname=i,Object.assign(s,(0,y.getRouteMatcher)((0,v.getRouteRegex)(a.pathname))((0,w.parsePath)(t).pathname)||{}),h||(e=(0,E.formatWithValidation)(a)));let m=await Y({fetchData:()=>G({dataHref:this.pageLoader.getDataHref({href:(0,E.formatWithValidation)({pathname:c,query:s}),skipInterpolation:!0,asPath:f,locale:d}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if(m?.effect.type==="rewrite"&&(a.pathname=m.effect.resolvedHref,i=m.effect.resolvedHref,s={...s,...m.effect.parsedAs.query},f=m.effect.parsedAs.pathname,e=(0,E.formatWithValidation)(a)),m?.effect.type==="redirect-external")return;let b=(0,l.removeTrailingSlash)(i);await this._bfl(t,f,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&G({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:f,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=Q({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===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:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,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}}},25704:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(56469);function i(e){let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},25946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(50020);let n=(e,...t)=>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)},28356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a="u">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)},o="u">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)},28644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={PARAM_SEPARATOR:function(){return a},hasAdjacentParameterIssues:function(){return o},normalizeAdjacentParameters:function(){return i},normalizeTokensForRegexp:function(){return s},stripNormalizedSeparators:function(){return l},stripParameterSeparators:function(){return u}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a="_NEXTSEP_";function o(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${a}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${a}`)}function s(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 l(e){return e.replace(RegExp(`\\)${a}`,"g"),")")}function u(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${a}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${a}`),""):e):t[r]=n;return t}},30762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});class a{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(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 r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>
1[...e,...t],[]);if(null!==this.slugName&&r.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});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_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 n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let a=n.slice(1,-1),i=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),i=!0),a.startsWith("â¦"))throw Object.defineProperty(Error(`Detected a three-dot character ('â¦') at ('${a}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),r=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${a}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(a.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${a}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function o(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(i){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});o(this.optionalRestSlugName,a),this.optionalRestSlugName=a,n="[[...]]"}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,configurable:!0});o(this.restSlugName,a),this.restSlugName=a,n="[...]"}else{if(i)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});o(this.slugName,a),this.slugName=a,n="[]"}}this.children.has(n)||this.children.set(n,new a),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function o(e){let t=new a;return e.forEach(e=>t.insert(e)),t.smoosh()}function i(e,t){let r={},n=[];for(let a=0;a<e.length;a++){let o=t(e[a]);r[o]=a,n[a]=o}return o(n).map(t=>e[r[t]])}},31267:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(52697),("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)},32063:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},33143:(e,t,r)=>{"use strict";r.d(t,{JI:()=>c,FD:()=>p});var n=r(23301),a=r(60834),o=r(18847),i=r(17624),s=r(57100),l=r(76249),u=r(45735);function c(e,t){var r,c;let f,d,h=(0,o.RD)(e),m=(0,o.aW)(e),g=(0,o.RD)(m),{isolationScope:_,scope:y}=(0,i.Lb)(e),v=(0,a.Om)(_,y);!function(e,t,r,a){let o=r.getSdkMetadata(),{release:i,environment:s}=r.getOptions();p(e,{[u.Bfx]:"stream",[u.suP]:t.name,[u.ewL]:t.span_id,[u.VEj]:o?.sdk?.name,[u._1V]:o?.sdk?.version,[n.Kh]:i,[n.Wp]:s||l.U,[n.oJ]:a.user?.id,[n.dB]:a.user?.email,[n.Xg]:a.user?.ip_address,[n.zR]:a.user?.username,...a.attributes})}(h,g,t,v);let b=e.kind;t.emit("preprocessSpan",h,{spanKind:b}),h.is_segment&&(p(h,function(e){let t={},{response:r,profile:n,cloud_resource:a,culture:o,state:i}=e;if(r&&(null!=r.status_code&&(t["http.response.status_code"]=r.status_code),null!=r.body_size&&(t["http.response.body.size"]=r.body_size)),n&&(n.profile_id&&(t["sentry.profile_id"]=n.profile_id),n.profiler_id&&(t["sentry.profiler_id"]=n.profiler_id)),a)for(let[e,r]of Object.entries(a))null!=r&&(t[e]=r);o&&(o.locale&&(t["culture.locale"]=o.locale),o.timezone&&(t["culture.timezone"]=o.timezone)),i?.state&&"string"==typeof i.state.type&&(t["state.type"]=i.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}(v.contexts)),r=h,(f=t.getIntegrationNames()).length&&p(r,{[n.fU]:f}),t.emit("processSegmentSpan",h)),t.emit("processSpan",h);let{beforeSendSpan:E}=t.getOptions(),w=E&&(0,s.S)(E)?(d=E(c=h))||((0,o.xl)(),c):h,S=w.attributes?.[n.i_];return S&&p(w,{[u.Fsp]:S}),{...(0,o.PL)(w),_segmentSpan:m}}function p(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}},37745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(90603),a=r(29940),o=r(70929),i=r(72444);function s(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,a.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},38069:(e,t)=>{"use strict";function r(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return r}})},38876:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let a=r[n];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},39949:(e,t,r)=>{"use strict";let n,a,o;r.d(t,{i:()=>c});var i=r(6867),s=r(13941),l=r(48262),u=r(83872);function c(e){(0,i.s5)("dom",e),(0,i.AS)("dom",p)}function p(){if(!u.j.document)return;let e=i.aj.bind(null,"dom"),t=f(e,!0);u.j.document.addEventListener("click",t,!1),u.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=u.j,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,s.GS)(n,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=f(e);o.handler=n,t.call(this,r,n,a)}o.refCount++}catch{}return t.call(this,r,n,a)}}),(0,s.GS)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function f(e,t=!1){return r=>{var i;if(!r||r._sentryCaptured)return;let c=function(e){try{return e.target}catch{return null}}(r);if(i=r.type,"keypress"===i&&(!c?.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,s.my)(r,"_sentryCaptured",!0),c&&!c._sentryId&&(0,s.my)(c,"_sentryId",(0,l.eJ)());let p="keypress"===r.type?"input":r.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch{}return!0}(r)&&(e({event:r,name:p,global:t}),a=r.type,o=c?c._sentryId:void 0),clearTimeout(n),n=u.j.setTimeout(()=>{o=void 0,a=void 0},1e3)}}},41356:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseLoaderTree",{enumerable:!0,get:function(){return a}});let n=r(78237);function a(e){let[t,r,a,o]=e,{layout:i,template:s}=a,{page:l}=a;l=t===n.DEFAULT_SEGMENT_KEY?a.defaultPage:l;let u=i?.[1]||s?.[1]||l?.[1];return{page:l,segment:t,modules:a,conventionPath:u,parallelRoutes:r,staticSiblings:o}}},41424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return i},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return s},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a="/_not-found",o=`${a}/page`,i="/_global-error",s=`${i}/page`},42592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(56469),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,o=/\/\[[^/]+\](?=\/|$)/;function i(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?o.test(e):a.test(e)}},42593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return b},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return y}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(73623),i=r(66388),s=r(95155),l=o._(r(47650)),u=i._(r(12115)),c=r(75368),p=r(3584),f=r(28356),d=r(71922),h=new Map,m=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,f=r||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(n,u);return}let d=()=>{a&&a(),m.add(f)},g=document.createElement("script"),_=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),d()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(g.innerHTML=o.__html||"",d()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",d()):t&&(g.src=t,h.set(t,_)),(0,p.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function y(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function v(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:o="afterInteractive",onError:i,stylesheets:p,...h}=e,{updateScripts:_,scripts:y,getIsSsr:v,appDir:b,nonce:E}=(0,u.useContext)(c.HeadManagerContext);E=h.nonce||E;let w=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;w.current||(a&&e&&m.has(e)&&a(),w.current=!0)},[a,t,r]);let S=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!S.current){if("afterInteractive"===o)g(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));S.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(_?(y[o]=(y[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:i,...h,nonce:E}]),_(y)):v&&v()?m.add(t||r):v&&!v()&&g({...e,nonce:E})),b){if(p&&p.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===o&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let b=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPathMatch",{enumerable:!0,get:function(){return a}});let n=r(89990);function a(e,t){let r=[],a=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),o=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(a.source),a.flags):a,r);return(e,n)=>{if("string"!=typeof e)return!1;let a=o(e);if(!a)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete a.params[e.name];return{...n,...a.params}}}},44624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{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)}static from(e,t=1e-4){let n=new r(e.length,t);for(let t of e)n.add(t);return n}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 r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},44850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let n=r(10857),a=r(31393);function o(e,t,r=!0){let i=new URL((0,n.getLocationOrigin)()),s=t?new URL(t,i):e.startsWith(".")?new URL(window.location.href):i,{pathname:l,searchParams:u,search:c,hash:p,href:f,origin:d}=e.startsWith("/")?new URL(`${s.protocol}//${s.host}${e}`):new URL(e,s);if(d!==i.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:l,port:null,protocol:null,query:r?(0,a.searchParamsToUrlQuery)(u):void 0,search:c,hash:p,href:f.slice(d.length),slashes:null}}},45729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return c}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(89990),i=r(28644);function s(e,t,r){if("string"!=typeof e)return(0,o.pathToRegexp)(e,t,r);let n=(0,i.hasAdjacentParameterIssues)(e),a=n?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,o.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,i.normalizeAdjacentParameters)(e);return(0,o.pathToRegexp)(n,t,r)}catch(e){}throw a}}function l(e,t){let r=(0,i.hasAdjacentParameterIssues)(e),n=r?(0,i.normalizeAdjacentParameters)(e):e;try{let e=(0,o.compile)(n,t);if(r)return t=>(0,i.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e),n=(0,o.compile)(r,t);return e=>(0,i.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function u(e,t){let r=(0,o.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,i.stripParameterSeparators)(r)}}},45945:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0});var a={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return h},markAssetError:function(){return d}};for(var o in a)Object.defineProperty(t,o,{enumerable:!0,get:a[o]});r(73623),r(98910);let i=r(21617),s=r(28356),l=r(53887),u=r(2451),c=r(20619);function p(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let o=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:o}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):o}let f=Symbol("ASSET_LOAD_ERROR");function d(e){return Object.defineProperty(e,f,{})}function h(e){return e&&f in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,c.resolvePromiseWithTimeout)(e,d(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,
1configurable:!0})),n)}function _(e,t){return g().then(r=>{if(!(t in r))throw d(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,u.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function y(e){let t=new Map,r=new Map,a=new Map,o=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(d(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)})),n)}}function l(e){let t=a.get(e);return t||a.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 d(e)})),t}return{whenEntrypoint:e=>p(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),o.delete(e))})},loadRoute(r,a){return p(r,o,()=>{let o;return(0,c.resolvePromiseWithTimeout)(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(i)).then(e=>e),Promise.all(n.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),d(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(a)throw e;return{error:e}}).finally(()=>o?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let o=` 2 link[rel="prefetch"][href^="${t}"], 3 link[rel="preload"][href^="${t}"], 4 script[src^="${t}"]`;if(document.querySelector(o))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(d(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,s.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)},46492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}}),r(73623);let n=r(95155);r(12115);let a=r(51415);function o(e){function t(t){return(0,n.jsx)(e,{router:(0,a.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)},46693:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},47238:(e,t,r)=>{"use strict";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(11700);return n(Array.isArray(t)?t.join("; "):t)}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCookieParser",{enumerable:!0,get:function(){return n}})},51415:(e,t,r)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0});var n={Router:function(){return s.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return c.default}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(73623),i=o._(r(12115)),s=o._(r(24871)),l=r(60751),u=o._(r(36981)),c=o._(r(46492)),p={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},f=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!p.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:"E1044",enumerable:!1,configurable:!0});return p.router}Object.defineProperty(p,"events",{get:()=>s.default.events}),f.forEach(e=>{Object.defineProperty(p,e,{get:()=>h()[e]})}),d.forEach(e=>{p[e]=(...t)=>h()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{p.ready(()=>{s.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(p[r])try{p[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,u.default)(e)?`${e.message} 5${e.stack}`:e+"")}})})});let m=p;function g(){let e=i.default.useContext(l.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 _(...e){return p.router=new s.default(...e),p.readyCallbacks.forEach(e=>e()),p.readyCallbacks=[],p.router}function y(e){let t={};for(let r of f){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,d.forEach(r=>{t[r]=(...t)=>e[r](...t)}),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)},53811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return p}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(7103),i=r(56469),s=r(11131),l=r(90603),u=r(95280);function c(e,t,r){let n={},a=1,o=[];for(let c of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),l=c.match(u.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:i}=(0,u.parseMatchedParameter)(l[2]);n[t]={pos:a++,repeat:i,optional:r},o.push(`/${(0,s.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:i}=(0,u.parseMatchedParameter)(l[2]);n[e]={pos:a++,repeat:t,optional:i},r&&l[1]&&o.push(`/${(0,s.escapeStringRegexp)(l[1])}`);let c=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(c=c.substring(1)),o.push(c)}else o.push(`/${(0,s.escapeStringRegexp)(c)}`);t&&l&&l[3]&&o.push((0,s.escapeStringRegexp)(l[3]))}return{parameterizedRoute:o.join(""),groups:n}}function p(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:a,groups:o}=c(e,t,r),i=a;return n||(i+="(?:/)?"),{re:RegExp(`^${i}$`),groups:o}}function f({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:a,backreferenceDuplicateKeys:o}){let i,{key:l,optional:c,repeat:p}=(0,u.parseMatchedParameter)(r),d=l.replace(/\W/g,"");a&&(d=`${a}${d}`);let h=!1;(0===d.length||d.length>30)&&(h=!0),isNaN(parseInt(d.slice(0,1)))||(h=!0),h&&(d=t());let m=d in n;a?n[d]=`${a}${l}`:n[d]=l;let g=e?(0,s.escapeStringRegexp)(e):"";return i=m&&o?`\\k<${d}>`:p?`(?<${d}>.+?)`:`(?<${d}>
5[^/]+?)`,{key:l,pattern:c?`(?:/${g}${i})?`:`/${g}${i}`,cleanedKey:d,optional:c,repeat:p}}function d(e,t,r,n,a,c={names:{},intercepted:{}}){let p,h=(p=0,()=>{let e="",t=++p;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],_=[];for(let p of(c=structuredClone(c),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=i.INTERCEPTION_ROUTE_MARKERS.some(e=>p.startsWith(e)),d=p.match(u.PARAMETER_PATTERN),y=l?d?.[1]:void 0;if(y&&d?.[2]?(e=t?o.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,c.intercepted[d[2]]=y):e=d?.[2]&&c.intercepted[d[2]]?t?o.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?o.NEXT_QUERY_PARAM_PREFIX:void 0,y&&d&&d[2]){let{key:t,pattern:r,cleanedKey:n,repeat:o,optional:i}=f({getSafeRouteKey:h,interceptionMarker:y,segment:d[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a});g.push(r),_.push(`/${d[1]}:${c.names[t]??n}${o?i?"*":"+":""}`),c.names[t]??=n}else if(d&&d[2]){n&&d[1]&&(g.push(`/${(0,s.escapeStringRegexp)(d[1])}`),_.push(`/${d[1]}`));let{key:t,pattern:r,cleanedKey:o,repeat:i,optional:l}=f({getSafeRouteKey:h,segment:d[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a}),u=r;n&&d[1]&&(u=u.substring(1)),g.push(u),_.push(`/:${c.names[t]??o}${i?l?"*":"+":""}`),c.names[t]??=o}else g.push(`/${(0,s.escapeStringRegexp)(p)}`),_.push(`/${p}`);r&&d&&d[3]&&(g.push((0,s.escapeStringRegexp)(d[3])),_.push(d[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:c}}
5function h(e,t){let r=d(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...p(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:a}=d(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${a}${n?"(?:(/.*)?)":""}$`}}},54960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let n=r(64788),a=r(71078);function o(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},57143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return a}});let n=r(63697);function a(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},57806:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},59515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let a=r.get(t);a||(a=t.map(e=>e.toLowerCase()),r.set(t,a));let o=e.split("/",2);if(!o[1])return{pathname:e};let i=o[1].toLowerCase(),s=a.indexOf(i);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},60751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(73623)._(r(12115)).default.createContext(null)},64788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return o.getSortedRouteObjects},getSortedRoutes:function(){return o.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(30762),i=r(42592)},67640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveParamValue",{enumerable:!0,get:function(){return o}});let n=r(72299),a=r(38069);function o(e,t,r,o,i){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let s=[];for(let e=r;e<o.segments.length;e++){let n=o.segments[e];if("static"===n.type){let o=n.name,i=(0,a.interceptionPrefixFromParamType)(t);i&&e===r&&i===n.interceptionMarker&&(o=o.replace(n.interceptionMarker,"")),s.push(o)}else{if(!i.hasOwnProperty(n.param.paramName)){if("optional-catchall"===n.param.paramType)break;return}let e=i[n.param.paramName];Array.isArray(e)?s.push(...e):s.push(e)}}if(s.length>0)return s;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${o.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<o.segments.length){let e=o.segments[r];if("dynamic"===e.type&&!i.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?i[e.param.paramName]:(0,a.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},70929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return a}});let n=r(52697);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:o}=(0,n.parsePath)(e);return`${r}${t}${a}${o}`}},71020:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(59515),a=r(57143),o=r(63697);function i(e,t){let{basePath:r,i18n:i,trailingSlash:s}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};r&&(0,o.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,a.removePathPrefix)(l.pathname,r),l.basePath=r);let u=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],u="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=u)}if(i){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,i.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,n.normalizeLocalePath)(u,i.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},71078:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},71922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return l}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,i={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function l(e){return e.replace(o,e=>a[e])}function u(e){return e.replace(s,e=>i[e])}},72444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let n=r(29940),a=r(63697);function o(e,t,r,o){if(!t||t===r)return e;let i=e.toLowerCase();return!o&&((0,a.pathHasPrefix)(i,"/api")||(0,a.pathHasPrefix)(i,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},89449:(e,t,r)=>{"use strict";function n(e,t,r){let n,a,o,i=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function c(){return a&&clearTimeout(a),a=s(l,t),i&&void 0===o&&(o=s(l,i)),n}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==o?l():n},c}r.d(t,{s:()=>n})},89990:e=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var a="",o=r+1;o<e.length;){var i=e.charCodeAt(o);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=o;continue}if("("===n){var s=1,l="",o=r+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if("\\"===e[o]){l+=e[o++]+e[o++];continue}if(")"===e[o]){if(0==--s){o++;break}}else if("("===e[o]&&(s++,"?"!==e[o+1]))throw TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}if(s)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=o;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,o=void 0===n?"./":n,i=t.delimiter,s=void 0===i?"/#?":i,l=[],u=0,c=0,p="",f=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var n=r[c],a=n.type,o=n.index;throw TypeError("Unexpected ".concat(a," at ").concat(o,", expected ").concat(e))},h=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var r=s[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");
5if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(a(s),"]+?"):"(?:(?!".concat(a(r),")[^").concat(a(s),"])+?")};c<r.length;){var _=f("CHAR"),y=f("NAME"),v=f("PATTERN");if(y||v){var b=_||"";-1===o.indexOf(b)&&(p+=b,b=""),p&&(l.push(p),p=""),l.push({name:y||u++,prefix:b,suffix:"",pattern:v||g(b),modifier:f("MODIFIER")||""});continue}var E=_||f("ESCAPED_CHAR");if(E){p+=E;continue}if(p&&(l.push(p),p=""),f("OPEN")){var b=h(),w=f("NAME")||"",S=f("PATTERN")||"",R=h();d("CLOSE"),l.push({name:w||(S?u++:""),pattern:w&&!S?g(b):S,prefix:b,suffix:R,modifier:f("MODIFIER")||""});continue}d("END")}return l}function r(e,t){void 0===t&&(t={});var r=o(t),n=t.encode,a=void 0===n?function(e){return e}:n,i=t.validate,s=void 0===i||i,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var o=e[n];if("string"==typeof o){r+=o;continue}var i=t?t[o.name]:void 0,u="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(i)){if(!c)throw TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===i.length){if(u)continue;throw TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var p=0;p<i.length;p++){var f=a(i[p],o);if(s&&!l[n].test(f))throw TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(f,'"'));r+=o.prefix+f+o.suffix}continue}if("string"==typeof i||"number"==typeof i){var f=a(String(i),o);if(s&&!l[n].test(f))throw TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(f,'"'));r+=o.prefix+f+o.suffix;continue}if(!u){var d=c?"an array":"a string";throw TypeError('Expected "'.concat(o.name,'" to be ').concat(d))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,a=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var o=n[0],i=n.index,s=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):s[r.name]=a(n[e],r)}}(l);return{path:o,index:i,params:s}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function i(e,t,r){void 0===r&&(r={});for(var n=r.strict,i=void 0!==n&&n,s=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,p=r.delimiter,f=r.endsWith,d="[".concat(a(void 0===f?"":f),"]|$"),h="[".concat(a(void 0===p?"/#?":p),"]"),m=void 0===s||s?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=a(c(_));else{var y=a(c(_.prefix)),v=a(c(_.suffix));if(_.pattern)if(t&&t.push(_),y||v)if("+"===_.modifier||"*"===_.modifier){var b="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(v).concat(y,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(b)}else m+="(?:".concat(y,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));m+="(".concat(_.pattern,")").concat(_.modifier)}else m+="(?:".concat(y).concat(v,")").concat(_.modifier)}}if(void 0===l||l)i||(m+="".concat(h,"?")),m+=r.endsWith?"(?=".concat(d,")"):"$";else{var E=e[e.length-1],w="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;i||(m+="(?:".concat(h,"(?=").concat(d,"))?")),w||(m+="(?=".concat(h,"|").concat(d,")"))}return new RegExp(m,o(r))}function s(t,r,n){if(t instanceof RegExp){var a;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(t.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(a=t.map(function(e){return s(e,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),o(n))):i(e(t,n),r,n)}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,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(s(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=i,t.pathToRegexp=s})(),e.exports=t})()},92599:(e,t,r)=>{"use strict";let n,a,o,i,s,l,u,c,p,f,d;r.r(t),r.d(t,{BrowserClient:()=>ts,ErrorBoundary:()=>ul,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>ax,OpenFeatureIntegrationHook:()=>lD,Profiler:()=>un,SDK_VERSION:()=>E.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>D.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>D.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>D.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>D.i_,Scope:()=>aA.H,WINDOW:()=>ti.jf,addBreadcrumb:()=>td.Z,addEventProcessor:()=>S.SA,addIntegration:()=>T.Q8,bindScopeToEmitter:()=>aM,breadcrumbsIntegration:()=>tS,browserApiErrorsIntegration:()=>tT,browserProfilingIntegration:()=>lI,browserSessionIntegration:()=>tO,browserTracingIntegration:()=>rw,buildLaunchDarklyFlagUsedHandler:()=>lL,captureConsoleIntegration:()=>aD,captureEvent:()=>S.r,captureException:()=>S.Cp,captureFeedback:()=>rD,captureMessage:()=>S.wd,captureReactException:()=>lG,captureRequestError:()=>ck,captureRouterTransitionStart:()=>rh.Nc,captureSession:()=>S.J5,captureUnderscoreErrorException:()=>cx,chromeStackLineParser:()=>tK,close:()=>
5S.VN,consoleLoggingIntegration:()=>aW,contextLinesIntegration:()=>sy,continueTrace:()=>aH.V4,createConsolaReporter:()=>aY,createLangChainCallbackHandler:()=>o0,createReduxEnhancer:()=>up,createTransport:()=>eO,createUserFeedbackEnvelope:()=>sr,cultureContextIntegration:()=>tI,dedupeIntegration:()=>B,defaultRequestInstrumentationOptions:()=>s4.h$,defaultStackLineParsers:()=>t9,defaultStackParser:()=>t7,diagnoseSdkConnectivity:()=>lq,elementTimingIntegration:()=>s6,endSession:()=>S.ky,eventFiltersIntegration:()=>O,eventFromException:()=>tr,eventFromMessage:()=>tn,exceptionFromError:()=>e9,extraErrorDataIntegration:()=>o2,featureFlagsIntegration:()=>o9,feedbackAsyncIntegration:()=>aP,feedbackIntegration:()=>ak,feedbackSyncIntegration:()=>ak,fetchStreamPerformanceIntegration:()=>lt.z,flush:()=>S.bX,forceLoad:()=>ro,functionToStringIntegration:()=>$,geckoStackLineParser:()=>t0,getAbsoluteUrl:()=>rg.L,getActiveSpan:()=>U.Bk,getClient:()=>j.KU,getCurrentScope:()=>j.o5,getDefaultIntegrations:()=>ra,getFeedback:()=>nd,getGlobalScope:()=>j.m6,getIsolationScope:()=>j.rm,getReplay:()=>sk.M,getRootSpan:()=>U.zU,getSpanDescendants:()=>U.xO,getSpanStatusFromHttpCode:()=>aG.AJ,getTraceData:()=>o7.i,globalHandlersIntegration:()=>tL,graphqlClientIntegration:()=>sT,growthbookIntegration:()=>lW,httpClientIntegration:()=>sf,httpContextIntegration:()=>tF,inboundFiltersIntegration:()=>A,init:()=>rL,instrumentAnthropicAiClient:()=>is,instrumentCreateReactAgent:()=>id,instrumentGoogleGenAIClient:()=>iE,instrumentLangChainEmbeddings:()=>iS,instrumentLangGraph:()=>ih,instrumentOpenAiClient:()=>ix,instrumentOutgoingRequests:()=>s4.Qb,instrumentSupabaseClient:()=>i$,isBotUserAgent:()=>rd.e3,isEnabled:()=>S.Ol,isInitialized:()=>S.Dp,lastEventId:()=>S.Q,launchDarklyIntegration:()=>lM,lazyLoadIntegration:()=>aT,linkedErrorsIntegration:()=>tq,logger:()=>_,makeBrowserOfflineTransport:()=>li,makeFetchTransport:()=>rt,makeMultiplexedTransport:()=>aO,metrics:()=>y,moduleMetadataIntegration:()=>i2,normalizeStringifyValue:()=>rn,onLoad:()=>ri,openFeatureIntegration:()=>l$,opera10StackLineParser:()=>t5,opera11StackLineParser:()=>t6,parameterize:()=>iU,reactErrorHandler:()=>lX,reactRouterBrowserTracingIntegration:()=>cm,reactRouterV3BrowserTracingIntegration:()=>uf,reactRouterV4BrowserTracingIntegration:()=>u_,reactRouterV5BrowserTracingIntegration:()=>uy,reactRouterV6BrowserTracingIntegration:()=>co,reactRouterV7BrowserTracingIntegration:()=>cc,registerSpanErrorInstrumentation:()=>i4.s,registerWebWorker:()=>lV,replayCanvasIntegration:()=>s2,replayIntegration:()=>sk.w,reportPageLoaded:()=>s9,reportingObserverIntegration:()=>ss,rewriteFramesIntegration:()=>rP,sendFeedback:()=>nn,setActiveSpanInBrowser:()=>s7,setAttribute:()=>S.Bq,setAttributes:()=>S.Wp,setContext:()=>S.o,setConversationId:()=>S.Ji,setCurrentClient:()=>J,setExtra:()=>S.l7,setExtras:()=>S.cx,setHttpStatus:()=>aG.N8,setMeasurement:()=>i5.X,setTag:()=>S.NA,setTags:()=>S.Wt,setUser:()=>S.gV,showReportDialog:()=>sn,spanStreamingIntegration:()=>le,spanToBaggageHeader:()=>es.HW,spanToJSON:()=>U.et,spanToTraceHeader:()=>U.Qh,spotlightBrowserIntegration:()=>lj,startBrowserTracingNavigationSpan:()=>rd.Nt,startBrowserTracingPageLoadSpan:()=>rd.Sx,startInactiveSpan:()=>c$,startNewTrace:()=>aH.Y7,startSession:()=>S.J0,startSpan:()=>cM,startSpanManual:()=>cL,statsigIntegration:()=>lH,supabaseIntegration:()=>iD,suppressTracing:()=>aH.M1,tanstackRouterBrowserTracingIntegration:()=>uh,thirdPartyErrorFilterIntegration:()=>i3,uiProfiler:()=>st,unleashIntegration:()=>lU,updateSpanName:()=>U.zQ,useProfiler:()=>uo,viewHierarchyIntegration:()=>sP,webVitalsIntegration:()=>lr.K,webWorkerIntegration:()=>lY,winjsStackLineParser:()=>t2,withActiveSpan:()=>aH.hb,withErrorBoundary:()=>uu,withIsolationScope:()=>j.rB,withProfiler:()=>ua,withScope:()=>j.v4,withSentryConfig:()=>r$,withSentryReactRouterV6Routing:()=>cu,withSentryReactRouterV7Routing:()=>cp,withSentryRouting:()=>ub,withServerActionInstrumentation:()=>cD,withStreamedSpan:()=>eS.e,wrapApiHandlerWithSentryVercelCrons:()=>cz,wrapAppGetInitialPropsWithSentry:()=>cH,wrapCreateBrowserRouter:()=>c_,wrapCreateBrowserRouterV6:()=>cs,wrapCreateBrowserRouterV7:()=>cf,wrapCreateMemoryRouter:()=>cy,wrapCreateMemoryRouterV6:()=>cl,wrapCreateMemoryRouterV7:()=>cd,wrapDocumentGetInitialPropsWithSentry:()=>cq,wrapErrorGetInitialPropsWithSentry:()=>cY,wrapGenerationFunctionWithSentry:()=>cJ,wrapGetInitialPropsWithSentry:()=>cV,wrapGetServerSidePropsWithSentry:()=>cG,wrapGetStaticPropsWithSentry:()=>cX,wrapMiddlewareWithSentry:()=>cQ,wrapPageComponentWithSentry:()=>c1,wrapReactRouterRouting:()=>cg,wrapRouteHandlerWithSentry:()=>c2,wrapServerComponentWithSentry:()=>c4,wrapUseRoutes:()=>cv,wrapUseRoutesV6:()=>ci,wrapUseRoutesV7:()=>
5ch,zodErrorsIntegration:()=>se});var h,m,g,_={};r.r(_),r.d(_,{debug:()=>iW,error:()=>iY,fatal:()=>iJ,fmt:()=>iz,info:()=>iH,trace:()=>iB,warn:()=>iq});var y={};r.r(y),r.d(y,{count:()=>iG,distribution:()=>iK,gauge:()=>iX});var v=r(39777),b=r(56932),E=r(61282);function w(e,t,r=[t],n="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:E.M})),a.version=E.M)}var S=r(21123),R=r(44374),T=r(90474);function P(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var k=r(48262),x=r(21795);let C=[/^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$/],O=(0,T._C)((e={})=>{let t;return{name:"EventFilters",setup(r){t=I(e,r.getOptions())},processEvent:(r,n,a)=>(t||(t=I(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,x.Xr)(r,t)}(e,t.ignoreTransactions))return R.T&&b.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 6Event: ${(0,k.$X)(e)}`),!0}else{var r,n,a;if(r=e,n=t.ignoreErrors,n?.length&&P(r).some(e=>(0,x.Xr)(e,n)))return R.T&&b.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 7Event: ${(0,k.$X)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return R.T&&b.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace. 8Event: ${(0,k.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=N(e);return!!r&&(0,x.Xr)(r,t)}(e,t.denyUrls))return R.T&&b.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option. 9Event: ${(0,k.$X)(e)}. 10Url: ${N(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=N(e);return!r||(0,x.Xr)(r,t)}(e,t.allowUrls))return R.T&&b.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option. 11Event: ${(0,k.$X)(e)}. 12Url: ${N(e)}`),!0}return!1}(r,t)?r:null)}}),A=(0,T._C)((e={})=>({...O(e),name:"InboundFilters"}));function I(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:C],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function N(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return R.T&&b.Yz.error(`Cannot extract url for event ${(0,k.$X)(e)}`),null}}var j=r(96616),M=r(13941);let L=new WeakMap,$=(0,T._C)(()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,M.sp)(this),r=L.has((0,j.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){L.set(e,!0)}}));var D=r(23301),U=r(18847);let z=(0,T._C)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,j.o5)().getScopeData(),r=(0,j.rm)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:a}=(0,U.et)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!a?.startsWith("ai."))return;e.setAttribute(D.Fy,n)}})}}));var F=r(81867);let B=(0,T._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,n,a,o,i,s;let l,u,c,p;if(r=t,(n=e)&&(a=r,o=n,l=a.message,u=o.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&H(a,o)&&W(a,o)&&1||(i=r,s=n,c=q(s),p=q(i),c&&p&&c.type===p.type&&c.value===p.value&&H(i,s)&&W(i,s))))return R.T&&b.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function W(e,t){let r=(0,F.RV)(e),n=(0,F.RV)(t);if(!r&&!n)return!0;
12if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function H(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function q(e){return e.exception?.values?.[0]}var Y=r(80097);function J(e){(0,j.o5)().setClient(e)}var V=r(78227);function G(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function X(e,t,r){let n;return t||`${G(e)}${e.projectId}/envelope/?${n={sentry_version:"7"},e.publicKey&&(n.sentry_key=e.publicKey),r&&(n.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(n).toString()}`}var K=r(76249),Q=r(66564),Z=r(32997),ee=r(63748),et=r(62102),er=r(60834),en=r(9685),ea=r(35891);let eo=0;function ei(e){let t=Math.floor(1e3*e);void 0!==a&&t!==a&&(eo=0);let r=eo;return eo++,a=t,{key:"sentry.timestamp.sequence",value:{value:r,type:"integer"}}}var es=r(81152);function el(e,t){return t?(0,j.v4)(t,()=>{let r=(0,U.Bk)(),n=r?(0,U.kX)(r):(0,j.vn)(t);return[r?(0,es.k1)(r):(0,es.ao)(e,t),n]}):[void 0,void 0]}let eu={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var ec=r(41298),ep=r(23795);function ef(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function ed(e,t){var r;let n=eg(),a=(r=e,eg().get(r));void 0===a?n.set(e,[t]):a.length>=100?(em(e,a),n.set(e,[t])):n.set(e,[...a,t])}function eh(e,t=(0,j.o5)(),r=ed){let n=t?.getClient()??(0,j.KU)();if(!n){R.T&&b.Yz.warn("No client available to capture log.");return}let{release:a,environment:o,enableLogs:i=!1,beforeSendLog:s}=n.getOptions();if(!i){R.T&&b.Yz.warn("logging option not enabled, log will not be captured.");return}let[,l]=el(n,t),u={...e.attributes},{user:{id:c,email:p,username:f},attributes:d={}}=(0,er.Om)((0,j.rm)(),t);ef(u,"user.id",c,!1),ef(u,"user.email",p,!1),ef(u,"user.name",f,!1),ef(u,"sentry.release",a),ef(u,"sentry.environment",o);let{name:h,version:m}=n.getSdkMetadata()?.sdk??{};ef(u,"sentry.sdk.name",h),ef(u,"sentry.sdk.version",m);let g=n.getIntegrationByName("Replay"),_=g?.getReplayId(!0);ef(u,"sentry.replay_id",_),_&&g?.getRecordingMode()==="buffer"&&ef(u,"sentry._internal.replay_is_buffering",!0);let y=e.message;if((0,et.NF)(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=(0,en.f)(t);ef(u,"sentry.trace.parent_span_id",v?.spanContext().spanId);let E={...e,attributes:u};n.emit("beforeCaptureLog",E);let w=s?(0,b.pq)(()=>s(E)):E;if(!w){n.recordDroppedEvent("before_send","log_item",1),R.T&&b.Yz.warn("beforeSendLog returned null, log will not be captured.");return}let{level:S,message:T,attributes:P={},severityNumber:k}=w,x=(0,ea.zf)(),C=ei(x);r(n,{timestamp:x,level:S,body:e_(String(T)),trace_id:l?.trace_id,severity_number:k??eu[S],attributes:function(e){let t={};for(let[r,n]of Object.entries(e)){let e=e_(r);"string"===n.type?t[e]={...n,value:e_(n.value)}:t[e]=n}return t}({...(0,Z.SY)(d),...(0,Z.SY)(P,!0),[C.key]:C.value})}),n.emit("afterCaptureLog",w)}function em(e,t){var r,n,a,o,i;let s,l,u=t??(i=e,eg().get(i))??[];if(0===u.length)return;let c=e.getOptions(),p=(r=c._metadata,n=c.tunnel,a=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(s.dsn=(0,V.SB)(a)),(0,ec.h4)(s,[(l=o?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,ep.B)()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));eg().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(p)}function eg(){return(0,ee.BY)("clientToLogBufferMap",()=>new WeakMap)}function e_(e){let t=Object(e),r=t.isWellFormed,n=t.toWellFormed;return"function"==typeof r&&"function"==typeof n?r.call(e)?e:n.call(e):e}function ey(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function ev(e,t){var r;let n=eE(),a=(r=e,eE().get(r));void 0===a?n.set(e,[t]):a.length>=1e3?(eb(e,a),n.set(e,[t])):n.set(e,[...a,t])}function eb(e,t){var r,n,a,o,i;let s,l,u=t??(i=e,eE().get(i))??[];if(0===u.length)return;let c=e.getOptions(),p=(r=c._metadata,n=c.tunnel,a=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(s.dsn=(0,V.SB)(a)),(0,ec.h4)(s,[(l=o?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,ep.B)()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));eE().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(p)}function eE(){return(0,ee.BY)("clientToMetricBufferMap",()=>new WeakMap)}var ew=r(92976),eS=r(57100),eR=r(12926),eT=r(17846);function eP(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let ek=Symbol.for("SentryBufferFullError");function ex(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eT.xg)(ek);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eT.XW)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>eP(setTimeout(()=>t(!1),e)))]):r}}}var eC=r(8955);function eO(e,t,r=ex(e.bufferSize||64)){let n={};return{send:function(a){let o=[];if((0,ec.yH)(a,(t,r)=>{let a=(0,ec.zk)(r);
12(0,eC.Jz)(n,a)?e.recordDroppedEvent("ratelimit_backoff",a):o.push(t)}),0===o.length)return Promise.resolve({});let i=(0,ec.h4)(a[0],o),s=t=>{if((0,ec.hP)(i,["client_report"])){R.T&&b.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,ec.yH)(i,(r,n)=>{e.recordDroppedEvent(t,(0,ec.zk)(n))})};return r.add(()=>t({body:(0,ec.bN)(i)}).then(e=>(413===e.statusCode?(R.T&&b.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(R.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&b.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=(0,eC.wq)(n,e)),e),e=>{throw s("network_error"),R.T&&b.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===ek)return R.T&&b.Yz.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}var eA=r(46322),eI=r(51581),eN=r(31332),ej=r(32751),eM=r(90461);let eL="[Filtered]",e$=["forwarded","-ip","remote-","via","-user"],eD=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],eU=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],ez={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5},eF="Not capturing exception because it's already been captured.",eB="Discarded session because of missing or non-string release",eW=Symbol.for("SentryInternalError"),eH=Symbol.for("SentryDoNotSendEventError");function eq(e){return{message:e,[eW]:!0}}function eY(e){return{message:e,[eH]:!0}}function eJ(e){return(0,et.Z4)(e)&&eW in e}function eV(e){return(0,et.Z4)(e)&&eH in e}function eG(e,t,r,n,a){let o,i=0,s=!1;e.on(r,()=>{i=0,clearTimeout(o),s=!1}),e.on(t,t=>{if((i+=n(t))>=8e5)a(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,o=eP(setTimeout(()=>{a(e)},t)))}}),e.on("flush",()=>{a(e)})}class eX{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ex(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?ez:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:e$},httpHeaders:{request:{deny:e$},response:{deny:e$}},httpBodies:[],queryParams:{deny:e$},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7},r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,queryParams:r.queryParams??t.queryParams,genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs}
12,stackFrameVariables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,V.AD)(e.dsn):R.T&&b.Yz.warn("No DSN provided, client will not send events."),this._dsn){const t=X(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&&eG(this,"afterCaptureLog","flushLogs",e1,em),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eG(this,"afterCaptureMetric","flushMetrics",e0,eb)}captureException(e,t,r){let n=(0,k.eJ)();if((0,k.GR)(e))return R.T&&b.Yz.log(eF),n;let a={event_id:n,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),"error"),a.event_id}captureMessage(e,t,r,n){let a={event_id:(0,k.eJ)(),...r},o=(0,et.NF)(e)?e:String(e),i=(0,et.sO)(e),s=i?this.eventFromMessage(o,t,a):this.eventFromException(e,a);return this._process(()=>s.then(e=>this._captureEvent(e,a,n)),i?"unknown":"error"),a.event_id}captureEvent(e,t,r){let n=(0,k.eJ)();if(t?.originalException&&(0,k.GR)(t.originalException))return R.T&&b.Yz.log(eF),n;let a={event_id:n,...t},o=e.sdkProcessingMetadata||{},i=o.capturedSpanScope,s=o.capturedSpanIsolationScope,l=eK(e.type);return this._process(()=>this._captureEvent(e,a,i||r,s),l),a.event_id}captureSession(e){this.sendSession(e),(0,ew.qO)(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;if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){em(this);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),(0,T.qm)(this,e,this._integrations),t||(0,T.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,eR.K)(t))return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,U.PL)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let a=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,ep.B)()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:r}]}(e,this),n=(0,Q.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,ec.W3)(n,(0,ec.bm)(e));r&&(n=(0,ec.W3)(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=K.U}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){R.T&&b.Yz.warn(eB);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){R.T&&b.Yz.warn(eB);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=(0,Q.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;R.T&&b.Yz.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];
12r&&r.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 R.T&&b.Yz.error("Error while sending envelope:",e),{}}return R.T&&b.Yz.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,T.P$)(this,e),(0,T.lc)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,a=t.exception?.values;if(a){for(let e of(n=!0,r=!1,a))if(e.mechanism?.handled===!1){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,ew.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),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,r,n){let a=this.getOptions(),o=this.getIntegrationNames();return!t.integrations&&o.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eN.mG)(a,e,t,r,this,n).then(e=>
12(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,j.vn)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,es.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,j.o5)(),n=(0,j.rm)()){return R.T&&eQ(e)&&b.Yz.log(`Captured error event \`${P(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{R.T&&(eV(e)?b.Yz.log(e.message):eJ(e)?b.Yz.warn(e.message):b.Yz.warn(e))})}_processEvent(e,t,r,n){let a=this.getOptions(),{sampleRate:o}=a,i=eZ(e),s=eQ(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:(0,eI.i)(o);if(s&&"number"==typeof c&&(0,ej.hY)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,eT.xg)(eY(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let p=eK(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),eY("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,et.Qg)(e))return e.then(e=>{if(!(0,et.Qd)(e)&&null!==e)throw eq(r);return e},e=>{throw eq(`${t} rejected with ${e}`)});if(!(0,et.Qd)(e)&&null!==e)throw eq(r);return e}(function(e,t,r,n){let{beforeSend:a,beforeSendTransaction:o,ignoreSpans:i}=t,s=!(0,eS.S)(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(eQ(l)&&a)return a(l,n);if(eZ(l)){if(s||i){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:o,data:i,op:s}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[D.E1],exclusive_time:i?.[D.jG],measurements:e.measurements,is_segment:!0}}(l);if(i?.length&&(0,eM.e)({description:t.description,op:t.op,attributes:t.data},i))return null;if(s){let e=s(t);if(e)l=(0,eA.h)(r,{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&&{[D.E1]:e.profile_id},...e.exclusive_time&&{[D.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,U.xl)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(i?.length&&(0,eM.e)({description:e.description,op:e.op,attributes:e.data},i)){(0,eM.R)(r,e);continue}if(s){let r=s(e);r?t.push(r):((0,U.xl)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(o){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,n)}}return l}(this,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",p),i){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eY(`${u} returned \`null\`, will not send event.`)}let o=r.getSession()||n.getSession();if(s&&o&&this._updateSessionFromEvent(o,a),i){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=a.transaction_info;return i&&l&&a.transaction!==e.transaction&&(a.transaction_info={...l,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(eV(e)||eJ(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eq(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 13Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===ek&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;let t;R.T&&b.Yz.log("Flushing outcomes...");let r=this._clearOutcomes();if(0===r.length){R.T&&b.Yz.log("No outcomes to send");return}if(!this._dsn){R.T&&b.Yz.log("No dsn provided, will not send outcomes");return}R.T&&b.Yz.log("Sending outcomes:",r);let n=(e=this._options.tunnel&&(0,V.SB)(this._dsn),t=[{type:"client_report"},{timestamp:(0,ea.lu)(),discarded_events:r}],(0,ec.h4)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}function eK(e){return"replay_event"===e?"replay":e||"error"}function eQ(e){return void 0===e.type}function eZ(e){return"transaction"===e.type}function e0(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+e2(e.attributes)}function e1(e){let t=0;return e.message&&(t+=2*e.message.length),t+e2(e.attributes)}function e2(e){if(!e)return 0;let t=0;
13return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*e4(e[0]):(0,et.sO)(e)?t+=e4(e):t+=100}),t}function e4(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}var e5=r(40813);function e3(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 e6(e){return(0,et.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function e9(e,t){var r,n;let a,o,i=e8(e,t),s={type:(r=t,!(a=r?.name)&&tt(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":a),value:(n=t,o=n?.message,tt(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":o?o.error&&"string"==typeof o.error.message?e6(o.error):e6(n):"No error message")};return i.length&&(s.stacktrace={frames:i}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function e7(e,t){return{exception:{values:[e9(e,t)]}}}function e8(e,t){var r,n;let a=t.stacktrace||t.stack||"",o=(r=t)&&te.test(r.message)?1:0,i="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,o,i)}catch{}return[]}let te=/Minified React error #\d+;/i;function tt(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function tr(e,t,r,n){let a=ta(e,t,r?.syntheticException||void 0,n);return(0,k.M6)(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),(0,eT.XW)(a)}function tn(e,t,r="info",n,a){let o=to(e,t,n?.syntheticException||void 0,a);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,eT.XW)(o)}function ta(e,t,r,n,a){let o;if((0,et.T2)(t)&&t.error)return e7(e,t.error);if((0,et.BD)(t)||(0,et.W6)(t)){if("stack"in t){o=e7(e,t);let a=o.exception?.values?.[0];if(n&&r&&a&&!a.stacktrace){let t=e8(e,r);t.length&&(a.stacktrace={frames:t},(0,k.M6)(o,{synthetic:!0}))}}else{let a=t.name||((0,et.BD)(t)?"DOMError":"DOMException"),i=t.message?`${a}: ${t.message}`:a;o=to(e,i,r,n),(0,k.gO)(o,i)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,et.bJ)(t)?e7(e,t):((0,et.Qd)(t)||(0,et.xH)(t)?o=function(e,t,r,n){let a=(0,j.KU)(),o=a?.getOptions().normalizeDepth,i=Object.values(t).find(e=>e instanceof Error),s={__serialized__:(0,Y.cd)(t,o)};if(i)return{exception:{values:[e9(e,i)]},extra:s};let l={exception:{values:[{type:(0,et.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,M.HF)(e),n=t?"promise rejection":"exception";if((0,et.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,et.xH)(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 ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=e8(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a):(o=to(e,t,r,n),(0,k.gO)(o,`${t}`,void 0)),(0,k.M6)(o,{synthetic:!0}),o)}function to(e,t,r,n){let a={};if(n&&r){let n=e8(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,k.M6)(a,{synthetic:!0})}if((0,et.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}var ti=r(23930);class ts extends eX{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ti.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);w(t,"browser",["browser"],ti.jf.SENTRY_SDK_SOURCE||(0,e5.e)()),super(t);const{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:n}=this._options;ti.jf.document&&ti.jf.document.addEventListener("visibilitychange",()=>{"hidden"===ti.jf.document.visibilityState&&(n&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",e3)}eventFromException(e,t){return tr(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return tn(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}var tl=r(6867);let tu=new Set([]);function tc(e){let t="console",r=(0,tl.s5)(t,e);return(0,tl.AS)(t,tp),r}
13function tp(){"console"in v.O&&b.Ow.forEach(function(e){e in v.O.console&&(0,M.GS)(v.O.console,e,function(t){return b.Z9[e]=t,function(...t){let r=t[0],n=b.Z9[e],a=tu.size&&"string"==typeof r&&(0,x.Xr)(r,tu);a||(0,tl.aj)("console",{args:t,level:e}),(!a||R.T&&b.Yz.isEnabled())&&n?.apply(v.O.console,t)}})})}var tf=r(47930),td=r(9306),th=r(31990),tm=r(21541);function tg(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}var t_=r(57739),ty=r(39949),tv=r(4195),tb=r(63361),tE=r(61967),tw=r(17985);let tS=(0,T._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,a,o,i,s,l;t.console&&tc((r=e,function(e){if((0,j.KU)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,tm.t)(e.level),message:(0,x.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,x.gt)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);(0,td.Z)(t,{input:e.args,level:e.level})})),t.dom&&(0,ty.i)((n=e,a=t.dom,function(e){let t,r;if((0,j.KU)()!==n)return;let o="object"==typeof a?a.serializeAttribute:void 0,i="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;i&&i>1024&&(tw.T&&b.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof o&&(o=[o]);try{var s;let n=e.event,a=(s=n)&&s.target?n.target:n;t=(0,tE.H)(a,{keyAttrs:o,maxStringLength:i}),r=(0,th.xE)(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),(0,td.Z)(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&(0,tv.Mn)((o=e,function(e){if((0,j.KU)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[tv.Er];if(!t||!r||!n)return;let{method:a,url:i,status_code:s,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:a,url:i,status_code:s},type:"http",level:tg(s)};o.emit("beforeOutgoingRequestBreadcrumb",c,u),(0,td.Z)(c,u)})),t.fetch&&(0,tf.ur)((i=e,function(e){if((0,j.KU)()!==i)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};i.emit("beforeOutgoingRequestBreadcrumb",a,n),(0,td.Z)(a,n)}else{let n=e.response,a={...e.fetchData,status_code:n?.status},o={input:e.args,response:n,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:tg(a.status_code)};i.emit("beforeOutgoingRequestBreadcrumb",s,o),(0,td.Z)(s,o)}})),t.history&&(0,tb._)((s=e,function(e){if((0,j.KU)()!==s)return;let t=e.from,r=e.to,n=(0,t_.Dl)(ti.jf.location.href),a=t?(0,t_.Dl)(t):void 0,o=(0,t_.Dl)(r);a?.path||(a=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),(0,td.Z)({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,j.KU)()===l&&(0,td.Z)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,k.$X)(e)},{event:e})}))}}}),tR="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(","),tT=(0,T._C)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,M.GS)(ti.jf,"setTimeout",tP),t.setInterval&&(0,M.GS)(ti.jf,"setInterval",tP),t.requestAnimationFrame&&(0,M.GS)(ti.jf,"requestAnimationFrame",tk),t.XMLHttpRequest&&"XMLHttpRequest"in ti.jf&&(0,M.GS)(XMLHttpRequest.prototype,"send",tx);let e=t.eventTarget;
13e&&(Array.isArray(e)?e:tR).forEach(e=>{var r,n;let a,o;return r=e,n=t,a=ti.jf,o=a[r]?.prototype,void(o?.hasOwnProperty?.("addEventListener")&&((0,M.GS)(o,"addEventListener",function(e){return function(t,a,o){var i,s,l,u;try{i=a,"function"==typeof i.handleEvent&&(a.handleEvent=(0,ti.LV)(a.handleEvent,{mechanism:{data:{handler:(0,F.qQ)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(s=this,l=t,u=a,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,(0,ti.LV)(a,{mechanism:{data:{handler:(0,F.qQ)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,M.GS)(o,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let a=r.__sentry_wrapped__;a&&e.call(this,t,a,n)}}catch{}return e.call(this,t,r,n)}})))})}}});function tP(e){return function(...t){let r=t[0];return t[0]=(0,ti.LV)(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,F.qQ)(e)}`}}),e.apply(this,t)}}function tk(e){return function(t){return e.apply(this,[(0,ti.LV)(t,{mechanism:{data:{handler:(0,F.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tx(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,M.GS)(r,e,function(t){let r={mechanism:{data:{handler:(0,F.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,M.sp)(t);return n&&(r.mechanism.data.handler=(0,F.qQ)(n)),(0,ti.LV)(t,r)})}),e.apply(this,t)}}var tC=r(94215);let tO=(0,T._C)((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===ti.jf.document){tw.T&&b.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,S.J0)({ignoreDuration:!0});let e=!1;(0,tC.k)(()=>{e||((0,S.J5)(),e=!0)});let r=(0,j.rm)(),n=r.getUser();r.addScopeListener(t=>{let r=t.getUser();(n?.id!==r?.id||n?.ip_address!==r?.ip_address)&&(n=r,e&&(0,S.J5)())}),"route"===t&&(0,tb._)(({from:t,to:r})=>{t!==r&&((0,S.J0)({ignoreDuration:!0}),(0,S.J5)(),e=!0)})}}});var tA=r(33143);let tI=(0,T._C)(()=>({name:"CultureContext",preprocessEvent(e){let t=tN();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=tN();t&&(0,tA.FD)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function tN(){try{let e=ti.jf.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var tj=r(95649),tM=r(15691);let tL=(0,T._C)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,(0,tj.L)(e=>{var t,n,a,o;let i,s,l,u,c,{stackParser:p,attachStacktrace:f}=tz();if((0,j.KU)()!==r||(0,ti.jN)())return;let{msg:d,url:h,line:m,column:g,error:_}=e,y=(t=ta(p,_||d,void 0,f,!1),n=h,a=m,o=g,0===(c=(u=(l=(s=(i=t.exception=t.exception||{}).values=i.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:o,lineno:a,filename:function(e){if((0,et.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,t_.zm)(e,!1)}>`:e}(n)??(0,th.$N)(),function:F.yF,in_app:!0}),t);y.level="error",(0,S.r)(y,{originalException:_,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),tU("onerror")),t.onunhandledrejection&&(n=e,(0,tM.r)(e=>{let{stackParser:t,attachStacktrace:r}=tz();if((0,j.KU)()!==n||(0,ti.jN)())return;let a=t$(e),o=(0,et.sO)(a)?tD(a):ta(t,a,void 0,r,!0);o.level="error",(0,S.r)(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),tU("onunhandledrejection"))}}});function t$(e){if((0,et.sO)(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 tD(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function tU(e){tw.T&&b.Yz.log(`Global Handler attached: ${e}`)}function tz(){let e=(0,j.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tF=(0,T._C)(()=>({name:"HttpContext",preprocessEvent(e){if(!ti.jf.navigator&&!ti.jf.location&&!ti.jf.document)return;let t=(0,ti.AP)(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){let t=e.attributes?.[D.uT];if(!ti.jf.navigator&&!ti.jf.location&&!ti.jf.document)return;let r=(0,ti.AP)();(0,tA.FD)(e,{"url.full":"http.client"!==t?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}}));function tB(e){return Array.isArray(e.errors)}function tW(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...tB(r)&&{is_exception_group:!0}
13,...e.mechanism,exception_id:t}}function tH(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let tq=(0,T._C)((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){!function(e,t,r,n,a,o){if(!a.exception?.values||!o||!(0,et.tH)(o.originalException,Error))return;let i=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;i&&(a.exception.values=function e(t,r,n,a,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if((0,et.tH)(a[o],Error)){tW(s,l,a);let i=t(r,a[o]),c=u.length;tH(i,o,c,l),u=e(t,r,n,a[o],o,[i,...u],i,c)}return tB(a)&&a.errors.forEach((i,c)=>{if((0,et.tH)(i,Error)){tW(s,l,a);let p=t(r,i),f=u.length;tH(p,`errors[${c}]`,f,l),u=e(t,r,n,i,o,[p,...u],p,f)}}),u}(e,t,n,o.originalException,r,a.exception.values,i,0))}(e9,a.getOptions().stackParser,r,t,e,n)}}});function tY(e,t,r,n){let a={filename:e,function:"<anonymous>"===t?F.yF:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}let tJ=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tV=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tG=/\((\S*)(?::(\d+))(?::(\d+))\)/,tX=/at (.+?) ?\(data:(.+?),/,tK=[30,e=>{let t=e.match(tX);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=tJ.exec(e);if(r){let[,e,t,n]=r;return tY(e,F.yF,+t,+n)}let n=tV.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=tG.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=t8(n[1]||F.yF,n[2]);return tY(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tQ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tZ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t0=[50,e=>{let t=tQ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tZ.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||F.yF;return[r,e]=t8(r,e),tY(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],t1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,t2=[40,e=>{let t=t1.exec(e);return t?tY(t[2],t[1]||F.yF,+t[3],t[4]?+t[4]:void 0):void 0}],t4=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,t5=[10,e=>{let t=t4.exec(e);return t?tY(t[2],t[3]||F.yF,+t[1]):void 0}],t3=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,t6=[20,e=>{let t=t3.exec(e);return t?tY(t[5],t[3]||t[4]||F.yF,+t[1],+t[2]):void 0}],t9=[tK,t0],t7=(0,F.gd)(...t9),t8=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:F.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var re=r(9244);function rt(e,t=(0,re.qd)("fetch")){let r=0,n=0;async function a(a){let o=a.body.length;r+=o,n++;let i={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,i);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw(0,re.y7)("fetch"),e}finally{r-=o,n--}}return eO(e,a,ex(e.bufferSize||40))}let rr=/^HTML(\w*)Element$/;function rn(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,r=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(rr.test(r))return`[HTMLElement: ${(0,tE.H)(e)}]`}}function ra(e){return[A(),$(),z(),tT(),tS(),tL(),tq(),B(),tF(),tI(),tO()]}function ro(){}function ri(e){e()}var rs=r(12115);function rl(e){return(0,et.Qd)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":rn(e)}var ru=r(99603),rc=r(41463);function rp(e){return(0,et.bJ)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function rf(e){return(0,et.bJ)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var rd=r(26618),rh=r(67264),rm=r(59764),rg=r(1316),r_=r(51415),ry=r.n(r_),rv=r(45735);let rb=ry().events?ry():ry().default,rE=ti.jf;function rw(e={}){let t=(0,rd.dp)({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){!(0,rd.e3)()&&(n&&function(e){if(ti.jf.document.getElementById("__NEXT_DATA__"))rb.events.on("routeChangeStart",t=>{let r,n,a=(0,t_.f)(t),o=function(e){let t=rE.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,a,o=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${n}(?:/)?$`));return e.match(o)})}(a);o?(r=o,n="route"):(r=a,n="url"),(0,rd.Nt)(e,{name:r,attributes:{[D.uT]:"navigation",[D.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[D.i_]:n,..."route"===n&&{[rv.B8_]:r}}},{url:(0,rg.L)(t)})});else(0,rh.q3)(e)}(e),t.afterAllSetup(e),r&&(ti.jf.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:r,sentryTrace:n,baggage:a}=function(){let e,t=rE.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{ru.T&&b.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:a,props:o}=e;return r.route=n,r.params=a,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,rm.D0)(a),i=t||rE.location.pathname;o?.["sentry-transaction"]&&"/_error"===i&&(i=(i=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,ea.k3)();(0,rd.Sx)(e,{name:i,startTime:s?s/1e3:void 0,attributes:{[D.uT]:"pageload",[D.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[D.i_]:t?"route":"url",...t&&{[rv.B8_]:t},...r&&{...r}}},{sentryTrace:n,baggage:a})}(e):(0,rh.jw)(e)))}}}let rS=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rR(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let a=n>=0?e[n]:"/";a&&(t=`${a}/${t}`,r="/"===a.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function rT(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let rP=(0,T._C)((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in v.O&&!!v.O.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let a=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(a||o){let e,o,i=a?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=rR(e).slice(1),t=rR(t).slice(1);let r=rT(e.split("/")),n=rT(t.split("/")),a=Math.min(r.length,n.length),o=a;for(let e=0;e<a;e++)if(r[e]!==n[e]){o=e;break}let i=[];for(let e=o;e<r.length;e++)i.push("..");return(i=i.concat(n.slice(o))).join("/")}(t,i):(e=i.length>1024?`<truncated>${i.slice(-1024)}`:i,(o=rS.exec(e))?o.slice(1):[])[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});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=>a(e))}}}})}}}catch{return e}}(t)),t}}}),rk=(0,T._C)(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...rP({iteratee:a=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(r)&&!a.filename.endsWith(".js"))return a;
13if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===r&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)):(a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)),a}}),name:"NextjsClientStackFrameNormalization"}));class rx{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}}var rC=r(38883);let rO=new rx(100);var rA=r(41463);let rI=v.O;var rN=r(41463);let rj=!1,rM=v.O;function rL(e){let t,r,n,a,o,i,s,l;rj&&(0,b.pq)(()=>{}),rj=!0,!ru.T&&e.debug&&(0,b.pq)(()=>{}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){ti.jf.document&&function(e){let t=(0,rC.D)(e)||e,r=rO.get(t);if(void 0!==r)return r;let n=(0,rC.c)();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return rO.set(t,!1),!1;let a=n.isrRoutes.includes(t);return rO.set(t,a),a}(ti.jf.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=ti.jf.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let u={environment:e.environment||rN.env.SENTRY_ENVIRONMENT||((t=rc.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(a=ra(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&a.push(rw()),o=rM._sentryRewriteFramesAssetPrefixPath||"",i=rN.env._sentryAssetPrefix||rM._sentryAssetPrefix,s=rN.env._sentryBasePath||rM._sentryBasePath,l="true"===rN.env._experimentalThirdPartyOriginStackFrames||"true"===rM._experimentalThirdPartyOriginStackFrames,a.push(rk({assetPrefix:i,basePath:s,rewriteFramesAssetPrefixPath:o,experimentalThirdPartyOriginStackFrames:l})),a),release:"5dc4df10e27deefd0c1d5a32bbaa00ced1188a11",...e};!function(e){let t=rA.env._sentryRewritesTunnelPath||rI._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,V.hH)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let a=n[1],o=n[2],i=`${t}?o=${a}&p=${r.projectId}`;o&&(i+=`&r=${o}`),e.tunnel=i,ru.T&&b.Yz.log(`Tunneling events to "${i}"`)}else ru.T&&b.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(u),w(u,"nextjs",["nextjs","react"]),u.ignoreSpans=[...u.ignoreSpans||[],/^\/404$/,RegExp(`^${rh.NI}$`)];let c=(w(r={...u},"react"),(0,S.o)("react",{version:rs.version}),n=function(e={}){let t,r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ti.jf.window)return!1;let e=ti.jf;if(e.nw)return!1;let t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;let r=(0,th.$N)();return!(ti.jf===ti.jf.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}()&&(tw.T&&(0,b.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n=null==e.defaultIntegrations?ra():e.defaultIntegrations,a={...e,enabled:!r&&e.enabled,stackParser:(0,F.vk)(e.stackParser||t7),integrations:(0,T.mH)({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||rt};return(0,Y.Ip)(rn),!0===a.debug&&(R.T?b.Yz.enable():(0,b.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,j.o5)().update(a.initialScope),J(t=new ts(a)),t.init(),t}(r),(0,Y.Ip)(rl),n),p=(e,t)=>rf(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;return p.id="NextRedirectErrorFilter",(0,S.SA)(p),c}function r$(e){return e}function rD(e,t={},r=(0,j.o5)()){let{message:n,name:a,email:o,url:i,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:o,name:a,message:n,url:i,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=r?.getClient()||(0,j.KU)();return p&&p.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)}let rU=v.O,rz=rU.document,rF=rU.navigator,rB="Report a Bug",rW="Cancel",rH="Send Bug Report",rq="Confirm",rY="Report a Bug",rJ="[email protected]",rV="Email",rG="What's the bug? What did you expect?",rX="Description",rK="Your Name",rQ="Name",rZ="Thank y
13ou for your report!",r0="(required)",r1="Add a screenshot",r2="Remove screenshot",r4="Highlight",r5="Hide",r3="Remove",r6="Unable to submit feedback with empty message",r9="No client setup, cannot send feedback.",r7="Unable to determine if Feedback was correctly sent.",r8="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",ne="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",nt={ERROR_EMPTY_MESSAGE:r6,ERROR_NO_CLIENT:r9,ERROR_TIMEOUT:r7,ERROR_FORBIDDEN:r8,ERROR_GENERIC:ne};function nr(e,t){return t?.[e]??nt[e]}let nn=(e,t={includeReplay:!0})=>{let r=t.errorMessages;if(!e.message)throw Error(nr("ERROR_EMPTY_MESSAGE",r));let n=(0,j.KU)();if(!n)throw Error(nr("ERROR_NO_CLIENT",r));e.tags&&Object.keys(e.tags).length&&(0,j.o5)().setTags(e.tags);let a=rD({source:"api",url:(0,th.$N)(),...e},t);return new Promise((e,t)=>{let o=setTimeout(()=>{i(),t(nr("ERROR_TIMEOUT",r))},3e4),i=n.on("afterSendEvent",(n,s)=>{if(n.event_id===a)return(clearTimeout(o),i(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300)?e(a):s?.statusCode===403?t(nr("ERROR_FORBIDDEN",r)):t(nr("ERROR_GENERIC",r))})})},na="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function no(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function ni(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let ns="rgba(88, 74, 192, 1)",nl={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ns,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%)"},nu={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ns,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 nc(e){return` 14 --foreground: ${e.foreground}; 15 --background: ${e.background}; 16 --accent-foreground: ${e.accentForeground}; 17 --accent-background: ${e.accentBackground}; 18 --success-color: ${e.successColor}; 19 --error-color: ${e.errorColor}; 20 --border: ${e.border}; 21 --box-shadow: ${e.boxShadow}; 22 --outline: ${e.outline}; 23 --interactive-filter: ${e.interactiveFilter}; 24 `}function np({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let a=rz.createElement("style");return a.textContent=` 25:host { 26 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 27 --font-size: 14px; 28 --z-index: 100000; 29 30 --page-margin: 16px; 31 --inset: auto 0 0 auto; 32 --actor-inset: var(--inset); 33 34 font-family: var(--font-family); 35 font-size: var(--font-size); 36 37 ${"system"!==e?`color-scheme: only ${e};`:""} 38 39 ${nc("dark"===e?{...nu,...t}:{...nl,...r})} 40} 41 42${"system"===e?` 43@media (prefers-color-scheme: dark) { 44 :host { 45 color-scheme: only dark; 46 47 ${nc({...nu,...t})} 48 } 49}`:""} 50`,n&&a.setAttribute("nonce",n),a}let nf=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:a=!0,showBranding:o=!0,isEmailRequired:i=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:p={email:"email",name:"username"},tags:f,styleNonce:d,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y=r1,cancelButtonLabel:v=rW,confirmButtonLabel:E=rq,emailLabel:w=rV,emailPlaceholder:S=rJ,formTitle:R=rY,isRequiredLabel:P=r0,messageLabel:k=rX,messagePlaceholder:x=rG,nameLabel:C=rQ,namePlaceholder:O=rK,removeScreenshotButtonLabel:A=r2,submitButtonLabel:I=rH,successMessageText:N=rZ,triggerLabel:j=rB,triggerAriaLabel:M="",highlightToolText:L=r4,hideToolText:$=r5,removeHighlightText:D=r3,errorEmptyMessageText:U=r6,errorNoClientText:z=r9,errorTimeoutText:F=r7,errorForbiddenText:B=r8,errorGenericText:W=ne,onFormOpen:H,onFormClose:q,onSubmitSuccess:Y,onSubmitError:J,onFormSubmitted:V}={})=>{let G={id:n,autoInject:a,showBranding:o,isEmailRequired:i,isNameRequired:s,showEmail
50:l,showName:u,enableScreenshot:c,useSentryUser:p,tags:f,styleNonce:d,scriptNonce:h,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:j,triggerAriaLabel:M,cancelButtonLabel:v,submitButtonLabel:I,confirmButtonLabel:E,formTitle:R,emailLabel:w,emailPlaceholder:S,messageLabel:k,messagePlaceholder:x,nameLabel:C,namePlaceholder:O,successMessageText:N,isRequiredLabel:P,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:A,highlightToolText:L,hideToolText:$,removeHighlightText:D,errorEmptyMessageText:U,errorNoClientText:z,errorTimeoutText:F,errorForbiddenText:B,errorGenericText:W,onFormClose:q,onFormOpen:H,onSubmitError:J,onSubmitSuccess:Y,onFormSubmitted:V},X=null,K=null,Q=[],Z=e=>{if(!X){let t=rz.createElement("div");t.id=String(e.id),rz.body.appendChild(t),X=t.attachShadow({mode:"open"}),K=np(e),X.appendChild(K)}return X},ee=async n=>{let a,o,i=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(rF.userAgent)||/Macintosh/i.test(rF.userAgent)&&rF.maxTouchPoints&&rF.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",h))(),(0,T.Q8)(a)}catch{throw na&&b.Yz.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let t=i?r?r():await e("feedbackScreenshotIntegration",h):void 0;t&&(o=t(),(0,T.Q8)(o))}catch{na&&b.Yz.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s={ERROR_EMPTY_MESSAGE:n.errorEmptyMessageText,ERROR_NO_CLIENT:n.errorNoClientText,ERROR_TIMEOUT:n.errorTimeoutText,ERROR_FORBIDDEN:n.errorForbiddenText,ERROR_GENERIC:n.errorGenericText},l=a.createDialog({options:{...n,onFormClose:()=>{l?.close(),n.onFormClose?.()},onFormSubmitted:()=>{l?.close(),n.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:(e,t)=>nn(e,{includeReplay:!0,...t,errorMessages:s}),shadow:Z(n)});return l},et=(e,t={})=>{let r=no(G,t),n="string"==typeof e?rz.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw na&&b.Yz.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let a=null,o=async()=>{a||(a=await ee({...r,onFormSubmitted:()=>{a?.removeFromDom(),r.onFormSubmitted?.()}})),a.appendToDom(),a.open()};n.addEventListener("click",o);let i=()=>{Q=Q.filter(e=>e!==i),a?.removeFromDom(),a=null,n.removeEventListener("click",o)};return Q.push(i),i},er=(e={})=>{let t=no(G,e),r=Z(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let a,o,i,s,l,u,c,p,f=rz.createElement("button");if(f.type="button",f.className="widget__actor",f.ariaHidden="false",f.ariaLabel=t||e||rB,f.appendChild((o=ni((a=e=>rU.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),i=ni(a("g"),{clipPath:"url(#clip0_57_80)"}),s=ni(a("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.45
5056 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"}),o.appendChild(i).appendChild(s),l=a("defs"),u=ni(a("clipPath"),{id:"clip0_57_80"}),c=ni(a("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),o.appendChild(l).appendChild(u).appendChild(c),o)),e){let t=rz.createElement("span");t.appendChild(rz.createTextNode(e)),f.appendChild(t)}let d=((p=rz.createElement("style")).textContent=` 51.widget__actor { 52 position: fixed; 53 z-index: var(--z-index); 54 margin: var(--page-margin); 55 inset: var(--actor-inset); 56 57 display: flex; 58 align-items: center; 59 gap: 8px; 60 padding: 16px; 61 62 font-family: inherit; 63 font-size: var(--font-size); 64 font-weight: 600; 65 line-height: 1.14em; 66 text-decoration: none; 67 68 background: var(--actor-background, var(--background)); 69 border-radius: var(--actor-border-radius, 1.7em/50%); 70 border: var(--actor-border, var(--border));
71 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 72 color: var(--actor-color, var(--foreground)); 73 fill: var(--actor-color, var(--foreground)); 74 cursor: pointer; 75 opacity: 1; 76 transition: transform 0.2s ease-in-out; 77 transform: translate(0, 0) scale(1); 78} 79.widget__actor[aria-hidden="true"] { 80 opacity: 0; 81 pointer-events: none; 82 visibility: hidden; 83 transform: translate(0, 16px) scale(0.98); 84} 85 86.widget__actor:hover { 87 background: var(--actor-hover-background, var(--background)); 88 filter: var(--interactive-filter); 89} 90 91.widget__actor svg { 92 width: 1.14em; 93 height: 1.14em; 94} 95 96@media (max-width: 600px) { 97 .widget__actor span { 98 display: none; 99 } 100} 101`,n&&p.setAttribute("nonce",n),p);return{el:f,appendToDom(){r.appendChild(d),r.appendChild(f)},removeFromDom(){f.remove(),d.remove()},show(){f.ariaHidden="false"},hide(){f.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:d});return et(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){(0,ep.B)()&&G.autoInject&&("loading"===rz.readyState?rz.addEventListener("DOMContentLoaded",()=>er().appendToDom()):er().appendToDom())},attachTo:et,createWidget(e={}){let t=er(no(G,e));return t.appendToDom(),t},createForm:async(e={})=>ee(no(G,e)),setTheme(e){if(G.colorScheme=e,X){let e=np(G);K?X.replaceChild(e,K):X.prepend(e),K=e}},remove(){X&&(X.parentElement?.remove(),X=null,K=null),Q.forEach(e=>e()),Q=[]}}};function nd(){let e=(0,j.KU)();return e?.getIntegrationByName("Feedback")}var nh,nm,ng,n_,ny,nv,nb,nE={},nw=[],nS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nR=Array.isArray;function nT(e,t){for(var r in t)e[r]=t[r];return e}function nP(e){var t=e.parentNode;t&&t.removeChild(e)}function nk(e,t,r){var n,a,o,i={};for(o in t)"key"==o?n=t[o]:"ref"==o?a=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?nh.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===i[o]&&(i[o]=e.defaultProps[o]);return nx(e,i,n,a,null)}function nx(e,t,r,n,a){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++ng:a,__i:-1,__u:0};return null==a&&null!=nm.vnode&&nm.vnode(o),o}function nC(e){return e.children}function nO(e,t){this.props=e,this.context=t}function nA(e,t){if(null==t)return e.__?nA(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?nA(e):null}
101function nI(e){(!e.__d&&(e.__d=!0)&&n_.push(e)&&!nN.__r++||ny!==nm.debounceRendering)&&((ny=nm.debounceRendering)||nv)(nN)}function nN(){var e,t,r,n=[],a=[];for(n_.sort(nb);e=n_.shift();)e.__d&&(r=n_.length,t=function(e,t,r){var n,a=e.__v,o=a.__e,i=e.__P;if(i)return(n=nT({},a)).__v=a.__v+1,nm.vnode&&nm.vnode(n),nU(i,n,a,e.__n,void 0!==i.ownerSVGElement,32&a.__u?[o]:null,t,null==o?nA(a):o,!!(32&a.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=o&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,a)||t,0===r||n_.length>r?(nz(n,t,a),a.length=n.length=0,t=void 0,n_.sort(nb)):t&&nm.__c&&nm.__c(t,nw));t&&nz(n,t,a),nN.__r=0}function nj(e,t,r,n,a,o,i,s,l,u,c){var p,f,d,h,m,g=n&&n.__k||nw,_=t.length;for(r.__d=l,function(e,t,r){var n,a,o,i,s,l=t.length,u=r.length,c=u,p=0;for(e.__k=[],n=0;n<l;n++)null!=(a=e.__k[n]=null==(a=t[n])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?nx(null,a,null,null,a):nR(a)?nx(nC,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?nx(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,s=function(e,t,r,n){var a=e.key,o=e.type,i=r-1,s=r+1,l=t[r];if(null===l||l&&a==l.key&&o===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;i>=0||s<t.length;){if(i>=0){if((l=t[i])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return i;i--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return s;s++}}return -1}(a,r,i=n+p,c),a.__i=s,o=null,-1!==s&&(c--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=65536)):s!==i&&(s===i+1?p++:s>i?c>l-i?p+=s-i:p--:p=s<i&&s==i-1?s-i:0,s!==n+p&&(a.__u|=65536))):(o=r[n])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=nA(o)),nB(o,o,!1),r[n]=null,c--);if(c)for(n=0;n<u;n++)null!=(o=r[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=nA(o)),nB(o,o))}(r,t,g),l=r.__d,p=0;p<_;p++)null!=(d=r.__k[p])&&"boolean"!=typeof d&&"function"!=typeof d&&(f=-1===d.__i?nE:g[d.__i]||nE,d.__i=p,nU(e,d,f,a,o,i,s,l,u,c),h=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&nF(f.ref,null,d),c.push(d.ref,d.__c||h,d)),null==m&&null!=h&&(m=h),65536&d.__u||f.__k===d.__k?l=function e(t,r,n){var a,o;if("function"==typeof t.type){for(a=t.__k,o=0;a&&o<a.length;o++)a[o]&&(a[o].__=t,r=e(a[o],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}
vendor: 5,654 bytes, line 101
101(d,l,e):"function"==typeof d.type&&void 0!==d.__d?l=d.__d:h&&(l=h.nextSibling),d.__d=void 0,d.__u&=-196609);r.__d=l,r.__e=m}function nM(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||nS.test(t)?r:r+"px"}function nL(e,t,r,n,a){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||nM(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||nM(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=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+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?nD:n$,o)):e.removeEventListener(t,o?nD:n$,o);else{if(a)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==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function n$(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();return t(nm.event?nm.event(e):e)}}function nD(e){if(this.l)return this.l[e.type+!0](nm.event?nm.event(e):e)}function nU(e,t,r,n,a,o,i,s,l,u){var c,p,f,d,h,m,g,_,y,v,b,E,w,S,R,T=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(c=nm.__b)&&c(t);e:if("function"==typeof T)try{if(_=t.props,y=(c=T.contextType)&&n[c.__c],v=c?y?y.props.value:c.__:n,r.__c?g=(p=t.__c=r.__c).__=p.__E:("prototype"in T&&T.prototype.render?t.__c=p=new T(_,v):(t.__c=p=new nO(_,v),p.constructor=T,p.render=nW),y&&y.sub(p),p.props=_,p.state||(p.state={}),p.context=v,p.__n=n,f=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=T.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=nT({},p.__s)),nT(p.__s,T.getDerivedStateFromProps(_,p.__s))),d=p.props,h=p.state,p.__v=t,f)null==T.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==T.getDerivedStateFromProps&&_!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(_,v),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(_,p.__s,v)||t.__v===r.__v)){for(t.__v!==r.__v&&(p.props=_,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__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&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(_,p.__s,v),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,h,m)})}if(p.context=v,p.props=_,p.__P=e,p.__e=!1,E=nm.__r,w=0,"prototype"in T&&T.prototype.render){for(p.state=p.__s,p.__d=!1,E&&E(t),c=p.render(p.props,p.state,p.context),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[]}else do p.__d=!1,E&&E(t),c=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++w<25);p.state=p.__s,null!=p.getChildContext&&(n=nT(nT({},n),p.getChildContext())),f||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,h)),nj(e,nR(R=null!=c&&c.type===nC&&null==c.key?c.props.children:c)?R:[R],t,r,n,a,o,i,s,l,u),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),g&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),nm.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,a,o,i,s,l){var u,c,p,f,d,h,m,g=r.props,_=t.props,y=t.type;if("svg"===y&&(a=!0),null!=o){for(u=0;u<o.length;u++)if((d=o[u])&&"setAttribute"in d==!!y&&(y?d.localName===y:3===d.nodeType)){e=d,o[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=a?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),o=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(o=o&&nh.call(e.childNodes),g=r.props||nE,!s&&null!=o)for(g={},u=0;u<e.attributes.length;u++)g[(d=e.attributes[u]).name]=d.value;for(u in g)d=g[u],"children"==u||("dangerouslySetInnerHTML"==u?p=d:"key"===u||u in _||nL(e,u,null,d,a));for(u in _)d=_[u],"children"==u?f=d:"dangerouslySetInnerHTML"==u?c=d:"value"==u?h=d:"checked"==u?m=d:"key"===u||s&&"function"!=typeof d||g[u]===d||nL(e,u,d,g[u],a);if(c)s||p&&(c.__html===p.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(p&&(e.innerHTML=""),nj(e,nR(f)?f:[f],t,r,n,a&&"foreignObject"!==y,o,i,o?o[0]:r.__k&&nA(r,0),s,l),null!=o)for(u=o.length;u--;)null!=o[u]&&nP(o[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===g[u])||nL(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&nL(e,u,m,g[u],!1))}return e}(r.__e,t,r,n,a,o,i,l,u);(c=nm.diffed)&&c(t)}function nz(e,t,r){for(var n=0;n<r.length;n++)nF(r[n],r[++n],r[++n]);nm.__c&&nm.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){nm.__e(e,t.__v)}})}function nF(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){nm.__e(e,r)}}function nB(e,t,r){var n,a;if(nm.unmount&&nm.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||nF(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){nm.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(a=0;a<n.length;a++)n[a]&&nB(n[a],t,r||"function"!=typeof e.type);r||null==e.__e||nP(e.__e),e.__=e.__e=e.__d=void 0}function nW(e,t,r){return this.constructor(e,r)}nh=nw.slice,nm={__e:function(e,t,r,n){for(var a,o,i;t=t.__;)if((a=t.__c)&&!a.__)try{if((o=a.constructor)&&null!=o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),i=a.__d),null!=a.c
101omponentDidCatch&&(a.componentDidCatch(e,n||{}),i=a.__d),i)return a.__E=a}catch(t){e=t}throw e}},ng=0,nO.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nT({},this.state),"function"==typeof e&&(e=e(nT({},r),this.props)),e&&nT(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),nI(this))},nO.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nI(this))},nO.prototype.render=nC,n_=[],nv="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nb=function(e,t){return e.__v.__b-t.__v.__b},nN.__r=0;var nH,nq,nY,nJ,nV=0,nG=[],nX=[],nK=nm,nQ=nK.__b,nZ=nK.__r,n0=nK.diffed,n1=nK.__c,n2=nK.unmount,n4=nK.__;function n5(e,t){nK.__h&&nK.__h(nq,e,nV||t),nV=0;var r=nq.__H||(nq.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:nX}),r.__[e]}function n3(e){return nV=1,n6(ao,e)}function n6(e,t,r){var n=n5(nH++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ao(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=nq,!nq.u)){var a=function(e,t,r){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var i=!1;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};nq.u=!0;var o=nq.shouldComponentUpdate,i=nq.componentWillUpdate;nq.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,a(e,t,r),o=n}i&&i.call(this,e,t,r)},nq.shouldComponentUpdate=a}return n.__N||n.__}function n9(e,t){var r=n5(nH++,4);!nK.__s&&aa(r.__H,t)&&(r.__=e,r.i=t,nq.__h.push(r))}function n7(e,t){var r=n5(nH++,7);return aa(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function n8(e,t){return nV=8,n7(function(){return e},t)}function ae(){for(var e;e=nG.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ar),e.__H.__h.forEach(an),e.__H.__h=[]}catch(t){e.__H.__h=[],nK.__e(t,e.__v)}}nK.__b=function(e){nq=null,nQ&&nQ(e)},nK.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),n4&&n4(e,t)},nK.__r=function(e){nZ&&nZ(e),nH=0;var t=(nq=e.__c).__H;t&&(nY===nq?(t.__h=[],nq.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=nX,e.__N=e.i=void 0})):(t.__h.forEach(ar),t.__h.forEach(an),t.__h=[],nH=0)),nY=nq},nK.diffed=function(e){n0&&n0(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==nG.push(t)&&nJ===nK.requestAnimationFrame||((nJ=nK.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),at&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);at&&(t=requestAnimationFrame(r))})(ae)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==nX&&(e.__=e.__V),e.i=void 0,e.__V=nX})),nY=nq=null},nK.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ar),e.__h=e.__h.filter(function(e){return!e.__||an(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],nK.__e(r,e.__v)}}),n1&&n1(e,t)},nK.unmount=function(e){n2&&n2(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{ar(e)}catch(e){t=e}}),r.__H=void 0,t&&nK.__e(t,r.__v))};var at="function"==typeof requestAnimationFrame;function ar(e){var t=nq,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),nq=t}function an(e){var t=nq;e.__c=e.__(),nq=t}function aa(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function ao(e,t){return"function"==typeof t?t(e):t}let ai=Object.defineProperty({__proto__:null,useCallback:n8,useContext:function(e){var t=nq.context[e.__c],r=n5(nH++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(nq)),t.props.value):e.__},useDebugValue:function(e,t){nK.useDebugValue&&nK.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=n5(nH++,3);!nK.__s&&aa(r.__H,t)&&(r.__=e,r.i=t,nq.__H.__h.push(r))},useErrorBoundary:function(e){var t=n5(nH++,10),r=n3();return t.__=e,nq.componentDidCatch||(nq.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=n5(nH++,11);if(!e.__){for(var t=nq.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){nV=6,n9(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:n9,useMemo:n7,useReducer:n6,useRef:function(e){return nV=5,n7(function(){return{current:e}},[])},useState:n3},Symbol.toStringTag,{value:"Module"});function as({options:e}){let t=n7(()=>{let e,t;return{__html:(e=ni(rz.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=ni(rz.createElementNS("http://www.w3.org/2000/svg","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"}),e.appendChild(t),e).outerHTML}},[]);return nk("h2",{class:"dialog__header"},nk("span",{class:"dialog__title"},e.formTitle),e.showBranding?nk("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function al(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function au({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:a,onSubmitSuccess:o,onSubmitError:i,showEmail
101:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:f,cancelButtonLabel:d,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:E,namePlaceholder:w,submitButtonLabel:S,isRequiredLabel:R}=e,[T,P]=n3(!1),[k,x]=n3(null),[C,O]=n3(!1),A=u?.input,[I,N]=n3(null),j=n8(e=>{N(e),O(!1)},[]),M=n8(e=>{var t;let r,n=(r=[],(t={emailLabel:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:E}).isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r);return n.length>0?x(`Please enter in the following required fields: ${n.join(", ")}`):x(null),0===n.length},[h,g,_,y,E]);return nk("form",{class:"form",onSubmit:n8(async e=>{P(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (u&&C?u.value():void 0),n={name:al(t,"name"),email:al(t,"email"),message:al(t,"message"),attachments:r?[r]:void 0};if(!M(n))return;try{let e=await a({name:n.name,email:n.email,message:n.message,source:"widget",tags:c},{attachments:n.attachments});o(n,e)}catch(t){na&&b.Yz.error(t);let e=t instanceof Error?t:Error(String(t));x(e.message),i(e)}}finally{P(!1)}},[u&&C,o,i])},A&&C?nk(A,{onError:j}):null,nk("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:T},nk("div",{class:"form__top"},k?nk("div",{class:"form__error-container"},k):null,l?nk("label",{for:"name",class:"form__label"},nk(ac,{label:E,isRequiredLabel:R,isRequired:_}),nk("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:w,required:_,type:"text"})):nk("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?nk("label",{for:"email",class:"form__label"},nk(ac,{label:h,isRequiredLabel:R,isRequired:g}),nk("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):nk("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),nk("label",{for:"message",class:"form__label"},nk(ac,{label:y,isRequiredLabel:R,isRequired:!0}),nk("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),A?nk("label",{for:"screenshot",class:"form__label"},nk("button",{class:"btn btn--default",disabled:T,type:"button",onClick:()=>{N(null),O(e=>!e)}},C?f:p),I?nk("div",{class:"form__error-container"},I.message):null):null),nk("div",{class:"btn-group"},nk("button",{class:"btn btn--primary",disabled:T,type:"submit"},S),nk("button",{class:"btn btn--default",disabled:T,type:"button",onClick:n},d))))}function ac({label:e,isRequired:t,isRequiredLabel:r}){return nk("span",{class:"form__label__text"},e,t&&nk("span",{class:"form__label__text--required"},r))}function ap({open:e,onFormSubmitted:t,...r}){let n=r.options,a=n7(()=>{let e,t,r,n,a,o,i,s;return{__html:(t=ni((e=e=>rU.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=ni(e("g"),{clipPath:"url(#clip0_57_156)"}),n=ni(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"}),a=ni(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
10110.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(r).append(a,n),o=e("defs"),i=ni(e("clipPath"),{id:"clip0_57_156"}),s=ni(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t).outerHTML}},[]),[o,i]=n3(null),s=n8(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),l=n8((e,n)=>{r.onSubmitSuccess(e,n),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return nk(nC,null,o?nk("div",{class:"success__position",onClick:s},nk("div",{class:"success__content"},n.successMessageText,nk("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):nk("dialog",{class:"dialog",onClick:n.onFormClose,open:e},nk("div",{class:"dialog__position"},nk("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},nk(as,{options:n}),nk(au,{...r,onSubmitSuccess:l})))))}let af=` 102.dialog { 103 position: fixed; 104 z-index: var(--z-index); 105 margin: 0; 106 inset: 0; 107 108 display: flex; 109 align-items: center; 110 justify-content: center; 111 padding: 0; 112 height: 100vh; 113 width: 100vw; 114 115 color: var(--dialog-color, var(--foreground)); 116 fill: var(--dialog-color, var(--foreground)); 117 line-height: 1.75em; 118 119 background-color: rgba(0, 0, 0, 0.05); 120 border: none; 121 inset: 0; 122 opacity: 1; 123 transition: opacity 0.2s ease-in-out; 124} 125 126.dialog__position { 127 position: fixed; 128 z-index: var(--z-index); 129 inset: var(--dialog-inset); 130 padding: var(--page-margin); 131 display: flex; 132 max-height: calc(100vh - (2 * var(--page-margin))); 133} 134@media (max-width: 600px) { 135 .dialog__position { 136 inset: var(--page-margin); 137 padding: 0; 138 } 139} 140 141.dialog__position:has(.editor) { 142 inset: var(--page-margin); 143 padding: 0; 144} 145 146.dialog:not([open]) { 147 opacity: 0; 148 pointer-events: none; 149 visibility: hidden; 150} 151.dialog:not([open]) .dialog__content { 152 transform: translate(0, -16px) scale(0.98); 153} 154 155.dialog__content { 156 display: flex; 157 flex-direction: column; 158 gap: 16px; 159 padding: var(--dialog-padding, 24px); 160 max-width: 100%; 161 width: 100%; 162 max-height: 100%; 163 overflow: auto; 164 165 background: var(--dialog-background, var(--background)); 166 border-radius: var(--dialog-border-radius, 20px); 167 border: var(--dialog-border, var(--border));
168 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 169 transform: translate(0, 0) scale(1); 170 transition: transform 0.2s ease-in-out; 171} 172 173`,ad=` 174.dialog__header { 175 display: flex; 176 gap: 4px; 177 justify-content: space-between; 178 font-weight: var(--dialog-header-weight, 600); 179 margin: 0; 180} 181.dialog__title { 182 align-self: center; 183 width: var(--form-width, 272px); 184} 185 186@media (max-width: 600px) { 187 .dialog__title { 188 width: auto; 189 } 190} 191 192.dialog__position:has(.editor) .dialog__title { 193 width: auto; 194} 195 196 197.brand-link { 198 display: inline-flex; 199} 200.brand-link:focus-visible { 201 outline: var(--outline); 202} 203`,ah=` 204.form { 205 display: flex; 206 overflow: auto; 207 flex-direction: row; 208 gap: 16px; 209 flex: 1 0; 210} 211 212.form fieldset { 213 border: none; 214 margin: 0; 215 padding: 0; 216} 217 218.form__right { 219 flex: 0 0 auto; 220 display: flex; 221 overflow: auto; 222 flex-direction: column; 223 justify-content: space-between; 224 gap: 20px; 225 width: var(--form-width, 100%); 226} 227 228.dialog__position:has(.editor) .form__right { 229 width: var(--form-width, 272px); 230} 231 232.form__top { 233 display: flex; 234 flex-direction: column; 235 gap: 8px; 236} 237 238.form__error-container { 239 color: var(--error-color); 240 fill: var(--error-color); 241} 242 243.form__label { 244 display: flex; 245 flex-direction: column; 246 gap: 4px; 247 margin: 0px; 248} 249 250.form__label__text { 251 display: flex; 252 gap: 4px; 253 align-items: center; 254} 255 256.form__label__text--required { 257 font-size: 0.85em; 258} 259 260.form__input { 261 font-family: inherit; 262 line-height: inherit; 263 background: transparent; 264 box-sizing: border-box; 265 border: var(--input-border, var(--border)); 266 border-radius: var(--input-border-radius, 6px); 267 color: var(--input-color, inherit); 268 fill: var(--input-color, inherit); 269 font-size: var(--input-font-size, inherit); 270 font-weight: var(--input-font-weight, 500); 271 padding: 6px 12px; 272} 273 274.form__input::placeholder { 275 opacity: 0.65; 276 color: var(--input-placeholder-color, inherit); 277 filter: var(--interactive-filter); 278} 279 280.form__input:focus-visible { 281 outline: var(--input-focus-outline, var(--outline)); 282} 283 284.form__input--textarea { 285 font-family: inherit; 286 resize: vertical; 287} 288 289.error { 290 color: var(--error-color); 291 fill: var(--error-color); 292} 293`,am=` 294.btn-group { 295 display: grid; 296 gap: 8px; 297} 298 299.btn { 300 line-height: inherit; 301 border: var(--button-border, var(--border)); 302 border-radius: var(--button-border-radius, 6px); 303 cursor: pointer; 304 font-family: inherit; 305 font-size: var(--button-font-size, inherit); 306 font-weight: var(--button-font-weight, 600); 307 padding: var(--button-padding, 6px 16px); 308} 309.btn[disabled] { 310 opacity: 0.6; 311 pointer-events: none; 312} 313 314.btn--primary { 315 color: var(--button-primary-color, var(--accent-foreground)); 316 fill: var(--button-primary-color, var(--accent-foreground)); 317 background: var(--button-primary-background, var(--accent-background)); 318 border: var(--button-primary-border, var(--border)); 319 border-radius: var(--button-primary-border-radius, 6px); 320 font-weight: var(--button-primary-font-weight, 500); 321} 322.btn--primary:hover { 323 color: var(--button-primary-hover-color, var(--accent-foreground)); 324 fill: var(--button-primary-hover-color, var(--accent-foreground)); 325 background: var(--button-primary-hover-background, var(--accent-background)); 326 filter: var(--interactive-filter); 327} 328.btn--primary:focus-visible { 329 background: var(--button-primary-hover-background, var(--accent-background)); 330 filter: var(--interactive-filter); 331 outline: var(--button-primary-focus-outline, var(--outline)); 332} 333 334.btn--default { 335 color: var(--button-color, var(--foreground)); 336 fill: var(--button-color, var(--foreground)); 337 background: var(--button-background, var(--background)); 338 border: var(--button-border, var(--border)); 339 border-radius: var(--button-border-radius, 6px); 340 font-weight: var(--button-font-weight, 500); 341} 342.btn--default:hover { 343 color: var(--button-color, var(--foreground)); 344 fill: var(--button-color, var(--foreground)); 345 background: var(--button-hover-background, var(--background)); 346 filter: var(--interactive-filter); 347} 348.btn--default:focus-visible { 349 background: var(--button-hover-background, var(--background)); 350 filter: var(--interactive-filter); 351 outline: var(--button-focus-outline, var(--outline)); 352} 353`,ag=` 354.success__position { 355 position: fixed; 356 inset: var(--dialog-inset); 357 padding: var(--page-margin); 358 z-index: var(--z-index); 359} 360.success__content { 361 background: var(--success-background, var(--background)); 362 border: var(--success-border, var(--border)); 363 border-radius: var(--success-border-radius, 1.7em/50%);
364 box-shadow: var(--success-box-shadow, var(--box-shadow)); 365 font-weight: var(--success-font-weight, 600); 366 color: var(--success-color); 367 fill: var(--success-color); 368 padding: 12px 24px; 369 line-height: 1.75em; 370 371 display: grid; 372 align-items: center; 373 grid-auto-flow: column; 374 gap: 6px; 375 cursor: default; 376} 377 378.success__icon { 379 display: flex; 380} 381`,a_=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:n})=>{var a;let o,i,s,l,u=e.useSentryUser,c=(o=(0,j.o5)().getUser(),i=(0,j.rm)().getUser(),s=(0,j.m6)().getUser(),o&&Object.keys(o).length?o:i&&Object.keys(i).length?i:s),p=rz.createElement("div"),f=(a=e.styleNonce,(l=rz.createElement("style")).textContent=` 382:host { 383 --dialog-inset: var(--inset); 384} 385 386${af} 387${ad} 388${ah} 389${am} 390${ag} 391`,a&&l.setAttribute("nonce",a),l),d="",h={get el(){return p},appendToDom(){n.contains(f)||n.contains(p)||(n.appendChild(f),n.appendChild(p))},removeFromDom(){p.remove(),f.remove(),rz.body.style.overflow=d},open(){g(!0),e.onFormOpen?.(),(0,j.KU)()?.emit("openFeedbackWidget"),d=rz.body.style.overflow,rz.body.style.overflow="hidden"},close(){g(!1),rz.body.style.overflow=d}},m=t?.createInput({h:nk,hooks:ai,dialog:h,options:e}),g=t=>{var n,a,o,i;n=nk(ap,{options:e,screenshotInput:m,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{g(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),nm.__&&nm.__(n,p),a=p.__k,o=[],i=[],nU(p,n=p.__k=nk(nC,null,[n]),a||nE,nE,void 0!==p.ownerSVGElement,a?null:p.firstChild?nh.call(p.childNodes):null,o,a?a.__e:p.firstChild,!1,i),n.__d=void 0,nz(o,n,i)};return h}});function ay(e,t,r){if(!e)return;let n=e.getContext("2d",t);n&&r(e,n)}function av(e,t){ay(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function ab(e,t,r){ay(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}})})}let aE=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let a=rz.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:r,dialog:n,options:a}){var o;let i,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:a}){let o=function(){let[t,r]=e.useState(rU.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(rU.devicePixelRatio)},t=matchMedia(`(resolution: ${rU.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await rF.mediaDevices.getDisplayMedia({video:{width:rU.innerWidth*o,height:rU.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=rz.createElement("video");await new Promise((t,n)=>{a.srcObject=e,a.onloadedmetadata=()=>{r(a,o),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(n)}),n()})().catch(a)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:r,options:n}){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:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),p=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}),f={__html:(o=a.styleNonce,i=rz.createElement("style"),s="#1A141F",l="#302735",i.textContent=` 392.editor { 393 display: flex; 394 flex-grow: 1; 395 flex-direction: column; 396} 397 398.editor__image-container { 399 justify-items: center; 400 padding: 15px; 401 position: relative; 402 height: 100%; 403 border-radius: var(--menu-border-radius, 6px); 404 405 background-color: ${s}; 406 background-image: repeating-linear-gradient( 407 -145deg, 408 transparent, 409 transparent 8px, 410 ${s} 8px, 411 ${s} 11px 412 ), 413 repeating-linear-gradient( 414 -45deg, 415 transparent, 416 transparent 15px, 417 ${l} 15px, 418 ${l} 16px 419 ); 420} 421 422.editor__canvas-container { 423 width: 100%; 424 height: 100%; 425 position: relative; 426 display: flex; 427 align-items: center; 428 justify-content: center; 429} 430 431.editor__canvas-container > * { 432 object-fit: contain; 433 position: absolute; 434} 435 436.editor__tool-container { 437 padding-top: 8px; 438 display: flex; 439 justify-content: center; 440} 441 442.editor__tool-bar { 443 display: flex; 444 gap: 8px; 445} 446 447.editor__tool { 448 display: flex; 449 padding: 8px 12px; 450 justify-content: center; 451 align-items: center; 452 border: var(--button-border, var(--border)); 453 border-radius: var(--button-border-radius, 6px); 454 background: var(--button-background, var(--background)); 455 color: var(--button-color, var(--foreground)); 456} 457 458.editor__tool--active { 459 background: var(--button-primary-background, var(--accent-background)); 460 color: var(--button-primary-color, var(--accent-foreground)); 461} 462 463.editor__rect { 464 position: absolute; 465 z-index: 2; 466} 467 468.editor__rect button { 469 opacity: 0; 470 position: absolute; 471 top: -12px; 472 right: -12px; 473 cursor: pointer; 474 padding: 0; 475 z-index: 3; 476 border: none; 477 background: none; 478} 479 480.editor__rect:hover button { 481 opacity: 1; 482} 483`,o&&i.setAttribute("nonce",o),i).innerText},d=n.el.style,h=({screenshot:n})=>{let[o,i]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),d=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,_]=t.useState(1),y=t.useMemo(()=>{let e=rz.getElementById(a.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[a.id]);t.useLayoutEffect(()=>{let e=()=>{let t=u.current;t&&(ay(n.canvas,{alpha:!1},e=>
483{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),rU.addEventListener("resize",e),()=>{rU.removeEventListener("resize",e)}},[n]);let v=t.useCallback((e,t)=>{ay(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{v(d.current,n.dpi),av(d.current,n.canvas)},[n]),t.useEffect(()=>{v(h.current,n.dpi),ay(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ab(h.current,y,s)},[s,y]),t.useEffect(()=>{v(r,n.dpi),av(r,n.canvas),ay(rz.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,ab(e,y,s),av(r,e)})},[s,n,y]);let b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let r=[...t];return r.splice(e,1),r})},[]),E={width:`${n.canvas.width*g}px`,height:`${n.canvas.height*g}px`},w=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:f}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:d,id:"background",style:E}),e("canvas",{ref:h,id:"foreground",style:E}),e("div",{ref:m,onMouseDown:e=>{if(!o||!m.current)return;let t=m.current.getBoundingClientRect(),r={type:o,x:e.offsetX/g,y:e.offsetY/g},n=(e,r)=>{let n=(r.clientX-t.x)/g,a=(r.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,a),w:Math.abs(n-e.x),h:Math.abs(a-e.y)}},a=e=>{ay(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ab(h.current,y,[...s,n(r,e)])},i=e=>{let t=n(r,e);t.w*g>=1&&t.h*g>=1&&l(e=>[...e,t]),rz.removeEventListener("mousemove",a),rz.removeEventListener("mouseup",i)};rz.addEventListener("mousemove",a),rz.addEventListener("mouseup",i)},style:E},s.map((t,r)=>e("div",{key:r,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":a.removeHighlightText,onClick:b(r),onMouseDown:w,onMouseUp:w,type:"button"},e(p,null))))))),e(c,{options:a,action:o,setAction:i}))};return function({onError:n}){let[a,o]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{d.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{ay(rz.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),o({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{d.display="block"},[]),onError:t.useCallback(e=>{d.display="block",n(e)},[])}),a)?e(h,{screenshot:a}):e("div",null)}}({h:e,hooks:t,outputBuffer:a,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>
483{a.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),aw=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],aS={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"},aR=ti.jf;async function aT(e,t){var r;let n,a,o=aw.includes(e)?aS[e]||e.replace("Integration","").toLowerCase():void 0,i=aR.Sentry=aR.Sentry||{};if(!o)throw Error(`Cannot lazy load integration: ${e}`);let s=i[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(r=o,n=(0,j.KU)(),a=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${E.M}/${r}.min.js`,a).toString()),u=ti.jf.document.createElement("script");u.src=l,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let c=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),p=ti.jf.document.currentScript,f=ti.jf.document.body||ti.jf.document.head||p?.parentElement;if(f)f.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let d=i[e];if("function"!=typeof d)throw Error(`Could not load integration: ${e}`);return d}let aP=nf({lazyLoadIntegration:aT}),ak=nf({getModalIntegration:()=>a_,getScreenshotIntegration:()=>aE}),ax="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function aC(e,t){let r;return(0,ec.yH)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function aO(e,t){return r=>{let n=e(r),a=new Map,o=t||(e=>{let t=e.getEvent();return t?.extra?.[ax]&&Array.isArray(t.extra[ax])?t.extra[ax]:[]});function i(t,n){let o=n?`${t}:${n}`:t,i=a.get(o);if(!i){let s=(0,V.hH)(t);if(!s)return;let l=X(s,r.tunnel);i=n?(t=>{let r=e(t);return{...r,send:async e=>{let t=aC(e,["event","transaction","profile","replay_event"]);return t&&(t.release=n),r.send(e)}}})({...r,url:l}):e({...r,url:l}),a.set(o,i)}return[t,i]}return{send:async function(e){let t=o({envelope:e,getEvent:function(t){return aC(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",n]];return(await Promise.all(r.map(([t,r])=>r.send((0,ec.h4)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...a.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var aA=r(60896);let aI=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],aN=["removeListener","off","removeEventListener"],aj=Symbol("SentryScopeBoundListeners");function aM(e,t=(0,j.o5)()){var r,n;if(e[aj])return e;for(let r of(a$(e),aI))"function"==typeof e[r]&&(e[r]=function(e,t,r){return function(...n){let a=n[0],i=n[1],s=n.slice(2);if(!aL(i)||void 0!==o&&(i===o||i.listener===o))return t.apply(this,n);let l=function(e){return e[aj]}(e)||a$(e),u=l.get(a);u||(u=new WeakMap,l.set(a,u));let c=u.get(i);c||(c=function(...e){return(0,j.v4)(r,()=>i.apply(this,e))},u.set(i,c));let p=o;o=c;try{return t.call(this,a,c,...s)}finally{o=p}}}(e,e[r],t));for(let t of aN)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...r){let n=r[0],a=r[1],o=r.slice(2),i=aL(a)?(function(e){return e[aj]})(e)?.get(n)?.get(a):void 0;return i?t.call(this,n,i,...o):t.apply(this,r)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(r=e,n=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[aj]}(r);if(t)if(0===e.length)a$(r);else{let r=e[0];t.delete(r)}return n.apply(this,e)}),e}function aL(e){return"function"==typeof e}function a$(e){let t=new Map;return e[aj]=t,t}let aD=(0,T._C)((e={})=>{let t=e.levels||b.Ow,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in v.O&&tc(({args:n,level:a})=>{var o,i,s;let l,u,c;(0,j.KU)()===e&&t.includes(a)&&(o=n,i=a,s=r,l=(0,tm.t)(i),u=Error(),c={level:(0,tm.t)(i),extra:{arguments:o}},(0,j.v4)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,k.M6)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===i){if(!o[0]){let t=`Assertion failed: ${(0,x.gt)(o.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",o.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=o.find(e=>e instanceof Error);if(t)return void(0,S.Cp)(t,c);let r=(0,x.gt)(o," ");e.captureMessage(r,l,{captureContext:c,syntheticException:u})}))})}}});function aU(e,t,r){var n,a,o;return"util"in v.O&&"function"==typeof v.O.util.format?v.O.util.format(...e):(n=e,a=t,o=r,n.map(e=>(0,et.sO)(e)?String(e):JSON.stringify((0,Y.S8)(e,a,o))).join(" "))}function az(e){return/%[sdifocO]/.test(e)}function aF(e,t){let r={},n=Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}let aB={[D.JD]:"auto.log.console"},aW=(0,T._C)((e={})=>{let t=e.levels||b.Ow;return{name:"ConsoleLogs",setup(e){let{enableLogs:r,normalizeDepth:n=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!r){R.T&&b.Yz.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let o=tc(({args:r,level:o})=>{if((0,j.KU)()!==e||!t.includes(o))return;let i=r[0],s=r.slice(1);if("assert"===o){i||eh({level:"error",message:s.length>0?`Assertion failed: ${aU(s,n,a)}`:"Assertion failed",attributes:aB});return}let l="log"===o,u={...aB};if((0,et.Qd)(i)){Object.assign(u,(0,Y.S8)(i,n,a));let e="string"==typeof r[1]?2:1;r.slice(e).forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=(0,Y.S8)(e,n,a)})}else if(s.length>0&&"string"==typeof i&&!az(i))for(let[e,t]of Object.entries(aF(i,s)))u[e]=e.startsWith("sentry.message.parameter.")?(0,Y.S8)(t,n,a):t;eh({level:l?"info":o,message:aU(r,n,a),severityNumber:l?10:void 0,attributes:u})});e.registerCleanup(o)}}});var aH=r(60297);let aq=["trace","debug","info","warn","error","fatal"];function aY(e={}){let t=new Set(e.levels??aq),r=e.client;return{log(e){let{type:n,level:a,message:o,args:i,tag:s,date:l,...u}=e,c=r||(0,j.KU)();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=aJ[e];if(t)return t}if("number"==typeof t){let e=aV[t];if(e)return e}return"info"}(n,a);if(!t.has(p))return;let{normalizeDepth:f=3,normalizeMaxBreadth:d=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=(0,Y.S8)(t,f,d);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),n&&(h["consola.type"]=n),null!=a&&"number"==typeof a&&(h["consola.level"]=a);let m=function(e,t,r){let{message:n,attributes:a,messageTemplate:o,messageParameters:i}=e,s={};if(o&&i)for(let[e,n]of Object.entries(aF(o,i)))s[e]=e.startsWith("sentry.message.parameter.")?(0,Y.S8)(n,t,r):n;else i&&i.length>
4830&&i.forEach((e,n)=>{s[`sentry.message.parameter.${n}`]=(0,Y.S8)(e,t,r)});return{message:n,attributes:{...(0,Y.S8)(a,t,r),...s}}}(function(e,t,r){if(!e?.length)return{message:""};let n=aU(e,t,r),a=e[0];if((0,et.Qd)(a)){let t="string"==typeof e[1]?2:1;return{message:n,attributes:a,messageParameters:e.slice(t)}}{let t=e.slice(1),r=t.length>0&&"string"==typeof a&&!az(a);return{message:n,messageTemplate:r?a:void 0,messageParameters:r?t:void 0}}}(i,f,d),f,d);m?.attributes&&Object.assign(h,m.attributes),eh({level:p,message:m?.message||o||i&&aU(i,f,d)||"",attributes:h})}}}let aJ={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"},aV={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};var aG=r(26425);let aX="gen_ai.system",aK="gen_ai.request.model",aQ="gen_ai.request.stream",aZ="gen_ai.request.temperature",a0="gen_ai.request.max_tokens",a1="gen_ai.request.frequency_penalty",a2="gen_ai.request.presence_penalty",a4="gen_ai.request.top_p",a5="gen_ai.request.top_k",a3="gen_ai.request.encoding_format",a6="gen_ai.request.dimensions",a9="gen_ai.response.finish_reasons",a7="gen_ai.response.model",a8="gen_ai.response.id",oe="gen_ai.usage.input_tokens",ot="gen_ai.usage.output_tokens",or="gen_ai.usage.total_tokens",on="gen_ai.operation.name",oa="sentry.sdk_meta.gen_ai.input.messages.original_length",oo="gen_ai.input.messages",oi="gen_ai.system_instructions",os="gen_ai.response.text",ol="gen_ai.request.available_tools",ou="gen_ai.response.tool_calls",oc="gen_ai.agent.name",op="gen_ai.conversation.id",of="gen_ai.embeddings.input",od="gen_ai.embeddings",oh="gen_ai.execute_tool",om="gen_ai.tool.name",og="gen_ai.tool.input",o_="gen_ai.tool.output";function oy(e){var t,r,n,a,o,i,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&oy(t.source)||ob(e)||"image_url"in(r=e)&&("string"==typeof r.image_url?r.image_url.startsWith("data:"):ov(r))||oE(e)||ow(e)||"media_type"in(n=e)&&"string"==typeof n.media_type&&"data"in n||"type"in(a=e)&&"file"===a.type&&"mediaType"in a&&"string"==typeof a.mediaType&&"data"in a&&"string"==typeof a.data&&!a.data.startsWith("http://")&&!a.data.startsWith("https://")||"type"in(o=e)&&"image"===o.type&&"image"in o&&"string"==typeof o.image&&!o.image.startsWith("http://")&&!o.image.startsWith("https://")||"type"in(i=e)&&("blob"===i.type||"base64"===i.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 ov(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.image_url.url.startsWith("data:")}function ob(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function oE(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 ow(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 oS="[Blob substitute]",oR=["image_url","data","content","b64_json","result","uri","image"];function oT(e){let t={...e};for(let r of(oy(t.source)&&(t.source=oT(t.source)),ob(e)&&(t.inlineData={...e.inlineData,data:oS}),ov(e)&&(t.image_url={...e.image_url,url:oS}),oE(e)&&(t.input_audio={...e.input_audio,data:oS}),ow(e)&&(t.file={...e.file,file_data:oS}),oR))"string"==typeof t[r]&&(t[r]=oS);return t}let oP=e=>new TextEncoder().encode(e).length,ok=e=>oP(JSON.stringify(e));function ox(e,t){if(oP(e)<=t)return e;let r=0,n=e.length,a="";for(;r<=n;){let o=Math.floor((r+n)/2),i=e.slice(0,o);oP(i)<=t?(a=i,r=o+1):n=o-1}return a}function oC(e,t){return"string"==typeof e?t:{...e,text:t}}function oO(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function oA(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function oI(e){let t=(0,j.KU)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function oN(e){if(void 0!==e)return e;let t=(0,j.KU)();return!t||!(0,eR.K)(t)&&!1===t.getOptions().streamGenAiSpans}function oj(e,t){return e?`${e}.${t}`:t}function oM(e,t,r){if(!e.isRecording())return;let n={"gen_ai.response.streaming":!0};t.responseId&&(n[a8]=t.responseId),t.responseModel&&(n[a7]=t.responseModel),void 0!==t.promptTokens&&(n[oe]=t.promptTokens),void 0!==t.completionTokens&&(n[ot]=t.completionTokens),void 0!==t.totalTokens?n[or]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(n[or]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(n[a9]=JSON.stringify(t.finishReasons)),r&&t.responseTexts.length&&(n[os]=t.responseTexts.join("")),r&&t.toolCalls.length&&(n[ou]=JSON.stringify(t.toolCalls)),e.setAttributes(n),e.end()}function oL(e){return"string"==typeof e?e:JSON.stringify(e)}function o$(e){return"string"==typeof e?ox(e,2e4):Array.isArray(e)?JSON.stringify(function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let r;return t&&"object"==typeof t&&(oO(t)?r={...t,content:e(t.content)}:"content"in t&&oy(t.content)&&(r={...t,content:oT(t.content)}),oA(t)&&(r={...r??t,parts:e(t.parts)}),oy(r)?r=oT(r):oy(t)&&(r=oT(t))),r??t})}([e[e.length-1]]),r=t[0];return 19998>=ok(r)?t:function(e){if(!e)return[];if("string"==typeof e){let t=ox(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-ok({...e,content:""});if(t<=0)return[];let r=ox(e.content,t);return[{...e,content:r}]}return oO(e)||oA(e)?function(e,t){let{key:r,items:n}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}
483:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===r||0===n.length)return[];let a=n.map(e=>oC(e,"")),o=t-ok({...e,[r]:a});if(o<=0)return[];let i=[];for(let e of n){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",r=oP(t);if(r<=o)i.push(e),o-=r;else if(0===i.length){let r=ox(t,o);r&&i.push(oC(e,r));break}else break}return i.length<=0?[]:[{...e,[r]:i}]}(e,19998):[]}(r)}(e)):JSON.stringify(e)}function oD(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 r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function oU(e,t,r){let n=e.catch(e=>{throw(0,S.Cp)(e,{mechanism:{handled:!1,type:r}}),e}),a=await t,o=await n;return o&&"object"==typeof o&&"data"in o?{...o,data:a}:a}function oz(e,t,r){return(0,et.Qg)(e)?new Proxy(e,{get(e,n){let a=n in Promise.prototype||n===Symbol.toStringTag?t:e,o=Reflect.get(a,n);return"withResponse"===n&&"function"==typeof o?function(){return oU(o.call(e),t,r)}:"function"==typeof o?o.bind(a):o}}):t}let oF="auto.ai.langchain",oB={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},oW=(e,t,r)=>{null!=r&&(e[t]=r)},oH=(e,t,r)=>{let n=Number(r);Number.isNaN(n)||(e[t]=n)};function oq(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function oY(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&oy(e)?oT(e):e);return JSON.stringify(t)}catch{return String(e)}return oq(e)}function oJ(e){let t=e.toLowerCase();return oB[t]??t}function oV(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 oG(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function oX(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:oJ(t.call(e)),content:oY(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:oJ("string"==typeof r?oV(r):"user"),content:oY(e.kwargs?.content)}}if(e.type)return{role:oJ(String(e.type).toLowerCase()),content:oY(e.content)};if(e.role)return{role:oJ(String(e.role)),content:oY(e.content)};let r=e.constructor?.name;return r&&"Object"!==r?{role:oJ(oV(r)),content:oY(e.content)}:{role:"user",content:oY(e.content)}})}function oK(e,t,r,n,a){let o,i;return{[aX]:oq(e??"langchain"),[on]:"chat",[aK]:oq(t),[D.JD]:oF,...(o={},i="kwargs"in r?r.kwargs:void 0,oH(o,aZ,n?.temperature??a?.ls_temperature??i?.temperature),oH(o,a0,n?.max_tokens??a?.ls_max_tokens??i?.max_tokens),oH(o,a4,n?.top_p??i?.top_p),oH(o,a1,n?.frequency_penalty),oH(o,a2,n?.presence_penalty),n&&"stream"in n&&oW(o,aQ,!!n.stream),o)}}function oQ(e){let t={},r=e?.lc_agent_name;return"string"==typeof r&&(t[oc]=r),t}function oZ(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function o0(e={}){let{recordInputs:t,recordOutputs:r}=oI(e),n=oN(e.enableTruncation),a=new Map,o=e=>{let t=a.get(e);t?.isRecording()&&(t.end(),a.delete(e))},i={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,r,o,i,s,l,u,c){let p=function(e,t,r,n,a,o){let i=oK(o?.ls_provider,a?.model??o?.ls_model_name??"unknown",e,a,o);if(r&&Array.isArray(t)&&t.length>0){oW(i,oa,t.length);let e=t.map(e=>({role:"user",content:e}));oW(i,oo,n?o$(e):oL(e))}return i}(e,r,t,n,oG(l),u),f=p[aK],d=p[on];(0,aH.nV)({name:`${d} ${f}`,op:"gen_ai.chat",attributes:{...oQ(u),...p,[D.uT]:"gen_ai.chat"}}
483,e=>(a.set(o,e),e))},handleChatModelStart(e,r,o,i,s,l,u,c){let p=function(e,t,r,n,a,o){let i=oK(o?.ls_provider??e.id?.[2],a?.model??o?.ls_model_name??"unknown",e,a,o);if(r&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:r}=oD(oX(t.flat()));e&&oW(i,oi,e),oW(i,oa,Array.isArray(r)?r.length:0),oW(i,oo,n?o$(r):oL(r))}return i}(e,r,t,n,oG(l),u),f=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);f&&(p[ol]=f);let d=p[aK],h=p[on];(0,aH.nV)({name:`${h} ${d}`,op:"gen_ai.chat",attributes:{...oQ(u),...p,[D.uT]:"gen_ai.chat"}},e=>(a.set(o,e),e))},handleLLMEnd(e,t,n,i,s){let l=a.get(t);if(l?.isRecording()){let n=function(e,t){if(!e)return;let r={};if(Array.isArray(e.generations)){let n=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(n.length>0&&oW(r,a9,oq(n)),!function(e,t){let r=[];for(let t of e.flat()){let e=t.message,n=e?.tool_calls;if(Array.isArray(n)&&n.length>0)r.push(...n);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&r.push(t)}}r.length>0&&oW(t,ou,oq(r))}(e.generations,r),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&oW(r,os,oq(t))}}!function(e,t){if(!e)return;let r=e.tokenUsage,n=e.usage;if(r)oH(t,oe,r.promptTokens),oH(t,ot,r.completionTokens),oH(t,or,r.totalTokens);else if(n){oH(t,oe,n.input_tokens),oH(t,ot,n.output_tokens);let e=Number(n.input_tokens),r=Number(n.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);a>0&&oH(t,or,a),void 0!==n.cache_creation_input_tokens&&oH(t,"gen_ai.usage.cache_creation_input_tokens",n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&oH(t,"gen_ai.usage.cache_read_input_tokens",n.cache_read_input_tokens)}}(e.llmOutput,r);let n=e.llmOutput,a=e.generations?.[0]?.[0],o=a?.message,i=n?.model_name??n?.model??o?.response_metadata?.model_name;i&&oW(r,a7,i);let s=n?.id??o?.id;s&&oW(r,a8,s);let l=n?.stop_reason??o?.response_metadata?.finish_reason;return l&&oW(r,"gen_ai.response.stop_reason",oq(l)),r}(e,r);n&&l.setAttributes(n),o(t)}},handleLLMError(e,t){let r=a.get(t);r?.isRecording()&&(r.setStatus({code:aG.TJ,message:"internal_error"}),o(t)),(0,S.Cp)(e,{mechanism:{handled:!1,type:`${oF}.llm_error_handler`}})},handleChainStart(e,r,n,o,i,s,l,u){if(s?.__sentry_langgraph__)return;let c=u||e.name||"unknown_chain",p={[D.JD]:"auto.ai.langchain","langchain.chain.name":c};t&&(p["langchain.chain.inputs"]=JSON.stringify(r)),(0,aH.nV)({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...p,[D.uT]:"gen_ai.invoke_agent"}},e=>(a.set(n,e),e))},handleChainEnd(e,t){let n=a.get(t);n?.isRecording()&&(r&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),o(t))},handleChainError(e,t){let r=a.get(t);r?.isRecording()&&(r.setStatus({code:aG.TJ,message:"internal_error"}),o(t)),(0,S.Cp)(e,{mechanism:{handled:!1,type:`${oF}.chain_error_handler`}})},handleToolStart(e,r,n,o,i,s,l){if(s?.__sentry_langgraph__)return;let u=l||e.name||"unknown_tool",c={...oQ(s),[D.JD]:oF,[on]:"execute_tool",[om]:u};t&&(c[og]=r),(0,aH.nV)({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...c,[D.uT]:"gen_ai.execute_tool"}},e=>(a.set(n,e),e))},handleToolEnd(e,t){let n=a.get(t);if(n?.isRecording()){if(r){let t=e&&"object"==typeof e&&"content"in e?e.content:e;n.setAttributes({[o_]:"string"==typeof t?t:JSON.stringify(t)})}o(t)}},handleToolError(e,t){let r=a.get(t);r?.isRecording()&&(r.setStatus({code:aG.TJ,message:"internal_error"}),o(t)),(0,S.Cp)(e,{mechanism:{handled:!1,type:`${oF}.tool_error_handler`}})},copy:()=>i,toJSON:()=>({lc:1,type:"not_implemented",id:i.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:i.lc_id})};return i}var o1=r(51791);let o2=(0,T._C)((e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,a){let{maxValueLength:o}=a.getOptions();return function(e,t={},r,n,a){if(!t.originalException||!(0,et.bJ)(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=function e(t,r,n){try{let a=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let e of Object.keys(t)){if(-1!==a.indexOf(e))continue;let r=t[e];o[e]=(0,et.bJ)(r)||"string"==typeof r?n?(0,x.xv)(`${r}`,n):`${r}`:r}if(r&&void 0!==t.cause&&((0,et.bJ)(t.cause)?o.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,n)}:o.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let r=e[t];o[t]=(0,et.bJ)(r)?r.toString():r}}return o}catch(e){R.T&&b.Yz.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n,a);if(i){let t={...e.contexts},n=(0,Y.S8)(i,r);return(0,et.Qd)(n)&&((0,o1.Gc)(n),t[o]=n),{...e,contexts:t}}return e}(e,n,t,r,o)}}}),o4="flag.evaluation.";function o5(e){if(e.type)return e;let t=(0,j.o5)().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function o3(e,t,r=100){let n=(0,j.o5)().getScopeData().contexts;n.flags||(n.flags={values:[]}),function(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>
483n){R.T&&b.Yz.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}(n.flags.values,e,t,r)}function o6(e,t,r=10){if("boolean"!=typeof t)return;let n=(0,U.Bk)();if(!n)return;let a=(0,U.et)(n).data;`${o4}${e}`in a?n.setAttribute(`${o4}${e}`,t):Object.keys(a).filter(e=>e.startsWith(o4)).length<r&&n.setAttribute(`${o4}${e}`,t)}let o9=(0,T._C)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>o5(e),addFeatureFlag(e,t){o3(e,t),o6(e,t)}}));var o7=r(70547);let o8={"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"}},ie={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 it(e){return e&&ie[e]||"internal_error"}function ir(e,t,r,n){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(n.setStatus({code:aG.TJ,message:it(e.error?.type)}),(0,S.Cp)(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 r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.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 r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let r;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let n=t.activeToolBlocks[e.index];if(!n)return;let a=n.inputJsonParts.join("");try{r=a?JSON.parse(a):{}}catch{r={__unparsed:a}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:r}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*ia(e,t,r){let n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let a of e)ir(a,n,r,t),yield a}finally{oM(t,n,r)}}function io(e,t,r){!function(e,t,r){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:n,filteredMessages:a}=oD(t);n&&e.setAttributes({[oi]:n});let o=Array.isArray(a)?a.length:1;e.setAttributes({[oo]:r?o$(a):oL(a),[oa]:o})}(e,function(e){let{system:t,messages:r,input:n}=e,a="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(n)?n:null!=n?[n]:void 0,i=Array.isArray(r)?r:null!=r?[r]:[];return[...a,...o??i]}(t),r),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function ii(e,t,r){throw(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:aG.TJ,message:"internal_error"}),t.end()),e}function is(e,t){return function e(t,r="",n){return new Proxy(t,{get(t,a){let o=t[a],i=oj(r,String(a)),s=o8[i];if("function"==typeof o&&s)return new Proxy(o,{apply(e,r,a){let l,u=s.operation||"unknown",c=function(e,t,r){let n={[aX]:"anthropic",[on]:r,[D.JD]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[ol]=JSON.stringify(t.tools)),n[aK]=t.model??"unknown","temperature"in t&&(n[aZ]=t.temperature),"top_p"in t&&(n[a4]=t.top_p),"stream"in t&&(n[aQ]=t.stream),"top_k"in t&&(n[a5]=t.top_k),"frequency_penalty"in t&&(n[a1]=t.frequency_penalty),"max_tokens"in t&&(n[a0]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?n[aK]=e[0]:n[aK]="unknown";return n}(a,i,u),p=c[aK]??"unknown",f="object"==typeof a[0]?a[0]:void 0,d=!!f?.stream,h=!0===s.streaming;if(d||h){let r=c[aK]??"unknown",s={name:`${u} ${r}`,op:`gen_ai.${u}`,attributes:c};if(!d||h)return(0,aH.nV)(s,r=>{try{var o,s;let i;return n.recordInputs&&f&&io(r,f,oN(n.enableTruncation)),o=e.apply(t,a),s=n.recordOutputs??!1,i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},o.on("streamEvent",e=>{ir(e,i,s,r)}),o.on("message",()=>{oM(r,i,s)}),o.on("error",e=>{(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),r.isRecording()&&(r.setStatus({code:aG.TJ,message:"internal_error"}),r.end())}),o}catch(e){return ii(e,r,i)}});{let e,r=(0,aH.nV)(s,r=>(e=o.apply(t,a),n.recordInputs&&f&&io(r,f,oN(n.enableTruncation)),(async()=>{try{let t=await e;return ia(t,r,n.recordOutputs??!1)}catch(e){return ii(e,r,i)}})()));return oz(e,r,"auto.ai.anthropic")}}let m=(0,aH.Lk)({name:`${u} ${p}`,op:`gen_ai.${u}`,attributes:c},r=>(l=e.apply(t,a),n.recordInputs&&f&&io(r,f,oN(n.enableTruncation)),l.then(e=>(!function(e,t,r){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:aG.TJ,message:it(t.error.type)}),(0,S.Cp)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[os]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&r.push(e);r.length>0&&e.setAttributes({[ou]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[os]:t.completion}),"input_tokens"in t&&e.setAttributes({[os]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var r,n,a,o;e.setAttributes({[a8]:t.id,[a7]:t.model}),"usage"in t&&t.usage&&(r=t.usage.input_tokens,n=t.usage.output_tokens,a=t.usage.cache_creation_input_tokens,o=t.usage.cache_read_input_tokens,void 0!==r&&e.setAttributes({[oe]:r}),void 0!==n&&e.setAttributes({[ot]:n}),(void 0!==r||void 0!==n||void 0!==a||void 0!==o)&&e.setAttributes({[or]:(r??0)+(n??0)+(a??0)+(o??0)}))}}(e,t)}}(r,e,n.recordOutputs),e),e=>{throw(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:i}}}),e}
483)));return oz(l,m,"auto.ai.anthropic")}});return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,i,n):o}})}(e,"",oI(t))}let il="auto.ai.langgraph",iu=!1,ic="__sentry_patched__";function ip(e,t,r,n,a,o){return new Proxy(e,{apply(e,i,s){let l=a?.modelName??a?.model;return(0,aH.Lk)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[D.JD]:il,[D.uT]:"gen_ai.invoke_agent",[on]:"invoke_agent"}},async a=>{try{let u=r?.name;u&&"string"==typeof u&&(a.setAttribute("gen_ai.pipeline.name",u),a.setAttribute(oc,u),a.updateName(`invoke_agent ${u}`)),l&&a.setAttribute(aK,l);let c=s.length>1?s[1]:void 0,p=c?.configurable,f=p?.thread_id;if(f&&"string"==typeof f&&a.setAttribute(op,f),o){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(oZ))return e;let r=e.copy();return r.addHandler(t,!0),r}let r=Array.isArray(e)?e:[e];return r.some(oZ)?e:[...r,t]}(e.callbacks,o)}let d=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);d&&a.setAttribute(ol,JSON.stringify(d));let h=n.recordInputs,m=n.recordOutputs,g=s.length>0?s[0]?.messages??[]:[];if(g&&h){let e=oX(g),{systemInstructions:t,filteredMessages:r}=oD(e);t&&a.setAttribute(oi,t);let o=oN(n.enableTruncation),i=Array.isArray(r)?r.length:0;a.setAttributes({[oo]:o?o$(r):oL(r),[oa]:i})}let _=await Reflect.apply(e,i,s);return m&&function(e,t,r){let n=r?.messages;if(!n||!Array.isArray(n))return;let a=t?.length??0,o=n.length>a?n.slice(a):[];if(0===o.length)return;let i=function(e){if(!e||0===e.length)return null;let t=[];for(let r of e)if(r&&"object"==typeof r){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(o);i&&e.setAttribute(ou,JSON.stringify(i));let s=oX(o);e.setAttribute(os,JSON.stringify(s));let l=0,u=0,c=0;for(let t of o){let r=function(e){let t=0,r=0,n=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let a=e.usage_metadata;return"number"==typeof a.input_tokens&&(t=a.input_tokens),"number"==typeof a.output_tokens&&(r=a.output_tokens),"number"==typeof a.total_tokens&&(n=a.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}if(e.response_metadata&&"object"==typeof e.response_metadata){let a=e.response_metadata;if(a.tokenUsage&&"object"==typeof a.tokenUsage){let e=a.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(r=e.completionTokens),"number"==typeof e.totalTokens&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}(t);l+=r.inputTokens,u+=r.outputTokens,c+=r.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let r=t.response_metadata;r.model_name&&"string"==typeof r.model_name&&e.setAttribute(a7,r.model_name),r.finish_reason&&"string"==typeof r.finish_reason&&e.setAttribute(a9,[r.finish_reason])}}(e,t)}l>0&&e.setAttribute(oe,l),u>0&&e.setAttribute(ot,u),c>0&&e.setAttribute(or,c)}(a,g??null,_),_}catch(e){throw a.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function id(e,t){if(Object.prototype.hasOwnProperty.call(e,ic))return e;let r=oI(t),n=o0(r),a=new Proxy(e,{apply(e,t,a){let o,i,s=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let r=t.llm;return"string"!=typeof r.modelName&&"string"!=typeof r.model?null:r}(a),l="object"==typeof(i=a[0])&&i&&"name"in i&&"string"==typeof i.name?i.name:null,u=a[0];u&&Array.isArray(u.tools)&&u.tools.length>0&&function(e,t,r){let n="__sentry_tool_wrapped__";for(let a of e){if(!a||"object"!=typeof a)continue;let e=a.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(a,n))continue;let o="string"==typeof a.name?a.name:"unknown_tool",i="string"==typeof a.description?a.description:void 0;a.invoke=new Proxy(e,{apply(e,n,a){let s={[D.JD]:il,[D.uT]:oh,[on]:"execute_tool",[om]:o,"gen_ai.tool.type":"function"},l=a[1],u=l?.metadata?.lc_agent_name??r;"string"==typeof u&&(s[oc]=u),i&&(s["gen_ai.tool.description"]=i);let c=a[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;
483try{s[og]=JSON.stringify(e)}catch{}}return(0,aH.Lk)({op:oh,name:`execute_tool ${o}`,attributes:s},async r=>{try{let o=await Reflect.apply(e,n,a);if(t.recordOutputs)try{let e=o&&"object"==typeof o&&"content"in o?o.content:o;r.setAttribute(o_,"string"==typeof e?e:JSON.stringify(e))}catch{}return o}catch(e){throw r.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}}),Object.defineProperty(a,n,{value:!0,enumerable:!1})}}(u.tools,r,l??void 0),iu=!0;try{o=Reflect.apply(e,t,a)}finally{iu=!1}let c=o.invoke;if(c&&"function"==typeof c){let e={};l&&(e.name=l),o.invoke=ip(c.bind(o),o,e,r,s,n)}return o}});return Object.defineProperty(a,ic,{value:!0,enumerable:!1}),a}function ih(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,ic))return e;let r=o0(t),n=new Proxy(e,{apply:(e,n,a)=>iu?Reflect.apply(e,n,a):(0,aH.Lk)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[D.JD]:il,[D.uT]:"gen_ai.create_agent",[on]:"create_agent"}},o=>{try{let i=Reflect.apply(e,n,a),s=a.length>0?a[0]:{};s?.name&&"string"==typeof s.name&&(o.setAttribute(oc,s.name),o.updateName(`create_agent ${s.name}`));let l=i.invoke;return l&&"function"==typeof l&&(i.invoke=ip(l.bind(i),i,s,t,void 0,r)),i}catch(e){throw o.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(n,ic,{value:!0,enumerable:!1}),n}(e.compile,oI(t)),e}var im=r(32012);let ig={"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*i_(e,t,r){let n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,r,n){if(!(!e||function(e,t){let r=e?.promptFeedback;if(r?.blockReason){let e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,n))){let n;for(let a of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(n=e.usageMetadata)&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(a?.finishReason&&!t.finishReasons.includes(a.finishReason)&&t.finishReasons.push(a.finishReason),a?.content?.parts??[]))r&&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})}}(a,n,r,t),yield a}finally{oM(t,n,r)}}function iy(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>iy(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 iv(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 ib(e,t,r,n){if("embeddings"===r){let r=t.contents;null!=r&&e.setAttribute(of,"string"==typeof r?r:JSON.stringify(r));return}let a=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&a.push(...iy(t.config.systemInstruction,"system")),"history"in t&&a.push(...iy(t.history,"user")),"contents"in t&&a.push(...iy(t.contents,"user")),"message"in t&&a.push(...iy(t.message,"user")),Array.isArray(a)&&a.length){let{systemInstructions:t,filteredMessages:r}=oD(a);t&&e.setAttribute(oi,t);let o=Array.isArray(r)?r.length:0;e.setAttributes({[oa]:o,[oo]:n?o$(r):oL(r)})}}function iE(e,t){return function e(t,r="",n){return new Proxy(t,{get:(t,a,o)=>{let i=Reflect.get(t,a,o),s=oj(r,String(a)),l=ig[s];if("function"==typeof i&&l){let r,a=l.operation?(r="embeddings"===l.operation,new Proxy(i,{apply(e,a,o){let i=l.operation||"unknown",u=o[0],c=function(e,t,r){let n={[aX]:"google_genai",[on]:e,[D.JD]:"auto.ai.google_genai"};if(t){if(n[aK]=iv(t,r),"config"in t&&"object"==typeof t.config&&t.config){let e,r=t.config;if(Object.assign(n,(e={},"temperature"in r&&"number"==typeof r.temperature&&(e[aZ]=r.temperature),"topP"in r&&"number"==typeof r.topP&&(e[a4]=r.topP),"topK"in r&&"number"==typeof r.topK&&(e[a5]=r.topK),"maxOutputTokens"in r&&"number"==typeof r.maxOutputTokens&&(e[a0]=r.maxOutputTokens),"frequencyPenalty"in r&&"number"==typeof r.frequencyPenalty&&(e[a1]=r.frequencyPenalty),"presencePenalty"in r&&"number"==typeof r.presencePenalty&&(e[a2]=r.presencePenalty
483),e)),"tools"in r&&Array.isArray(r.tools)){let e=r.tools.flatMap(e=>e.functionDeclarations);n[ol]=JSON.stringify(e)}}}else n[aK]=iv({},r);return n}(i,u,t),p=c[aK]??"unknown";return l.streaming?(0,aH.nV)({name:`${i} ${p}`,op:`gen_ai.${i}`,attributes:c},async r=>{try{n.recordInputs&&u&&ib(r,u,i,oN(n.enableTruncation));let a=await e.apply(t,o);return i_(a,r,!!n.recordOutputs)}catch(e){throw r.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:s}}}),r.end(),e}}):(0,aH.Lk)({name:`${i} ${p}`,op:`gen_ai.${i}`,attributes:c},a=>(n.recordInputs&&u&&ib(a,u,i,oN(n.enableTruncation)),(0,im.x)(()=>e.apply(t,o),e=>{(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:s}}})},()=>{},e=>{r||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(a7,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[oe]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[ot]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[or]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=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);r.length>0&&e.setAttributes({[os]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[ou]:JSON.stringify(r)})}}}(a,e,n.recordOutputs)})))}})):i.bind(t);return l.proxyResultPath?function(...t){let r=a(...t);return r&&"object"==typeof r?e(r,l.proxyResultPath,n):r}:a}return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,n):i}})}(e,"",oI(t))}function iw(e,t={}){let{recordInputs:r}=oI(t);return new Proxy(e,{apply(e,t,n){let a,o,i,s=(a=t??{},(o={[D.JD]:oF,[D.uT]:od,[on]:"embeddings",[aK]:a.model??"unknown"})[aX]=(i=a.constructor?.name??"").includes("OpenAI")?"openai":i.includes("Google")?"google_genai":i.includes("Mistral")?"mistralai":i.includes("Vertex")?"google_vertexai":i.includes("Bedrock")?"aws_bedrock":i.includes("Ollama")?"ollama":i.includes("Cloudflare")?"cloudflare":i.includes("Cohere")?"cohere":"langchain","dimensions"in a&&(o[a6]=a.dimensions),"encodingFormat"in a&&(o[a3]=a.encodingFormat),o),l=s[aK]||"unknown";if(r){let e=n[0];null!=e&&(s[of]="string"==typeof e?e:JSON.stringify(e))}return(0,aH.Lk)({name:`embeddings ${l}`,op:od,attributes:s},()=>Reflect.apply(e,t,n).then(void 0,e=>{throw(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}function iS(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=iw(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=iw(e.embedDocuments,t)),e}let iR={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},iT=["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*iP(e,t,r){let n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let a of e){if(null!==a&&"object"==typeof a&&"object"in a&&"chat.completion.chunk"===a.object){for(let e of(n.responseId=a.id??n.responseId,n.responseModel=a.model??n.responseModel,a.usage&&(n.promptTokens=a.usage.prompt_tokens,n.completionTokens=a.usage.completion_tokens,n.totalTokens=a.usage.total_tokens),a.choices??[]))r&&(e.delta?.content&&n.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let r of e){let e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}(e.delta.tool_calls,n)),e.finish_reason&&n.finishReasons.push(e.finish_reason)}else null!==a&&"object"==typeof a&&"type"in a&&"string"==typeof a.type&&a.type.startsWith("response.")&&function(e,t,r,n){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
483if(e instanceof Error){n.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!iT.includes(e.type))return t.eventTypes.push(e.type);if(r&&("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:n}=e;t.responseId=n.id??t.responseId,t.responseModel=n.model??t.responseModel,n.usage&&(t.promptTokens=n.usage.input_tokens,t.completionTokens=n.usage.output_tokens,t.totalTokens=n.usage.total_tokens),n.status&&t.finishReasons.push(n.status),r&&n.output_text&&t.responseTexts.push(n.output_text)}}}(a,n,r,t);yield a}}finally{let e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];oM(t,{...n,toolCalls:e},r)}}function ik(e,t,r,n){if("embeddings"===r&&"input"in t){let r=t.input;if(null==r||"string"==typeof r&&0===r.length||Array.isArray(r)&&0===r.length)return;e.setAttribute(of,"string"==typeof r?r:JSON.stringify(r));return}let a="input"in t?t.input:"messages"in t?t.messages:void 0;if(!a||Array.isArray(a)&&0===a.length)return;let{systemInstructions:o,filteredMessages:i}=oD(a);o&&e.setAttribute(oi,o),e.setAttribute(oo,n?o$(i):oL(i)),Array.isArray(i)?e.setAttribute(oa,i.length):e.setAttribute(oa,1)}function ix(e,t){return function e(t,r="",n){return new Proxy(t,{get(t,a){let o=t[a],i=oj(r,String(a)),s=iR[i];if("function"==typeof o&&s)return function(...e){let r,a=s.operation||"unknown",l=function(e,t){let r={[aX]:"openai",[on]:t,[D.JD]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,n,a=e[0],o=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){R.T&&b.Yz.error("Failed to serialize OpenAI tools:",e);return}}(a);o&&(r[ol]=o),Object.assign(r,(t={[aK]:a.model??"unknown"},"temperature"in a&&(t[aZ]=a.temperature),"top_p"in a&&(t[a4]=a.top_p),"frequency_penalty"in a&&(t[a1]=a.frequency_penalty),"presence_penalty"in a&&(t[a2]=a.presence_penalty),"stream"in a&&(t[aQ]=a.stream),"encoding_format"in a&&(t[a3]=a.encoding_format),"dimensions"in a&&(t[a6]=a.dimensions),(n="conversation"in a&&"string"==typeof a.conversation?a.conversation:"previous_response_id"in a&&"string"==typeof a.previous_response_id?a.previous_response_id:void 0)&&(t[op]=n),t))}else r[aK]="unknown";return r}(e,a),u=l[aK]||"unknown",c=e[0],p=c&&"object"==typeof c&&!0===c.stream,f={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:l};if(p){let r,s=(0,aH.nV)(f,s=>(r=o.apply(t,e),n.recordInputs&&c&&ik(s,c,a,oN(n.enableTruncation)),(async()=>{try{let e=await r;return iP(e,s,n.recordOutputs??!1)}catch(e){throw s.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:i}}}),s.end(),e}})()));return oz(r,s,"auto.ai.openai")}let d=(0,aH.Lk)(f,s=>(r=o.apply(t,e),n.recordInputs&&c&&ik(s,c,a,oN(n.enableTruncation)),r.then(e=>(!function(e,t,r){if(!t||"object"!=typeof t)return;let n={};if("string"==typeof t.id&&(n[a8]=t.id),"string"==typeof t.model&&(n[a7]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(n[op]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,r=e.prompt_tokens??e.input_tokens;"number"==typeof r&&(n[oe]=r);let a=e.completion_tokens??e.output_tokens;"number"==typeof a&&(n[ot]=a),"number"==typeof e.total_tokens&&(n[or]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,a=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(a.length>0&&(n[a9]=JSON.stringify(a)),r){let t=e.map(e=>{let t=e.message;return t?.content||""});n[os]=JSON.stringify(t);let r=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&(n[ou]=JSON.stringify(r))}}if("string"!=typeof t.status||n[a9]||(n[a9]=JSON.stringify([t.status])),r&&("string"!=typeof t.output_text||n[os]||(n[os]=t.output_text),Array.isArray(t.output)&&t.output.length>
4830&&!n[ou])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(n[ou]=JSON.stringify(e))}e.setAttributes(n)}(s,e,n.recordOutputs),e),e=>{throw(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:i}}}),e})));return oz(r,d,"auto.ai.openai")};return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,i,n):o}})}(e,"",oI(t))}let iC=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],iO=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],iA={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"},iI=["select","insert","upsert","update","delete"];function iN(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function ij(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function iM(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function iL(e,t=!1){return new Proxy(e,{apply:(r,n,a)=>(0,aH.Lk)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[D.JD]:"auto.db.supabase",[D.uT]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,a).then(t=>((0,et.Z4)(t)&&"error"in t&&t.error?(e.setStatus({code:aG.TJ}),(0,S.Cp)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:aG.F3}),e.end(),t)).catch(t=>{throw e.setStatus({code:aG.TJ}),e.end(),(0,S.Cp)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a))})}let i$=(e,t={})=>{var r;if(!e){R.T&&b.Yz.warn("Supabase integration was not installed because no Supabase client was provided.");return}r=e.constructor===Function?e:e.constructor,ij(r.prototype.from)||(r.prototype.from=new Proxy(r.prototype.from,{apply(e,r,n){let a=Reflect.apply(e,r,n);return function(e,t){for(let r of iI)ij(e.prototype[r])||(e.prototype[r]=new Proxy(e.prototype[r],{apply(e,n,a){let o=Reflect.apply(e,n,a),i=o.constructor;return R.T&&b.Yz.log(`Instrumenting ${r} operation's PostgRESTFilterBuilder`),!function(e,t){ij(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,r,n){let a=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>"}}(r.method,r.headers);if(!iI.includes(a)||!r?.url?.pathname||"string"!=typeof r.url.pathname)return Reflect.apply(e,r,n);let o=r.url.pathname.split("/"),i=o.length>0?o[o.length-1]:"",s=[];for(let[e,t]of r.url.searchParams.entries())s.push(function(e,t){let r;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[n,...a]=t.split(".");return r=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&iA[n]||"filter",`${r}(${e}, ${a.join(".")})`}(e,t));let l=Object.create(null);if((0,et.Qd)(r.body))for(let[e,t]of Object.entries(r.body))l[e]=t;let u=(0,j.KU)(),c=t.sendOperationData??u?.getDataCollectionOptions().userInfo===!0,p=iM(r.body,l),f="select"===a?"":`${a}${void 0!==iM(r.body,l)?"(...) ":""}`,d=c?s.join(" "):s.length>0?"[redacted]":"",h=[f.trimEnd(),d].filter(Boolean).join(" "),m=h?`${h} from(${i})`:`from(${i})`,g={"db.table":i,"db.schema":r.schema,"db.url":r.url.origin,"db.sdk":r.headers["X-Client-Info"],"db.system":"postgresql","db.operation":a,[D.JD]:"auto.db.supabase",[D.uT]:"db"};return s.length&&c&&(g["db.query"]=s),void 0!==p&&c&&(g["db.body"]=p),(0,aH.Lk)({name:m,attributes:g},t=>Reflect.apply(e,r,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,aG.N8)(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 r={};
483s.length&&c&&(r.query=s),void 0!==p&&c&&(r.body=p),(0,S.Cp)(t,e=>(e.addEventProcessor(e=>((0,k.M6)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}let r={type:"supabase",category:`db.${a}`,message:m},n={};return s.length&&c&&(n.query=s),void 0!==p&&c&&(n.body=p),Object.keys(n).length&&(r.data=n),(0,td.Z)(r),e},e=>{throw t&&((0,aG.N8)(t,500),t.end()),e}).then(...n))}}),iN(e.prototype.then))}(i,t),o}}),iN(e.prototype[r]))}(a.constructor,t),a}}),iN(r.prototype.from));let n=e.auth;if(!(!n||ij(e.auth))){for(let t of iC){let r=n[t];r&&"function"==typeof e.auth[t]&&(e.auth[t]=iL(r))}for(let t of iO){let r=n.admin[t];r&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=iL(r,!0))}iN(e.auth)}},iD=(0,T._C)(e=>{let t,r;return t=e.supabaseClient,r={sendOperationData:e.sendOperationData},{setupOnce(){i$(t,r)},name:"Supabase"}});function iU(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}let iz=iU;function iF(e,t,r,n,a){eh({level:e,message:t,attributes:r,severityNumber:a},n)}function iB(e,t,{scope:r}={}){iF("trace",e,t,r)}function iW(e,t,{scope:r}={}){iF("debug",e,t,r)}function iH(e,t,{scope:r}={}){iF("info",e,t,r)}function iq(e,t,{scope:r}={}){iF("warn",e,t,r)}function iY(e,t,{scope:r}={}){iF("error",e,t,r)}function iJ(e,t,{scope:r}={}){iF("fatal",e,t,r)}function iV(e,t,r,n){!function(e,t){let r=t?.scope??(0,j.o5)(),n=t?.captureSerializedMetric??ev,a=r?.getClient()??(0,j.KU)();if(!a){R.T&&b.Yz.warn("No client available to capture metric.");return}let{_experiments:o,enableMetrics:i,beforeSendMetric:s}=a.getOptions();if(!(i??o?.enableMetrics??!0)){R.T&&b.Yz.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,er.Om)((0,j.rm)(),r),c=function(e,t,r){let{release:n,environment:a}=t.getOptions(),o={...e.attributes};ey(o,"user.id",r.id,!1),ey(o,"user.email",r.email,!1),ey(o,"user.name",r.username,!1),ey(o,"sentry.release",n),ey(o,"sentry.environment",a);let{name:i,version:s}=t.getSdkMetadata()?.sdk??{};ey(o,"sentry.sdk.name",i),ey(o,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return ey(o,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&ey(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}(e,a,l);a.emit("processMetric",c);let p=s||o?.beforeSendMetric,f=p?p(c):c;if(!f){R.T&&b.Yz.log("`beforeSendMetric` returned `null`, will not send metric.");return}let d=function(e,t,r,n){let[,a]=el(t,r),o=(0,en.f)(r),i=o?o.spanContext().traceId:a?.trace_id,s=o?o.spanContext().spanId:void 0,l=(0,ea.zf)(),u=ei(l);return{timestamp:l,trace_id:i??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,Z.SY)(n),...(0,Z.SY)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(f,a,r,u);R.T&&b.Yz.log("[Metric]",d),n(a,d),a.emit("afterCaptureMetric",f)}({type:e,name:t,value:r,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}function iG(e,t=1,r){iV("counter",e,t,r)}function iX(e,t,r){iV("gauge",e,t,r)}function iK(e,t,r){iV("distribution",e,t,r)}let iQ=new Map,iZ=new Set;function i0(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=function(e,t){if(v.O._sentryModuleMetadata)for(let t of Object.keys(v.O._sentryModuleMetadata)){let r=v.O._sentryModuleMetadata[t];if(!iZ.has(t)){for(let n of(iZ.add(t),e(t).reverse()))if(n.filename){iQ.set(n.filename,r);break}}}return iQ.get(t)}(e,t.filename);r&&(t.module_metadata=r)})})}function i1(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let i2=(0,T._C)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,ec.yH)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(i1(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||i0(e.getOptions().stackParser,t)})}}));var i4=r(58608),i5=r(93241);let i3=(0,T._C)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,ec.yH)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(i1(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||i0(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(v.O._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let r=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,n=function(e,t,r){let n=(0,F.RV)(e);
483if(n)return n.filter((e,n)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,r){var n;if(0!==t)return!1;if(r&&!(n=e).context_line&&!n.pre_context&&n.function&&n.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(i7))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(i9))return!0}return!1}(e,n,!!r))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(i6)).map(e=>e.slice(i6.length)):[])}(t,e.ignoreSentryInternalFrames,r);if(n&&n["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}})),i6="_sentryBundlerPluginAppKey:",i9="Attempt to invoke user-land function",i7="fn.apply(this, wrappedArguments)";function i8(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 se=(0,T._C)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>(function(e,t=!1,r,n){var a;if(!r.exception?.values||!n.originalException||(a=n.originalException,!((0,et.bJ)(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===n.originalException.issues.length)return r;try{let a=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(i8);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:function(e){let t=new Set;for(let r of e.issues){let e=r.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,x.xv)(r.join(", "),100)}`}(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":a.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message} 484${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,r,n)}}),st={startProfiler:function(){let e=(0,j.KU)();if(!e){tw.T&&b.Yz.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){tw.T&&b.Yz.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,j.KU)();if(!e){tw.T&&b.Yz.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){tw.T&&b.Yz.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function sr(e,{metadata:t,tunnel:r,dsn:n}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,V.SB)(n)}},o=[{type:"user_report"},e];return(0,ec.h4)(a,[o])}function sn(e={}){let t=ti.jf.document,r=t?.head||t?.body;if(!r){tw.T&&b.Yz.error("[showReportDialog] Global document not defined");return}let n=(0,j.o5)(),a=(0,j.KU)(),o=a?.getDsn();if(!o){tw.T&&b.Yz.error("[showReportDialog] DSN not configured");return}let i={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||(0,S.Q)()},s=ti.jf.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let r=(0,V.AD)(e);if(!r)return"";let n=`${G(r)}embed/error-page/`,a=`dsn=${(0,V.SB)(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}
484`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${a}`}(o,i);let{onLoad:l,onClose:u}=i;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{ti.jf.removeEventListener("message",e)}};ti.jf.addEventListener("message",e)}r.appendChild(s)}var sa=r(7570);let so=v.O,si=new WeakMap,ss=(0,T._C)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(si.has((0,j.KU)()))for(let t of e)(0,j.v4)(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,n="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=t.body.message||n}(0,S.wd)(`${r}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){(0,sa.vQ)()&&new so.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){si.set(e,!0)}}});function sl(e,t){return t.some(t=>e.includes(t))}function su(e,t,r){if(!1===t)return{};let n=null!=r?[...eD,...r]:eD,a={};if(!0===t){for(let t of Object.keys(e))a[t]=sl(t.toLowerCase(),n)?eL:e[t];return a}if("deny"in t){let r=t.deny.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let o=t.toLowerCase(),i=sl(o,n)||r.some(e=>o.includes(e));a[t]=i?eL:e[t]}return a}let o=t.allow.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let r=t.toLowerCase();if(sl(r,n))a[t]=eL;else{let n=o.some(e=>r.includes(e));a[t]=n?e[t]:eL}}return a}function sc(e,t){if(!1===t)return{};try{let r=function(e){let t={},r=0;for(;r<e.length;){let n=e.indexOf("=",r);
484if(-1===n)break;let a=e.indexOf(";",r);if(-1===a)a=e.length;else if(a<n){r=e.lastIndexOf(";",n-1)+1;continue}let o=e.slice(r,n).trim();if(void 0===t[o]){let r=e.slice(n+1,a).trim();34===r.charCodeAt(0)&&(r=r.slice(1,-1));try{t[o]=-1!==r.indexOf("%")?decodeURIComponent(r):r}catch{t[o]=r}}r=a+1}return t}(e);if(0===Object.keys(r).length)return{};return su(r,t,eU)}catch{return eL}}var sp=r(15099);let sf=(0,T._C)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,a,o;r=e,n=t,(0,sa.m7)()&&(0,tf.ur)(e=>{if((0,j.KU)()!==r)return;let{response:t,args:a,error:o,virtualError:i}=e,[s,l]=a;t&&function(e,t,r,n,a){if(sh(e,r.status,r.url)){var o,i;let e,s,l,u,c=(o=t,!(i=n)&&o instanceof Request||o instanceof Request&&o.bodyUsed?o:new Request(o,i)),p=sg();if(!1!==p.requestHeaders&&(e=su(sd(c.headers),p.requestHeaders)),!1!==p.responseHeaders&&(s=su(sd(r.headers),p.responseHeaders)),!1!==p.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=sc(e,p.cookies);"object"==typeof t&&(l=t)}let t=r.headers.get("Set-Cookie")||void 0;if(t){let e=sc(t,p.cookies);"object"==typeof e&&(u=e)}}let f=sm({url:c.url,method:c.method,status:r.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:a,type:"fetch"});(0,S.r)(f)}}(n,s,t,l,o||i)},!1),a=e,o=t,"XMLHttpRequest"in v.O&&(0,tv.Mn)(e=>{if((0,j.KU)()!==a)return;let{error:t,virtualError:r}=e,n=e.xhr,i=n[tv.Er];if(!i)return;let{method:s,request_headers:l}=i;try{!function(e,t,r,n,a){if(sh(e,t.status,t.responseURL)){let e,o,i,s=sg();if(!1!==s.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=sc(e,s.cookies);"object"==typeof t&&(o=t)}}catch{}if(!1!==s.responseHeaders)try{let e;i=su((e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{},s.responseHeaders)}catch{}!1!==s.requestHeaders&&(e=su(n,s.requestHeaders));let l=sm({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:o,error:a,type:"xhr"});(0,S.r)(l)}}(o,n,s,l,t||r)}catch(e){tw.T&&b.Yz.warn("Error while extracting response event form XHR response",e)}})}}});function sd(e){let t={};return e.forEach((e,r)=>{t[r]=e}),t}function sh(e,t,r){var n,a;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!(0,sp.A)(r,(0,j.KU)())}function sm(e){let t=(0,j.KU)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,o={message:a,exception:{values:[{type:"Error",value:a,stacktrace:n?{frames:n}: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(0,k.M6)(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function sg(){let e=(0,j.KU)();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:r,httpHeaders:n}=e.getDataCollectionOptions();return{cookies:r,requestHeaders:n.request,responseHeaders:n.response}}let s_=v.O,sy=(0,T._C)((e={})=>({name:"ContextLines",processEvent:(t,r,n)=>(function(e,t){let r=s_.document,n=s_.location&&(0,t_.f)(s_.location.href);if(!r||!n)return e;let a=e.exception?.values;if(!a?.length)return e;let o=r.documentElement.innerHTML;if(!o)return e;let i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return a.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>{var r,a,o,s;return r=e,a=i,o=n,s=t,r.filename===o&&r.lineno&&a.length&&(0,k.db)(a,r,s),r}))}),e})(t,e.frameContextLines??n?.getDataCollectionOptions().frameContextLines??7)}));var sv=r(26756);
484function sb(e){if(sS(e))return`persisted ${e.operationName}`;if(sw(e)){let{query:t,operationName:r}=e,{operationName:n=r,operationType:a}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return n?`${a} ${n}`:`${a}`}return"unknown"}function sE(e){let t;if("xhr"in e){let r=e.xhr[tv.Er];t=r&&(0,sv.sY)(r.body)[0]}else{let r=(0,sv.Gv)(e.input);t=(0,sv.sY)(r)[0]}return t}function sw(e){return(0,et.Z4)(e)&&"string"==typeof e.query}function sS(e){return(0,et.Z4)(e)&&"string"==typeof e.operationName&&(0,et.Z4)(e.extensions)&&(0,et.Z4)(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function sR(e){try{let t=JSON.parse(e);if(sw(t)||sS(t))return t;return}catch{return}}let sT=(0,T._C)(e=>({name:"GraphQLClient",setup(t){var r,n,a,o;r=t,n=e,r.on("beforeOutgoingRequestSpan",(e,t)=>{let r=(0,U.et)(e).data||{};if("http.client"!==r[D.uT])return;let a=r[D.c9]||r["http.url"]||r.url,o=r[D.Ts]||r["http.method"];if(!(0,et.Kg)(a)||!(0,et.Kg)(o))return;let{endpoints:i}=n,s=(0,x.Xr)(a,i),l=sE(t);if(s&&l){let t=sR(l);if(t){let r=sb(t);e.updateName(`${o} ${a} (${r})`),sw(t)&&e.setAttribute("graphql.document",t.query),sS(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),a=t,o=e,a.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:r,type:n,data:a}=e;if("http"===n&&("fetch"===r||"xhr"===r)){let e=a?.url,{endpoints:r}=o,n=(0,x.Xr)(e,r),i=sE(t);if(n&&a&&i){let e=sR(i);if(!a.graphql&&e){let t=sb(e);a["graphql.operation"]=t,sw(e)&&(a["graphql.document"]=e.query),sS(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}})),sP=(0,T._C)((e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(r,n)=>{if(void 0!==r.type||e.shouldAttach?.(r,n)===!1)return r;let a={rendering_system:"DOM",positioning:"absolute",windows:[]};!function r(n,a,o=0){if(n)for(let i of"shadowRoot"in n&&n.shadowRoot?n.shadowRoot.children:n.children){if(!(i instanceof HTMLElement))continue;let n=(0,th.xE)(i,1)||void 0,s=i.tagName.toLowerCase();if(t.includes(s))continue;
484let l=e.onElement?.({element:i,componentName:n,tagName:s,depth:o})||{};if("skip"===l)continue;if("children"===l){r(i,a,o+1);continue}let{x:u,y:c,width:p,height:f}=i.getBoundingClientRect(),d={identifier:i.id||void 0,type:n||s,visible:!0,alpha:1,height:f,width:p,x:u,y:c,...l};d.children=[],r(i,d.children,o+1),a.push(d)}}(e.rootElement?.()||ti.jf.document.body,a.windows);let o={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(a)};return n.attachments=n.attachments||[],n.attachments.push(o),r}}});var sk=r(96050),sx=Object.defineProperty,sC=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?sx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};class sO{constructor(){sC(this,"idNodeMap",new Map),sC(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 r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function sA(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:sA(e.parentNode,t,r,n+1)}function sI(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let sN="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.",sj={map:{},getId:()=>(console.error(sN),-1),getNode:()=>(console.error(sN),null),removeNodeFromMap(){console.error(sN)},has:()=>(console.error(sN),!1),reset(){console.error(sN)}};function sM(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(e){sF(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>sM(e,t,o||{},!0)}function sL(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}function s$(e,t,r,n,a){if(!e)return!1;let o=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!o)return!1;let i=sI(t,r);if(!a){let e=n&&o.matches(n);return i(o)&&!e}let s=sA(o,i),l=-1;return!(s<0)&&(n&&(l=sA(o,sI(null,n))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(sj=new Proxy(sj,{get:(e,t,r)=>("map"===t&&console.error(sN),Reflect.get(e,t,r))})),Date.now().toString();let sD={};function sU(e){let t=sD[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return sD[e]=n.bind(window)}function sz(...e){return sU("requestAnimationFrame")(...e)}function sF(...e){return sU("setTimeout")(...e)}var sB=((h=sB||{})[h["2D"]=0]="2D",h[h.WebGL=1]="WebGL",h[h.WebGL2=2]="WebGL2",h);let sW=e=>i?(...t)=>{try{return e(...t)}catch(e){if(i&&!0===i(e))return()=>{};throw e}}:e;for(var sH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sq="u"<typeof Uint8Array?[]:new Uint8Array(256),sY=0;sY<sH.length;sY++)sq[sH.charCodeAt(sY)]=sY;var sJ=function(e){var t,r=new Uint8Array(e),n=r.length,a="";for(t=0;t<n;t+=3)a+=sH[r[t]>>2],a+=sH[(3&r[t])<<4|r[t+1]>>4],a+=sH[(15&r[t+1])<<2|r[t+2]>>6],a+=sH[63&r[t+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let sV=new Map,sG=(e,t,r)=>{let n;if(!e||!(sK(e,t)||"object"==typeof e))return;let a=e.constructor.name,o=((n=sV.get(r))||(n=new Map,sV.set(r,n)),n.has(a)||n.set(a,[]),n.get(a)),i=o.indexOf(e);return -1===i&&(i=o.length,o.push(e)),i},sX=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));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:sJ(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}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,r,n),t.width,t.height]};else if(sK(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:sG(t,r,n)};return t})(e,t,r)),sK=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function sQ(e,t,r,n,a){let o=[];try{let i=sL(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...i){if(!s$(this,t,r,n,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),a&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){let e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
484{o.forEach(e=>e())}}function sZ(e,t,r,n,a,o,i,s){let l=[];for(let i of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;let u=sL(e,i,function(e){return function(...l){let u=e.apply(this,l);if(sG(u,s,this),"tagName"in this.canvas&&!s$(this.canvas,n,a,o,!0)){let e=sX(l,s,this),n={type:t,property:i,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=sM(e,i,{set(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});l.push(n)}return l}class s0{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)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:a,errorHandler:o}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&function(e){i=e}(o),(a&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;sW(()=>{a&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof r&&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:r,blockSelector:n,unblockSelector:a,recordCanvas:o,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}sW(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,r,n,a),o&&"number"==typeof t){let t=sQ(e,r,n,a,!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){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):sz(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((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)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:a,width:o,height:i}=t;this.mutationCb({id:r,type:sB["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:a}]},0,0,o,i]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=sz(t)};e=sz(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){var a,o;let i,s=sQ(e,t,r,n,!1),l=function(e,t,r,n,a){let o=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let s=sL(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return s$(this.canvas,r,n,a,!0)||sF(()=>{let r=sX(s,t,this);e(this.canvas,{type:sB["2D"],property:i,args:r})},0),o.apply(this,s)}});o.push(s)}catch{let r=sM(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:sB["2D"],property:i,args:[t],setter:!0})}});o.push(r)}return()=>
484{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),u=(a=this.processMutation.bind(this),o=this.mirror,(i=[]).push(...sZ(e.WebGLRenderingContext.prototype,sB.WebGL,a,t,r,n,o,e)),void 0!==e.WebGL2RenderingContext&&i.push(...sZ(e.WebGL2RenderingContext.prototype,sB.WebGL2,a,t,r,n,o,e)),()=>{i.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,r){let n=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{s$(a,e,t,r,!0)||n.push(a)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:a,blockSelector:o,unblockSelector:i,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(a,o,i)).forEach(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!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:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{sW(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){sz(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,sz(e)};sz(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),sz(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:a}=r[0];this.mutationCb({id:t,type:a,commands:n}),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 sO,(m=g||(g={}))[m.NotStarted=0]="NotStarted",m[m.Running=1]="Running",m[m.Stopped=2]="Stopped";let s1={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}}},s2=(0,T._C)((e={})=>{let t,r,[n,a]=e.maxCanvasSize||[],o={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,a?Math.min(a,1280):1280]},i=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:a}=o;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let o=new s0({...e,enableManualSnapshot:n,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=o,r(o),o},...s1[e]||s1.medium}},async snapshot(e,r){(t||await i).snapshot(e,r)}}});var s4=r(52850),s5=r(21640),s3=r(3733);let s6=(0,T._C)(()=>({name:"ElementTiming",setup(){(0,s3.D)()&&(0,ea.k3)()&&(0,s5.wv)("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,r=t.name,n=t.renderTime,a=t.loadTime,o={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":e};r&&(o["ui.element.paint_type"]=r),t.id&&(o["ui.element.id"]=t.id),t.element&&(o["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(o["ui.element.url"]=t.url),t.naturalWidth&&(o["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(o["ui.element.height"]=t.naturalHeight),n>0&&iK("ui.element.render_time",n,{unit:"millisecond",attributes:o}),a>0&&iK("ui.element.load_time",a,{unit:"millisecond",attributes:o})}})}}));function s9(e=(0,j.KU)()){e?.emit("endPageloadSpan")}function s7(e){let t=(0,U.Bk)();if(t===e)return;let r=(0,j.o5)();e.end=new Proxy(e.end,{apply:(e,n,a)=>((0,en.r)(r,t),Reflect.apply(e,n,a))}),(0,en.r)(r,e)}class s8{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:r,flushInterval:n,maxTraceWeightInBytes:a}=t??{};this._maxSpanLimit=r&&r>0&&r<=1e3?r:1e3,this._flushInterval=n&&n>0?n:5e3,this._maxTraceWeight=a&&a>0?a:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>
484{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,r=this._traceBuckets.get(t);r||(r={spans:new Set,size:0,timeout:eP(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,r)),r.spans.add(e),r.size+=function(e){let t;if(t=156+2*e.name.length+(0,Z.n9)(e.attributes),e.links&&e.links.length>0){let r=e.links[0],n=r?.attributes;t+=(100+(n?(0,Z.n9)(n):0))*e.links.length}return t}(e),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(R.T&&b.Yz.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var t,r;let n,a,o,i,s,l,u,c=this._traceBuckets.get(e);if(!c)return;if(!c.spans.size)return void this._removeTrace(e);let p=Array.from(c.spans),f=p[0]?._segmentSpan;if(!f){R.T&&b.Yz.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}let d=(0,es.k1)(f),h=p.map(e=>{let{_segmentSpan:t,...r}=e;return r}),m=(n=(t=this._client).getOptions(),a=t.getDsn(),o=n.tunnel,i=(0,ec.Cj)(n._metadata),s={sent_at:new Date((0,ej.Wk)()).toISOString(),...!!(r=d).trace_id&&!!r.public_key&&{trace:d},...i&&{sdk:i},...!!o&&a&&{dsn:(0,V.SB)(a)}},l=t.getDataCollectionOptions().userInfo?"auto":"never",u=[{type:"span",item_count:h.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,ep.B)()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:h}],(0,ec.h4)(s,[u]));R.T&&b.Yz.log(`Sending span envelope for trace ${e} with ${h.length} spans`),this._client.sendEnvelope(m).then(null,e=>{R.T&&b.Yz.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 le=(0,T._C)(()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(tw.T&&b.Yz.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){let t="SpanStreaming integration requires",r="Falling back to static trace lifecycle.",n=e.getOptions();if(!(0,eR.K)(e)){n.traceLifecycle="static",tw.T&&b.Yz.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${r}`);return}let a=n.beforeSendSpan;if(a&&!(0,eS.S)(a)){n.traceLifecycle="static",tw.T&&b.Yz.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${r}`);return}let o=new s8(e);e.on("afterSpanEnd",t=>{(0,U.pK)(t)&&o.add((0,tA.JI)(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{o.flush(t)},500)})}}));var lt=r(4453),lr=r(62989);function ln(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function la(e){return ln(e.getAllKeys())}function lo(e){let t;function r(){var r,n;let a,o;return void 0==t&&(r=e.dbName||"sentry-offline",n=e.storeName||"queue",(a=indexedDB.open(r)).onupgradeneeded=()=>a.result.createObjectStore(n),o=ln(a),t=e=>o.then(t=>e(t.transaction(n,"readwrite").objectStore(n)))),t}return{push:async t=>{try{var n,a;let o=(0,ec.bN)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>la(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.max(...t,0)+1),ln(e.transaction)})))}catch{}},unshift:async t=>{try{var n,a;let o=(0,ec.bN)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>la(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.min(...t,0)-1),ln(e.transaction)})))}catch{}},shift:async()=>{try{let e=await r()(e=>la(e).then(t=>{let r=t[0];if(null!=r)return ln(e.get(r)).then(t=>(e.delete(r),ln(e.transaction).then(()=>t)))}));if(e)return(0,ec.mE)(e)}catch{}}}}function li(e=rt){var t;return t=function(e){function t(...e){R.T&&b.Yz.log("[Offline]:",...e)}return r=>{let n,a=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let o=r.createStore(r),i=5e3;function s(e){n&&clearTimeout(n),n=eP(setTimeout(async()=>{n=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,ej.Wk)()).toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){n||(s(i),i=Math.min(2*i,36e5))}async function u(e,n=!1){if(!n&&(0,ec.hP)(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};
484try{if(r.shouldSend&&await r.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await a.send(e),n=100;if(t){if(t.headers?.["retry-after"])n=(0,eC.FA)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),i=5e3,t}catch(a){var c;if(await (c=i,!(0,ec.hP)(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,a,c))))return n?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",a),{};throw a}}return r.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(i=5e3,s(100)),a.flush(e))}}}(e),e=>{let r=t({...e,createStore:lo});return ti.jf.addEventListener("online",async e=>{await r.flush()}),r}}var ls=r(70924),ll=r(87038);let lu="window"in v.O&&v.O.window===v.O&&"u"<typeof importScripts,lc=String(0),lp=lu?"main":"worker",lf=ti.jf.navigator,ld="",lh="",lm="",lg=lf?.userAgent||"",l_="",ly=lf?.language||lf?.languages?.[0]||"",lv=lf?.userAgentData;function lb(e){return"pageload"===(0,U.et)(e).op}function lE(e){let t=(0,j.KU)(),r=t?.getOptions(),n=r?.stackParser;return n?(0,ll.i)(n,e):[]}function lw(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(tw.T&&b.Yz.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)||(tw.T&&b.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof lv&&null!==lv&&"getHighEntropyValues"in lv&&lv.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(ld=e.platform||"",lm=e.architecture||"",l_=e.model||"",lh=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];lg=`${t.brand} ${t.version}`}}).catch(e=>void 0);let lS=!1;function lR(){let e=ti.jf.Profiler;if("function"!=typeof e){tw.T&&b.Yz.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){tw.T&&(b.Yz.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),b.Yz.log("[Profiling] Disabling profiling for current user session.")),lS=!0}}function lT(e){if(lS)return tw.T&&b.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return tw.T&&b.Yz.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,j.KU)(),r=t?.getOptions();if(!r)return tw.T&&b.Yz.log("[Profiling] Profiling disabled, no options found."),!1;let n=r.profilesSampleRate;return lw(n)?n?!!(!0===n||Math.random()<n)||(tw.T&&b.Yz.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):(tw.T&&b.Yz.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(tw.T&&b.Yz.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function lP(e){return void 0!==e.profilesSampleRate}let lk=new Map,lx=new WeakSet;function lC(e){e.setAttribute("thread.id",lc),e.setAttribute("thread.name",lp)}function lO(e){let t;lb(e)&&(t=1e3*(0,ea.zf)());let r=lR();if(!r)return;tw.T&&b.Yz.log(`[Profiling] started profiling span: ${(0,U.et)(e).description}`);let n=(0,k.eJ)(),a=null;async function o(){if(e&&r){if(a){tw.T&&b.Yz.log("[Profiling] profile for:",(0,U.et)(e).description,"already exists, returning early");return}return r.stop().then(t=>{if(i&&(ti.jf.clearTimeout(i),i=void 0),tw.T&&b.Yz.log(`[Profiling] stopped profiling of span: ${(0,U.et)(e).description}`),!t){tw.T&&b.Yz.log(`[Profiling] profiler returned null profile for: ${(0,U.et)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}a=t;if(lk.set(n,t),lk.size>30){let e=lk.keys().next().value;void 0!==e&&lk.delete(e)}}).catch(e=>{tw.T&&b.Yz.log("[Profiling] error while stopping profiler:",e)})}}(0,j.o5)().setContext("profile",{profile_id:n,start_timestamp:t}),lx.add(e),lC(e);let i=ti.jf.setTimeout(()=>{tw.T&&b.Yz.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,U.et)(e).description),o()},3e4),s=e.end.bind(e);e.end=function(){return e?(o().then(()=>{s()},()=>{s()}),e):s()}}class lA{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,r=function(e){if(lS)return tw.T&&b.Yz.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 tw.T&&b.Yz.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return lw(t)?t?Math.random()<=t:(tw.T&&b.Yz.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(tw.T&&b.Yz.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());tw.T&&b.Yz.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!r&&tw.T&&b.Yz.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,k.eJ)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&lC(e)})}
484start(){if("trace"===this._lifecycleMode){tw.T&&b.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){tw.T&&b.Yz.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){tw.T&&b.Yz.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){tw.T&&b.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){tw.T&&b.Yz.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 r=this._activeRootSpanIds.size;1===r&&(tw.T&&b.Yz.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling()),this._isRunning&&lC(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,tw.T&&b.Yz.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,j.m6)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){tw.T&&b.Yz.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=>{tw.T&&b.Yz.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,j.m6)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){tw.T&&b.Yz.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,U.zU)(e))return;if(!e.isRecording()){tw.T&&b.Yz.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 r=this._activeRootSpanIds.size;1===r&&(tw.T&&b.Yz.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),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 r=this._activeRootSpanIds.size;tw.T&&b.Yz.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{tw.T&&b.Yz.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,j.m6)().setContext("profile",{})}_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=lR();if(!e){tw.T&&b.Yz.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{tw.T&&b.Yz.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)&&(tw.T&&b.Yz.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(),r=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let a=[],o=n;for(;o;)a.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];r[t]=a}let n=(0,ea.k3)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,o=a-(n||a),i=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(a+(r.timestamp-o))/1e3;i[t]={stack_id:r.stackId??0,thread_id:lc,timestamp:n}}return{frames:t,stacks:r,samples:i,thread_metadata:{[lc]:{name:lp}}}}(e),a=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,k.eJ)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:r||(0,k.eJ)(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:lE(e.resources)},profile:n}}(t,this._client,this._profilerId),n=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);
484if(!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 r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(r);if("reason"in n){tw.T&&b.Yz.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason);return}this._sendProfileChunk(r),tw.T&&b.Yz.log("[Profiling] Collected browser profile chunk.")}catch(e){tw.T&&b.Yz.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,r=(0,ec.Cj)(t.getSdkMetadata?.()),n=t.getDsn(),a=t.getOptions().tunnel,o=(0,ec.h4)({event_id:(0,k.eJ)(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&n&&{dsn:(0,V.SB)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(o).then(null,e=>{tw.T&&b.Yz.error("Error while sending profile chunk envelope:",e)})}}let lI=(0,T._C)(()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new lA;if(lP(t)||t.profileLifecycle||(t.profileLifecycle="manual"),lP(t)&&!t.profilesSampleRate){tw.T&&b.Yz.log("[Profiling] Profiling disabled, no profiling options found.");return}let n=(0,U.Bk)(),a=n&&(0,U.zU)(n);if(lP(t)&&void 0!==t.profileSessionSampleRate&&tw.T&&b.Yz.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),lP(t))a&&lb(a)&&lT(a)&&lO(a),e.on("spanStart",e=>{let t=(0,U.zU)(e);e===t?lT(e)&&lO(e):lx.has(t)&&lC(e)}),e.on("beforeEnvelope",e=>{let t;if(!lk.size)return;let r=(t=[],(0,ec.yH)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t);if(!r.length)return;let n=[];for(let e of r){let t=e?.contexts,r=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof r||!r){tw.T&&b.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let o=function(e){let t=lk.get(e);return t&&lk.delete(e),t}(r);if(!o){tw.T&&b.Yz.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let i=function(e,t,r,n){return(r.samples.length<2?(tw.T&&b.Yz.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!r.frames.length&&(tw.T&&b.Yz.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,r,n){var a;let o;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let i=("string"==typeof(o=n.contexts?.trace?.trace_id)&&32!==o.length&&tw.T&&b.Yz.log(`[Profiling] Invalid traceId: ${o} on profiled event`),"string"!=typeof o)?"":o,s="thread_metadata"in(a=r)?a:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[lc]:{name:lp}}},a=e.samples[0];if(!a)return n;let o=a.timestamp,i=(0,ea.k3)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,l=s-(i||s);return e.samples.forEach((a,i)=>{if(void 0===a.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[i]={elapsed_since_start_ns:((a.timestamp+l-o)*1e6).toFixed(0),stack_id:t,thread_id:lc};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.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:((a.timestamp+l-o)*1e6).toFixed(0),stack_id:r,thread_id:lc};n.stacks[r]=u,n.samples[i]=c,r++}),n}(a),l=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,ea.zf)()),u="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,ea.zf)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||K.U,runtime:{name:"javascript",version:ti.jf.navigator.userAgent},os:{name:ld,version:lh,build_number:lg},device:{locale:ly,model:l_,manufacturer:lg,architecture:lm,is_emulator:!1},debug_meta:{images:lE(r.resources)},profile:s,transactions:[{name:n.transaction||"",id:n.event_id||
484(0,k.eJ)(),trace_id:i,active_thread_id:lc,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,r,n)}(r,a,o,e);i&&n.push(i)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,n)});else{let n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,ls.f)(t)){tw.T&&b.Yz.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}r.initialize(e),a&&r.notifyRootSpanActive(a),ti.jf.setTimeout(()=>{let e=(0,U.Bk)(),t=e&&(0,U.zU)(e);t&&r.notifyRootSpanActive(t)},0)}}}})),lN=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],lj=(0,T._C)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{tw.T&&b.Yz.log("Using Sidecar URL",t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...lN]},afterAllSetup:e=>{var r,n;let a,o;r=e,n=t,a=(0,re.qd)("fetch"),o=0,r.on("beforeEnvelope",e=>{o>3?b.Yz.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",o):a(n,{method:"POST",body:(0,ec.bN)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(o=0)},e=>{o++,b.Yz.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}}),lM=(0,T._C)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>o5(e)}));function lL(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{o3(e,t.value),o6(e,t.value)}}}let l$=(0,T._C)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>o5(e)}));class lD{after(e,t){o3(t.flagKey,t.value),o6(t.flagKey,t.value)}error(e,t,r){o3(e.flagKey,e.defaultValue),o6(e.flagKey,e.defaultValue)}}let lU=(0,T._C)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,M.GS)(t,"isEnabled",lz)},processEvent:(e,t,r)=>o5(e)}));function lz(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?(o3(r,n),o6(r,n)):tw.T&&b.Yz.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}let lF=(0,T._C)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,M.GS)(t,"isOn",lB),"function"==typeof t.getFeatureValue&&(0,M.GS)(t,"getFeatureValue",lB)},processEvent:(e,t,r)=>o5(e)}));function lB(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(o3(r,n),o6(r,n)),n}}let lW=({growthbookClass:e})=>lF({growthbookClass:e}),lH=(0,T._C)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{o3(e.gate.name,e.gate.value),o6(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>o5(e)}));async function lq(){let e=(0,j.KU)();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 (0,aH.M1)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let lY=(0,T._C)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>lJ(e))},addWorker:e=>lJ(e)}));function lJ(e){e.addEventListener("message",e=>{if(function(e){if(!(0,et.Qd)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!r||!!n||!!a)&&(!t||!!((0,et.Qd)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!r||!!((0,et.Qd)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!n||!!(0,et.Qd)(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,et.Qd)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(tw.T&&b.Yz.log("Sentry debugId web worker message received",e.data),ti.jf._sentryDebugIds={...e.data._sentryDebugIds,...ti.jf._sentryDebugIds}),e.data._sentryModuleMetadata&&(tw.T&&b.Yz.log("Sentry module metadata web worker message received",e.data),ti.jf._sentryModuleMetadata={...e.data._sentryModuleMetadata,...ti.jf._sentryModuleMetadata}),e.data._sentryWasmImages){tw.T&&b.Yz.log("Sentry WASM images web worker message received",e.data);let t=ti.jf._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,et.Qd)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));ti.jf._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(tw.T&&b.Yz.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,j.KU)();if(!t)return;let r=t.getOptions().stackParser,n=t.getOptions().attachStacktrace,a=e.reason,o=(0,et.sO)(a)?tD(a):ta(r,a,void 0,n,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),(0,S.r)(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),tw.T&&b.Yz.log("Captured worker unhandled rejection",a)}(e.data._sentryWorkerError))}})}function lV({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:t$(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),tw.T&&b.Yz.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),tw.T&&b.Yz.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function lG(e,{componentStack:t},r){let n;if(null!==(n=rs.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&(0,et.bJ)(e)&&t){let r,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,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(0,S.Cp)(e,r)}function lX(e){return(t,r)=>{let n=!!e,a=lG(t,r,{mechanism:{handled:n,type:"auto.function.react.error_handler"}});n&&e(t,r,a)}}let lK="ui.react.render",lQ="ui.react.mount",lZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l2=Symbol.for("react.forward_ref"),l4=Symbol.for("react.memo"),l5={};function l3(e){if("object"==typeof e&&null!==e&&e.$$typeof===l4)return l1;let t=e.$$typeof;return t&&l5[t]||lZ}l5[l2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l5[l4]=l1;let l6=Object.defineProperty.bind(Object),l9=Object.getOwnPropertyNames.bind(Object),l7=Object.getOwnPropertySymbols?.bind(Object),l8=Object.getOwnPropertyDescriptor.bind(Object),ue=Object.getPrototypeOf.bind(Object),ut=Object.prototype;function ur(e,t,r){if("string"!=typeof t){if(ut){let r=ue(t);r&&r!==ut&&ur(e,r)}let r=l9(t);l7&&(r=r.concat(l7(t)));let n=l3(e),a=l3(t);for(let o of r)if(!l0[o]&&!a?.[o]&&!n?.[o]&&!l8(e,o)){let r=l8(t,o);if(r)try{l6(e,o,r)}catch(e){}}}return e}class un extends rs.Component{constructor(e){super(e);const{name:t,disabled:r=!1}=this.props;if(r)return;this._mountSpan=(0,aH.Uk)({name:`<${t}>`,onlyIfParent:!0,op:lQ,attributes:{[D.JD]:"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=(0,ea.zf)();this._updateSpan=(0,aH.hb)(this._mountSpan,()=>(0,aH.Uk)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[D.JD]:"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=(0,ea.zf)(),{name:t,includeRender:r=!0}=this.props;if(this._mountSpan&&r){let r=(0,U.et)(this._mountSpan).timestamp;(0,aH.hb)(this._mountSpan,()=>{let n=(0,aH.Uk)({onlyIfParent:!0,name:`<${t}>`,op:lK,startTime:r,attributes:{[D.JD]:"auto.ui.react.profiler","ui.component_name":t}});n&&n.end(e)})}}render(){return this.props.children}}function ua(e,t){let r=t?.name||e.displayName||e.name||"unknown",n=n=>rs.createElement(un,{...t,name:r,updateProps:n},rs.createElement(e,{...n}));return n.displayName=`profiler(${r})`,ur(n,e),n}function uo(e,t={disabled:!1,hasRenderSpan:!0}
484){let[r]=rs.useState(()=>{if(!t?.disabled)return(0,aH.Uk)({name:`<${e}>`,onlyIfParent:!0,op:lQ,attributes:{[D.JD]:"auto.ui.react.profiler","ui.component_name":e}})});rs.useEffect(()=>(r&&r.end(),()=>{if(r&&t.hasRenderSpan){let t=(0,U.et)(r).timestamp,n=(0,ea.zf)(),a=(0,aH.Uk)({name:`<${e}>`,onlyIfParent:!0,op:lK,startTime:t,attributes:{[D.JD]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(n)}}),[])}Object.assign(un,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let ui="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,us={componentStack:null,error:null,eventId:null};class ul extends rs.Component{constructor(e){super(e),this.state=us,this._openFallbackReportDialog=!0;const t=(0,j.KU)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&sn({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:r}=t,{beforeCapture:n,onError:a,showDialog:o,dialogOptions:i}=this.props;(0,j.v4)(s=>{n&&n(s,e,r);let l=lG(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});a&&a(e,r,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&sn({...i,eventId:l})),this.setState({error:e,componentStack:r,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&(this.state===us?n(null,null,null):n(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(us)}render(){let{fallback:e,children:t}=this.props,r=this.state;if(null===r.componentStack)return"function"==typeof t?t():t;let n="function"==typeof e?rs.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return rs.isValidElement(n)?n:(e&&ui&&b.Yz.warn("fallback did not produce a valid ReactElement"),null)}}function uu(e,t){let r=e.displayName||e.name||"unknown",n=rs.memo(r=>rs.createElement(ul,{...t},rs.createElement(e,{...r})));return n.displayName=`errorBoundary(${r})`,ur(n,e),n}let uc={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function up(e){let t={...uc,...e};return e=>(r,n)=>{function a(e){return(r,n)=>{let a=e(r,n),o=(0,j.o5)(),i=t.actionTransformer(n);null!=i&&(0,td.Z)({category:"redux.action",data:i,type:"info"});let s=t.stateTransformer(a);if(null!=s){let e=(0,j.KU)(),t=e?.getOptions(),r=t?.normalizeDepth||3,n={state:{type:"redux",value:s}};(0,o1.uy)(n,3+r),o.setContext("state",n)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,a),a}}t.attachReduxState&&(0,j.m6)().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 o=e(a(r),n);return o.replaceReducer=new Proxy(o.replaceReducer,{apply:function(e,t,r){e.apply(t,[a(r[0])])}}),o}}function uf(e){let t=(0,rd.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,match:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&ti.jf.location&&ud(n,ti.jf.location,a,(t,r="url")=>{(0,rd.Sx)(e,{name:t,attributes:{[D.uT]:"pageload",[D.JD]:"auto.pageload.react.reactrouter_v3",[D.i_]:r,..."route"===r&&{[rv.B8_]:t}}})}),i&&r.listen&&r.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&ud(n,t,a,(t,r="url")=>{(0,rd.Nt)(e,{name:t,attributes:{[D.uT]:"navigation",[D.JD]:"auto.navigation.react.reactrouter_v3",[D.i_]:r,..."route"===r&&{[rv.B8_]:t}}})})})}}}function ud(e,t,r,n){let a=t.pathname;r({location:t,routes:e},(e,t,r)=>{if(e||!r)return n(a);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),r=-1;for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.path?.startsWith("/")){r=e;break}}return t.slice(r).reduce((e,{path:t})=>{let r="/"===e||""===e?t:`/${t}`;return`${e}${r}`},"")}(r.routes||[]);return 0===o.length||"/*"===o?n(a):n(a=o,"route")})}function uh(e,t={}){let r=(0,rd.dp)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:a=!0}=t;return{...r,afterAllSetup(t){r.afterAllSetup(t);let o=(t,r)=>{let n=e.matchRoutes(t,r,{preload:!1,throwOnError:!1}),a=n[n.length-1];return a?.routeId!=="__root__"?a:void 0},i=(t,r,n,a)=>{var o;let i;t.updateName(r?r.routeId:a),t.setAttribute(D.i_,r?"route":"url"),t.setAttributes({...r&&{[rv.B8_]:r.routeId},...(i=um(e,o=n),{[rv.mqy]:o.pathname,[rv.aVR]:i}),...ug(r)})},s=ti.jf.location;if(n&&s){let r=o(s.pathname,e.options.parseSearch(s.search)),n=(0,rd.Sx)(t,{name:r?r.routeId:s.pathname,attributes:{[D.uT]:"pageload",[D.JD]:"auto.pageload.react.tanstack_router",[D.i_]:r?"route":"url",...r&&{[rv.B8_]:r.routeId},...ug(r)}}),a=e.subscribe("onResolved",e=>{if(a(),!n)return;let{toLocation:t}=e;i(n,o(t.pathname,t.search),t,t.pathname)})}if(a){let r;e.subscribe("onBeforeLoad",n=>{let{toLocation:a,fromLocation:s}=n;if(!s||a.state===s.state)return;let l=o(a.pathname,a.search),u=ti.jf.location?.pathname||a.pathname;r?i(r,l,a,u):r=(0,rd.Nt)(t,{name:l?l.routeId:u,attributes:{[D.uT]:"navigation",[D.JD]:"auto.navigation.react.tanstack_router",[D.i_]:l?"route":"url",...l&&{[rv.B8_]:l.routeId},...ug(l)}},{url:um(e,a)})}),e.subscribe("onResolved",e=>{let t=r;if(r=void 0,!t)return;let{toLocation:n}=e,a=o(n.pathname,n.search);a&&i(t,a,n,ti.jf.location?.pathname||n.pathname)})}}}}function um(e,t){let r=e.options.stringifySearch?.(t.search)??"",n=`${t.pathname}${r&&"?"!==r?r:""}`;return(0,rg.L)(n)}function ug(e){if(!e)return{};let t={};
484return Object.entries(e.params).forEach(([e,r])=>{t[`url.path.params.${e}`]=r,t[rv.SsQ.replace("<key>",e)]=r,t[rv.zyW.replace("<key>",e)]=r}),t}function u_(e){let t=(0,rd.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),uv(e,o,i,r,"reactrouter_v4",n,a)}}}function uy(e){let t=(0,rd.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),uv(e,o,i,r,"reactrouter_v5",n,a)}}}function uv(e,t,r,n,a,o=[],i){function s(e){if(0===o.length||!i)return[e,"url"];for(let t of function e(t,r,n,a=[]){return t.some(t=>{let o=t.path?n(r,t):a.length?a[a.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===r};return o&&(a.push({route:t,match:o}),t.routes&&e(t.routes,r,n,a)),!!o}),a}(o,e,i))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=n.location?n.location.pathname:ti.jf.location?ti.jf.location.pathname:void 0;if(t){let[r,n]=s(t);(0,rd.Sx)(e,{name:r,attributes:{[D.uT]:"pageload",[D.JD]:`auto.pageload.react.${a}`,[D.i_]:n,..."route"===n&&{[rv.B8_]:r}}})}}r&&n.listen&&n.listen((t,r)=>{if(r&&("PUSH"===r||"POP"===r)){let[r,n]=s(t.pathname);(0,rd.Nt)(e,{name:r,attributes:{[D.uT]:"navigation",[D.JD]:`auto.navigation.react.${a}`,[D.i_]:n,..."route"===n&&{[rv.B8_]:r}}})}})}function ub(e){let t=e.displayName||e.name,r=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,r=function(){let e=(0,U.Bk)(),t=e&&(0,U.zU)(e);if(!t)return;let r=(0,U.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}();(0,j.o5)().setTransactionName(e),r&&(r.updateName(e),r.setAttributes({[D.i_]:"route",[rv.B8_]:e}))}return rs.createElement(e,{...t})};return r.displayName=`sentryRoute(${t})`,ur(r,e),r}function uE(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}let uw=new WeakMap;function uS(e,t){return void 0!==e&&void 0!==t&&(!!uT.test(t)||e===t)}function uR(e){return e.split("/").filter(Boolean)}let uT=/^:[\w-]+$/;function uP(e){let t=e.split("/"),r=t.length;for(let e of(t.includes("*")&&(r+=-2),t))if("*"===e)continue;else uT.test(e)?r+=3:""===e?r+=1:r+=10;return r}let uk=!1,ux=[];function uC(){let e=ux.length;return e>0?ux[e-1]??null:null}function uO(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function uA(e){return e.endsWith("*")}function uI(e){return e.includes("/*")||e.endsWith("*")}function uN(e,t){return uA(e)&&!!t.route.children?.length||!1}function uj(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function uM(e){return"/"===e[0]?e:`/${e}`}function uL(e,t){return uk?uE(e.pathname,t):e.pathname||""}function u$(e,t,r,n,a="",o,i){let l;if(i&&o&&o.length>0){let t=function(e,t,r){if(!e||!t?.length)return null;let n=r?uE(e,r):e,a=uw.get(t);for(let e of(!a&&(a=[...t].sort((e,t)=>{let r=uP(e);return uP(t)-r}),uw.set(t,a),ui&&b.Yz.log("[React Router] Sorted route manifest by specificity:",a.length,"patterns")),a))if(function(e,t){if("/"===t)return"/"===e||""===e;let r=uR(e),n=uR(t);if(n.length>0&&"*"===n[n.length-1]){let e=n.slice(0,-1);if(r.length<e.length)return!1;for(let[t,n]of e.entries())if(!uS(r[t],n))return!1;return!0}if(r.length!==n.length)return!1;for(let[e,t]of n.entries())if(!uS(r[e],t))return!1;return!0}(n,e))return ui&&b.Yz.log("[React Router] Matched pathname",n,"to pattern",e),e;return ui&&b.Yz.log("[React Router] No manifest match found for pathname:",n),null}(e.pathname,o,a);if(t)return[(uk?"":a)+t,"route"]}let u="url",c=function(e,t){let r=s(t,e);if(r)for(let e of r){var n;if(!(n=e.route).children&&n.element&&n.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,r);return c&&(l=uM(function e(t,r){let n=s(t,r);if(!n||0===n.length)return"";for(let o of n)if(o.route.path&&"*"!==o.route.path){var a;let n="*"===(a=o.route.path||"")[a.length-1]?a.slice(0,-1):a,i=uE(r.pathname,uM(o.pathnameBase));if(r.pathname===i)return uO(i);return uO(uO(n||"")+uM(e(t.filter(e=>e!==o.route),{pathname:i})))}return""}(r,e)),u="route"),c&&l||([l,u]=function(e,t,r,n=""){if(!e||0===e.length)return[uk?uE(t.pathname,n):t.pathname,"url"];if(!r)return[uL(t,n),"url"];let a="";for(let e of r){let r=e.route;if(!r)continue;if(r.index)return function(e,t,r){let n=e&&e.length>0?e:uk?uE(t,r):t,a="/*"===n.slice(-2)?n.slice(0,-2):n;return a.length>1&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),[a,"route"]}(a,e.pathname,n);let o=r.path;if(!o||uN(o,e))continue;let i="/"===o[0]||"/"===a[a.length-1]?o:`/${o}`;if(a=uO(a)+uM(i),uO(t.pathname)===uO(n+e.pathname)){if(uj(a)!==uj(e.pathname)&&!uA(a))return[(uk?"":n)+i,"route"];return uN(a,e)&&(a=a.slice(0,-1)),[(uk?"":n)+a,"route"]}}return[uL(t,n),"url"]}(t,e,n,a)),[l||e.pathname,u]}function uD(){let e=(0,U.Bk)(),t=e?(0,U.zU)(e):void 0;if(!t)return;let r=(0,U.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}function uU(e,t){if(e.handle&&"object"==typeof e.handle)for(let r of Object.keys(e.handle)){let n=e.handle[r];"function"!=typeof n||n.__sentry_proxied__||(e.handle[r]=function(e,t,r,n){let a=new Proxy(e,{apply(e,a,o){let i,s=function(){let e=uC();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==ti.jf)try{let e=ti.jf.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{ui&&b.Yz.warn("[React Router] Could not access window.location")}return null}(),l=(i=uC())?i.span:uD(),u=e.apply(a,o);return function(e,t,r,n,a,o){(0,et.Qg)(e)?e.then(e=>{Array.isArray(e)&&n(e,t,a??void 0,o)}).catch(e=>{ui&&b.Yz.warn(`Error resolving async handler '${r}' for route`,t,e)}):Array.isArray(e)&&n(e,t,a??void 0,o)}(u,t,r,n,s,l),u}});return(0,M.my)(a,"__sentry_proxied__",!0),a}(n,e,r,t))}if(Array.isArray(e.children))for(let r of e.children)uU(r,t)}let uz=!1,uF=3e3,uB="",uW=new WeakSet,uH=ti.jf?.document?rs.useLayoutEffect:rs.useEffect,uq=ne
484w WeakMap,uY=new Set,uJ=new WeakMap,uV=new WeakMap;function uG(e){ti.jf?.cancelAnimationFrame?ti.jf.cancelAnimationFrame(e):clearTimeout(e)}function uX(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function uK(e){return e.includes(":")||e.includes("*")}function uQ(e,t){let r=t.children||[],n=e.filter(e=>!r.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));n.length>0&&(t.children=[...r,...n])}function uZ(e,t){let r=uJ.get(e);r||(r=new Set,uJ.set(e,r)),r.add(t),t.finally(()=>{let r=uJ.get(e);r&&r.delete(t)})}function u0(e){let t=new Promise(t=>{uV.set(e,t)});uZ(e,t)}function u1(e,t,r=null,n){e.forEach(e=>{uY.add(e),uz&&uU(e,u1)}),t&&uQ(e,t);let a=n??uD();if(a){let e=(0,U.et)(a);if(e.timestamp){ui&&b.Yz.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,o=r;if(!o&&!n&&void 0!==ti.jf){let e=ti.jf.location;e?.pathname&&(o={pathname:e.pathname})}o&&("pageload"===t?ct({activeRootSpan:a,location:{pathname:o.pathname},routes:Array.from(uY),allRoutes:Array.from(uY)}):"navigation"===t&&u2(a,o,Array.from(uY),!1,f))}}function u2(e,t,r,n=!1,a){let o=(0,U.et)(e),i=o.description,s=e?.__sentry_navigation_name_set__,l=i&&uI(i);if((!s||n||l)&&!o.timestamp){let n=a(r,t),[u,c]=u$(t,r,r,n||[],uB,d,uz),p=o.data?.[D.i_];u&&(!i||!s&&("route"!==p||"route"===c)||"route"!==p&&"route"===c||"route"===p&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(D.i_,c),"route"===c&&e.setAttribute(rv.B8_,u),uI(u)||"route"!==c||(0,M.my)(e,"__sentry_navigation_name_set__",!0))}}function u4(e,t,r,n,a){let o=!1,i=!!a&&"pageload"===(0,U.et)(a).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!o){let t=uD();t&&"pageload"===(0,U.et)(t).op?i=!0:i&&("POP"!==e.historyAction||s?o=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&o){let a=uX(e.location),o=()=>{u!==a&&(u=a,l=null,u8({location:e.location,routes:t,navigationType:e.historyAction,version:r,basename:n,allRoutes:Array.from(uY)}))};if("idle"!==e.navigation.state)u!==a&&(u=null),null!==l&&uG(l),l=ti.jf?.requestAnimationFrame?ti.jf.requestAnimationFrame(o):setTimeout(o,0);else null!==l&&(uG(l),l=null),o()}})}function u5(e,t){return l&&u&&c&&f?function(r,n){if(ce(r),uz)for(let e of r)uU(e,u1);let a=uD();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&a&&((0,M.my)(a,"__sentry_may_have_lazy_routes__",!0),u0(a));let o=e(r,u7(n,!1,a)),i=n?.basename;return"POP"===o.state.historyAction&&a&&ct({activeRootSpan:a,location:o.state.location,routes:r,basename:i,allRoutes:Array.from(uY)}),uB=i||"",u4(o,r,t,i,a),o}:(ui&&b.Yz.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function u3(e,t){return l&&u&&c&&f?function(r,n){let a;if(ce(r),uz)for(let e of r)uU(e,u1);let o=uD();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&o&&((0,M.my)(o,"__sentry_may_have_lazy_routes__",!0),u0(o));let i=e(r,u7(n,!0,o)),s=n?.basename,l=n?.initialEntries,u=n?.initialIndex,c=l?.length===1,p=void 0!==u&&l?.[u],f=(a=c?l[0]:p?l[u]:void 0)?"string"==typeof a?{pathname:a}:a:i.state.location,d=uD();return"POP"===i.state.historyAction&&d&&ct({activeRootSpan:d,location:f,routes:r,basename:s,allRoutes:Array.from(uY)}),uB=s||"",u4(i,r,t,s,d),i}:(ui&&b.Yz.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function u6(e,t){let r=(0,rd.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:a,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:h,stripBasename:m,enableAsyncRouteHandlers:g=!1,instrumentPageLoad:_=!0,instrumentNavigation:y=!0,lazyRouteTimeout:v,lazyRouteManifest:E}=e;return{...r,setup(t){r.setup(t);let _=e.finalTimeout??3e4,y=(e.idleTimeout??1e3)*3,w=v??y;w===1/0?(uF=_,ui&&b.Yz.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",_,"ms to prevent indefinite hangs")):Number.isNaN(w)?(ui&&b.Yz.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",y),uF=y):w<0?(ui&&b.Yz.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",w,"falling back to:",y),uF=y):uF=w,l=n,u=a,c=o,f=h,p=i,uz=g,d=E,function(e,t=!1){s=e,uk=t}(h,m||!1)},afterAllSetup(e){r.afterAllSetup(e);let n=ti.jf.location?.pathname;_&&n&&(0,rd.Sx)(e,{name:n,attributes:{[D.i_]:"url",[D.uT]:"pageload",[D.JD]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),y&&uW.add(e)}}}function u9(e,t){if(!l||!u||!c||!f)return ui&&b.Yz.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
484cause of one or more missing parameters."),e;let r=r=>{let n=rs.useRef(!0),{routes:a,locationArg:o}=r,i=e(a,o),s=u(),l=c(),p="string"==typeof o||o?.pathname?o:s;return uH(()=>{let e="string"==typeof p?{pathname:p}:p;n.current?(ce(a),ct({activeRootSpan:uD(),location:e,routes:a,allRoutes:Array.from(uY)}),n.current=!1):u8({location:e,routes:a,navigationType:l,version:t,allRoutes:Array.from(uY)})},[l,p]),i};return(e,t)=>rs.createElement(r,{routes:e,locationArg:t})}function u7(e,t=!1,r){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let n=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let a=e?.path,o=uD()??r;if(!t){let t=e?.patch,r=e?.matches;t&&(e.patch=(e,n)=>{if(ce(n),r&&r.length>0){let t=r[r.length-1],a=t?.route;if(a){let t=Array.from(uY).find(t=>{let r=void 0!==t.id&&t.id===e,n=t===a,o=void 0!==t.path&&void 0!==a.path&&t.path===a.path;return r||n||o});t&&uQ(n,t)}}let i=o?(0,U.et)(o):void 0;return a&&o&&i&&!i.timestamp&&"navigation"===i.op&&u2(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(uY),!0,f),t(e,n)})}let i=(async()=>{let t,r,i=(r={},ux.length>=10&&(ui&&b.Yz.warn("[React Router] Navigation context stack overflow - removing oldest context"),ux.shift()),ux.push({token:r,targetPath:a,span:o}),r);try{t=await n(e)}finally{let e,t;e=ux[ux.length-1],e?.token===i&&ux.pop(),o&&(t=uV.get(o))&&(t(),uV.delete(o),o.__sentry_may_have_lazy_routes__&&(o.__sentry_may_have_lazy_routes__=!1))}let s=o?(0,U.et)(o):void 0;return o&&s&&!s.timestamp&&"navigation"===s.op&&a&&u2(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(uY),!1,f),t})();return o&&uZ(o,i),i}}}function u8(e){let{location:t,routes:r,navigationType:n,version:a,matches:o,basename:i,allRoutes:s}=e,l=Array.isArray(o)?o:f(s||r,t,i),u=(0,j.KU)();if(!u||!uW.has(u))return;let c=uD();if((!c||"pageload"!==(0,U.et)(c).op||"POP"!==n)&&("PUSH"===n||"POP"===n)&&l){let e,[n,o]=u$(t,s||r,s||r,l,i,d,uz),c=uX(t),p=uq.get(u),f=!!p&&!p.isPlaceholder&&!!(0,U.et)(p.span).timestamp,{skip:h,shouldUpdate:m}=function(e,t,r,n){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!n)){let t=!!e.routeName&&uI(e.routeName),n=uI(r),a=!!e.routeName&&uK(e.routeName),o=uK(r),i=r!==e.routeName&&r.length>(e.routeName?.length||0)&&!n;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!n||!a&&o||i))}}return{skip:!1,shouldUpdate:!1}}(p,c,n,f);if(h){if(m&&p){let e=p.routeName;p.isPlaceholder?(p.routeName=n,ui&&b.Yz.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${n}" (will apply to real span)`)):(p.span.updateName(n),p.span.setAttribute(D.i_,o),"route"===o&&p.span.setAttribute(rv.B8_,n),(0,M.my)(p.span,"__sentry_navigation_name_set__",!0),p.routeName=n,ui&&b.Yz.log(`[Tracing] Updated navigation span name from "${e}" to "${n}"`))}else ui&&b.Yz.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let g={span:{end:()=>{}},routeName:n,pathname:t.pathname,locationKey:c,isPlaceholder:!0};uq.set(u,g);try{e=(0,rd.Nt)(u,{name:g.routeName,attributes:{[D.i_]:o,[D.uT]:"navigation",[D.JD]:`auto.navigation.react.reactrouter${a?`_v${a}`:""}`,..."route"===o&&{[rv.B8_]:g.routeName}}})}catch(e){throw uq.delete(u),e}e?(uq.set(u,{span:e,routeName:g.routeName,pathname:t.pathname,locationKey:c}),cn(e,t,r,i,"navigation")):uq.delete(u)}}function ce(e){e.forEach(e=>{(function e(t,r=new Set){return r.has(t)||(r.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,r).forEach(e=>{r.add(e)})})),r})(e).forEach(e=>{uY.add(e)})})}function ct({activeRootSpan:e,location:t,routes:r,matches:n,basename:a,allRoutes:o}){let i=Array.isArray(n)?n:f(o||r,t,a);if(i){let[n,s]=u$(t,o||r,o||r,i,a,d,uz);(0,j.o5)().setTransactionName(n||"/"),e&&(e.updateName(n),e.setAttribute(D.i_,s),"route"===s&&e.setAttribute(rv.B8_,n),cn(e,t,r,a,"pageload"))}else e&&cn(e,t,r,a,"pageload")}function cr(e,t,r,n,a,o,i,s){try{let l=t.data?.[D.i_];if("route"===l&&r&&!uI(r))return;let u=Array.from(s),c=u.length>0?u:a,p=f(c,n,o);if(!p)return;let[h,m]=u$(n,c,c,p,o,d,uz),g=function(e,t,r,n,a=!1){return!!r&&(!!(!e&&a||e&&uI(e)&&"route"===n&&!uI(r))||"route"!==t&&"route"===n)}(r,l,h,m,!0),_="pageload"===i||!t.timestamp;g&&_&&(e.updateName(h),e.setAttribute(D.i_,m),"route"===m&&e.setAttribute(rv.B8_,h))}catch(e){ui&&b.Yz.warn(`Error updating span details before ending: ${e}`)}}function cn(e,t,r,n,a){let o=`__sentry_${a}_end_patched__`;if(e?.[o]||!e.end)return;let i=e.end.bind(e),s=!1;e.end=function(...o){if(s)return;s=!0;let l=o.length>0?o[0]:Date.now()/1e3,u=(0,U.et)(e),c=u.description,p=u.data?.[D.i_],f=()=>{let t=(0,j.KU)();if(t&&"navigation"===a){let r=uq.get(t);r&&r.span===e&&uq.delete(t)}},d=uJ.get(e),h=e.__sentry_may_have_lazy_routes__;if((d&&d.size>0||h)&&c&&(uI(c)||"route"!==p)){let o;if(0===uF){cr(e,u,c,t,r,n,a,uY),f(),i(l);return}let s=new Promise(e=>setTimeout(e,uF));if(d&&d.size>0){let e=Promise.allSettled(d).then(()=>{});o=uF===1/0?e:Promise.race([e,s])}else o=s;o.then(()=>{let o=(0,U.et)(e);cr(e,o,o.description,t,r,n,a,uY),f(),i(l)}).catch(()=>{f(),i(l)});return}cr(e,u,c,t,r,n,a,uY),f(),i(l)},(0,M.my)(e,o,!0)}function ca(e,t){if(!l||!u||!c||!p||!f)return ui&&b.Yz.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters. 485 useEffect: ${l}. useLocation: ${u}. useNavigationType: ${c}. 486 createRoutesFromChildren: ${p}. matchRoutes: ${f}.`),e;let r=r=>{let n=rs.useRef(!0),a=u(),o=c();return uH(()=>{let e=p(r.children);n.current?(ce(e),ct({activeRootSpan:uD(),location:a,routes:e,allRoutes:Array.from(uY)}),n.current=!1):u8({location:a,routes:e,navigationType:o,version:t,allRoutes:Array.from(uY)})},[a,o]),rs.createElement(e,{...r})};return ur(r,e),r}function co(e){return u6(e,"6")}function ci(e){return u9(e,"6")}function cs(e){return u5(e,"6")}function cl(e){return u3(e,"6")}function cu(e){return ca(e,"6")}function cc(e){return u6(e,"7")}function cp(e){return ca(e,"7")}function cf(e){return u5(e,"7")}function cd(e){return u3(e,"7")}function ch(e){return u9(e,"7")}function cm(e){return u6(e,"")}function cg(e){return ca(e,"")}function c_(e){return u5(e,"")}function cy(e){return u3(e,"")}function cv(e){return u9(e,"")}function cb(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch{}return t}function cE(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r?t[e]=r:"number"==typeof r&&(t[e]=String(r))})}catch{}return t}function cw(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),n=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",o=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:n}),i=e.body||void 0,s=e.cookies;return{url:o,method:e.method,query_string:cS(a),headers:cE(t),cookies:s,data:i}}function cS(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 cR(){try{ru.T&&b.Yz.log("Flushing events..."),await (0,S.bX)(2e3),ru.T&&b.Yz.log("Done flushing events")}catch(e){ru.T&&b.Yz.log("Error while flushing events:\n",e)}}function cT(e){var t;"function"==typeof cP()?.waitUntil?(t=e,cP()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=v.O[Symbol.for("@vercel/request-context")],r=t?.get?.();r?.waitUntil&&r.waitUntil(e)}(e)}function cP(){let e=Symbol.for("__cloudflare-context__");return v.O[e]?.ctx}function ck(e,t,r){(0,j.v4)(n=>{n.setSDKProcessingMetadata({normalizedRequest:{headers:cE(t.headers),method:t.method}}),n.setContext("nextjs",{request_path:t.path,router_kind:r.routerKind,router_path:r.routePath,route_type:r.routeType}),n.setTransactionName(`${t.method} ${r.routePath}`),(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),cT(cR())})}async function cx(e){let{req:t,res:r,err:n}=e,a=r?.statusCode||e.statusCode;if(a&&a<500||!e.pathname)return;if(n&&(0,k.dO)(n)){cT(cR());let e="object"==typeof n?n.__sentry_event_id__:void 0;return"string"==typeof e?((0,j.rm)().setLastEventId(e),e):(0,j.rm)().lastEventId()}let o=(0,j.v4)(e=>{if(t){let r=cw(t);e.setSDKProcessingMetadata({normalizedRequest:r})}
486return(0,S.Cp)(n||`_error.js called with falsy error (${n})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return cT(cR()),o}var cC=r(32506),cO=r(7797),cA=r(41463);function cI(){return cA.env.NEXT_PHASE===cO.PHASE_PRODUCTION_BUILD}function cN(e){let t=cI(),r=!!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),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return r&&ru.T&&b.Yz.log("Skipping span creation in Cache Components context"),t||r}function cj(){return new cC.w({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function cM(e,t){return cN(t)?t(cj()):(0,aH.Lk)(e,t)}function cL(e,t){if(cN(t)){let e=cj();return t(e,()=>e.end())}return(0,aH.nV)(e,t)}function c$(e){return cN()?cj():(0,aH.Uk)(e)}function cD(...e){if("function"==typeof e[1]){let[t,r]=e;return cU(t,{},r)}{let[t,r,n]=e;return cU(t,r,n)}}async function cU(e,t,r){return(0,j.rB)(async n=>{let a,o,i=(0,j.KU)()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),s={};try{let e=await t.headers;a=e?.get("sentry-trace")??void 0,o=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{ru.T&&b.Yz.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return n.setTransactionName(`serverAction/${e}`),n.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,U.Bk)()?(e,t)=>t():aH.V4)({sentryTrace:a,baggage:o},async()=>{try{return await (0,aH.Lk)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[D.i_]:"route",[D.JD]:"auto.function.nextjs.server_action"}},async e=>{let n=await (0,im.x)(r,t=>
486{rp(t)?e.setStatus({code:aG.TJ,message:"not_found"}):rf(t)?(e.setStatus({code:aG.F3}),e.end()):(e.setStatus({code:aG.TJ,message:"internal_error"}),(0,S.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:i)&&(0,j.rm)().setExtra("server_action_result",n),t.formData&&t.formData.forEach((e,t)=>{(0,j.rm)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),n})}finally{cT(cR())}})})}function cz(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a;if(!n?.[0])return e.apply(r,n);let[o]=n,i="nextUrl"in o?o.nextUrl.pathname:o.url,s="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(r,n);let l=t.find(e=>e.path===i);if(!l?.path||!l.schedule)return e.apply(r,n);let u=l.path,c=(0,S.SE)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),p=(0,ej.Wk)()/1e3,f=()=>{(0,S.SE)({checkInId:c,monitorSlug:u,status:"error",duration:(0,ej.Wk)()/1e3-p})};try{a=e.apply(r,n)}catch(e){throw f(),e}return(0,et.Z4)(a)&&"then"in a?Promise.resolve(a).then(()=>{(0,S.SE)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ej.Wk)()/1e3-p})},()=>{f()}):(0,S.SE)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ej.Wk)()/1e3-p}),a}})}function cF(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,S.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function cB(e,t,r,n){return async function(...r){let a=cw(t);(0,j.o5)().setTransactionName(`${n.dataFetchingMethodName} (${n.dataFetcherRouteName})`),(0,j.rm)().setSDKProcessingMetadata({normalizedRequest:a});let o=(0,U.Bk)();o&&"/_error"!==n.requestedRouteName&&(0,U.zU)(o).setAttribute("sentry.route_backfill",n.requestedRouteName);let{"sentry-trace":i,baggage:s}=(0,o7.i)();return{sentryTrace:i,baggage:s,data:await e.apply(this,r)}}}async function cW(e,t){try{return await e(...t)}catch(e){throw(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function cH(e){return new Proxy(e,{apply:async(e,t,r)=>{if(cI())return e.apply(t,r);let[n]=r,{req:a,res:o}=n.ctx,i=cF(e);if(!a||!o)return i.apply(t,r);{let e=cB(i,a,o,{dataFetcherRouteName:"/_app",requestedRouteName:n.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})}function cq(e){return new Proxy(e,{apply:async(e,t,r)=>{if(cI())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=cF(e);if(!a||!o)return i.apply(t,r);{let e=cB(i,a,o,{dataFetcherRouteName:"/_document",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,r);return s}}})}function cY(e){return new Proxy(e,{apply:async(e,t,r)=>{if(cI())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=cF(e);if(!a||!o)return i.apply(t,r);{let e=cB(i,a,o,{dataFetcherRouteName:"/_error",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function cJ(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a,o=(0,j.rm)();try{a=t.requestAsyncStorage?.getStore()?.headers}catch{}let i=a?cb(a):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),(0,im.x)(()=>e.apply(r,n),e=>{let r=(0,U.Bk)(),{componentRoute:n,componentType:a,generationFunctionIdentifier:i}=t,s=!0;o.setTransactionName(`${a}.${i} (${n})`),r&&(rp(e)?(s=!1,r.setStatus({code:aG.TJ,message:"not_found"})):rf(e)?(s=!1,r.setStatus({code:aG.F3})):r.setStatus({code:aG.TJ,message:"internal_error"})),s&&(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:i}}})},()=>{cT(cR())})}})}function cV(e){return new Proxy(e,{apply:async(e,t,r)=>{if(cI())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=cF(e);if(!a||!o)return i.apply(t,r);{let e=cB(i,a,o,{dataFetcherRouteName:n.pathname,requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function cG(e,t){return new Proxy(e,{apply:async(e,r,n)=>{if(cI())return e.apply(r,n);let[a]=n,{req:o,res:i}=a,s=cB(cF(e),o,i,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(r,n);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})}function cX(e,t){return new Proxy(e,{apply:async(e,t,r)=>cI()?e.apply(t,r):cW(cF(e),r)})}var cK=r(17624);function cQ(e){return new Proxy(e,{apply:async(e,t,r)=>{let n="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(n&&"string"==typeof n){let e=r[0];if(e instanceof Request){var a;if((a=new URL(e.url).pathname)===n||a.startsWith(`${n}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return(0,j.rB)(n=>{let a,o,i=r[0],s=(0,j.o5)();if(i instanceof Request){let e;n.setSDKProcessingMetadata({normalizedRequest:(e=cb(i.headers),{method:i.method,url:i.url,query_string:cS(i.url),headers:e})}),a=`middleware ${i.method}`,o="url"}else a="middleware",o="component";s.setTransactionName(a);let l=(0,U.Bk)();if(l){a="middleware",o="component";let e=(0,U.zU)(l);e&&(0,cK.d_)(e,s,n)}return(0,aH.Lk)({name:a,op:"http.server.middleware",attributes:{[D.i_]:o,[D.JD]:"auto.function.nextjs.wrap_middleware"}},()=>(0,im.x)(()=>e.apply(t,r),e=>{(0,S.Cp)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{cT(cR())}))})}})}var cZ=r(2140);function c0(e,t){(0,et.Z4)(e)&&(0,M.my)(e,"__sentry_event_id__",t)}function c1(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,j.rB)(()=>{let t=(0,j.o5)(),r=(0,et.Z4)(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(r){let e=(0,cZ.nc)(r);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=(0,S.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw c0(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,r)=>(0,j.rB)(()=>{let n=(0,j.o5)(),a=r?.[0]?._sentryTraceData;if(a){let e=(0,cZ.nc)(a);n.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,r)}catch(t){let e=(0,S.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw c0(t,e),t}})}):e}function c2(e,t){let{method:r,parameterizedRoute:n,headers:a}=t;return new Proxy(e,{apply:async(e,t,a)=>{let o=(0,U.Bk)(),i=o?(0,U.zU)(o):void 0;return(0,j.rB)((0,j.rm)(),()=>(0,j.v4)(async s=>{s.setTransactionName(`${r} ${n}`);let l=await (0,im.x)(()=>e.apply(t,a),e=>{rf(e)||(rp(e)?(o&&(0,aG.N8)(o,404),i&&(0,aG.N8)(i,404)):(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{cT(cR())});try{l.status&&(o&&(0,aG.N8)(o,l.status),i&&(0,aG.N8)(i,l.status))}catch{}return l}))}})}function c4(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a=(0,j.rm)(),o=t.headers?cb(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),(0,im.x)(()=>e.apply(r,n),e=>{let r=(0,U.Bk)(),{componentRoute:n,componentType:o}=t,i=!0;a.setTransactionName(`${o} Server Component (${n})`),r&&(rp(e)?(i=!1,r.setStatus({code:aG.TJ,message:"not_found"})):rf(e)?(i=!1,r.setStatus({code:aG.F3})):r.setStatus({code:aG.TJ,message:"internal_error"})),i&&(0,S.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{cT(cR())})}})}},95167:e=>{"use strict";e.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},95280:(e,t,r)=>{"use strict";
486Object.defineProperty(t,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return p},getDynamicParam:function(){return c},interpolateParallelRouteParams:function(){return u},parseMatchedParameter:function(){return d},parseParameter:function(){return f}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(72299),i=r(41356),s=r(2244),l=r(67640);function u(e,t,r,n){let a=structuredClone(t),u=[{tree:e,depth:0}],c=(0,s.parseNormalizedAppRoute)(r);for(;u.length>0;){let{tree:e,depth:t}=u.pop(),{segment:r,parallelRoutes:p}=(0,i.parseLoaderTree)(e),f=(0,s.parseAppRouteSegment)(r);if(f?.type==="dynamic"&&!a.hasOwnProperty(f.param.paramName)&&!n?.has(f.param.paramName)){let{paramName:e,paramType:r}=f.param,n=(0,l.resolveParamValue)(e,r,t,c,a);if(void 0!==n)a[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new o.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let d=t;for(let e of(f&&"route-group"!==f.type&&"parallel-route"!==f.type&&d++,Object.values(p)))u.push({tree:e,depth:d})}return a}function c(e,t,r,n,a){let i=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!i||0===i.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,a]};throw Object.defineProperty(new o.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let s=Array.isArray(i)?i.join("/"):i;return{param:t,value:i,treeSegment:[t,s,r,a],type:r}}let p=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function f(e){let t=e.match(p);return t?d(t[2]):d(e)}function d(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},97826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(10857),a=r(45729);function o({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let o=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?i[e]=t.split("/").map(e=>o(e)):i[e]=o(t))}return i})}},98910:(e,t)=>{"use strict";function r(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return 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.