PageSourceSearch

https://www.lesswrong.com/_next/static/immutable/chunks/1xcvhafyo9y-q.js

js lesswrong.com collected 2026-09-24 08:26:58 UTC 604,366 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b4d85701-59c4-77cf-d06b-e1a8f569aee0")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,535192,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addLocale",{enumerable:!0,get:function(){return r}}),e.r(82823);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},827018,(e,t,n)=>{"use strict";function r(e,t){return e}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removeLocale",{enumerable:!0,get:function(){return r}}),e.r(572463),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},885305,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},741961,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return o}});let r=e.r(808341);function o(e,t,n){return new Promise((n,o)=>{let a=!1;e.then(e=>{a=!0,n(e)}).catch(o),(0,r.requestIdleCallback)(()=>setTimeout(()=>{a||o(t)},3800))})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},490758,(e,t,n)=>{"use strict";let r;Object.defineProperty(n,"__esModule",{value:!0});var o={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return h},markAssetError:function(){return f}};for(var a in o)Object.defineProperty(n,a,{enumerable:!0,get:o[a]});e.r(555682),e.r(957473);let i=e.r(87831),s=e.r(808341),l=e.r(543369),c=e.r(309885),u=e.r(741961);function d(e,t,n){let r,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{r=e});return t.set(e,{resolve:r,future:a}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):a}let p=Symbol("ASSET_LOAD_ERROR");function f(e){return Object.defineProperty(e,p,{})}function h(e){return e&&p 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,u.resolvePromiseWithTimeout)(e,f(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),r)}function _(e,t){return g().then(n=>{if(!(t in n))throw f(Object.defineProperty(Error("Failed to lookup route: ".concat(t)),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let r=n[t].map(t=>e+"/_next/"+(0,c.encodeURIPath)(t));return{scripts:r.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:r.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function y(e){let t=new Map,n=new Map,o=new Map,a=new Map;function i(e){{var t;let r=n.get(e.toString());return r?r:document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(f(Object.defineProperty(Error("Failed to load script: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,
2configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r)}}function l(e){let t=o.get(e);return t||o.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw f(e)})),t}return{whenEntrypoint:e=>d(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),a.delete(e))})},loadRoute(n,o){return d(n,a,()=>{let a;return(0,u.resolvePromiseWithTimeout)(_(e,n).then(e=>{let{scripts:r,css:o}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(i)).then(e=>e),Promise.all(o.map(l))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),f(Object.defineProperty(Error("Route did not complete loading: ".concat(n)),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),r).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(o)throw e;return{error:e}}).finally(()=>null==a?void 0:a())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,o)=>{let a='\n      link[rel="prefetch"][href^="'.concat(t,'"],\n      link[rel="preload"][href^="').concat(t,'"],\n      script[src^="').concat(t,'"]');if(document.querySelector(a))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>o(f(Object.defineProperty(Error("Failed to prefetch: ".concat(t)),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,s.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},922737,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},o=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function a(e){return["async","defer","noModule"].includes(e)}function i(e,t){for(let[n,i]of Object.entries(t)){if(!t.hasOwnProperty(n)||o.includes(n)||void 0===i)continue;let s=r[n]||n.toLowerCase();"SCRIPT"===e.tagName&&a(s)?e[s]=!!i:e.setAttribute(s,String(i)),(!1===i||"SCRIPT"===e.tagName&&a(s)&&(!i||"false"===i))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},849575,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-4,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 n=1;n<=this.numHashes;n++){let r=function(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),0x5bd1e995),t^=t>>>
213,t=Math.imul(t,0x5bd1e995);return t>>>0}("".concat(e).concat(n))%this.numBits;t.push(r)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},309885,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},2160,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"escapeStringRegexp",{enumerable:!0,get:function(){return a}});let r=/[|\\{}()[\]^$+*?.-]/,o=/[|\\{}()[\]^$+*?.-]/g;function a(e){return r.test(e)?e.replace(o,"\\$&"):e}},742732,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext({})},519083,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return i},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},i=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function c(e){return e.replace(i,e=>a[e])}function u(e){return e.replace(l,e=>s[e])}},479520,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return y}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(555682),i=e.r(190809),s=e.r(843476),l=a._(e.r(174080)),c=i._(e.r(271645)),u=e.r(742732),d=e.r(922737),p=e.r(808341),f=e.r(519083),h=new Map,m=new Set,g=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,p=n||t;if(p&&m.has(p))return;if(h.has(t)){m.add(p),h.get(t).then(r,c);return}let f=()=>{o&&o(),m.add(p)},g=document.createElement("script"),_=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),f()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(g.innerHTML=a.__html||"",f()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",f()):t&&(g.src=t,h.set(t,_)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(u),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.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:n="",onLoad:r=()=>{},onReady:o=null,strategy:a="afterInteractive",onError:i,stylesheets:d,...h}=e,{updateScripts:_,scripts:y,getIsSsr:v,appDir:b,nonce:S}=(0,c.useContext)(u.HeadManagerContext);S=h.nonce||S;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;w.current||(o&&e&&m.has(e)&&o(),w.current=!0)},[o,t,n]);let E=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!E.current){if("afterInteractive"===a)g(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}));E.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(_?(y[a]=(y[a]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:i,...h,nonce:S}]),_(y)):v&&v()?m.add(t||n):v&&!v()&&g({...e,nonce:S}
2)),b){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!n)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat((0,f.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}])),")")}});else return l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:S,crossOrigin:h.crossOrigin}:{as:"script",nonce:S,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat((0,f.htmlEscapeJsonString)(JSON.stringify([n,{...h,id:t}])),")")}});"afterInteractive"===a&&n&&l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:S,crossOrigin:h.crossOrigin}:{as:"script",nonce:S,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let b=v;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},816565,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getObjectClassLabel:function(){return a},isPlainObject:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});function a(e){return Object.prototype.toString.call(e)}function i(e){if("[object Object]"!==a(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},302023,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return i},getProperError:function(){return s}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(816565);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function s(e){let t;return i(e)?e:Object.defineProperty(Error((0,a.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}return n})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},152539,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addPathSuffix",{enumerable:!0,get:function(){return o}});let r=e.r(572463);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:a}=(0,r.parsePath)(e);return"".concat(n).concat(t).concat(o).concat(a)}},95524,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addLocale",{enumerable:!0,get:function(){return a}});let r=e.r(541858),o=e.r(59084);function a(e,t,n,a){if(!t||t===n)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/".concat(t.toLowerCase())))?e:(0,r.addPathPrefix)(e,"/".concat(t))}},230283,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let r=e.r(938281),o=e.r(541858),a=e.r(152539),i=e.r(95524);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,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},865941,(e,t,n)=>{"use strict";function r(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let o=n[r];if("query"===o){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let o=n[r];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"compareRouterStates",{enumerable:!0,get:function(){return r}})},195057,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:n}=e,r=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"[".concat(n,"]"):n),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&"?".concat(l)||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||i.test(r))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),"".concat(r).concat(c).concat(o).concat(u).
2concat(s)}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},957473,(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):e)+t}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}})},87831,(e,t,n)=>{"use strict";let r;function o(e){var t;return(null==(t=function(){if(void 0===r&&"u">typeof window){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return o}}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},808341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return a}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});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)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},51506,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"interpolateAs",{enumerable:!0,get:function(){return a}});let r=e.r(841820),o=e.r(862735);function a(e,t,n){let a="",i=(0,o.getRouteRegex)(e),s=i.groups,l=(t!==e?(0,r.getRouteMatcher)(i)(t):"")||n;a=e;let c=Object.keys(s);return c.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=s[e],o="[".concat(n?"...":"").concat(e,"]");return r&&(o="".concat(!t?"/":"","[").concat(o,"]")),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(a=a.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},57192,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"resolveHref",{enumerable:!0,get:function(){return f}});let r=e.r(998183),o=e.r(195057),a=e.r(18556),i=e.r(934109),s=e.r(82823),l=e.r(573668),c=e.r(660180),u=e.r(51506),d=e.r(862735),p=e.r(841820);function f(e,t,n){let f,h="string"==typeof t?t:(0,o.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 '".concat(h,"' passed to next/router in page: '").concat(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 n?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let n=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(n)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,u.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,s)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[h]:h}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
2dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},210648,(e,t,n)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isAPIRoute",{enumerable:!0,get:function(){return r}})},285777,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=e.r(591463),o=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return((0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):o.test(e)}},660180,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getSortedRouteObjects:function(){return a.getSortedRouteObjects},getSortedRoutes:function(){return a.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(95284),i=e.r(285777)},572263,(e,t,n)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizePathSep",{enumerable:!0,get:function(){return r}})},881672,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let r=e.r(660180),o=e.r(572263);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},927711,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizeLocalePath",{enumerable:!0,get:function(){return o}});let r=new WeakMap;function o(e,t){let n;if(!t)return{pathname:e};let o=r.get(t);o||(o=t.map(e=>e.toLowerCase()),r.set(t,o));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),s=o.indexOf(i);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},226098,(e,t,n)=>{"use strict";function r(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}})},573668,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(934109),o=e.r(652817);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},18556,(e,t,n)=>{"use strict";function r(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"omit",{enumerable:!0,get:function(){return r}})},370422,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"parseLoaderTree",{enumerable:!0,get:function(){return o}});let r=e.r(813258);function o(e){let[t,n,o,a]=e,{layout:i,template:s}=o,{page:l}=o;l=t===r.DEFAULT_SEGMENT_KEY?o.defaultPage:l;let c=(null==i?void 0:i[1])||(null==s?void 0:s[1])||(null==l?void 0:l[1]);return{page:l,segment:t,modules:o,conventionPath:c,parallelRoutes:n,staticSiblings:a}}},401643,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(591463);function i(e){let t=a.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-".concat(t):"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?"dynamic-intercepted-".concat(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,n=!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,n=!0}return{repeat:t,optional:n}}},31027,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={isInterceptionAppRoute:function(){return u},isNormalizedAppRoute:function(){return c},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return f},parseNormalizedAppRoute:function(){return p}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(312718),i=e.r(401643),s=e.r(591463);function l(e){if(""===e)return null;
2let t=s.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),n=(0,i.getSegmentParam)(e);return n?{type:"dynamic",name:e,param:n,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 c(e){return e.normalized}function u(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){let n,r,o,s=e.split("/").filter(Boolean),c=[];for(let u 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}}(u));if(s){if("route-group"===s.type&&!(2&t))throw Object.defineProperty(new a.InvariantError("".concat(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 a.InvariantError("".concat(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(c.push(s),s.interceptionMarker){let a=e.split(s.interceptionMarker);if(2!==a.length)throw Object.defineProperty(Error("Invalid interception route: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});r=d(a[0],t),o=d(a[1],t),n=s.interceptionMarker}}}let u=c.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:c,dynamicSegments:u,interceptionMarker:n,interceptingRoute:r,interceptedRoute:o}}function p(e){return d(e,0)}function f(e){return d(e,1)}},254395,(e,t,n)=>{"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(n,"__esModule",{value:!0}),Object.defineProperty(n,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return r}})},746857,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"resolveParamValue",{enumerable:!0,get:function(){return a}});let r=e.r(312718),o=e.r(254395);function a(e,t,n,a,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=n;e<a.segments.length;e++){let r=a.segments[e];if("static"===r.type){let a=r.name,i=(0,o.interceptionPrefixFromParamType)(t);i&&e===n&&i===r.interceptionMarker&&(a=a.replace(r.interceptionMarker,"")),s.push(a)}else{if(!i.hasOwnProperty(r.param.paramName)){if("optional-catchall"===r.param.paramType)break;return}let e=i[r.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 r.InvariantError('Unexpected empty path segments match for a route "'.concat(a.pathname,'" with param "').concat(e,'" of type "').concat(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(n<a.segments.length){let e=a.segments[n];if("dynamic"===e.type&&!i.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?i[e.param.paramName]:(0,o.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},753015,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return c},parseMatchedParameter:function(){return f},parseParameter:function(){return p}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(312718),i=e.r(370422),s=e.r(31027),l=e.r(746857);function c(e,t,n,r){let o=structuredClone(t),c=[{tree:e,depth:0}],u=(0,s.parseNormalizedAppRoute)(n);for(;c.length>0;){let{tree:e,depth:t}=c.pop(),{segment:n,parallelRoutes:d}=(0,i.parseLoaderTree)(e),p=(0,s.parseAppRouteSegment)(n);if((null==p?void 0:p.type)==="dynamic"&&!o.hasOwnProperty(p.param.paramName)&&!(null==r?void 0:r.has(p.param.paramName))){let{paramName:e,paramType:n}=p.param,r=(0,l.resolveParamValue)(e,n,t,u,o);if(void 0!==r)o[e]=r;else if("optional-catchall"!==n)throw Object.defineProperty(new a.InvariantError("Could not resolve param value for segment: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,
2configurable:!0})}let f=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&f++,Object.values(d)))c.push({tree:e,depth:f})}return o}function u(e,t,n,r,o){let i=function(e,t,n){let r=e[t];if(null==n?void 0:n.has(t)){let[e]=n.get(t);r=e}else Array.isArray(r)?r=r.map(e=>encodeURIComponent(e)):"string"==typeof r&&(r=encodeURIComponent(r));return r}(e,t,r);if(!i||0===i.length){if("oc"===n)return{param:t,value:null,type:n,treeSegment:[t,"",n,o]};throw Object.defineProperty(new a.InvariantError('Missing value for segment key: "'.concat(t,'" with dynamic param type: ').concat(n)),"__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,n,o],type:n}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?f(t[2]):f(e)}function f(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}},862735,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return d}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(663416),i=e.r(591463),s=e.r(2160),l=e.r(938281),c=e.r(753015);function u(e,t,n){let r={},o=1,a=[];for(let u of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),l=u.match(c.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:n,repeat:i}=(0,c.parseMatchedParameter)(l[2]);r[t]={pos:o++,repeat:i,optional:n},a.push("/".concat((0,s.escapeStringRegexp)(e),"([^/]+?)"))}else if(l&&l[2]){let{key:e,repeat:t,optional:i}=(0,c.parseMatchedParameter)(l[2]);r[e]={pos:o++,repeat:t,optional:i},n&&l[1]&&a.push("/".concat((0,s.escapeStringRegexp)(l[1])));let u=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";n&&l[1]&&(u=u.substring(1)),a.push(u)}else a.push("/".concat((0,s.escapeStringRegexp)(u)));t&&l&&l[3]&&a.push((0,s.escapeStringRegexp)(l[3]))}return{parameterizedRoute:a.join(""),groups:r}}function d(e){let{includeSuffix:t=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{parameterizedRoute:o,groups:a}=u(e,t,n),i=o;return r||(i+="(?:/)?"),{re:new RegExp("^".concat(i,"$")),groups:a}}function p(e){let t,{interceptionMarker:n,getSafeRouteKey:r,segment:o,routeKeys:a,keyPrefix:i,backreferenceDuplicateKeys:l}=e,{key:u,optional:d,repeat:p}=(0,c.parseMatchedParameter)(o),f=u.replace(/\W/g,"");i&&(f="".concat(i).concat(f));let h=!1;(0===f.length||f.length>30)&&(h=!0),isNaN(parseInt(f.slice(0,1)))||(h=!0),h&&(f=r());let m=f in a;i?a[f]="".concat(i).concat(u):a[f]=u;let g=n?(0,s.escapeStringRegexp)(n):"";return t=m&&l?"\\k<".concat(f,">"):p?"(?<".concat(f,">.+?)"):"(?<".concat(f,">[^/]+?)"),{key:u,pattern:d?"(?:/".concat(g).concat(t,")?"):"/".concat(g).concat(t),cleanedKey:f,optional:d,repeat:p}}function f(e,t,n,r,o){let u,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{names:{},intercepted:{}},f=(u=0,()=>{let e="",t=++u;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),h={},m=[],g=[];for(let u of(d=structuredClone(d),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){var _,y,v,b;let e,l=i.INTERCEPTION_ROUTE_MARKERS.some(e=>u.startsWith(e)),S=u.match(c.PARAMETER_PATTERN),w=l?null==S?void 0:S[1]:void 0;if(w&&(null==S?void 0:S[2])?(e=t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,d.intercepted[S[2]]=w):e=(null==S?void 0:S[2])&&d.intercepted[S[2]]?t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?a.NEXT_QUERY_PARAM_PREFIX:void 0,w&&S&&S[2]){let{key:t,pattern:n,cleanedKey:r,repeat:a,optional:i}=p({getSafeRouteKey:f,interceptionMarker:w,segment:S[2],routeKeys:h,keyPrefix:e,backreferenceDuplicateKeys:o});m.push(n),g.push("/".concat(S[1],":").concat(null!=(_=d.names[t])?_:r).concat(a?i?"*":"+":"")),null!=(y=d.names)[t]||(y[t]=r)}else if(S&&S[2]){r&&S[1]&&(m.push("/".concat((0,s.escapeStringRegexp)(S[1]))),g.push("/".concat(S[1])));let{key:t,pattern:n,cleanedKey:a,repeat:i,optional:l}=p({getSafeRouteKey:f,segment:S[2],routeKeys:h,keyPrefix:e,backreferenceDuplicateKeys:o}),c=n;r&&S[1]&&(c=c.substring(1)),m.push(c),g.push("/:".concat(null!=(v=d.names[t])?v:a).concat(i?l?"*":"+":"")),null!=(b=d.names)[t]||(b[t]=a)}
2else m.push("/".concat((0,s.escapeStringRegexp)(u))),g.push("/".concat(u));n&&S&&S[3]&&(m.push((0,s.escapeStringRegexp)(S[3])),g.push(S[3]))}return{namedParameterizedRoute:m.join(""),routeKeys:h,pathToRegexpPattern:g.join(""),reference:d}}function h(e,t){var n,r,o;let a=f(e,t.prefixRouteKeys,null!=(n=t.includeSuffix)&&n,null!=(r=t.includePrefix)&&r,null!=(o=t.backreferenceDuplicateKeys)&&o,t.reference),i=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...d(e,t),namedRegex:"^".concat(i,"$"),routeKeys:a.routeKeys,pathToRegexpPattern:a.pathToRegexpPattern,reference:a.reference}}function m(e,t){let{parameterizedRoute:n}=u(e,!1,!1),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/".concat(r?".*":"","$")};let{namedParameterizedRoute:o}=f(e,!1,!1,!1,!1,void 0);return{namedRegex:"^".concat(o).concat(r?"(?:(/.*)?)":"","$")}}},795640,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DYNAMIC_FILTER_PLACEHOLDER:function(){return a},hasDynamicFilterCandidate:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="[]";function i(e,t,n){var r;let o=e.split("/"),i=t.split("/"),s=null!=(r=o[o.length-1])?r:"";if(!(s.startsWith("[...")||s.startsWith("[[..."))&&o.length!==i.length)return!1;let l=[];for(let e=1;e<i.length;e++){if(""===i[e])continue;let t=o[e];(void 0===t||t.startsWith("["))&&l.push(e)}if(0===l.length||l.length>8)return!1;let c=(1<<l.length)-1;for(let e=0;e<c;e++){let t=i.slice();for(let n=0;n<l.length;n++)(e&1<<n)==0&&(t[l[n]]=a);if(n(t.join("/")))return!0}return!1}},722783,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let r=e.r(934109),o=e.r(998183);function a(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=new URL("u"<typeof window?"http://n":(0,r.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):a,{pathname:s,searchParams:l,search:c,hash:u,href:d,origin:p}=e.startsWith("/")?new URL("".concat(i.protocol,"//").concat(i.host).concat(e)):new URL(e,i);if(p!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received ".concat(e)),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:s,port:null,protocol:null,query:n?(0,o.searchParamsToUrlQuery)(l):void 0,search:c,hash:u,href:d.slice(p.length),slashes:null}}},873423,(e,t,n)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"===r||"+"===r||"?"===r){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if("\\"===r){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if("{"===r){t.push({type:"OPEN",index:n,value:e[n++]});continue}if("}"===r){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(":"===r){for(var o="",a=n+1;a<e.length;){var i=e.charCodeAt(a);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){o+=e[a++];continue}break}if(!o)throw TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=a;continue}if("("===r){var s=1,l="",a=n+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(s)throw TypeError("Unbalanced pattern at ".concat(n));if(!l)throw TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=a;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,a=void 0===r?"./":r,i=t.delimiter,s=void 0===i?"/#?":i,l=[],c=0,u=0,d="",p=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var n=s[t];if(e.indexOf(n)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],n=e||(t&&"string"==typeof t?t:"");
2if(t&&!n)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||m(n)?"[^".concat(o(s),"]+?"):"(?:(?!".concat(o(n),")[^").concat(o(s),"])+?")};u<n.length;){var _=p("CHAR"),y=p("NAME"),v=p("PATTERN");if(y||v){var b=_||"";-1===a.indexOf(b)&&(d+=b,b=""),d&&(l.push(d),d=""),l.push({name:y||c++,prefix:b,suffix:"",pattern:v||g(b),modifier:p("MODIFIER")||""});continue}var S=_||p("ESCAPED_CHAR");if(S){d+=S;continue}if(d&&(l.push(d),d=""),p("OPEN")){var b=h(),w=p("NAME")||"",E=p("PATTERN")||"",k=h();f("CLOSE"),l.push({name:w||(E?c++:""),pattern:w&&!E?g(b):E,prefix:b,suffix:k,modifier:p("MODIFIER")||""});continue}f("END")}return l}function n(e,t){void 0===t&&(t={});var n=a(t),r=t.encode,o=void 0===r?function(e){return e}:r,i=t.validate,s=void 0===i||i,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"==typeof a){n+=a;continue}var i=t?t[a.name]:void 0,c="?"===a.modifier||"*"===a.modifier,u="*"===a.modifier||"+"===a.modifier;if(Array.isArray(i)){if(!u)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===i.length){if(c)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<i.length;d++){var p=o(i[d],a);if(s&&!l[r].test(p))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));n+=a.prefix+p+a.suffix}continue}if("string"==typeof i||"number"==typeof i){var p=o(String(i),a);if(s&&!l[r].test(p))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));n+=a.prefix+p+a.suffix;continue}if(!c){var f=u?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(f))}}return n}}function r(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),l=1;l<r.length;l++)!function(e){if(void 0!==r[e]){var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)}}(l);return{path:a,index:i,params:s}}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function i(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,s=n.start,l=n.end,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,p=n.endsWith,f="[".concat(o(void 0===p?"":p),"]|$"),h="[".concat(o(void 0===d?"/#?":d),"]"),m=void 0===s||s?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=o(u(_));else{var y=o(u(_.prefix)),v=o(u(_.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+=n.endsWith?"(?=".concat(f,")"):"$";else{var S=e[e.length-1],w="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;i||(m+="(?:".concat(h,"(?=").concat(f,"))?")),w||(m+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(m,a(n))}function s(e,n,r){if(e instanceof RegExp){var o;if(!n)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(e.source);u;)n.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(e.source);return e}return Array.isArray(e)?(o=e.map(function(e){return s(e,n,r).source}),new RegExp("(?:".concat(o.join("|"),")"),a(r))):i(t(e,r),n,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,r){return n(t(e,r),r)},e.tokensToFunction=n,e.match=function(e,t){var n=[];return r(s(e,n,t),n,t)},e.regexpToFunction=r,e.tokensToRegexp=i,e.pathToRegexp=s})(),t.exports=e})()},268280,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={PARAM_SEPARATOR:function(){return a},hasAdjacentParameterIssues:function(){return i},normalizeAdjacentParameters:function(){return s},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return c},stripParameterSeparators:function(){return u}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="_NEXTSEP_";function i(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 s(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,"$1".concat(a,":$2"))).replace(/:([^:/\s)]+)(?=:)/g,":$1".concat(a))}function l(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 c(e){return e.replace(RegExp("\\)".concat(a),"g"),")")}function u(e){let t={};for(let[n,r]of Object.entries(e))"string"==typeof r?t[n]=r.replace(new RegExp("^".concat(a)),""):Array.isArray(r)?t[n]=r.map(e=>"string"==typeof e?e.replace(new RegExp("^".concat(a)),""):e):t[n]=r;return t}},475957,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={safeCompile:function(){return l},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return c},safeRouteMatcher:function(){return u}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(873423),i=e.r(268280);function s(e,t,n){if("string"!=typeof e)return(0,a.pathToRegexp)(e,t,n);let r=(0,i.hasAdjacentParameterIssues)(e),o=r?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,a.pathToRegexp)(o,t,n)}catch(o){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e);return(0,a.pathToRegexp)(r,t,n)}catch(e){}throw o}}function l(e,t){let n=(0,i.hasAdjacentParameterIssues)(e),r=n?(0,i.normalizeAdjacentParameters)(e):e;try{let e=(0,a.compile)(r,t);if(n)return t=>(0,i.stripNormalizedSeparators)(e(t));return e}catch(r){if(!n)try{let n=(0,i.normalizeAdjacentParameters)(e),r=(0,a.compile)(n,t);return e=>(0,i.stripNormalizedSeparators)(r(e))}catch(e){}throw r}}function c(e,t){let n=(0,a.regexpToFunction)(e,t||[]);return e=>{let t=n(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let n=e(t);return!!n&&(0,i.stripParameterSeparators)(n)}}},841820,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let r=e.r(934109),o=e.r(475957);function a(e){let{re:t,groups:n}=e;return(0,o.safeRouteMatcher)(e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new r.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,
2configurable:!0})}},i={};for(let[e,t]of Object.entries(n)){let n=o[t.pos];void 0!==n&&(t.repeat?i[e]=n.split("/").map(e=>a(e)):i[e]=a(n))}return i})}},341257,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getPathMatch",{enumerable:!0,get:function(){return o}});let r=e.r(873423);function o(e,t){let n=[],o=(0,r.pathToRegexp)(e,n,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),a=(0,r.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,n);return(e,r)=>{if("string"!=typeof e)return!1;let o=a(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of n)"number"==typeof e.name&&delete o.params[e.name];return{...r,...o.params}}}},106346,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"parseUrl",{enumerable:!0,get:function(){return a}});let r=e.r(998183),o=e.r(722783);function a(e){if(e.startsWith("/"))return(0,o.parseRelativeUrl)(e);let t=new URL(e),n=t.username,a=t.password,i=n?a?"".concat(n,":").concat(a):n: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,r.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},619573,(e,t,n)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/cookie/");var e,n,r,o,a={};a.parse=function(t,n){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var o={},a=t.split(r),i=(n||{}).decode||e,s=0;s<a.length;s++){var l=a[s],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==o[u]&&(o[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,i))}}return o},a.serialize=function(e,t,r){var a=r||{},i=a.encode||n;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=i(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(a.domain){if(!o.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
2d");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.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},e=decodeURIComponent,n=encodeURIComponent,r=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=a})()},989557,(e,t,n)=>{"use strict";function r(t){return function(){let{cookie:n}=t;if(!n)return{};let{parse:r}=e.r(619573);return r(Array.isArray(n)?n.join("; "):n)}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getCookieParser",{enumerable:!0,get:function(){return r}})},631423,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return f},prepareDestination:function(){return h}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(2160),i=e.r(106346),s=e.r(591463),l=e.r(989557),c=e.r(475957);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o={},a=n=>{let r,a=n.key;switch(n.type){case"header":a=a.toLowerCase(),r=e.headers[a];break;case"cookie":r="cookies"in e?e.cookies[n.key]:(0,l.getCookieParser)(e.headers)()[n.key];break;case"query":r=t[a];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};r=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!n.value&&r)return o[function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);(r>64&&r<91||r>96&&r<123)&&(t+=e[n])}return t}(a)]=r,!0;if(r){let e=new RegExp("^".concat(n.value,"$")),t=Array.isArray(r)?r.slice(-1)[0].match(e):r.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{o[e]=t.groups[e]}):"host"===n.type&&t[0]&&(o.host=t[0])),!0}return!1};return!(!n.every(e=>a(e))||r.some(e=>a(e)))&&o}function p(e,t){if(!e.includes(":"))return e;for(let n of Object.keys(t))e.includes(":".concat(n))&&(e=e.replace(RegExp(":".concat(n,"\\*"),"g"),":".concat(n,"--ESCAPED_PARAM_ASTERISKS")).replace(RegExp(":".concat(n,"\\?"),"g"),":".concat(n,"--ESCAPED_PARAM_QUESTION")).replace(RegExp(":".concat(n,"\\+"),"g"),":".concat(n,"--ESCAPED_PARAM_PLUS")).replace(RegExp(":".concat(n,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(n)));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,c.safeCompile)("/".concat(e),{validate:!1})(t).slice(1)}function f(e){let t=e.destination;for(let n of Object.keys({...e.params,...e.query}))n&&(t=t.replace(RegExp(":".concat((0,a.escapeStringRegexp)(n)),"g"),"__ESC_COLON_".concat(n)));let n=(0,i.parseUrl)(t),r=n.pathname;r&&(r=u(r));let o=n.href;o&&(o=u(o));let s=n.hostname;s&&(s=u(s));let l=n.hash;l&&(l=u(l));let c=n.search;c&&(c=u(c));let d=n.origin;return d&&(d=u(d)),{...n,pathname:r,hostname:s,href:o,hash:l,search:c,origin:d}}function h(e){let t,n,r=f(e),{hostname:o,query:a,search:i}=r,l=r.pathname;r.hash&&(l="".concat(l).concat(r.hash));let d=[],h=[];for(let e of((0,c.safePathToRegexp)(l,h),h))d.push(e.name);if(o){let e=[];for(let t of((0,c.safePathToRegexp)(o,e),e))d.push(t.name)}let m=(0,c.safeCompile)(l,{validate:!1});for(let[n,r]of(o&&(t=(0,c.safeCompile)(o,{validate:!1,encode:encodeURIComponent})),Object.entries(a)))Array.isArray(r)?a[n]=r.map(t=>p(u(t),e.params)):"string"==typeof r&&(a[n]=p(u(r),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in a||(a[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let n=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(n){"(..)(..)"===n?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=n;break}}try{let[o,a]=(n=m(e.params)).split("#",2);t&&(r.hostname=t(e.params)),r.pathname=o,r.hash="".concat(a?"#":"").concat(a||""),r.search=i?p(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,
2configurable:!0});throw e}return r.query={...e.query,...r.query},{newUrl:n,destQuery:a,parsedDestination:r}}},291534,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let r=e.r(341257),o=e.r(631423),a=e.r(938281),i=e.r(927711),s=e.r(387250),l=e.r(722783);function c(e,t,n,c,u,d){let p,f=!1,h=!1,m=(0,l.parseRelativeUrl)(e),g=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),_=n=>{let l=(0,r.getPathMatch)(n.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((n.has||n.missing)&&l){let e=(0,o.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[n,...r]=t.split("=");return e[n]=r.join("="),e},{})},m.query,n.has,n.missing);e?Object.assign(l,e):l=!1}if(l){if(!n.destination)return h=!0,!0;let r=(0,o.prepareDestination)({appendParamsToQuery:!0,destination:n.destination,params:l,query:c});if(m=r.parsedDestination,e=r.newUrl,Object.assign(c,r.parsedDestination.query),g=(0,a.removeTrailingSlash)((0,i.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(g))return f=!0,p=g,!0;if((p=u(g))!==e&&t.includes(p))return f=!0,!0}},y=!1;for(let e=0;e<n.beforeFiles.length;e++)_(n.beforeFiles[e]);if(!(f=t.includes(g))){if(!y){for(let e=0;e<n.afterFiles.length;e++)if(_(n.afterFiles[e])){y=!0;break}}if(y||(p=u(g),y=f=t.includes(p)),!y){for(let e=0;e<n.fallback.length;e++)if(_(n.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:f,resolvedHref:p,externalDest:h}}},509793,(e,t,n)=>{"use strict";let r;Object.defineProperty(n,"__esModule",{value:!0});var o={createKey:function(){return K},default:function(){return Z},matchesMiddleware:function(){return H}};for(var a in o)Object.defineProperty(n,a,{enumerable:!0,get:o[a]});let i=e.r(555682),s=e.r(190809),l=e.r(938281),c=e.r(490758),u=e.r(479520),d=s._(e.r(302023)),p=e.r(881672),f=e.r(927711),h=i._(e.r(226098)),m=e.r(934109),g=e.r(285777),_=e.r(722783),y=e.r(841820),v=e.r(862735),b=e.r(795640),S=e.r(195057);e.r(885305);let w=e.r(572463),E=e.r(535192),k=e.r(827018),R=e.r(387250),x=e.r(405550),T=e.r(652817),I=e.r(57192),P=e.r(210648),C=e.r(283605),A=e.r(230283),O=e.r(865941),M=e.r(573668),N=e.r(82604),L=e.r(18556),D=e.r(51506),j=e.r(491915),F=e.r(663416),U=e.r(543369),B=e.r(948277);function W(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function H(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,w.parsePath)(e.asPath),r=(0,T.hasBasePath)(n)?(0,R.removeBasePath)(n):n,o=(0,x.addBasePath)((0,E.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function q(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function z(e,t,n){let[r,o]=(0,I.resolveHref)(e,t,!0),a=(0,m.getLocationOrigin)(),i=r.startsWith(a),s=o&&o.startsWith(a);r=q(r),o=o?q(o):o;let l=i?r:(0,x.addBasePath)(r),c=n?q((0,I.resolveHref)(e,n)):o||r;return{url:l,as:s?c:(0,x.addBasePath)(c)}}function V(e,t){let n=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function G(e){if(!await H(e)||!e.fetchData)return null;let t=await e.fetchData(),n=await function(e,t,n){let o={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),i=a||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(F.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,C.getNextPathnameInfo)(t.pathname,{nextConfig:o,parseData:!0}),u=(0,l.removeTrailingSlash)(s.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,c.getClientBuildManifest)()]).then(i=>{let[l,{__rewrites:c}]=i,d=(0,E.addLocale)(s.pathname,s.locale);if((0,g.isDynamicRoute)(d)||!a&&l.includes((0,f.normalizeLocalePath)((0,R.removeBasePath)(d),n.router.locales).pathname)){let n=(0,C.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:o.basePath,trailingSlash:o.trailingSlash},parseData:!0}
2);t.pathname=d=(0,x.addBasePath)(n.pathname)}{let e=r(d,l,c,t.query,e=>V(e,l),n.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,d=t.pathname,Object.assign(t.query,e.parsedAs.query))}let p=l.includes(u)?u:V((0,f.normalizeLocalePath)((0,R.removeBasePath)(t.pathname),n.router.locales).pathname,l);if((0,g.isDynamicRoute)(p)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(p))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:p}})}let t=(0,w.parsePath)(e),s=(0,A.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:o,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:"".concat(s).concat(t.query).concat(t.hash)})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,w.parsePath)(u),t=(0,A.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:o,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:"".concat(t).concat(e.query).concat(e.hash),newUrl:"".concat(t).concat(e.query).concat(e.hash)})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}r=e.r(291534).default;let J=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function Y(e){let{dataHref:t,inflightCache:n,isPrefetch:r,hasMiddleware:o,isServerRender:a,parseJSON:i,persistCache:s,isBackground:l,unstable_skipClientCache:u}=e,{href:d}=new URL(t,window.location.href),p=(0,U.getDeploymentId)(),f=e=>{var l;return(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&n>1&&o.status>=500?e(t,n-1,r):o)})(t,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&o?{"x-middleware-prefetch":"1"}:{},p?{"x-deployment-id":p}:{}),method:null!=(l=null==e?void 0:e.method)?l:"GET"}).then(n=>n.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:n,text:"",json:{},cacheKey:d}:n.text().then(e=>{if(!n.ok){if(o&&[301,302,307,308].includes(n.status))return{dataHref:t,response:n,text:e,json:{},cacheKey:d};if(404===n.status){var r;if(null==(r=X(e))?void 0:r.notFound)return{dataHref:t,json:{notFound:J},response:n,text:e,cacheKey:d}}let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,c.markAssetError)(i),i}let s=n.headers.get(F.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=s&&s!==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,c.markAssetError)(e),e}return{dataHref:t,json:i?X(e):null,response:n,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[d],e)).catch(e=>{throw u||delete n[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,c.markAssetError)(e),e})};return u&&s?f({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(n[d]=Promise.resolve(e)),e)):void 0!==n[d]?n[d]:n[d]=f(l?{method:"HEAD"}:{})}function K(){return Math.random().toString(36).slice(2,10)}function $(e){let{url:t,router:n}=e;if(t===(0,x.addBasePath)((0,E.addLocale)(n.asPath,n.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href)),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let Q=e=>{let{route:t,router:n}=e,r=!1,o=n.clc=()=>{r=!0};return()=>{if(r){let e=Object.defineProperty(Error('Abort fetching component for route: "'.concat(t,'"')),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}o===n.clc&&(n.clc=null)}};class Z{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,B.isJavaScriptURLString)(e.toString())||t&&(0,B.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,
2configurable:!0});return{url:e,as:t}=z(this,e,t),this.change("pushState",e,t,n)}replace(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,B.isJavaScriptURLString)(e.toString())||t&&(0,B.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}=z(this,e,t),this.change("replaceState",e,t,n)}async _bfl(t,n,r,o){{if(!this._bfl_s&&!this._bfl_d){let n,a,{BloomFilter:i}=e.r(849575);try{({__routerFilterStatic:n,__routerFilterDynamic:a}=await (0,c.getClientBuildManifest)())}catch(e){if(console.error(e),o)return!0;return $({url:(0,x.addBasePath)((0,E.addLocale)(t,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let s={numItems:188,errorRate:1e-4,numBits:3604,numHashes:14,bitArray:[0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,1,1,0,0,1,0,1,0,1,0,0,1,0,1,1,0,0,0,0,0,1,0,0,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,0,1,0,0,0,1,0,1,1,0,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,1,1,0,0,1,0,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,1,1,0,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,0,0,1,0,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,0,1,0,0,0,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,1,1,1,0,1,0,0,0,1,1,0,1,0,0,1,1,0,0,0,1,1,1,1,0,1,0,1,1,1,0,0,1,0,0,0,0,1,1,1,0,0,1,1,1,0,1,1,0,0,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,0,1,0,1,0,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,1,0,1,0,1,0,1,1,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,1,1,0,1,0,0,0,1,1,0,0,0,1,1,1,1,0,0,1,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,1,0,1,0,1,0,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,0,1,0,0,1,0,1,0,0,1,1,0,1,0,0,0,0,0,1,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,1,0,1,0,1,0,1,1,1,1,0,0,1,1,0,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,1,0,1,0,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,0,1,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,0,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,1,1,1,0,0,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,0,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,1,0,1,0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,0,1,0,1,1,1,0,0,0,0,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,1,1,0,0,1,1,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,1,1,1,0,0,1,1,1,0,1,1,1,0,0,0,1,0,0,1,1,0,1,1,1,0,0,1,0,0,0,1,1,1,1,0,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0,1,1,1,1,0,0,0,0,1,1,0,1,1,0,1,0,0,1,0,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,1,1,0,1,1,1,1,1,0,1,1,0,0,0,1,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,1,0,0,0,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,1,1,1,0,1,1,1,0,1,0,1,1,0,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,1,1,1,1,0,1,1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,0,1,1,0,1,0,0,1,1,0,0,1,1,1,0,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,0,1,1,1,1,0,1,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,1,1,1,1,1,1,0,1,0,0,0,0,1,0,0,0,1,1,1,0,1,0,1,1,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,0,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,1,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,1,0,1,0,0,0,1,0,0,1,0,1,1,0,1,0,0,0,1,0,1,0,1,0,0,1,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,0,1,0,1,0,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,0,0,1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,1,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,1,1,0,1,0,1,0,0,1,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,0,1,1,0,1,0,0,1,0,1,1,1,0,0,0,0,1,0,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,1,1,0,1,0,1,0,0,1,1,0,1,1,0,0,0,1,0,1,0,1,0,1,1,0,1,0,0,0,0,0,0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,0,0,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,0,0,0,0,0,1,1,0,1,1,0,1,1,0,0,0,1,1,1,1,1,0,1,1,1,0,1,0,1,0,0,0,0,0,1,1,1,1,0,1,1,0,0,0,1,1,0,0,1,0,1,1,1,1,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1,1,0,0,1,1,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,1,0,0,1,0,1,1,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,0,1,0,1,0,0,1,1,1,0,1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1,0,0,1,1,0,1,1,1,1,0,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,1,0,1,1,1,1,1,1,0,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,1,1,1,0,1,0,0,0,1,1,0,1,1,1,0,1,1,1,1,0,1,0,0,1,1,0,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1,0,0,0,0,0,1,1,1,0,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,0,0,1,0,1,0,0,0,1,0,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0,0,1,1,0,1,1,1,0,1,0,0,1,0,0,1,1,0,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,1,0,1,1,1,1,0,0,1,1,0,1,1,0,0,0,0,1,1,1,0,1,0,1,1,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,1,1,0,1,1,0,1,0,1,1,1,1,1,0,0,1,1,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,1,1,0,1,1,1,1,0,0,0,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,0,1,0,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,1,1,1,1,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,1,0,1,1,1,0,0,1,0,1,0,0,0,1,0,1,1,0,1,1,0,0,1,1,0,1,1,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,1,1,0,0,0,0,0,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,1,0,0,0,1,0,0,0,1,1,0,1,1,0,1,0,0,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,0,1,1,1,0,0,0,1,0,0,1,0,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,1,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,0,0,1,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,0,1,1,1,1,1,1,1,1,0,1,0,1,0,0,1,0,0,0,1,1,0,0,0,0,1,0,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,1,1,1,0,0,0,1,1,1,0,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,0,1,0,0,0,1,1,1,1,0,1,0,1,1,0,1,0,0,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,0,0,1,0,1,0,1,1,1,0,0,1,1,1,1,0,1,0,0,0,0,0,1,1,0,1,1,1,0,1,0,0,0,1,0,1,0,1,1,0,1,1,0,1,1,0,0,1,0,1,0,0,1,1,0,0,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,0,0,0,1,1,1,1,1,0,1,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,1,1,1,0,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,1,0,0,0,1,0,1,1,0,1,0,0,0,1,0,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,1,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,0,1,0,0,1,0,0,1,0]};!n&&s&&(n=s||void 0);let l={numItems:49,errorRate:1e-4,numBits:940,numHashes:14,bitArray:[0,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,0,1,0,1,0,0,1,0,0,1,1,0,0,1,1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,0,1,0,1,1,1,1,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,1,1,1,0,1,0,0,0,1,1,0,1,0,0,0,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,1,1,0,0,1,1,0,1,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0,1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,1,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,1,1,0,1,0,0,0,1,0,1,0,1,1,1,1,0,1,0,1,1,1,0,1,1,1,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,0,1,0,0,0,1,1,0,1,1,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,0,1,0,0,0,1,1,0,0,1,0,1,1,0,1,1,1,0,1,0,1,1,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1,1,1,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,1,0,1,0,1,1,0,1,1,0,0,1,1,0,1,0,0,0,1,0,1,1,0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,0,0,1,0,0,1,0,0,1,1,1,1,1,0,0,0,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,1,0,1,1,1,0,0,0,0,0,1,1,0,1,1,0,1,1,1,0,0,0,0,1,1,0,1,0,0,1,0,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,1,1,0,1,0,1,1,1,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,1,0,1,0,1,1,0,0,0,0,1,0,0,1,0,0,1,1,1,0,1,1,1,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,1,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,1,0,0,0,0,0,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,1,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,0,1,1,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,1,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0,0,1,1,1]};!a&&l&&(a=l||void 0),(null==n?void 0:n.numHashes)&&(this._bfl_s=new i(n.numItems,n.errorRate),this._bfl_s.import(n)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new i(a.numItems,a.errorRate),this._bfl_d.import(a))}let u=!1,d=!1;for(let{as:e,allowMatchCurrent:c}of[{as:t},{as:n}])if(e){let n=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),p=(0,x.addBasePath)((0,E.addLocale)(n,r||this.locale));if(c||n!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,i,s;for(let e of(u=u||!!(null==(a=this._bfl_s)?void 0:a.contains(n))||!!(null==(i=this._bfl_s)?void 0:i.contains(p)),[n,p])){let t=e.split("/");for(let e=0;!d&&e<t.length+1;e++){let n=t.slice(0,e).join("/");if(n&&(null==(s=this._bfl_d)?void 0:s.contains(n))){d=!0;break}}}if(u||d){if(o)return!0;return $({url:(0,x.addBasePath)((0,E.addLocale)(t,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,n,o,a){var i,s,p,f,h,I,P,C,A;let N,j;if(!(0,M.isLocalURL)(t))return $({url:t,router:this}),!1;let F=1===o._h;F||o.shallow||await this._bfl(n,void 0,o.locale);let U=F||o._shouldResolveHref||(0,w.parsePath)(t).pathname===(0,w.parsePath)(n).pathname,B={...this.state},q=!0!==this.isReady;this.isReady=!0;let G=this.isSsr;if(F||(this.isSsr=!1),F&&this.clc)return!1;let X=B.locale;m.ST&&performance.mark("routeChange");let{shallow:Y=!1,scroll:K=!0}=o,Q={shallow:Y};this._inFlightRoute&&this.clc&&(G||Z.events.emit("routeChangeError",W(),this._inFlightRoute,Q),this.clc(),this.clc=null),n=(0,x.addBasePath)((0,E.addLocale)((0,T.hasBasePath)(n)?(0,R.removeBasePath)(n):n,o.locale,this.defaultLocale));let ee=(0,k.removeLocale)((0,T.hasBasePath)(n)?(0,R.removeBasePath)(n):n,B.locale);this._inFlightRoute=n;let et=X!==B.locale;if(!F&&this.onlyAHashChange(ee)&&!et){B.asPath=ee,Z.events.emit("hashChangeStart",n,Q),this.changeState(e,t,n,{...o,scroll:!1}),K&&this.scrollToHash(ee);try{await this.set(B,this.components[B.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,ee,Q),e}return Z.events.emit("hashChangeComplete",n,Q),!0}let en=(0,_.parseRelativeUrl)(t),{pathname:er,query:eo}=en;try{[N,{__rewrites:j}
2]=await Promise.all([this.pageLoader.getPageList(),(0,c.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return $({url:n,router:this}),!1}this.urlIsNew(ee)||et||(e="replaceState");let ea=n;er=er?(0,l.removeTrailingSlash)((0,R.removeBasePath)(er)):er;let ei=(0,l.removeTrailingSlash)(er),es=n.startsWith("/")&&(0,_.parseRelativeUrl)(n).pathname;if(null==(i=this.components[er])?void 0:i.__appRouter)return $({url:n,router:this}),new Promise(()=>{});let el=!!(es&&ei!==es&&(!(0,g.isDynamicRoute)(ei)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(ei))(es))),ec=!o.shallow&&await H({asPath:n,locale:B.locale,router:this});if(F&&ec&&(U=!1),U&&"/_error"!==er)if(o._shouldResolveHref=!0,n.startsWith("/")){let e=r((0,x.addBasePath)((0,E.addLocale)(ee,B.locale),!0),N,j,eo,e=>V(e,N),this.locales);if(e.externalDest)return $({url:n,router:this}),!0;ec||(ea=e.asPath),e.matchedPage&&e.resolvedHref&&(er=e.resolvedHref,en.pathname=(0,x.addBasePath)(er),ec||(t=(0,S.formatWithValidation)(en)))}else en.pathname=V(er,N),en.pathname!==er&&(er=en.pathname,en.pathname=(0,x.addBasePath)(er),ec||(t=(0,S.formatWithValidation)(en)));if(!F&&!o.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(er)){let e=(0,l.removeTrailingSlash)((0,_.parseRelativeUrl)(ee).pathname);if((0,b.hasDynamicFilterCandidate)(er,e,e=>{var t;return!!(null==(t=this._bfl_d)?void 0:t.contains(e))}))return $({url:n,router:this}),new Promise(()=>{})}if(!(0,M.isLocalURL)(n))return $({url:n,router:this}),!1;ea=(0,k.removeLocale)((0,R.removeBasePath)(ea),B.locale),ei=(0,l.removeTrailingSlash)(er);let eu=!1;if((0,g.isDynamicRoute)(ei)){let e=(0,_.parseRelativeUrl)(ea),r=e.pathname,o=(0,v.getRouteRegex)(ei);eu=(0,y.getRouteMatcher)(o)(r);let a=ei===r,i=a?(0,D.interpolateAs)(ei,r,eo):{};if(eu&&(!a||i.result))a?n=(0,S.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,L.omit)(eo,i.params)})):Object.assign(eo,eu);else{let e=Object.keys(o.groups).filter(e=>!eo[e]&&!o.groups[e].optional);if(e.length>0&&!ec)throw Object.defineProperty(Error((a?"The provided `href` (".concat(t,") value is missing query values (").concat(e.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(r,") is incompatible with the `href` value (").concat(ei,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}F||Z.events.emit("routeChangeStart",n,Q);let ed="/404"===this.pathname||"/_error"===this.pathname;try{let r=await this.getRouteInfo({route:ei,pathname:er,query:eo,as:n,resolvedAs:ea,routeProps:Q,locale:B.locale,isPreview:B.isPreview,hasMiddleware:ec,unstable_skipClientCache:o.unstable_skipClientCache,isQueryUpdating:F&&!this.isFallback,isMiddlewareRewrite:el});if(F||o.shallow||await this._bfl(n,"resolvedAs"in r?r.resolvedAs:void 0,B.locale),"route"in r&&ec){ei=er=r.route||ei,Q.shallow||(eo=Object.assign({},r.query||{},eo));let e=(0,T.hasBasePath)(en.pathname)?(0,R.removeBasePath)(en.pathname):en.pathname;if(eu&&er!==e&&Object.keys(eu).forEach(e=>{eu&&eo[e]===eu[e]&&delete eo[e]}),(0,g.isDynamicRoute)(er)){let e=!Q.shallow&&r.resolvedAs?r.resolvedAs:(0,x.addBasePath)((0,E.addLocale)(new URL(n,location.href).pathname,B.locale),!0);(0,T.hasBasePath)(e)&&(e=(0,R.removeBasePath)(e));let t=(0,v.getRouteRegex)(er),o=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);o&&Object.assign(eo,o)}}if("type"in r)if("redirect-internal"===r.type)return this.change(e,r.newUrl,r.newAs,o);else return $({url:r.destination,router:this}),new Promise(()=>{});let i=r.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(r.__N_SSG||r.__N_SSP)&&r.props){if(r.props.pageProps&&r.props.pageProps.__N_REDIRECT){o.locale=!1;let t=r.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==r.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,_.parseRelativeUrl)(t);n.pathname=V(n.pathname,N);let{url:r,as:a}=z(this,t,t);return this.change(e,r,a,o)}return $({url:t,router:this}),new Promise(()=>{})}if(B.isPreview=!!r.props.__N_PREVIEW,r.props.notFound===J){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(r=await this.getRouteInfo({route:e,pathname:e,query:eo,as:n,resolvedAs:ea,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isNotFound:!0}),"type"in r)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,
2configurable:!0})}}F&&"/_error"===this.pathname&&(null==(h=self.__NEXT_DATA__.props)||null==(f=h.pageProps)?void 0:f.statusCode)===500&&(null==(I=r.props)?void 0:I.pageProps)&&(r.props.pageProps.statusCode=500);let l=o.shallow&&B.route===(null!=(s=r.route)?s:ei),c=null!=(p=o.scroll)?p:!F&&!l,m=null!=a?a:c?{x:0,y:0}:null,b={...B,route:ei,pathname:er,query:eo,asPath:ee,isFallback:!1};if(F&&ed){if(r=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:eo,as:n,resolvedAs:ea,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isQueryUpdating:F&&!this.isFallback}),"type"in r)throw Object.defineProperty(Error("Unexpected middleware effect on ".concat(this.pathname)),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(C=self.__NEXT_DATA__.props)||null==(P=C.pageProps)?void 0:P.statusCode)===500&&(null==(A=r.props)?void 0:A.pageProps)&&(r.props.pageProps.statusCode=500);try{await this.set(b,r,m)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,ee,Q),e}return!0}if(Z.events.emit("beforeHistoryChange",n,Q),this.changeState(e,t,n,o),!(F&&!m&&!q&&!et&&(0,O.compareRouterStates)(b,this.state))){try{await this.set(b,r,m)}catch(e){if(e.cancelled)r.error=r.error||e;else throw e}if(r.error)throw F||Z.events.emit("routeChangeError",r.error,ee,Q),r.error;F||Z.events.emit("routeChangeComplete",n,Q),c&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};("pushState"!==e||(0,m.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:K()},"",n))}async handleRouteInfoError(e,t,n,r,o,a){if(e.cancelled)throw e;if((0,c.isAssetError)(e)||a)throw Z.events.emit("routeChangeError",e,r,o),$({url:r,router:this}),W();console.error(e);try{let r,{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:r,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,n,r,o,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:o,resolvedAs:a,routeProps:i,locale:s,hasMiddleware:c,isPreview:u,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:g}=e,_=t;try{var y,v,b,w;let e=this.components[_];if(i.shallow&&e&&this.route===_)return e;let t=Q({route:_,router:this});c&&(e=void 0);let d=!e||"initial"in e?void 0:e,E={dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:g?"/404":a,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},k=h&&!m?null:await G({fetchData:()=>Y(E),asPath:g?"/404":a,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(k&&("/_error"===n||"/404"===n)&&(k.effect=void 0),h&&(k?k.json=self.__NEXT_DATA__.props:k={json:self.__NEXT_DATA__.props}),t(),(null==k||null==(y=k.effect)?void 0:y.type)==="redirect-internal"||(null==k||null==(v=k.effect)?void 0:v.type)==="redirect-external")return k.effect;if((null==k||null==(b=k.effect)?void 0:b.type)==="rewrite"){let t=(0,l.removeTrailingSlash)(k.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(_=t,n=k.effect.resolvedHref,r={...r,...k.effect.parsedAs.query},a=(0,R.removeBasePath)((0,f.normalizeLocalePath)(k.effect.parsedAs.pathname,this.locales).pathname),e=this.components[_],i.shallow&&e&&this.route===_&&!c))return{...e,route:_}}if((0,P.isAPIRoute)(_))return $({url:o,router:this}),new Promise(()=>{});let x=d||await this.fetchComponent(_).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}
2)),T=null==k||null==(w=k.response)?void 0:w.headers.get("x-middleware-skip"),I=x.__N_SSG||x.__N_SSP;T&&(null==k?void 0:k.dataHref)&&delete this.sdc[k.dataHref];let{props:C,cacheKey:A}=await this._getData(async()=>{if(I){if((null==k?void 0:k.json)&&!T)return{cacheKey:k.cacheKey,props:k.json};let e=(null==k?void 0:k.dataHref)?k.dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:n,query:r}),asPath:a,locale:s}),t=await Y({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(x.Component,{pathname:n,query:r,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return x.__N_SSP&&E.dataHref&&A&&delete this.sdc[A],this.isPreview||!x.__N_SSG||h||Y(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),C.pageProps=Object.assign({},C.pageProps),x.props=C,x.route=_,x.query=r,x.resolvedAs=a,this.components[_]=x,x}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),n,r,o,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#",2),[r,o]=e.split("#",2);return!!o&&t===r&&n===o||t===r&&n!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,j.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),n=document.getElementById(e);if(n)return void n.scrollIntoView();let r=document.getElementsByName(e)[0];r&&r.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("u">typeof window&&(0,N.isBot)(window.navigator.userAgent))return;let o=(0,_.parseRelativeUrl)(e),a=o.pathname,{pathname:i,query:s}=o,u=i,d=await this.pageLoader.getPageList(),p=t,f=void 0!==n.locale?n.locale||void 0:this.locale,h=await H({asPath:t,locale:f,router:this});if(t.startsWith("/")){let n;({__rewrites:n}=await (0,c.getClientBuildManifest)());let a=r((0,x.addBasePath)((0,E.addLocale)(t,this.locale),!0),d,n,o.query,e=>V(e,d),this.locales);if(a.externalDest)return;h||(p=(0,k.removeLocale)((0,R.removeBasePath)(a.asPath),this.locale)),a.matchedPage&&a.resolvedHref&&(o.pathname=i=a.resolvedHref,h||(e=(0,S.formatWithValidation)(o)))}o.pathname=V(o.pathname,d),(0,g.isDynamicRoute)(o.pathname)&&(i=o.pathname,o.pathname=i,Object.assign(s,(0,y.getRouteMatcher)((0,v.getRouteRegex)(o.pathname))((0,w.parsePath)(t).pathname)||{}),h||(e=(0,S.formatWithValidation)(o)));let m=await G({fetchData:()=>Y({dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:u,query:s}),skipInterpolation:!0,asPath:p,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==m?void 0:m.effect.type)==="rewrite"&&(o.pathname=m.effect.resolvedHref,i=m.effect.resolvedHref,s={...s,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,S.formatWithValidation)(o)),(null==m?void 0:m.effect.type)==="redirect-external")return;let b=(0,l.removeTrailingSlash)(i);await this._bfl(t,p,n.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&Y({dataHref:(null==m?void 0:m.json)?null==m?void 0:m.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=Q({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,
2configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,m.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:r,pageLoader:o,App:a,wrapApp:i,Component:s,err:c,subscription:u,isFallback:d,locale:p,locales:f,defaultLocale:h,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=K(),this.onPopState=e=>{let t,{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,S.formatWithValidation)({pathname:(0,x.addBasePath)(e),query:t}),(0,m.getURL)());return}if(r.__NA)return void window.location.reload();if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:o,as:a,options:i,key:s}=r;this._key=s;let{pathname:l}=(0,_.parseRelativeUrl)(o);this.isSsr&&a===(0,x.addBasePath)(this.asPath)&&l===(0,x.addBasePath)(this.pathname)||(!this._bps||this._bps(r))&&this.change("replaceState",o,a,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:r,err:c,__N_SSG:r&&r.__N_SSG,__N_SSP:r&&r.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=Z.events,this.pageLoader=o;const w=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,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:n,isPreview:!!v,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!n.startsWith("//")){const r={locale:p},o=(0,m.getURL)();this._initialMatchesMiddlewarePromise=H({router:this,locale:p,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,S.formatWithValidation)({pathname:(0,x.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}}Z.events=(0,h.default)()},65856,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext(null)},767978,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a}}),e.r(555682);let r=e.r(843476);e.r(271645);let o=e.r(90558);function a(e){function t(t){return(0,r.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},90558,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={Router:function(){return s.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return u.default}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(555682),i=a._(e.r(271645)),s=a._(e.r(509793)),l=e.r(65856),c=a._(e.r(302023)),u=a._(e.r(767978)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!d.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,
2configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>s.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>h()[e]})}),f.forEach(e=>{d[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h()[e](...n)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{s.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o="on".concat(e.charAt(0).toUpperCase()).concat(e.substring(1));if(d[o])try{d[o](...n)}catch(e){console.error("Error when running the Router event: ".concat(o)),console.error((0,c.default)(e)?"".concat(e.message,"\n").concat(e.stack):e+"")}})})});let m=d;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 _(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.router=new s.default(...t),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function y(e){let t={};
2for(let n of p){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=s.default.events,f.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e[n](...r)}}),t}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},565909,(e,t,n)=>{t.exports=e.r(90558)},246305,(e,t,n)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},64385,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="/_not-found",i="".concat(a,"/page"),s="/_global-error",l="".concat(s,"/page")},231684,(e,t,n)=>{"use strict";var r,o,a,i=e.i(167225);Object.defineProperty(n,"__esModule",{value:!0});var s={APP_CLIENT_INTERNALS:function(){return ea},APP_PATHS_MANIFEST:function(){return w},APP_PATH_ROUTES_MANIFEST:function(){return E},AdapterOutputType:function(){return f},BARREL_OPTIMIZATION_PREFIX:function(){return K},BLOCKED_PAGES:function(){return V},BUILD_ID_FILE:function(){return z},BUILD_MANIFEST:function(){return k},CLIENT_PUBLIC_FILES_PATH:function(){return G},CLIENT_REFERENCE_MANIFEST:function(){return $},CLIENT_STATIC_FILES_PATH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return er},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return el},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return ec},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return es},COMPILER_INDEXES:function(){return p},COMPILER_NAMES:function(){return d},CONFIG_FILES:function(){return q},DEFAULT_RUNTIME_WEBPACK:function(){return eu},DEFAULT_SANS_SERIF_FONT:function(){return em},DEFAULT_SERIF_FONT:function(){return eh},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return L},DYNAMIC_CSS_MANIFEST:function(){return en},EDGE_RUNTIME_WEBPACK:function(){return ed},EDGE_UNSUPPORTED_NODE_APIS:function(){return eb},EXPORT_DETAIL:function(){return P},EXPORT_MARKER:function(){return I},FUNCTIONS_CONFIG_MANIFEST:function(){return R},IMAGES_MANIFEST:function(){return M},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return et},MIDDLEWARE_BUILD_MANIFEST:function(){return Z},MIDDLEWARE_MANIFEST:function(){return j},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return ee},MODERN_BROWSERSLIST_TARGET:function(){return c.default},NEXT_BUILTIN_DOCUMENT:function(){return Y},NEXT_FONT_MANIFEST:function(){return T},PAGES_MANIFEST:function(){return S},PHASE_ANALYZE:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return y},PHASE_EXPORT:function(){return h},PHASE_INFO:function(){return b},PHASE_PRODUCTION_BUILD:function(){return g},PHASE_PRODUCTION_SERVER:function(){return _},PHASE_TEST:function(){return v},PREFETCH_HINTS:function(){return A},PRERENDER_MANIFEST:function(){return C},REACT_LOADABLE_MANIFEST:function(){return W},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return D},ROUTES_MANIFEST:function(){return O},RSC_MODULE_TYPES:function(){return ev},SERVER_DIRECTORY:function(){return H},SERVER_FILES_MANIFEST:function(){return N},SERVER_PROPS_ID:function(){return ef},SERVER_REFERENCE_MANIFEST:function(){return Q},STATIC_PROPS_ID:function(){return ep},STATIC_STATUS_PAGES:function(){return eg},STRING_LITERAL_DROP_BUNDLE:function(){return X},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return x},SYSTEM_ENTRYPOINTS:function(){return eS},TRACE_OUTPUT_VERSION:function(){return e_},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return U},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return F},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ey},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return u.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return u.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return u.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var l in s)Object.defineProperty(n,l,{enumerable:!0,get:s[l]});let c=e.r(555682)._(e.r(246305)),u=e.r(64385),d={client:"client",server:"server",edgeServer:"edge-server"},p={[d.client]:0,[d.server]:1,[d.edgeServer]:2};var f=((r={}).PAGES="PAGES",r.PAGES_API="PAGES_API",r.APP_PAGE="APP_PAGE",r.APP_ROUTE="APP_ROUTE",r.PRERENDER="PRERENDER",r.STATIC_FILE="STATIC_FILE",r.MIDDLEWARE="MIDDLEWARE",r);let h="phase-export",m="phase-analyze",g="phase-production-build",_="phase-production-server",y="phase-development-server",v="phase-test",b="phase-info",S="pages-manifest.json",w="app-paths-manifest.json",E="app-path-routes-manifest.json",k="build-manifest.json",R="functions-config-manifest.json",x="subresource-integrity-manifest",T="next-font-manifest",I="export-marker.json",P="export-detail.json",C="prerender-manifest.json",A="prefetch-hints.json",O="routes-manifest.json",M="images-manifest.json",N="required-server-files",L="_devPagesManifest.json",D="/_next/development/request-insights",j="middleware-manifest.json",F="_clientMiddlewareManifest.js",U="client-build-manifest.json",B="_devMiddlewareManifest.json",W="react-loadable-manifest.json",H="server",q=["next.config.js","next.config.mjs","next.config.ts",...(null==(a=i.default)||null==(o=a.features)?void 0:o.typescript)?["next.config.mts"]:[]],z="BUILD_ID",V=["/_document","/_app","/_error"],G="public",J="static",X="__NEXT_DROP_CLIENT_FILE__",Y="__NEXT_BUILTIN_DOCUMENT__",K="__barrel_optimize__",$="client-reference-manifest",Q="server-reference-manifest",Z="middleware-build-manifest",ee="middleware-react-loadable-manifest",et="interception-route-rewrite-manifest",en="dynamic-css-manifest",er="main",eo="".concat(er,"-app"),ea="app-pages-internals",ei="react-refresh",es="webpack",el="polyfills",ec=Symbol(el),eu="webpack-runtime",ed="edge-runtime-webpack",ep="__N_SSG",ef="__N_SSP",eh={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},em={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},eg=["/500"],e_=1,ey=6e3,ev={client:"client",server:"server"},eb=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eS=new Set([er,ei,eo]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
2dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},655113,(e,t,n)=>{t.exports=e.r(231684)},424935,e=>{"use strict";let t,n,r,o,a,i,s,l,c,u,d,p,f,h,m,g,_,y,v,b,S,w,E,k,R,x,T,I,P,C,A,O,M,N,L,D,j,F;e.s([],639999),e.i(639999);var U,B,W,H,q,z,V,G,J,X,Y,K,$,Q,Z,ee,et=e.i(167225);let en="10.42.0",er=globalThis;function eo(){return ea(er),er}function ea(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||en,t[en]=t[en]||{}}function ei(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:er,r=n.__SENTRY__=n.__SENTRY__||{},o=r[en]=r[en]||{};return o[e]||(o[e]=t())}let es="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,el=["debug","info","warn","error","log","assert","trace"],ec={};function eu(e){if(!("console"in er))return e();let t=er.console,n={},r=Object.keys(ec);r.forEach(e=>{let r=ec[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ed(){return ef().enabled}function ep(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];es&&ed()&&eu(()=>{er.console[e]("".concat("Sentry Logger ","[").concat(e,"]:"),...n)})}function ef(){return es?ei("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let eh={enable:function(){ef().enabled=!0},disable:function(){ef().enabled=!1},isEnabled:ed,log:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];ep("log",...t)},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];ep("warn",...t)},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];ep("error",...t)}};function em(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name="sentry.javascript.".concat(t),o.packages=n.map(e=>({name:"".concat(r,":@sentry/").concat(e),version:en})),o.version=en)}let eg=Object.prototype.toString;function e_(e){switch(eg.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return eT(e,Error)}}function ey(e,t){return eg.call(e)==="[object ".concat(t,"]")}function ev(e){return ey(e,"ErrorEvent")}function eb(e){return ey(e,"DOMError")}function eS(e){return ey(e,"String")}function ew(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function eE(e){return null===e||ew(e)||"object"!=typeof e&&"function"!=typeof e}function ek(e){return ey(e,"Object")}function eR(e){return"u">typeof Event&&eT(e,Event)}function ex(e){return!!((null==e?void 0:e.then)&&"function"==typeof e.then)}function eT(e,t){try{return e instanceof t}catch{return!1}}function eI(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function eP(e){return"u">typeof Request&&eT(e,Request)}function eC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n,r=e,o=[],a=0,i=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<5&&(n=function(e,t){let n=[];if(!(null==e?void 0:e.tagName))return"";if(er.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=(null==t?void 0:t.length)?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(null==r?void 0:r.length)r.forEach(e=>{n.push("[".concat(e[0],'="').concat(e[1],'"]'))});else{e.id&&n.push("#".concat(e.id));let t=e.className;if(t&&eS(t))for(let e of t.split(/\s+/))n.push(".".concat(e))}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push("[".concat(t,'="').concat(r,'"]'))}return n.join("")}(r,s),"html"!==n&&(!(a>1)||!(i+3*o.length+n.length>=l)));)o.push(n),i+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch{return"<unknown>"}}function eA(){try{return er.document.location.href}catch{return""}}function eO(e){if(!er.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function eM(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let o=n(r);"function"==typeof o&&eL(o,r);try{e[t]=o}catch{es&&eh.log('Failed to replace method "'.concat(t,'" in object'),e)}}
2function eN(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{es&&eh.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function eL(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,eN(e,"__sentry_original__",t)}catch{}}function eD(e){return e.__sentry_original__}function ej(e){if(e_(e))return{message:e.message,name:e.name,stack:e.stack,...eU(e)};if(!eR(e))return e;{let t={type:e.type,target:eF(e.target),currentTarget:eF(e.currentTarget),...eU(e)};return"u">typeof CustomEvent&&eT(e,CustomEvent)&&(t.detail=e.detail),t}}function eF(e){try{return"u">typeof Element&&eT(e,Element)?eC(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eU(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function eB(e){if(void 0!==t)return t?t(e):e();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in er&&"function"==typeof er[n]?(t=er[n])(e):(t=null,e())}function eW(){return eB(()=>Math.random())}function eH(){return eB(()=>Date.now())}let eq=/\(error: (.*)\)/,ez=/captureMessage|captureException/;function eV(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[],a=e.split("\n");for(let e=t;e<a.length;e++){let t=a[e];t.length>1024&&(t=t.slice(0,1024));let i=eq.test(t)?t.replace(eq,"$1"):t;if(!i.match(/\S*Error: /)){for(let e of r){let t=e(i);if(t){o.push(t);break}}if(o.length>=50+n)break}}var i=o.slice(n);if(!i.length)return[];let s=Array.from(i);return/sentryWrapped/.test(eG(s).function||"")&&s.pop(),s.reverse(),ez.test(eG(s).function||"")&&(s.pop(),ez.test(eG(s).function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||eG(s).filename,function:e.function||"?"}))}}function eG(e){return e[e.length-1]||{}}let eJ="<anonymous>";function eX(e){try{if(!e||"function"!=typeof e)return eJ;return e.name||eJ}catch{return eJ}}function eY(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function eK(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function e$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function eQ(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let a=Math.min(o+140,r);return a>r-5&&(a=r),a===r&&(o=Math.max(a-140,0)),n=n.slice(o,a),o>0&&(n="'{snip} ".concat(n)),a<r&&(n+=" {snip}"),n}function eZ(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{eI(r)?n.push(eK(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function e0(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!eS(e)&&(ey(t,"RegExp")?t.test(e):!!eS(t)&&(n?e===t:e.includes(t)))}function e1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some(t=>e0(e,t,n))}function e2(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er.crypto||er.msCrypto;try{if(null==e?void 0:e.randomUUID)return eB(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*eW())>>e/4).toString(16))}function e3(e){var t,n;return null==(n=e.exception)||null==(t=n.values)?void 0:t[0]}function e5(e){let{message:t,event_id:n}=e;if(t)return t;let r=e3(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function e4(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function e6(e,t){let n=e3(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...null==r?void 0:r.data,...t.data};n.mechanism.data=e}}function e8(e){if(e7(e))return!0;try{eN(e,"__sentry_captured__",!0)}catch{}return!1}function e7(e){try{return e.__sentry_captured__}catch{}}function e9(){return eH()/1e3}function te(){return(null!=r?r:r=function(){let{performance:e}=er;if(!(null==e?void 0:e.now)||!e.timeOrigin)return e9;let t=e.timeOrigin;return()=>(t+eB(()=>e.now()))/1e3}())()}let tt=null;function tn(){return null===tt&&(tt=function(){var e;let{performance:t}=er;if(!(null==t?void 0:t.now))return;let n=eB(()=>t.now()),r=eH(),o=t.timeOrigin;if("number"==typeof o&&3e5>Math.abs(o+n-r))return o;let a=null==(e=t.timing)?void 0:e.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+n-r)?a:r-n}()),tt}function tr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||te(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:e2()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function to(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=to(r[e],t[e],n-1));return r}function ta(){return e2().substring(16)}let ti="_sentrySpan";function ts(e,t){t?eN(e,ti,t):delete e[ti]}class tl{clone(){let e=new tl;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,ts(e,this[ti]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tr(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:o,user:a,contexts:i,level:s,fingerprint:l=[],propagationContext:c,conversationId:u}=(t instanceof tl?t.getScopeData():ek(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...i},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),c&&
2(this._propagationContext=c),u&&(this._conversationId=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ts(this,void 0),this._attachments=[],this.setPropagationContext({traceId:e2(),sampleRand:eW()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:e9(),...e,message:e.message?e$(e.message,2048):e.message};if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var o;this._breadcrumbs=this._breadcrumbs.slice(-n),null==(o=this._client)||o.recordDroppedEvent("buffer_overflow","log_item")}return this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[ti],conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=to(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=(null==t?void 0:t.event_id)||e2();if(!this._client)return es&&eh.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){var r;let o=(null==n?void 0:n.event_id)||e2();if(!this._client)return es&&eh.warn("No client configured on scope - will not capture message!"),o;let a=null!=(r=null==n?void 0:n.syntheticException)?r:Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,t){let n=e.event_id||(null==t?void 0:t.event_id)||e2();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):es&&eh.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:e2(),sampleRand:eW()}}}class tc{withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return ex(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}constructor(e,t){let n,r;n=e||new tl,r=t||new tl,this._stack=[{scope:n}],this._isolationScope=r}}function tu(){let e=ea(eo());return e.stack=e.stack||new tc(ei("defaultCurrentScope",()=>new tl),ei("defaultIsolationScope",()=>new tl))}function td(e){return tu().withScope(e)}function tp(e,t){let n=tu();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function tf(e){return tu().withScope(()=>e(tu().getIsolationScope()))}function th(e){let t=ea(e);return t.acs?t.acs:{withIsolationScope:tf,withScope:td,withSetScope:tp,withSetIsolationScope:(e,t)=>tf(t),getCurrentScope:()=>tu().getScope(),getIsolationScope:()=>tu().getIsolationScope()}}function tm(){return th(eo()).getCurrentScope()}function tg(){return th(eo()).getIsolationScope()}function t_(){return ei("globalScope",()=>new tl)}function ty(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=th(eo());if(2===t.length){let[e,n]=t;return e?r.withSetScope(e,n):r.withScope(n)}return r.withScope(t[0])}function tv(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=th(eo());if(2===t.length){let[e,n]=t;return e?r.withSetIsolationScope(e,n):r.withIsolationScope(n)}return r.withIsolationScope(t[0])}function tb(){return tm().getClient()}function tS(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),o={trace_id:t,span_id:r||ta()};return n&&(o.parent_span_id=n),o}let tw="sentry.source",tE="sentry.sample_rate",tk="sentry.previous_trace_sample_rate",tR="sentry.op",tx="sentry.origin",tT="sentry.idle_span_finish_reason",tI="sentry.measurement_unit",tP="sentry.measurement_value",tC="sentry.custom_span_name",tA="sentry.profile_id",tO="sentry.exclusive_time",tM="sentry-",tN=/^sentry-/;function tL(e){let t=tj(e);if(!t)return;let n=Object.entries(t).reduce((e,t)=>
2{let[n,r]=t;return n.match(tN)&&(e[n.slice(tM.length)]=r),e},{});return Object.keys(n).length>0?n:void 0}function tD(e){if(e){var t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r&&(e["".concat(tM).concat(n)]=r),e},{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,t,n)=>{let[r,o]=t,a="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o)),i=0===n?a:"".concat(e,",").concat(a);return i.length>8192?(es&&eh.warn("Not adding key: ".concat(r," with val: ").concat(o," to baggage header due to exceeding baggage size limits.")),e):i},""):void 0}}function tj(e){if(e&&(eS(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(tF(t)).forEach(t=>{let[n,r]=t;e[n]=r}),e),{}):tF(e)}function tF(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,t)=>{let[n,r]=t;return n&&r&&(e[n]=r),e},{})}function tU(e,t){var n,r,o,a;let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};try{i=e()}catch(e){throw t(e),s(),e}return n=i,r=t,o=s,a=l,ex(n)?n.then(e=>(o(),a(e),e),e=>{throw r(e),o(),e}):(o(),a(n),n)}function tB(e){var t;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let n=e||(null==(t=tb())?void 0:t.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function tW(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}function tH(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}function tq(e,t){e.setAttribute("http.response.status_code",t);let n=tH(t);"unknown_error"!==n.message&&e.setStatus(n)}let tz="_sentryScope",tV="_sentryIsolationScope";function tG(e,t,n){e&&(eN(e,tV,function(e){try{let t=er.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(n)),eN(e,tz,t))}function tJ(e){return{scope:e[tz],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[tV])}}let tX=/^o(\d+)\./,tY=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function tK(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:o,port:a,projectId:i,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&o?":".concat(o):"")+"@".concat(n).concat(a?":".concat(a):"","/").concat(r?"".concat(r,"/"):r).concat(i)}function t$(e){let t=tY.exec(e);if(!t)return void eu(()=>{console.error("Invalid Sentry Dsn: ".concat(e))});let[n,r,o="",a="",i="",s=""]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return tQ({host:a,pass:o,path:l,projectId:c,port:i,protocol:n,publicKey:r})}function tQ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tZ(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(t=null==(e=r.match(tX))?void 0:e[1])}return t}function t0(e){let t="string"==typeof e?t$(e):tQ(e);if(t&&function(e){if(!es)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eh.error("Invalid Sentry Dsn: ".concat(t," missing")),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(eh.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):!(t&&isNaN(parseInt(t,10)))||(eh.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(eh.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(t))return t}let t1=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function t2(e){let t;if(!e)return;let n=e.match(t1);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function t3(e,t){let n=t2(e),r=tL(t);if(!(null==n?void 0:n.traceId))return{traceId:e2(),sampleRand:eW()};let o=function(e,t){let n=tW(null==t?void 0:t.sample_rand);if(void 0!==n)return n;let r=tW(null==t?void 0:t.sample_rate);return r&&(null==e?void 0:e.parentSampled)!==void 0?e.parentSampled?eW()*r:r+eW()*(1-r):eW()}(n,r);r&&(r.sample_rand=o.toString());let{traceId:a,parentSpanId:i,parentSampled:s}=n;return{traceId:a,parentSpanId:i,sampled:s,dsc:r||{},sampleRand:o}}function t5(){let e=arguments.length>
20&&void 0!==arguments[0]?arguments[0]:e2(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ta(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}function t4(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e2(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ta(),n=arguments.length>2?arguments[2]:void 0;return"00-".concat(e,"-").concat(t,"-").concat(n?"01":"00")}let t6=!1;function t8(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:nn(e).parent_span_id,a=tJ(e).scope;return{parent_span_id:o,span_id:r?(null==a?void 0:a.getPropagationContext().propagationSpanId)||ta():t,trace_id:n}}function t7(e){let{traceId:t,spanId:n}=e.spanContext();return t5(t,n,nr(e))}function t9(e){return e&&e.length>0?e.map(e=>{let{context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:a}=e;return{span_id:t,trace_id:n,sampled:1===r,attributes:a,...o}}):void 0}function ne(e){return"number"==typeof e?nt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nt(e.getTime()):te()}function nt(e){return e>0x2540be3ff?e/1e3:e}function nn(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:o}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:i,endTime:s,status:l,links:c}=e;return{span_id:r,trace_id:o,data:t,description:i,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?null==(n=e.parentSpanContext)?void 0:n.spanId:void 0,start_timestamp:ne(a),timestamp:ne(s)||void 0,status:no(l),op:t[tR],origin:t[tx],links:t9(c)}}return{span_id:r,trace_id:o,start_timestamp:0,data:{}}}function nr(e){let{traceFlags:t}=e.spanContext();return 1===t}function no(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}let na="_sentryChildSpans",ni="_sentryRootSpan";function ns(e,t){let n=e[ni]||e;eN(t,ni,n),e[na]?e[na].add(t):eN(e,na,new Set([t]))}function nl(e){let t=new Set;return!function e(n){if(!t.has(n)&&nr(n))for(let r of(t.add(n),n[na]?Array.from(n[na]):[]))e(r)}(e),Array.from(t)}function nc(e){return e[ni]||e}function nu(){let e=th(eo());return e.getActiveSpan?e.getActiveSpan():tm()[ti]}function nd(){t6||(eu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),t6=!0)}function np(e,t){e.updateName(t),e.setAttributes({[tw]:"custom",[tC]:t})}let nf="production",nh="_frozenDsc";function nm(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||nf,release:n.release,public_key:r,trace_id:e,org_id:tZ(t)};return t.emit("createDsc",o),o}function ng(e,t){let n=t.getPropagationContext();return n.dsc||nm(n.traceId,e)}function n_(e){var t,n,r,o;let a=tb();if(!a)return{};let i=nc(e),s=nn(i),l=s.data,c=i.spanContext().traceState,u=null!=(t=null!=(n=null==c?void 0:c.get("sentry.sample_rate"))?n:l[tE])?t:l[tk];function d(e){return("number"==typeof u||"string"==typeof u)&&(e.sample_rate="".concat(u)),e}let p=i[nh];if(p)return d(p);let f=null==c?void 0:c.get("sentry.dsc"),h=f&&tL(f);if(h)return d(h);let m=nm(e.spanContext().traceId,a),g=l[tw],_=s.description;return"url"!==g&&_&&(m.transaction=_),tB()&&(m.sampled=String(nr(i)),m.sample_rand=null!=(r=null==c?void 0:c.get("sentry.sample_rand"))?r:null==(o=tJ(i).scope)?void 0:o.getPropagationContext().sampleRand.toString()),d(m),a.emit("createDsc",m,i),m}function ny(e){return tD(n_(e))}class nv{spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}constructor(e={}){this._traceId=e.traceId||e2(),this._spanId=e.spanId||ta()}}function nb(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function t(n,r){let o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(o=new WeakSet,[function(e){return!!o.has(e)||(o.add(e),
2!1)},function(e){o.delete(e)}]),[l,c]=s;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let u=function(t,n){try{var r;let o;if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(n===e.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";if(eI(n))return eK(n);if(ek(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return"[".concat(n,"]");if("function"==typeof n)return"[Function: ".concat(eX(n),"]");if("symbol"==typeof n)return"[".concat(String(n),"]");if("bigint"==typeof n)return"[BigInt: ".concat(String(n),"]");let a=(r=n,o=Object.getPrototypeOf(r),(null==o?void 0:o.constructor)?o.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(a))return"[HTMLElement: ".concat(a,"]");return"[object ".concat(a,"]")}catch(e){return"**non-serializable** (".concat(e,")")}}(n,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let d="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:a;if(0===d)return u.replace("object ","");if(l(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let e=r.toJSON();return t("",e,d-1,i,s)}catch{}let p=Array.isArray(r)?[]:{},f=0,h=ej(r);for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(f>=i){p[e]="[MaxProperties ~]";break}let n=h[e];p[e]=t(e,n,d-1,i,s),f++}return c(r),p}("",t,n,r)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function nS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function nw(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function nE(e,t){return nw(e,(e,n)=>t.includes(n))}function nk(e){let t=ea(er);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function nR(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[nk(r),e]:r.push("string"==typeof e?nk(e):e)}for(let e of n){let[t,n]=e;if(o("\n".concat(JSON.stringify(t),"\n")),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(nb(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}let nx={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function nT(e){if(!(null==e?void 0:e.sdk))return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function nI(e,t,n,r){var o;let a=null==(o=e.sdkProcessingMetadata)?void 0:o.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tK(r)},...a&&{trace:a}}}function nP(e){eh.log("Ignoring span ".concat(e.op," - ").concat(e.description," because it matches `ignoreSpans`."))}function nC(e,t){if(!(null==t?void 0:t.length)||!e.description)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e0(e.description,r))return es&&nP(e),!0;continue}if(!r.name&&!r.op)continue;let t=!r.name||e0(e.description,r.name),o=!r.op||e.op&&e0(e.op,r.op);if(t&&o)return es&&nP(e),!0}return!1}function nA(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nu(),o=r&&nc(r);o&&(es&&eh.log("[Measurement] Setting measurement on root span: ".concat(e," = ").concat(t," ").concat(n)),o.addEvent(e,{[tP]:t,[tI]:n}))}function nO(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[tI],o=n[tP];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}class nM{addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=ne(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(tw,"custom"),this}end(e){this._endTime||(this._endTime=ne(e),function(e){if(!es)return;let{description:t="< unknown name >",op:n="< unknown op >"}=nn(e),{spanId:r}=e.spanContext(),o=nc(e)===e,a='[Tracing] Finishing "'.concat(n,'" ').concat(o?"root ":"",'span "').concat(t,'" with ID ').concat(r);eh.log(a)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tR],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:no(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tx],profile_id:this._attributes[tA],exclusive_time:this._attributes[tO],measurements:nO(this._events),is_segment:this._isStandaloneSpan&&nc(this)===this||void 0,segment_id:this._isStandaloneSpan?nc(this).spanContext().spanId:void 0,links:t9(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){es&&eh.log("[Tracing] Adding an event to span:",e);let r=nN(t)?t:n||te(),o=nN(t)?{}:t||{},a={name:e,time:ne(r),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=tb();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===nc(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=tb();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=n_(e[0]),r=null==t?void 0:t.getDsn(),o=null==t?void 0:t.getOptions().tunnel,a={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!o&&r&&{dsn:tK(r)}},{beforeSendSpan:i,ignoreSpans:s}=(null==t?void 0:t.getOptions())||{},l=(null==s?void 0:s.length)?e.filter(e=>!nC(nn(e),s)):e,c=e.length-l.length;c&&(null==t||t.recordDroppedEvent("before_send","span",c));let u=i?e=>{let t=nn(e),n=i(t);return n||(nd(),t)}:nn,d=[];for(let e of l){let t=u(e);t&&d.push([{type:"span"},t])}return nS(a,d)}([this],e)):(es&&eh.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();
2t&&(tJ(this).scope||tm()).captureEvent(t)}_convertSpanToTransaction(){var e;if(!nL(nn(this)))return;this._name||(es&&eh.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=tJ(this),r=null==t||null==(e=t.getScopeData().sdkProcessingMetadata)?void 0:e.normalizedRequest;if(!0!==this._sampled)return;let o=nl(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof nM&&t.isStandaloneSpan())}).map(e=>nn(e)).filter(nL),a=this._attributes[tw];delete this._attributes[tC],o.forEach(e=>{delete e.data[tC]});let i={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:i,origin:s,links:l}=nn(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:i,origin:s,links:l}}(this)},spans:o.length>1e3?o.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:n_(this)},request:r,...a&&{transaction_info:{source:a}}},s=nO(this._events);return s&&Object.keys(s).length&&(es&&eh.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),i.measurements=s),i}constructor(e={}){this._traceId=e.traceId||e2(),this._spanId=e.spanId||ta(),this._startTime=e.startTimestamp||te(),this._links=e.links,this._attributes={},this.setAttributes({[tx]:"manual",[tR]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}}function nN(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function nL(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let nD="__SENTRY_SUPPRESS_TRACING__";function nj(e,t){let n=nG();if(n.startSpan)return n.startSpan(e,t);let r=nV(e),{forceTransaction:o,parentSpan:a,scope:i}=e;return ty(null==i?void 0:i.clone(),()=>nY(a)(()=>{let n=tm(),i=nX(n,a),s=e.onlyIfParent&&!i?new nv:nz({parentSpan:i,spanArguments:r,forceTransaction:o,scope:n});return ts(n,s),tU(()=>t(s),()=>{let{status:e}=nn(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:2,message:"internal_error"})},()=>{s.end()})}))}function nF(e,t){let n=nG();if(n.startSpanManual)return n.startSpanManual(e,t);let r=nV(e),{forceTransaction:o,parentSpan:a,scope:i}=e;return ty(null==i?void 0:i.clone(),()=>nY(a)(()=>{let n=tm(),i=nX(n,a),s=e.onlyIfParent&&!i?new nv:nz({parentSpan:i,spanArguments:r,forceTransaction:o,scope:n});return ts(n,s),tU(()=>t(s,()=>s.end()),()=>{let{status:e}=nn(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:2,message:"internal_error"})})}))}function nU(e){let t=nG();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=nV(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>ty(e.scope,t):void 0!==o?e=>nW(o,e):e=>e())(()=>{let t=tm(),a=nX(t,o);return e.onlyIfParent&&!a?new nv:nz({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}let nB=(e,t)=>{var n;let r,o=th(eo());if(o.continueTrace)return o.continueTrace(e,t);let{sentryTrace:a,baggage:i}=e,s=tb(),l=tL(i);return s&&(n=null==l?void 0:l.org_id,r=tZ(s),n&&r&&n!==r?(eh.log("Won't continue trace because org IDs don't match (incoming baggage: ".concat(n,", SDK options: ").concat(r,")")),1):s.getOptions().strictTraceContinuation&&(n&&!r||!n&&r)&&(eh.log("Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ".concat(n,", Sentry client: ").concat(r,")")),1))?nq(t):ty(e=>{let n=t3(a,i);return e.setPropagationContext(n),ts(e,void 0),t()})};function nW(e,t){let n=nG();return n.withActiveSpan?n.withActiveSpan(e,t):ty(n=>(ts(n,e||void 0),t(n)))}function nH(e){let t=nG();return t.suppressTracing?t.suppressTracing(e):ty(t=>{t.setSDKProcessingMetadata({[nD]:!0});let n=e();return t.setSDKProcessingMetadata({[nD]:void 0}),n})}function nq(e){return ty(t=>(t.setPropagationContext({traceId:e2(),sampleRand:eW()}
2),es&&eh.log("Starting a new trace with id ".concat(t.getPropagationContext().traceId)),nW(null,e)))}function nz(e){let t,{parentSpan:n,spanArguments:r,forceTransaction:o,scope:a}=e;if(!tB()){let e=new nv;if(o||!n){let t={sampled:"false",sample_rate:"0",transaction:r.name,...n_(e)};eN(e,nh,t)}return e}let i=tg();if(n&&!o)t=function(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[nD]&&nr(e),i=a?new nM({...n,parentSpanId:r,traceId:o,sampled:a}):new nv({traceId:o});ns(e,i);let s=tb();return s&&(s.emit("spanStart",i),n.endTimestamp&&s.emit("spanEnd",i)),i}(n,a,r),ns(n,t);else if(n){let e=n_(n),{traceId:o,spanId:i}=n.spanContext(),s=nr(n);eN(t=nJ({traceId:o,parentSpanId:i,...r},a,s),nh,e)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...a.getPropagationContext()};t=nJ({traceId:e,parentSpanId:o,...r},a,s),n&&eN(t,nh,n)}return!function(e){if(!es)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=nn(e),{spanId:o}=e.spanContext(),a=nr(e),i=nc(e),s=i===e,l="[Tracing] Starting ".concat(a?"sampled":"unsampled"," ").concat(s?"root ":"","span"),c=["op: ".concat(n),"name: ".concat(t),"ID: ".concat(o)];if(r&&c.push("parent ID: ".concat(r)),!s){let{op:e,description:t}=nn(i);c.push("root ID: ".concat(i.spanContext().spanId)),e&&c.push("root op: ".concat(e)),t&&c.push("root description: ".concat(t))}eh.log("".concat(l,"\n  ").concat(c.join("\n  ")))}(t),tG(t,a,i),t}function nV(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=ne(e.startTime),delete n.startTime,n}return t}function nG(){return th(eo())}function nJ(e,t,n){var r,o;let a=tb(),i=(null==a?void 0:a.getOptions())||{},{name:s=""}=e,l={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};null==a||a.emit("beforeSampling",l,{decision:!1});let c=null!=(r=l.parentSampled)?r:n,u=l.spanAttributes,d=t.getPropagationContext(),[p,f,h]=t.getScopeData().sdkProcessingMetadata[nD]?[!1]:function(e,t,n){let r,o;if(!tB(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),o=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,o=!0);let a=tW(r);if(void 0===a)return es&&eh.warn("[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(r)," of type ").concat(JSON.stringify(typeof r),".")),[!1];if(!a)return es&&eh.log("[Tracing] Discarding transaction because ".concat("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,a,o];let i=n<a;return!i&&es&&eh.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),[i,a,o]}(i,{name:s,parentSampled:c,attributes:u,parentSampleRate:tW(null==(o=d.dsc)?void 0:o.sample_rate)},d.sampleRand),m=new nM({...e,attributes:{[tw]:"custom",[tE]:void 0!==f&&h?f:void 0,...u},sampled:p});return!p&&a&&(es&&eh.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate","transaction")),a&&a.emit("spanStart",m),m}function nX(e,t){if(t)return t;if(null===t)return;let n=e[ti];if(!n)return;let r=tb();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?nc(n):n}function nY(e){return void 0!==e?t=>nW(e,t):e=>e()}function nK(e){return new nQ(t=>{t(e)})}function n$(e){return new nQ((t,n)=>{n(e)})}class nQ{then(e,t){return new nQ((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new nQ((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();
2this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(ex(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}}function nZ(e){let t=er._sentryDebugIds,n=er._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],l=n?Object.keys(n):[];if(s&&r.length===a&&l.length===i)return s;a=r.length,i=l.length,s={},o||(o={});let c=(t,n)=>{for(let r of t){let t=n[r],a=null==o?void 0:o[r];if(a&&s&&t)s[a[0]]=t,o&&(o[r]=[a[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let a=n[e],i=null==a?void 0:a.filename;if(i&&s&&o){s[i]=t,o[r]=[i,t];break}}}}};return t&&c(r,t),n&&c(l,n),s}function n0(e,t){let{extra:n,tags:r,attributes:o,user:a,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:m}=t;n1(e,"extra",n),n1(e,"tags",r),n1(e,"attributes",o),n1(e,"user",a),n1(e,"contexts",i),e.sdkProcessingMetadata=to(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function n1(e,t,n){e[t]=to(e[t],n,1)}function n2(e,t){let n=t_().getScopeData();return e&&n0(n,e.getScopeData()),t&&n0(n,t.getScopeData()),n}function n3(e,t,n,r,o,a){var i,s,l,c,u;let d,{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=e,h={...t,event_id:t.event_id||n.event_id||e2(),timestamp:t.timestamp||e9()},m=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:o,maxValueLength:a}=t;e.environment=e.environment||n||nf,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let i=e.request;if((null==i?void 0:i.url)&&a&&(i.url=e$(i.url,a)),a){var s,l;null==(l=e.exception)||null==(s=l.values)||s.forEach(e=>{e.value&&(e.value=e$(e.value,a))})}})(h,e),i=h,(s=m).length>0&&(i.sdk=i.sdk||{},i.sdk.integrations=[...i.sdk.integrations||[],...s]),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&(l=h,d=nZ(e.stackParser),null==(u=l.exception)||null==(c=u.values)||c.forEach(e=>{var t,n;null==(n=e.stacktrace)||null==(t=n.frames)||t.forEach(e=>{e.filename&&(e.debug_id=d[e.filename])})}));let g=function(e,t){if(!t)return e;let n=e?e.clone():new tl;return n.update(t),n}(r,n.captureContext);n.mechanism&&e6(h,n.mechanism);let _=o?o.getEventProcessors():[],y=n2(a,g),v=[...n.attachments||[],...y.attachments];v.length&&(n.attachments=v),function(e,t){var n,r,o,a,i,s,l,c;let u,d,{fingerprint:p,span:f,breadcrumbs:h,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:o,contexts:a,level:i,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),f&&((n=e).contexts={trace:t8(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:n_(r),...n.sdkProcessingMetadata},(u=nn(nc(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=u)),o=e,a=p,o.fingerprint=o.fingerprint?Array.isArray(o.fingerprint)?o.fingerprint:[o.fingerprint]:[],a&&(o.fingerprint=o.fingerprint.concat(a)),o.fingerprint.length||delete o.fingerprint,i=e,s=h,d=[...i.breadcrumbs||[],...s],i.breadcrumbs=d.length?d:void 0,l=e,c=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...c}}(h,y);let b=[..._,...y.eventProcessors];return(n.data&&!0===n.data.__sentry__?nK(h):function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let o=function e(t,n,r,o){let a=r[o];if(!t||!a)return t;let i=a({...t},n);return(es&&null===i&&eh.log('Event processor "'.concat(a.id||"?",'" dropped event')),ex(i))?i.then(t=>e(t,n,r,o+1)):e(i,n,r,o+1)}(t,n,e,r);return ex(o)?o:nK(o)}catch(e){return n$(e)}}(b,h,n)).then(e=>(e&&function(e){var t,n;let r={};
2if(null==(n=e.exception)||null==(t=n.values)||t.forEach(e=>{var t,n;null==(n=e.stacktrace)||null==(t=n.frames)||t.forEach(e=>{e.debug_id&&(e.abs_path?r[e.abs_path]=e.debug_id:e.filename&&(r[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(r).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let o=e.debug_meta.images;Object.entries(r).forEach(e=>{let[t,n]=e;o.push({type:"sourcemap",code_file:t,debug_id:n})})}(e),"number"==typeof p&&p>0)?function(e,t,n){var r,o;if(!e)return null;let a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:nb(e.data,t,n)}}))},...e.user&&{user:nb(e.user,t,n)},...e.contexts&&{contexts:nb(e.contexts,t,n)},...e.extra&&{extra:nb(e.extra,t,n)}};return(null==(r=e.contexts)?void 0:r.trace)&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=nb(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(e=>({...e,...e.data&&{data:nb(e.data,t,n)}}))),(null==(o=e.contexts)?void 0:o.flags)&&a.contexts&&(a.contexts.flags=nb(e.contexts.flags,3,n)),a}(e,p,f):e)}let n5=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function n4(e,t){return tm().captureException(e,function(e){if(e){var t;return(t=e)instanceof tl||"function"==typeof t||Object.keys(e).some(e=>n5.includes(e))?{captureContext:e}:e}}(t))}function n6(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return tm().captureMessage(e,n,r)}function n8(e,t){return tm().captureEvent(e,t)}function n7(e,t){tg().setContext(e,t)}function n9(e){tg().setExtras(e)}function re(e,t){tg().setExtra(e,t)}function rt(e){tg().setTags(e)}function rn(e,t){tg().setTag(e,t)}function rr(e){tg().setUser(e)}function ro(){return tg().lastEventId()}function ra(e,t){let n=tm(),r=tb();if(r)if(r.captureCheckIn)return r.captureCheckIn(e,t,n);else es&&eh.warn("Cannot capture check-in. Client does not support sending check-ins.");else es&&eh.warn("Cannot capture check-in. No client defined.");return e2()}async function ri(e){let t=tb();return t?t.flush(e):(es&&eh.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function rs(e){let t=tb();return t?t.close(e):(es&&eh.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function rl(){return!!tb()}function rc(){let e=tb();return(null==e?void 0:e.getOptions().enabled)!==!1&&!!(null==e?void 0:e.getTransport())}function ru(e){tg().addEventProcessor(e)}function rd(e){var t;let n,r,o=tg(),{user:a}=n2(o,tm()),{userAgent:i}=er.navigator||{},s=(t={user:a,...i&&{userAgent:i},...e},n=te(),r={sid:e2(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&tr(r,t),r),l=o.getSession();return(null==l?void 0:l.status)==="ok"&&tr(l,{status:"exited"}),rp(),o.setSession(s),s}function rp(){let e,t=tg(),n=tm().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),tr(n,e)),rf(),t.setSession()}function rf(){let e=tg(),t=tb(),n=e.getSession();n&&t&&t.captureSession(n)}function rh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?rp():rf()}let rm=[];function rg(e,t){for(let n of t)(null==n?void 0:n.afterAllSetup)&&n.afterAllSetup(e)}function r_(e,t,n){if(n[t.name]){es&&eh.log("Integration skipped because it was already installed: ".concat(t.name));return}if(n[t.name]=t,rm.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),rm.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}es&&eh.log("Integration installed: ".concat(t.name))}function ry(e){let t=tb();if(!t){es&&eh.warn('Cannot add integration "'.concat(e.name,'" because no SDK Client is available.'));return}t.addIntegration(e)}function rv(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];(null==n?void 0:n.value)&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value)))}catch{}return t}let rb=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],rS=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
2return{name:"EventFilters",setup(n){e=rE(t,n.getOptions())},processEvent:(n,r,o)=>(e||(e=rE(t,o.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!(null==t?void 0:t.length))return!1;let n=e.transaction;return!!n&&e1(n,t)}(e,t.ignoreTransactions))return es&&eh.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(e5(e))),!0}else{var n,r,o,a,i;if(n=e,(null==(r=t.ignoreErrors)?void 0:r.length)&&rv(n).some(e=>e1(e,r)))return es&&eh.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(e5(e))),!0;if((null==(i=(o=e).exception)||null==(a=i.values)?void 0:a.length)&&!o.message&&!o.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return es&&eh.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(e5(e))),!0;if(function(e,t){if(!(null==t?void 0:t.length))return!1;let n=rk(e);return!!n&&e1(n,t)}(e,t.denyUrls))return es&&eh.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(e5(e),".\nUrl: ").concat(rk(e))),!0;if(!function(e,t){if(!(null==t?void 0:t.length))return!0;let n=rk(e);return!n||e1(n,t)}(e,t.allowUrls))return es&&eh.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(e5(e),".\nUrl: ").concat(rk(e))),!0}return!1}(n,e)?n:null)}},rw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...rS(e),name:"InboundFilters"}};function rE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:rb],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function rk(e){try{var t,n,r;let o=[...null!=(t=null==(n=e.exception)?void 0:n.values)?t:[]].reverse().find(e=>{var t,n,r;return(null==(t=e.mechanism)?void 0:t.parent_id)===void 0&&(null==(r=e.stacktrace)||null==(n=r.frames)?void 0:n.length)}),a=null==o||null==(r=o.stacktrace)?void 0:r.frames;return a?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(a):null}catch{return es&&eh.error("Cannot extract url for event ".concat(e5(e))),null}}let rR=new WeakMap,rx=()=>({name:"FunctionToString",setupOnce(){l=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=eD(this),o=rR.has(tb())&&void 0!==r?r:this;return l.apply(o,t)}}catch{}},setup(e){rR.set(e,!0)}}),rT=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r,o,a,i,s;let l,c,u,d;if(n=t,(r=e)&&(o=n,a=r,l=o.message,c=a.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&rP(o,a)&&rI(o,a)&&1||(i=n,s=r,u=rC(s),d=rC(i),u&&d&&u.type===d.type&&u.value===d.value&&rP(i,s)&&rI(i,s))))return es&&eh.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function rI(e,t){let n=eY(e),r=eY(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function rP(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function rC(e){var t,n;return null==(n=e.exception)||null==(t=n.values)?void 0:t[0]}function rA(e){tm().setClient(e)}function rO(e){let t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function rM(e,t,n){let r;return t||"".concat("".concat(rO(e)).concat(e.projectId,"/envelope/"),"?").concat((r={sentry_version:"7"},e.publicKey&&(r.sentry_key=e.publicKey),n&&(r.sentry_client="".concat(n.name,"/").concat(n.version)),new URLSearchParams(r).toString()))}function rN(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};for(let[r,o]of Object.entries(null!=e?e:{})){let e=function(e,t){var n;let{value:r,unit:o}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},a=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),i=o&&"string"==typeof o?{unit:o}:{};if(a)return{...a,...i};
2if(!t||"skip-undefined"===t&&void 0===r)return;let s="";try{s=null!=(n=JSON.stringify(r))?n:""}catch{}return{value:s,type:"string",...i}}(o,t);e&&(n[r]=e)}return n}function rL(e,t){return t?ty(t,()=>{let n=nu(),r=n?t8(n):tS(t);return[n?n_(n):ng(e,t),r]}):[void 0,void 0]}let rD={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function rj(e,t,n){let r=!(arguments.length>3)||void 0===arguments[3]||arguments[3];n&&(!e[t]||r)&&(e[t]=n)}function rF(e,t){var n;let r=rW(),o=(n=e,rW().get(n));void 0===o?r.set(e,[t]):o.length>=100?(rB(e,o),r.set(e,[t])):r.set(e,[...o,t])}function rU(e){var t,n,r;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tm(),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rF,i=null!=(t=null==o?void 0:o.getClient())?t:tb();if(!i){es&&eh.warn("No client available to capture log.");return}let{release:s,environment:l,enableLogs:c=!1,beforeSendLog:u}=i.getOptions();if(!c){es&&eh.warn("logging option not enabled, log will not be captured.");return}let[,d]=rL(i,o),p={...e.attributes},{user:{id:f,email:h,username:m},attributes:g={}}=n2(tg(),o);rj(p,"user.id",f,!1),rj(p,"user.email",h,!1),rj(p,"user.name",m,!1),rj(p,"sentry.release",s),rj(p,"sentry.environment",l);let{name:_,version:y}=null!=(n=null==(r=i.getSdkMetadata())?void 0:r.sdk)?n:{};rj(p,"sentry.sdk.name",_),rj(p,"sentry.sdk.version",y);let v=i.getIntegrationByName("Replay"),b=null==v?void 0:v.getReplayId(!0);rj(p,"sentry.replay_id",b),b&&(null==v?void 0:v.getRecordingMode())==="buffer"&&rj(p,"sentry._internal.replay_is_buffering",!0);let S=e.message;if(ew(S)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=S;(null==t?void 0:t.length)&&(p["sentry.message.template"]=e),t.forEach((e,t)=>{p["sentry.message.parameter.".concat(t)]=e})}let w=o[ti];rj(p,"sentry.trace.parent_span_id",null==w?void 0:w.spanContext().spanId);let E={...e,attributes:p};i.emit("beforeCaptureLog",E);let k=u?eu(()=>u(E)):E;if(!k){i.recordDroppedEvent("before_send","log_item",1),es&&eh.warn("beforeSendLog returned null, log will not be captured.");return}let{level:R,message:x,attributes:T={},severityNumber:I}=k;a(i,{timestamp:te(),level:R,body:x,trace_id:null==d?void 0:d.trace_id,severity_number:null!=I?I:rD[R],attributes:{...rN(g),...rN(T,!0)}}),i.emit("afterCaptureLog",k)}function rB(e,t){var n,r,o,a,i;let s,l=null!=(n=null!=t?t:(i=e,rW().get(i)))?n:[];if(0===l.length)return;let c=e.getOptions(),u=(r=c._metadata,o=c.tunnel,a=e.getDsn(),s={},(null==r?void 0:r.sdk)&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),o&&a&&(s.dsn=tK(a)),nS(s,[[{type:"log",item_count:l.length,content_type:"application/vnd.sentry.items.log+json"},{items:l}]]));rW().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function rW(){return ei("clientToLogBufferMap",()=>new WeakMap)}function rH(e,t,n){let r=!(arguments.length>3)||void 0===arguments[3]||arguments[3];!n||!r&&t in e||(e[t]=n)}function rq(e,t){var n;let r=rV(),o=(n=e,rV().get(n));void 0===o?r.set(e,[t]):o.length>=1e3?(rz(e,o),r.set(e,[t])):r.set(e,[...o,t])}function rz(e,t){var n,r,o,a,i;let s,l=null!=(n=null!=t?t:(i=e,rV().get(i)))?n:[];if(0===l.length)return;let c=e.getOptions(),u=(r=c._metadata,o=c.tunnel,a=e.getDsn(),s={},(null==r?void 0:r.sdk)&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),o&&a&&(s.dsn=tK(a)),nS(s,[[{type:"trace_metric",item_count:l.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:l}]]));rV().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(u)}function rV(){return ei("clientToMetricBufferMap",()=>new WeakMap)}function rG(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let rJ=Symbol.for("SentryBufferFullError");function rX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return n$(rJ);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return nK(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>rG(setTimeout(()=>t(!1),e)))]):n}}}function rY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eH(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;let r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}function rK(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eH();return(e[t]||e.all||0)>n}function r$(e,t){let{statusCode:n,headers:r}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eH(),a={...e},i=null==r?void 0:r["x-sentry-rate-limits"],s=null==r?void 0:r["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,r]=e.split(":",5),i=parseInt(t,10),s=(isNaN(i)?60:i)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(a[e]=o+s):a[e]=o+s;else a.all=o+s}else s?a.all=o+rY(s,o):429===n&&(a.all=o+6e4);return a}function rQ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rX(e.bufferSize||64),r={};return{send:function(o){let a=[];if(nw(o,(t,n)=>{let o=nx[n];rK(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):a.push(t)}),0===a.length)return Promise.resolve({});let i=nS(o[0],a),s=t=>{if(nE(i,["client_report"])){es&&eh.warn("Dropping client report. Will not send outcomes (reason: ".concat(t,")."));return}nw(i,(n,r)=>{e.recordDroppedEvent(t,nx[r])})};return n.add(()=>t({body:nR(i)}).then(e=>(413===e.statusCode?(es&&eh.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(es&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eh.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=r$(r,e)),e),e=>{throw s("network_error"),es&&eh.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
2{if(e===rJ)return es&&eh.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}let rZ="Not capturing exception because it's already been captured.",r0="Discarded session because of missing or non-string release",r1=Symbol.for("SentryInternalError"),r2=Symbol.for("SentryDoNotSendEventError");function r3(e){return{message:e,[r1]:!0}}function r5(e){return{message:e,[r2]:!0}}function r4(e){return!!e&&"object"==typeof e&&r1 in e}function r6(e){return!!e&&"object"==typeof e&&r2 in e}function r8(e,t,n,r,o){let a,i=0,s=!1;e.on(n,()=>{i=0,clearTimeout(a),s=!1}),e.on(t,t=>{(i+=r(t))>=8e5?o(e):s||(s=!0,a=rG(setTimeout(()=>{o(e)},5e3)))}),e.on("flush",()=>{o(e)})}class r7{captureException(e,t,n){let r=e2();if(e8(e))return es&&eh.log(rZ),r;let o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){let o={event_id:e2(),...n},a=ew(e)?e:String(e),i=eE(e),s=i?this.eventFromMessage(a,t,o):this.eventFromException(e,o);return this._process(()=>s.then(e=>this._captureEvent(e,o,r)),i?"unknown":"error"),o.event_id}captureEvent(e,t,n){let r=e2();if((null==t?void 0:t.originalException)&&e8(t.originalException))return es&&eh.log(rZ),r;let o={event_id:r,...t},a=e.sdkProcessingMetadata||{},i=a.capturedSpanScope,s=a.capturedSpanIsolationScope,l=r9(e.type);return this._process(()=>this._captureEvent(e,o,i||n,s),l),o.event_id}captureSession(e){this.sendSession(e),tr(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){rB(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(e=>{let{name:t}=e;return t.startsWith("Spotlight")}))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];r_(this,e,this._integrations),t||rg(this,[e])}sendEvent(e){var t,n,r;let o,a,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,s);let l=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,o=nT(n),a=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){var n,r,o,a;if(!t)return;let i=e.sdk||{};e.sdk={...i,name:i.name||t.name,version:i.version||t.version,integrations:[...(null==(n=e.sdk)?void 0:n.integrations)||[],...t.integrations||[]],packages:[...(null==(r=e.sdk)?void 0:r.packages)||[],...t.packages||[]],settings:(null==(o=e.sdk)?void 0:o.settings)||t.settings?{...null==(a=e.sdk)?void 0:a.settings,...t.settings}:void 0}}(e,null==n?void 0:n.sdk),i=nI(e,o,r,t),delete e.sdkProcessingMetadata,nS(i,[[{type:a},e]]));for(let e of s.attachments||[])l=function(e,t){let[n,r]=e;return[n,[...r,t]]}(l,function(e){let t="string"==typeof e.data?nk(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(l).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let o,{release:a,environment:i=nf}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!a){es&&eh.warn(r0);return}t.release=t.release||a,t.environment=t.environment||i,e.attrs=t}else{if(!e.release&&!a){es&&eh.warn(r0);return}e.release=e.release||a,e.environment=e.environment||i}this.emit("beforeSendSession",e);let s=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,o=nT(n),nS({sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:tK(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(s)}recordDroppedEvent(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){let r="".concat(e,":").concat(t);es&&eh.log('Recording outcome: "'.concat(r,'"').concat(n>1?" (".concat(n," times)"):"")),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t(...n)};return n.add(r),()=>{n.delete(r)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o=this._hooks[e];
2o&&o.forEach(e=>e(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return es&&eh.error("Error while sending envelope:",e),{}}return es&&eh.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(n=>{n&&r_(e,n,t)}),t),rg(this,n)}_updateSessionFromEvent(e,t){var n,r;let o="fatal"===t.level,a=!1,i=null==(n=t.exception)?void 0:n.values;if(i){for(let e of(a=!0,o=!1,i))if((null==(r=e.mechanism)?void 0:r.handled)===!1){o=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&o)&&(tr(e,{...o&&{status:"crashed"},errors:e.errors||Number(a||o)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&(null==a?void 0:a.length)&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),n3(o,e,t,n,this,r).then(e=>
2(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:tS(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ng(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tm(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tg();return es&&oe(e)&&eh.log("Captured error event `".concat(rv(e)[0]||"<unknown>","`")),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{es&&(r6(e)?eh.log(e.message):r4(e)?eh.warn(e.message):eh.warn(e))})}_processEvent(e,t,n,r){let o=this.getOptions(),{sampleRate:a}=o,i=ot(e),s=oe(e),l=e.type||"error",c="before send for type `".concat(l,"`"),u=void 0===a?void 0:tW(a);if(s&&"number"==typeof u&&eW()>u)return this.recordDroppedEvent("sample_rate","error"),n$(r5("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")")));let d=r9(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),r5("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n="".concat(t," must return `null` or a valid event.");if(ex(e))return e.then(e=>{if(!ek(e)&&null!==e)throw r3(n);return e},e=>{throw r3("".concat(t," rejected with ").concat(e))});if(!ek(e)&&null!==e)throw r3(n);return e}(function(e,t,n,r){let{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i,ignoreSpans:s}=t,l=n;if(oe(l)&&o)return o(l,r);if(ot(l)){if(i||s){let t=function(e){var t,n,r;let{trace_id:o,parent_span_id:a,span_id:i,status:s,origin:l,data:c,op:u}=null!=(t=null==(r=e.contexts)?void 0:r.trace)?t:{};return{data:null!=c?c:{},description:e.transaction,op:u,parent_span_id:a,span_id:null!=i?i:"",start_timestamp:null!=(n=e.start_timestamp)?n:0,status:s,timestamp:e.timestamp,trace_id:null!=o?o:"",origin:l,profile_id:null==c?void 0:c[tA],exclusive_time:null==c?void 0:c[tO],measurements:e.measurements,is_segment:!0}}(l);if((null==s?void 0:s.length)&&nC(t,s))return null;if(i){let e=i(t);if(e)l=to(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tA]:e.profile_id},...e.exclusive_time&&{[tO]:e.exclusive_time}}}},measurements:e.measurements});else nd()}if(l.spans){let t=[],n=l.spans;for(let e of n){if((null==s?void 0:s.length)&&nC(e,s)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(i){let n=i(e);n?t.push(n):(nd(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}(this,o,e,t),c)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),i){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw r5("".concat(c," returned `null`, will not send event."))}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,o),i){var l;let e=((null==(l=o.sdkProcessingMetadata)?void 0:l.spanCountBeforeProcessing)||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let u=o.transaction_info;return i&&u&&o.transaction!==e.transaction&&(o.transaction_info={...u,source:"custom"}),this.sendEvent(o,t),o}).then(null,e=>{if(r6(e)||r4(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),r3("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===rJ&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(e=>{let[t,n]=e,[r,o]=t.split(":");return{reason:r,category:o,quantity:n}})}_flushOutcomes(){var e;es&&eh.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){es&&eh.log("No outcomes to send");return}if(!this._dsn){es&&eh.log("No dsn provided, will not send outcomes");return}es&&eh.log("Sending outcomes:",t);let n=nS((e=this._options.tunnel&&tK(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:e9(),discarded_events:t}]]);this.sendEnvelope(n)}constructor(e){var t,n,r,o,a,i,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=rX(null!=(t=null==(a=e.transportOptions)?void 0:a.bufferSize)?t:64),e.dsn?this._dsn=t0(e.dsn):es&&eh.warn("No DSN provided, client will not send events."),this._dsn){const t=rM(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=null!=(n=this._options.enableLogs)?n:null==(i=this._options._experiments)?void 0:i.enableLogs,this._options.enableLogs&&r8(this,"afterCaptureLog","flushLogs",or,rB),(null==(r=null!=(o=this._options.enableMetrics)?o:null==(s=this._options._experiments)?void 0:s.enableMetrics)||r)&&r8(this,"afterCaptureMetric","flushMetrics",on,rz)}}function r9(e){return"replay_event"===e?"replay":e||"error"}function oe(e){return void 0===e.type}function ot(e){return"transaction"===e.type}function on(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+oo(e.attributes)}function or(e){let t=0;return e.message&&(t+=2*e.message.length),t+oo(e.attributes)}function oo(e){if(!e)return 0;let t=0;
2return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*oa(e[0]):eE(e)?t+=oa(e):t+=100}),t}function oa(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function oi(e){if("aggregates"in e){var t;(null==(t=e.attrs)?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"})}else void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function os(e){return e_(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?"".concat(e.message," (").concat(e.__sentry_fetch_url_host__,")"):e.message}function ol(e,t){var n,r;let o,a,i=ou(e,t),s={type:!(o=null==(n=t)?void 0:n.name)&&op(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":o,value:(a=null==(r=t)?void 0:r.message,op(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":a?a.error&&"string"==typeof a.error.message?os(a.error):os(r):"No error message")};return i.length&&(s.stacktrace={frames:i}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function oc(e,t){return{exception:{values:[ol(e,t)]}}}function ou(e,t){var n,r;let o=t.stacktrace||t.stack||"",a=(n=t)&&od.test(n.message)?1:0,i="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(o,a,i)}catch{}return[]}let od=/Minified React error #\d+;/i;function op(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function of(e,t,n,r){let o=om(e,t,(null==n?void 0:n.syntheticException)||void 0,r);return e6(o),o.level="error",(null==n?void 0:n.event_id)&&(o.event_id=n.event_id),nK(o)}function oh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=og(e,t,(null==r?void 0:r.syntheticException)||void 0,o);return a.level=n,(null==r?void 0:r.event_id)&&(a.event_id=r.event_id),nK(a)}function om(e,t,n,r,o){let a;if(ev(t)&&t.error)return oc(e,t.error);if(eb(t)||ey(t,"DOMException")){if("stack"in t)a=oc(e,t);else{let o=t.name||(eb(t)?"DOMError":"DOMException"),i=t.message?"".concat(o,": ").concat(t.message):o;e4(a=og(e,i,n,r),i)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":"".concat(t.code)}),a}return e_(t)?oc(e,t):(ek(t)||eR(t)?e6(a=function(e,t,n,r){let o=tb(),a=null==o?void 0:o.getOptions().normalizeDepth,i=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=nb(t,n);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>r?e(t,n-1,r):o}(t,a)};if(i)return{exception:{values:[ol(e,i)]},extra:s};let l={exception:{values:[{type:eR(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){let n,{isUnhandledRejection:r}=t,o=((n=Object.keys(ej(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),a=r?"promise rejection":"exception";if(ev(e))return"Event `ErrorEvent` captured as ".concat(a," with message `").concat(e.message,"`");if(eR(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return"Event `".concat(t,"` (type=").concat(e.type,") captured as ").concat(a)}return"Object captured as ".concat(a," with keys: ").concat(o)}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=ou(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,o),{synthetic:!0}):(e4(a=og(e,t,n,r),"".concat(t),void 0),e6(a,{synthetic:!0})),a)}function og(e,t,n,r){let o={};if(r&&n){let r=ou(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),e6(o,{synthetic:!0})}if(ew(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}let o_=0;function oy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if(eD(e))return e}catch{return e}let n=function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];try{let n=r.map(e=>oy(e,t));return e.apply(this,n)}catch(e){throw o_++,setTimeout(()=>{o_--}),ty(n=>
2{n.addEventProcessor(e=>(t.mechanism&&(e4(e,void 0,void 0),e6(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),n4(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}eL(n,e),eN(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function ov(){let e=eA(),{referrer:t}=er.document||{},{userAgent:n}=er.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class ob extends r7{eventFromException(e,t){return of(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return oh(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}constructor(e){var t,n;const r=function(e){var t;return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null==(t=er.SENTRY_RELEASE)?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);em(r,"browser",["browser"],er.SENTRY_SDK_SOURCE||"npm"),(null==(n=r._metadata)?void 0:n.sdk)&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);const{sendDefaultPii:o,sendClientReports:a,enableLogs:i,_experiments:s,enableMetrics:l}=this._options,c=null==(t=null!=l?l:null==s?void 0:s.enableMetrics)||t;er.document&&(a||i||c)&&er.document.addEventListener("visibilitychange",()=>{"hidden"===er.document.visibilityState&&(a&&this._flushOutcomes(),i&&rB(this),c&&rz(this))}),o&&this.on("beforeSendSession",oi)}}let oS={},ow={};function oE(e,t){oS[e]=oS[e]||[],oS[e].push(t)}function ok(e,t){if(!ow[e]){ow[e]=!0;try{t()}catch(t){es&&eh.error("Error while instrumenting ".concat(e),t)}}}function oR(e,t){let n=e&&oS[e];if(n)for(let r of n)try{r(t)}catch(t){es&&eh.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(eX(r),"\nError:"),t)}}function ox(e){let t="console";oE(t,e),ok(t,oT)}function oT(){"console"in er&&el.forEach(function(e){e in er.console&&eM(er.console,e,function(t){return ec[e]=t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];oR("console",{args:n,level:e});let o=ec[e];null==o||o.apply(er.console,n)}})})}function oI(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oP(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in er))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(oI(er.fetch))return!0;let e=!1,t=er.document;if(t&&"function"==typeof t.createElement)try{var n;let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(null==(n=r.contentWindow)?void 0:n.fetch)&&(e=oI(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){es&&eh.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function oC(e,t){let n="fetch";oE(n,e),ok(n,()=>oA(void 0,t))}function oA(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t||oP())&&eM(er,"fetch",function(t){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];let a=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:oL(t),method:oN(n,"method")?String(n.method).toUpperCase():eP(t)&&oN(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:oL(t),method:oN(t,"method")?String(t.method).toUpperCase():"GET"}}(r),l={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*te(),virtualError:a,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(eP(t))return new Headers(t.headers)}catch{}}(r)};return e||oR("fetch",{...l}),t.apply(er,r).then(async t=>(e?e(t):oR("fetch",{...l,endTimestamp:1e3*te(),response:t}),t),e=>{var t;oR("fetch",{...l,endTimestamp:1e3*te(),error:e}),e_(e)&&void 0===e.stack&&(e.stack=a.stack,eN(e,"framesToPop",1));let n=tb(),r=null!=(t=null==n?void 0:n.getOptions().enhanceFetchErrorMessages)?t:"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(l.fetchData.url).host;"always"===r?e.message="".concat(e.message," (").concat(t,")"):eN(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function oO(e,t){if(null==e?void 0:e.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:o}=await r.read();clearTimeout(e),o&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function oM(e){let t;try{t=e.clone()}catch{return}oO(t,()=>{oR("fetch-body-resolved",{endTimestamp:1e3*te(),response:e})})}function oN(e,t){return!!e&&"object"==typeof e&&!!e[t]}function oL(e){return"string"==typeof e?e:e?oN(e,"url")?e.url:e.toString?e.toString():"":""}function oD(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function oj(e,t){let n=tb(),r=tg();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let i={timestamp:e9(),...e},s=o?eu(()=>o(i,t)):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a))}function oF(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function oU(e){return"isRelative"in e}function oB(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=null!=t?t:n?"thismessage:/":void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function oW(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function oH(e){return e.split(/[?#]/,1)[0]}function oq(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),a=e.indexOf(","),i="";if(t&&-1!==a){let t=e.slice(a+1);i=t.length>10?"".concat(t.slice(0,10),"... [truncated]"):t}return"data:".concat(r).concat(o?",base64":"").concat(i?",".concat(i):"")}return e}function oz(e){oE("dom",e),ok("dom",oV)}function oV(){if(!er.document)return;let e=oR.bind(null,"dom"),t=oG(e,!0);er.document.addEventListener("click",t,!1),er.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{var n,r;let o=null==(n=er[t])?void 0:n.prototype;(null==o||null==(r=o.hasOwnProperty)?void 0:r.call(o,"addEventListener"))&&(eM(o,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=oG(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch{}return t.call(this,n,r,o)}}),eM(o,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function oG(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{var r;if(!n||n._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(null==o||!o.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;eN(n,"_sentryCaptured",!0),o&&!o._sentryId&&eN(o,"_sentryId",e2());let a="keypress"===n.type?"input":n.type;!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch{}return!0}(n)&&(e({event:n,name:a,global:t}),u=n.type,d=o?o._sentryId:void 0),clearTimeout(c),c=er.setTimeout(()=>{d=void 0,u=void 0},1e3)}}let oJ="__sentry_xhr_v3__";function oX(e){oE("xhr",e),ok("xhr",oY)}function oY(){if(!er.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),o=1e3*te(),a=eS(n[0])?n[0].toUpperCase():void 0,i=function(e){if(eS(e))return e;try{return e.toString()}catch{}}(n[1]);if(!a||!i)return e.apply(t,n);t[oJ]={method:a,url:i,request_headers:{}}
2,"POST"===a&&i.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[oJ];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}oR("xhr",{endTimestamp:1e3*te(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,o]=n,a=t[oJ];return a&&eS(r)&&eS(o)&&(a.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[oJ];return r&&(void 0!==n[0]&&(r.body=n[0]),oR("xhr",{startTimestamp:1e3*te(),xhr:t})),e.apply(t,n)}})}function oK(e){let t="history";oE(t,e),ok(t,o$)}function o$(){function e(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n.length>2?n[2]:void 0;if(o){let t=p,r=function(e){try{return new URL(e,er.location.origin).toString()}catch{return e}}(String(o));if(p=r,t===r)return e.apply(this,n);oR("history",{from:t,to:r})}return e.apply(this,n)}}er.addEventListener("popstate",()=>{let e=er.location.href,t=p;p=e,t===e||oR("history",{from:t,to:e})}),"history"in er&&er.history&&(eM(er.history,"pushState",e),eM(er.history,"replaceState",e))}let oQ="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,o,a,i,s,l;t.console&&ox((n=e,function(e){if(tb()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:oD(e.level),message:eZ(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message="Assertion failed: ".concat(eZ(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1);oj(t,{input:e.args,level:e.level})})),t.dom&&oz((r=e,o=t.dom,function(e){let t,n;if(tb()!==r)return;let a="object"==typeof o?o.serializeAttribute:void 0,i="object"==typeof o&&"number"==typeof o.maxStringLength?o.maxStringLength:void 0;i&&i>1024&&(oQ&&eh.warn("`dom.maxStringLength` cannot exceed ".concat(1024,", but a value of ").concat(i," was configured. Sentry will use ").concat(1024," instead.")),i=1024),"string"==typeof a&&(a=[a]);try{var s;let r=e.event,o=(s=r)&&s.target?r.target:r;t=eC(o,{keyAttrs:a,maxStringLength:i}),n=eO(o)}catch{t="<unknown>"}if(0===t.length)return;let l={category:"ui.".concat(e.name),message:t};n&&(l.data={"ui.component_name":n}),oj(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&oX((a=e,function(e){if(tb()!==a)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[oJ];if(!t||!n||!r)return;let{method:o,url:i,status_code:s,body:l}=r,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},u={category:"xhr",data:{method:o,url:i,status_code:s},type:"http",level:oF(s)};a.emit("beforeOutgoingRequestBreadcrumb",u,c),oj(u,c)})),t.fetch&&oC((i=e,function(e){if(tb()!==i)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let r=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:r,level:"error",type:"http"};i.emit("beforeOutgoingRequestBreadcrumb",a,o),oj(a,o)}else{let r=e.response,o={...e.fetchData,status_code:null==r?void 0:r.status};e.fetchData.request_body_size,e.fetchData.response_body_size,null==r||r.status;let a={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:o,type:"http",level:oF(o.status_code)};i.emit("beforeOutgoingRequestBreadcrumb",s,a),oj(s,a)}})),t.history&&oK((s=e,function(e){if(tb()!==s)return;let t=e.from,n=e.to,r=oW(er.location.href),o=t?oW(t):void 0,a=oW(n);(null==o?void 0:o.path)||(o=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),oj({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){tb()===l&&oj({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:e5(e)},{event:e})}))}}},o0=["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"],o1=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&eM(er,"setTimeout",o2),t.setInterval&&eM(er,"setInterval",o2),t.requestAnimationFrame&&eM(er,"requestAnimationFrame",o3),t.XMLHttpRequest&&"XMLHttpRequest"in er&&eM(XMLHttpRequest.prototype,"send",o5);let e=t.eventTarget;
2e&&(Array.isArray(e)?e:o0).forEach(e=>{var n,r,o,a;let i;return n=e,r=t,void((null==(i=null==(o=er[n])?void 0:o.prototype)||null==(a=i.hasOwnProperty)?void 0:a.call(i,"addEventListener"))&&(eM(i,"addEventListener",function(e){return function(t,o,a){var i,s,l,c;try{i=o,"function"==typeof i.handleEvent&&(o.handleEvent=oy(o.handleEvent,{mechanism:{data:{handler:eX(o),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,c=o,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,c)),e.apply(this,[t,oy(o,{mechanism:{data:{handler:eX(o),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),eM(i,"removeEventListener",function(e){return function(t,n,r){try{let o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})))})}}};function o2(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n[0];return n[0]=oy(o,{mechanism:{handled:!1,type:"auto.browser.browserapierrors.".concat(eX(e))}}),e.apply(this,n)}}function o3(e){return function(t){return e.apply(this,[oy(t,{mechanism:{data:{handler:eX(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function o5(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in o&&"function"==typeof o[e]&&eM(o,e,function(t){let n={mechanism:{data:{handler:eX(t)},handled:!1,type:"auto.browser.browserapierrors.xhr.".concat(e)}},r=eD(t);return r&&(n.mechanism.data.handler=eX(r)),oy(t,n)})}),e.apply(this,n)}}let o4=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null!=(e=t.lifecycle)?e:"route";return{name:"BrowserSession",setupOnce(){if(void 0===er.document){oQ&&eh.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}rd({ignoreDuration:!0}),rh();let e=tg(),t=e.getUser();e.addScopeListener(e=>{let n=e.getUser();((null==t?void 0:t.id)!==(null==n?void 0:n.id)||(null==t?void 0:t.ip_address)!==(null==n?void 0:n.ip_address))&&(rh(),t=n)}),"route"===n&&oK(e=>{let{from:t,to:n}=e;t!==n&&(rd({ignoreDuration:!0}),rh())})}}},o6=()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=er.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();if(t){var n;e.contexts={...e.contexts,culture:{...t,...null==(n=e.contexts)?void 0:n.culture}}}}}),o8=null;function o7(e){let t="error";oE(t,e),ok(t,o9)}function o9(){o8=er.onerror,er.onerror=function(e,t,n,r,o){return oR("error",{column:r,error:o,line:n,msg:e,url:t}),!!o8&&o8.apply(this,arguments)},er.onerror.__SENTRY_INSTRUMENTED__=!0}let ae=null;function at(e){let t="unhandledrejection";oE(t,e),ok(t,an)}function an(){ae=er.onunhandledrejection,er.onunhandledrejection=function(e){return oR("unhandledrejection",e),!ae||ae.apply(this,arguments)},er.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let ar=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,o7(e=>{var t,r,o,a,i;let s,l,c,u,d,p,{stackParser:f,attachStacktrace:h}=as();if(tb()!==n||o_>0)return;let{msg:m,url:g,line:_,column:y,error:v}=e,b=(t=om(f,v||m,void 0,h,!1),r=g,o=_,a=y,d=(u=(c=(l=(s=t.exception=t.exception||{}).values=s.values||[])[0]=l[0]||{}).stacktrace=c.stacktrace||{}).frames=u.frames||[],p=null!=(i=function(e){if(eS(e)&&0!==e.length)return e.startsWith("data:")?"<".concat(oq(e,!1),">"):e}(r))?i:eA(),0===d.length&&d.push({colno:a,filename:p,function:"?",in_app:!0,lineno:o}),t);b.level="error",n8(b,{originalException:v,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),ai("onerror")),t.onunhandledrejection&&(r=e,at(e=>{let{stackParser:t,attachStacktrace:n}=as();if(tb()!==r||o_>0)return;let o=ao(e),a=eE(o)?aa(o):om(t,o,void 0,n,!0);a.level="error",n8(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),ai("onunhandledrejection"))}}};function ao(e){if(eE(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 aa(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(e))}]}}}function ai(e){oQ&&eh.log("Global Handler attached: ".concat(e))}function as(){let e=tb();return(null==e?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}let al=()=>({name:"HttpContext",preprocessEvent(e){var t;if(!er.navigator&&!er.location&&!er.document)return;
2let n=ov(),r={...n.headers,...null==(t=e.request)?void 0:t.headers};e.request={...n,...e.request,headers:r}}});function ac(e){return Array.isArray(e.errors)}function au(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...ac(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function ad(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let ap=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){!function(e,t,n,r,o,a){var i;if(!(null==(i=o.exception)?void 0:i.values)||!a||!eT(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=function e(t,n,r,o,a,i,s,l){if(i.length>=r+1)return i;let c=[...i];if(eT(o[a],Error)){au(s,l,o);let i=t(n,o[a]),u=c.length;ad(i,a,u,l),c=e(t,n,r,o[a],a,[i,...c],i,u)}return ac(o)&&o.errors.forEach((i,u)=>{if(eT(i,Error)){au(s,l,o);let d=t(n,i),p=c.length;ad(d,"errors[".concat(u,"]"),p,l),c=e(t,n,r,i,a,[d,...c],d,p)}}),c}(e,t,r,a.originalException,n,o.exception.values,s,0))}(ol,o.getOptions().stackParser,n,t,e,r)}}};function af(e,t,n,r){let o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}let ah=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,am=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ag=/\((\S*)(?::(\d+))(?::(\d+))\)/,a_=/at (.+?) ?\(data:(.+?),/,ay=[30,e=>{let t=e.match(a_);if(t)return{filename:"<data:".concat(t[2],">"),function:t[1]};let n=ah.exec(e);if(n){let[,e,t,r]=n;return af(e,"?",+t,+r)}let r=am.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=ag.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=aC(r[1]||"?",r[2]);return af(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],av=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ab=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,aS=[50,e=>{let t=av.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ab.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=aC(n,e),af(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],aw=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,aE=[40,e=>{let t=aw.exec(e);return t?af(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],ak=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,aR=[10,e=>{let t=ak.exec(e);return t?af(t[2],t[3]||"?",+t[1]):void 0}],ax=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,aT=[20,e=>{let t=ax.exec(e);return t?af(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],aI=[ay,aS],aP=eV(...aI),aC=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},aA="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,aO={};function aM(e){let t=aO[e];if(t)return t;let n=er[e];if(oI(n))return aO[e]=n.bind(er);let r=er.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let o=t.contentWindow;(null==o?void 0:o[e])&&(n=o[e]),r.head.removeChild(t)}catch(t){aA&&eh.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t)}return n?aO[e]=n.bind(er):n}function aN(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return aM("setTimeout")(...t)}function aL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aM("fetch"),n=0,r=0;async function o(o){let a=o.body.length;n+=a,r++;let i={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw aO.fetch=void 0,e}finally{n-=a,r--}}return rQ(e,o,rX(e.bufferSize||40))}function aD(e){return[rw(),rx(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=tm().getScopeData(),n=tg().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute("gen_ai.conversation.id",r)})}}
2,o1(),oZ(),ar(),ap(),rT(),al(),o6(),o4()]}function aj(){var e;let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!n.skipBrowserExtensionCheck&&!!function(){var e;if(void 0===er.window||er.nw)return!1;let t=er.chrome||er.browser;if(!(null==t||null==(e=t.runtime)?void 0:e.id))return!1;let n=eA();return!(er===er.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>n.startsWith("".concat(e,"://"))))}()&&(oQ&&eu(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),o=null==n.defaultIntegrations?aD():n.defaultIntegrations,a={...n,enabled:!r&&n.enabled,stackParser:Array.isArray(e=n.stackParser||aP)?eV(...e):e,integrations:function(e){let t,n,r=e.defaultIntegrations||[],o=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(o))t=[...r,...o];else if("function"==typeof o){let e=o(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:n.integrations,defaultIntegrations:o}),transport:n.transport||aL};return!0===a.debug&&(es?eh.enable():eu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),tm().update(a.initialScope),rA(t=new ob(a)),t.init(),t}function aF(){}function aU(e){e()}var aB=e.i(271645);function aW(e){let t={...e};return em(t,"react"),n7("react",{version:aB.version}),aj(t)}let aH="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function aq(e){return e_(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function az(e){return e_(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}let aV={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function aG(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Map,a=!1,i="externalFinish",s=!r.disableAutoFinish,l=[],{idleTimeout:c=aV.idleTimeout,finalTimeout:u=aV.finalTimeout,childSpanTimeout:d=aV.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:f=!0}=r,h=tb();if(!h||!tB()){let e=new nv,t={sample_rate:"0",sampled:"false",...n_(e)};return eN(e,nh,t),e}let m=tm(),g=nu(),_=(t=nU(e),ts(tm(),t),es&&eh.log("[Tracing] Started span is an idle span"),t);function y(){n&&(clearTimeout(n),n=void 0)}function v(e){y(),n=setTimeout(()=>{!a&&0===o.size&&s&&(i="idleTimeout",_.end(e))},c)}function b(e){n=setTimeout(()=>{!a&&s&&(i="heartbeatFailed",_.end(e))},d)}function S(e){a=!0,o.clear(),l.forEach(e=>e()),ts(m,g);let t=nn(_),{start_timestamp:n}=t;if(!n)return;t.data[tT]||_.setAttribute(tT,i);let r=t.status;r&&"unknown"!==r||_.setStatus({code:1}),eh.log('[Tracing] Idle span "'.concat(t.op,'" finished'));let s=nl(_).filter(e=>e!==_),d=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),es&&eh.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=nn(t),o=r<=e,a=n-r<=(u+c)/1e3;if(es){let e=JSON.stringify(t,void 0,2);o?a||eh.log("[Tracing] Discarding span since it finished after idle span final timeout",e):eh.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!o)&&(_[na]&&_[na].delete(t),d++)}),d>0&&_.setAttribute("sentry.idle_span_discarded_spans",d)}return _.end=new Proxy(_.end,{apply(e,t,n){if(p&&p(_),t instanceof nv)return;let[r,...o]=n,a=ne(r||te()),i=nl(_).filter(e=>e!==_),s=nn(_);if(!i.length||!f)return S(a),Reflect.apply(e,t,[a,...o]);let l=h.getOptions().ignoreSpans,c=null==i?void 0:i.reduce((e,t)=>{let n=nn(t);return!n.timestamp||l&&nC(n,l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,m=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,c||1/0)));return S(m),Reflect.apply(e,t,[m,...o])}}),l.push(h.on("spanStart",e=>{var t;!(a||e===_||nn(e).timestamp||e instanceof nM&&e.isStandaloneSpan())&&nl(_).includes(e)&&(t=e.spanContext().spanId,y(),o.set(t,!0),b(te()+d/1e3))})),l.push(h.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,o.has(t)&&o.delete(t),0===o.size&&v(te()+c/1e3)}})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===_&&(s=!0,v(),o.size&&b())})),r.disableAutoFinish||v(),setTimeout(()=>{a||(_.setStatus({code:2,message:"deadline_exceeded"}),i="finalTimeout",_.end())},u),_}let aJ=!1;function aX(){aJ||(e.tag="sentry_tracingErrorCallback",aJ=!0,o7(e),at(e));function e(){let e=nu(),t=e&&nc(e);if(t){let e="internal_error";es&&eh.log("[Tracing] Root span: ".concat(e," -> Global error occurred")),t.setStatus({code:2,message:e})}}}function aY(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==et.default?et.default:0))||(null==(e=er.process)?void 0:e.type)==="renderer")}let aK=(e,t,n,r)=>{let o,a;return i=>{if(t.value>=0&&(i||r)&&((a=t.value-(null!=o?o:0))||void 0===o)){var s;o=t.value,t.delta=a,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},a$=function(){var e,t;let n=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=null==(t=er.performance)||null==(e=t.getEntriesByType)?void 0:e.call(t,"navigation")[0];if(!n||r&&r.responseStart>0&&r.responseStart<performance.now())return r},aQ=()=>{var e;let t=a$();return null!=(e=null==t?void 0:t.activationStart)?e:0};function aZ(e,t,n){er.document&&er.addEventListener(e,t,n)}function a0(e,t,n){er.document&&er.removeEventListener(e,t,n)}let a1=-1,a2=new Set,a3=e=>{var t;if(("pagehide"===e.type||(null==(t=er.document)?void 0:t.visibilityState)==="hidden")&&a1>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of a2)e();isFinite(a1)||(a1="visibilitychange"===e.type?e.timeStamp:0,a0("prerenderingchange",a3,!0))}},a5=()=>
2{if(er.document&&a1<0){var e,t,n;let r=aQ(),o=er.document.prerendering||null==(e=globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>r)[0])?void 0:e.startTime;a1=null!=o?o:(null==(t=er.document)?void 0:t.visibilityState)!=="hidden"||(null==(n=er.document)?void 0:n.prerendering)?1/0:0,aZ("visibilitychange",a3,!0),aZ("pagehide",a3,!0),aZ("prerenderingchange",a3,!0)}return{get firstHiddenTime(){return a1},onHidden(e){a2.add(e)}}},a4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=a$(),r="navigate";if(n){var o,a;(null==(o=er.document)?void 0:o.prerendering)||aQ()>0?r="prerender":(null==(a=er.document)?void 0:a.wasDiscarded)?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))}return{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),navigationType:r}},a6=new WeakMap;function a8(e,t){try{return a6.get(e)||a6.set(e,new t),a6.get(e)}catch(e){return new t}}class a7{__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var t;if(e.hadRecentInput)return;let n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),null==(t=this._onAfterProcessingUnexpectedShift)||t.call(this,e)}constructor(){a7.prototype.__init.call(this),a7.prototype.__init2.call(this)}}let a9=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},ie=e=>{let t=!1;return()=>{t||(e(),t=!0)}},it=e=>{var t;(null==(t=er.document)?void 0:t.prerendering)?addEventListener("prerenderingchange",()=>e(),!0):e()},ir=[1800,3e3],io=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it(()=>{let n,r=a5(),o=a4("FCP"),a=a9("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(o.value=Math.max(t.startTime-aQ(),0),o.entries.push(t),n(!0)))});a&&(n=aK(e,o,ir,t.reportAllChanges))})},ia=[.1,.25],ii=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};io(ie(()=>{let n,r=a4("CLS",0),o=a5(),a=a8(t,a7),i=e=>{for(let t of e)a._processEntry(t);a._sessionValue>r.value&&(r.value=a._sessionValue,r.entries=a._sessionEntries,n())},s=a9("layout-shift",i);if(s){var l;n=aK(e,r,ia,t.reportAllChanges),o.onHidden(()=>{i(s.takeRecords()),n(!0)}),null==er||null==(l=er.setTimeout)||l.call(er,n)}}))},is=0,il=1/0,ic=0,iu=e=>{e.forEach(e=>{e.interactionId&&(il=Math.min(il,e.interactionId),is=(ic=Math.max(ic,e.interactionId))?(ic-il)/7+1:0)})},id=()=>f?is:performance.interactionCount||0,ip=0;class ih{__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ip=id(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((id()-ip)/50));return this._longestInteractionList[e]}_processEntry(e){var t,n;if(null==(t=this._onBeforeProcessingEntry)||t.call(this,e),!(e.interactionId||"first-input"===e.entryType))return;let r=this._longestInteractionList.at(-1),o=this._longestInteractionMap.get(e.interactionId);if(o||this._longestInteractionList.length<10||e.duration>r._latency){if(o?e.duration>o._latency?(o.entries=[e],o._latency=e.duration):e.duration===o._latency&&e.startTime===o.entries[0].startTime&&o.entries.push(e):(o={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(o.id,o),this._longestInteractionList.push(o)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);null==(n=this._onAfterProcessingINPCandidate)||n.call(this,o)}}constructor(){ih.prototype.__init.call(this),ih.prototype.__init2.call(this)}}let im=e=>{var t;let n=er.requestIdleCallback||er.setTimeout;(null==(t=er.document)?void 0:t.visibilityState)==="hidden"?e():(aZ("visibilitychange",e=ie(e),{once:!0,capture:!0}),aZ("pagehide",e,{once:!0,capture:!0}),n(()=>{e(),a0("visibilitychange",e,{capture:!0}),a0("pagehide",e,{capture:!0})}
2))},ig=[200,500],i_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=a5();it(()=>{var r;let o;"interactionCount"in performance||f||(f=a9("event",iu,{type:"event",buffered:!0,durationThreshold:0}));let a=a4("INP"),i=a8(t,ih),s=e=>{im(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,o())})},l=a9("event",s,{durationThreshold:null!=(r=t.durationThreshold)?r:40});o=aK(e,a,ig,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(l.takeRecords()),o(!0)}))})};class iy{_processEntry(e){var t;null==(t=this._onBeforeProcessingEntry)||t.call(this,e)}}let iv=[2500,4e3],ib=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it(()=>{let n,r=a5(),o=a4("LCP"),a=a8(t,iy),i=e=>{for(let i of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(i),i.startTime<r.firstHiddenTime&&(o.value=Math.max(i.startTime-aQ(),0),o.entries=[i],n())},s=a9("largest-contentful-paint",i);if(s){n=aK(e,o,iv,t.reportAllChanges);let r=ie(()=>{i(s.takeRecords()),s.disconnect(),n(!0)}),a=e=>{e.isTrusted&&(im(r),a0(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])aZ(e,a,{capture:!0})}})},iS=[800,1800],iw=e=>{var t,n;(null==(t=er.document)?void 0:t.prerendering)?it(()=>iw(e)):(null==(n=er.document)?void 0:n.readyState)!=="complete"?addEventListener("load",()=>iw(e),!0):setTimeout(e)},iE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a4("TTFB"),r=aK(e,n,iS,t.reportAllChanges);iw(()=>{let e=a$();e&&(n.value=Math.max(e.responseStart-aQ(),0),n.entries=[e],r(!0))})},ik={},iR={};function ix(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return iL("cls",e,iA,h,t)}function iT(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return iL("lcp",e,iO,m,t)}function iI(e){return iL("inp",e,iN,_)}function iP(e,t){var n;let r;return iD(e,t),iR[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),a9(n,e=>{iC(n,{entries:e})},r),iR[e]=!0),ij(e,t)}function iC(e,t){let n=ik[e];if(null==n?void 0:n.length)for(let r of n)try{r(t)}catch(t){aA&&eh.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(eX(r),"\nError:"),t)}}function iA(){return ii(e=>{iC("cls",{metric:e}),h=e},{reportAllChanges:!0})}function iO(){return ib(e=>{iC("lcp",{metric:e}),m=e},{reportAllChanges:!0})}function iM(){return iE(e=>{iC("ttfb",{metric:e}),g=e})}function iN(){return i_(e=>{iC("inp",{metric:e}),_=e})}function iL(e,t,n,r){let o,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return iD(e,t),iR[e]||(o=n(),iR[e]=!0),r&&t({metric:r}),ij(e,t,a?o:void 0)}function iD(e,t){ik[e]=ik[e]||[],ik[e].push(t)}function ij(e,t,n){return()=>{n&&n();let r=ik[e];if(!r)return;let o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function iF(e){return"number"==typeof e&&isFinite(e)}function iU(e,t,n,r){let{...o}=r,a=nn(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),nW(e,()=>{let e=nU({startTime:t,...o});return e&&e.end(n),e})}function iB(e){var t;let n,r=tb();if(!r)return;let{name:o,transaction:a,attributes:i,startTime:s}=e,{release:l,environment:c,sendDefaultPii:u}=r.getOptions(),d=r.getIntegrationByName("Replay"),p=null==d?void 0:d.getReplayId(),f=tm(),h=f.getUser(),m=void 0!==h?h.email||h.id||h.ip_address:void 0;try{n=f.getScopeData().contexts.profile.profile_id}catch{}return nU({name:o,attributes:{release:l,environment:c,user:m||void 0,profile_id:n||void 0,replay_id:p||void 0,transaction:a,"user_agent.original":null==(t=er.navigator)?void 0:t.userAgent,"client.address":u?"{{auto}}":void 0,...i},startTime:s,experimental:{standalone:!0}})}function iW(){return er.addEventListener&&er.performance}function iH(e){return e/1e3}function iq(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function iz(e,t){let n,r,o=!1;function a(e){!o&&r&&t(e,r),o=!0}aZ("visibilitychange",n=e=>{var t;("pagehide"===e.type||(null==(t=er.document)?void 0:t.visibilityState)==="hidden")&&(()=>{a("pagehide")})()},{capture:!0,once:!0}),aZ("pagehide",n,{capture:!0,once:!0});let i=e.on("beforeStartNavigationSpan",(e,t)=>{(null==t?void 0:t.isRedirect)||(a("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,s()})}
2let iV=[],iG=new Map,iJ=new Map,iX={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},iY=e=>{let{metric:t}=e;if(void 0==t.value)return;let n=iH(t.value);if(n>60)return;let r=t.entries.find(e=>e.duration===t.value&&iX[e.name]);if(!r)return;let{interactionId:o}=r,a=iX[r.name],i=iH(tn()+r.startTime),s=nu(),l=s?nc(s):void 0,c=null!=o?iG.get(o):void 0,u=(null==c?void 0:c.span)||l,d=u?nn(u).description:tm().getScopeData().transactionName,p=iB({name:(null==c?void 0:c.elementName)||eC(r.target),transaction:d,attributes:{[tx]:"auto.http.browser.inp",[tR]:"ui.interaction.".concat(a),[tO]:r.duration},startTime:i});p&&(p.addEvent("inp",{[tI]:"millisecond",[tP]:t.value}),p.end(i+n))};function iK(e){return e?((tn()||performance.timeOrigin)+e)/1e3:e}function i$(e){var t;let n={};if(void 0!=e.nextHopProtocol){let{name:t,version:r}=function(e){let t="unknown",n="unknown",r="";for(let o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);n["network.protocol.version"]=r,n["network.protocol.name"]=t}return tn()||(null==(t=iW())?void 0:t.timeOrigin)?Object.fromEntries(Object.entries({...n,"http.request.redirect_start":iK(e.redirectStart),"http.request.redirect_end":iK(e.redirectEnd),"http.request.worker_start":iK(e.workerStart),"http.request.fetch_start":iK(e.fetchStart),"http.request.domain_lookup_start":iK(e.domainLookupStart),"http.request.domain_lookup_end":iK(e.domainLookupEnd),"http.request.connect_start":iK(e.connectStart),"http.request.secure_connection_start":iK(e.secureConnectionStart),"http.request.connection_end":iK(e.connectEnd),"http.request.request_start":iK(e.requestStart),"http.request.response_start":iK(e.responseStart),"http.request.response_end":iK(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(e=>{let[,t]=e;return null!=t})):n}let iQ=0,iZ={};function i0(e,t,n,r){var o;let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,i=t["secureConnection"===(o=n)?"connectEnd":"fetch"===o?"domainLookupStart":"".concat(o,"End")],s=t["".concat(n,"Start")];s&&i&&iU(e,r+iH(s),r+iH(i),{op:"browser.".concat(a),name:t.name,attributes:{[tx]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let i1=e=>{let{entries:t}=e,n=nu(),r=n?nc(n):void 0,o=r?nn(r).description:tm().getScopeData().transactionName;t.forEach(e=>{var t,n;if(!e.identifier)return;let r=e.name,a=e.renderTime,i=e.loadTime,[s,l]=i?[iH(i),"load-time"]:a?[iH(a),"render-time"]:[te(),"entry-emission"],c="image-paint"===r?iH(Math.max(0,(null!=a?a:0)-(null!=i?i:0))):0,u={[tx]:"auto.ui.browser.elementtiming",[tR]:"ui.elementtiming",[tw]:"component","sentry.span_start_time_source":l,"sentry.transaction_name":o,"element.id":e.id,"element.type":(null==(n=e.element)||null==(t=n.tagName)?void 0:t.toLowerCase())||"unknown","element.size":e.naturalWidth&&e.naturalHeight?"".concat(e.naturalWidth,"x").concat(e.naturalHeight):void 0,"element.render_time":a,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":r};nj({name:"element[".concat(e.identifier,"]"),attributes:u,startTime:s,onlyIfParent:!0},e=>{e.end(s+c)})})},i2="sentry_previous_trace";function i3(e){return 1===e.traceFlags}function i5(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.client||tb();if(!rc()||!t)return{};let n=th(eo());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||tm(),o=e.span||nu(),a=o?t7(o):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return t5(t,r,n)}(r),i=tD(o?n_(o):ng(t,r));if(!t1.test(a))return eh.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let s={"sentry-trace":a,baggage:i};return e.propagateTraceparent&&(s.traceparent=o?function(e){let{traceId:t,spanId:n}=e.spanContext();return t4(t,n,nr(e))}(o):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return t4(t,r,n)}(r)),s}function i4(e){return e.split(",").some(e=>e.trim().startsWith(tM))}function i6(e,t,n,r){let o={url:oq(e),type:"fetch","http.method":n,[tx]:r,[tR]:"http.client"};return t&&(oU(t)||(o["http.url"]=oq(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}let i8=Symbol.for("sentry__originalRequestBody");function i7(e){return new URLSearchParams(e).toString()}function i9(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eh;try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i7(e)];if(!e)return[void 0]}catch(n){return aA&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return aA&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][i8];if(void 0!==t)return t}}function st(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return aA&&eh.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
2{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function sn(e){try{return new URL(e,er.location.origin).href}catch{return}}function sr(e){try{return new Headers(e)}catch{return}}let so=new WeakMap,sa=new Map,si={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ss(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:c}={...si,...t},u="function"==typeof a?a:e=>!0,d=e=>(function(e,t){let n=eA();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}let a=r.origin===o;return t?e1(r.toString(),t)||a&&e1(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?e1(e,t):n}})(e,s),p={},f=e.getOptions().propagateTraceparent;if(n){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=sa.get(e.span_id);t&&(e.timestamp=t/1e3,sa.delete(e.span_id))}}),e)),o&&(oE(t="fetch-body-resolved",e=>{if(e.response){let t=so.get(e.response);t&&e.endTimestamp&&sa.set(t,e.endTimestamp)}}),ok(t,()=>oA(oM))),oC(e=>{let t=function(e,t,n,r,o){if(!e.fetchData)return;let{method:a,url:i}=e.fetchData,s=tB()&&t(i);if(e.endTimestamp){var l,c,u,d;let t,n=e.fetchData.__span;if(!n)return;let a=r[n];a&&(s&&(function(e,t){if(t.response){var n,r;tq(e,t.response.status);let o=null==(r=t.response)||null==(n=r.headers)?void 0:n.get("content-length");if(o){let t=parseInt(o);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(a,e),l=a,c=e,null==(t="object"==typeof(u=o)&&null!==u?u.onRequestSpanEnd:void 0)||t(l,{headers:null==(d=c.response)?void 0:d.headers,error:c.error})),delete r[n]);return}let{spanOrigin:p="auto.http.browser",propagateTraceparent:f=!1}="object"==typeof o?o:{spanOrigin:o},h=!!nu(),m=s&&h?nU(function(e,t,n){if(e.startsWith("data:")){let r=oq(e);return{name:"".concat(t," ").concat(r),attributes:i6(e,void 0,t,n)}}let r=oB(e),o=r?function(e){if(oU(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(r):e;return{name:"".concat(t," ").concat(o),attributes:i6(e,r,t,n)}}(i,a,p)):new nv;if(e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var o;let a=i5({span:n,propagateTraceparent:r}),i=a["sentry-trace"],s=a.baggage,l=a.traceparent;if(!i)return;let c=t.headers||(eP(e)?e.headers:void 0);if(!c)return{...a};if(o=c,"u">typeof Headers&&eT(o,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&l&&!e.get("traceparent")&&e.set("traceparent",l),s){let t=e.get("baggage");t?i4(t)||e.set("baggage","".concat(t,",").concat(s)):e.set("baggage",s)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]),r&&l&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=c.find(e=>"baggage"===e[0]&&i4(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],a=n&&(Array.isArray(n)?n.find(e=>i4(e)):i4(n));s&&!a&&o.push(s);let u={...c,"sentry-trace":null!=e?e:i,baggage:o.length>0?o.join(","):void 0};return r&&l&&!t&&(u.traceparent=l),u}}(t,n,tB()&&h?m:void 0,f);r&&(e.args[1]=n,n.headers=r)}let g=tb();if(g){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};g.emit("beforeOutgoingRequestSpan",m,t)}return m}(e,u,d,p,{propagateTraceparent:f,onRequestSpanEnd:c}
2);if(e.response&&e.fetchData.__span&&so.set(e.response,e.fetchData.__span),t){let n=sn(e.fetchData.url),r=n?oW(n).host:void 0;t.setAttributes({"http.url":n?oq(n):void 0,"server.address":r}),i&&sl(t),null==l||l(t,{headers:e.headers})}})}r&&oX(e=>{let t=function(e,t,n,r,o,a){let i=e.xhr,s=null==i?void 0:i[oJ];if(!i||i.__sentry_own_request__||!s)return;let{url:l,method:c}=s,u=tB()&&t(l);if(e.endTimestamp){let t=i.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&void 0!==s.status_code&&(tq(n,s.status_code),n.end(),null==a||a(n,{headers:sr(st(i)),error:e.error})),delete r[t]);return}let d=sn(l),p=d?oW(d):oW(l),f=oq(oH(l)),h=!!nu(),m=u&&h?nU({name:"".concat(c," ").concat(f),attributes:{url:oq(l),type:"xhr","http.method":c,"http.url":d?oq(d):void 0,"server.address":null==p?void 0:p.host,[tx]:"auto.http.browser",[tR]:"http.client",...(null==p?void 0:p.search)&&{"http.query":null==p?void 0:p.search},...(null==p?void 0:p.hash)&&{"http.fragment":null==p?void 0:p.hash}}}):new nv;i.__sentry_xhr_span_id__=m.spanContext().spanId,r[i.__sentry_xhr_span_id__]=m,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:o,traceparent:a}=i5({span:t,propagateTraceparent:n});r&&function(e,t,n,r){var o;let a=null==(o=e.__sentry_xhr_v3__)?void 0:o.request_headers;if((null==a||!a["sentry-trace"])&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),!r||(null==a?void 0:a.traceparent)||e.setRequestHeader("traceparent",r),n){let t=null==a?void 0:a.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,o,a)}(i,tB()&&h?m:void 0,o);let g=tb();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}(e,u,d,p,f,c);if(t){var n;i&&sl(t),null==l||l(t,{headers:sr(null==(n=e.xhr.__sentry_xhr_v3__)?void 0:n.request_headers)})}})}function sl(e){let{url:t}=nn(e).data;if(!t||"string"!=typeof t)return;let n=iP("resource",r=>{let{entries:o}=r;o.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&(e.setAttributes(i$(r)),setTimeout(n))})})}let sc={...aV,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...si},su=function(){let e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={name:void 0,source:void 0},a=er.document,{enableInp:i,enableElementTiming:s,enableLongTask:l,enableLongAnimationFrame:c,_experiments:{enableInteractions:u,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:p},beforeStartSpan:f,idleTimeout:h,finalTimeout:m,childSpanTimeout:_,markBackgroundSpan:b,traceFetch:S,traceXHR:w,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:k,enableHTTPTimings:R,ignoreResourceSpans:x,ignorePerformanceApiSpans:T,instrumentPageLoad:I,instrumentNavigation:P,detectRedirects:C,linkPreviousTrace:A,consistentTraceSampling:O,enableReportPageLoaded:M,onRequestSpanStart:N,onRequestSpanEnd:L}={...sc,...r};function D(t,r){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s="pageload"===r.op,l=r.name,c=f?f(r):r,u=c.attributes||{};if(l!==c.name&&(u[tw]="custom",c.attributes=u),!i){let e=e9();nU({...c,startTime:e}).end(e);return}o.name=c.name,o.source=u[tw];let g=aG(c,{idleTimeout:h,finalTimeout:m,childSpanTimeout:_,disableAutoFinish:s,beforeSpanEnd:r=>{null==e||e(),function(e,t){var n,r;let o=iW(),a=tn();if(!(null==o?void 0:o.getEntries)||!a)return;let i=iH(a),s=o.getEntries(),{op:l,start_timestamp:c}=nn(e);s.slice(iQ).forEach(n=>{let r=iH(n.startTime),o=iH(Math.max(0,n.duration));if("navigation"!==l||!c||!(i+r<c))switch(n.entryType){case"navigation":var a,s,u,d,p,f;let h,m,g;a=e,s=n,u=i,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{i0(a,s,e,u)}),i0(a,s,"secureConnection",u,"TLS/SSL"),i0(a,s,"fetch",u,"cache"),i0(a,s,"domainLookup",u,"DNS"),d=a,p=s,h=(f=u)+iH(p.requestStart),m=f+iH(p.responseEnd),g=f+iH(p.responseStart),p.responseEnd&&(iU(d,h,m,{op:"browser.request",name:p.name,attributes:{[tx]:"auto.ui.browser.metrics"}}),iU(d,g,m,{op:"browser.response",name:p.name,attributes:{[tx]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,a){if(function(e){if((null==e?void 0:e.entryType)==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&e1(t.name,a))return;let i=a$(!1),s=o+Math.max(n,iH(i?i.requestStart:0)),l=o+n,c=l+r,u={[tx]:"auto.resource.browser.metrics"};s!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&eE(r))e["sentry.browser.measure.detail.".concat(t)]=r;else if(void 0!==r)try{e["sentry.browser.measure.detail.".concat(t)]=JSON.stringify(r)}catch{}return}if(eE(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(u,t),s<=c&&iU(e,s,c,{name:t.name,op:t.entryType,attributes:u})}(e,n,r,o,i,t.ignorePerformanceApiSpans);let a=a5(),s=n.startTime<a.firstHiddenTime;"first-paint"===n.name&&s&&(iZ.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&s&&(iZ.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,a,i){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=t.initiatorType?"resource.".concat(t.initiatorType):"resource.other";if(null==i?void 0:i.includes(c))return;let u={[tx]:"auto.resource.browser.metrics"},d=oW(n);d.protocol&&(u["url.scheme"]=d.protocol.split(":").pop()),d.host&&(u["server.address"]=d.host),u["url.same_origin"]=n.includes(er.location.origin),s=t,l=u,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
2h(e=>{let[t,n]=e,r=s[t];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[n]=r)});let p={...u,...i$(t)},f=a+r;iU(e,f,f+o,{name:n.replace(er.location.origin,""),op:c,attributes:p})}(e,n,n.name,r,o,i,t.ignoreResourceSpans)}}),iQ=Math.max(s.length-1,0),function(e){let t=er.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),iF(n.rtt)&&(iZ["connection.rtt"]={value:n.rtt,unit:"millisecond"})),iF(t.deviceMemory)&&e.setAttribute("deviceMemory","".concat(t.deviceMemory," GB")),iF(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=a$(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(iZ),t.recordClsOnPageloadSpan||delete iZ.cls,t.recordLcpOnPageloadSpan||delete iZ.lcp,Object.entries(iZ).forEach(e=>{let[t,n]=e;nA(t,n.value,n.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",aQ()),n=e,r=t,y&&r.recordLcpOnPageloadSpan&&(y.element&&n.setAttribute("lcp.element",eC(y.element)),y.id&&n.setAttribute("lcp.id",y.id),y.url&&n.setAttribute("lcp.url",y.url.trim().slice(0,200)),null!=y.loadTime&&n.setAttribute("lcp.loadTime",y.loadTime),null!=y.renderTime&&n.setAttribute("lcp.renderTime",y.renderTime),n.setAttribute("lcp.size",y.size)),(null==v?void 0:v.sources)&&r.recordClsOnPageloadSpan&&v.sources.forEach((e,t)=>n.setAttribute("cls.source.".concat(t+1),eC(e.node)))),y=void 0,v=void 0,iZ={}}(r,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!p,ignoreResourceSpans:x,ignorePerformanceApiSpans:T}),eN(t,sm,void 0);let o=tm(),a=o.getPropagationContext();o.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:nr(g),dsc:n_(r)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!M});function b(){a&&["interactive","complete"].includes(a.readyState)&&t.emit("idleSpanEnableAutoFinish",g)}s&&M&&(n=g),eN(t,sm,g),s&&!M&&a&&(a.addEventListener("readystatechange",()=>{b()}),b())}return{name:"BrowserTracing",setup(r){if(aX(),e=function(e){let{recordClsStandaloneSpans:t,recordLcpStandaloneSpans:n,client:r}=e,o=iW();if(o&&tn()){o.mark&&er.performance.mark("sentry-tracing-init");let e=n?function(e){let t,n=0;if(!iq("largest-contentful-paint"))return;let r=iT(e=>{let{metric:r}=e,o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)},!0);iz(e,(e,o)=>{var a,i,s,l;let c,u,d,p,f;a=n,i=t,s=o,l=e,aA&&eh.log("Sending LCP span (".concat(a,")")),c=iH((tn()||0)+((null==i?void 0:i.startTime)||0)),u=tm().getScopeData().transactionName,d=i?eC(i.element):"Largest contentful paint",p={[tx]:"auto.http.browser.lcp",[tR]:"ui.webvital.lcp",[tO]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},i&&(i.element&&(p["lcp.element"]=eC(i.element)),i.id&&(p["lcp.id"]=i.id),i.url&&(p["lcp.url"]=i.url),null!=i.loadTime&&(p["lcp.loadTime"]=i.loadTime),null!=i.renderTime&&(p["lcp.renderTime"]=i.renderTime),null!=i.size&&(p["lcp.size"]=i.size)),(f=iB({name:d,transaction:u,attributes:p,startTime:c}))&&(f.addEvent("lcp",{[tI]:"millisecond",[tP]:a}),f.end(c)),r()})}(r):iT(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(iZ.lcp={value:t.value,unit:"millisecond"},y=n)},!0),a=iL("ttfb",e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(iZ.ttfb={value:t.value,unit:"millisecond"})},iM,g),i=t?function(e){let t,n=0;if(!iq("layout-shift"))return;let r=ix(e=>{let{metric:r}=e,o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)},!0);iz(e,(e,o)=>{var a,i,s,l,c;let u,d,p,f,h;a=n,i=t,s=o,l=e,aA&&eh.log("Sending CLS span (".concat(a,")")),u=i?iH((tn()||0)+i.startTime):te(),d=tm().getScopeData().transactionName,p=i?eC(null==(c=i.sources[0])?void 0:c.node):"Layout shift",f={[tx]:"auto.http.browser.cls",[tR]:"ui.webvital.cls",[tO]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},(null==i?void 0:i.sources)&&i.sources.forEach((e,t)=>{f["cls.source.".concat(t+1)]=eC(e.node)}),(h=iB({name:p,transaction:d,attributes:f,startTime:u}))&&(h.addEvent("cls",{[tI]:"",[tP]:a}),h.end(u)),r()})}(r):ix(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(iZ.cls={value:t.value,unit:""},v=n)},!0);return()=>{null==e||e(),a(),null==i||i()}}return()=>void 0}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:p||!1,client:r}),i&&function(){if(iW()&&tn()){let e=iI(iY);()=>{e()}}}(),s&&iW()&&tn()&&iP("element",i1),c&&er.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=nu();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=iH(tn()+n.startTime),{start_timestamp:r,op:o}=nn(t);if("navigation"===o&&r&&e<r)continue;let a=iH(n.duration),i={[tx]:"auto.ui.browser.metrics"}
2,{invoker:s,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];i["browser.script.invoker"]=s,i["browser.script.invoker_type"]=l,c&&(i["code.filepath"]=c),u&&(i["code.function"]=u),-1!==d&&(i["browser.script.source_char_position"]=d),iU(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:i})}}).observe({type:"long-animation-frame",buffered:!0}):l&&iP("longtask",e=>{let{entries:t}=e,n=nu();if(!n)return;let{op:r,start_timestamp:o}=nn(n);for(let e of t){let t=iH(tn()+e.startTime),a=iH(e.duration);"navigation"===r&&o&&t<o||iU(n,t,t+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[tx]:"auto.ui.browser.metrics"}})}}),u&&iP("event",e=>{let{entries:t}=e,n=nu();if(n){for(let e of t)if("click"===e.name){let t=iH(tn()+e.startTime),r=iH(e.duration),o={name:eC(e.target),op:"ui.interaction.".concat(e.name),startTime:t,attributes:{[tx]:"auto.ui.browser.metrics"}},a=eO(e.target);a&&(o.attributes["ui.component_name"]=a),iU(n,t,t+r,o)}}}),C&&a){let e=()=>{t=te()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function o(){let e=r[sm];e&&!nn(e).timestamp&&(oQ&&eh.log("[Tracing] Finishing current active span with op: ".concat(nn(e).op)),e.setAttribute(tT,"cancelled"),e.end())}r.on("startNavigationSpan",(e,n)=>{if(tb()!==r)return;if(null==n?void 0:n.isRedirect){oQ&&eh.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),D(r,{op:"navigation.redirect",...e},!1);return}t=void 0,o(),tg().setPropagationContext({traceId:e2(),sampleRand:Math.random(),propagationSpanId:tB()?void 0:ta()});let a=tm();a.setPropagationContext({traceId:e2(),sampleRand:Math.random(),propagationSpanId:tB()?void 0:ta()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),D(r,{op:"navigation",...e,parentSpan:null,forceTransaction:!0})}),r.on("startPageLoadSpan",function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(tb()!==r)return;o();let n=t3(t.sentryTrace||sf("sentry-trace")||sh("sentry-trace"),t.baggage||sf("baggage")||sh("baggage")),a=tm();a.setPropagationContext(n),tB()||(a.getPropagationContext().propagationSpanId=ta()),a.setSDKProcessingMetadata({normalizedRequest:ov()}),D(r,{op:"pageload",...e})}),r.on("endPageloadSpan",()=>{M&&n&&(n.setAttribute(tT,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,r,a,s,l;let c,d=eA();if("off"!==A&&function(e,t){let{linkPreviousTrace:n,consistentTraceSampling:r}=t,o="session-storage"===n,a=o?function(){try{var e;let t=null==(e=er.sessionStorage)?void 0:e.getItem(i2);return JSON.parse(t)}catch{return}}():void 0;e.on("spanStart",e=>{if(nc(e)!==e)return;let t=tm().getPropagationContext();a=function(e,t,n){let r=nn(t),o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{var e,t,o;return null!=(e=Number(null==(t=n.dsc)?void 0:t.sample_rate))?e:Number(null==(o=r.data)?void 0:o[tE])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return o;let a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(oQ&&eh.log("Adding previous_trace `".concat(JSON.stringify(a),"` link to span `").concat(JSON.stringify({op:r.op,...t.spanContext()}),"`")),t.addLink({context:a,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace","".concat(a.traceId,"-").concat(a.spanId,"-").concat(+!!i3(a)))),o)}(a,e,t),o&&function(e){try{er.sessionStorage.setItem(i2,JSON.stringify(e))}catch(e){oQ&&eh.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;r&&e.on("beforeSampling",e=>{if(!a)return;let t=tm(),n=t.getPropagationContext();if(i&&n.parentSpanId){i=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(i3(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=i3(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[tk]:a.sampleRate}})}(e,{linkPreviousTrace:A,consistentTraceSampling:O}),er.location){if(I){let t=tn();sd(e,{name:er.location.pathname,startTime:t?t/1e3:void 0,attributes:{[tw]:"url",[tx]:"auto.pageload.browser"}})}P&&oK(n=>{var r,o;let a,i,{to:s,from:l}=n;if(void 0===l&&(null==d?void 0:d.indexOf(s))!==-1){d=void 0;return}d=void 0;let c=oB(s),u=e[sm],p=u&&C&&(r=u,o=t,a=nn(r),!((i=e9())-a.start_timestamp>1.5)&&(!o||!(i-o<=1.5)));sp(e,{name:(null==c?void 0:c.pathname)||er.location.pathname,attributes:{[tw]:"url",[tx]:"auto.navigation.browser"}},{url:s,isRedirect:p})})}b&&(er.document?er.document.addEventListener("visibilitychange",()=>{let e=nu();if(!e)return;let t=nc(e);if(er.document.hidden&&t){let e="cancelled",{op:n,status:r}=nn(t);oQ&&eh.log("[Tracing] Transaction: ".concat(e," -> since tab moved to the background, op: ").concat(n)),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):oQ&&eh.warn("[Tracing] Could not set up background tab detection due to lack of global document")),u&&(n=e,r=h,a=m,s=_,l=o,er.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[sm]}(n);if(t&&["navigation","pageload"].includes(nn(t).op)){oQ&&eh.warn("[Tracing] Did not create ".concat(e," span because a pageload or navigation span is in progress."));return}if(c&&(c.setAttribute(tT,"interactionInterrupted"),c.end(),c=void 0),!l.name){oQ&&eh.warn("[Tracing] Did not create ".concat(e," transaction because _latestRouteName is missing."));return}
2c=aG({name:l.name,op:e,attributes:{[tw]:l.source||"url"}},{idleTimeout:r,finalTimeout:a,childSpanTimeout:s})},{capture:!0})),i&&function(){let e=Object.keys(iX);function t(e){let t=e.target;if(!t)return;let n=eC(t),r=Math.round(e.timeStamp);if(iJ.set(r,n),iJ.size>50){let e=iJ.keys().next().value;void 0!==e&&iJ.delete(e)}}aY()&&e.forEach(e=>{er.addEventListener(e,t,{capture:!0,passive:!0})});let n=e=>{let{entries:t}=e,n=nu(),r=n&&nc(n);t.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||iG.has(t))return;let n=e.target?eC(e.target):function(e){let t=Math.round(e.startTime),n=iJ.get(t);if(!n)for(let e=-5;e<=5;e++){let r=iJ.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(iV.length>10){let e=iV.shift();iG.delete(e)}iV.push(t),iG.set(t,{span:r,elementName:n})})};iP("event",n),iP("first-input",n)}(),ss(e,{traceFetch:S,traceXHR:w,trackFetchStreamPerformance:E,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:k,enableHTTPTimings:R,onRequestSpanStart:N,onRequestSpanEnd:L})}}};function sd(e,t,n){e.emit("startPageLoadSpan",t,n),tm().setTransactionName(t.name);let r=e[sm];return r&&e.emit("afterStartPageLoadSpan",r),r}
2function sp(e,t,n){let{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let a=tm();return a.setTransactionName(t.name),r&&!o&&a.setSDKProcessingMetadata({normalizedRequest:{...ov(),url:r}}),e[sm]}function sf(e){let t=er.document,n=null==t?void 0:t.querySelector("meta[name=".concat(e,"]"));return(null==n?void 0:n.getAttribute("content"))||void 0}function sh(e){var t,n,r;let o=null==(n=er.performance)||null==(t=n.getEntriesByType)?void 0:t.call(n,"navigation")[0],a=null==o||null==(r=o.serverTiming)?void 0:r.find(t=>t.name===e);return null==a?void 0:a.description}let sm="_sentry_idleSpan",sg=null,s_=new Map,sy=new Map;function sv(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function sb(e){if(s_.has(e)){var t;return null!=(t=s_.get(e))?t:null}try{let t=new RegExp(e);return s_.set(e,t),t}catch(t){return aH&&eh.warn("Could not compile regex",{regexString:e,error:t}),null}}function sS(){if(!(null==er?void 0:er._sentryRouteManifest)||"string"!=typeof er._sentryRouteManifest)return null;let e=er._sentryRouteManifest;if(sg&&N===e)return sg;s_.clear(),sy.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return sg=t,N=e,t}catch{return aH&&eh.warn("Could not extract route manifest"),null}}let sw=e=>{let t=sS();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(sy.has(n))return sy.get(n);let{staticRoutes:r,dynamicRoutes:o}=t;if(!Array.isArray(r)||!Array.isArray(o))return;let a=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=sb(t.regex);(null==n?void 0:n.test(e))&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":"/SENTRY_OPTIONAL_PREFIX".concat(e),o=sb(t.regex);(null==o?void 0:o.test(n))&&r.push(t.path)}}return r})(n,r,o).sort((e,t)=>sv(e)-sv(t))[0];return sy.set(n,a),a};function sE(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let sk="incomplete-app-router-transaction",sR="router-patch",sx={current:void 0};function sT(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let sI=new WeakSet;function sP(e,t,n){sI.has(t)||(sI.add(t),["back","forward","push","replace"].forEach(r=>{(null==t?void 0:t[r])&&(t[r]=new Proxy(t[r],{apply(t,o,a){var i;if("router-patch"!==sR)return t.apply(o,a);let s=sk,l={[tR]:"navigation",[tx]:"auto.navigation.nextjs.app_router_instrumentation",[tw]:"url"},c=a[0],u=null!=(i=et.default.env._sentryBasePath)?i:er._sentryBasePath,d=u&&"string"==typeof c&&!c.startsWith(u)?"".concat(u).concat(c):c;"push"===r?(s=sE(sT(d)),l["navigation.type"]="router.push"):"replace"===r?(s=sE(sT(d)),l["navigation.type"]="router.replace"):"back"===r?l["navigation.type"]="router.back":"forward"===r&&(l["navigation.type"]="router.forward");let p=sw(s);return n.current=sp(e,{name:null!=p?p:s,attributes:{...l,[tw]:p?"route":"url"}}),t.apply(o,a)}}))}))}var sC=e.i(565909);let sA=sC.default.events?sC.default:sC.default.default;function sO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=su({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];let[a,{headers:i}]=r;return(null==i?void 0:i.get("next-router-prefetch"))&&(null==a||a.setAttribute("http.request.prefetch",!0)),null==(t=e.onRequestSpanStart)?void 0:t.call(e,...r)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){r&&function(e){if(er.document.getElementById("__NEXT_DATA__"))sA.events.on("routeChangeStart",t=>{let n,r,o=oH(t),a=function(e){var t;let n=null==(t=er.__BUILD_MANIFEST)?void 0:t.sortedPages;if(n)return n.find(t=>{var n;let r,o,a,i=(r=t.split("/"),o="",(null==(n=r[r.length-1])?void 0:n.match(/^\[\[\.\.\..+\]\]$/))&&(r.pop(),o="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),new RegExp("^".concat(a).concat(o,"(?:/)?$")));return e.match(i)})}(o);a?(n=a,r="route"):(n=o,r="url"),sp(e,{name:n,attributes:{[tR]:"navigation",[tx]:"auto.navigation.nextjs.pages_router_instrumentation",[tw]:r}})});else{let t,n,r;L=(t,n)=>{var r;let o=null!=(r=et.default.env._sentryBasePath)?r:er._sentryBasePath,a=sE(new URL(o&&!t.startsWith(o)?"".concat(o).concat(t):t,er.location.href).pathname),i=sw(a),s=null!=i?i:a;"router-patch"===sR&&(sR="transition-start-hook");let l=sx.current;l?(l.updateName(s),l.setAttributes({"navigation.type":"router.".concat(n),[tw]:i?"route":"url"}),sx.current=void 0):sp(e,{name:s,attributes:{[tR]:"navigation",[tx]:"auto.navigation.nextjs.app_router_instrumentation",[tw]:i?"route":"url","navigation.type":"router.".concat(n)}})},er.addEventListener("popstate",()=>{var t;let n=sE(er.location.pathname),r=sw(n);(null==(t=sx.current)?void 0:t.isRecording())?(sx.current.updateName(null!=r?r:n),sx.current.setAttribute(tw,r?"route":"url")):sx.current=sp(e,{name:null!=r?r:n,attributes:{[tx]:"auto.navigation.nextjs.app_router_instrumentation",[tw]:r?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,n=0,r=setInterval(()=>{var o,a,i;n++;let s=null!=(o=null==er||null==(a=er.next)?void 0:a.router)?o:null==er||null==(i=er.nd)?void 0:i.router;t||n>
2500?clearInterval(r):s&&(clearInterval(r),t=!0,sP(e,s,sx),["nd","next"].forEach(t=>{let n=er[t];n&&(er[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&sP(e,r,sx),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(er.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:o}=function(){let e,t=er.document.getElementById("__NEXT_DATA__");if(null==t?void 0:t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{aH&&eh.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:o,props:a}=e;return n.route=r,n.params=o,(null==a?void 0:a.pageProps)&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),a=tj(o),i=t||er.location.pathname;(null==a?void 0:a["sentry-transaction"])&&"/_error"===i&&(i=(i=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=tn();sd(e,{name:i,startTime:s?s/1e3:void 0,attributes:{[tR]:"pageload",[tx]:"auto.pageload.nextjs.pages_router_instrumentation",[tw]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:o})}(e);else{let t,n,r;n=sw(t=sE(er.location.pathname)),sd(e,{name:null!=n?n:t,startTime:(r=tn())?r/1e3:void 0,attributes:{[tR]:"pageload",[tx]:"auto.pageload.nextjs.app_router_instrumentation",[tw]:n?"route":"url"}})}}(e)}}}let sM=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sN(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r="",o=!1;for(let e=t.length-1;e>=-1&&!o;e--){let n=e>=0?t[e]:"/";n&&(r="".concat(n,"/").concat(r),o="/"===n.charAt(0))}return r=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(r.split("/").filter(e=>!!e),!o).join("/"),(o?"/":"")+r||"."}function sL(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let sD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.root,n=e.prefix||"app:///",r="window"in er&&!!er.window,o=e.iteratee||function(e){let{isBrowser:t,root:n,prefix:r}=e;return e=>{if(!e.filename)return e;let o=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),a=/^\//.test(e.filename);if(t){if(n){let t=e.filename;0===t.indexOf(n)&&(e.filename=t.replace(n,r))}}else if(o||a){let t,a,i=o?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,s=n?function(e,t){e=sN(e).slice(1),t=sN(t).slice(1);let n=sL(e.split("/")),r=sL(t.split("/")),o=Math.min(n.length,r.length),a=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){a=e;break}let i=[];for(let e=a;e<n.length;e++)i.push("..");return(i=i.concat(r.slice(a))).join("/")}(n,i):(t=i.length>1024?"<truncated>".concat(i.slice(-1024)):i,(a=sM.exec(t))?a.slice(1):[])[2]||"";e.filename="".concat(r).concat(s)}return e}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t,n;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:null==t||null==(n=t.frames)?void 0:n.map(e=>o(e))}}}})}}}catch{return e}}(t)),t}}},sj=new class{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}constructor(e){this._maxSize=e,this._cache=new Map}}(100),sF=!1;function sU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tm(),{message:r,name:o,email:a,url:i,source:s,associatedEventId:l,tags:c}
2=e,u={contexts:{feedback:{contact_email:a,name:o,message:r,url:i,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:c},d=(null==n?void 0:n.getClient())||tb();return d&&d.emit("beforeSendFeedback",u,t),n.captureEvent(u,t)}e.s([],47474),e.i(47474),e.s([],738792),e.i(738792);let sB=er.document,sW=er.navigator,sH="Report a Bug",sq=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeReplay:!0};if(!e.message)throw Error("Unable to submit feedback with empty message");let n=tb();if(!n)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&tm().setTags(e.tags);let r=sU({source:"api",url:eA(),...e},t);return new Promise((e,t)=>{let o=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(n,i)=>{if(n.event_id===r)return(clearTimeout(o),a(),(null==i?void 0:i.statusCode)&&i.statusCode>=200&&i.statusCode<300)?e(r):(null==i?void 0:i.statusCode)===403?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},sz="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function sV(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;null==(n=t.onFormOpen)||n.call(t),null==(r=e.onFormOpen)||r.call(e)},onFormClose:()=>{var n,r;null==(n=t.onFormClose)||n.call(t),null==(r=e.onFormClose)||r.call(e)},onSubmitSuccess:(n,r)=>{var o,a;null==(o=t.onSubmitSuccess)||o.call(t,n,r),null==(a=e.onSubmitSuccess)||a.call(e,n,r)},onSubmitError:n=>{var r,o;null==(r=t.onSubmitError)||r.call(t,n),null==(o=e.onSubmitError)||o.call(e,n)},onFormSubmitted:()=>{var n,r;null==(n=t.onFormSubmitted)||n.call(t),null==(r=e.onFormSubmitted)||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function sG(e,t){return Object.entries(t).forEach(t=>{let[n,r]=t;e.setAttributeNS(null,n,r)}),e}let sJ="rgba(88, 74, 192, 1)",sX={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:sJ,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%)"},sY={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:sJ,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 sK(e){return"\n  --foreground: ".concat(e.foreground,";\n  --background: ").concat(e.background,";\n  --accent-foreground: ").concat(e.accentForeground,";\n  --accent-background: ").concat(e.accentBackground,";\n  --success-color: ").concat(e.successColor,";\n  --error-color: ").concat(e.errorColor,";\n  --border: ").concat(e.border,";\n  --box-shadow: ").concat(e.boxShadow,";\n  --outline: ").concat(e.outline,";\n  --interactive-filter: ").concat(e.interactiveFilter,";\n  ")}
2function s$(e){let{colorScheme:t,themeDark:n,themeLight:r,styleNonce:o}=e,a=sB.createElement("style");return a.textContent="\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ".concat("system"!==t?"color-scheme: only ".concat(t,";"):"","\n\n  ").concat(sK("dark"===t?{...sY,...n}:{...sX,...r}),"\n}\n\n").concat("system"===t?"\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ".concat(sK({...sY,...n}),"\n  }\n}"):"","\n"),o&&a.setAttribute("nonce",o),a}let sQ=e=>{let{lazyLoadIntegration:t,getModalIntegration:n,getScreenshotIntegration:r}=e;return function(){let{id:e="sentry-feedback",autoInject:o=!0,showBranding:a=!0,isEmailRequired:i=!1,isNameRequired:s=!1,showEmail:l=!0,showName:c=!0,enableScreenshot:u=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y="Add a screenshot",cancelButtonLabel:v="Cancel",confirmButtonLabel:b="Confirm",emailLabel:S="Email",emailPlaceholder:w="[email protected]",formTitle:E="Report a Bug",isRequiredLabel:k="(required)",messageLabel:R="Description",messagePlaceholder:x="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:I="Your Name",removeScreenshotButtonLabel:P="Remove screenshot",submitButtonLabel:C="Send Bug Report",successMessageText:A="Thank you for your report!",triggerLabel:O=sH,triggerAriaLabel:M="",highlightToolText:N="Highlight",hideToolText:L="Hide",removeHighlightText:D="Remove",onFormOpen:j,onFormClose:F,onSubmitSuccess:U,onSubmitError:B,onFormSubmitted:W}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},H={id:e,autoInject:o,showBranding:a,isEmailRequired:i,isNameRequired:s,showEmail:l,showName:c,enableScreenshot:u,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:O,triggerAriaLabel:M,cancelButtonLabel:v,submitButtonLabel:C,confirmButtonLabel:b,formTitle:E,emailLabel:S,emailPlaceholder:w,messageLabel:R,messagePlaceholder:x,nameLabel:T,namePlaceholder:I,successMessageText:A,isRequiredLabel:k,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:P,highlightToolText:N,hideToolText:L,removeHighlightText:D,onFormClose:F,onFormOpen:j,onSubmitError:B,onSubmitSuccess:U,onFormSubmitted:W},q=null,z=null,V=[],G=e=>{if(!q){let t=sB.createElement("div");t.id=String(e.id),sB.body.appendChild(t),q=t.attachShadow({mode:"open"}),z=s$(e),q.appendChild(z)}return q},J=async e=>{let o,a,i=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(sW.userAgent)||/Macintosh/i.test(sW.userAgent)&&sW.maxTouchPoints&&sW.maxTouchPoints>1)&&!!isSecureContext;try{o=(n?n():await t("feedbackModalIntegration",h))(),ry(o)}catch{throw sz&&eh.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let e=i?r?r():await t("feedbackScreenshotIntegration",h):void 0;e&&(a=e(),ry(a))}catch{sz&&eh.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s=o.createDialog({options:{...e,onFormClose:()=>{var t;null==s||s.close(),null==(t=e.onFormClose)||t.call(e)},onFormSubmitted:()=>{var t;null==s||s.close(),null==(t=e.onFormSubmitted)||t.call(e)}},screenshotIntegration:a,sendFeedback:sq,shadow:G(e)});return s},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=sV(H,t),r="string"==typeof e?sB.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw sz&&eh.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let o=null,a=async()=>{o||(o=await J({...n,onFormSubmitted:()=>{var e;null==o||o.removeFromDom(),null==(e=n.onFormSubmitted)||e.call(n)}})),o.appendToDom(),o.open()};r.addEventListener("click",a);let i=()=>{V=V.filter(e=>e!==i),null==o||o.removeFromDom(),o=null,r.removeEventListener("click",a)};return V.push(i),i},Y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sV(H,e),n=G(t),r=function(e){let t,n,r,o,a,i,s,l,{triggerLabel:c,triggerAriaLabel:u,shadow:d,styleNonce:p}=e,f=sB.createElement("button");if(f.type="button",f.className="widget__actor",f.ariaHidden="false",f.ariaLabel=u||c||sH,f.appendChild((n=sG((t=e=>er.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"".concat(20),height:"".concat(20),viewBox:"0 0 ".concat(20," ").concat(20),fill:"var(--actor-color, var(--foreground))"}),r=sG(t("g"),{clipPath:"url(#clip0_57_80)"}),o=sG(t("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
256 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"}),n.appendChild(r).appendChild(o),a=t("defs"),i=sG(t("clipPath"),{id:"clip0_57_80"}),s=sG(t("rect"),{width:"".concat(20),height:"".concat(20),fill:"white"}),i.appendChild(s),a.appendChild(i),n.appendChild(a).appendChild(i).appendChild(s),n)),c){let e=sB.createElement("span");e.appendChild(sB.createTextNode(c)),f.appendChild(e)}let h=((l=sB.createElement("style")).textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
2\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',p&&l.setAttribute("nonce",p),l);return{el:f,appendToDom(){d.appendChild(h),d.appendChild(f)},removeFromDom(){f.remove(),h.remove()},show(){f.ariaHidden="false"},hide(){f.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return X(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){aY()&&H.autoInject&&("loading"===sB.readyState?sB.addEventListener("DOMContentLoaded",()=>Y().appendToDom()):Y().appendToDom())},attachTo:X,createWidget(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Y(sV(H,e));return t.appendToDom(),t},async createForm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return J(sV(H,e))},setTheme(e){if(H.colorScheme=e,q){let e=s$(H);z?q.replaceChild(e,z):q.prepend(e),z=e}},remove(){if(q){var e;null==(e=q.parentElement)||e.remove(),q=null,z=null}V.forEach(e=>e()),V=[]}}}};function sZ(){let e=tb();return null==e?void 0:e.getIntegrationByName("Feedback")}var s0,s1,s2,s3,s5,s4,s6,s8={},s7=[],s9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,le=Array.isArray;function lt(e,t){for(var n in t)e[n]=t[n];return e}function ln(e){var t=e.parentNode;t&&t.removeChild(e)}function lr(e,t,n){var r,o,a,i={};
2for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?s0.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return lo(e,i,r,o,null)}function lo(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s2:o,__i:-1,__u:0};return null==o&&null!=s1.vnode&&s1.vnode(a),a}function la(e){return e.children}function li(e,t){this.props=e,this.context=t}function ls(e,t){if(null==t)return e.__?ls(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ls(e):null}function ll(e){(!e.__d&&(e.__d=!0)&&s3.push(e)&&!lc.__r++||s5!==s1.debounceRendering)&&((s5=s1.debounceRendering)||s4)(lc)}function lc(){var e,t,n,r=[],o=[];for(s3.sort(s6);e=s3.shift();)e.__d&&(n=s3.length,t=function(e,t,n){var r,o=e.__v,a=o.__e,i=e.__P;if(i)return(r=lt({},o)).__v=o.__v+1,s1.vnode&&s1.vnode(r),lm(i,r,o,e.__n,void 0!==i.ownerSVGElement,32&o.__u?[a]:null,t,null==a?ls(o):a,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,o)||t,0===n||s3.length>n?(lg(r,t,o),o.length=r.length=0,t=void 0,s3.sort(s6)):t&&s1.__c&&s1.__c(t,s7));t&&lg(r,t,o),lc.__r=0}function lu(e,t,n,r,o,a,i,s,l,c,u){var d,p,f,h,m,g=r&&r.__k||s7,_=t.length;for(n.__d=l,function(e,t,n){var r,o,a,i,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?lo(null,o,null,null,o):le(o)?lo(la,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?lo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=function(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&a===l.type)return n;if(r>+(null!=l&&0==(131072&l.__u)))for(;i>=0||s<t.length;){if(i>
vendor: 5,869 bytes, line 2
2=0){if((l=t[i])&&0==(131072&l.__u)&&o==l.key&&a===l.type)return i;i--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&a===l.type)return s;s++}}return -1}(o,n,i=r+d,u),o.__i=s,a=null,-1!==s&&(u--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==i&&(s===i+1?d++:s>i?u>l-i?d+=s-i:d--:d=s<i&&s==i-1?s-i:0,s!==r+d&&(o.__u|=65536))):(a=n[r])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=ls(a)),ly(a,a,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(a=n[r])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=ls(a)),ly(a,a))}(n,t,g),l=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?s8:g[f.__i]||s8,f.__i=d,lm(e,f,p,o,a,i,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&l_(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,n,r){var o,a;if("function"==typeof t.type){for(o=t.__k,a=0;o&&a<o.length;a++)o[a]&&(o[a].__=t,n=e(o[a],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=m}function ld(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||s9.test(t)?n:n+"px"}function lp(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ld(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ld(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?lh:lf,a)):e.removeEventListener(t,a?lh:lf,a);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function lf(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(s1.event?s1.event(e):e)}}function lh(e){if(this.l)return this.l[e.type+!0](s1.event?s1.event(e):e)}function lm(e,t,n,r,o,a,i,s,l,c){var u,d,p,f,h,m,g,_,y,v,b,S,w,E,k,R=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=s1.__b)&&u(t);e:if("function"==typeof R)try{if(_=t.props,y=(u=R.contextType)&&r[u.__c],v=u?y?y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(_,v):(t.__c=d=new li(_,v),d.constructor=R,d.render=lv),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=lt({},d.__s)),lt(d.__s,R.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=s1.__r,w=0,"prototype"in R&&R.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++w<25)d.state=d.__s,null!=d.getChildContext&&(r=lt(lt({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),lu(e,le(k=null!=u&&u.type===la&&null==u.key?u.props.children:u)?k:[k],t,n,r,o,a,i,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),s1.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,a,i,s,l){var c,u,d,p,f,h,m,g=n.props,_=t.props,y=t.type;if("svg"===y&&(o=!0),null!=a){for(c=0;c<a.length;c++)if((f=a[c])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,a[c]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),a=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(a=a&&s0.call(e.childNodes),g=n.props||s8,!s&&null!=a)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)f=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=f:"key"===c||c in _||lp(e,c,null,f,o));for(c in _)f=_[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?m=f:"key"===c||s&&"function"!=typeof f||g[c]===f||lp(e,c,f,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),lu(e,le(p)?p:[p],t,n,r,o&&"foreignObject"!==y,a,i,a?a[0]:n.__k&&ls(n,0),s,l),null!=a)for(c=a.length;c--;)null!=a[c]&&ln(a[c]);s||(c="value",void 0===h||h===e[c]&&("progress"!==y||h)&&("option"!==y||h===g[c])||lp(e,c,h,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&lp(e,c,m,g[c],!1))}return e}(n.__e,t,n,r,o,a,i,l,c);(u=s1.diffed)&&u(t)}
vendor: 1,399 bytes, line 2
2function lg(e,t,n){for(var r=0;r<n.length;r++)l_(n[r],n[++r],n[++r]);s1.__c&&s1.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){s1.__e(e,t.__v)}})}function l_(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){s1.__e(e,n)}}function ly(e,t,n){var r,o;if(s1.unmount&&s1.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||l_(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){s1.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ly(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||ln(e.__e),e.__=e.__e=e.__d=void 0}function lv(e,t,n){return this.constructor(e,n)}s0=s7.slice,s1={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},s2=0,li.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=lt({},this.state),"function"==typeof e&&(e=e(lt({},n),this.props)),e&&lt(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ll(this))},li.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ll(this))},li.prototype.render=la,s3=[],s4="function"==typeof Promise?Promise.prototype.then.bind(Prom
2ise.resolve()):setTimeout,s6=function(e,t){return e.__v.__b-t.__v.__b},lc.__r=0;var lb,lS,lw,lE,lk=0,lR=[],lx=[],lT=s1,lI=lT.__b,lP=lT.__r,lC=lT.diffed,lA=lT.__c,lO=lT.unmount,lM=lT.__;function lN(e,t){lT.__h&&lT.__h(lS,e,lk||t),lk=0;var n=lS.__H||(lS.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:lx}),n.__[e]}function lL(e){return lk=1,lD(lV,e)}function lD(e,t,n){var r=lN(lb++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):lV(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=lS,!lS.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var i=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};lS.u=!0;var a=lS.shouldComponentUpdate,i=lS.componentWillUpdate;lS.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,o(e,t,n),a=r}i&&i.call(this,e,t,n)},lS.shouldComponentUpdate=o}return r.__N||r.__}function lj(e,t){var n=lN(lb++,4);!lT.__s&&lz(n.__H,t)&&(n.__=e,n.i=t,lS.__h.push(n))}function lF(e,t){var n=lN(lb++,7);return lz(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function lU(e,t){return lk=8,lF(function(){return e},t)}function lB(){for(var e;e=lR.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(lH),e.__H.__h.forEach(lq),e.__H.__h=[]}catch(t){e.__H.__h=[],lT.__e(t,e.__v)}}lT.__b=function(e){lS=null,lI&&lI(e)},lT.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lM&&lM(e,t)},lT.__r=function(e){lP&&lP(e),lb=0;var t=(lS=e.__c).__H;t&&(lw===lS?(t.__h=[],lS.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=lx,e.__N=e.i=void 0})):(t.__h.forEach(lH),t.__h.forEach(lq),t.__h=[],lb=0)),lw=lS},lT.diffed=function(e){lC&&lC(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==lR.push(t)&&lE===lT.requestAnimationFrame||((lE=lT.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),lW&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);lW&&(t=requestAnimationFrame(n))})(lB)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==lx&&(e.__=e.__V),e.i=void 0,e.__V=lx})),lw=lS=null},lT.__c=function(e,t){t.some(function(e){try{e.__h.forEach(lH),e.__h=e.__h.filter(function(e){return!e.__||lq(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],lT.__e(n,e.__v)}}),lA&&lA(e,t)},lT.unmount=function(e){lO&&lO(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{lH(e)}catch(e){t=e}}),n.__H=void 0,t&&lT.__e(t,n.__v))};var lW="function"==typeof requestAnimationFrame;function lH(e){var t=lS,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),lS=t}function lq(e){var t=lS;e.__c=e.__(),lS=t}function lz(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function lV(e,t){return"function"==typeof t?t(e):t}let lG=Object.defineProperty({__proto__:null,useCallback:lU,useContext:function(e){var t=lS.context[e.__c],n=lN(lb++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(lS)),t.props.value):e.__},useDebugValue:function(e,t){lT.useDebugValue&&lT.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=lN(lb++,3);!lT.__s&&lz(n.__H,t)&&(n.__=e,n.i=t,lS.__H.__h.push(n))},useErrorBoundary:function(e){var t=lN(lb++,10),n=lL();return t.__=e,lS.componentDidCatch||(lS.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=lN(lb++,11);if(!e.__){for(var t=lS.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){lk=6,lj(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:lj,useMemo:lF,useReducer:lD,useRef:function(e){return lk=5,lF(function(){return{current:e}},[])},useState:lL},Symbol.toStringTag,{value:"Module"});function lJ(e){let{options:t}=e,n=lF(()=>{let e,t;return{__html:(e=sG(sB.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=sG(sB.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 lr("h2",{class:"dialog__header"},lr("span",{class:"dialog__title"},t.formTitle),t.showBranding?lr("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:n}):null)}function lX(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function lY(e){let{options:t,defaultEmail:n,defaultName:r,onFormClose:o,onSubmit:a,onSubmitSuccess:i,onSubmitError:s,showEmail
2:l,showName:c,screenshotInput:u}=e,{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:m,emailPlaceholder:g,isEmailRequired:_,isNameRequired:y,messageLabel:v,messagePlaceholder:b,nameLabel:S,namePlaceholder:w,submitButtonLabel:E,isRequiredLabel:k}=t,[R,x]=lL(!1),[T,I]=lL(null),[P,C]=lL(!1),A=null==u?void 0:u.input,[O,M]=lL(null),N=lU(e=>{M(e),C(!1)},[]),L=lU(e=>{var t;let n,r=(n=[],(t={emailLabel:m,isEmailRequired:_,isNameRequired:y,messageLabel:v,nameLabel:S}).isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n);return r.length>0?I("Please enter in the following required fields: ".concat(r.join(", "))):I(null),0===r.length},[m,_,y,v,S]);return lr("form",{class:"form",onSubmit:lU(async e=>{x(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&P?u.value():void 0),r={name:lX(t,"name"),email:lX(t,"email"),message:lX(t,"message"),attachments:n?[n]:void 0};if(!L(r))return;try{let e=await a({name:r.name,email:r.email,message:r.message,source:"widget",tags:d},{attachments:r.attachments});i(r,e)}catch(e){sz&&eh.error(e),I(e),s(e)}}finally{x(!1)}},[u&&P,i,s])},A&&P?lr(A,{onError:N}):null,lr("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:R},lr("div",{class:"form__top"},T?lr("div",{class:"form__error-container"},T):null,c?lr("label",{for:"name",class:"form__label"},lr(lK,{label:S,isRequiredLabel:k,isRequired:y}),lr("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:w,required:y,type:"text"})):lr("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),l?lr("label",{for:"email",class:"form__label"},lr(lK,{label:m,isRequiredLabel:k,isRequired:_}),lr("input",{class:"form__input",defaultValue:n,id:"email",name:"email",placeholder:g,required:_,type:"email"})):lr("input",{"aria-hidden":!0,value:n,name:"email",type:"hidden"}),lr("label",{for:"message",class:"form__label"},lr(lK,{label:v,isRequiredLabel:k,isRequired:!0}),lr("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),A?lr("label",{for:"screenshot",class:"form__label"},lr("button",{class:"btn btn--default",disabled:R,type:"button",onClick:()=>{M(null),C(e=>!e)}},P?f:p),O?lr("div",{class:"form__error-container"},O.message):null):null),lr("div",{class:"btn-group"},lr("button",{class:"btn btn--primary",disabled:R,type:"submit"},E),lr("button",{class:"btn btn--default",disabled:R,type:"button",onClick:o},h))))}function lK(e){let{label:t,isRequired:n,isRequiredLabel:r}=e;return lr("span",{class:"form__label__text"},t,n&&lr("span",{class:"form__label__text--required"},r))}function l$(e){let{open:t,onFormSubmitted:n,...r}=e,o=r.options,a=lF(()=>{let e,t,n,r,o,a,i,s;return{__html:(t=sG((e=e=>er.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"".concat(16),height:"".concat(17),viewBox:"0 0 ".concat(16," ").concat(17),fill:"inherit"}),n=sG(e("g"),{clipPath:"url(#clip0_57_156)"}),r=sG(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"}),o=sG(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 
210.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(n).append(o,r),a=e("defs"),i=sG(e("clipPath"),{id:"clip0_57_156"}),s=sG(e("rect"),{width:"".concat(16),height:"".concat(16),fill:"white",transform:"translate(0 0.5)"}),i.appendChild(s),a.appendChild(i),t.appendChild(a).appendChild(i).appendChild(s),t).outerHTML}},[]),[i,s]=lL(null),l=lU(()=>{i&&(clearTimeout(i),s(null)),n()},[i]),c=lU((e,t)=>{r.onSubmitSuccess(e,t),s(setTimeout(()=>{n(),s(null)},5e3))},[n]);return lr(la,null,i?lr("div",{class:"success__position",onClick:l},lr("div",{class:"success__content"},o.successMessageText,lr("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):lr("dialog",{class:"dialog",onClick:o.onFormClose,open:t},lr("div",{class:"dialog__position"},lr("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},lr(lJ,{options:o}),lr(lY,{...r,onSubmitSuccess:c})))))}let lQ=()=>({name:"FeedbackModal",setupOnce(){},createDialog:e=>{var t;let n,r,o,a,{options:i,screenshotIntegration:s,sendFeedback:l,shadow:c}=e,u=i.useSentryUser,d=(n=tm().getUser(),r=tg().getUser(),o=t_().getUser(),n&&Object.keys(n).length?n:r&&Object.keys(r).length?r:o),p=sB.createElement("div"),f=(t=i.styleNonce,(a=sB.createElement("style")).textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n".concat("\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
2\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n","\n").concat("\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n","\n").concat("\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n","\n").concat("\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n","\n").concat("\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
2\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n","\n"),t&&a.setAttribute("nonce",t),a),h="",m={get el(){return p},appendToDom(){c.contains(f)||c.contains(p)||(c.appendChild(f),c.appendChild(p))},removeFromDom(){p.remove(),f.remove(),sB.body.style.overflow=h},open(){var e,t;_(!0),null==(e=i.onFormOpen)||e.call(i),null==(t=tb())||t.emit("openFeedbackWidget"),h=sB.body.style.overflow,sB.body.style.overflow="hidden"},close(){_(!1),sB.body.style.overflow=h}},g=null==s?void 0:s.createInput({h:lr,hooks:lG,dialog:m,options:i}),_=e=>{var t,n,r,o;t=lr(l$,{options:i,screenshotInput:g,showName:i.showName||i.isNameRequired,showEmail:i.showEmail||i.isEmailRequired,defaultName:String(u&&(null==d?void 0:d[u.name])||""),defaultEmail:String(u&&(null==d?void 0:d[u.email])||""),onFormClose:()=>{var e;_(!1),null==(e=i.onFormClose)||e.call(i)},onSubmit:l,onSubmitSuccess:(e,t)=>{var n;_(!1),null==(n=i.onSubmitSuccess)||n.call(i,e,t)},onSubmitError:e=>{var t;null==(t=i.onSubmitError)||t.call(i,e)},onFormSubmitted:()=>{var e;null==(e=i.onFormSubmitted)||e.call(i)},open:e}),s1.__&&s1.__(t,p),n=p.__k,r=[],o=[],lm(p,t=p.__k=lr(la,null,[t]),n||s8,s8,void 0!==p.ownerSVGElement,n?null:p.firstChild?s0.call(p.childNodes):null,r,n?n.__e:p.firstChild,!1,o),t.__d=void 0,lg(r,t,o)};return m}});function lZ(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function l0(e,t){lZ(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function l1(e,t,n){lZ(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let l2=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:e=>{let{h:t,hooks:n,dialog:r,options:o}=e,a=sB.createElement("canvas");return{input:function(e){var t;let n,r,o,{h:a,hooks:i,outputBuffer:s,dialog:l,options:c}=e,u=function(e){let{hooks:t}=e;return function(e){let{onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:o,onError:a}=e,i=function(){var e;let[n,r]=t.useState(null!=(e=er.devicePixelRatio)?e:1);return t.useEffect(()=>{let e=()=>{r(er.devicePixelRatio)},t=matchMedia("(resolution: ".concat(er.devicePixelRatio,"dppx)"));return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),n}();t.useEffect(()=>{(async()=>{n();let e=await sW.mediaDevices.getDisplayMedia({video:{width:er.innerWidth*i,height:er.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),t=sB.createElement("video");await new Promise((n,o)=>{t.srcObject=e,t.onloadedmetadata=()=>{r(t,i),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(o)}),o()})().catch(a)},[])}}({hooks:i}),d=function(e){let{h:t}=e;return function(e){let{action:n,setAction:r,options:o}=e;return t("div",{class:"editor__tool-container"},t("div",{class:"editor__tool-bar"},t("button",{type:"button",class:"editor__tool ".concat("highlight"===n?"editor__tool--active":""),onClick:()=>{r("highlight"===n?"":"highlight")}},o.highlightToolText),t("button",{type:"button",class:"editor__tool ".concat("hide"===n?"editor__tool--active":""),onClick:()=>{r("hide"===n?"":"hide")}},o.hideToolText)))}}({h:a}),p=function(e){let{h:t}=e;return function(){return t("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},t("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),t("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"}),t("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"}),t("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:a}),f={__html:(t=c.styleNonce,n=sB.createElement("style"),r="#1A141F",o="#302735",n.textContent="\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ".concat(r,";\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ").concat(r," 8px,\n      ").concat(r," 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\
2n      ").concat(o," 15px,\n      ").concat(o," 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n"),t&&n.setAttribute("nonce",t),n).innerText},h=l.el.style,m=e=>{let{screenshot:t}=e,[n,r]=i.useState("highlight"),[o,l]=i.useState([]),u=i.useRef(null),h=i.useRef(null),m=i.useRef(null),g=i.useRef(null),[_,y]=i.useState(1),v=i.useMemo(()=>{let e=sB.getElementById(c.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[c.id]);i.useLayoutEffect(()=>{let e=()=>{let n=u.current;n&&(lZ(t.canvas,{alpha:!1},e=>{y(Math.min(n.clientWidth/e.width,n.clientHeight/e.height))}),(0===n.clientHeight||0===n.clientWidth)&&setTimeout(e,0))};return e(),er.addEventListener("resize",e),()=>{er.removeEventListener("resize",e)}},[t]);let b=i.useCallback((e,n)=>{lZ(e,{alpha:!0},(e,r)=>{r.scale(n,n),e.width=t.canvas.width,e.height=t.canvas.height})},[t]);i.useEffect(()=>{b(h.current,t.dpi),l0(h.current,t.canvas)},[t]),i.useEffect(()=>{b(m.current,t.dpi),lZ(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),l1(m.current,v,o)},[o,v]),i.useEffect(()=>{b(s,t.dpi),l0(s,t.canvas),lZ(sB.createElement("canvas"),{alpha:!0},(e,n)=>{n.scale(t.dpi,t.dpi),e.width=t.canvas.width,e.height=t.canvas.height,l1(e,v,o),l0(s,e)})},[o,t,v]);let S=i.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let n=[...t];return n.splice(e,1),n})},[]),w={width:"".concat(t.canvas.width*_,"px"),height:"".concat(t.canvas.height*_,"px")},E=e=>{e.stopPropagation()};return a("div",{class:"editor"},a("style",{nonce:c.styleNonce,dangerouslySetInnerHTML:f}),a("div",{class:"editor__image-container"},a("div",{class:"editor__canvas-container",ref:u},a("canvas",{ref:h,id:"background",style:w}),a("canvas",{ref:m,id:"foreground",style:w}),a("div",{ref:g,onMouseDown:e=>{if(!n||!g.current)return;let t=g.current.getBoundingClientRect(),r={type:n,x:e.offsetX/_,y:e.offsetY/_},a=(e,n)=>{let r=(n.clientX-t.x)/_,o=(n.clientY-t.y)/_;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},i=e=>{lZ(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),l1(m.current,v,[...o,a(r,e)])},s=e=>{let t=a(r,e);t.w*_>=1&&t.h*_>=1&&l(e=>[...e,t]),sB.removeEventListener("mousemove",i),sB.removeEventListener("mouseup",s)};sB.addEventListener("mousemove",i),sB.addEventListener("mouseup",s)},style:w},o.map((e,t)=>a("div",{key:t,class:"editor__rect",style:{top:"".concat(e.y*_,"px"),left:"".concat(e.x*_,"px"),width:"".concat(e.w*_,"px"),height:"".concat(e.h*_,"px")}},a("button",{"aria-label":c.removeHighlightText,onClick:S(t),onMouseDown:E,onMouseUp:E,type:"button"},a(p,null))))))),a(d,{options:c,action:n,setAction:r}))};return function(e){let{onError:t}=e,[n,r]=i.useState();return(u({onBeforeScreenshot:i.useCallback(()=>{h.display="none"},[]),onScreenshot:i.useCallback((e,t)=>{lZ(sB.createElement("canvas"),{alpha:!1},(n,o)=>{o.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,o.drawImage(e,0,0,n.width,n.height),r({canvas:n,dpi:t})}),s.width=e.videoWidth,s.height=e.videoHeight},[]),onAfterScreenshot:i.useCallback(()=>{h.display="block"},[]),onError:i.useCallback(e=>{h.display="block",t(e)},[])}),n)?a(m,{screenshot:n}):a("div",null)}}({h:t,hooks:n,outputBuffer:a,dialog:r,options:o}),value:async()=>{let e=await new Promise(e=>
2{a.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),l3={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"};async function l5(e,t){var n,r;let o,a,i=l3[e],s=er.Sentry=er.Sentry||{};if(!i)throw Error("Cannot lazy load integration: ".concat(e));let l=s[e];if("function"==typeof l&&!("_isShim"in l))return l;let c=(n=i,a=(null==(o=tb())||null==(r=o.getOptions())?void 0:r.cdnBaseUrl)||"https://browser.sentry-cdn.com",new URL("/".concat(en,"/").concat(n,".min.js"),a).toString()),u=er.document.createElement("script");u.src=c,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let d=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),p=er.document.currentScript,f=er.document.body||er.document.head||(null==p?void 0:p.parentElement);if(f)f.appendChild(u);else throw Error("Could not find parent element to insert lazy-loaded ".concat(e," script"));try{await d}catch{throw Error("Error when loading integration: ".concat(e))}let h=s[e];if("function"!=typeof h)throw Error("Could not load integration: ".concat(e));return h}let l4=sQ({lazyLoadIntegration:l5}),l6=sQ({getModalIntegration:()=>lQ,getScreenshotIntegration:()=>l2}),l8="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function l7(e,t){let n;return nw(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function l9(e,t){return n=>{let r=e(n),o=new Map,a=t||(e=>{var t;let n=e.getEvent();return(null==n||null==(t=n.extra)?void 0:t[l8])&&Array.isArray(n.extra[l8])?n.extra[l8]:[]});function i(t,r){let a=r?"".concat(t,":").concat(r):t,i=o.get(a);if(!i){let s=t$(t);if(!s)return;let l=rM(s,n.tunnel);i=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=l7(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),o.set(a,i)}return[t,i]}return{send:async function(e){let t=a({envelope:e,getEvent:function(t){return l7(e,(null==t?void 0:t.length)?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(t=>{let[n,r]=t;return r.send(nS(n?{...e[0],dsn:n}:e[0],e[1]))})))[0]},flush:async function(e){let t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}let ce=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.levels||el,r=null==(e=t.handled)||e;return{name:"CaptureConsole",setup(e){"console"in er&&ox(t=>{var o,a,i;let s,l,c,{args:u,level:d}=t;tb()===e&&n.includes(d)&&(o=u,a=d,i=r,s=oD(a),l=Error(),c={level:oD(a),extra:{arguments:o}},ty(e=>{if(e.addEventProcessor(e=>(e.logger="console",e6(e,{handled:i,type:"auto.core.capture_console"}),e)),"assert"===a){if(!o[0]){let t="Assertion failed: ".concat(eZ(o.slice(1)," ")||"console.assert");e.setExtra("arguments",o.slice(1)),e.captureMessage(t,s,{captureContext:c,syntheticException:l})}return}let t=o.find(e=>e instanceof Error);if(t)return void n4(t,c);let n=eZ(o," ");e.captureMessage(n,s,{captureContext:c,syntheticException:l})}))})}}};function ct(e,t,n){var r,o,a;return"util"in er&&"function"==typeof er.util.format?er.util.format(...e):(r=e,o=t,a=n,r.map(e=>eE(e)?String(e):JSON.stringify(nb(e,o,a))).join(" "))}function cn(e){return/%[sdifocO]/.test(e)}function cr(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]="".concat(e," ").concat(r),t.forEach((e,t)=>{n["sentry.message.parameter.".concat(t)]=e}),n}let co={[tx]:"auto.log.console"},ca=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.levels||el;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e.getOptions();if(!n){es&&eh.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}ox(n=>{let{args:a,level:i}=n;if(tb()!==e||!t.includes(i))return;let s=a[0],l=a.slice(1);if("assert"===i){s||rU({level:"error",message:l.length>0?"Assertion failed: ".concat(ct(l,r,o)):"Assertion failed",attributes:co});return}let c="log"===i,u=a.length>1&&"string"==typeof a[0]&&!cn(a[0]),d={...co,...u?cr(s,l):{}};rU({level:c?"info":i,message:ct(a,r,o),severityNumber:c?10:void 0,attributes:d})})}}},ci=["trace","debug","info","warn","error","fatal"];function cs(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new Set(null!=(e=t.levels)?e:ci),r=t.client;return{log(e){let{type:t,level:o,message:a,args:i,tag:s,date:l,...c}=e,u=r||tb();if(!u)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=cl[e];
2if(t)return t}if("number"==typeof t){let e=cc[t];if(e)return e}return"info"}(t,o);if(!n.has(d))return;let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=u.getOptions(),h={};for(let[e,t]of Object.entries(c))h[e]=nb(t,p,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),t&&(h["consola.type"]=t),null!=o&&"number"==typeof o&&(h["consola.level"]=o);let m=function(e,t,n){let{message:r,attributes:o,messageTemplate:a,messageParameters:i}=e,s={};if(a&&i)for(let[e,r]of Object.entries(cr(a,i)))s[e]=e.startsWith("sentry.message.parameter.")?nb(r,t,n):r;else i&&i.length>0&&i.forEach((e,r)=>{s["sentry.message.parameter.".concat(r)]=nb(e,t,n)});return{message:r,attributes:{...nb(o,t,n),...s}}}(function(e,t,n){if(!(null==e?void 0:e.length))return{message:""};let r=ct(e,t,n),o=e[0];if(ek(o)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:o,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof o&&!cn(o);return{message:r,messageTemplate:n?o:void 0,messageParameters:n?t:void 0}}}(i,p,f),p,f);(null==m?void 0:m.attributes)&&Object.assign(h,m.attributes),rU({level:d,message:(null==m?void 0:m.message)||a||i&&ct(i,p,f)||"",attributes:h})}}}let cl={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"},cc={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},cu="gen_ai.system",cd="gen_ai.request.model",cp="gen_ai.request.stream",cf="gen_ai.request.temperature",ch="gen_ai.request.max_tokens",cm="gen_ai.request.frequency_penalty",cg="gen_ai.request.presence_penalty",c_="gen_ai.request.top_p",cy="gen_ai.request.top_k",cv="gen_ai.response.finish_reasons",cb="gen_ai.response.model",cS="gen_ai.response.id",cw="gen_ai.usage.input_tokens",cE="gen_ai.usage.output_tokens",ck="gen_ai.usage.total_tokens",cR="gen_ai.operation.name",cx="sentry.sdk_meta.gen_ai.input.messages.original_length",cT="gen_ai.input.messages",cI="gen_ai.system_instructions",cP="gen_ai.response.text",cC="gen_ai.request.available_tools",cA="gen_ai.response.streaming",cO="gen_ai.response.tool_calls",cM="gen_ai.agent.name",cN="gen_ai.conversation.id",cL="openai.response.id",cD="openai.response.model",cj="openai.response.timestamp",cF="chat",cU="embeddings",cB="anthropic.response.timestamp",cW="auto.ai.langchain",cH={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"};function cq(e){var t,n,r,o,a,i;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&cq(t.source)||cV(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):cz(n))||cG(e)||cJ(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(o=e)&&("blob"===o.type||"base64"===o.type)||"b64_json"in e||"type"in(a=e)&&"result"in a&&"image_generation"===a.type||"uri"in(i=e)&&"string"==typeof i.uri&&i.uri.startsWith("data:"))}function cz(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 cV(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function cG(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 cJ(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 cX="[Blob substitute]",cY=["image_url","data","content","b64_json","result","uri"];function cK(e){let t={...e};for(let n of(cq(t.source)&&(t.source=cK(t.source)),cV(e)&&(t.inlineData={...e.inlineData,data:cX}),cz(e)&&(t.image_url={...e.image_url,url:cX}),cG(e)&&(t.input_audio={...e.input_audio,data:cX}),cJ(e)&&(t.file={...e.file,file_data:cX}),cY))"string"==typeof t[n]&&(t[n]=cX);return t}let c$=e=>new TextEncoder().encode(e).length,cQ=e=>c$(JSON.stringify(e));function cZ(e,t){if(c$(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){let a=Math.floor((n+r)/2),i=e.slice(0,a);c$(i)<=t?(o=i,n=a+1):r=a-1}return o}function c0(e,t){return"string"==typeof e?t:{...e,text:t}}function c1(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function c2(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?n={...t,content:e(t.content)}:"content"in t&&cq(t.content)&&(n={...t,content:cK(t.content)}),c1(t)&&(n={...null!=n?n:t,parts:e(t.parts)}),cq(n)?n=cK(n):cq(t)&&(n=cK(t)));return null!=n?n:t})}([e[e.length-1]]),n=t[0];return 19998>=cQ(n)?t:function(e){if(!e)return[];if("string"==typeof e){let t=cZ(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-cQ({...e,content:""});if(t<=0)return[];let n=cZ(e.content,t);return[{...e,content:n}]}return c1(e)?function(e,t){let{parts:n}=e,r=n.map(e=>c0(e,"")),o=t-cQ({...e,parts:r});if(o<=0)return[];let a=[];for(let e of n){let t="string"==typeof e?e:"text"in e?e.text:"",n=c$(t);if(n<=o)a.push(e),o-=n;else if(0===a.length){let n=cZ(t,o);n&&a.push(c0(e,n));break}else break}return a.length<=0?[]:[{...e,parts:a}]}(e,19998):[]}(n)}function c3(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function c5(e){return"gen_ai.".concat(c3(e))}function c4(e,t){return e?"".concat(e,".").concat(t):t}function c6(e,t,n,r,o){void 0!==t&&e.setAttributes({[cw]:t}),void 0!==n&&e.setAttributes({[cE]:n}),(void 0!==t||void 0!==n||void 0!==r||void 0!==o)&&e.setAttributes({[ck]:(null!=t?t:0)+(null!=n?n:0)+(null!=r?r:0)+(null!=o?o:0)})}function c8(e){return"string"==typeof e?cZ(e,2e4):Array.isArray(e)?JSON.stringify(c2(e)):JSON.stringify(e)}function c7(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}let c9=(e,t,n)=>{null!=n&&(e[t]=n)}
2,ue=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function ut(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function un(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&cq(e)?cK(e):e);return JSON.stringify(t)}catch{return String(e)}return ut(e)}function ur(e){var t;let n=e.toLowerCase();return null!=(t=cH[n])?t:n}function uo(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 ua(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function ui(e){return e.map(e=>{var t,n;let r=e._getType;if("function"==typeof r)return{role:ur(r.call(e)),content:un(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:ur("string"==typeof r?uo(r):"user"),content:un(null==(n=e.kwargs)?void 0:n.content)}}if(e.type)return{role:ur(String(e.type).toLowerCase()),content:un(e.content)};if(e.role)return{role:ur(String(e.role)),content:un(e.content)};let o=null==(t=e.constructor)?void 0:t.name;return o&&"Object"!==o?{role:ur(uo(o)),content:un(e.content)}:{role:"user",content:un(e.content)}})}function us(e,t,n,r,o){var a,i,s,l,c;let u,d;return{[cu]:ut(null!=e?e:"langchain"),[cR]:"chat",[cd]:ut(t),[tx]:cW,...(u={},d="kwargs"in n?n.kwargs:void 0,ue(u,cf,null!=(a=null!=(i=null==r?void 0:r.temperature)?i:null==o?void 0:o.ls_temperature)?a:null==d?void 0:d.temperature),ue(u,ch,null!=(s=null!=(l=null==r?void 0:r.max_tokens)?l:null==o?void 0:o.ls_max_tokens)?s:null==d?void 0:d.max_tokens),ue(u,c_,null!=(c=null==r?void 0:r.top_p)?c:null==d?void 0:d.top_p),ue(u,cm,null==r?void 0:r.frequency_penalty),ue(u,cg,null==r?void 0:r.presence_penalty),r&&"stream"in r&&c9(u,cp,!!r.stream),u)}}function ul(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!=(e=n.recordInputs)&&e,o=null!=(t=n.recordOutputs)&&t,a=new Map,i=e=>{let t=a.get(e);(null==t?void 0:t.isRecording())&&(t.end(),a.delete(e))},s={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,t,n,o,i,s,l,c){var u,d;let p,f=ua(s),h=(p=us(null==l?void 0:l.ls_provider,null!=(u=null!=(d=null==f?void 0:f.model)?d:null==l?void 0:l.ls_model_name)?u:"unknown",e,f,l),r&&Array.isArray(t)&&t.length>0&&(c9(p,cx,t.length),c9(p,cT,ut(t.map(e=>({role:"user",content:e}))))),p),m=h[cd],g=h[cR];nF({name:"".concat(g," ").concat(m),op:"gen_ai.chat",attributes:{...h,[tR]:"gen_ai.chat"}},e=>(a.set(n,e),e))},handleChatModelStart(e,t,n,o,i,s,l,c){let u=function(e,t,n,r,o){var a,i,s,l;let c=us(null!=(a=null==o?void 0:o.ls_provider)?a:null==(l=e.id)?void 0:l[2],null!=(i=null!=(s=null==r?void 0:r.model)?s:null==o?void 0:o.ls_model_name)?i:"unknown",e,r,o);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=c7(ui(t.flat()));e&&c9(c,cI,e),c9(c,cx,Array.isArray(n)?n.length:0),c9(c,cT,ut(c2(n)))}return c}(e,t,r,ua(s),l),d=u[cd],p=u[cR];nF({name:"".concat(p," ").concat(d),op:"gen_ai.chat",attributes:{...u,[tR]:"gen_ai.chat"}},e=>(a.set(n,e),e))},handleLLMEnd(e,t,n,r,s){let l=a.get(t);if(null==l?void 0:l.isRecording()){let n=function(e,t){var n,r,o,a,i,s,l,c;if(!e)return;let u={};if(Array.isArray(e.generations)){let n=e.generations.flat().map(e=>{var t,n;return(null==(t=e.generationInfo)?void 0:t.finish_reason)?e.generationInfo.finish_reason:(null==(n=e.generation_info)?void 0:n.finish_reason)?e.generation_info.finish_reason:null}).filter(e=>"string"==typeof e);if(n.length>0&&c9(u,cv,ut(n)),!function(e,t){let n=[];for(let t of e.flat()){var r;let e=null==(r=t.message)?void 0:r.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}n.length>0&&c9(t,cO,ut(n))}(e.generations,u),t){let t=e.generations.flat().map(e=>{var t,n;return null!=(t=e.text)?t:null==(n=e.message)?void 0:n.content}).filter(e=>"string"==typeof e);t.length>0&&c9(u,cP,ut(t))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;
2if(n)ue(t,cw,n.promptTokens),ue(t,cE,n.completionTokens),ue(t,ck,n.totalTokens);else if(r){ue(t,cw,r.input_tokens),ue(t,cE,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);o>0&&ue(t,ck,o),void 0!==r.cache_creation_input_tokens&&ue(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&ue(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,u);let d=e.llmOutput,p=null==(s=e.generations)||null==(i=s[0])?void 0:i[0],f=null==p?void 0:p.message,h=null!=(n=null!=(r=null==d?void 0:d.model_name)?r:null==d?void 0:d.model)?n:null==f||null==(l=f.response_metadata)?void 0:l.model_name;h&&c9(u,cb,h);let m=null!=(o=null==d?void 0:d.id)?o:null==f?void 0:f.id;m&&c9(u,cS,m);let g=null!=(a=null==d?void 0:d.stop_reason)?a:null==f||null==(c=f.response_metadata)?void 0:c.finish_reason;return g&&c9(u,"gen_ai.response.stop_reason",ut(g)),u}(e,o);n&&l.setAttributes(n),i(t)}},handleLLMError(e,t){let n=a.get(t);(null==n?void 0:n.isRecording())&&(n.setStatus({code:2,message:"llm_error"}),i(t)),n4(e,{mechanism:{handled:!1,type:"".concat(cW,".llm_error_handler")}})},handleChainStart(e,t,n,o,i,s,l,c){let u=c||e.name||"unknown_chain",d={[tx]:"auto.ai.langchain","langchain.chain.name":u};r&&(d["langchain.chain.inputs"]=JSON.stringify(t)),nF({name:"chain ".concat(u),op:"gen_ai.invoke_agent",attributes:{...d,[tR]:"gen_ai.invoke_agent"}},e=>(a.set(n,e),e))},handleChainEnd(e,t){let n=a.get(t);(null==n?void 0:n.isRecording())&&(o&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),i(t))},handleChainError(e,t){let n=a.get(t);(null==n?void 0:n.isRecording())&&(n.setStatus({code:2,message:"chain_error"}),i(t)),n4(e,{mechanism:{handled:!1,type:"".concat(cW,".chain_error_handler")}})},handleToolStart(e,t,n,o){let i=e.name||"unknown_tool",s={[tx]:cW,"gen_ai.tool.name":i};r&&(s["gen_ai.tool.input"]=t),nF({name:"execute_tool ".concat(i),op:"gen_ai.execute_tool",attributes:{...s,[tR]:"gen_ai.execute_tool"}},e=>(a.set(n,e),e))},handleToolEnd(e,t){let n=a.get(t);(null==n?void 0:n.isRecording())&&(o&&n.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),i(t))},handleToolError(e,t){let n=a.get(t);(null==n?void 0:n.isRecording())&&(n.setStatus({code:2,message:"tool_error"}),i(t)),n4(e,{mechanism:{handled:!1,type:"".concat(cW,".tool_error_handler")}})},copy:()=>s,toJSON:()=>({lc:1,type:"not_implemented",id:s.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:s.lc_id})};return s}let uc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){let{maxValueLength:a}=o.getOptions();return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!t.originalException||!e_(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,i=function e(t,n,r){try{let o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(let e of Object.keys(t)){if(-1!==o.indexOf(e))continue;let n=t[e];a[e]=e_(n)||"string"==typeof n?r?e$("".concat(n),r):"".concat(n):n}if(n&&void 0!==t.cause&&(e_(t.cause)?a.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:a.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];a[t]=e_(n)?n.toString():n}}return a}catch(e){es&&eh.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,o);if(i){let t={...e.contexts},r=nb(i,n);return ek(r)&&(eN(r,"__sentry_skip_normalization__",!0),t[a]=r),{...e,contexts:t}}return e}(e,r,t,n,a)}}},uu="flag.evaluation.";function ud(e){let t=tm().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function up(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=tm().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>
2r){es&&eh.error("[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=".concat(r));return}let o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function uf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;if("boolean"!=typeof t)return;let r=nu();if(!r)return;let o=nn(r).data;"".concat(uu).concat(e)in o?r.setAttribute("".concat(uu).concat(e),t):Object.keys(o).filter(e=>e.startsWith(uu)).length<n&&r.setAttribute("".concat(uu).concat(e),t)}let uh=()=>({name:"FeatureFlags",processEvent:(e,t,n)=>ud(e),addFeatureFlag(e,t){up(e,t),uf(e,t)}});function um(e,t,n,r){if(e&&"object"==typeof e&&!function(e,t){if("type"in e&&"string"==typeof e.type&&"error"===e.type){var n,r;return t.setStatus({code:2,message:null!=(n=null==(r=e.error)?void 0:r.type)?n:"internal_error"}),n4(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0}return!1}(e,r)){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let o=r.inputJsonParts.join("");try{n=o?JSON.parse(o):{}}catch{n={__unparsed:o}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*ug(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let o of e)um(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[cS]:r.responseId}),r.responseModel&&t.setAttributes({[cb]:r.responseModel}),c6(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[cA]:!0}),r.finishReasons.length>0&&t.setAttributes({[cv]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[cP]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[cO]:JSON.stringify(r.toolCalls)}),t.end()}}let u_=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function uy(e,t){!function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:n,filteredMessages:r}=c7(t);n&&e.setAttributes({[cI]:n});let o=Array.isArray(r)?r.length:1;e.setAttributes({[cT]:c8(r),[cx]:o})}(e,function(e){let{system:t,messages:n,input:r}=e,o="string"==typeof t?[{role:"system",content:e.system}]:[],a=Array.isArray(r)?r:null!=r?[r]:void 0,i=Array.isArray(n)?n:null!=n?[n]:[];return[...o,...null!=a?a:i]}(t)),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function uv(e,t,n){throw n4(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end()),e}function ub(e,t){var n;let r=!!(null==(n=tb())?void 0:n.getOptions().sendDefaultPii);return function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;
2return new Proxy(t,{get(t,o){let a=t[o],i=c4(n,String(o));return"function"==typeof a&&u_.includes(i)?new Proxy(a,{apply(e,n,o){var s,l;let c=function(e,t){let n={[cu]:"anthropic",[cR]:c3(t),[tx]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){var r;let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[cC]=JSON.stringify(t.tools)),n[cd]=null!=(r=t.model)?r:"unknown","temperature"in t&&(n[cf]=t.temperature),"top_p"in t&&(n[c_]=t.top_p),"stream"in t&&(n[cp]=t.stream),"top_k"in t&&(n[cy]=t.top_k),"frequency_penalty"in t&&(n[cm]=t.frequency_penalty),"max_tokens"in t&&(n[ch]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?n[cd]=e[0]:n[cd]="unknown";return n}(o,i),u=null!=(s=c[cd])?s:"unknown",d=c3(i),p="object"==typeof o[0]?o[0]:void 0,f=!!(null==p?void 0:p.stream),h="messages.stream"===i;if(f||h){let n,s;return n=null!=(l=c[cd])?l:"unknown",s={name:"".concat(d," ").concat(n),op:c5(i),attributes:c},f&&!h?nF(s,async e=>{try{var n;r.recordInputs&&p&&uy(e,p);let i=await a.apply(t,o);return ug(i,e,null!=(n=r.recordOutputs)&&n)}catch(t){return uv(t,e,i)}}):nF(s,n=>{try{var a,s,l;let i;return r.recordInputs&&p&&uy(n,p),s=e.apply(t,o),l=null!=(a=r.recordOutputs)&&a,i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},s.on("streamEvent",e=>{um(e,i,l,n)}),s.on("message",()=>{n.isRecording()&&(i.responseId&&n.setAttributes({[cS]:i.responseId}),i.responseModel&&n.setAttributes({[cb]:i.responseModel}),c6(n,i.promptTokens,i.completionTokens,i.cacheCreationInputTokens,i.cacheReadInputTokens),n.setAttributes({[cA]:!0}),i.finishReasons.length>0&&n.setAttributes({[cv]:JSON.stringify(i.finishReasons)}),l&&i.responseTexts.length>0&&n.setAttributes({[cP]:i.responseTexts.join("")}),l&&i.toolCalls.length>0&&n.setAttributes({[cO]:JSON.stringify(i.toolCalls)}),n.end())}),s.on("error",e=>{n4(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),n.isRecording()&&(n.setStatus({code:2,message:"stream_error"}),n.end())}),s}catch(e){return uv(e,n,i)}})}return nj({name:"".concat(d," ").concat(u),op:c5(i),attributes:c},n=>(r.recordInputs&&p&&uy(n,p),tU(()=>e.apply(t,o),e=>{n4(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:i}}})},()=>{},e=>(function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return void(t.error&&(e.setStatus({code:2,message:t.error.type||"internal_error"}),n4(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}})));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[cP]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[cO]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[cP]:t.completion}),"input_tokens"in t&&e.setAttributes({[cP]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[cS]:t.id,[cb]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[cB]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[cB]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&c6(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(n,e,r.recordOutputs))))}}):"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,i,r):a}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let uS=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],uw="chats.create";async function*uE(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let o of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=null==e?void 0:e.promptFeedback;if(null==n?void 0:n.blockReason){var r;let e=null!=(r=n.blockReasonMessage)?r:n.blockReason;return t.setStatus({code:2,message:"Content blocked: ".concat(e)}),n4("Content blocked: ".concat(e),{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){var o,a,i;let r;for(let s of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(r=e.usageMetadata)&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),null!=(o=e.candidates)?o:[]))for(let e of((null==s?void 0:s.finishReason)&&!t.finishReasons.includes(s.finishReason)&&t.finishReasons.push(s.finishReason),null!=(a=null==s||null==(i=s.content)?void 0:i.parts)?a:[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(o,r,n,t),yield o}finally{let e={[cA]:!0};r.responseId&&(e[cS]=r.responseId),r.responseModel&&(e[cb]=r.responseModel),void 0!==r.promptTokens&&(e[cw]=r.promptTokens),void 0!==r.completionTokens&&(e[cE]=r.completionTokens),void 0!==r.totalTokens&&(e[ck]=r.totalTokens),r.finishReasons.length&&(e[cv]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(e[cP]=r.responseTexts.join("")),n&&r.toolCalls.length&&(e[cO]=JSON.stringify(r.toolCalls)),t.setAttributes(e),t.end()}}function uk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"user";return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>uk(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 uR(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 ux(e,t){let n=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...uk(t.config.systemInstruction,"system")),"history"in t&&n.push(...uk(t.history,"user")),"contents"in t&&n.push(...uk(t.contents,"user")),"message"in t&&n.push(...uk(t.message,"user")),Array.isArray(n)&&n.length){let{systemInstructions:t,filteredMessages:r}=c7(n);t&&e.setAttribute(cI,t);let o=Array.isArray(r)?r.length:0;e.setAttributes({[cx]:o,[cT]:JSON.stringify(c2(r))})}}function uT(e,t,n,r){let o=t===uw;return new Proxy(e,{apply(e,a,i){var s;let l=i[0],c=function(e,t,n){let r={[cu]:"google_genai",[cR]:c3(e),[tx]:"auto.ai.google_genai"};if(t){if(r[cd]=uR(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e,n=t.config;if(Object.assign(r,(e={},"temperature"in n&&"number"==typeof n.temperature&&(e[cf]=n.temperature),"topP"in n&&"number"==typeof n.topP&&(e[c_]=n.topP),"topK"in n&&"number"==typeof n.topK&&(e[cy]=n.topK),"maxOutputTokens"in n&&"number"==typeof n.maxOutputTokens&&(e[ch]=n.maxOutputTokens),"frequencyPenalty"in n&&"number"==typeof n.frequencyPenalty&&(e[cm]=n.frequencyPenalty),"presencePenalty"in n&&"number"==typeof n.presencePenalty&&(e[cg]=n.presencePenalty
2),e)),"tools"in n&&Array.isArray(n.tools)){let e=n.tools.flatMap(e=>e.functionDeclarations);r[cC]=JSON.stringify(e)}}}else r[cd]=uR({},n);return r}(t,l,n),u=null!=(s=c[cd])?s:"unknown",d=c3(t);return t.includes("Stream")?nF({name:"".concat(d," ").concat(u),op:c5(t),attributes:c},async o=>{try{r.recordInputs&&l&&ux(o,l);let t=await e.apply(n,i);return uE(t,o,!!r.recordOutputs)}catch(e){throw o.setStatus({code:2,message:"internal_error"}),n4(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),o.end(),e}}):nj({name:o?"".concat(d," ").concat(u," create"):"".concat(d," ").concat(u),op:c5(t),attributes:c},a=>(r.recordInputs&&l&&ux(a,l),tU(()=>e.apply(n,i),e=>{n4(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{o||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(cb,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[cw]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[cE]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[ck]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>{var t;return(null==(t=e.content)?void 0:t.parts)&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):""}).filter(e=>e.length>0);n.length>0&&e.setAttributes({[cP]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[cO]:JSON.stringify(n)})}}}(a,e,r.recordOutputs)})))}})}function uI(e,t){var n;let r=!!(null==(n=tb())?void 0:n.getOptions().sendDefaultPii);return function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;return new Proxy(t,{get:(t,o,a)=>{let i=Reflect.get(t,o,a),s=c4(n,String(o));if("function"==typeof i&&function(e){if(uS.includes(e))return!0;let t=e.split(".").pop();return uS.includes(t)}(s)){if(s===uw){let n=uT(i,s,t,r);return function(){for(var t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];let i=n(...o);return i&&"object"==typeof i?e(i,"chat",r):i}}return uT(i,s,t,r)}return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,r):i}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let uP="auto.ai.langgraph";function uC(e,t){var n,r;return n=e.compile.bind(e),r=t||{},e.compile=new Proxy(n,{apply:(e,t,n)=>nj({op:"gen_ai.create_agent",name:"create_agent",attributes:{[tx]:uP,[tR]:"gen_ai.create_agent",[cR]:"create_agent"}},o=>{try{var a,i,s,l;let c=Reflect.apply(e,t,n),u=n.length>0?n[0]:{};(null==u?void 0:u.name)&&"string"==typeof u.name&&(o.setAttribute(cM,u.name),o.updateName("create_agent ".concat(u.name)));let d=c.invoke;return d&&"function"==typeof d&&(a=d.bind(c),i=c,s=u,l=r,c.invoke=new Proxy(a,{apply:(e,t,n)=>nj({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[tx]:uP,[tR]:"gen_ai.invoke_agent",[cR]:"invoke_agent"}},async r=>{try{var o,a;let c=null==s?void 0:s.name;c&&"string"==typeof c&&(r.setAttribute("gen_ai.pipeline.name",c),r.setAttribute(cM,c),r.updateName("invoke_agent ".concat(c)));let u=n.length>1?n[1]:void 0,d=null==u?void 0:u.configurable,p=null==d?void 0:d.thread_id;p&&"string"==typeof p&&r.setAttribute(cN,p);let f=function(e){var t,n,r,o,a,i,s,l;if(!(null==(o=e.builder)||null==(r=o.nodes)||null==(n=r.tools)||null==(t=n.runnable)?void 0:t.tools))return null;let c=null==(l=e.builder)||null==(s=l.nodes)||null==(i=s.tools)||null==(a=i.runnable)?void 0:a.tools;return c&&Array.isArray(c)&&0!==c.length?c.map(e=>{var t,n,r;return{name:null==(t=e.lc_kwargs)?void 0:t.name,description:null==(n=e.lc_kwargs)?void 0:n.description,schema:null==(r=e.lc_kwargs)?void 0:r.schema}}):null}(i);f&&r.setAttribute(cC,JSON.stringify(f));let h=l.recordInputs,m=l.recordOutputs,g=n.length>0&&null!=(o=null==(a=n[0])?void 0:a.messages)?o:[];if(g&&h){let e=ui(g),{systemInstructions:t,filteredMessages:n}=c7(e);t&&r.setAttribute(cI,t);let o=c2(n),a=Array.isArray(n)?n.length:0;r.setAttributes({[cT]:JSON.stringify(o),[cx]:a})}let _=await Reflect.apply(e,t,n);return m&&function(e,t,n){var r;let o=null==n?void 0:n.messages;if(!o||!Array.isArray(o))return;let a=null!=(r=null==t?void 0:t.length)?r:0,i=o.length>a?o.slice(a):[];if(0===i.length)return;let s=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(i);s&&e.setAttribute(cO,JSON.stringify(s));let l=ui(i);e.setAttribute(cP,JSON.stringify(l));let c=0,u=0,d=0;for(let t of i){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let o=e.usage_metadata;return"number"==typeof o.input_tokens&&(t=o.input_tokens),"number"==typeof o.output_tokens&&(n=o.output_tokens),"number"==typeof o.total_tokens&&(r=o.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let o=e.response_metadata;if(o.tokenUsage&&"object"==typeof o.tokenUsage){let e=o.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);c+=n.inputTokens,u+=n.outputTokens,d+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(cb,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(cv,[n.finish_reason])}}(e,t)}c>0&&e.setAttribute(cw,c),u>0&&e.setAttribute(cE,u),d>0&&e.setAttribute(ck,d)}(r,null!=g?g:null,_),_}catch(e){throw r.setStatus({code:2,message:"internal_error"}),n4(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),c}catch(e){throw o.setStatus({code:2,message:"internal_error"}),n4(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}),e}
2let uA=["responses.create","chat.completions.create","embeddings.create","conversations.create"],uO=["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"];function uM(e){return e.includes("chat.completions")||e.includes("responses")?cF:e.includes("embeddings")?cU:e.includes("conversations")?cF:e.split(".").pop()||"unknown"}function uN(e,t,n,r){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[cw]:t}),void 0!==n&&e.setAttributes({"openai.usage.completion_tokens":n,[cE]:n}),void 0!==r&&e.setAttributes({[ck]:r})}function uL(e,t,n,r){e.setAttributes({[cL]:t,[cS]:t}),e.setAttributes({[cD]:n,[cb]:n}),e.setAttributes({[cj]:new Date(1e3*r).toISOString()})}async function*uD(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let o of e)null!==o&&"object"==typeof o&&"object"in o&&"chat.completion.chunk"===o.object?!function(e,t,n){var r,o,a,i,s,l;for(let c of(t.responseId=null!=(r=e.id)?r:t.responseId,t.responseModel=null!=(o=e.model)?o:t.responseModel,t.responseTimestamp=null!=(a=e.created)?a:t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens),null!=(i=e.choices)?i:[]))n&&((null==(s=c.delta)?void 0:s.content)&&t.responseTexts.push(c.delta.content),(null==(l=c.delta)?void 0:l.tool_calls)&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&(null==r?void 0:r.function)&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(c.delta.tool_calls,t)),c.finish_reason&&t.finishReasons.push(c.finish_reason)}(o,r,n):null!==o&&"object"==typeof o&&"type"in o&&"string"==typeof o.type&&o.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");if(e instanceof Error){r.setStatus({code:2,message:"internal_error"}),n4(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!uO.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){var o,a,i;let{response:r}=e;t.responseId=null!=(o=r.id)?o:t.responseId,t.responseModel=null!=(a=r.model)?a:t.responseModel,t.responseTimestamp=null!=(i=r.created_at)?i:t.responseTimestamp,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(o,r,n,t),yield o}finally{uL(t,r.responseId,r.responseModel,r.responseTimestamp),uN(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[cA]:!0}),r.finishReasons.length&&t.setAttributes({[cv]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[cP]:r.responseTexts.join("")});let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];e.length>0&&t.setAttributes({[cO]:JSON.stringify(e)}),t.end()}}function uj(e,t,n){if(n===cU&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute("gen_ai.embeddings.input","string"==typeof n?n:JSON.stringify(n));return}let r="input"in t?t.input:"messages"in t?t.messages:void 0;if(!r||Array.isArray(r)&&0===r.length)return;let{systemInstructions:o,filteredMessages:a}=c7(r);o&&e.setAttribute(cI,o);let i=c8(a);e.setAttribute(cT,i),Array.isArray(a)?e.setAttribute(cx,a.length):e.setAttribute(cx,1)}async function uF(e,t){let n=e.catch(e=>{throw n4(e,{mechanism:{handled:!1,type:"auto.ai.openai"}}),e}),r=await t,o=await n;return o&&"object"==typeof o&&"data"in o?{...o,data:r}:r}function uU(e,t){return ex(e)?new Proxy(e,{get(e,n){let r=n in Promise.prototype||n===Symbol.toStringTag?t:e,o=Reflect.get(r,n);return"withResponse"===n&&"function"==typeof o?function(){return uF(o.call(e),t)}:"function"==typeof o?o.bind(r):o}}):t}function uB(e,t){var n;let r=!!(null==(n=tb())?void 0:n.getOptions().sendDefaultPii);return function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;return new Proxy(t,{get(t,o){var a;let i=t[o],s=(a=String(o),n?"".concat(n,".").concat(a):a);return"function"==typeof i&&uA.includes(s)?function(){let e;for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];let l=function(e,t){let n={[cu]:"openai",[cR]:uM(t),[tx]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){var r;let t,o,a=e[0],i=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){es&&eh.error("Failed to serialize OpenAI tools:",e);return}}(a);i&&(n[cC]=i),Object.assign(n,(t={[cd]:null!=(r=a.model)?r:"unknown"},"temperature"in a&&(t[cf]=a.temperature),"top_p"in a&&(t[c_]=a.top_p),"frequency_penalty"in a&&(t[cm]=a.frequency_penalty),"presence_penalty"in a&&(t[cg]=a.presence_penalty),"stream"in a&&(t[cp]=a.stream),"encoding_format"in a&&(t["gen_ai.request.encoding_format"]=a.encoding_format),"dimensions"in a&&(t["gen_ai.request.dimensions"]=a.dimensions),(o="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[cN]=o),t))}else n[cd]="unknown";return n}(o,s),c=l[cd]||"unknown",u=uM(s),d=o[0],p=d&&"object"==typeof d&&!0===d.stream,f={name:"".concat(u," ").concat(c),op:"gen_ai.".concat(uM(s)),attributes:l};if(p){let e,n=nF(f,n=>(e=i.apply(t,o),r.recordInputs&&d&&uj(n,d,u),(async()=>{try{var t;let o=await e;return uD(o,n,null!=(t=r.recordOutputs)&&t)}catch(e){throw n.setStatus({code:2,message:"internal_error"}),n4(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:s}}}),n.end(),e}})()));return uU(e,n)}let h=nj(f,n=>(e=i.apply(t,o),r.recordInputs&&d&&uj(n,d,u),e.then(e=>(!function(e,t,n){if(t&&"object"==typeof t)if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){var r;if(uL(e,t.id,t.model,t.created),t.usage&&uN(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let r=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(r.length>0&&e.setAttributes({[cv]:JSON.stringify(r)}),n){let n=t.choices.map(e=>{var t;return null==(t=e.message)?void 0:t.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&e.setAttributes({[cO]:JSON.stringify(n)})}}if(n&&(null==(r=t.choices)?void 0:r.length)){let n=t.choices.map(e=>{var t;return(null==(t=e.message)?void 0:t.content)||""});e.setAttributes({[cP]:JSON.stringify(n)})}}else if(null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object){if(uL(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[cv]:JSON.stringify([t.status])}),t.usage&&uN(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n&&Array.isArray(t.output)&&t.output.length>
20){let n=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);n.length>0&&e.setAttributes({[cO]:JSON.stringify(n)})}n&&t.output_text&&e.setAttributes({[cP]:t.output_text})}else null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")?(e.setAttributes({[cD]:t.model,[cb]:t.model}),t.usage&&uN(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)):null!==t&&"object"==typeof t&&"object"in t&&"conversation"===t.object&&function(e,t){let{id:n,created_at:r}=t;e.setAttributes({[cL]:n,[cS]:n,[cN]:n}),r&&e.setAttributes({[cj]:new Date(1e3*r).toISOString()})}(e,t)}(n,e,r.recordOutputs),e),e=>{throw n4(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:s}}}),e})));return uU(e,h)}:"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,r):i}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let uW=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],uH=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],uq={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"},uz=["select","insert","upsert","update","delete"];function uV(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function uG(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function uJ(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Proxy(e,{apply:(n,r,o)=>
2nj({name:"auth ".concat(t?"(admin) ":"").concat(e.name),attributes:{[tx]:"auto.db.supabase",[tR]:"db","db.system":"postgresql","db.operation":"auth.".concat(t?"admin.":"").concat(e.name)}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:2}),n4(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),n4(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}let uX=e=>{var t;if(!e){es&&eh.warn("Supabase integration was not installed because no Supabase client was provided.");return}uG((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){let r=Reflect.apply(e,t,n);return function(e){for(let t of uz)uG(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){let o=Reflect.apply(e,n,r),a=o.constructor;return es&&eh.log("Instrumenting ".concat(t," operation's PostgRESTFilterBuilder")),uG(a.prototype.then)||(a.prototype.then=new Proxy(a.prototype.then,{apply(e,t,n){var r;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"GET":return"select";case"POST":var n;if(null==(n=t.Prefer)?void 0:n.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!uz.includes(o)||!(null==t||null==(r=t.url)?void 0:r.pathname)||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,n);let a=t.url.pathname.split("/"),i=a.length>0?a[a.length-1]:"",s=[];for(let[e,n]of t.url.searchParams.entries())s.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return"select(".concat(t,")");if("or"===e||e.endsWith(".or"))return"".concat(e).concat(t);let[r,...o]=t.split(".");return n=(null==r?void 0:r.startsWith("fts"))?"textSearch":(null==r?void 0:r.startsWith("plfts"))?"textSearch[plain]":(null==r?void 0:r.startsWith("phfts"))?"textSearch[phrase]":(null==r?void 0:r.startsWith("wfts"))?"textSearch[websearch]":r&&uq[r]||"filter","".concat(n,"(").concat(e,", ").concat(o.join("."),")")}(e,n));let l=Object.create(null);if(ek(t.body))for(let[e,n]of Object.entries(t.body))l[e]=n;let c="".concat("select"===o?"":"".concat(o).concat(l?"(...) ":"")).concat(s.join(" ")," from(").concat(i,")"),u={"db.table":i,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":o,[tx]:"auto.db.supabase",[tR]:"db"};return s.length&&(u["db.query"]=s),Object.keys(l).length&&(u["db.body"]=l),nj({name:c,attributes:u},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&tq(r,e.status||500),r.end()),e.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};s.length&&(n.query=s),Object.keys(l).length&&(n.body=l),n4(t,e=>(e.addEventProcessor(e=>(e6(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let t={type:"supabase",category:"db.".concat(o),message:c},n={};return s.length&&(n.query=s),Object.keys(l).length&&(n.body=l),Object.keys(n).length&&(t.data=n),oj(t),e},e=>{throw r&&(tq(r,500),r.end()),e}).then(...n))}}),uV(a.prototype.then)),o}}),uV(e.prototype[t]))}(r.constructor),r}}),uV(t.prototype.from));let n=e.auth;if(!(!n||uG(e.auth))){for(let t of uW){let r=n[t];r&&"function"==typeof e.auth[t]&&(e.auth[t]=uJ(r))}for(let t of uH){let r=n.admin[t];r&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=uJ(r,!0))}uV(e.auth)}},uY=e=>{let t;return t=e.supabaseClient,{setupOnce(){uX(t)},name:"Supabase"}};function uK(e,t,n,r,o){rU({level:e,message:t,attributes:n,severityNumber:o},r)}function u$(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("trace",e,t,n)}function uQ(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("debug",e,t,n)}function uZ(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("info",e,t,n)}function u0(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("warn",e,t,n)}function u1(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("error",e,t,n)}function u2(e,t){let{scope:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};uK("fatal",e,t,n)}function u3(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o=new String(String.raw(e,...n));
2return o.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),o.__sentry_template_values__=n,o}e.s(["debug",0,uQ,"error",0,u1,"fatal",0,u2,"info",0,uZ,"trace",0,u$,"warn",0,u0],655115),e.i(655115),e.s(["debug",0,uQ,"error",0,u1,"fatal",0,u2,"fmt",0,u3,"info",0,uZ,"trace",0,u$,"warn",0,u0],160443);var u5=e.i(160443),u5=u5;function u4(e,t,n,r){!function(e,t){var n,r,o,a;let i=null!=(n=null==t?void 0:t.scope)?n:tm(),s=null!=(r=null==t?void 0:t.captureSerializedMetric)?r:rq,l=null!=(o=null==i?void 0:i.getClient())?o:tb();if(!l){es&&eh.warn("No client available to capture metric.");return}let{_experiments:c,enableMetrics:u,beforeSendMetric:d}=l.getOptions();if(!(null==(a=null!=u?u:null==c?void 0:c.enableMetrics)||a)){es&&eh.warn("metrics option not enabled, metric will not be captured.");return}let{user:p,attributes:f}=n2(tg(),i),h=function(e,t,n){var r,o;let{release:a,environment:i}=t.getOptions(),s={...e.attributes};rH(s,"user.id",n.id,!1),rH(s,"user.email",n.email,!1),rH(s,"user.name",n.username,!1),rH(s,"sentry.release",a),rH(s,"sentry.environment",i);let{name:l,version:c}=null!=(r=null==(o=t.getSdkMetadata())?void 0:o.sdk)?r:{};rH(s,"sentry.sdk.name",l),rH(s,"sentry.sdk.version",c);let u=t.getIntegrationByName("Replay"),d=null==u?void 0:u.getReplayId(!0);return rH(s,"sentry.replay_id",d),d&&(null==u?void 0:u.getRecordingMode())==="buffer"&&rH(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}(e,l,p);l.emit("processMetric",h);let m=d||(null==c?void 0:c.beforeSendMetric),g=m?m(h):h;if(!g){es&&eh.log("`beforeSendMetric` returned `null`, will not send metric.");return}let _=function(e,t,n,r){let[,o]=rL(t,n),a=n[ti],i=a?a.spanContext().traceId:null==o?void 0:o.trace_id,s=a?a.spanContext().spanId:void 0;return{timestamp:te(),trace_id:null!=i?i:"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...rN(r),...rN(e.attributes,"skip-undefined")}}}(g,l,i,f);es&&eh.log("[Metric]",_),s(l,_),l.emit("afterCaptureMetric",g)}({type:e,name:t,value:n,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes},{scope:null==r?void 0:r.scope})}e.s(["count",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;u4("counter",e,t,n)},"distribution",0,function(e,t,n){u4("distribution",e,t,n)},"gauge",0,function(e,t,n){u4("gauge",e,t,n)}],386277);var u6=e.i(386277),u6=u6;let u8=new Map,u7=new Set;function u9(e,t){var n,r;null==(r=t.exception)||null==(n=r.values)||n.forEach(t=>{var n,r;null==(r=t.stacktrace)||null==(n=r.frames)||n.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(er._sentryModuleMetadata)for(let t of Object.keys(er._sentryModuleMetadata)){let n=er._sentryModuleMetadata[t];if(!u7.has(t)){for(let r of(u7.add(t),e(t).reverse()))if(r.filename){u8.set(r.filename,n);break}}}return u8.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function de(e){var t,n;null==(n=e.exception)||null==(t=n.values)||t.forEach(e=>{var t,n;null==(n=e.stacktrace)||null==(t=n.frames)||t.forEach(e=>{delete e.module_metadata})})}let dt=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{nw(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(de(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||u9(e.getOptions().stackParser,t)})}}),dn=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{nw(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(de(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||u9(e.getOptions().stackParser,t)})},processEvent(t){let n=function(e,t){let n=eY(e);if(n)return n.filter((e,n)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(di))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++){var n;if(null==(n=e.pre_context[r])?void 0:n.includes(da))return!0}}return!1}(e,n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(dr)).map(e=>e.slice(dr.length)):[])}(t,e.ignoreSentryInternalFrames);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}}),dr="_sentryBundlerPluginAppKey:",da="Attempt to invoke user-land function",di="fn.apply(this, wrappedArguments)";function ds(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 dl=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null!=(e=t.limit)?e:10;return{name:"ZodErrors",processEvent:(e,r)=>(function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(!(null==(t=o.exception)?void 0:t.values)||!a.originalException||!(e_(n=a.originalException)&&"ZodError"===n.name&&Array.isArray(n.issues))||0===a.originalException.issues.length)return o;try{let t=(r?a.originalException.issues:a.originalException.issues.slice(0,e)).map(ds);return r&&(Array.isArray(a.attachments)||(a.attachments=[]),a.attachments.push({f
2ilename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return"Failed to validate ".concat(t)}return"Failed to validate keys: ".concat(e$(n.join(", "),100))}(a.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?"".concat(e.name,": ").concat(e.message,"\n").concat(e.stack):"unknown"}}}}})(n,t.saveZodIssuesAsAttachment,e,r)}},dc={startProfiler:function(){let e=tb();if(!e){oQ&&eh.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){oQ&&eh.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=tb();if(!e){oQ&&eh.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){oQ&&eh.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function du(e,t){let{metadata:n,tunnel:r,dsn:o}=t;return nS({event_id:e.event_id,sent_at:new Date().toISOString(),...(null==n?void 0:n.sdk)&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!o&&{dsn:tK(o)}},[[{type:"user_report"},e]])}function dd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=er.document,n=(null==t?void 0:t.head)||(null==t?void 0:t.body);if(!n){oQ&&eh.error("[showReportDialog] Global document not defined");return}let r=tm(),o=tb(),a=null==o?void 0:o.getDsn();if(!a){oQ&&eh.error("[showReportDialog] DSN not configured");return}let i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||ro()},s=er.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let n=t0(e);if(!n)return"";let r="".concat(rO(n),"embed/error-page/"),o="dsn=".concat(tK(n));for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(o+="&name=".concat(encodeURIComponent(e.name))),e.email&&(o+="&email=".concat(encodeURIComponent(e.email)))}else o+="&".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]));return"".concat(r,"?").concat(o)}(a,i);let{onLoad:l,onClose:c}=i;if(l&&(s.onload=l),c){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{c()}finally{er.removeEventListener("message",e)}};er.addEventListener("message",e)}n.appendChild(s)}let dp=new WeakMap,df=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.types||["crash","deprecation","intervention"];function n(e){if(dp.has(tb()))for(let t of e)ty(e=>{e.setExtra("url",t.url);let n="ReportingObserver [".concat(t.type,"]"),r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}n6("".concat(n,": ").concat(r))})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in er&&new er.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){dp.set(e,!0)}}};function dh(e,t){var n,r,o,a;let i,s=null==t?void 0:t.getDsn(),l=null==t?void 0:t.getOptions().tunnel;return n=e,r=s,!(!(i=oB(n))||oU(i))&&!!r&&i.host.includes(r.host)&&/(^|&|\?)sentry_key=/.test(i.search)||(o=e,!!(a=l)&&dm(o)===dm(a))}function dm(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let dg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,o,a;n=e,r=t,oP()&&oC(e=>{if(tb()!==n)return;let{response:t,args:o,error:a,virtualError:i}=e,[s,l]=o;t&&function(e,t,n,r,o){if(dv(e,n.status,n.url)){var a,i;let e,s,l,c,u=(a=t,!(i=r)&&a instanceof Request||a instanceof Request&&a.bodyUsed?a:new Request
2(a,i));dS()&&([e,l]=d_("Cookie",u),[s,c]=d_("Set-Cookie",n)),n8(db({url:u.url,method:u.method,status:n.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:c,error:o,type:"fetch"}))}}(r,s,t,l,a||i)},!1),o=e,a=t,"XMLHttpRequest"in er&&oX(e=>{if(tb()!==o)return;let{error:t,virtualError:n}=e,r=e.xhr,i=r[oJ];if(!i)return;let{method:s,request_headers:l}=i;try{!function(e,t,n,r,o){if(dv(e,t.status,t.responseURL)){let e,a,i;if(dS()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=dy(e))}catch{}try{let e;i=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}catch{}e=r}n8(db({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:a,error:o,type:"xhr"}))}}(a,r,s,l,t||n)}catch(e){oQ&&eh.warn("Error while extracting response event form XHR response",e)}})}}};function d_(e,t){var n;let r,o,a=(n=t.headers,r={},n.forEach((e,t)=>{r[t]=e}),r);try{let t=a[e]||a[e.toLowerCase()]||void 0;t&&(o=dy(t))}catch{}return[a,o]}function dy(e){return e.split("; ").reduce((e,t)=>{let[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function dv(e,t,n){var r,o;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(o=e.failedRequestTargets,o.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!dh(n,tb())}function db(e){let t=tb(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o="HTTP Client Error with status code: ".concat(e.status),a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return e6(a,{type:"auto.http.client.".concat(e.type),handled:!1}),a}function dS(){let e=tb();return!!e&&!!e.getOptions().sendDefaultPii}let dw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){var n;let r=er.document,o=er.location&&oH(er.location.href);if(!r||!o)return e;let a=null==(n=e.exception)?void 0:n.values;if(!(null==a?void 0:a.length))return e;let i=r.documentElement.innerHTML;if(!i)return e;let s=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return a.forEach(e=>{let n=e.stacktrace;(null==n?void 0:n.frames)&&(n.frames=n.frames.map(e=>{var n,r,a,i;return n=e,r=s,a=o,i=t,n.filename===a&&n.lineno&&r.length&&!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0===t.lineno)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>eQ(e,0)),t.context_line=eQ(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>eQ(e,0))}(r,n,i),n}))}),e})(e,t)}};function dE(e){if(dT(e))return"persisted ".concat(e.operationName);if(dx(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?"".concat(o," ").concat(r):"".concat(o)}return"unknown"}function dk(e){let t;if("xhr"in e){let n=e.xhr[oJ];t=n&&i9(n.body)[0]}else t=i9(se(e.input))[0];return t}function dR(e){return"object"==typeof e&&null!==e}function dx(e){return dR(e)&&"string"==typeof e.query}function dT(e){return dR(e)&&"string"==typeof e.operationName&&dR(e.extensions)&&dR(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function dI(e){try{let t=JSON.parse(e);if(dx(t)||dT(t))return t;return}catch{return}}let dP=e=>({name:"GraphQLClient",setup(t){var n,r,o,a;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let n=nn(e).data||{};if("http.client"!==n[tR])return;let o=n["url.full"]||n["http.url"],a=n["http.request.method"]||n["http.method"];
2if(!eS(o)||!eS(a))return;let{endpoints:i}=r,s=e1(o,i),l=dk(t);if(s&&l){let t=dI(l);if(t){let n=dE(t);e.updateName("".concat(a," ").concat(o," (").concat(n,")")),dx(t)&&e.setAttribute("graphql.document",t.query),dT(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),o=t,a=e,o.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:n,type:r,data:o}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=null==o?void 0:o.url,{endpoints:n}=a,r=e1(e,n),i=dk(t);if(r&&o&&i){let e=dI(i);if(!o.graphql&&e){let t=dE(e);o["graphql.operation"]=t,dx(e)&&(o["graphql.document"]=e.query),dT(e)&&(o["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),dC="sentryReplaySession",dA="Unable to send Replay";var dO=Object.defineProperty,dM=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?dO(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},dN=((U=dN||{})[U.Document=0]="Document",U[U.DocumentType=1]="DocumentType",U[U.Element=2]="Element",U[U.Text=3]="Text",U[U.CDATA=4]="CDATA",U[U.Comment=5]="Comment",U);function dL(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function dD(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function dj(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,dF).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function dF(e){let t;if("styleSheet"in e)try{t=dj(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,o=r[n],a=r.getPropertyPriority(o);t+="".concat(o,":").concat(r.getPropertyValue(o)).concat(a?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class dU{getId(e){var t;if(!e)return -1;let n=null==(t=this.getMeta(e))?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){dM(this,"idNodeMap",new Map),dM(this,"nodeMetaMap",new WeakMap)}}function dB(e){let{maskInputOptions:t,tagName:n,type:r}=e;return"OPTION"===n&&(n="SELECT"),!!(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function dW(e){let{isMasked:t,element:n,value:r,maskInputFn:o}=e,a=r||"";return t?(o&&(a=o(a,n)),"*".repeat(a.length)):a}function dH(e){return e.toLowerCase()}function dq(e){return e.toUpperCase()}let dz="__rrweb_original__";function dV(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?dH(t):null}function dG(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function dJ(e,t){var n;let r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}let o=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==o?void 0:o[1])?n:null}let dX={};function dY(e){let t=dX[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return dX[e]=r.bind(window)}function dK(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return dY("setTimeout")(...t)}function d$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return dY("clearTimeout")(...t)}function dQ(e){try{return e.contentDocument}catch(e){}}let dZ=1,d0=RegExp("[^a-z0-9-_:]");function d1(){return dZ++}let d2=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,d3=/^(?:[a-z+]+:)?\/\//i,d5=/^www\..*/i,d4=/^(data:)([^,]*),(.*)/i;function d6(e,t){return(e||"").replace(d2,(e,n,r,o,a,i)=>{let s=r||a||i,l=n||o||"";if(!s)return e;
2if(d3.test(s)||d5.test(s)||d4.test(s))return"url(".concat(l).concat(s).concat(l,")");if("/"===s[0])return"url(".concat(l).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s).concat(l,")");let c=t.split("/"),u=s.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return"url(".concat(l).concat(c.join("/")).concat(l,")")})}let d8=/^[^ \t\n\r\u000c]+/,d7=/^[, \t\n\r\u000c]+/,d9=new WeakMap;function pe(e,t){return t&&""!==t.trim()?pt(e,t):t}function pt(e,t){let n=d9.get(e);if(n||(n=e.createElement("a"),d9.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function pn(e,t,n,r,o,a,i){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return pe(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return pe(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}let o=[];for(;r(d7),!(n>=t.length);){let a=r(d8);if(","===a.slice(-1))a=pe(e,a.substring(0,a.length-1)),o.push(a);else{let r="";a=pe(e,a);let i=!1;for(;;){let e=t.charAt(n);if(""===e){o.push((a+r).trim());break}if(i)")"===e&&(i=!1);else if(","===e){n+=1,o.push((a+r).trim());break}else"("===e&&(i=!0);r+=e,n+=1}}}return o.join(", ")}(e,r);if("style"===n){let t=d6(r,pt(e));return i&&i.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let n=e.split(";"),r=[];for(let e of n){if(!(e=e.trim()))continue;let n=e.indexOf(":");if(-1===n){r.push(e);continue}let o=e.slice(0,n).trim();t.has(o)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,i)),t}else if("object"===t&&"data"===n)return pe(e,r);return"function"==typeof a?a(n,r,o):r}function pr(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function po(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:po(e.parentNode,t,n,r+1)}function pa(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(".".concat(e)))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function pi(e,t,n,r,o,a){try{let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){let e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(a){if((l=po(i,pa(r,o)))<0)return!0;s=po(i,pa(t,n),l>=0?l:1/0)}else{if((s=po(i,pa(t,n)))<0)return!1;l=po(i,pa(r,o),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!a}catch(e){}return!!a}function ps(e){return null==e?"":e.toLowerCase()}function pl(e,t){let n,{doc:r,mirror:o,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:w={}
2,inlineImages:E=!1,recordCanvas:k=!1,onSerialize:R,onIframeLoad:x,iframeLoadTimeout:T=5e3,onBlockedImageLoad:I,onStylesheetLoad:P,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:O=!1,ignoreCSSAttributes:M}=t,{preserveWhiteSpace:N=!0}=t,L=function(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:w,newlyAddedElement:E=!1,ignoreCSSAttributes:k}=t,R=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:dN.Document,childNodes:[],compatMode:e.compatMode};return{type:dN.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:dN.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:R};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:w,ignoreCSSAttributes:E}=t,k=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,o,a,i),R=function(e){if(e instanceof HTMLFormElement)return"form";let t=dH(e.tagName);return d0.test(t)?"div":t}(e),x={},T=e.attributes.length;for(let t=0;t<T;t++){let n=e.attributes[t];n.name&&!pr(R,n.name,n.value)&&(x[n.name]=pn(r,R,dH(n.name),n.value,e,c,E))}if("link"===R&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=dj(t)),n&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=d6(n,t.href))}if("style"===R&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=dj(e.sheet);t&&(x._cssText=d6(t,pt(r)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){let t=dV(e),n=dG(e,dq(R),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=pi(e,_,v,y,w,dB({type:t,tagName:dq(R),maskInputOptions:l}));x.value=dW({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(x.checked=r)}if("option"===R&&(e.selected&&!l.select?x.selected=!0:delete x.selected),"canvas"===R&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let o=t.getImageData;if(new Uint32Array((dz in o?o[dz]:o).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}}if("img"===R&&p){b||(S=(b=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{b.width=e.naturalWidth,b.height=e.naturalHeight,S.drawImage(e,0,0),x.rr_dataURL=b.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn("Cannot inline img src=".concat(t,"! Error: ").concat(n))}"anonymous"===e.crossOrigin&&(n?x.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===R||"video"===R)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),k){let{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:"".concat(t,"px"),rr_height:"".concat(n,"px")}}"iframe"!==R||h(x.src)||(k||dQ(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(R)&&(n=!0)}catch(e){}return{type:dN.Element,tagName:R,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:g,isCustom:n}}(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:w,newlyAddedElement:E,rootId:R,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:k});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{var g;e.nextSibling||e.previousSibling||(null==(g=e.parentNode.sheet)?void 0:g.cssRules)&&(p=dj(e.parentNode.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}p=d6(p,pt(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let _=pi(e,r,a,o,i,n);return f||h||m||!p||!_||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||_)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=dW({isMasked:pi(e,r,a,o,i,dB({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:dN.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:n,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:R});case e.CDATA_SECTION_NODE:return{type:dN.CDATA,textContent:"",rootId:R};case e.COMMENT_NODE:return{type:dN.Comment,textContent:e.textContent||"",rootId:R};default:return!1}}(e,{doc:r,mirror:o,blockClass:a,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,dataURLOptions:w,inlineImages:E,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:O,ignoreCSSAttributes:M});if(!L)return console.warn(e,"not serialized"),null;n=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===dN.Comment)return!0;
2if(e.type===dN.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===dJ(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ps(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ps(e.attributes.name)||"icon"===ps(e.attributes.rel)||"apple-touch-icon"===ps(e.attributes.rel)||"shortcut icon"===ps(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ps(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ps(e.attributes.property).match(/^(og|twitter|fb):/)||ps(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ps(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ps(e.attributes.name)||"googlebot"===ps(e.attributes.name)||"bingbot"===ps(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ps(e.attributes.name)||"generator"===ps(e.attributes.name)||"framework"===ps(e.attributes.name)||"publisher"===ps(e.attributes.name)||"progid"===ps(e.attributes.name)||ps(e.attributes.property).match(/^article:/)||ps(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ps(e.attributes.name)||"yandex-verification"===ps(e.attributes.name)||"csrf-token"===ps(e.attributes.name)||"p:domain_verify"===ps(e.attributes.name)||"verify-v1"===ps(e.attributes.name)||"verification"===ps(e.attributes.name)||"shopify-checkout-api-token"===ps(e.attributes.name)))return!0}}return!1}(L,v)&&(N||L.type!==dN.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?d1():-2;let D=Object.assign(L,{id:n});if(o.add(e,D),-2===n)return null;R&&R(e);let j=!f;if(D.type===dN.Element){j=j&&!D.needBlock;let t=e.shadowRoot;t&&dD(t)&&(D.isShadowHost=!0)}if((D.type===dN.Document||D.type===dN.Element)&&j){v.headWhitespace&&D.type===dN.Element&&"head"===D.tagName&&(N=!1);let t={doc:r,mirror:o,blockClass:a,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:R,onIframeLoad:x,iframeLoadTimeout:T,onBlockedImageLoad:I,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:A,ignoreCSSAttributes:M};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=pl(n,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=pl(n,t);r&&(dD(e.shadowRoot)&&(r.isShadow=!0),D.childNodes.push(r))}}if(e.parentNode&&dL(e.parentNode)&&dD(e.parentNode)&&(D.isShadow=!0),D.type!==dN.Element||"iframe"!==D.tagName||D.needBlock||function(e,t,n){let r,o=e.contentWindow;if(!o)return;let a=!1;try{r=o.document.readyState}catch(e){return}if("complete"!==r){let r=dK(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{d$(r),a=!0,t()});return}let i="about:blank";if(o.location.href!==i||e.src===i||""===e.src)return dK(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=dQ(e);if(t&&x){let n=pl(t,{doc:t,mirror:o,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:R,onIframeLoad:x,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:A,ignoreCSSAttributes:M});n&&x(e,n)}},T),D.type===dN.Element&&"img"===D.tagName&&!e.complete&&D.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&I)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&I(e,D,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return D.type===dN.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===dJ(D.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;let a=dK(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{d$(a),o=!0,t()})}(e,()=>{if(P){let t=pl(e,{doc:r,mirror:o,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:R,onIframeLoad:x,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:A,ignoreCSSAttributes:M});t&&P(e,t)}},C),D.type===dN.Element&&delete D.needBlock,D}function pc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let pu="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.",pd={map:{},getId:()=>(console.error(pu),-1),getNode:()=>(console.error(pu),null),removeNodeFromMap(){console.error(pu)},has:()=>(console.error(pu),!1),reset(){console.error(pu)}};function pp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];let l=Date.now();o||!1!==n.leading||(o=l);let c=t-(l-o),u=this;c<=0||c>t?(r&&(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];pP("clearTimeout")(...t)}(r),r=null),o=l,e.apply(u,i)):r||!1===n.trailing||(r=pC(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(u,i)},c))}}function pf(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(pd=new Proxy(pd,{get:(e,t,n)=>("map"===t&&console.error(pu),Reflect.get(e,t,n))}));let ph=Date.now;function pm(e){var t,n,r,o,a,i;let s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null==s||null==(n=s.body)||null==(t=n.parentElement)?void 0:t.scrollLeft)||(null==s||null==(r=s.body)?void 0:r.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s||null==(a=s.body)||null==(o=a.parentElement)?void 0:o.scrollTop)||(null==s||null==(i=s.body)?void 0:i.scrollTop)||0}}function pg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function p_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function py(e){if(!e)return null;
2try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function pv(e,t,n,r,o){if(!e)return!1;let a=py(e);if(!a)return!1;let i=pa(t,n);if(!o){let e=r&&a.matches(r);return i(a)&&!e}let s=po(a,i),l=-1;return!(s<0)&&(r&&(l=po(a,pa(null,r))),s>-1&&l<0||s<l)}function pb(e,t){return -2===t.getId(e)}function pS(e){return!!e.changedTouches}function pw(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function pE(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function pk(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(ph=()=>new Date().getTime());class pR{getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function px(e){var t,n;let r=null;return(null==(n=e.getRootNode)||null==(t=n.call(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function pT(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=px(n);)n=t;return n}(e);return t.contains(n)}(e))}let pI={};function pP(e){let t=pI[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return pI[e]=r.bind(window)}function pC(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return pP("setTimeout")(...t)}var pA=((B=pA||{})[B.DomContentLoaded=0]="DomContentLoaded",B[B.Load=1]="Load",B[B.FullSnapshot=2]="FullSnapshot",B[B.IncrementalSnapshot=3]="IncrementalSnapshot",B[B.Meta=4]="Meta",B[B.Custom=5]="Custom",B[B.Plugin=6]="Plugin",B),pO=((W=pO||{})[W.Mutation=0]="Mutation",W[W.MouseMove=1]="MouseMove",W[W.MouseInteraction=2]="MouseInteraction",W[W.Scroll=3]="Scroll",W[W.ViewportResize=4]="ViewportResize",W[W.Input=5]="Input",W[W.TouchMove=6]="TouchMove",W[W.MediaInteraction=7]="MediaInteraction",W[W.StyleSheetRule=8]="StyleSheetRule",W[W.CanvasMutation=9]="CanvasMutation",W[W.Font=10]="Font",W[W.Log=11]="Log",W[W.Drag=12]="Drag",W[W.StyleDeclaration=13]="StyleDeclaration",W[W.Selection=14]="Selection",W[W.AdoptedStyleSheet=15]="AdoptedStyleSheet",W[W.CustomElement=16]="CustomElement",W),pM=((H=pM||{})[H.MouseUp=0]="MouseUp",H[H.MouseDown=1]="MouseDown",H[H.Click=2]="Click",H[H.ContextMenu=3]="ContextMenu",H[H.DblClick=4]="DblClick",H[H.Focus=5]="Focus",H[H.Blur=6]="Blur",H[H.TouchStart=7]="TouchStart",H[H.TouchMove_Departed=8]="TouchMove_Departed",H[H.TouchEnd=9]="TouchEnd",H[H.TouchCancel=10]="TouchCancel",H),pN=((q=pN||{})[q.Mouse=0]="Mouse",q[q.Pen=1]="Pen",q[q.Touch=2]="Touch",q),pL=((z=pL||{})[z.Play=0]="Play",z[z.Pause=1]="Pause",z[z.Seeked=2]="Seeked",z[z.VolumeChange=3]="VolumeChange",z[z.RateChange=4]="RateChange",z);function pD(e){try{return e.contentDocument}catch(e){}}class pj{get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
2this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}let pF=(e,t)=>"".concat(e,"@").concat(t);class pU{init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new pj,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!pT(o))return;let a=dL(o.parentNode)?this.mirror.getId(px(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===a||-1===i)return n.addNode(o);let s=pl(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{pw(e,this.mirror)&&!pv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),pE(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),pk(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{pv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(r,"px"),height:"".concat(o,"px")}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!pW(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&o(e);for(let e of this.addedSet)pH(this.droppedSet,e)||pW(this.removes,e,this.mirror)?pH(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);-1!==t&&-1!==n&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),o(e.value)}let i={texts:this.texts.map(e=>
2({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!pb(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;pv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:pi(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,py(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=dV(t),o=t.tagName;r=dG(t,o,n);let a=dB({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=dW({isMasked:pi(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(pv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(pD(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!pr(t.tagName,n)&&(o.attributes[n]=pn(this.doc,dH(t.tagName),dH(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),a=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||a!==n.style.getPropertyPriority(r)?""===a?o.styleDiff[r]=e:o.styleDiff[r]=[e,a]:o._unchangedStyles[r]=[e,a]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(pv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=dL(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);pv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||pb(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(pB(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(dL(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[pF(n,r)]?pB(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(dL(e.target)&&dD(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(pb(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[pF(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!pv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>
2this.genAdds(e)),pk(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}}function pB(e,t){var n;e.delete(t),null==(n=t.childNodes)||n.forEach(t=>pB(e,t))}function pW(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function pH(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let pq=e=>w?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return e(...n)}catch(e){if(w&&!0===w(e))return()=>{};throw e}}:e,pz=[];function pV(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function pG(e,t){var n,r,o;let a=new pU;pz.push(a),a.init(e);let i=window.MutationObserver||window.__rrMutationObserver,s=null==(o=window)||null==(r=o.Zone)||null==(n=r.__symbol__)?void 0:n.call(r,"MutationObserver");s&&window[s]&&(i=window[s]);let l=new i(pq(t=>{e.onMutation&&!1===e.onMutation(t)||a.processMutations.bind(a)(t)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function pJ(e){let{scrollCb:t,doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,sampling:s}=e;return pc("scroll",pq(pp(pq(e=>{let s=pV(e);if(!s||pv(s,o,a,i,!0))return;let l=r.getId(s);if(s===n&&n.defaultView){let e=pm(n.defaultView);t({id:l,x:e.left,y:e.top})}else t({id:l,x:s.scrollLeft,y:s.scrollTop})}),s.scroll||100)),n)}let pX=["INPUT","TEXTAREA","SELECT"],pY=new WeakMap;function pK(e){var t=[];if(p0("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||p0("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||p0("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||p0("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function p$(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function pQ(e,t){var n,r,o;let{mirror:a,stylesheetManager:i}=e,s=null;s="#document"===t.nodeName?a.getId(t):a.getId(t.host);let l="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(o=t.ownerDocument)||null==(r=o.defaultView)?void 0:r.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&l&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null==(e=c.get)?void 0:e.call(this)},set(e){var t;let n=null==(t=c.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{i.adoptStyleSheets(e,s)}catch(e){}return n}}),pq(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function pZ(e){let t;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(t=pG(e,e.doc));let r=function(e){let t,{mousemoveCb:n,sampling:r,doc:o,mirror:a}=e;if(!1===r.mousemove)return()=>{};let i="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],c=pp(pq(e=>{let r=Date.now()-t;n(l.map(e=>(e.timeOffset-=r,e)),e),l=[],t=null}),s),u=pq(pp(pq(e=>{let n=pV(e),{clientX:r,clientY:o}=pS(e)?e.changedTouches[0]:e;t||(t=ph()),l.push({x:r,y:o,id:a.getId(n),timeOffset:ph()-t}),c("u">typeof DragEvent&&e instanceof DragEvent?pO.Drag:e instanceof MouseEvent?pO.MouseMove:pO.TouchMove)}),i,{trailing:!1})),d=[pc("mousemove",u,o),pc("touchmove",u,o),pc("drag",u,o)];return pq(()=>{d.forEach(e=>e())})}(e),o=function(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,sampling:s}=e;if(!1===s.mouseInteraction)return()=>{};let l=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(pM).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e]).forEac
2h(e=>{let s=dH(e),l=n=>{let s=pV(n);if(pv(s,o,a,i,!0))return;let l=null,c=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=pN.Mouse;break;case"touch":l=pN.Touch;break;case"pen":l=pN.Pen}l===pN.Touch?pM[e]===pM.MouseDown?c="TouchStart":pM[e]===pM.MouseUp&&(c="TouchEnd"):pN.Pen}else pS(n)&&(l=pN.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===pN.Touch||c.startsWith("Mouse")&&l===pN.Mouse)&&(l=null)):pM[e]===pM.Click&&(l=u,u=null);let d=pS(n)?n.changedTouches[0]:n;if(!d)return;let p=r.getId(s),{clientX:f,clientY:h}=d;pq(t)({type:pM[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(pM[e]){case pM.MouseDown:case pM.MouseUp:s=s.replace("mouse","pointer");break;case pM.TouchStart:case pM.TouchEnd:return}c.push(pc(s,l,n))}),pq(()=>{c.forEach(e=>e())})}(e),a=pJ(e),i=function(e,t){let{viewportResizeCb:n}=e,{win:r}=t,o=-1,a=-1;return pc("resize",pq(pp(pq(()=>{let e=pg(),t=p_();(o!==e||a!==t)&&(n({width:Number(t),height:Number(e)}),o=e,a=t)}),200)),r)}(e,{win:n}),s=function(e){let{inputCb:t,doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:p,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g}=e;function _(e){let t=pV(e),r=e.isTrusted,d=t&&dq(t.tagName);if("OPTION"===d&&(t=t.parentElement),!t||!d||0>pX.indexOf(d)||pv(t,o,a,i,!0))return;let _=t;if(_.classList.contains(s)||l&&_.matches(l))return;let v=dV(t),b=dG(_,d,v),S=!1,w=dB({maskInputOptions:c,tagName:d,type:v}),E=pi(t,f,m,h,g,w);("radio"===v||"checkbox"===v)&&(S=t.checked),b=dW({isMasked:E,element:t,value:b,maskInputFn:u}),y(t,p?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});let k=t.name;"radio"===v&&k&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(k,'"]')).forEach(e=>{if(e!==t){let t=dW({isMasked:E,element:e,value:dG(e,d,v),maskInputFn:u});y(e,p?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(e,n){let o=pY.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){pY.set(e,n);let o=r.getId(e);pq(t)({...n,id:o})}}let v=("last"===d.input?["change"]:["input","change"]).map(e=>pc(e,pq(_),n)),b=n.defaultView;if(!b)return()=>{v.forEach(e=>e())};let S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&v.push(...w.map(e=>(function e(t,n,r,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=a.Object.getOwnPropertyDescriptor(t,n);return a.Object.defineProperty(t,n,o?r:{set(e){pC(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,n,i||{},!0)})(e[0],e[1],{set(){pq(_)({target:this,isTrusted:!1})}},!1,b))),pq(()=>{v.forEach(e=>e())})}(e),l=function(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:o,mirror:a,sampling:i,doc:s}=e,l=pq(e=>pp(pq(i=>{let s=pV(i);if(!s||pv(s,n,r,o,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;t({type:e,id:a.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),i.media||500)),c=[pc("play",l(pL.Play),s),pc("pause",l(pL.Pause),s),pc("seeked",l(pL.Seeked),s),pc("volumechange",l(pL.VolumeChange),s),pc("ratechange",l(pL.RateChange),s)];return pq(()=>{c.forEach(e=>e())})}(e),c=()=>{},u=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(c=function(e,t){let n,r,{styleSheetRuleCb:o,mirror:a,stylesheetManager:i}=e,{win:s}=t;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let l=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(l,{apply:pq((e,t,n)=>{let[r,s]=n,{id:l,styleId:c}=p$(t,a,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&o({id:l,styleId:c,adds:[{rule:r,index:s}]}),e.apply(t,n)})});let c=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:pq((e,t,n)=>{let[r]=n,{id:s,styleId:l}=p$(t,a,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&o({id:s,styleId:l,removes:[{index:r}]}),e.apply(t,n)})}),s.CSSStyleSheet.prototype.replace&&(n=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:pq((e,t,n
2)=>{let[r]=n,{id:s,styleId:l}=p$(t,a,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&o({id:s,styleId:l,replace:r}),e.apply(t,n)})})),s.CSSStyleSheet.prototype.replaceSync&&(r=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:pq((e,t,n)=>{let[r]=n,{id:s,styleId:l}=p$(t,a,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&o({id:s,styleId:l,replaceSync:r}),e.apply(t,n)})}));let u={};p1("CSSGroupingRule")?u.CSSGroupingRule=s.CSSGroupingRule:(p1("CSSMediaRule")&&(u.CSSMediaRule=s.CSSMediaRule),p1("CSSConditionRule")&&(u.CSSConditionRule=s.CSSConditionRule),p1("CSSSupportsRule")&&(u.CSSSupportsRule=s.CSSSupportsRule));let d={};return Object.entries(u).forEach(e=>{let[t,n]=e;d[t]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(d[t].insertRule,{apply:pq((e,t,n)=>{let[r,s]=n,{id:l,styleId:c}=p$(t.parentStyleSheet,a,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&o({id:l,styleId:c,adds:[{rule:r,index:[...pK(t),s||0]}]}),e.apply(t,n)})}),n.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:pq((e,t,n)=>{let[r]=n,{id:s,styleId:l}=p$(t.parentStyleSheet,a,i.styleMirror);return(s&&-1!==s||l&&-1!==l)&&o({id:s,styleId:l,removes:[{index:[...pK(t),r]}]}),e.apply(t,n)})})}),pq(()=>{s.CSSStyleSheet.prototype.insertRule=l,s.CSSStyleSheet.prototype.deleteRule=c,n&&(s.CSSStyleSheet.prototype.replace=n),r&&(s.CSSStyleSheet.prototype.replaceSync=r),Object.entries(u).forEach(e=>{let[t,n]=e;n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}(e,{win:n}),u=pQ(e,e.doc),d=function(e,t){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:o,stylesheetManager:a}=e,{win:i}=t,s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:pq((e,t,i)=>{var l;let[c,u,d]=i;if(o.has(c))return s.apply(t,[c,u,d]);let{id:p,styleId:f}=p$(null==(l=t.parentRule)?void 0:l.parentStyleSheet,r,a.styleMirror);return(p&&-1!==p||f&&-1!==f)&&n({id:p,styleId:f,set:{property:c,value:u,priority:d},index:pK(t.parentRule)}),e.apply(t,i)})});let l=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:pq((e,t,i)=>{var s;let[c]=i;if(o.has(c))return l.apply(t,[c]);let{id:u,styleId:d}=p$(null==(s=t.parentRule)?void 0:s.parentStyleSheet,r,a.styleMirror);return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,remove:{property:c},index:pK(t.parentRule)}),e.apply(t,i)})}),pq(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:n}),e.collectFonts&&(p=function(e){let{fontCb:t,doc:n}=e,r=n.defaultView;if(!r)return()=>{};let o=[],a=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,n){let r=new i(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let s=pf(n.fonts,"add",function(e){return function(n){return pC(pq(()=>{let e=a.get(n);e&&(t(e),a.delete(n))}),0),e.apply(this,[n])}});return o.push(()=>{r.FontFace=i}),o.push(s),pq(()=>{o.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:i}=e,s=!0,l=pq(()=>{let e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:i,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);pv(i,r,o,a,!0)||pv(c,r,o,a,!0)||l.push({start:n.getId(i),startOffset:s,end:n.getId(c),endOffset:u})}i({ranges:l})});return l(),pc("selectionchange",l)}(e),h=function(e){let{doc:t,customElementCb:n}=e,r=t.defaultView;return r&&r.customElements?pf(r.customElements,"define",function(e){return function(t,r,o){try{n({define:{name:t}})}catch(e){}return e.apply(this,[t,r,o])}}):()=>{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,n,t.options));return pq(()=>{pz.forEach(e=>e.reset()),null==t||t.disconnect(),r(),o(),a(),i(),s(),l(),c(),u(),d(),p(),f(),h(),m.forEach(e=>e())})}function p0(e){return void 0!==window[e]}function p1(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class p2{getId(e,t,n,r){let o=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),i=o.get(t);
2return i||(i=this.generateIdFn(),o.set(t,i),a.set(i,t)),i}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let o=r.get(t);return o||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}class p3{addIframe(){}addLoadListener(){}attachIframe(){}constructor(){this.crossOriginIframeMirror=new p2(d1),this.crossOriginIframeRootIdMap=new WeakMap}}class p5{addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e);let o=pD(e);o&&o.adoptedStyleSheets&&o.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(o.adoptedStyleSheets,this.mirror.getId(o))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case pA.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:pA.IncrementalSnapshot,data:{source:pO.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case pA.Meta:case pA.Load:case pA.DomContentLoaded:break;case pA.Plugin:return t;case pA.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case pA.IncrementalSnapshot:switch(t.data.source){case pO.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case pO.Drag:case pO.TouchMove:case pO.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case pO.ViewportResize:return!1;case pO.MediaInteraction:case pO.MouseInteraction:case pO.Scroll:case pO.CanvasMutation:case pO.Input:return this.replaceIds(t.data,e,["id"]),t;case pO.StyleSheetRule:case pO.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case pO.Font:return t;case pO.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case pO.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
2h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===dN.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new p2(d1),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new p2(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class p4{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class p6{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!dD(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=pG({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(pJ({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),pC(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(pQ({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=pD(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(pf(e.prototype,"attachShadow",function(e){return function(r){let o=e.call(this,r);return this.shadowRoot&&pT(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}}for(var p8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p7="u"<typeof Uint8Array?[]:new Uint8Array(256),p9=0;p9<p8.length;p9++)p7[p8.charCodeAt(p9)]=p9;class fe{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ft{attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:dF(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new pR,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}}class fn{inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];pP("requestAnimationFrame")(...t)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}constructor(){this.nodeMap=new WeakMap,this.active=!1}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Y=e.contentWindow)?void 0:Y.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let fr=new dU;function fo(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{emit:n,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:a="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:R=null,packFn:x,sampling:T={},dataURLOptions:I={},mousemoveWait:P,recordDOM:C=!0,recordCanvas:A=!1,recordCrossOriginIframes:O=!1,recordAfter:M="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:L=!1,inlineImages:D=!1,plugins:j,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:B,onMutation:W,getCanvasManager:H}=t;w=B;let q=!O||window.parent===window,z=!1;if(!q)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(q&&!n)throw Error("emit function is required");if(!q&&!z)return()=>{};void 0!==P&&void 0===T.mousemove&&(T.mousemove=P),fr.reset();let V=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==_?_:{},G=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),!Node.prototype.contains){var t=this;Node.prototype.contains=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let o=n[0];if(!(0 in n))throw TypeError("1 argument is required");do if(t===o)return!0;while(o=o&&o.parentNode)return!1}}}();let J=0,X=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!z&&(e=x(e)),e};E=(t,a)=>{var i;if(t.timestamp=ph(),(null==(i=pz[0])?void 0:i.isFrozen())&&t.type!==pA.FullSnapshot&&(t.type!==pA.IncrementalSnapshot||t.data.source!==pO.Mutation)&&pz.forEach(e
2=>e.unfreeze()),q)null==n||n(X(t),a);else if(z){let e={type:"rrweb",event:X(t),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(t.type===pA.FullSnapshot)e=t,J=0;else if(t.type===pA.IncrementalSnapshot){if(t.data.source===pO.Mutation&&t.data.isAttachIframe)return;J++;let n=o&&J>=o,a=r&&e&&t.timestamp-e.timestamp>r;(n||a)&&er(!0)}};let Y=e=>{E({type:pA.IncrementalSnapshot,data:{source:pO.Mutation,...e}})},K=e=>E({type:pA.IncrementalSnapshot,data:{source:pO.Scroll,...e}}),$=e=>E({type:pA.IncrementalSnapshot,data:{source:pO.CanvasMutation,...e}}),Q=new ft({mutationCb:Y,adoptedStyleSheetCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new p3:new p5({mirror:fr,mutationCb:Y,stylesheetManager:Q,recordCrossOriginIframes:O,wrappedEmit:E});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:fr,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new fn,et=function(e,t){try{return e?e(t):new fe}catch{return console.warn("Unable to initialize CanvasManager"),new fe}}(H,{mirror:fr,win:window,mutationCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.CanvasMutation,...e}}),recordCanvas:A,blockClass:a,blockSelector:i,unblockSelector:s,maxCanvasSize:R,sampling:T.canvas,dataURLOptions:I,errorHandler:B}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new p4:new p6({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:W,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:V,dataURLOptions:I,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:A,inlineImages:D,sampling:T,slimDOMOptions:G,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:F,processedNodeManager:ee,ignoreCSSAttributes:U},mirror:fr}),er=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!C)return;E({type:pA.Meta,data:{href:window.location.href,width:p_(),height:pg()}},e),Q.reset(),en.init(),pz.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new dU,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:R,stylesheetLoadTimeout:x,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:I=new Set([])}=t||{};return pl(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:R,stylesheetLoadTimeout:x,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:I})}(document,{mirror:fr,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:V,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:G,dataURLOptions:I,recordCanvas:A,inlineImages:D,onSerialize:e=>{pw(e,fr)&&Z.addIframe(e),pE(e,fr)&&Q.trackLinkElement(e),pk(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;Y({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(r,"px"),height:"".concat(o,"px")}}}]})},keepIframeSrcFn:F,ignoreCSSAttributes:U});if(!t)return console.warn("Failed to snapshot the document");E({type:pA.FullSnapshot,data:{node:t,initialOffset:pm(window)}}
2),pz.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,fr.getId(document))};k=er;try{let e=[],t=e=>{var t;return pq(pZ)({onMutation:W,mutationCb:Y,mousemoveCb:(e,t)=>E({type:pA.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.ViewportResize,...e}}),inputCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.Input,...e}}),mediaInteractionCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.MediaInteraction,...e}}),styleSheetRuleCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.StyleSheetRule,...e}}),styleDeclarationCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.StyleDeclaration,...e}}),canvasMutationCb:$,fontCb:e=>E({type:pA.IncrementalSnapshot,data:{source:pO.Font,...e}}),selectionCb:e=>{E({type:pA.IncrementalSnapshot,data:{source:pO.Selection,...e}})},customElementCb:e=>{E({type:pA.IncrementalSnapshot,data:{source:pO.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:V,inlineStylesheet:m,sampling:T,recordDOM:C,recordCanvas:A,inlineImages:D,userTriggeredOnInput:N,collectFonts:L,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:F,blockSelector:i,unblockSelector:s,slimDOMOptions:G,dataURLOptions:I,mirror:fr,iframeManager:Z,stylesheetManager:Q,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:U,plugins:(null==j||null==(t=j.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>E({type:pA.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{})};Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(pc("DOMContentLoaded",()=>{E({type:pA.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(pc("load",()=>{E({type:pA.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),k=void 0,w=void 0}}catch(e){console.warn(e)}}function fa(e){return e>0x2540be3ff?e:1e3*e}function fi(e){return e>0x2540be3ff?e/1e3:e}function fs(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:pA.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:nb(t,10,1e3)}}),"console"===t.category)))}function fl(e){return e.closest("button,a")||e}function fc(e){let t=fu(e);return t&&t instanceof Element?fl(t):t}function fu(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}fo.mirror=fr,fo.takeFullSnapshot=function(e){if(!k)throw Error("please take full snapshot after start recording");k(e)},(V=K||(K={}))[V.NotStarted=0]="NotStarted",V[V.Running=1]="Running",V[V.Stopped=2]="Stopped";let fd=new Set([pO.Mutation,pO.StyleSheetRule,pO.StyleDeclaration,pO.AdoptedStyleSheet,pO.CanvasMutation,pO.Selection,pO.MediaInteraction]);class fp{addListeners(){var e;let t=(e=()=>{this._lastMutation=fh()},R||(R=[],eM(er,"open",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(R)try{R.forEach(e=>e())}catch{}return e.apply(er,n)}})),R.push(e),()=>{let t=R?R.indexOf(e):-1;t>-1&&R.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,o;if(n=t,r=this._ignoreSelector,!ff.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((o=e).data&&"number"==typeof o.data.nodeId&&o.timestamp))return;let a={timestamp:fi(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>
2Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=fi(e)}registerScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=fi(e)}registerClick(e){let t=fl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=fh();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:o,clickBreadcrumb:a}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:er.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i);return}if(o>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:er.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=aN(()=>this._checkClicks(),1e3)}constructor(e,t,n=fs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}}let ff=["A","BUTTON","INPUT"];function fh(){return Date.now()/1e3}function fm(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fg=((G=fg||{})[G.Document=0]="Document",G[G.DocumentType=1]="DocumentType",G[G.Element=2]="Element",G[G.Text=3]="Text",G[G.CDATA=4]="CDATA",G[G.Comment=5]="Comment",G);let f_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function fy(e,t){let n=fo.mirror.getId(e),r=n&&fo.mirror.getNode(n),o=r&&fo.mirror.getMeta(r),a=o&&o.type===fg.Element?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===fg.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(f_.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(a.attributes)}}:{}}}let fv={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(t,".").concat(n),start:fw(a),end:fw(o),name:r,data:{size:c,statusCode:l,decodedBodySize:i,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:o}=e,a=fw(o);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===o?null:{type:"".concat(t,".").concat(m),start:fw(f),end:fw(a),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:p}}}};function fb(e,t){return n=>{let{metric:r}=n;t.replayPerformanceEntries.push(e(r))}}function fS(e){let t=fv[e.entryType];return t?t(e):null}function fw(e){return((tn()||er.performance.timeOrigin)+e)/1e3}function fE(e){let t=e.entries[e.entries.length-1];return fx(e,"largest-contentful-paint",(null==t?void 0:t.element)?[t.element]:void 0)}function fk(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=fo.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return fx(e,"cumulative-layout-shift",n,t)}function fR(e){let t=e.entries[e.entries.length-1];return fx(e,"interaction-to-next-paint",(null==t?void 0:t.target)?[t.target]:void 0)}function fx(e,t,n,r){let o=e.value,a=e.rating,i=fw(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:a,nodeIds:n?n.map(e=>fo.mirror.getId(e)):void 0,attributions:r}}}let fT="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,fI=["log","warn","error"],fP="[Replay] ";function fC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";oj({category:"console",data:{logger:"replay"},level:t,message:"".concat(fP).concat(e)},{level:t})}let fA=(D=!1,j=!1,F={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{D=!!e.captureExceptions,j=!!e.traceInternals}}
2,fT?(fI.forEach(e=>{F[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];eh[e](fP,...n),j&&fC(n.join(""),oD(e))}}),F.exception=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.length&&F.error&&F.error(...n),eh.error(fP,e),D?n4(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):j&&fC(e,"error")},F.infoTick=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];eh.log(fP,...t),j&&setTimeout(()=>fC(t[0]),0)}):fI.forEach(e=>{F[e]=()=>void 0}),F);class fO extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(2e7,"."))}}class fM{get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new fO;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?fa(e):null}constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}}class fN{ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",n=>{let{data:r}=n;r.success?e():(fT&&fA.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{fT&&fA.warn("Failed to load Replay compression worker",e),t(Error("Failed to load Replay compression worker: ".concat(e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.")))},{once:!0})})),this._ensureReadyPromise}destroy(){fT&&fA.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,o)=>{let a=t=>{let{data:i}=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",a),!i.success){fT&&fA.error("Error in compression worker: ",i.response),o(Error("Error in compression worker"));return}r(i.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}constructor(e){this._worker=e,this._id=0}}class fL{get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=fa(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new fO):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{fT&&fA.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}constructor(e){this._worker=new fN(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}}class fD{get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}
2ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){fT&&fA.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){fT&&fA.exception(e,"Failed to add events when switching buffers.")}}constructor(e){this._fallback=new fM,this._compression=new fL(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}}function fj(){try{return"sessionStorage"in er&&!!er.sessionStorage}catch{return!1}}function fF(e){return void 0!==e&&Math.random()<e}function fU(e){if(fj())try{er.sessionStorage.setItem(dC,JSON.stringify(e))}catch{}}function fB(e){let t=Date.now(),n=e.id||e2(),r=e.started||t,o=e.lastActivity||t,a=e.segmentId||0,i=e.sampled;return{id:n,started:r,lastActivity:o,segmentId:a,sampled:i,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function fW(e){let{sessionSampleRate:t,allowBuffering:n,stickySession:r=!1}=e,{previousSessionId:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=fB({sampled:fF(t)?"session":!!n&&"buffer",previousSessionId:o});return r&&fU(a),a}function fH(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function fq(e,t){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:o=Date.now()}=t;return fH(e.started,n,o)||fH(e.lastActivity,r,o)}function fz(e,t){let{sessionIdleExpire:n,maxReplayDuration:r}=t;return!!fq(e,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function fV(e,t){let{sessionIdleExpire:n,maxReplayDuration:r,previousSessionId:o}=e,a=t.stickySession&&function(){if(!fj())return null;try{let e=er.sessionStorage.getItem(dC);if(!e)return null;let t=JSON.parse(e);return fT&&fA.infoTick("Loading existing session"),fB(t)}catch{return null}}();return a?fz(a,{sessionIdleExpire:n,maxReplayDuration:r})?(fT&&fA.infoTick("Session in sessionStorage is expired, creating new one..."),fW(t,{previousSessionId:a.id})):a:(fT&&fA.infoTick("Creating new session"),fW(t,{previousSessionId:o}))}function fG(e,t,n){return!!fX(e,t)&&(fJ(e,t,n),!0)}async function fJ(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===pA.Custom)return t(e)}catch(e){return fT&&fA.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,a.beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(a){let t=a&&a instanceof fO,n=tb();if(n&&n.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function fX(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=fa(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(fT&&fA.infoTick("Skipping event with timestamp ".concat(n," because it is after maxReplayDuration")),!1))}function fY(e){return"transaction"===e.type}function fK(e){return"feedback"===e.type}function f$(e){return!!e.category}function fQ(){let e=tm().getPropagationContext().dsc;e&&delete e.replay_id;let t=nu();if(t){let e=n_(t);delete e.replay_id}}function fZ(e,t){return t.map(t=>{let{type:n,start:r,end:o,name:a,data:i}=t,s=e.throttledAddEvent({type:pA.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:o,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function f0(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,(!fT||!e.getOptions()._experiments.traceInternals)&&dh(n,tb())||e.addUpdate(()=>(fZ(e,[t]),!0)))}function f1(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=i7(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function f2(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function f3(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function f5(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:i,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:a,statusCode:i,request:s,response:l}}}function f4(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}
2function f6(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:a}=function(e){var t;let n,r;if(!e||"string"!=typeof e)return{body:e};let o=e.length>15e4,a=(n=(t=e)[0],r=t[t.length-1],"["===n&&"]"===r||"{"===n&&"}"===r);if(o){let t=e.slice(0,15e4);return a?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(t,"…"),warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,(null==a?void 0:a.length)&&(r._meta={warnings:a}),r}function f8(e,t){return Object.entries(e).reduce((n,r)=>{let[o,a]=r,i=o.toLowerCase();return t.includes(i)&&e[o]&&(n[i]=a),n},{})}function f7(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(er.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function f9(e,t,n){try{let r=await he(e,t,n),o=f5("resource.fetch",r);f0(n.replay,o)}catch(e){fT&&fA.exception(e,"Failed to capture fetch breadcrumb")}}async function he(e,t,n){var r,o;let a=Date.now(),{startTimestamp:i=a,endTimestamp:s=a}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data,f=(r=n.networkDetailAllowUrls,e1(f7(l),r)&&(o=n.networkDetailDenyUrls,!e1(f7(l),o)));return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:f?function(e,t,n){var r,o;let{networkCaptureBodies:a,networkRequestHeaders:i}=e,s=t?(r=t,o=i,1===r.length&&"string"!=typeof r[0]?ho(r[0],o):2===r.length?ho(r[1],o):{}):{};if(!a)return f6(s,n,void 0);let[l,c]=i9(se(t),fA),u=f6(s,n,l);return c?f3(u,c):u}(n,t.input,d):f4(d),response:await ht(f,n,t.response,p)}}async function ht(e,t,n,r){let{networkCaptureBodies:o,networkResponseHeaders:a}=t;if(!e&&void 0!==r)return f4(r);let i=n?hr(n.headers,a):{};if(!n||!o&&void 0!==r)return f6(i,r,void 0);let[s,l]=await hn(n),c=function(e,t){let{networkCaptureBodies:n,responseBodySize:r,captureDetails:o,headers:a}=t;try{let t=(null==e?void 0:e.length)&&void 0===r?f1(e):r;if(!o)return f4(t);if(n)return f6(a,t,e);return f6(a,t,void 0)}catch(e){return fT&&fA.exception(e,"Failed to serialize response body"),f6(a,r,void 0)}}(s,{networkCaptureBodies:o,responseBodySize:r,captureDetails:e,headers:i});return l?f3(c,l):c}async function hn(e){let t=function(e){try{return e.clone()}catch(e){fT&&fA.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>{let r=aN(()=>t(Error("Timeout while trying to read response body")),500);ha(n).then(t=>e(t),e=>
2t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return fT&&fA.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return fT&&fA.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function hr(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ho(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?hr(n,t):Array.isArray(n)?{}:f8(n,t):{}}async function ha(e){return await e.text()}async function hi(e,t,n){try{let r=function(e,t,n){var r,o;let a=Date.now(),{startTimestamp:i=a,endTimestamp:s=a,input:l,xhr:c}=t,{url:u,method:d,status_code:p=0,request_body_size:f,response_body_size:h}=e.data;if(!u)return null;if(!c||(r=n.networkDetailAllowUrls,!e1(f7(u),r))||(o=n.networkDetailDenyUrls,e1(f7(u),o))){let e=f4(f);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:p,request:e,response:f4(h)}}let m=c[oJ],g=m?f8(m.request_headers,n.networkRequestHeaders):{},_=f8(st(c),n.networkResponseHeaders),[y,v]=n.networkCaptureBodies?i9(l,fA):[void 0],[b,S]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&n&&"object"==typeof n)return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return fT&&fA.exception(e,"Failed to serialize body",n),[void 0,"BODY_PARSE_ERROR"]}return fT&&fA.log("Skipping network body because of body type",n),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return fT&&fA.warn("Failed to get xhr response body",...t),[void 0]}(c):[void 0],w=f6(g,f,y),E=f6(_,h,b);return{startTimestamp:i,endTimestamp:s,url:u,method:d,statusCode:p,request:v?f3(w,v):w,response:S?f3(E,S):E}}(e,t,n),o=f5("resource.xhr",r);f0(n.replay,o)}catch(e){fT&&fA.exception(e,"Failed to capture xhr breadcrumb")}}async function hs(e){try{return Promise.all(fZ(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(er.performance.memory)]))}catch{return[]}}let hl=er.navigator;async function hc(e){let{client:t,scope:n,replayId:r,event:o}=e,a={event_id:r,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",o,a);let i=await n3(t.getOptions(),o,a,n,t,tg());if(!i)return null;t.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let s=t.getSdkMetadata(),{name:l,version:c,settings:u}=(null==s?void 0:s.sdk)||{};return i.sdk={...i.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0",settings:u},i}async function hu(e){var t;let n,{recordingData:r,replayId:o,segmentId:a,eventContext:i,timestamp:s,session:l}=e,c=function(e){let t,{recordingData:n,headers:r}=e,o="".concat(JSON.stringify(r),"\n");if("string"==typeof n)t="".concat(o).concat(n);else{let e=new TextEncoder().encode(o);(t=new Uint8Array(e.length+n.length)).set(e),t.set(n,e.length)}return t}({recordingData:r,headers:{segment_id:a}}),{urls:u,errorIds:d,traceIds:p,initialTimestamp:f}=i,h=tb(),m=tm(),g=null==h?void 0:h.getTransport(),_=null==h?void 0:h.getDsn();if(!h||!g||!_||!l.sampled)return Promise.resolve({});let y={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:s/1e3,error_ids:d,trace_ids:p,urls:u,replay_id:o,segment_id:a,replay_type:l.sampled},v=await hc({scope:m,client:h,replayId:o,event:y});if(!v)return h.recordDroppedEvent("event_processor","replay"),fT&&fA.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;let b=(t=h.getOptions().tunnel,nS(nI(v,nT(v),t,_),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof c?new TextEncoder().encode(c).length:c.length},c]]));try{n=await g.send(b)}catch(t){let e=Error(dA);try{e.cause=t}catch{}throw e}let S=r$({},n);if(rK(S,"replay"))throw new hp(S);if("number"==typeof n.statusCode&&(n.statusCode<200||n.statusCode>=300))throw new hd(n.statusCode);return n}
2class hd extends Error{constructor(e){super("Transport returned status code ".concat(e))}}class hp extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class hf extends Error{constructor(){super("Session is too long, not sending replay")}}async function hh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},{recordingData:n,onError:r}=e;if(n.length)try{return await hu(e),!0}catch(n){if(n instanceof hd||n instanceof hp)throw n;if(n7("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error("".concat(dA," - max retries exceeded"));try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{aN(async()=>{try{await hh(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let hm="__THROTTLED";class hg{getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){fT&&fA.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){fT&&fA.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",fT&&fA.infoTick("Starting replay in ".concat(this.recordingMode," mode")),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){fT&&fA.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){fT&&fA.log("Buffering is in progress, call `flush()` to save the replay");return}fT&&fA.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=fV({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){fT&&fA.log("Buffering is in progress, call `flush()` to save the replay");return}fT&&fA.infoTick("Starting replay in buffer mode");let e=fV({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e,t,n;let r,o=this._canvas;this._stopRecording=fo({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,r=!1,(t,n)=>{if(!e.checkAndHandleExpiredSession()){fT&&fA.warn("Received replay event after session expired.");return}let o=n||!r;r=!0,e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(fd.has(r)&&e.registerMutation(t.timestamp),r===pO.Scroll&&e.registerScroll(t.timestamp),t.data.source===pO.MouseInteraction){let{type:n,id:r}=t.data,o=fo.mirror.getNode(r);o instanceof HTMLElement&&n===pM.Click&&e.registerClick(o)}}catch{}}(e.clickDetector,t),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!fG(e,t,o))return!0;if(!o)return!1;let n=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;fG(e,(t=e.getOptions(),{type:pA.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,o),"buffer"===e.recordingMode&&n&&e.eventBuffer&&!n.dirty){let t=e.eventBuffer.getEarliestTimestamp();t&&(fT&&fA.log("Updating session start time to earliest event in buffer to ".concat(new Date(t))),n.started=t,e.getOptions().stickySession&&fU(n))}
2return null!=n&&!!n.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(null!=(t=null==hl?void 0:hl.userAgent)?t:"")||/Macintosh/i.test(null!=(n=null==hl?void 0:hl.userAgent)?n:"")&&(null==hl?void 0:hl.maxTouchPoints)&&(null==hl?void 0:hl.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...o?{recordCanvas:o.recordCanvas,getCanvasManager:o.getCanvasManager,sampling:o.sampling,dataURLOptions:o.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop(){let{forceFlush:e=!1,reason:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{var n;fT&&fA.log("Stopping Replay".concat(t?" triggered by ".concat(t):"")),fQ(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),null==(n=this.eventBuffer)||n.destroy(),this.eventBuffer=null,function(){if(fj())try{er.sessionStorage.removeItem(dC)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),fT&&fA.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),fT&&fA.log("Resuming replay"))}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();fT&&fA.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){var t,n;if(!e||(null==(t=this.session)?void 0:t.sampled)!==!1)return null==(n=this.session)?void 0:n.id}checkAndHandleExpiredSession(){return this._lastActivity&&fH(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e="".concat(er.location.pathname).concat(er.location.hash).concat(er.location.search),t="".concat(er.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===hm){let e=fm({category:"replay.throttled"});this.addUpdate(()=>!fG(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||nu(),t=e&&nc(e),n=(t&&nn(t).data||{})[tw];if(t&&n&&["route","custom"].includes(n))return nn(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){let{useCompression:t,workerUrl:n}=e;if(t&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 2
2var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
2']),URL.createObjectURL(e)}return""}();if(!t)return;fT&&fA.log("Using compression worker".concat(e?" from ".concat(e):""));let n=new Worker(t);return new fD(n)}catch(e){fT&&fA.exception(e,"Failed to create compression worker")}}(n);if(e)return e}return fT&&fA.log("Using simple buffer"),new fM}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=fV({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!fz(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{er.document.addEventListener("visibilitychange",this._handleVisibilityChange),er.addEventListener("blur",this._handleWindowBlur),er.addEventListener("focus",this._handleWindowFocus),er.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,n=tb();oz(t=>{var n,r;if(!e.isEnabled())return;let o=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?fc(e.event):fu(e.event),t=eC(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(e);return fm({category:"ui.".concat(e.name),...fy(t,n)})}(t);if(!o)return;let a="click"===t.name,i=a?t.event:void 0;a&&e.clickDetector&&(null==i?void 0:i.target)&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&(n=e.clickDetector,r=fc(t.event),n.handleClick(o,r)),fs(e,o)}),oK(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(fZ(e,[n]),!1)))}),(t=tb())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!f$(t))return;let r=(n=t,!f$(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){var t;let n=null==(t=e.data)?void 0:t.arguments;if(!Array.isArray(n)||0===n.length)return fm(e);let r=!1,o=n.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,"".concat(e.slice(0,5e3),"…")):e;if("object"==typeof e)try{let t=nb(e,7);if(JSON.stringify(t).length>5e3)return r=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"…");return t}catch{}return e});return fm({...e,data:{...e.data,arguments:o,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):fm(n));r&&fs(e,r)})(e,t));let r=tb();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i};r&&r.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,o,a,i;r=t,"xhr"===r.category&&(o=n,null==o?void 0:o.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let o=f1(r),a=n.getResponseHeader("content-length")?f2(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return f1(n)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,n),hi(t,n,e)),a=t,"fetch"===a.category&&(i=n,null==i?void 0:i.response)&&(!function(e,t){let{input:n,response:r}=t,o=f1(n?se(n):void 0),a=r?f2(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a
2)}(t,n),f9(t,n,e))}catch(e){fT&&fA.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}ru(Object.assign((t,n)=>{var r,o,a,i;if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!fY(t)&&!fK(t))return t;if(!e.checkAndHandleExpiredSession())return fQ(),t;if(fK(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:pA.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&(null==(a=t.exception)||null==(o=a.values)?void 0:o.length)&&null!=(i=n.originalException)&&i.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return fT&&fA.log("Ignoring error from rrweb internals",t),null;let s="buffer"===e.recordingMode&&t.message!==dA&&!!t.exception&&!t.type&&fF(e.getOptions().errorSampleRate);if((s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&"buffer"===e.recordingMode&&(null==(r=e.session)?void 0:r.sampled)==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&fU(t)}return t},{id:"Replay"})),n&&(n.on("beforeSendEvent",t=>{var n,r,o,a,i;let s;e.isEnabled()&&!t.type&&(n=e,r=t,s=null==(i=r.exception)||null==(a=i.values)||null==(o=a[0])?void 0:o.value,"string"==typeof s&&(s.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||s.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&fs(n,fm({category:"replay.hydrate-error",data:{url:eA()}})))}),n.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!fY(t))return;let r=n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(fY(t)){var o,a,i,s;let n;return void(o=e,a=t,n=o.getContext(),(null==(s=a.contexts)||null==(i=s.trace)?void 0:i.trace_id)&&n.traceIds.size<100&&n.traceIds.add(a.contexts.trace.trace_id))}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&aN(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(t,n)=>{var r;let o=e.getSessionId();(null==n?void 0:n.includeReplay)&&e.isEnabled()&&o&&(null==(r=t.contexts)?void 0:r.feedback)&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=o)}),n.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){let{entries:n}=e;n.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(iP(e,n))}),r.push(iT(fb(fE,e)),ix(fb(fk,e)),iI(fb(fR,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{er.document.removeEventListener("visibilitychange",this._handleVisibilityChange),er.removeEventListener("blur",this._handleWindowBlur),er.removeEventListener("focus",this._handleWindowFocus),er.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||fq(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){fT&&fA.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:pA.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(fS).filter(
2Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(fZ(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e;let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){fT&&fA.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),null==(e=this.eventBuffer)?void 0:e.hasEvents){if((await hs(this),this.eventBuffer)&&t===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new hf;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let o=await this.eventBuffer.finish();await hh({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=tb();e&&e.recordDroppedEvent(t instanceof hp?"ratelimit_backoff":t instanceof hf?"invalid":"send_error","replay")}}}async _flush(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){fT&&fA.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o){fT&&fA.log("Session duration (".concat(Math.floor(n/1e3),"s) is too ").concat(r?"short":"long",", not sending replay.")),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&!a.hasCheckout&&fT&&fA.log("Flushing initial segment without checkout.");let i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&fU(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if((null==t?void 0:t.length)&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return null==n?void 0:n.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>o||a){let e=fm({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,o,a,i=(null==n?void 0:n.maxWait)?Math.max(n.maxWait,t):0,s=(null==n?void 0:n.setTimeoutImpl)||setTimeout;function l(){return c(),r=e()}function c(){void 0!==o&&clearTimeout(o),void 0!==a&&clearTimeout(a),o=a=void 0}function u(){return o&&clearTimeout(o),o=s(l,t),i&&void 0===a&&(a=s(l,i)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==a?l():r},u}(e,t,{...n,setTimeoutImpl:aN})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,n=!1;return function(){let r;for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];let s=Math.floor(Date.now()/1e3);if(r=s-5,t.forEach((e,n)=>{n<r&&t.delete(n)}),[...t.values()].reduce((e,t)=>
2e+t,0)>=300){let e=n;return n=!0,e?"__SKIPPED":hm}n=!1;let l=t.get(s)||0;return t.set(s,l+1),e(...a)}}((e,t)=>fX(this,e)?fJ(this,e,t):Promise.resolve(null));const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new fp(this,o)),fT){const t=e._experiments;fA.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===er.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=fm({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=fm({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:o,altKey:a,key:i,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!i)return null;let l=n||o||a,c=1===i.length;if(!l&&c)return null;let u=eC(s,{maxStringLength:200})||"<unknown>",d=fy(s,u);return fm({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:o,altKey:a,key:i}})}(t);n&&fs(e,n)}(this,e)}}}function h_(e,t){return[...e,...t].join(",")}let hy='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hv=["content-length","content-type","accept"],hb=Symbol.for("sentry__originalRequestBody"),hS=!1,hw=!1,hE=e=>new hk(e);class hk{get _isInitialized(){return hS}set _isInitialized(e){hS=e}afterAllSetup(e){aY()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||hw)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return(null==n?void 0:n.body)!=null&&(r[hb]=n.body),r};t.prototype=e.prototype,er.Request=t,hw=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var t;if(null==(t=this._replay)?void 0:t.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if(null==(e=this._replay)?void 0:e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let n,r,o,a,i=(t=this._initialOptions,n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},o=tW(n.replaysSessionSampleRate),a=tW(n.replaysOnErrorSampleRate),null==o&&null==a&&eu(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=o&&(r.sessionSampleRate=o),null!=a&&(r.errorSampleRate=a),r);this._replay=new hg({options:i,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:a=!0,workerUrl:i,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:E=[],unblock:k=[],ignore:R=[],maskFn:x,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:P,attachRawBodyFromRequest:C=!1}={}){this.name="Replay";const A=function(e){let{mask:t,unmask:n,block:r,unblock:o,ignore:a}=e;return{maskTextSelector:h_(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:h_(n,[]),blockSelector:h_(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
2([src])"]),unblockSelector:h_(o,[]),ignoreSelector:h_(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:E,unblock:k,ignore:R});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>(function(e){let{el:t,key:n,maskAttributes:r,maskAllText:o,privacyOptions:a,value:i}=e;return!o||a.unmaskTextSelector&&t.matches(a.unmaskTextSelector)?i:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i})({maskAttributes:S,maskAllText:l,privacyOptions:A,key:e,value:t,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:a,workerUrl:i,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:hR(y),networkResponseHeaders:hR(v),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:P,attachRawBodyFromRequest:C,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(hy):hy,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&aY())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}}function hR(e){return[...hv,...e.map(e=>e.toLowerCase())]}function hx(){let e=tb();return null==e?void 0:e.getIntegrationByName("Replay")}var hT=Object.defineProperty,hI=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?hT(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};function hP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:hP(e.parentNode,t,n,r+1)}function hC(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(".".concat(e)))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let hA="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.",hO={map:{},getId:()=>(console.error(hA),-1),getNode:()=>(console.error(hA),null),removeNodeFromMap(){console.error(hA)},has:()=>(console.error(hA),!1),reset(){console.error(hA)}};function hM(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){hU(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>hM(e,t,a||{},!0)}function hN(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function hL(e,t,n,r,o){if(!e)return!1;let a=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!a)return!1;let i=hC(t,n);if(!o){let e=r&&a.matches(r);return i(a)&&!e}let s=hP(a,i),l=-1;return!(s<0)&&(r&&(l=hP(a,hC(null,r))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(hO=new Proxy(hO,{get:(e,t,n)=>("map"===t&&console.error(hA),Reflect.get(e,t,n))})),Date.now().toString();let hD={};function hj(e){let t=hD[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return hD[e]=r.bind(window)}function hF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return hj("requestAnimationFrame")(...t)}function hU(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return hj("setTimeout")(...t)}var hB=((J=hB||{})[J["2D"]=0]="2D",J[J.WebGL=1]="WebGL",J[J.WebGL2=2]="WebGL2",J);let hW=e=>x?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return e(...n)}catch(e){if(x&&!0===x(e))return()=>{};throw e}}:e;for(var hH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",hq="u"<typeof Uint8Array?[]:new Uint8Array(256),hz=0;hz<hH.length;hz++)hq[hH.charCodeAt(hz)]=hz;var hV=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=hH[n[t]>>2],o+=hH[(3&n[t])<<4|n[t+1]>>4],o+=hH[(15&n[t+1])<<2|n[t+2]>>6],o+=hH[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let hG=new Map,hJ=(e,t,n)=>{let r;if(!e||!(hY(e,t)||"object"==typeof e))return;let o=e.constructor.name,a=((r=hG.get(n))||(r=new Map,hG.set(n,r)),r.has(o)||r.set(o,[]),r.get(o)),i=a.indexOf(e);return -1===i&&(i=a.length,a.push(e)),i},hX=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:hV(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(hY(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:hJ(t,n,r)};return t})(e,t,n)),hY=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function hK(e,t,n,r,o){let a=[];try{let i=hN(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(a){for(var i=arguments.length,s=Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];if(!hL(this,t,n,r,!0)){let e="experimental-webgl"===a?"webgl":a;if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){let e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...s])}});a.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(e=>e())}}function h$(e,t,n,r,o,a,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 c=hN(e,i,function(e){return function(){for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];let d=e.apply(this,c);if(hJ(d,s,this),"tagName"in this.canvas&&!hL(this.canvas,r,o,a,!0)){let e=hX(c,s,this),r={type:t,property:i,args:e};n(this.canvas,r)}return d}});l.push(c)}catch{let r=hM(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});l.push(r)}return l}class hQ{reset(){var e;this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,null==(e=this.worker)||e.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:a,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}hW(()=>{if(a&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),a&&"number"==typeof t){let t=hK(e,n,r,o,!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){(null==t?void 0:t.skipRequestAnimationFrame)?this.takeSnapshot(performance.now(),!0,e):hF(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",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:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:o,width:a,height:i}=t;this.mutationCb({id:n,type:hB["2D"],commands:[{property:"clearRect",args:[0,0,a,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,a,i]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=hF(t)};e=hF(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){var o,a;let i,s=hK(e,t,n,r,!1),l=function(e,t,n,r,o){let a=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let s=hN(t.CanvasRenderingContext2D.prototype,i,function(a){return function(){for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return hL(this.canvas,n,r,o,!0)||hU(()=>{let n=hX(l,t,this);e(this.canvas,{type:hB["2D"],property:i,args:n})},0),a.apply(this,l)}});a.push(s)}catch{let n=hM(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:hB["2D"],property:i,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),c=(o=this.processMutation.bind(this),a=this.mirror,(i=[]).push(...h$(e.WebGLRenderingContext.prototype,hB.WebGL,o,t,n,r,a,e)),void 0!==e.WebGL2RenderingContext&&i.push(...h$(e.WebGL2RenderingContext.prototype,hB.WebGL2,o,t,n,r,a,e)),()=>{i.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),c()})}getCanvasElements(e,t,n){let r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{hL(o,e,t,n,!0)||r.push(o)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&o(t)}for(let e of this.shadowDoms){let t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:o,blockSelector:a,unblockSelector:i,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(o,a,i)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){var r;let t=e.getContext(e.__context);(null==t||null==(r=t.getContextAttributes())?void 0:r.preserveDrawingBuffer)===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{var r;null==(r=this.worker)||r.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{hW(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){hF(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,hF(e)};hF(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),hF(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}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:n="all",win:r,recordCanvas:o,errorHandler:a}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&function(e){x=e}(a),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t)return;hW(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()})()}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==($=e.contentWindow)?void 0:$.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{getId(e){var t;if(!e)return -1;let n=null==(t=this.getMeta(e))?void 0:t.id;return null!=n?n:-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);
2this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){hI(this,"idNodeMap",new Map),hI(this,"nodeMetaMap",new WeakMap)}},(X=Q||(Q={}))[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped";let hZ={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}}},h0=function(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[r,o]=n.maxCanvasSize||[],a={quality:n.quality||"medium",enableManualSnapshot:n.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,o?Math.min(o,1280):1280]},i=new Promise(e=>t=e);return{name:"ReplayCanvas",getOptions(){let{quality:n,enableManualSnapshot:r,maxCanvasSize:o}=a;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:n=>{let a=new hQ({...n,enableManualSnapshot:r,maxCanvasSize:o,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return e=a,t(a),a},...hZ[n]||hZ.medium}},async snapshot(t,n){(e||await i).snapshot(t,n)}}};function h1(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tb();null==e||e.emit("endPageloadSpan")}function h2(e){let t=nu();if(t===e)return;let n=tm();e.end=new Proxy(e.end,{apply:(e,r,o)=>(ts(n,t),Reflect.apply(e,r,o))}),ts(n,e)}function h3(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function h5(e){return h3(e.getAllKeys())}function h4(e){let t;function n(){var n,r;let o,a;return void 0==t&&(n=e.dbName||"sentry-offline",r=e.storeName||"queue",(o=indexedDB.open(n)).onupgradeneeded=()=>o.result.createObjectStore(r),a=h3(o),t=e=>a.then(t=>e(t.transaction(r,"readwrite").objectStore(r)))),t}return{push:async t=>{try{var r,o;let a=await nR(t);await (r=n(),o=e.maxQueueSize||30,r(e=>h5(e).then(t=>{if(!(t.length>=o))return e.put(a,Math.max(...t,0)+1),h3(e.transaction)})))}catch{}},unshift:async t=>{try{var r,o;let a=await nR(t);await (r=n(),o=e.maxQueueSize||30,r(e=>h5(e).then(t=>{if(!(t.length>=o))return e.put(a,Math.min(...t,0)-1),h3(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>h5(e).then(t=>{let n=t[0];if(null!=n)return h3(e.get(n)).then(t=>(e.delete(n),h3(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?nk(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r,o=t.indexOf(10);return o<0&&(o=t.length),JSON.parse((e=n(o),(r=ea(er)).decodePolyfill?r.decodePolyfill(e):new TextDecoder().decode(e)))}let o=r(),a=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?n(t):r()])}return[o,a]}(e)}catch{}}}}function h6(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:aL;return e=function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];es&&eh.log("[Offline]:",...t)}return n=>{let r,o=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let a=n.createStore(n),i=5e3;function s(e){r&&clearTimeout(r),r=rG(setTimeout(async()=>{r=void 0;let e=await a.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){r||(s(i),i=Math.min(2*i,36e5))}async function c(e){var r,c,u;let d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d&&nE(e,["replay_event","replay_recording"]))return await a.push(e),s(100),{};try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await o.send(e),a=100;if(t){if(null==(r=t.headers)?void 0:r["retry-after"])a=rY(t.headers["retry-after"]);else if(null==(c=t.headers)?void 0:c["x-sentry-rate-limits"])a=6e4;else if((t.statusCode||0)>=400)return t}return s(a),i=5e3,t}catch(r){if(await (u=i,!nE(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,r,u))))return d?await a.unshift(e):await a.push(e),l(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&l(),{send:c,flush:e=>(void 0===e&&(i=5e3,s(100)),o.flush(e))}}}(t),t=>{let n=e({...t,createStore:h4});return er.addEventListener("online",async e=>{await n.flush()}),n}}let h8="window"in er&&er.window===er&&"u"<typeof importScripts,h7=String(0),h9=h8?"main":"worker",me=er.navigator,mt="",mn="",mr="",mo=(null==me?void 0:me.userAgent)||"",ma="",mi=(null==me?void 0:me.language)||(null==me||null==(Z=me.languages)?void 0:Z[0])||"",ms=null==me?void 0:me.userAgentData;function ml(e){return"pageload"===nn(e).op}function mc(e){let t=tb(),n=null==t?void 0:t.getOptions(),r=null==n?void 0:n.stackParser;if(!r)return[];let o=nZ(r);if(!o)return[];let a=[];for(let t of e){let e=function(e){let t=(null==e?void 0:e.startsWith("file://"))?e.slice(7):e;return(null==t?void 0:t.match(/\/[A-Z]:/))&&(t=t.slice(1)),t}(t);e&&o[e]&&a.push({type:"sourcemap",code_file:t,debug_id:o[e]})}return a}function mu(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(oQ&&eh.warn("[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),".")),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(oQ&&eh.warn("[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1)}"object"==typeof ms&&null!==ms&&"getHighEntropyValues"in ms&&ms.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{var t;if(mt=e.platform||"",mr=e.architecture||"",ma=e.model||"",mn=e.platformVersion||"",null==(t=e.fullVersionList)?void 0:t.length){let t=e.fullVersionList[e.fullVersionList.length-1];mo="".concat(t.brand," ").concat(t.version)}}).catch(e=>void 0);let md=!1;function mp(){let e=er.Profiler;if("function"!=typeof e){oQ&&eh.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){oQ&&(eh.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),eh.log("[Profiling] Disabling profiling for current user session.")),md=!0}}function mf(e){if(md)return oQ&&eh.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return oQ&&eh.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=tb(),n=null==t?void 0:t.getOptions();if(!n)return oQ&&eh.log("[Profiling] Profiling disabled, no options foun
2d."),!1;let r=n.profilesSampleRate;return mu(r)?r?!!(!0===r||Math.random()<r)||(oQ&&eh.log("[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),!1):(oQ&&eh.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(oQ&&eh.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function mh(e){return void 0!==e.profilesSampleRate}let mm=new Map;function mg(e){let t;ml(e)&&(t=1e3*te());let n=mp();if(!n)return;oQ&&eh.log("[Profiling] started profiling span: ".concat(nn(e).description));let r=e2(),o=null;async function a(){if(e&&n){if(o){oQ&&eh.log("[Profiling] profile for:",nn(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(i&&(er.clearTimeout(i),i=void 0),oQ&&eh.log("[Profiling] stopped profiling of span: ".concat(nn(e).description)),!t){oQ&&eh.log("[Profiling] profiler returned null profile for: ".concat(nn(e).description),"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=t;if(mm.set(r,t),mm.size>30){let e=mm.keys().next().value;void 0!==e&&mm.delete(e)}}).catch(e=>{oQ&&eh.log("[Profiling] error while stopping profiler:",e)})}}tm().setContext("profile",{profile_id:r,start_timestamp:t});let i=er.setTimeout(()=>{oQ&&eh.log("[Profiling] max profile duration elapsed, stopping profiling for:",nn(e).description),a()},3e4),s=e.end.bind(e);e.end=function(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}}class m_{initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(md)return oQ&&eh.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 oQ&&eh.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return mu(t)?t?Math.random()<=t:(oQ&&eh.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(oQ&&eh.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());oQ&&eh.log("[Profiling] Initializing profiler (lifecycle='".concat(t,"').")),!n&&oQ&&eh.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=e2(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){if("trace"===this._lifecycleMode){oQ&&eh.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){oQ&&eh.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){oQ&&eh.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){oQ&&eh.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){oQ&&eh.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(oQ&&eh.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,oQ&&eh.log("[Profiling] Started profiling with profiler ID:",this._profilerId),t_().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){oQ&&eh.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=>{oQ&&eh.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&t_().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){oQ&&eh.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==nc(e))return;if(!e.isRecording()){oQ&&eh.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(oQ&&eh.log("[Profiling] Root span ".concat(t," started. Profiling active while there are active root spans (count=").concat(n,").")),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;oQ&&eh.log("[Profiling] Root span with ID ".concat(t," ended. Will continue profiling for as long as there are active root spans (currently: ").concat(n,").")),0===n&&(this._collectCurrentChunk().catch(e=>{oQ&&eh.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,t_().setContext("profile",{})}
2_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(){var e;if((null==(e=this._profiler)?void 0:e.stopped)===!1)return;let t=mp();if(!t){oQ&&eh.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{oQ&&eh.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)&&(oQ&&eh.log("[Profiling] Reached 5-minute timeout for root span ".concat(e,". You likely started a manual root span that never called `.end()`.")),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){var r,o,a,i,s,l;if(null==e)throw TypeError("Cannot construct profiling event envelope without a valid profile. Got ".concat(e," instead."));let c=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let o=[],a=r;for(;a;)o.push(a.frameId),a=void 0===a.parentId?void 0:e.stacks[a.parentId];n[t]=o}let r=tn(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,a=o-(r||o),i=[];for(let t=0;t<e.samples.length;t++){var s;let n=e.samples[t];if(!n)continue;let r=(o+(n.timestamp-a))/1e3;i[t]={stack_id:null!=(s=n.stackId)?s:0,thread_id:h7,timestamp:r}}return{frames:t,stacks:n,samples:i,thread_metadata:{[h7]:{name:h9}}}}(e),u=t.getOptions(),d=null==(l=t.getSdkMetadata)||null==(s=l.call(t))?void 0:s.sdk;return{chunk_id:e2(),client_sdk:{name:null!=(r=null==d?void 0:d.name)?r:"sentry.javascript.browser",version:null!=(o=null==d?void 0:d.version)?o:"0.0.0"},profiler_id:n||e2(),platform:"javascript",version:"2",release:null!=(a=u.release)?a:"",environment:null!=(i=u.environment)?i:"production",debug_meta:{images:mc(e.resources)},profile:c}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:"unknown validation error: ".concat(e)}}}(n);if("reason"in r){oQ&&eh.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),oQ&&eh.log("[Profiling] Collected browser profile chunk.")}catch(e){oQ&&eh.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){var t;let n=this._client,r=nT(null==(t=n.getSdkMetadata)?void 0:t.call(n)),o=n.getDsn(),a=n.getOptions().tunnel,i=nS({event_id:e2(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&o&&{dsn:tK(o)}},[[{type:"profile_chunk",platform:"javascript"},e]]);n.sendEnvelope(i).then(null,e=>{oQ&&eh.error("Error while sending profile chunk envelope:",e)})}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}}let my=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new m_;if(mh(t)||t.profileLifecycle||(t.profileLifecycle="manual"),mh(t)&&!t.profilesSampleRate){oQ&&eh.log("[Profiling] Profiling disabled, no profiling options foun
2d.");return}let r=nu(),o=r&&nc(r);if(mh(t)&&void 0!==t.profileSessionSampleRate&&oQ&&eh.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),mh(t))o&&ml(o)&&mf(o)&&mg(o),e.on("spanStart",e=>{e===nc(e)&&mf(e)&&mg(e)}),e.on("beforeEnvelope",e=>{let t;if(!mm.size)return;let n=(t=[],nw(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){var r,o;let a=e[n];(null==a||null==(o=a.contexts)||null==(r=o.profile)?void 0:r.profile_id)&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){var o,a;let t=null==e?void 0:e.contexts,n=null==t||null==(o=t.profile)?void 0:o.profile_id,i=null==t||null==(a=t.profile)?void 0:a.start_timestamp;if("string"!=typeof n||!n){oQ&&eh.log("[Profiling] cannot find profile for a span without a profile context");continue}(null==t?void 0:t.profile)&&delete t.profile;let s=function(e){let t=mm.get(e);return t&&mm.delete(e),t}(n);if(!s){oQ&&eh.log("[Profiling] Could not retrieve profile for span: ".concat(n));continue}let l=function(e,t,n,r){return(n.samples.length<2?(oQ&&eh.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(oQ&&eh.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){var o,a,i;let s;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError("Cannot construct profiling event envelope without a valid profile. Got ".concat(n," instead."));let l=("string"==typeof(s=null==(a=r.contexts)||null==(o=a.trace)?void 0:o.trace_id)&&32!==s.length&&oQ&&eh.log("[Profiling] Invalid traceId: ".concat(s," on profiled event")),"string"!=typeof s)?"":s,c="thread_metadata"in(i=n)?i:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[h7]:{name:h9}}},o=e.samples[0];if(!o)return r;let a=o.timestamp,i=tn(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,l=s-(i||s);return e.samples.forEach((o,i)=>{if(void 0===o.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[i]={elapsed_since_start_ns:((o.timestamp+l-a)*1e6).toFixed(0),stack_id:t,thread_id:h7};return}let s=e.stacks[o.stackId],c=[];for(;s;){c.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let u={elapsed_since_start_ns:((o.timestamp+l-a)*1e6).toFixed(0),stack_id:n,thread_id:h7};r.stacks[n]=c,r.samples[i]=u,n++}),r}(i),u=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*te()),d="number"==typeof r.timestamp?1e3*r.timestamp:1e3*te();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||nf,runtime:{name:"javascript",version:er.navigator.userAgent},os:{name:mt,version:mn,build_number:mo},device:{locale:mi,model:ma,manufacturer:mo,architecture:mr,is_emulator:!1},debug_meta:{images:mc(n.resources)},profile:c,transactions:[{name:r.transaction||"",id:r.event_id||e2(),trace_id:l,active_thread_id:h7,relative_start_ns:"0",relative_end_ns:((d-u)*1e6).toFixed(0)}]}}(e,t,n,r)}(n,i,s,e);l&&r.push(l)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!tB(t)){oQ&&eh.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),er.setTimeout(()=>{let e=nu(),t=e&&nc(e);t&&n.notifyRootSpanActive(t)},0)}}},processEvent:e=>{var t,n,r,o,a,i,s;return(null==e||null==(r=e.contexts)?void 0:r.profile)&&e.contexts&&(e.contexts.trace={...null!=(t=null==(o=e.contexts)?void 0:o.trace)?t:{},data:{...null!=(n=null==(i=e.contexts)||null==(a=i.trace)?void 0:a.data)?n:{},"thread.id":h7,"thread.name":h9}}
2,null==(s=e.spans)||s.forEach(e=>{e.data={...e.data||{},"thread.id":h7,"thread.name":h9}})),e}}),mv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{oQ&&eh.log("Using Sidecar URL",t)},processEvent:e=>{var t,n;return"transaction"===(t=e).type&&t.spans&&(null==(n=t.contexts)?void 0:n.trace)&&"ui.action.click"===t.contexts.trace.op&&t.spans.some(e=>{let{description:t}=e;return null==t?void 0:t.includes("#sentry-spotlight")})?null:e},afterAllSetup:e=>{var n,r;let o,a;n=e,r=t,o=aM("fetch"),a=0,n.on("beforeEnvelope",e=>{a>3?eh.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",a):o(r,{method:"POST",body:nR(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(a=0)},e=>{a++,eh.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},mb=()=>({name:"LaunchDarkly",processEvent:(e,t,n
2)=>ud(e)});function mS(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{up(e,t.value),uf(e,t.value)}}}let mw=()=>({name:"OpenFeature",processEvent:(e,t,n)=>ud(e)});class mE{after(e,t){up(t.flagKey,t.value),uf(t.flagKey,t.value)}error(e,t,n){up(e.flagKey,e.defaultValue),uf(e.flagKey,e.defaultValue)}}let mk=e=>{let{featureFlagClientClass:t}=e;return{name:"Unleash",setupOnce(){eM(t.prototype,"isEnabled",mR)},processEvent:(e,t,n)=>ud(e)}};function mR(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n[0],a=e.apply(this,n);return"string"==typeof o&&"boolean"==typeof a?(up(o,a),uf(o,a)):oQ&&eh.error("[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ".concat(o," (").concat(typeof o,"), result: ").concat(a," (").concat(typeof a,")")),a}}function mx(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n[0],a=e.apply(this,n);return"string"==typeof o&&"boolean"==typeof a&&(up(o,a),uf(o,a)),a}}let mT=e=>{let{growthbookClass:t}=e;return(e=>{let{growthbookClass:t}=e;return{name:"GrowthBook",setupOnce(){let e=t.prototype;"function"==typeof e.isOn&&eM(e,"isOn",mx),"function"==typeof e.getFeatureValue&&eM(e,"getFeatureValue",mx)}
2,processEvent:(e,t,n)=>ud(e)}})({growthbookClass:t})},mI=e=>{let{featureFlagClient:t}=e;return{name:"Statsig",setup(e){t.on("gate_evaluation",e=>{up(e.gate.name,e.gate.value),uf(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>ud(e)}};async function mP(){let e=tb();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 nH(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let mC=e=>{let{worker:t}=e;return{name:"WebWorker",setupOnce:()=>{(Array.isArray(t)?t:[t]).forEach(e=>mA(e))},addWorker:e=>mA(e)}};function mA(e){e.addEventListener("message",e=>{if(function(e){if(!ek(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!o)&&(!t||!!(ek(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!(ek(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!ek(e._sentryWorkerError))&&(!o||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>ek(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(oQ&&eh.log("Sentry debugId web worker message received",e.data),er._sentryDebugIds={...e.data._sentryDebugIds,...er._sentryDebugIds}),e.data._sentryModuleMetadata&&(oQ&&eh.log("Sentry module metadata web worker message received",e.data),er._sentryModuleMetadata={...e.data._sentryModuleMetadata,...er._sentryModuleMetadata}),e.data._sentryWasmImages){oQ&&eh.log("Sentry WASM images web worker message received",e.data);let t=er._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>ek(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));er._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(oQ&&eh.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=tb();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,a=eE(o)?aa(o):om(n,o,void 0,r,!0);a.level="error",e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),n8(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),oQ&&eh.log("Captured worker unhandled rejection",o)}(e.data._sentryWorkerError))}})}function mO(e){var t,n;let{self:r}=e;r.postMessage({_sentryMessage:!0,_sentryDebugIds:null!=(t=r._sentryDebugIds)?t:void 0,_sentryModuleMetadata:null!=(n=r._sentryModuleMetadata)?n:void 0}),r.addEventListener("unhandledrejection",e=>{var t;let n={reason:ao(e),filename:null==(t=r.location)?void 0:t.href};r.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),oQ&&eh.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),oQ&&eh.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function mM(e,t,n){let r,{componentStack:o}=t;if(null!==(r=aB.version.match(/^([^.]+)/))&&parseInt(r[0])>=17&&e_(e)&&o){let t,n=Error(e.message);n.name="React ErrorBoundary ".concat(e.name),n.stack=o,t=new WeakSet,function e(n,r){if(!t.has(n)){if(n.cause)return t.add(n),e(n.cause,r);n.cause=r}}(e,n)}return ty(t=>(t.setContext("react",{componentStack:o}),n4(e,n)))}function mN(e){return(t,n)=>{let r=!!e,o=mM(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}}e.s(["BrowserClient",0,ob,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,l8,"OpenFeatureIntegrationHook",0,mE,"SDK_VERSION",0,en,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tR,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,tx,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tw,"Scope",0,tl,"WINDOW",0,er,"addBreadcrumb",0,oj,"addEventProcessor",0,ru,"addIntegration",0,ry,"breadcrumbsIntegration",0,oZ,"browserApiErrorsIntegration",0,o1,"browserProfilingIntegration",0,my,"browserSessionIntegration",0,o4,"browserTracingIntegration",0,su,"buildLaunchDarklyFlagUsedHandler",0,mS,"captureConsoleIntegration",0,ce,"captureEvent",0,n8,"captureException",0,n4,"captureFeedback",0,sU,"captureMessage",0,n6,"captureSession",0,rh,"chromeStackLineParser",0,ay,"close",0,rs,"consoleLoggingIntegration",0,ca,"contextLinesIntegration",0,dw,"continueTrace",0,nB,"createConsolaReporter",0,cs,"createLangChainCallbackHandler",0,ul,"createTransport",0,rQ,"createUserFeedbackEnvelope",0,du,"cultureContextIntegration",0,o6,"dedupeIntegration",0,rT,"defaultRequestInstrumentationOptions",0,si,"defaultStackLineParsers",0,aI,"defaultStackParser",0,aP,"diagnoseSdkConnectivity",0,mP,"endSession",0,rp,"eventFiltersIntegration",0,rS,"eventFromException",0,of,"eventFromMessage",0,oh,"exceptionFromError",0,ol,"extraErrorDataIntegration",0,uc,"featureFlagsIntegration",0,uh,"feedbackAsyncIntegration",0,l4,"feedbackIntegration",0,l6,"feedbackSyncIntegration",0,l6,"flush",0,ri,"forceLoad",0,aF,"functionToStringIntegration",0,rx,"geckoStackLineParser",0,aS,"getActiveSpan",0,nu,"getClient",0,tb,"getCurrentScope",0,tm,"getDefaultIntegrations",0,aD,"getFeedback",0,sZ,"getGlobalScope",0,t_,"getIsolationScope",0,tg,"getReplay",0,hx,"getRootSpan",0,nc,"getSpanDescendants",0,nl,"getSpanStatusFromHttpCode",0,tH,"getTraceData",0,i5,"globalHandlersIntegration",0,ar,"graphqlClientIntegration",0,dP,"growthbookIntegration",0,mT,"httpClientIntegration",0,dg,"httpContextIntegration",0,al,"inboundFiltersIntegration",0,rw,"init",0,aj,"instrumentAnthropicAiClient",0,ub,"instrumentGoogleGenAIClient",0,uI,"instrumentLangGraph",0,uC,"instrumentOpenAiClient",0,uB,"instrumentOutgoingRequests",0,ss,"instrumentSupabaseClient",0,uX,"isEnabled",0,rc,"isInitialized",0,rl,"lastEventId",0,ro,"launchDarklyIntegration",0,mb,"lazyLoadIntegration",0,l5,"linkedErrorsIntegration",0,ap,"logger",()=>u5,"makeBrowserOfflineTransport",0,h6,"makeFetchTransport",0,aL,"makeMultiplexedTransport",0,l9,"metrics",()=>u6,"moduleMetadataIntegration",0,dt,"onLoad",0,aU,"openFeatureIntegration",0,mw,"opera10StackLineParser",0,aR,"opera11StackLineParser",0,aT,"parameterize",0,u3,"registerSpanErrorInstrumentation",0,aX,"registerWebWorker",0,mO,"replayCanvasIntegration",0,h0,"replayIntegration",0,hE,"reportPageLoaded",0,h1,"reportingObserverIntegration",0,df,"rewriteFramesIntegration",0,sD,"sendFeedback",0,sq,"setActiveSpanInBrowser",0,h2,"setContext",0,n7,"setCurrentClient",0,rA,"setExtra",0,re,"setExtras",0,n9,"setHttpStatus",0,tq,"
2setMeasurement",0,nA,"setTag",0,rn,"setTags",0,rt,"setUser",0,rr,"showReportDialog",0,dd,"spanToBaggageHeader",0,ny,"spanToJSON",0,nn,"spanToTraceHeader",0,t7,"spotlightBrowserIntegration",0,mv,"startBrowserTracingNavigationSpan",0,sp,"startBrowserTracingPageLoadSpan",0,sd,"startInactiveSpan",0,nU,"startNewTrace",0,nq,"startSession",0,rd,"startSpan",0,nj,"startSpanManual",0,nF,"statsigIntegration",0,mI,"supabaseIntegration",0,uY,"suppressTracing",0,nH,"thirdPartyErrorFilterIntegration",0,dn,"uiProfiler",0,dc,"unleashIntegration",0,mk,"updateSpanName",0,np,"webWorkerIntegration",0,mC,"winjsStackLineParser",0,aE,"withActiveSpan",0,nW,"withIsolationScope",0,tv,"withScope",0,ty,"zodErrorsIntegration",0,dl],815879),e.i(815879);var mL=aB;let mD="ui.react.render",mj="ui.react.mount",mF={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mW=Symbol.for("react.forward_ref"),mH=Symbol.for("react.memo"),mq={};function mz(e){if("object"==typeof e&&null!==e&&e.$$typeof===mH)return mB;let t=e.$$typeof;return t&&mq[t]||mF}mq[mW]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mq[mH]=mB;let mV=Object.defineProperty.bind(Object),mG=Object.getOwnPropertyNames.bind(Object),mJ=null==(ee=Object.getOwnPropertySymbols)?void 0:ee.bind(Object),mX=Object.getOwnPropertyDescriptor.bind(Object),mY=Object.getPrototypeOf.bind(Object),mK=Object.prototype;function m$(e,t,n){if("string"!=typeof t){if(mK){let n=mY(t);n&&n!==mK&&m$(e,n)}let n=mG(t);mJ&&(n=n.concat(mJ(t)));let r=mz(e),o=mz(t);for(let a of n)if(!mU[a]&&!(null==o?void 0:o[a])&&!(null==r?void 0:r[a])&&!mX(e,a)){let n=mX(t,a);if(n)try{mV(e,a,n)}catch(e){}}}return e}class mQ extends mL.Component{componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate(e){let{updateProps:t,includeUpdates:n=!0}=e;if(n&&this._mountSpan&&t!==this.props.updateProps){let e=Object.keys(t).filter(e=>t[e]!==this.props.updateProps[e]);if(e.length>0){let t=te();this._updateSpan=nW(this._mountSpan,()=>nU({name:"<".concat(this.props.name,">"),onlyIfParent:!0,op:"ui.react.update",startTime:t,attributes:{[tx]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":e}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=te(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=nn(this._mountSpan).timestamp;nW(this._mountSpan,()=>{let r=nU({onlyIfParent:!0,name:"<".concat(t,">"),op:mD,startTime:n,attributes:{[tx]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=nU({name:"<".concat(t,">"),onlyIfParent:!0,op:mj,attributes:{[tx]:"auto.ui.react.profiler","ui.component_name":t}})}}function mZ(e,t){let n=(null==t?void 0:t.name)||e.displayName||e.name||"unknown",r=r=>mL.createElement(mQ,{...t,name:n,updateProps:r},mL.createElement(e,{...r}));return r.displayName="profiler(".concat(n,")"),m$(r,e),r}function m0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{disabled:!1,hasRenderSpan:!0},[n]=mL.useState(()=>{if(null==t||!t.disabled)return nU({name:"<".concat(e,">"),onlyIfParent:!0,op:mj,attributes:{[tx]:"auto.ui.react.profiler","ui.component_name":e}})});mL.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=nn(n).timestamp,r=te(),o=nU({name:"<".concat(e,">"),onlyIfParent:!0,op:mD,startTime:t,attributes:{[tx]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(r)}}),[])}Object.assign(mQ,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var m1=aB;let m2="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,m3={componentStack:null,error:null,eventId:null};
2class m5 extends m1.Component{componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:o,showDialog:a,dialogOptions:i}=this.props;ty(s=>{r&&r(s,e,n);let l=mM(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});o&&o(e,n,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&dd({...i,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===m3?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(m3)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?m1.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return m1.isValidElement(r)?r:(e&&m2&&eh.warn("fallback did not produce a valid ReactElement"),null)}constructor(e){super(e),this.state=m3,this._openFallbackReportDialog=!0;const t=tb();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&dd({...e.dialogOptions,eventId:this._lastEventId})}))}}function m4(e,t){let n=e.displayName||e.name||"unknown",r=m1.memo(n=>m1.createElement(m5,{...t},m1.createElement(e,{...n})));return r.displayName="errorBoundary(".concat(n,")"),m$(r,e),r}let m6={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function m8(e){let t={...m6,...e};return e=>(n,r)=>{function o(e){return(n,r)=>{let o=e(n,r),a=tm(),i=t.actionTransformer(r);null!=i&&oj({category:"redux.action",data:i,type:"info"});let s=t.stateTransformer(o);if(null!=s){let e=tb(),t=null==e?void 0:e.getOptions(),n=(null==t?void 0:t.normalizeDepth)||3,r={state:{type:"redux",value:s}};eN(r,"__sentry_override_normalization_depth__",3+n),a.setContext("state",r)}else a.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(a,o),o}}t.attachReduxState&&t_().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let a=e(o(n),r);return a.replaceReducer=new Proxy(a.replaceReducer,{apply:function(e,t,n){e.apply(t,[o(n[0])])}}),a}}function m7(e){let t=su({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),a&&er.location&&m9(r,er.location,o,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url";sd(e,{name:t,attributes:{[tR]:"pageload",[tx]:"auto.pageload.react.reactrouter_v3",[tw]:n}})}),i&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&m9(r,t,o,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url";sp(e,{name:t,attributes:{[tR]:"navigation",[tx]:"auto.navigation.react.reactrouter_v3",[tw]:n}})})})}}}function m9(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(o);let a=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){var r;if(null==(r=t[e].path)?void 0:r.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,t)=>{let{path:n}=t;return"".concat(e).concat("/"===e||""===e?n:"/".concat(n))},"")}(n.routes||[]);return 0===a.length||"/*"===a?r(o):r(o=a,"route")})}function ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=su({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:o=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let a=er.location;if(r&&a){let n=e.matchRoutes(a.pathname,e.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),r=n[n.length-1],o=(null==r?void 0:r.routeId)!=="__root__"?r:void 0;sd(t,{name:o?o.routeId:a.pathname,attributes:{[tR]:"pageload",[tx]:"auto.pageload.react.tanstack_router",[tw]:o?"route":"url",...gt(o)}})}o&&e.subscribe("onBeforeNavigate",n=>{if(!n.fromLocation||n.toLocation.state===n.fromLocation.state)return;let r=e.matchRoutes(n.toLocation.pathname,n.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],a=(null==o?void 0:o.routeId)!=="__root__"?o:void 0,i=er.location,s=sp(t,{name:a?a.routeId:i.pathname,attributes:{[tR]:"navigation",[tx]:"auto.navigation.react.tanstack_router",[tw]:a?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let n=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=n[n.length-1],o=(null==r?void 0:r.routeId)!=="__root__"?r:void 0;o&&(s.updateName(o.routeId),s.setAttribute(tw,"route"),s.setAttributes(gt(o)))}})})}}}function gt(e){if(!e)return{};let t={};
2return Object.entries(e.params).forEach(e=>{let[n,r]=e;t["url.path.params.".concat(n)]=r,t["url.path.parameter.".concat(n)]=r,t["params.".concat(n)]=r}),t}function gn(e){let t=su({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),go(e,a,i,n,"reactrouter_v4",r,o)}}}function gr(e){let t=su({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),go(e,a,i,n,"reactrouter_v5",r,o)}}}function go(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],i=arguments.length>6?arguments[6]:void 0;function s(e){if(0===a.length||!i)return[e,"url"];for(let t of function e(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return t.some(t=>{let a=t.path?r(n,t):o.length?o[o.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return a&&(o.push({route:t,match:a}),t.routes&&e(t.routes,n,r,o)),!!a}),o}(a,e,i))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:er.location?er.location.pathname:void 0;if(t){let[n,r]=s(t);sd(e,{name:n,attributes:{[tR]:"pageload",[tx]:"auto.pageload.react.".concat(o),[tw]:r}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);sp(e,{name:n,attributes:{[tR]:"navigation",[tx]:"auto.navigation.react.".concat(o),[tw]:r}})}})}function ga(e){let t=e.displayName||e.name,n=t=>{var n;if(null==t||null==(n=t.computedMatch)?void 0:n.isExact){let e=t.computedMatch.path,n=function(){let e=nu(),t=e&&nc(e);if(!t)return;let n=nn(t).op;return"navigation"===n||"pageload"===n?t:void 0}();tm().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(tw,"route"))}return aB.createElement(e,{...t})};return n.displayName="sentryRoute(".concat(t,")"),m$(n,e),n}function gi(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let gs=new WeakMap;function gl(e,t){return void 0!==e&&void 0!==t&&(!!gu.test(t)||e===t)}function gc(e){return e.split("/").filter(Boolean)}let gu=/^:[\w-]+$/;function gd(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else gu.test(e)?n+=3:""===e?n+=1:n+=10;return n}let gp=!1,gf=[];function gh(){var e;let t=gf.length;return t>0&&null!=(e=gf[t-1])?e:null}function gm(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function gg(e){return e.endsWith("*")}function g_(e){return e.includes("/*")||e.endsWith("*")}function gy(e,t){var n;return gg(e)&&!!(null==(n=t.route.children)?void 0:n.length)||!1}function gv(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function gb(e){return"/"===e[0]?e:"/".concat(e)}function gS(e,t){return gp?gi(e.pathname,t):e.pathname||""}function gw(e,t,n,r){let o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0;if(s&&i&&i.length>0){let t=function(e,t,n){if(!e||!t||!t.length)return null;let r=n?gi(e,n):e,o=gs.get(t);for(let e of(!o&&(o=[...t].sort((e,t)=>{let n=gd(e);return gd(t)-n}),gs.set(t,o),m2&&eh.log("[React Router] Sorted route manifest by specificity:",o.length,"patterns")),o))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=gc(e),r=gc(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!gl(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!gl(n[e],t))return!1;return!0}(r,e))return m2&&eh.log("[React Router] Matched pathname",r,"to pattern",e),e;return m2&&eh.log("[React Router] No manifest match found for pathname:",r),null}(e.pathname,i,a);if(t)return[(gp?"":a)+t,"route"]}let l="url",c=function(e,t){let n=T(t,e);if(n){for(let e of n)if(function(e){var t;return!!(!e.children&&e.element&&(null==(t=e.path)?void 0:t.endsWith("/*")))}(e.route)&&e.params["*"])return!0}return!1}(e,n);return c&&(o=gb(function e(t,n){let r=T(t,n);if(!r||0===r.length)return"";for(let a of r)if(a.route.path&&"*"!==a.route.path){var o;let r="*"===(o=a.route.path||"")[o.length-1]?o.slice(0,-1):o,i=gi(n.pathname,gb(a.pathnameBase));if(n.pathname===i)return gm(i);return gm(gm(r||"")+gb(e(t.filter(e=>e!==a.route),{pathname:i})))}return""}(n,e)),l="route"),c&&o||([o,l]=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!e||0===e.length)return[gp?gi(t.pathname,r):t.pathname,"url"];if(!n)return[gS(t,r),"url"];let o="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:gp?gi(t,n):t,o="/*"===r.slice(-2)?r.slice(0,-2):r;return o.length>1&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),[o,"route"]}(o,e.pathname,r);let a=n.path;if(!a||gy(a,e))continue;let i="/"===a[0]||"/"===o[o.length-1]?a:"/".concat(a);if(o=gm(o)+gb(i),gm(t.pathname)===gm(r+e.pathname)){if(gv(o)!==gv(e.pathname)&&!gg(o))return[(gp?"":r)+i,"route"];return gy(o,e)&&(o=o.slice(0,-1)),[(gp?"":r)+o,"route"]}}return[gS(t,r),"url"]}(t,e,r,a)),[o||e.pathname,l]}function gE(){let e=nu(),t=e?nc(e):void 0;if(!t)return;let n=nn(t).op;return"navigation"===n||"pageload"===n?t:void 0}function gk(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let o=new Proxy(e,{apply(e,o,a){let i,s=function(){let e=gh();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==er)try{let e=er.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{m2&&eh.warn("[React Router] Could not access window.location")}return null}(),l=(i=gh())?i.span:gE(),c=e.apply(o,a);return function(e,t,n,r,o,a){ex(e)?e.then(e=>{Array.isArray(e)&&r(e,t,null!=o?o:void 0,a)}).catch(e=>{m2&&eh.warn("Error resolving async handler '".concat(n,"' for route"),t,e)}):Array.isArray(e)&&r(e,t,null!=o?o:void 0,a)}(c,t,n,r,s,l),c}});return eN(o,"__sentry_proxied__",!0),o}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)gk(n,t)}let gR=!1,gx=3e3,gT="",gI=new WeakSet,gP=new WeakMap,gC=new Set,gA=new WeakMap,gO=new WeakMap;function gM(e){(null==er?void 0:er.cancelAnimationFrame)?er.cancelAnimationFrame(e):clearTimeout(e)}function gN(e){return"".concat(e.pathname).concat(e.search||"").concat(e.hash||"")}function gL(e){return e.includes(":")||e.includes("*")}function gD(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function gj(e,t){let n=gA.get(e);n||(n=new Set,gA.set(e,n)),n.add(t),t.finally(()=>{let n=gA.get(e);n&&n.delete(t)})}function gF(e){let t=new Promise(t=>{gO.set(e,t)});gj(e,t)}function gU(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;
2e.forEach(e=>{gC.add(e),gR&&gk(e,gU)}),t&&gD(e,t);let o=null!=r?r:gE();if(o){let e=nn(o);if(e.timestamp){m2&&eh.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,a=n;if(!a&&!r&&void 0!==er){let e=er.location;(null==e?void 0:e.pathname)&&(a={pathname:e.pathname})}a&&("pageload"===t?gY({activeRootSpan:o,location:{pathname:a.pathname},routes:Array.from(gC),allRoutes:Array.from(gC)}):"navigation"===t&&gB(o,a,Array.from(gC),!1,O))}}function gB(e,t,n){var r;let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,i=nn(e),s=i.description,l=null==e?void 0:e.__sentry_navigation_name_set__,c=s&&g_(s);if((!l||o||c)&&!i.timestamp){let o=a(n,t),[u,d]=gw(t,n,n,o||[],gT,M,gR),p=null==(r=i.data)?void 0:r[tw];u&&(!s||!l&&("route"!==p||"route"===d)||"route"!==p&&"route"===d||"route"===p&&"route"===d&&c)&&(e.updateName(u),e.setAttribute(tw,d),g_(u)||"route"!==d||eN(e,"__sentry_navigation_name_set__",!0))}}function gW(e,t,n,r,o){let a=!1,i=!!o&&"pageload"===nn(o).op,s=!1,l=null,c=null;e.subscribe(e=>{if(!a){let t=gE();t&&"pageload"===nn(t).op?i=!0:i&&("POP"!==e.historyAction||s?a=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&a){let o=gN(e.location),a=()=>{c!==o&&(c=o,l=null,gJ({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(gC)}))};if("idle"!==e.navigation.state)c!==o&&(c=null),null!==l&&gM(l),l=(null==er?void 0:er.requestAnimationFrame)?er.requestAnimationFrame(a):setTimeout(a,0);else null!==l&&(gM(l),l=null),a()}})}function gH(e,t){return I&&P&&C&&O?function(n,r){if(gX(n),gR)for(let e of n)gk(e,gU);let o=gE();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&(eN(o,"__sentry_may_have_lazy_routes__",!0),gF(o));let a=e(n,gG(r,!1,o)),i=null==r?void 0:r.basename;return"POP"===a.state.historyAction&&o&&gY({activeRootSpan:o,location:a.state.location,routes:n,basename:i,allRoutes:Array.from(gC)}),gT=i||"",gW(a,n,t,i,o),a}:(m2&&eh.warn("reactRouterV".concat(t,"Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.")),e)}function gq(e,t){return I&&P&&C&&O?function(n,r){let o;if(gX(n),gR)for(let e of n)gk(e,gU);let a=gE();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&(eN(a,"__sentry_may_have_lazy_routes__",!0),gF(a));let i=e(n,gG(r,!0,a)),s=null==r?void 0:r.basename,l=null==r?void 0:r.initialEntries,c=null==r?void 0:r.initialIndex,u=l&&1===l.length,d=void 0!==c&&l&&l[c],p=(o=u?l[0]:d?l[c]:void 0)?"string"==typeof o?{pathname:o}:o:i.state.location,f=gE();return"POP"===i.state.historyAction&&f&&gY({activeRootSpan:f,location:p,routes:n,basename:s,allRoutes:Array.from(gC)}),gT=s||"",gW(i,n,t,s,f),i}:(m2&&eh.warn("reactRouterV".concat(t,"Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.")),e)}function gz(e,t){let n=su({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:a,createRoutesFromChildren:i,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:c=!1,instrumentPageLoad:u=!0,instrumentNavigation:d=!0,lazyRouteTimeout:p,lazyRouteManifest:f}=e;return{...n,setup(t){var u,d;n.setup(t);let h=null!=(u=e.finalTimeout)?u:3e4,m=(null!=(d=e.idleTimeout)?d:1e3)*3,g=null!=p?p:m;g===1/0?(gx=h,m2&&eh.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",h,"ms to prevent indefinite hangs")):Number.isNaN(g)?(m2&&eh.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",m),gx=m):g<0?(m2&&eh.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",g,"falling back to:",m),gx=m):gx=g,I=r,P=o,C=a,O=s,A=i,gR=c,M=f,function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];T=e,gp=t}(s,l||!1)},afterAllSetup(e){var r;n.afterAllSetup(e);let o=null==(r=er.location)?void 0:r.pathname;u&&o&&sd(e,{name:o,attributes:{[tw]:"url",[tR]:"pageload",[tx]:"auto.pageload.react.reactrouter_v".concat(t)}}),d&&gI.add(e)}}}function gV(e,t){if(!I||!P||!C||!O)return m2&&eh.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
2cause of one or more missing parameters."),e;let n=n=>{let r=aB.useRef(!0),{routes:o,locationArg:a}=n,i=e(o,a),s=P(),l=C(),c="string"==typeof a||(null==a?void 0:a.pathname)?a:s;return I(()=>{let e="string"==typeof c?{pathname:c}:c;r.current?(gX(o),gY({activeRootSpan:gE(),location:e,routes:o,allRoutes:Array.from(gC)}),r.current=!1):gJ({location:e,routes:o,navigationType:l,version:t,allRoutes:Array.from(gC)})},[l,c]),i};return(e,t)=>aB.createElement(n,{routes:e,locationArg:t})}function gG(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{var o;let a=null==e?void 0:e.path,i=null!=(o=gE())?o:n;if(!t){let t=null==e?void 0:e.patch,n=null==e?void 0:e.matches;t&&(e.patch=(e,r)=>{if(gX(r),n&&n.length>0){let t=n[n.length-1],o=null==t?void 0:t.route;if(o){let t=Array.from(gC).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===o,a=void 0!==t.path&&void 0!==o.path&&t.path===o.path;return n||r||a});t&&gD(r,t)}}let o=i?nn(i):void 0;return a&&i&&o&&!o.timestamp&&"navigation"===o.op&&gB(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(gC),!0,O),t(e,r)})}let s=(async()=>{let t,n,o=(n={},gf.length>=10&&(m2&&eh.warn("[React Router] Navigation context stack overflow - removing oldest context"),gf.shift()),gf.push({token:n,targetPath:a,span:i}),n);try{t=await r(e)}finally{let e,t;(null==(e=gf[gf.length-1])?void 0:e.token)===o&&gf.pop(),i&&(t=gO.get(i))&&(t(),gO.delete(i),i.__sentry_may_have_lazy_routes__&&(i.__sentry_may_have_lazy_routes__=!1))}let s=i?nn(i):void 0;return i&&s&&!s.timestamp&&"navigation"===s.op&&a&&gB(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(gC),!1,O),t})();return i&&gj(i,s),s}}}function gJ(e){let{location:t,routes:n,navigationType:r,version:o,matches:a,basename:i,allRoutes:s}=e,l=Array.isArray(a)?a:O(s||n,t,i),c=tb();if(!c||!gI.has(c))return;let u=gE();if((!u||"pageload"!==nn(u).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e,[r,a]=gw(t,s||n,s||n,l,i,M,gR),u=gN(t),d=gP.get(c),p=!!d&&!d.isPlaceholder&&!!nn(d.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){var o;let t=!!e.routeName&&g_(e.routeName),r=g_(n),a=!!e.routeName&&gL(e.routeName),i=gL(n),s=n!==e.routeName&&n.length>((null==(o=e.routeName)?void 0:o.length)||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!a&&i||s))}}return{skip:!1,shouldUpdate:!1}}(d,u,r,p);if(f){if(h&&d){let e=d.routeName;d.isPlaceholder?(d.routeName=r,m2&&eh.log('[Tracing] Updated placeholder navigation name from "'.concat(e,'" to "').concat(r,'" (will apply to real span)'))):(d.span.updateName(r),d.span.setAttribute(tw,a),eN(d.span,"__sentry_navigation_name_set__",!0),d.routeName=r,m2&&eh.log('[Tracing] Updated navigation span name from "'.concat(e,'" to "').concat(r,'"')))}else m2&&eh.log("[Tracing] Skipping duplicate navigation for location: ".concat(u));return}let m={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:u,isPlaceholder:!0};gP.set(c,m);try{e=sp(c,{name:m.routeName,attributes:{[tw]:a,[tR]:"navigation",[tx]:"auto.navigation.react.reactrouter_v".concat(o)}})}catch(e){throw gP.delete(c),e}e?(gP.set(c,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:u}),g$(e,t,n,i,"navigation")):gP.delete(c)}}function gX(e){e.forEach(e=>{(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{gC.add(e)})})}function gY(e){let{activeRootSpan:t,location:n,routes:r,matches:o,basename:a,allRoutes:i}=e,s=Array.isArray(o)?o:O(i||r,n,a);if(s){let[e,o]=gw(n,i||r,i||r,s,a,M,gR);tm().setTransactionName(e||"/"),t&&(t.updateName(e),t.setAttribute(tw,o),g$(t,n,r,a,"pageload"))}else t&&g$(t,n,r,a,"pageload")}function gK(e,t,n,r,o,a,i,s){try{var l;let c=null==(l=t.data)?void 0:l[tw];if("route"===c&&n&&!g_(n))return;let u=Array.from(s),d=u.length>0?u:o,p=O(d,r,a);if(!p)return;let[f,h]=gw(r,d,d,p,a,M,gR),m=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!!n&&(!!(!e&&o||e&&g_(e)&&"route"===r&&!g_(n))||"route"!==t&&"route"===r)}(n,c,f,h,!0),g="pageload"===i||!t.timestamp;m&&g&&(e.updateName(f),e.setAttribute(tw,h))}catch(e){m2&&eh.warn("Error updating span details before ending: ".concat(e))}}function g$(e,t,n,r,o){let a="__sentry_".concat(o,"_end_patched__");
2if((null==e?void 0:e[a])||!e.end)return;let i=e.end.bind(e),s=!1;e.end=function(){for(var a,l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];if(s)return;s=!0;let d=c.length>0?c[0]:Date.now()/1e3,p=nn(e),f=p.description,h=null==(a=p.data)?void 0:a[tw],m=()=>{let t=tb();if(t&&"navigation"===o){let n=gP.get(t);n&&n.span===e&&gP.delete(t)}},g=gA.get(e),_=e.__sentry_may_have_lazy_routes__;if((g&&g.size>0||_)&&f&&(g_(f)||"route"!==h)){let a;if(0===gx){gK(e,p,f,t,n,r,o,gC),m(),i(d);return}let s=new Promise(e=>setTimeout(e,gx));if(g&&g.size>0){let e=Promise.allSettled(g).then(()=>{});a=gx===1/0?e:Promise.race([e,s])}else a=s;a.then(()=>{let a=nn(e);gK(e,a,a.description,t,n,r,o,gC),m(),i(d)}).catch(()=>{m(),i(d)});return}gK(e,p,f,t,n,r,o,gC),m(),i(d)},eN(e,a,!0)}function gQ(e,t){if(!I||!P||!C||!A||!O)return m2&&eh.warn("reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ".concat(I,". useLocation: ").concat(P,". useNavigationType: ").concat(C,".\n      createRoutesFromChildren: ").concat(A,". matchRoutes: ").concat(O,".")),e;let n=n=>{let r=aB.useRef(!0),o=P(),a=C();return I(()=>{let e=A(n.children);r.current?(gX(e),gY({activeRootSpan:gE(),location:o,routes:e,allRoutes:Array.from(gC)}),r.current=!1):gJ({location:o,routes:e,navigationType:a,version:t,allRoutes:Array.from(gC)})},[o,a]),aB.createElement(e,{...n})};return m$(n,e),n}function gZ(e){return gz(e,"6")}function g0(e){return gV(e,"6")}function g1(e){return gH(e,"6")}function g2(e){return gq(e,"6")}function g3(e){return gQ(e,"6")}function g5(e){return gz(e,"7")}function g4(e){return gQ(e,"7")}function g6(e){return gH(e,"7")}function g8(e){return gq(e,"7")}function g7(e){return gV(e,"7")}function g9(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function _e(e){let t=Object.create(null);try{Object.entries(e).forEach(e=>{let[n,r]=e;"string"==typeof r&&(t[n]=r)})}catch{}return t}function _t(e){var t;let n=e.headers||{},r=("string"==typeof n["x-forwarded-host"]?n["x-forwarded-host"]:void 0)||("string"==typeof n.host?n.host:void 0),o=("string"==typeof n["x-forwarded-proto"]?n["x-forwarded-proto"]:void 0)||e.protocol||((null==(t=e.socket)?void 0:t.encrypted)?"https":"http"),a=e.url||"",i=function(e){let{url:t,protocol:n,host:r}=e;return(null==t?void 0:t.startsWith("http"))?t:t&&r?"".concat(n,"://").concat(r).concat(t):void 0}({url:a,host:r,protocol:o}
2),s=e.body||void 0,l=e.cookies;return{url:i,method:e.method,query_string:_n(a),headers:_e(n),cookies:l,data:s}}function _n(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 _r(){try{aH&&eh.log("Flushing events..."),await ri(2e3),aH&&eh.log("Done flushing events")}catch(e){aH&&eh.log("Error while flushing events:\n",e)}}function _o(e){var t,n,r;"function"==typeof(null==(t=_a())?void 0:t.waitUntil)?(n=e,null==(r=_a())||r.waitUntil(n)):function(e){var t;if("string"!=typeof EdgeRuntime)return;let n=er[Symbol.for("@vercel/request-context")],r=null==n||null==(t=n.get)?void 0:t.call(n);(null==r?void 0:r.waitUntil)&&r.waitUntil(e)}(e)}function _a(){var e;return null==(e=er[Symbol.for("__cloudflare-context__")])?void 0:e.ctx}async function _i(e){let{req:t,res:n,err:r}=e,o=(null==n?void 0:n.statusCode)||e.statusCode;if(o&&o<500||!e.pathname)return;if(r&&e7(r))return _o(_r()),tg().lastEventId();let a=ty(e=>{if(t){let n=_t(t);e.setSDKProcessingMetadata({normalizedRequest:n})}return n4(r||"_error.js called with falsy error (".concat(r,")"),{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return _o(_r()),a}e.s(["BrowserClient",0,ob,"ErrorBoundary",0,m5,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,l8,"OpenFeatureIntegrationHook",0,mE,"Profiler",0,mQ,"SDK_VERSION",0,en,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tR,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,tx,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tw,"Scope",0,tl,"WINDOW",0,er,"addBreadcrumb",0,oj,"addEventProcessor",0,ru,"addIntegration",0,ry,"breadcrumbsIntegration",0,oZ,"browserApiErrorsIntegration",0,o1,"browserProfilingIntegration",0,my,"browserSessionIntegration",0,o4,"browserTracingIntegration",0,su,"buildLaunchDarklyFlagUsedHandler",0,mS,"captureConsoleIntegration",0,ce,"captureEvent",0,n8,"captureException",0,n4,"captureFeedback",0,sU,"captureMessage",0,n6,"captureReactException",0,mM,"captureSession",0,rh,"chromeStackLineParser",0,ay,"close",0,rs,"consoleLoggingIntegration",0,ca,"contextLinesIntegration",0,dw,"continueTrace",0,nB,"createConsolaReporter",0,cs,"createLangChainCallbackHandler",0,ul,"createReduxEnhancer",0,m8,"createTransport",0,rQ,"createUserFeedbackEnvelope",0,du,"cultureContextIntegration",0,o6,"dedupeIntegration",0,rT,"defaultRequestInstrumentationOptions",0,si,"defaultStackLineParsers",0,aI,"defaultStackParser",0,aP,"diagnoseSdkConnectivity",0,mP,"endSession",0,rp,"eventFiltersIntegration",0,rS,"eventFromException",0,of,"eventFromMessage",0,oh,"exceptionFromError",0,ol,"extraErrorDataIntegration",0,uc,"featureFlagsIntegration",0,uh,"feedbackAsyncIntegration",0,l4,"feedbackIntegration",0,l6,"feedbackSyncIntegration",0,l6,"flush",0,ri,"forceLoad",0,aF,"functionToStringIntegration",0,rx,"geckoStackLineParser",0,aS,"getActiveSpan",0,nu,"getClient",0,tb,"getCurrentScope",0,tm,"getDefaultIntegrations",0,aD,"getFeedback",0,sZ,"getGlobalScope",0,t_,"getIsolationScope",0,tg,"getReplay",0,hx,"getRootSpan",0,nc,"getSpanDescendants",0,nl,"getSpanStatusFromHttpCode",0,tH,"getTraceData",0,i5,"globalHandlersIntegration",0,ar,"graphqlClientIntegration",0,dP,"growthbookIntegration",0,mT,"httpClientIntegration",0,dg,"httpContextIntegration",0,al,"inboundFiltersIntegration",0,rw,"init",0,aW,"instrumentAnthropicAiClient",0,ub,"instrumentGoogleGenAIClient",0,uI,"instrumentLangGraph",0,uC,"instrumentOpenAiClient",0,uB,"instrumentOutgoingRequests",0,ss,"instrumentSupabaseClient",0,uX,"isEnabled",0,rc,"isInitialized",0,rl,"lastEventId",0,ro,"launchDarklyIntegration",0,mb,"lazyLoadIntegration",0,l5,"linkedErrorsIntegration",0,ap,"logger",()=>u5,"makeBrowserOfflineTransport",0,h6,"makeFetchTransport",0,aL,"makeMultiplexedTransport",0,l9,"metrics",()=>u6,"moduleMetadataIntegration",0,dt,"onLoad",0,aU,"openFeatureIntegration",0,mw,"opera10StackLineParser",0,aR,"opera11StackLineParser",0,aT,"parameterize",0,u3,"reactErrorHandler",0,mN,"reactRouterV3BrowserTracingIntegration",0,m7,"reactRouterV4BrowserTracingIntegration",0,gn,"reactRouterV5BrowserTracingIntegration",0,gr,"reactRouterV6BrowserTracingIntegration",0,gZ,"reactRouterV7BrowserTracingIntegration",0,g5,"registerSpanErrorInstrumentation",0,aX,"registerWebWorker",0,mO,"replayCanvasIntegration",0,h0,"replayIntegration",0,hE,"reportPageLoaded",0,h1,"reportingObserverIntegration",0,df,"rewriteFramesIntegration",0,sD,"sendFeedback",0,sq,"setActiveSpanInBrowser",0,h2,"setContext",0,n7,"setCurrentClient",0,rA,"setExtra",0,re,"setExtras",0,n9,"setHttpStatus",0,tq,"
2setMeasurement",0,nA,"setTag",0,rn,"setTags",0,rt,"setUser",0,rr,"showReportDialog",0,dd,"spanToBaggageHeader",0,ny,"spanToJSON",0,nn,"spanToTraceHeader",0,t7,"spotlightBrowserIntegration",0,mv,"startBrowserTracingNavigationSpan",0,sp,"startBrowserTracingPageLoadSpan",0,sd,"startInactiveSpan",0,nU,"startNewTrace",0,nq,"startSession",0,rd,"startSpan",0,nj,"startSpanManual",0,nF,"statsigIntegration",0,mI,"supabaseIntegration",0,uY,"suppressTracing",0,nH,"tanstackRouterBrowserTracingIntegration",0,ge,"thirdPartyErrorFilterIntegration",0,dn,"uiProfiler",0,dc,"unleashIntegration",0,mk,"updateSpanName",0,np,"useProfiler",0,m0,"webWorkerIntegration",0,mC,"winjsStackLineParser",0,aE,"withActiveSpan",0,nW,"withErrorBoundary",0,m4,"withIsolationScope",0,tv,"withProfiler",0,mZ,"withScope",0,ty,"withSentryReactRouterV6Routing",0,g3,"withSentryReactRouterV7Routing",0,g4,"withSentryRouting",0,ga,"wrapCreateBrowserRouterV6",0,g1,"wrapCreateBrowserRouterV7",0,g6,"wrapCreateMemoryRouterV6",0,g2,"wrapCreateMemoryRouterV7",0,g8,"wrapUseRoutesV6",0,g0,"wrapUseRoutesV7",0,g7,"zodErrorsIntegration",0,dl],361981),e.i(361981);var _s=e.i(655113);function _l(){return et.default.env.NEXT_PHASE===_s.PHASE_PRODUCTION_BUILD}function _c(e){let t=_l(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&aH&&eh.log("Skipping span creation in Cache Components context"),t||n}function _u(){return new nv({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}async function _d(e,t,n){return tv(async r=>{var o,a;let i,s,l=null==(o=tb())?void 0:o.getOptions().sendDefaultPii,c={};try{let e=await t.headers;i=null!=(a=null==e?void 0:e.get("sentry-trace"))?a:void 0,s=null==e?void 0:e.get("baggage"),null==e||e.forEach((e,t)=>{c[t]=e})}catch{aH&&eh.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName("serverAction/".concat(e)),r.setSDKProcessingMetadata({normalizedRequest:{headers:c}}),(nu()?(e,t)=>t():nB)({sentryTrace:i,baggage:s},async()=>{try{return await nj({op:"function.server_action",name:"serverAction/".concat(e),forceTransaction:!0,attributes:{[tw]:"route",[tx]:"auto.function.nextjs.server_action"}},async e=>{let r=await tU(n,t=>{aq(t)?e.setStatus({code:2,message:"not_found"}):az(t)||(e.setStatus({code:2,message:"internal_error"}),n4(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:l)&&tg().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{tg().setExtra("server_action_form_data.".concat(t),"string"==typeof e?e:"[non-string value]")}),r})}finally{_o(_r())}})})}function _p(e){return async function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return await e.apply(this,n)}catch(t){throw n4(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function _f(e,t,n,r){return async function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];let i=_t(t);tm().setTransactionName("".concat(r.dataFetchingMethodName," (").concat(r.dataFetcherRouteName,")")),tg().setSDKProcessingMetadata({normalizedRequest:i});let s=nu();s&&"/_error"!==r.requestedRouteName&&nc(s).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":l,baggage:c}=i5();return{sentryTrace:l,baggage:c,data:await e.apply(this,o)}}}async function _h(e,t){try{return await e(...t)}catch(e){throw n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}e.s(["BrowserClient",0,ob,"ErrorBoundary",0,m5,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,l8,"OpenFeatureIntegrationHook",0,mE,"Profiler",0,mQ,"SDK_VERSION",0,en,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tR,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,tx,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tw,"Scope",0,tl,"WINDOW",0,er,"addBreadcrumb",0,oj,"addEventProcessor",0,ru,"addIntegration",0,ry,"breadcrumbsIntegration",0,oZ,"browserApiErrorsIntegration",0,o1,"browserProfilingIntegration",0,my,"browserSessionIntegration",0,o4,"browserTracingIntegration",0,sO,"buildLaunchDarklyFlagUsedHandler",0,mS,"captureConsoleIntegration",0,ce,"captureEvent",0,n8,"captureException",0,n4,"captureFeedback",0,sU,"captureMessage",0,n6,"captureReactException",0,mM,"captureRequestError",0,function(e,t,n){ty(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:_e(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName("".concat(t.method," ").concat(n.routePath)),n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),_o(_r())})},"captureRouterTransitionStart",0,function(e,t){L&&L(e,t)},"captureSession",0,rh,"captureUnderscoreErrorException",0,_i,"chromeStackLineParser",0,ay,"close",0,rs,"consoleLoggingIntegration",0,ca,"contextLinesIntegration",0,dw,"continueTrace",0,nB,"createConsolaReporter",0,cs,"createLangChainCallbackHandler",0,ul,"createReduxEnhancer",0,m8,"createTransport",0,rQ,"createUserFeedbackEnvelope",0,du,"cultureContextIntegration",0,o6,"dedupeIntegration",0,rT,"defaultRequestInstrumentationOptions",0,si,"defaultStackLineParsers",0,aI,"defaultStackParser",0,aP,"diagnoseSdkConnectivity",0,mP,"endSession",0,rp,"eventFiltersIntegration",0,rS,"eventFromException",0,of,"eventFromMessage",0,oh,"exceptionFromError",0,ol,"extraErrorDataIntegration",0,uc,"featureFlagsIntegration",0,uh,"feedbackAsyncIntegration",0,l4,"feedbackIntegration",0,l6,"feedbackSyncIntegration",0,l6,"flush",0,ri,"forceLoad",0,aF,"functionToStringIntegration",0,rx,"geckoStackLineParser",0,aS,"getActiveSpan",0,nu,"getClient",0,tb,"getCurrentScope",0,tm,"getDefaultIntegrations",0,aD,"getFeedback",0,sZ,"getGlobalScope",0,t_,"getIsolationScope",0,tg,"getReplay",0,hx,"getRootSpan",0,nc,"getSpanDescendants",0,nl,"getSpanStatusFromHttpCode",0,tH,"getTraceData",0,i5,"globalHandlersIntegration",0,ar,"graphqlClientIntegration",0,dP,"growthbookIntegration",0,mT,"httpClientIntegration",0,dg,"httpContextIntegration",0,al,"inboundFiltersIntegration",0,rw,"init",0,function(e){let t,n,r,o,a,i;sF&&eu(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),sF=!0,!aH&&e.debug&&eu(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){er.document&&function(e){let t=sw(e)||e,
2n=sj.get(t);if(void 0!==n)return n;let r=sS();if(!(null==r?void 0:r.isrRoutes)||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return sj.set(t,!1),!1;let o=r.isrRoutes.includes(t);return sj.set(t,o),o}(er.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=er.document.querySelector('meta[name="'.concat(e,'"]'));t&&t.remove()}catch{}}}();let s={environment:e.environment||et.default.env.SENTRY_ENVIRONMENT||(t="production","vercel-".concat(t))||"production",defaultIntegrations:(n=aD(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(sO()),r=er._sentryRewriteFramesAssetPrefixPath||"",o=et.default.env._sentryAssetPrefix||er._sentryAssetPrefix,a=et.default.env._sentryBasePath||er._sentryBasePath,i="true"===et.default.env._experimentalThirdPartyOriginStackFrames||"true"===er._experimentalThirdPartyOriginStackFrames,n.push((e=>{let{assetPrefix:t,basePath:n,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o}=e;return{...sD({iteratee:e=>{var a,i,s,l,c,u,d,p;if(o){let r="u">typeof window&&window.location?window.location.origin:"";if((null==(a=e.filename)?void 0:a.startsWith(r))&&!e.filename.endsWith(".js"))return e;if(t)(null==(i=e.filename)?void 0:i.startsWith(t))&&(e.filename=e.filename.replace(t,"app://"));else if(n)try{let{origin:t}=new URL(e.filename);t===r&&(e.filename=null==(s=e.filename)?void 0:s.replace(t,"app://").replace(n,""))}catch{}}else try{let{origin:t}=new URL(e.filename);e.filename=null==(l=e.filename)?void 0:l.replace(t,"app://").replace(r,"")}catch{}return o?((null==(c=e.filename)?void 0:c.includes("/_next"))&&(e.filename=decodeURI(e.filename)),(null==(u=e.filename)?void 0:u.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/))&&(e.in_app=!1)):((null==(d=e.filename)?void 0:d.startsWith("app:///_next"))&&(e.filename=decodeURI(e.filename)),(null==(p=e.filename)?void 0:p.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/))&&(e.in_app=!1)),e}}),name:"NextjsClientStackFrameNormalization"}})({assetPrefix:o,basePath:a,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:i})),n),release:"09cc77c7934dbd1f134c16412640a1b295585156",...e};!function(e){let t="/api/sentry";if(t&&e.dsn){let n=t$(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let o=r[1],a=r[2],i="".concat(t,"?o=").concat(o,"&p=").concat(n.projectId);a&&(i+="&r=".concat(a)),e.tunnel=i,aH&&eh.log('Tunneling events to "'.concat(i,'"'))}else aH&&eh.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),em(s,"nextjs",["nextjs","react"]);let l=aW(s),c=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;c.id="NextClient404Filter",ru(c);let u=e=>"transaction"===e.type&&e.transaction===sk?null:e;u.id="IncompleteTransactionFilter",ru(u);let d=(e,t)=>{var n,r,o;return az(null==t?void 0:t.originalException)||(null==(o=e.exception)||null==(r=o.values)||null==(n=r[0])?void 0:n.value)==="NEXT_REDIRECT"?null:e};d.id="NextRedirectErrorFilter",ru(d);try{t_().setTag("turbopack",!0)}catch{}return l},"instrumentAnthropicAiClient",0,ub,"instrumentGoogleGenAIClient",0,uI,"instrumentLangGraph",0,uC,"instrumentOpenAiClient",0,uB,"instrumentOutgoingRequests",0,ss,"instrumentSupabaseClient",0,uX,"isEnabled",0,rc,"isInitialized",0,rl,"lastEventId",0,ro,"launchDarklyIntegration",0,mb,"lazyLoadIntegration",0,l5,"linkedErrorsIntegration",0,ap,"logger",()=>u5,"makeBrowserOfflineTransport",0,h6,"makeFetchTransport",0,aL,"makeMultiplexedTransport",0,l9,"metrics",()=>u6,"moduleMetadataIntegration",0,dt,"onLoad",0,aU,"openFeatureIntegration",0,mw,"opera10StackLineParser",0,aR,"opera11StackLineParser",0,aT,"parameterize",0,u3,"reactErrorHandler",0,mN,"reactRouterV3BrowserTracingIntegration",0,m7,"reactRouterV4BrowserTracingIntegration",0,gn,"reactRouterV5BrowserTracingIntegration",0,gr,"reactRouterV6BrowserTracingIntegration",0,gZ,"reactRouterV7BrowserTracingIntegration",0,g5,"registerSpanErrorInstrumentation",0,aX,"registerWebWorker",0,mO,"replayCanvasIntegration",0,h0,"replayIntegration",0,hE,"reportPageLoaded",0,h1,"reportingObserverIntegration",0,df,"rewriteFramesIntegration",0,sD,"sendFeedback",0,sq,"setActiveSpanInBrowser",0,h2,"setContext",0,n7,"setCurrentClient",0,rA,"setExtra",0,re,"setExtras",0,n9,"setHttpStatus",0,tq,"
2setMeasurement",0,nA,"setTag",0,rn,"setTags",0,rt,"setUser",0,rr,"showReportDialog",0,dd,"spanToBaggageHeader",0,ny,"spanToJSON",0,nn,"spanToTraceHeader",0,t7,"spotlightBrowserIntegration",0,mv,"startBrowserTracingNavigationSpan",0,sp,"startBrowserTracingPageLoadSpan",0,sd,"startInactiveSpan",0,function(e){return _c()?_u():nU(e)},"startNewTrace",0,nq,"startSession",0,rd,"startSpan",0,function(e,t){return _c(t)?t(_u()):nj(e,t)},"startSpanManual",0,function(e,t){if(_c(t)){let e=_u();return t(e,()=>e.end())}return nF(e,t)},"statsigIntegration",0,mI,"supabaseIntegration",0,uY,"suppressTracing",0,nH,"tanstackRouterBrowserTracingIntegration",0,ge,"thirdPartyErrorFilterIntegration",0,dn,"uiProfiler",0,dc,"unleashIntegration",0,mk,"updateSpanName",0,np,"useProfiler",0,m0,"webWorkerIntegration",0,mC,"winjsStackLineParser",0,aE,"withActiveSpan",0,nW,"withErrorBoundary",0,m4,"withIsolationScope",0,tv,"withProfiler",0,mZ,"withScope",0,ty,"withSentryConfig",0,function(e){return e},"withSentryReactRouterV6Routing",0,g3,"withSentryReactRouterV7Routing",0,g4,"withSentryRouting",0,ga,"withServerActionInstrumentation",0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if("function"==typeof t[1]){let[e,n]=t;return _d(e,{},n)}{let[e,n,r]=t;return _d(e,n,r)}},"wrapApiHandlerWithSentryVercelCrons",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o;if(!(null==r?void 0:r[0]))return e.apply(n,r);let[a]=r,i="nextUrl"in a?a.nextUrl.pathname:a.url,s="nextUrl"in a?a.headers.get("user-agent"):a.headers["user-agent"];if(!t||!(null==s?void 0:s.includes("vercel-cron")))return e.apply(n,r);let l=t.find(e=>e.path===i);if(!(null==l?void 0:l.path)||!l.schedule)return e.apply(n,r);let c=l.path,u=ra({monitorSlug:c,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=eH()/1e3,p=()=>{ra({checkInId:u,monitorSlug:c,status:"error",duration:eH()/1e3-d})};try{o=e.apply(n,r)}catch(e){throw p(),e}return"object"==typeof o&&null!==o&&"then"in o?Promise.resolve(o).then(()=>{ra({checkInId:u,monitorSlug:c,status:"ok",duration:eH()/1e3-d})},()=>{p()}):ra({checkInId:u,monitorSlug:c,status:"ok",duration:eH()/1e3-d}),o}})},"wrapAppGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(_l())return e.apply(t,n);let[r]=n,{req:o,res:a}=r.ctx,i=_p(e);if(!o||!a)return i.apply(t,n);{let e=_f(i,o,a,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:c}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),c&&(s.pageProps._sentryBaggage=c)),s}}})},"wrapCreateBrowserRouterV6",0,g1,"wrapCreateBrowserRouterV7",0,g6,"wrapCreateMemoryRouterV6",0,g2,"wrapCreateMemoryRouterV7",0,g8,"wrapDocumentGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(_l())return e.apply(t,n);let[r]=n,{req:o,res:a}=r,i=_p(e);if(!o||!a)return i.apply(t,n);{let e=_f(i,o,a,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})},"wrapErrorGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(_l())return e.apply(t,n);let[r]=n,{req:o,res:a}=r,i=_p(e);if(!o||!a)return i.apply(t,n);{let e=_f(i,o,a,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:c}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(c&&(s._sentryTraceData=c),l&&(s._sentryBaggage=l)),s}}})},"wrapGenerationFunctionWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o,a=tg();try{var i,s;o=null==(s=t.requestAsyncStorage)||null==(i=s.getStore())?void 0:i.headers}catch{}let l=o?g9(o):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:l}}),tU(()=>e.apply(n,r),e=>{let n=nu(),{componentRoute:r,componentType:o,generationFunctionIdentifier:i}=t,s=!0;a.setTransactionName("".concat(o,".").concat(i," (").concat(r,")")),n&&(aq(e)?(s=!1,n.setStatus({code:2,message:"not_found"})):az(e)?(s=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),s&&n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:i}}})},()=>{_o(_r())})}})},"wrapGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(_l())return e.apply(t,n);let[r]=n,{req:o,res:a}=r,i=_p(e);if(!o||!a)return i.apply(t,n);{var s;let e=_f(i,o,a,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:l,baggage:c,sentryTrace:u}=null!=(s=await e.apply(t,n))?s:{};return"object"==typeof l&&null!==l&&(u&&(l._sentryTraceData=u),c&&(l._sentryBaggage=c)),l}}})},"wrapGetServerSidePropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(_l())return e.apply(n,r);let[o]=r,{req:a,res:i}=o,s=_f(_p(e),a,i,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:c,sentryTrace:u}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(u&&(l.props._sentryTraceData=u),c&&(l.props._sentryBaggage=c)),l}})},"wrapGetStaticPropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,t,n)=>_l()?e.apply(t,n):_h(_p(e),n)})},"wrapMiddlewareWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request&&new URL(e.url).pathname.startsWith(r))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return tv(r=>{let o,a,i=n[0],s=tm();if(i instanceof Request){let e;r.setSDKProcessingMetadata({normalizedRequest:(e=g9(i.headers),{method:i.method,url:i.url,query_string:_n(i.url),headers:e})}),o="middleware ".concat(i.method),a="url"}else o="middleware",a="component";s.setTransactionName(o);let l=nu();if(l){o="middleware",a="component";let e=nc(l);e&&tG(e,s,r)}return nj({name:o,op:"http.server.middleware",attributes:{[tw]:a,[tx]:"auto.function.nextjs.wrap_middleware"}},()=>tU(()=>e.apply(t,n),e=>{n4(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{_o(_r())}))})}})},"wrapPageComponentWithSentry",0,function(e){var t;return"function"==typeof e&&(null==e||null==(t=e.prototype)?void 0:t.isReactComponent)?class extends e{render(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return tv(()=>{let e=tm(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let t=t2(n);e.setContext("trace",{span_id:null==t?void 0:t.parentSpanId,trace_id:null==t?void 0:t.traceId})}try{return super.render(...t)}catch(e){throw n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}}),e}}
2)}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>tv(()=>{var r;let o=tm(),a=null==n||null==(r=n[0])?void 0:r._sentryTraceData;if(a){let e=t2(a);o.setContext("trace",{span_id:null==e?void 0:e.parentSpanId,trace_id:null==e?void 0:e.traceId})}try{return e.apply(t,n)}catch(e){throw n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}}),e}})}):e},"wrapRouteHandlerWithSentry",0,function(e,t){let{method:n,parameterizedRoute:r,headers:o}=t;return new Proxy(e,{apply:async(e,t,o)=>{let a=nu(),i=a?nc(a):void 0;return tv(tg(),()=>ty(async s=>{s.setTransactionName("".concat(n," ").concat(r));let l=await tU(()=>e.apply(t,o),e=>{az(e)||(aq(e)?(a&&tq(a,404),i&&tq(i,404)):n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{_o(_r())});try{l.status&&(a&&tq(a,l.status),i&&tq(i,l.status))}catch{}return l}))}})},"wrapServerComponentWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o=tg(),a=t.headers?g9(t.headers):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),tU(()=>e.apply(n,r),e=>{let n=nu(),{componentRoute:r,componentType:a}=t,i=!0;o.setTransactionName("".concat(a," Server Component (").concat(r,")")),n&&(aq(e)?(i=!1,n.setStatus({code:2,message:"not_found"})):az(e)?(i=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),i&&n4(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{_o(_r())})}})},"wrapUseRoutesV6",0,g0,"wrapUseRoutesV7",0,g7,"zodErrorsIntegration",0,dl],146523);var _m=e.i(146523);let _g=_m.captureException;e.s(["captureException",0,_g,"getSentry",0,function(){return _m}],424935)},998183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});function a(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,i(e));else t.set(n,i(r));return t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}},657979,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removePathPrefix",{enumerable:!0,get:function(){return o}});let r=e.r(59084);function o(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/".concat(n)}},283605,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let r=e.r(927711),o=e.r(657979),a=e.r(59084);function i(e,t){var n,i;let{basePath:s,i18n:l,trailingSlash:c}=null!=(n=t.nextConfig)?n:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};s&&(0,a.pathHasPrefix)(u.pathname,s)&&(u.pathname=(0,o.removePathPrefix)(u.pathname,s),u.basePath=s);let d=u.pathname;if(u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let e=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");u.buildId=e[0],d="index"!==e[1]?"/".concat(e.slice(1).join("/")):"/",!0===t.parseData&&(u.pathname=d)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(u.pathname):(0,r.normalizeLocalePath)(u.pathname,l.locales);u.locale=e.detectedLocale,u.pathname=null!=(i=e.pathname)?i:u.pathname,!e.detectedLocale&&u.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,r.normalizeLocalePath)(d,l.locales)).detectedLocale&&(u.locale=e.detectedLocale)}return u}},95284,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getSortedRouteObjects:function(){return s},getSortedRoutes:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});
2class a{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh("".concat(e).concat(t,"/"))).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh("".concat(e,"[").concat(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 ("'.concat(t,'" and "').concat(t,"[[...").concat(this.optionalRestSlugName,']]").')),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh("".concat(e,"[...").concat(this.restSlugName,"]/"))),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh("".concat(e,"[[...").concat(this.optionalRestSlugName,"]]/"))),n}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let r=e[0];if(r.startsWith("[")&&r.endsWith("]")){let a=r.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 ('".concat(a,"'). Did you mean ('...')?")),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),n=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('".concat(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 ('".concat(a,"').")),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function o(e,n){if(null!==e&&e!==n)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(n,"').")),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===n)throw Object.defineProperty(Error('You cannot have the same slug name "'.concat(n,'" repeat within a single dynamic path')),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===r.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'.concat(e,'" and "').concat(n,'" differ only by non-word symbols within a single dynamic path')),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(n)}if(n)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 ("[...'.concat(this.restSlugName,']" and "').concat(e[0],'" ).')),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});o(this.optionalRestSlugName,a),this.optionalRestSlugName=a,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(e[0],'").')),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});o(this.restSlugName,a),this.restSlugName=a,r="[...]"}else{if(i)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'.concat(e[0],'").')),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});o(this.slugName,a),this.slugName=a,r="[]"}}this.children.has(r)||this.children.set(r,new a),this.children.get(r)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function i(e){let t=new a;
2return e.forEach(e=>t.insert(e)),t.smoosh()}function s(e,t){let n={},r=[];for(let o=0;o<e.length;o++){let a=t(e[o]);n[a]=o,r[o]=a}return i(r).map(t=>e[n[t]])}},934109,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return _},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return w}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return n||(n=!0,t=e(...o)),t}}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function c(){let{protocol:e,hostname:t,port:n}=window.location;return"".concat(e,"//").concat(t).concat(n?":"+n:"")}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?".concat(t.slice(1).join("?")):"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&p(n))return r;if(!r)throw Object.defineProperty(Error('"'.concat(d(e),'.getInitialProps()" should resolve to an object. But found "').concat(r,'" instead.')),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class _ extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: ".concat(e)}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: ".concat(e," ").concat(t)}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}}]);
3
4//# debugId=b4d85701-59c4-77cf-d06b-e1a8f569aee0
5//# sourceMappingURL=0qd01i9jv1ftq.js.map

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