PageSourceSearch

https://ouraring.com/b/a/ecom-website/v1.136.0/_next/static/chunks/4722-a8ec7417bb40f35b.js

js ouraring.com collected 2026-10-01 08:32:34 UTC 276,143 bytes, 17 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4722],{367:(e,t)=>{"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){return new Date(1e3*parseInt(e,10))}},874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>s,sourceMiddlewarePlugin:()=>a});var r=n(71450),i=n(28769),o=n(15214);function s(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,s,a,u,l;return(0,r.YH)(this,function(c){switch(c.label){case 0:i=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,a=n,c.label=1;case 1:if(!(s<a.length))return[3,4];return u=a[s],[4,function(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,s,a;return(0,r.YH)(this,function(u){switch(u.label){case 0:return i=!1,s=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(s=null),e&&(s=e.obj)}})];case 1:return u.sent(),i||null===s||(s.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((a={})[e]=!1,a))),[2,s]}})})}(i,u)];case 2:if(null===(l=c.sent()))return[2,null];i=l,c.label=3;case 3:return s++,[3,1];case 4:return[2,i]}})})}function a(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var s;return(0,r.YH)(this,function(r){switch(r.label){case 0:return s=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){s=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!s)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},1132:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(78419),i=n(27122),o=n(51217),s=n(81725),a=n(2257),u=n(49636),l=n(43275);function c(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var d=n(28385),f=n(62234),p=n(86334);let h=(0,r._C)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,c,d;n=e,r=t,(0,o.m7)()&&(0,s.ur)(e=>{if((0,a.KU)()!==n)return;let{response:t,args:o,error:s,virtualError:u}=e,[l,c]=o;t&&function(e,t,n,r,o){if(y(e,n.status,n.url)){var s,a;let e,u,l,c,d=(s=t,!(a=r)&&s instanceof Request||s instanceof Request&&s.bodyUsed?s:new Request(s,a));b()&&([e,l]=g("Cookie",d),[u,c]=g("Set-Cookie",n));let f=m({url:d.url,method:d.method,status:n.status,requestHeaders:e,responseHeaders:u,requestCookies:l,responseCookies:c,error:o});(0,i.r)(f)}}(r,l,t,c,s||u)},!1),c=e,d=t,"XMLHttpRequest"in u.O&&(0,f.Mn)(e=>{if((0,a.KU)()!==c)return;let{error:t,virtualError:n}=e,r=e.xhr,o=r[f.Er];if(!o)return;let{method:s,request_headers:u}=o;try{!function(e,t,n,r,o){if(y(e,t.status,t.responseURL)){let e,s,a;if(b()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(s=v(e))}catch{}try{a=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch{}e=r}let u=m({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:s,error:o});(0,i.r)(u)}}(d,r,s,u,t||n)}catch(e){p.T&&l.Yz.warn("Error while extracting response event form XHR response",e)}})}}});function g(e,t){let n,r=function(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);try{let t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=v(t))}catch{}return[r,n]}function v(e){return e.split("; ").reduce((e,t)=>{let[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function y(e,t,n){var r,i;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!function(e,t){var n,r,i,o;let s=t?.getDsn(),a=t?.getOptions().tunnel;return n=e,!!(r=s)&&n.includes(r.host)||(i=e,!!(o=a)&&c(i)===c(o))}(n,(0,a.KU)())}function m(e){let t=(0,a.KU)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,o={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,d.M6)(o,{type:"http.client",handled:!1}),o}function b(){let e=(0,a.KU)();return!!e&&!!e.getOptions().sendDefaultPii}},3155:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})}
1,4102:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,M:()=>s});var r=n(71450),i=n(72163),o="onRemoveFromFuture",s=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){var n,r,i,s,a,u=this;if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var l=this.updateAttempts(e);if(l>this.maxAttempts||this.includes(e))return!1;var c=(n={attempt:l-1},r=Math.random()+1,i=n.minTimeout,s=n.factor,Math.min(r*(void 0===i?500:i)*Math.pow(void 0===s?2:s,n.attempt),void 0===(a=n.maxTimeout)?1/0:a));return t>0&&c<t&&(c=t),setTimeout(function(){u.queue.push(e),u.future=u.future.filter(function(t){return t.id!==e.id}),u.emit(o)},c),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!=(t=this.seen[e.id])?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},6266:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(43770)),o=n(59284);function s(e,t){o.Facade.call(this,e,t)}t.Alias=s,i.default(s,o.Facade),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId},7833:(e,t,n)=>{"use strict";let r,i;n.d(t,{S3:()=>iV});var o,s,a,u,l=n(95155),c=n(12115);let d=["C0002","C0003","C0004","C0005"],f=["C0001","C0002","C0003","C0004","C0005"];var p={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},h=console,g={};Object.keys(p).forEach(function(e){g[e]=h[e]});var v="Datadog Browser SDK:",y={debug:g.debug.bind(h,v),log:g.log.bind(h,v),info:g.info.bind(h,v),warn:g.warn.bind(h,v),error:g.error.bind(h,v)};function m(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){y.error(t,e)}}}!function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.PAGE_STATES="page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason",e.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",e.SCROLLMAP="scrollmap",e.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",e.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",e.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(D||(D={}));var b=new Set;function w(e){return 0!==e&&100*Math.random()<=e}function _(e){return"number"==typeof e&&e>=0&&e<=100}function S(){return new Date().getTime()}function E(){return performance.now()}function C(){return{relative:E(),timeStamp:S()}}function x(){return void 0===N&&(N=performance.timing.navigationStart),N}var O=/[^\u0000-\u007F]/;function k(e){return O.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function T(e,t){return -1!==e.indexOf(t)}function L(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(e){return t.push(e)});else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function M(e){return Object.keys(e).map(function(t){return e[t]})}function P(e,t){return e.slice(0,t.length)===t}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function A(e){return 0===Object.keys(e).length}function I(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}function R(e,t){var n,r=I();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}var D,N,H,F=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},z=!1;function q(e){z=e}function B(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(H?U(r):r).apply(this,e)}}function U(e){return function(){return $(e,this,arguments)}}function $(e,t,n){try{return e.apply(t,n)}catch(e){if(Y(e),H)try{H(e)}catch(e){Y(e)}}}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];z&&y.error.apply(y,F(["[MONITOR]"],e,!1))}function G(e,t){return R(I(),"setTimeout")(U(e),t)}function J(e){R(I(),"clearTimeout")(e)}function K(e,t){return R(I(),"setInterval")(U(e),t)}function W(e){R(I(),"clearInterval")(e)}var X=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}}
1,e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new X(function(){var t=e.map(function(e){return e.subscribe(function(e){return n.notify(e)})});return function(){return t.forEach(function(e){return e.unsubscribe()})}});return n}function Q(e,t,n){var r,i,o=!1;return{throttled:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if(o){r=n;return}e.apply(void 0,n),o=!0,i=G(function(){r&&e.apply(void 0,r),o=!1,r=void 0},t)},cancel:function(){J(i),o=!1,r=void 0}}}function Z(){}function ee(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ee)}var et,en=144e5,er=9e5;function ei(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),s=r&&r.crossSite?"none":"strict",a=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(s).concat(a).concat(u)}function eo(e){var t,n;return t=document.cookie,(n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t))?n[1]:void 0}function es(e,t){ei(e,"",0,t)}var ea="_dd_s",eu=/^([a-z]+)=([a-z0-9-]+)$/;function el(e){e.expire=String(S()+er)}function ec(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)}).join("&")}function ed(e){var t,n={};return(t=e)&&(-1!==t.indexOf("&")||eu.test(t))&&e.split("&").forEach(function(e){var t=eu.exec(e);if(null!==t){var r=t[1],i=t[2];n[r]=i}}),n}function ef(){return ed(eo(ea))}function ep(e){localStorage.setItem(ea,ec(e))}function eh(){return ed(localStorage.getItem(ea))}function eg(){localStorage.removeItem(ea)}var ev,ey,em=[];function eb(e,t,n){void 0===n&&(n=0);var r=t.isLockEnabled,i=t.retrieveSession,o=t.persistSession,s=t.clearSession;if(ey||(ey=e),e!==ey)return void em.push(e);if(r&&n>=100)return void e_(t);var a,u,l=i();if(r&&(l.lock||(u=ee(),l.lock=u,o(l),(l=i()).lock!==u)))return void ew(e,t,n);var c=e.process(l);if(r&&(l=i()).lock!==u)return void ew(e,t,n);if(c&&(A(c)?s():(el(c),o(c))),r&&!(c&&A(c))){if((l=i()).lock!==u)return void ew(e,t,n);delete l.lock,o(l),c=l}null==(a=e.after)||a.call(e,c||l),e_(t)}function ew(e,t,n){G(function(){eb(e,t,n+1)},10)}function e_(e){ey=void 0;var t=em.shift();t&&eb(t,e)}function eS(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=eE(Object.prototype),i=eE(Array.prototype),o=eE(Object.getPrototypeOf(e)),s=eE(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),o(),s()}}function eE(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):Z}function eC(e){return function(e,t){var n=function(){if(void 0===ex)try{var e=new eO("http://test/path");ex="http://test/path"===e.href}catch{ex=!1}return ex?eO:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(eS({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(void 0!==t){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,r.head.appendChild(o),r.body.appendChild(i)}return i.href=e,i}(e,function(){var e=window.location;if(e.origin&&"null"!==e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}()).href}var ex,eO=URL,ek="datadoghq.com",eT={logs:"logs",rum:"rum",sessionReplay:"session-replay"},eL={logs:"logs",rum:"rum",sessionReplay:"replay"};function eM(e,t,n){var r=function(e,t){var n="/api/v2/".concat(eL[t]),r=e.proxy,i=e.proxyUrl;if(r){var o=eC(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}var s=function(e,t){var n=e.site,r=void 0===n?ek:n,i=e.internalAnalyticsSubdomain;if(i&&r===ek)return"".concat(i,".").concat(ek);var o=r.split("."),s=o.pop(),a="ap1.datadoghq.com"!==r?"".concat(eT[t],"."):"";return"".concat(a,"browser-intake-").concat(o.join("-"),".").concat(s)}(e,t);if(void 0===r&&i){var a=eC(i);return function(e){return"".concat(a,"?ddforward=").concat(encodeURIComponent("https://".concat(s).concat(n,"?").concat(e)))}}return function(e){return"https://".concat(s).concat(n,"?").concat(e)}}(e,t);return{build:function(i,o){var s,a,u,l,c,d,f,p,h,g,v,y,m;return r((s=e,a=t,u=n,l=i,c=o,f=s.clientToken,p=s.internalAnalyticsSubdomain,h=c.retry,g=c.flushReason,v=c.encoding,y=["sdk_version:".concat("4.50.1"),"api:".concat(l)].concat(u),g&&(d=D.COLLECT_FLUSH_REASON,b.has(d))&&y.push("flush_reason:".concat(g)),h&&y.push("retry_count:".concat(h.count),"retry_after:".concat(h.lastFailureStatus)),m=["ddsource=browser","ddtags=".concat(encodeURIComponent(y.join(","))),"dd-api-key=".concat(f),"dd-evp-origin-version=".concat(encodeURIComponent("4.50.1")),"dd-evp-origin=browser","dd-request-id=".concat(ee())],v&&m.push("dd-evp-encoding=".concat(v)),"rum"===a&&m.push("batch_time=".concat(S())),p&&m.reverse(),m.join("&")))},urlPrefix:r(""),endpointType:t}}var eP=/[^a-z0-9_:./-]/;function ej(e,t){var n=200-e.length-1;(t.length>n||eP.test(t))&&y.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function eA(e){var t=[],n=eB(e,"stack"),r=String(e);return n&&P(n,r)&&(n=n.slice(r.length)),n&&n.split(`
2`).forEach(function(e){var n=function(e){var t=eD.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=eN.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=eH.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=eF.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=ez.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=eq.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);
2n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:eB(e,"message"),name:eB(e,"name"),stack:t}}var eI="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",eR="(?::(\\d+))",eD=RegExp("^\\s*at (.*?) ?\\(".concat(eI).concat(eR,"?").concat(eR,"?\\)?\\s*$"),"i"),eN=new RegExp("\\((\\S*)".concat(eR).concat(eR,"\\)")),eH=RegExp("^\\s*at ?".concat(eI).concat(eR,"?").concat(eR,"??\\s*$"),"i"),eF=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ez=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,eq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eB(e,t){if(!("object"!=typeof e||!e||!(t in e))){var n=e[t];return"string"==typeof n?n:void 0}}function eU(e,t,n){var r=e[t],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return e[t]=o,{stop:function(){e[t]===o?e[t]=r:i=r}}}function e$(e,t,n){var r=n.before,i=n.after;return eU(e,t,function(e){return function(){var t,n=arguments;return r&&$(r,this,n),"function"==typeof e&&(t=e.apply(this,n)),i&&$(i,this,n),t}})}var eY=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function eG(e,t){void 0===t&&(t=225280);var n,r=eE(Object.prototype),i=eE(Array.prototype),o=[],s=new WeakMap,a=eJ(e,"$",void 0,o,s),u=(null==(n=JSON.stringify(a))?void 0:n.length)||0;if(u>t)return void eK(t,"discarded",e);for(;o.length>0&&u<t;){var l=o.shift(),c=0;if(Array.isArray(l.source))for(var d=0;d<l.source.length;d++){var f=eJ(l.source[d],l.path,d,o,s);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=c,c=1,u>t){eK(t,"truncated",e);break}l.target[d]=f}else for(var d in l.source)if(Object.prototype.hasOwnProperty.call(l.source,d)){var f=eJ(l.source[d],l.path,d,o,s);if(void 0!==f&&(u+=JSON.stringify(f).length+c+d.length+3,c=1),u>t){eK(t,"truncated",e);break}l.target[d]=f}}return r(),i(),a}function eJ(e,t,n,r,i){var o,s=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch{}return e}(e);if(!s||"object"!=typeof s){return"bigint"==typeof(o=s)?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o}var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch{}return"[Unserializable]"}(s);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var u=void 0!==n?"".concat(t,".").concat(n):t,l=Array.isArray(s)?[]:{};return i.set(e,u),r.push({source:s,target:l,path:u}),l}function eK(e,t,n){y.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var eW="No stack, consider using an instance of Error";function eX(e){var t,n,r,i,o,s,a=e.stackTrace,u=e.originalError,l=e.handlingStack,c=e.startClocks,d=e.nonErrorPrefix,f=e.source,p=e.handling,h=u instanceof Error,g=(t=a,n=h,r=d,i=u,t?.message&&t?.name?t.message:n?"Empty message":"".concat(r," ").concat(eS(eG(i)))),v=(o=h,void 0!==(s=a)&&(o||s.stack.length>0&&(s.stack.length>1||void 0!==s.stack[0].url)))?eQ(a):eW,y=h?function(e,t){for(var n=e,r=[];n?.cause instanceof Error&&r.length<10;){var i=eA(n.cause);r.push({message:n.cause.message,source:t,type:i?.name,stack:i&&eQ(i)}),n=n.cause}return r.length?r:void 0}(u,f):void 0,m=a?.name,b=eV(u);return{startClocks:c,source:f,handling:p,handlingStack:l,originalError:u,type:m,message:g,stack:v,causes:y,fingerprint:b}}function eV(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function eQ(e){var t=eZ(e);return e.stack.forEach(function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+=`
3  at `.concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)}),t}function eZ(e){return"".concat(e.name||"Error",": ").concat(e.message)}var e0={AGENT:"agent",CONSOLE:"console",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function e1(e,t,n,r,i){var o=void 0===i?{}:i,s=o.once,a=o.capture,u=o.passive,l=U(s?function(e){f(),r(e)}:r),c=u?{capture:a,passive:u}:a,d=R(t,"addEventListener");function f(){var e=R(t,"removeEventListener");n.forEach(function(n){return e.call(t,n,l,c)})}return n.forEach(function(e){return d.call(t,e,l,c)}),{stop:f}}var e2={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function e3(e,t,n,r,i){return n?eQ({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}function e4(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function e5(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function e6(e,t,n){if(void 0===n&&(n=function(){if("u">typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o<t.length;++o)i[o]=e6(i[o],t[o],n);return i}var s="object"===e5(e)?e:{};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(s[a]=e6(s[a],t[a],n));return s}}function e8(e){return e6(void 0,e)}function e7(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r=0;r<e.length;r++){var i=e[r];null!=i&&(n=e6(n,i))}return n}var e9,te={log:"log",configuration:"configuration"},tt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],tn=["ddog-gov.com"],tr={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function ti(e,t){Y(p.debug,e,t),ts(j({type:te.log,message:e,status:"debug"},t))}function to(e,t){ts(j({type:te.log,status:"error"},function(e){if(e instanceof Error){var t,n=eA(e);return{error:{kind:n.name,stack:eQ(((t=n).stack=t.stack.filter(function(e){return!e.url||tt.some(function(t){return P(e.url,t)})}),t))},message:n.message}}return{error:{stack:eW},message:"".concat("Uncaught"," ").concat(eS(e))}}(e),t))}function ts(e){e9&&tr.sentEventCount<tr.maxEventsPerPage&&(tr.sentEventCount+=1,e9(e))}var ta=1/0,tu=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=K(function(){return n.clearOldValues()},6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:ta,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=ta);for(var t=0,n=this.entries;t<n.length;t++){var r=n[t];if(r.startTime<=e){if(e<=r.endTime)return r.value;break}}},e.prototype.closeActive=function(e){var t=this.entries[0];t&&t.endTime===ta&&t.close(e)},e.prototype.findAll=function(e,t){void 0===e&&(e=ta),void 0===t&&(t=0);var n=e+t;return this.entries.filter(function(t){return t.startTime<=n&&e<=t.endTime}).map(function(e){return e.value})},e.prototype.reset=function(){this.entries=[]},e.prototype.stop=function(){W(this.clearOldValuesInterval)},e.prototype.clearOldValues=function(){for(var e=E()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()},e}(),tl=3145728;function tc(e,t,n,r,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?td(e,t,n,{onSuccess:function(){return tf(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,i){2===t.transportStatus&&G(function(){td(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,tf(1,t,n,r,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,i)}})},t.currentBackoffTime)}(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function td(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){var r;
3t.bandwidthMonitor.remove(e),"opaque"!==(r=n).type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o()):(t.transportStatus=0,i())})}function tf(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(tl/1048576,"MiB"),source:e0.AGENT,startClocks:C()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=tp();o.size()>0;)tc(o.dequeue(),t,n,r,i)}function tp(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=tl}}}var th=!1;function tg(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),e1(e,i,["loadend"],function(){r?.({status:i.status})},{once:!0}),i.send(n)}function tv(){var e=I().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function ty(e){void 0===e&&(e=null==(t=I().location)?void 0:t.hostname);var t,n=tv();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,r;return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r)})}var tm={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"},tb=function(){function e(e,t,n){var r=this;this.request=e,this.flushController=t,this.messageBytesLimit=n,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(e){return r.flush(e)})}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t,n=this.pushOnlyBuffer.concat(M(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var r={data:n.join(`
4`),bytesCount:e.bytesCount,flushReason:e.reason};(t=e.reason,T(M(tm),t))?this.request.sendOnExit(r):this.request.send(r)},e.prototype.addOrUpdate=function(e,t){var n=this.process(e),r=n.processedMessage,i=n.messageBytesCount;if(i>=this.messageBytesLimit)return void y.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));this.hasMessageFor(t)&&this.remove(t),this.push(r,i,t)},e.prototype.process=function(e){var t=eS(e),n=k(t);return{processedMessage:t,messageBytesCount:n}},e.prototype.push=function(e,t,n){var r=+(this.flushController.messagesCount>0);this.flushController.notifyBeforeAddMessage(t+r),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.flushController.notifyAfterAddMessage()},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=k(t),r=+(this.flushController.messagesCount>1);this.flushController.notifyAfterRemoveMessage(n+r)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function tw(e,t,n,r,i,o){var s=u(e,t.endpoint),a=n&&u(e,n.endpoint);function u(e,t){var n,s,a;return new tb((n=e.batchBytesLimit,s={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:tp(),queueFullReported:!1},a=function(r,i){var o,s,a,u,l;return o=e,s=t,a=n,u=r,l=i,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}()&&u.bytesCount<a?fetch(s.build("fetch",u),{method:"POST",body:u.data,keepalive:!0,mode:"cors"}).then(U(function(e){return l?.({status:e.status,type:e.type})}),U(function(){tg(o,s.build("xhr",u),u.data,l)})):tg(o,s.build("xhr",u),u.data,l))},{send:function(e){tc(e,s,a,t.endpointType,r)},sendOnExit:function(r){!function(e,t,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var i,o=t.build("beacon",r);if(navigator.sendBeacon(o,r.data))return}catch(e){i=e,th||(th=!0,to(i))}tg(e,t.build("xhr",r),r.data)}(e,t,n,r)}}),function(e){var t,n=e.messagesLimit,r=e.bytesLimit,i=e.durationLimit,o=e.pageExitObservable,s=e.sessionExpireOb
4servable,a=o.subscribe(function(e){return f(e.reason)}),u=s.subscribe(function(){return f("session_expire")}),l=new X(function(){return function(){a.unsubscribe(),u.unsubscribe()}}),c=0,d=0;function f(e){if(0!==d){var t=d,n=c;d=0,c=0,p(),l.notify({reason:e,messagesCount:t,bytesCount:n})}}function p(){J(t),t=void 0}return{flushObservable:l,get messagesCount(){return d},notifyBeforeAddMessage:function(e){c+e>=r&&f("bytes_limit"),d+=1,c+=e,void 0===t&&(t=G(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(){d>=n?f("messages_limit"):c>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),e.messageBytesLimit)}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),a&&t&&a.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),a&&a.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),a?.stop()}}}var t_,tS=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),tE=new WeakMap;function tC(e,t){tE.set(this,{state:"open",method:e,url:eC(String(t))})}function tx(e,t){var n=this,r=tE.get(this);if(r){r.state="start",r.startTime=E(),r.startClocks=C(),r.isAborted=!1,r.xhr=this;var i=!1,o=e$(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&s()}}).stop,s=function(){if(a(),o(),!i){var e;i=!0,r.state="complete",e=r.startClocks.timeStamp,r.duration=S()-e,r.status=n.status,t.notify(j({},r))}},a=e1(e,this,["loadend"],s,void 0).stop;t.notify(r)}}function tO(){var e=tE.get(this);e&&(e.isAborted=!0)}function tk(e,t,n){var r=n&&n.method||t instanceof Request&&t.method||"GET",i=t instanceof Request?t.url:eC(String(t)),o={state:"start",init:n,input:t,method:r,startClocks:C(),url:i};return e.notify(o),o}function tT(e,t,n){var r=function(t){n.state="resolve","stack"in t||t instanceof Error?(n.status=0,n.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,n.error=t):"status"in t&&(n.response=t,n.responseType=t.type,n.status=t.status,n.isAborted=!1),e.notify(n)};t.then(U(r),U(r))}var tL,tM,tP={},tj=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach(function(e){return e()}),this.buffer.length=0},e}(),tA=((tM={})[0]="feature flag evaluation",tM[1]="user",tM[2]="global context",tM[3]="logger context",tM);function tI(e,t){void 0===t&&(t=k);var n,r={},i=!1,o=new X,s=Q(function(r){n=t(eS(r)),i||(i=n>3072&&(y.warn("The ".concat(tA[e]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0))},200).throttled,a={getBytesCount:function(){return n},get:function(){return r},add:function(e,t){r[e]=t,s(r),o.notify()},remove:function(e){delete r[e],s(r),o.notify()},set:function(e){s(r=e),o.notify()},getContext:function(){return e8(r)},setContext:function(e){"object"===e5(e)?s(r=eG(e)):a.clearContext(),o.notify()},setContextProperty:function(e,t){r[e]=eG(t),s(r),o.notify()},removeContextProperty:function(e){delete r[e],s(r),o.notify()},clearContext:function(){r={},n=0,o.notify()},changeObservable:o};return a}var tR=[];function tD(e,t,n,r){void 0===r&&(r=k);var i,o,s=(i=t,o=n,"".concat("_dd_c","_").concat(i,"_").concat(o)),a=tI(n,r);return u(),tR.push(e1(e,window,["storage"],function(e){s===e.key&&u()},void 0)),a.changeObservable.subscribe(function(){localStorage.setItem(s,JSON.stringify(a.getContext()))}),a;function u(){var e=localStorage.getItem(s),t=null!==e?JSON.parse(e):{};a.setContext(t)}
4}function tN(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||eo("datadog-synthetics-injects-rum"))}function tH(e){var t=j({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function tF(e,t,n){var r;return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(function(e){return T(t,e)})?"all"===e?t:(r=new Set,e.forEach(function(e){return r.add(e)}),L(r)):void y.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'))}var tz=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},tq={debug:"debug",error:"error",info:"info",warn:"warn"},tB={console:"console",http:"http"},tU=Object.keys(tq),t$=function(){function e(e,t,n,r,i){void 0===n&&(n=tB.http),void 0===r&&(r=tq.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=n,this.level=r,this.contextManager=tI(3),this.contextManager.set(j({},i,t?{logger:{name:t}}:void 0))}return e.prototype.log=function(e,t,n,r){if(void 0===n&&(n=tq.info),n===tq.error&&(i={origin:e0.LOGGER}),null!=r){var i,o=eX({stackTrace:r instanceof Error?eA(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:e0.LOGGER,handling:"handled",startClocks:C()});i={origin:e0.LOGGER,stack:o.stack,kind:o.type,message:o.message}}var s=eG(t),a=i?e7({error:i},s):s;this.handleLogStrategy({message:eG(e),context:a,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,tq.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,tq.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,tq.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,tq.error,n)},e.prototype.setContext=function(e){this.contextManager.set(e)},e.prototype.getContext=function(){return this.contextManager.get()},e.prototype.addContext=function(e,t){this.contextManager.add(e,t)},e.prototype.removeContext=function(e){this.contextManager.remove(e)},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},tz([B],e.prototype,"log",null),e}(),tY="logs";function tG(e){return w(e.sessionSampleRate)?"1":"0"}var tJ,tK=((tJ={})[tq.debug]=0,tJ[tq.info]=1,tJ[tq.warn]=2,tJ[tq.error]=3,tJ);function tW(e,t,n){var r=n.getHandler(),i=Array.isArray(r)?r:[r];return tK[e]>=tK[n.getLevel()]&&T(i,t)}var tX=!1;function tV(e){var t=window;if(tN()){var n,r,i=o(t.DD_RUM_SYNTHETICS);return i||tX||(tX=!0,ti("Logs sent before RUM is injected by the synthetics worker",{testId:"string"==typeof(n=window._DATADOG_SYNTHETICS_PUBLIC_ID||eo("datadog-synthetics-public-id"))?n:void 0,resultId:"string"==typeof(r=window._DATADOG_SYNTHETICS_RESULT_ID||eo("datadog-synthetics-result-id"))?r:void 0})),i}return o(t.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var tQ,tZ,t0=((tQ={})[p.log]=tq.info,tQ[p.debug]=tq.debug,tQ[p.info]=tq.info,tQ[p.warn]=tq.warn,tQ[p.error]=tq.error,tQ),t1=((tZ={})[e2.cspViolation]=tq.error,tZ[e2.intervention]=tq.error,tZ[e2.deprecation]=tq.warn,tZ);function t2(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var t3=function(e){var t,n,r=!1,i=tI(2),o=tI(1),s={},a=function(){},u=new tj,l=function(e,t,n,r){void 0===n&&(n=e8(f())),void 0===r&&(r=S()),u.add(function(){return l(e,t,n,r)})},c=function(){},d=new t$(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,e)});function f(){return{view:{referrer:document.referrer,url:window.location.href},context:i.getContext(),user:o.getContext()}}return t={logger:d,init:U(function(t){if(!t)return void y.error("Missing configuration");if(c=function(){return e8(t)},ty()&&(t=j({},t,{clientToken:"empty"})),s=t,!r||(s.silentMultipleInit||y.error("DD_LOGS is already initialized."),0)){var n,s,h=function(e){var t=function(e){if(!e||!e.clientToken)return void y.error("Client Token is not configured, we will not send any data.");var t,n,r,i,o,s,a,u,l,c,d,f,p,h,g,v,w,S,E=null!=(v=e.sessionSampleRate)?v:e.sampleRate;if(void 0!==E&&!_(E))return void y.error("Session Sample Rate should be a number between 0 and 100");if(void 0!==e.telemetrySampleRate&&!_(e.telemetrySampleRate))return void y.error("Telemetry Sample Rate should be a number between 0 and 100");if(void 0!==e.telemetryConfigurationSampleRate&&!_(e.telemetryConfigurationSampleRate))return void y.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return Array.isArray(e.enableExperimentalFeatures)&&e.enableExperimentalFeatures.filter(function(e){var t;return Object.keys(t=D).some(function(n){return t[n]===e})}
4).forEach(function(e){b.add(e)}),j({beforeSend:e.beforeSend&&m(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:(t=e,(o=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(ee()),n="test";ei(t,n,6e4,e);var r=eo(t)===n;return es(t,e),r}catch(e){return y.error(e),!1}}(((r={}).secure=!!(n=t).useSecureSessionCookie||!!n.useCrossSiteSessionCookie,r.crossSite=!!n.useCrossSiteSessionCookie,n.trackSessionAcrossSubdomains&&(r.domain=function(){if(void 0===ev){for(var e="dd_site_test_".concat(ee()),t=window.location.hostname.split("."),n=t.pop();t.length&&!eo(e);)ei(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});es(e,{domain:n}),ev=n}return ev}()),i=r))?void 0:{type:"Cookie",cookieOptions:i})||!t.allowFallbackToLocalStorage||(o=function(){try{var e=ee(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch{return}}()),o),sessionSampleRate:E??100,telemetrySampleRate:null!=(w=e.telemetrySampleRate)?w:20,telemetryConfigurationSampleRate:null!=(S=e.telemetryConfigurationSampleRate)?S:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(u=e.env,l=e.service,c=e.version,d=e.datacenter,f=[],u&&f.push(ej("env",u)),l&&f.push(ej("service",l)),c&&f.push(ej("version",c)),d&&f.push(ej("datacenter",d)),p=f,g=M(h={logsEndpointBuilder:eM(s=e,"logs",a=p),rumEndpointBuilder:eM(s,"rum",a),sessionReplayEndpointBuilder:eM(s,"sessionReplay",a)}).map(function(e){return e.urlPrefix}),j({isIntakeUrl:function(e){return g.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,n){if(e.replica){var r=j({},e,{site:ek,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:eM(r,"logs",n),rumEndpointBuilder:eM(r,"rum",n)};return t.push.apply(t,M(i).map(function(e){return e.urlPrefix})),j({applicationId:e.replica.applicationId},i)}}(e,g,p),site:e.site||ek},h)))}(e),n=tF(e.forwardConsoleLogs,M(p),"Forward Console Logs"),r=tF(e.forwardReports,M(e2),"Forward Reports");if(!(!t||!n||!r))return e.forwardErrorsToLogs&&!T(n,p.error)&&n.push(p.error),j({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768},t)}(t);if(h){if(t.storeContextsAcrossPages){var g=i.getContext();(i=tD(h,tY,2)).setContext(e7(i.getContext(),g));var v=o.getContext();(o=tD(h,tY,1)).setContext(e7(o.getContext(),v))}l=(n=e(t,h,f,d)).handleLog,a=n.getInternalContext,u.drain(),r=!0}}}),getLoggerGlobalContext:U(function(){return i.get()}),getGlobalContext:U(function(){return i.getContext()}),setLoggerGlobalContext:U(function(e){return i.set(e)}),setGlobalContext:U(function(e){return i.setContext(e)}),addLoggerGlobalContext:U(function(e,t){return i.add(e,t)}),setGlobalContextProperty:U(function(e,t){return i.setContextProperty(e,t)}),removeLoggerGlobalContext:U(function(e){return i.remove(e)}),removeGlobalContextProperty:U(function(e){return i.removeContextProperty(e)}),clearGlobalContext:U(function(){return i.clearContext()}),createLogger:U(function(e,t){return void 0===t&&(t={}),s[e]=new t$(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,e)},eG(e),t.handler,t.level,eG(t.context)),s[e]}),getLogger:U(function(e){return s[e]}),getInitConfiguration:U(function(){return c()}),getInternalContext:U(function(e){return a(e)}),setUser:U(function(e){var t;(t="object"===e5(e))||y.error("Unsupported user:",e),t&&o.setContext(tH(e))}),getUser:U(function(){return o.getContext()}),setUserProperty:U(function(e,t){var n,r=tH(((n={})[e]=t,n))[e];o.setContextProperty(e,r)}),removeUserProperty:U(function(e){return o.removeContextProperty(e)}),clearUser:U(function(){return o.clearContext()})},Object.defineProperty(n=j({version:"4.50.1",onReady:function(e){e()}},t),"_setDebug",{get:function(){return q},enumerable:!1}),n}(function(e,t,n,r){var i,o,s,a,u,l=new tS,c=[];l.subscribe(1,function(e){return e4("logs",e)});var d=function(e){l.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{origin:e0.AGENT},origin:e0.AGENT,status:tq.error}}),ti("Error reported to customer",{"error.message":e.message})},f=z=new X(function(){var e,n=(e=D.PAGEHIDE,b.has(e)),r=e1(t,window,["visibilitychange","freeze","pagehide"],function(e){"pagehide"===e.type&&n?z.notify({reason:tm.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?z.notify({reason:tm.HIDDEN}):"freeze"===e.type&&z.notify({reason:tm.FROZEN})},{capture:!0}).stop,i=Z;
4return n||(i=e1(t,window,["beforeunload"],function(){z.notify({reason:tm.UNLOADING})},void 0).stop),function(){r(),i()}}),v=!t.sessionStoreStrategyType||ty()||tN()?(q="1"===tG(t)?{}:void 0,{findTrackedSession:function(){return q},expireObservable:new X}):{findTrackedSession:function(e){var t=B.findActiveSession(e);return t&&"1"===t.trackingType?{id:t.id}:void 0},expireObservable:(B=function(e,t,n){var r,i,o,s=function(e,t,n){var r,i,o,s,a,u=new X,l=new X,c="Cookie"===e.type?(s=e.cookieOptions,function(e){if(!eo(ea)){var t=eo("_dd"),n=eo("_dd_r"),r=eo("_dd_l"),i={};t&&(i.id=t),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),A(i)||(el(i),e.persistSession(i))}}(a={isLockEnabled:et??(et=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)),persistSession:(r=s,function(e){ei(ea,ec(e),er,r)}),retrieveSession:ef,clearSession:(i=s,function(){es(ea,i)})}),a):{isLockEnabled:!1,persistSession:ep,retrieveSession:eh,clearSession:eg},d=c.clearSession,f=c.retrieveSession,p=K(function(){eb({process:function(e){return y(e)?void 0:{}},after:g},c)},1e3),h=y(o=f())?o:{};function g(e){var n;return y(e)||(e={}),v()&&((n=e,h.id!==n.id||h[t]!==n[t])?(h={},l.notify()):h=e),e}function v(){return void 0!==h[t]}function y(e){return(void 0===e.created||S()-Number(e.created)<en)&&(void 0===e.expire||S()<Number(e.expire))}return{expandOrRenewSession:Q(function(){var e;eb({process:function(r){var i,o,s,a,u=g(r);return s=(o=n((i=u)[t])).trackingType,a=o.isTracked,i[t]=s,a&&!i.id&&(i.id=ee(),i.created=String(S())),e=a,u},after:function(t){e&&!v()&&(h=t,u.notify()),h=t}},c)},1e3).throttled,expandSession:function(){eb({process:function(e){return v()?g(e):void 0}},c)},getSession:function(){return h},renewObservable:u,expireObservable:l,expire:function(){d(),g({})},stop:function(){W(p)}}}(e.sessionStoreStrategyType,t,n),a=new tu(en);function u(){return{id:s.getSession().id,trackingType:s.getSession()[t]}}return s.renewObservable.subscribe(function(){a.add(u(),E())}),s.expireObservable.subscribe(function(){a.closeActive(E())}),s.expandOrRenewSession(),a.add(u(),{relative:0,timeStamp:x()}.relative),e1(e,window,["click","touchstart","keydown","scroll"],function(){return s.expandOrRenewSession()},{capture:!0,passive:!0}).stop,r=e,i=function(){return s.expandSession()},o=function(){"visible"===document.visibilityState&&i()},e1(r,document,["visibilitychange"],o,void 0).stop,K(o,6e4),{findActiveSession:function(e){return a.find(e)},renewObservable:s.renewObservable,expireObservable:s.expireObservable,expire:s.expire}}(t,"logs",function(e){var n,r,i,o;return n=t,{trackingType:o="0"===(i=r=e)||"1"===i?r:tG(n),isTracked:"1"===o}})).expireObservable},y=function(e,t,n,r){var i,o,s,a,u,l=(i="browser-logs-sdk",o=e,a=new X,tr.telemetryEnabled=!T(tn,o.site)&&w(o.telemetrySampleRate),tr.telemetryConfigurationEnabled=tr.telemetryEnabled&&w(o.telemetryConfigurationSampleRate),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},e9=function(e){if(tr.telemetryEnabled){var t,n,r,o=(t=i,n=e,r=u,e7({type:"telemetry",date:S(),service:t,version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:e7(n,{runtime_env:r}),experimental_features:L(b)},void 0!==s?s():{}));a.notify(o),e4("telemetry",o)}},H=to,j(tr,{maxEventsPerPage:o.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){s=e},observable:a,enabled:tr.telemetryEnabled}),c=[];if(ty()){var d=tv(),f=l.observable.subscribe(function(e){return d.send("internal_telemetry",e)});c.push(function(){return f.unsubscribe()})}else{var p=tw(e,{endpoint:e.rumEndpointBuilder},e.replica&&{endpoint:e.replica.rumEndpointBuilder},t,n,r);c.push(function(){return p.stop()});var h=l.observable.subscribe(function(t){return p.add(t,"datad0g.com"===e.site)});c.push(function(){return h.unsubscribe()})}return{telemetry:l,stop:function(){c.forEach(function(e){return e()})}}}(t,d,f,v.expireObservable),m=y.telemetry,_=y.stop;c.push(function(){return _()}),m.setContextProvider(function(){var e,t,n,r,i,o;return{application:{id:null==(e=tV())?void 0:e.application_id},session:{id:null==(t=v.findTrackedSession())?void 0:t.id},view:{id:null==(r=null==(n=tV())?void 0:n.view)?void 0:r.id},action:{id:null==(o=null==(i=tV())?void 0:i.user_action)?void 0:o.id}}}),function(e,t){var n,r,i;if(e.forwardErrorsToLogs)(t_||(n=e,t_=r=new X(function(){var e=e$(XMLHttpRequest.prototype,"open",{before:tC}).stop,t=e$(XMLHttpRequest.prototype,"send",{before:function(){tx.call(this,n,r)}}).stop,i=e$(XMLHttpRequest.prototype,"abort",{before:tO}).stop;return function(){e(),t(),i()}})),t_).subscribe(function(e){"complete"===e.state&&o("xhr",e)}),(tL||(tL=i=new X(function(){if(window.fetch)return eU(window,"fetch",function(e){return function(t,n){var r,o=$(tk,null,[i,t,n]);return o?$(tT,null,[i,r=e.call(this,o.input,o.init),o]):r=e.call(this,t,n),r}}).stop})),tL).subscribe(function(e){"resolve"===e.state&&o("fetch",e)});function o(n,r){var i,o,s,a,u,l,c,d,f,p,h,g;function v(e){t.notify(0,{rawLogsEvent:{message:"".concat("xhr"===n?"XHR":"Fetch"," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{origin:e0.NETWORK,stack:e||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:tq.error,origin:e0.NETWORK}})}!e.isIntakeUrl(r.url)&&(0===(i=r).status&&"opaque"!==i.responseType||r.status>=500)&&("xhr"in r?(o=r.xhr,s=e,v("string"==typeof o.response?t2(o.response,s):o.response)):r.response?(a=r.response,u=e,l=v,(c=function(e){try{return e.clone()}catch{return}}(a))&&c.body?window.TextDecoder?(d=c.body,f=u.requestErrorResponseLengthLimit,p=function(e,t){l(e?"Unable to retrieve response: ".concat(e):t)},function(e,t,n){var r=e.getReader(),i=[],o=0;function s(){if(r.cancel().catch(Z),1===i.length)e=i[0];else{var e=new Uint8Array(o),s=0;
4i.forEach(function(t){e.set(t,s),s+=t.length})}t(void 0,e.slice(0,n.bytesLimit),e.length>n.bytesLimit)}!function e(){r.read().then(U(function(t){if(t.done)return void s();i.push(t.value),(o+=t.value.length)>n.bytesLimit?s():e()}),U(function(e){return t(e)}))}()}(d,function(e,t,n){if(e)p(e);else{var r=new TextDecoder().decode(t);n&&(r+="..."),p(void 0,r)}},{bytesLimit:f})):c.text().then(U(function(e){return l(t2(e,u))}),U(function(e){return l("Unable to retrieve response: ".concat(e))})):l()):r.error&&(h=r.error,g=e,v(t2(eQ(eA(h)),g))))}}(t,l),function(e,t){if(e.forwardErrorsToLogs){var n,r,i,o,s,a=new X;(o=(n=i=function(e,t){a.notify(eX({stackTrace:e,originalError:t,startClocks:C(),nonErrorPrefix:"Uncaught",source:e0.SOURCE,handling:"unhandled"}))},e$(window,"onerror",{before:function(e,t,r,i,o){var s;if(o instanceof Error)s=eA(o);else{var a,u,l,c,d=(a=e,"[object String]"===({}).toString.call(a)&&(l=(u=eY.exec(a))[1],c=u[2]),{name:l,message:c});s={name:d.name,message:d.message,stack:[{url:t,column:i,line:r}]}}n(s,o??e)}})).stop,s=(r=i,e$(window,"onunhandledrejection",{before:function(e){var t=e.reason||"Empty reason";r(eA(t),t)}})).stop,{stop:function(){o(),s()}}).stop,a.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,origin:e0.SOURCE,stack:e.stack},origin:e0.SOURCE,status:tq.error}})})}}(t,l),k=t,M=l,(P=k.forwardConsoleLogs.map(function(e){var t,n;return tP[e]||(tP[e]=(t=e,n=new X(function(){var e=h[t];return h[t]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];e.apply(console,r);var o=function(){var e,t=Error();if(!t.stack)try{throw t}catch{}return $(function(){var n=eA(t);n.stack=n.stack.slice(2),e=eQ(n)}),e}();$(function(){n.notify(function(e,t,n){var r,i,o=e.map(function(e){var t;return"string"==typeof(t=e)?eG(t):t instanceof Error?eZ(eA(t)):eS(eG(t),void 0,2)}).join(" ");if(t===p.error){var s=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(e,function(e){return e instanceof Error});r=s?eQ(eA(s)):void 0,i=eV(s),o="console error: ".concat(o)}return{api:t,message:o,stack:r,handlingStack:n,fingerprint:i}}(r,t,o))})},function(){h[t]=e}}))),tP[e]}),V.apply(void 0,P)).subscribe(function(e){M.notify(0,{rawLogsEvent:{date:S(),message:e.message,origin:e0.CONSOLE,error:e.api===p.error?{origin:e0.CONSOLE,stack:e.stack,fingerprint:e.fingerprint}:void 0,status:t0[e.api]}})}),(Y=t.forwardReports,J=[],T(Y,e2.cspViolation)&&J.push((I=t,R=new X(function(){return e1(I,document,["securitypolicyviolation"],function(e){R.notify(function(e){var t,n,r,i=e2.cspViolation,o="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:e2.cspViolation,subtype:e.effectiveDirective,message:"".concat(i,": ").concat(o),stack:e3(e.effectiveDirective,e.originalPolicy?"".concat(o,' of the policy "').concat((t=e.originalPolicy,r=(n=t.charCodeAt(99))>=55296&&n<=56319?101:100,t.length<=r?t:"".concat(t.slice(0,r)).concat("...")),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)}}(e))},void 0).stop}))),(eu=Y.filter(function(e){return e!==e2.cspViolation})).length&&J.push((N=eu,F=new X(function(){if(window.ReportingObserver){var e=U(function(e,t){return e.forEach(function(e){var t,n,r;F.notify((n=(t=e).type,{type:n,subtype:(r=t.body).id,message:"".concat(n,": ").concat(r.message),stack:e3(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)}))})}),t=new window.ReportingObserver(e,{types:N,buffered:!0});return t.observe(),function(){t.disconnect()}}}))),V.apply(void 0,J)).subscribe(function(e){var t,n,r,i=e.message,o=t1[e.type];o===tq.error?r={kind:e.subtype,origin:e0.REPORT,stack:e.stack}:e.stack&&(i+=" Found in ".concat((t=e.stack,null==(n=/@ (.+)/.exec(t))?void 0:n[1]))),l.notify(0,{rawLogsEvent:{date:S(),message:i,origin:e0.REPORT,error:r,status:o}})});var O={handleLog:function(e,t,n,r){var i,o,s=e.context;tW(e.status,tB.console,t)&&(i=e,o=e7(t.getContext(),s),g[i.status].call(h,i.message,o)),l.notify(0,{rawLogsEvent:{date:r||S(),message:e.message,status:e.status,origin:e0.LOGGER},messageContext:s,savedCommonContext:n,logger:t})}}.handleLog;if(ed=tU.concat(["custom"]),ev={},ed.forEach(function(e){var n,r,i;ev[e]=(n=t.eventRateLimiterThreshold,r=0,i=!1,{isLimitReached:function(){if(0===r&&G(function(){r=0},6e4),(r+=1)<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{d({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:e0.AGENT,startClocks:C()})}finally{i=!1}}return!0}})}),l.subscribe(0,function(e){var i,o,s,a=e.rawLogsEvent,u=e.messageContext,c=e.savedCommonContext,d=e.logger,f=void 0===d?r:d,p=a.date-x(),h=v.findTrackedSession(p);if(h){var g=(void 0===c?void 0:c)||n(),y=e7({service:t.service,session_id:h.id,usr:A(g.user)?void 0:g.user,view:g.view},g.context,tV(p),a,f.getContext(),void 0===u?void 0:u);!tW(a.status,tB.http,f)||(null==(i=t.beforeSend)?void 0:i.call(t,y))===!1||(null==(o=y.error)?void 0:o.origin)!==e0.AGENT&&(null!=(s=ev[y.status])?s:ev.custom).isLimitReached()||l.notify(1,y)}}),ty())ey=tv(),l.subscribe(1,function(e){ey.send("log",e)});else{var k,M,P,I,R,N,F,z,q,B,Y,J,eu,ed,ev,ey,em,ew,e_=(em=v.expireObservable,ew=tw(t,{endpoint:t.logsEndpointBuilder},t.replica&&{endpoint:t.replica.logsEndpointBuilder},d,f,em),l.subscribe(1,function(e){ew.add(e)}),ew).stop;c.push(function(){return e_()})}return s=null!=(i=e.proxy)?i:e.proxyUrl,a={session_sample_rate:null!=(o=e.sessionSampleRate)?o:e.sampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:void 0!==s?!!s:void 0,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_resources:e.trackResources,track_long_task:e.trackLongTasks,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages},u=j({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports},a),tr.telemetryConfigurationEnabled&&ts({type:te.configuration,configuration:u}),{handleLog:O,getInternalContext:({get:function(e){var t=v.findTrackedSession(e);
4if(t)return{session_id:t.id}}}).get,stop:function(){c.forEach(function(e){return e()})}}});!function(e,t,n){var r=e[t];e[t]=n,r&&r.q&&r.q.forEach(function(e){return m(e,"onReady callback threw an error:")()})}(I(),"DD_LOGS",t3);let t4=function(e){return e.info="info",e.warn="warn",e.error="error",e.debug="debug",e.trace="trace",e.fatal="fatal",e}({}),t5={[t4.trace]:10,[t4.debug]:20,[t4.info]:30,[t4.warn]:40,[t4.error]:50,[t4.fatal]:60};t4.trace,t4.debug,t4.info,t4.warn,t4.error,t4.fatal;var t6=class{id;logger;enabled;consoleDebug;level;constructor(e){this.id=e.id??Date.now().toString()+Math.random().toString(),this.logger=e.logger,this.enabled=e.enabled??!0,this.consoleDebug=e.consoleDebug??!1,this.level=e.level??"trace"}_sendToLogger(e){if(!this.enabled||t5[e.logLevel]<t5[this.level])return;let t=this.shipToLogger(e);if(this.consoleDebug)switch(e.logLevel){case t4.info:console.info(...t);break;case t4.warn:console.warn(...t);break;case t4.error:console.error(...t);break;case t4.trace:case t4.debug:case t4.fatal:console.debug(...t);break;default:console.log(...t)}}getLoggerInstance(){return this.logger}},t8=class extends t6{shipToLogger({logLevel:e,messages:t,data:n,hasData:r}){let i=[];switch(i.push(t.join(" ")),n&&r&&i.push(n),e){case t4.info:this.logger.info(...i);break;case t4.warn:this.logger.warn(...i);break;case t4.error:this.logger.error(...i);break;case t4.trace:case t4.debug:this.logger.debug(...i);break;case t4.fatal:this.logger.error(...i)}return i}};let t7=function(e){return e.onBeforeDataOut="onBeforeDataOut",e.shouldSendToLogger="shouldSendToLogger",e.onMetadataCalled="onMetadataCalled",e.onBeforeMessageOut="onBeforeMessageOut",e.onContextCalled="onContextCalled",e}({});var t9=class e{context={};hasContext=!1;setContext(e){if(!e){this.context={},this.hasContext=!1;return}this.context=e,this.hasContext=!0}appendContext(e){this.context={...this.context,...e},this.hasContext=!0}getContext(){return this.context}hasContextData(){return this.hasContext}onChildLoggerCreated({parentContextManager:e,childContextManager:t}){if(e.hasContextData()){let n=e.getContext();t.setContext({...n})}}clone(){let t=new e;return t.setContext({...this.context}),t.hasContext=this.hasContext,t}},ne=class{err;metadata;structuredLogger;hasMetadata;pluginManager;constructor(e){this.err=null,this.metadata={},this.structuredLogger=e,this.hasMetadata=!1,this.pluginManager=e.pluginManager}withMetadata(e){let{pluginManager:t,structuredLogger:{_config:{consoleDebug:n}}}=this;if(!e)return n&&console.debug("[LogLayer] withMetadata was called with no metadata; dropping."),this;let r=e;return!t.hasPlugins(t7.onMetadataCalled)||(r=t.runOnMetadataCalled(e,this.structuredLogger))?(this.metadata={...this.metadata,...r},this.hasMetadata=!0):n&&console.debug("[LogLayer] Metadata was dropped due to plugin returning falsy value."),this}withError(e){return this.err=e,this}info(...e){this.structuredLogger.isLevelEnabled(t4.info)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.info,e))}warn(...e){this.structuredLogger.isLevelEnabled(t4.warn)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.warn,e))}error(...e){this.structuredLogger.isLevelEnabled(t4.error)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.error,e))}debug(...e){this.structuredLogger.isLevelEnabled(t4.debug)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.debug,e))}trace(...e){this.structuredLogger.isLevelEnabled(t4.trace)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.trace,e))}fatal(...e){this.structuredLogger.isLevelEnabled(t4.fatal)&&(this.structuredLogger._formatMessage(e),this.formatLog(t4.fatal,e))}disableLogging(){return this.structuredLogger.disableLogging(),this}enableLogging(){return this.structuredLogger.enableLogging(),this}formatLog(e,t){let{muteMetadata:n}=this.structuredLogger._config,r=!n&&this.hasMetadata;this.structuredLogger._formatLog({logLevel:e,params:t,metadata:r?this.metadata:null,err:this.err})}};let nt=[t7.onBeforeDataOut,t7.onMetadataCalled,t7.shouldSendToLogger,t7.onBeforeMessageOut,t7.onContextCalled];var nn=class{idToPlugin;onBeforeDataOut=[];
4shouldSendToLogger=[];onMetadataCalled=[];onBeforeMessageOut=[];onContextCalled=[];constructor(e){this.idToPlugin={},this.mapPlugins(e),this.indexPlugins()}mapPlugins(e){for(let t of e){if(t.id||(t.id=Date.now().toString()+Math.random().toString()),this.idToPlugin[t.id])throw Error(`[LogLayer] Plugin with id ${t.id} already exists.`);t.registeredAt=Date.now(),this.idToPlugin[t.id]=t}}indexPlugins(){for(let e of(this.onBeforeDataOut=[],this.shouldSendToLogger=[],this.onMetadataCalled=[],this.onBeforeMessageOut=[],this.onContextCalled=[],Object.values(this.idToPlugin).sort((e,t)=>e.registeredAt-t.registeredAt))){if(e.disabled)return;for(let t of nt)e[t]&&e.id&&this[t].push(e.id)}}hasPlugins(e){return this[e].length>0}countPlugins(e){return e?this[e].length:Object.keys(this.idToPlugin).length}addPlugins(e){this.mapPlugins(e),this.indexPlugins()}enablePlugin(e){let t=this.idToPlugin[e];t&&(t.disabled=!1),this.indexPlugins()}disablePlugin(e){let t=this.idToPlugin[e];t&&(t.disabled=!0),this.indexPlugins()}removePlugin(e){delete this.idToPlugin[e],this.indexPlugins()}runOnBeforeDataOut(e,t){let n={...e};for(let e of this.onBeforeDataOut){let r=this.idToPlugin[e];if(r.onBeforeDataOut){let e=r.onBeforeDataOut({data:n.data,logLevel:n.logLevel,error:n.error,metadata:n.metadata,context:n.context},t);e&&(n.data||(n.data={}),Object.assign(n.data,e))}}return n.data}runShouldSendToLogger(e,t){return!this.shouldSendToLogger.some(n=>!this.idToPlugin[n].shouldSendToLogger?.(e,t))}runOnMetadataCalled(e,t){let n={...e};for(let e of this.onMetadataCalled){let r=this.idToPlugin[e].onMetadataCalled?.(n,t);if(!r)return null;n=r}return n}runOnBeforeMessageOut(e,t){let n=[...e.messages];for(let r of this.onBeforeMessageOut){let i=this.idToPlugin[r].onBeforeMessageOut?.({messages:n,logLevel:e.logLevel},t);i&&(n=i)}return n}runOnContextCalled(e,t){let n={...e};for(let e of this.onContextCalled){let r=this.idToPlugin[e].onContextCalled?.(n,t);if(!r)return null;n=r}return n}},nr=class e{pluginManager;idToTransport;hasMultipleTransports;singleTransport;contextManager;logLevelEnabledStatus={info:!0,warn:!0,error:!0,debug:!0,trace:!0,fatal:!0};_config;constructor(e){this._config={...e,enabled:e.enabled??!0},this._config.enabled||this.disableLogging(),this.contextManager=new t9,this.pluginManager=new nn(e.plugins||[]),this._config.errorFieldName||(this._config.errorFieldName="err"),this._config.copyMsgOnOnlyError||(this._config.copyMsgOnOnlyError=!1),this._initializeTransports(this._config.transport)}withContextManager(e){return this.contextManager&&"function"==typeof this.contextManager[Symbol.dispose]&&this.contextManager[Symbol.dispose](),this.contextManager=e,this}getContextManager(){return this.contextManager}_initializeTransports(e){if(this.idToTransport)for(let e in this.idToTransport)this.idToTransport[e]&&"function"==typeof this.idToTransport[e][Symbol.dispose]&&this.idToTransport[e][Symbol.dispose]();this.hasMultipleTransports=Array.isArray(e)&&e.length>1,this.singleTransport=this.hasMultipleTransports?null:Array.isArray(e)?e[0]:e,Array.isArray(e)?this.idToTransport=e.reduce((e,t)=>(e[t.id]=t,e),{}):this.idToTransport={[e.id]:e}}withPrefix(e){let t=this.child();return t._config.prefix=e,t}withContext(e){let t=e;return e?!this.pluginManager.hasPlugins(t7.onContextCalled)||(t=this.pluginManager.runOnContextCalled(e,this))?this.contextManager.appendContext(t):this._config.consoleDebug&&console.debug("[LogLayer] Context was dropped due to plugin returning falsy value."):this._config.consoleDebug&&console.debug("[LogLayer] withContext was called with no context; dropping."),this}clearContext(){return this.contextManager.setContext(void 0),this}getContext(){return this.contextManager.getContext()}addPlugins(e){this.pluginManager.addPlugins(e)}enablePlugin(e){this.pluginManager.enablePlugin(e)}disablePlugin(e){this.pluginManager.disablePlugin(e)}removePlugin(e){this.pluginManager.removePlugin(e)}withMetadata(e){return new ne(this).withMetadata(e)}withError(e){return new ne(this).withError(e)}child(){let t=new e({...this._config,transport:Array.isArray(this._config.transport)?[...this._config.transport]:this._config.transport}).withPluginManager(this.pluginManager).withContextManager(this.contextManager.clone());return this.contextManager.onChildLoggerCreated({parentContextManager:this.contextManager,childContextManager:t.contextManager,parentLogger:this,childLogger:t}),t}withFreshTransports(e){return this._config.transport=e,this._initializeTransports(e),this}withFreshPlugins(e){return this._config.plugins=e,this.pluginManager=new nn(e),this}withPluginManager(e){return this.pluginManager=e,this}errorOnly(e,t){let n=t?.logLevel||t4.error;if(!this.isLevelEnabled(n))return;let{copyMsgOnOnlyError:r}=this._config,i={logLevel:n,err:e};(r&&t?.copyMsg!==!1||t?.copyMsg===!0)&&e?.message&&(i.params=[e.message]),this._formatLog(i)}metadataOnly(e,t=t4.info){if(!this.isLevelEnabled(t))return;let{muteMetadata:n,consoleDebug:r}=this._config;if(n)return;if(!e){r&&console.debug("[LogLayer] metadataOnly was called with no metadata; dropping.");return}let i=e;if(this.pluginManager.hasPlugins(t7.onMetadataCalled)&&!(i=this.pluginManager.runOnMetadataCalled(e,this))){r&&console.debug("[LogLayer] Metadata was dropped due to plugin returning falsy value.");return}let o={logLevel:t,metadata:i};this._formatLog(o)}info(...e){this.isLevelEnabled(t4.info)&&(this._formatMessage(e),this._formatLog({logLevel:t4.info,params:e}))}warn(...e){this.isLevelEnabled(t4.warn)&&(this._formatMessage(e),this._formatLog({logLevel:t4.warn,params:e}))}error(...e){this.isLevelEnabled(t4.error)&&(this._formatMessage(e),this._formatLog({logLevel:t4.error,params:e}))}debug(...e){this.isLevelEnabled(t4.debug)&&(this._formatMessage(e),this._formatLog({logLevel:t4.debug,params:e}))}trace(...e){this.isLevelEnabled(t4.trace)&&(this._formatMessage(e),this._formatLog({logLevel:t4.trace,params:e}))}fatal(...e){this.isLevelEnabled(t4.fatal)&&(this._formatMessage(e),this._formatLog({logLevel:t4.fatal,params:e}))}raw(e){if(!this.isLevelEnabled(e.logLevel))return;let t={logLevel:e.logLevel,params:e.messages,metadata:e.metadata,err:e.error,context:e.context};this._formatMessage(e.messages),this._formatLog(t)}disableLogging(){for(let e of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[e]=!1;return this}enableLogging(){for(let e of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[e]=!0;return this}muteContext(){return this._config.muteContext=!0,this}unMuteContext(){return this._config.muteContext=!1,this}muteMetadata(){return this._config.muteMetadata=!0,this}unMuteMetadata(){return this._config.muteMetadata=!1,this}enableIndividualLevel(e){return e in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[e]=!0),this}disableIndividualLevel(e){return e in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[e]=!1),this}setLevel(e){let t=t5[e];for(let e of Object.values(t4)){let n=t5[e];this.logLevelEnabledStatus[e]=n>=t}return this}isLevelEnabled(e){return this.logLevelEnabledStatus[e]}
4formatContext(e){let{contextFieldName:t,muteContext:n}=this._config;return e&&Object.keys(e).length>0&&!n?t?{[t]:{...e}}:{...e}:{}}formatMetadata(e=null){let{metadataFieldName:t,muteMetadata:n}=this._config;return e&&!n?t?{[t]:{...e}}:{...e}:{}}getLoggerInstance(e){let t=this.idToTransport[e];if(t)return t.getLoggerInstance()}_formatMessage(e=[]){let{prefix:t}=this._config;t&&"string"==typeof e[0]&&(e[0]=`${t} ${e[0]}`)}_formatLog({logLevel:e,params:t=[],metadata:n=null,err:r,context:i=null}){let{errorSerializer:o,errorFieldInMetadata:s,muteContext:a,contextFieldName:u,metadataFieldName:l,errorFieldName:c}=this._config,d=null!==i?i:this.contextManager.getContext(),f=!!n||!a&&(null!==i?Object.keys(i).length>0:this.contextManager.hasContextData()),p={};if(f)if(u&&u===l){let e=this.formatContext(d)[u],t=this.formatMetadata(n)[l];p={[u]:{...e,...t}}}else p={...this.formatContext(d),...this.formatMetadata(n)};if(r){let e=o?o(r):r;s&&n&&l?p?.[l]?p[l][c]=e:p={...p,[l]:{[c]:e}}:p=s&&!n&&l?{...p,[l]:{[c]:e}}:{...p,[c]:e},f=!0}if(this.pluginManager.hasPlugins(t7.onBeforeDataOut)&&(p=this.pluginManager.runOnBeforeDataOut({data:f?p:void 0,logLevel:e,error:r,metadata:n,context:d},this))&&!f&&(f=!0),this.pluginManager.hasPlugins(t7.onBeforeMessageOut)&&(t=this.pluginManager.runOnBeforeMessageOut({messages:[...t],logLevel:e},this)),this.hasMultipleTransports)Promise.all(this._config.transport.filter(e=>e.enabled).map(async i=>{if(!(this.pluginManager.hasPlugins(t7.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...t],data:f?p:void 0,logLevel:e,transportId:i.id,error:r,metadata:n,context:d},this)))return i._sendToLogger({logLevel:e,messages:[...t],data:f?p:void 0,hasData:f,error:r,metadata:n,context:d})})).catch(e=>{this._config.consoleDebug&&console.error("[LogLayer] Error executing transports:",e)});else{if(!this.singleTransport?.enabled||this.pluginManager.hasPlugins(t7.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...t],data:f?p:void 0,logLevel:e,transportId:this.singleTransport.id,error:r,metadata:n,context:d},this))return;this.singleTransport._sendToLogger({logLevel:e,messages:[...t],data:f?p:void 0,hasData:f,error:r,metadata:n,context:d})}}};let ni=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],no=new WeakSet,ns=({from:e,seen:t,to:n,forceEnumerable:r,maxDepth:i,depth:o,useToJSON:s,serialize:a})=>{if(n||(n=Array.isArray(e)?[]:{}),t.push(e),o>=i)return n;if(s&&"function"==typeof e.toJSON&&!no.has(e))return(e=>{no.add(e);let t=e.toJSON();return no.delete(e),t})(e);let u=e=>ns({from:e,seen:[...t],forceEnumerable:r,maxDepth:i,depth:o,useToJSON:s,serialize:a});for(let[r,i]of Object.entries(e)){if(i&&i instanceof Uint8Array&&"Buffer"===i.constructor.name){n[r]="[object Buffer]";continue}if(null!==i&&"object"==typeof i&&"function"==typeof i.pipe){n[r]="[object Stream]";continue}if("function"!=typeof i){if(!i||"object"!=typeof i){try{n[r]=i}catch{}continue}if(!t.includes(e[r])){o++,n[r]=u(e[r]);continue}n[r]="[Circular]"}}for(let{property:t,enumerable:r}of ni)void 0!==e[t]&&null!==e[t]&&Object.defineProperty(n,t,{value:function(e){return!!e&&"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.message&&"string"==typeof e.stack}(e[t])||Array.isArray(e[t])?u(e[t]):e[t],enumerable:!0,configurable:!0,writable:!0});return n};function na(e,t={}){let{maxDepth:n=1/0,useToJSON:r=!0}=t;return"object"==typeof e&&null!==e?ns({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0,useToJSON:r,serialize:!0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e}let nu=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(s?o:(s=1,o=function(){})),nl="onetrust-consent-manager",nc=null;
4function nd(){if(nc)return nc;if("u">typeof window){let e=window.location.hostname;return e.includes("staging")||e.includes("stg")||e.includes("dev")||e.includes("localhost")||"127.0.0.1"===e?"development":"production"}return"development"}let nf={log:nu,info:nu,warn:nu,error:nu,debug:nu},np={log:(...e)=>console.log(...e),info:(...e)=>console.info(...e),warn:(...e)=>console.warn(...e),error:(...e)=>console.error(...e),debug:(...e)=>console.debug(...e)},nh=["info","warn","error","debug","trace","fatal"],ng=({data:e={},error:t,level:n="info",message:o,module:s})=>{let a=(e=>nh.includes(e)?e:"info")(n);if("debug"===a&&"production"===nd())return;let u=(()=>{if(!function(){if(typeof window>"u")return!1;let e=window.DD_LOGS||window.datadogLogs;return!!e&&"function"==typeof e.createLogger}())return"development"===nd()?np:nf;if(r)return r;let e=window.DD_LOGS||window.datadogLogs;return"function"==typeof e.createLogger?r=e.createLogger(nl):nf})();return u===nf?void 0:new nr({errorSerializer:na,transport:new t8({logger:u})}).withError(t).withMetadata({...e,module:s,package:"onetrust-consent-manager",logger:nl,application:i,environment:nd()})[a](o)},nv=e=>ng({...e,module:"consent"}),ny=e=>ng({...e,module:"analytics"});function nm(){let e=window.OneTrust?.GetDomainData?.()?.Groups??[],t=new Set;return e.forEach(e=>{let n=e.CustomGroupId||e.GroupId;n&&function(e){let t=e.trim().toLowerCase();return"always active"===t||"inactive landingpage"===t||"active"===t}(e.Status??"")&&t.add(n)}),t}function nb(){let e=new Set((window.OptanonActiveGroups||window.OnetrustActiveGroups||"").split(",").filter(Boolean));return window.OneTrust?.IsAlertBoxClosed?.()||nm().forEach(t=>{e.add(t)}),e}function nw(e){let t={};return f.forEach(n=>{t[n]=e.has(n)}),e.has("performance")&&(t.C0002=!0),e.has("functional")&&(t.C0003=!0),e.has("targeting")&&(t.C0004=!0),e.has("social")&&(t.C0005=!0),{categoryPreferences:t}}function n_(e){if(!(typeof window>"u"||!window.OneTrust))try{let t=[];Object.entries(e.categoryPreferences).forEach(([e,n])=>{n&&t.push(e)});let n=t.join(",");window.OptanonActiveGroups=n,window.OnetrustActiveGroups=n,window.OneTrust.UpdateActiveGroups&&window.OneTrust.UpdateActiveGroups(n),window.OneTrust.SetAlertBoxClosed&&window.OneTrust.SetAlertBoxClosed(!0),window.OneTrust.TriggerGoogleAnalyticsEvent&&window.OneTrust.TriggerGoogleAnalyticsEvent(t)}catch(e){nv({level:"warn",message:"Failed to set OneTrust consent",error:e instanceof Error?e.message:e})}}function nS(){return!!(window.OneTrust&&window.OneTrust.GetDomainData)}let nE={timeoutMs:1e4,retries:0,retryDelayMs:1e3};function nC(e,t={}){let n=nE.timeoutMs,r="number"==typeof t.retries&&Number.isFinite(t.retries)&&Number.isInteger(t.retries)&&t.retries>=0?t.retries:nE.retries,i="number"==typeof t.retryDelayMs&&Number.isFinite(t.retryDelayMs)&&t.retryDelayMs>=0?t.retryDelayMs:nE.retryDelayMs,o=e=>new Promise((t,r)=>{let s;if(nS())return void t();let a=Date.now(),u=()=>{void 0!==s&&(clearInterval(s),s=void 0)};s=setInterval(()=>{nS()?(u(),t()):Date.now()-a>n&&(u(),e>0?setTimeout(()=>{o(e-1).then(t).catch(r)},i):r(Error("OneTrust failed to load within timeout")))},100)});return o(r)}let nx={analytics:["Actions Amplitude","Amplitude","Hindsight","Statsig","Visual Tagger"],advertising:["Braze Cloud Mode (Actions)","Braze Web Mode (Actions)","Facebook Conversions API (Actions)","Google Tag Manager","Reddit Conversions Api","Tiktok Conversions","Facebook Pixel","Twitter Ads","LinkedIn Insight Tag","Pinterest Tag"],functional:["Webhooks"]};function nO(){if(typeof document>"u")return null;try{let e,t=document.cookie.split(";").find(e=>e.trim().startsWith("tracking-preferences="));if(!t)return null;let n=t.split("=")[1];try{e=n.replace(/%22/g,'"'),JSON.parse(e)}catch{e=decodeURIComponent(n)}return JSON.parse(e)}catch{return null}}let nk="2.6.0";class nT{originalOverflow=null;modalShowHandler=null;modalHideHandler=null;keydownHandler=null;clickHandler=null;mutationObserver=null;isActive=!1;initialize(){this.isActive||typeof window>"u"||(this.isActive=!0,this.modalShowHandler=()=>this.handleModalShow(),this.modalHideHandler=()=>this.handleModalHide(),this.keydownHandler=e=>this.handleKeydown(e),this.clickHandler=e=>this.handleClick(e),window.addEventListener("OptanonOneTrustModalShow",this.modalShowHandler),window.addEventListener("OptanonOneTrustModalHide",this.modalHideHandler),document.addEventListener("keydown",this.keydownHandler),document.addEventListener("click",this.clickHandler),this.setupMutationObserver())}dispose(){!this.isActive||typeof window>"u"||(this.modalShowHandler&&(window.removeEventListener("OptanonOneTrustModalShow",this.modalShowHandler),this.modalShowHandler=null),this.modalHideHandler&&(window.removeEventListener("OptanonOneTrustModalHide",this.modalHideHandler),this.modalHideHandler=null),this.keydownHandler&&(document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.clickHandler&&(document.removeEventListener("click",this.clickHandler),this.clickHandler=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.restoreBodyOverflow(),this.isActive=!1)}restoreBodyOverflow(){"u">typeof document&&document.body&&null!==this.originalOverflow&&(document.body.style.overflow=this.originalOverflow,this.originalOverflow=null)}handleModalShow(){"u">typeof document&&document.body&&null===this.originalOverflow&&(this.originalOverflow=document.body.style.overflow||"")}handleModalHide(){this.restoreBodyOverflow()}handleKeydown(e){"Escape"===e.key&&this.isModalVisible()&&setTimeout(()=>this.restoreBodyOverflow(),100)}handleClick(e){let t=e.target;t&&(t.matches("[data-close-modal]")||t.matches(".ot-close-icon")||t.matches('[aria-label*="Close"]')||t.closest(".ot-pc-overlay"))&&setTimeout(()=>{this.isModalVisible()||this.restoreBodyOverflow()},100)}setupMutationObserver(){typeof window>"u"||!window.MutationObserver||(this.mutationObserver=new MutationObserver(()=>{this.isModalVisible()||this.restoreBodyOverflow()}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))}isModalVisible(){return!(typeof document>"u")&&['#onetrust-consent-sdk:not([style*="display: none"])','.ot-sdk-container:not([style*="display: none"])','[data-modal-visible="true"]'].some(e=>{let t=document.querySelector(e);
4return t&&"none"!==getComputedStyle(t).display})}}class nL{state={consent:null,iab:null,isReady:!1};callbacks=new Set;initialized=!1;updateConsentBound=null;debouncedNotifyCallbacks;enableSegmentCookieSync;bodyOverflowManager=null;constructor(e=!1){let t;this.enableSegmentCookieSync=e,this.debouncedNotifyCallbacks=()=>{t&&clearTimeout(t),t=setTimeout(()=>this.notifyCallbacks(),10)}}async initialize(){if(!this.initialized)try{this.initialized=!0;let e=this.enableSegmentCookieSync?function(){let e=nO();if(!e?.custom)return null;try{return{categoryPreferences:{C0001:!0,C0002:e.custom.functional??!1,C0003:e.custom.marketing??!1,C0004:e.custom.advertising??!1,C0005:e.custom.advertising??!1}}}catch{return null}}():null;e&&(this.state.consent=e,this.state.isReady=!0,"u">typeof window&&window.OneTrust&&n_(e),this.debouncedNotifyCallbacks()),await nC(),e&&n_(e),this.updateConsent(),this.state.isReady=!0,this.updateConsentBound=this.updateConsent.bind(this),window.addEventListener("OneTrustGroupsUpdated",this.updateConsentBound),this.bodyOverflowManager=new nT,this.bodyOverflowManager.initialize(),this.debouncedNotifyCallbacks()}catch(e){throw this.initialized=!1,nv({level:"error",message:"Failed to initialize consent manager",error:e}),e}}getState(){return{...this.state}}getConsent(){return this.state.consent?{...this.state.consent}:null}getIAB(){return this.state.iab?{...this.state.iab}:null}openConsentModal(){window.OneTrust?.ToggleInfoDisplay?.()}subscribe(e){return this.callbacks.add(e),this.state.isReady&&e(this.getState()),()=>{this.callbacks.delete(e)}}isReady(){return this.state.isReady&&nS()}getEnableSegmentCookieSync(){return this.enableSegmentCookieSync}updateConsent(){try{let e=nb(),t=nw(e),n=function(){let e={};return window.OneTrustTCFv2?.tcString&&(e.tcfString=window.OneTrustTCFv2.tcString),window.__gpp&&window.__gpp("getGPPData",t=>{t&&(e.gpp=t.gppString,e.gppSid=t.applicableSections)}),!e.tcfString&&window.__tcfapi&&window.__tcfapi("getTCData",2,t=>{t?.tcString&&(e.tcfString=t.tcString)}),e}(),r={...this.state,consent:t,iab:n};this.statesEqual(this.state,r)||(this.state=r,this.debouncedNotifyCallbacks())}catch(e){nv({level:"error",message:"Failed to update consent state",error:e})}}statesEqual(e,t){return JSON.stringify(e.consent)===JSON.stringify(t.consent)&&JSON.stringify(e.iab)===JSON.stringify(t.iab)&&e.isReady===t.isReady}notifyCallbacks(){let e=this.getState();try{e.consent&&function(){if(typeof window>"u"||!window.OneTrust)return!1;try{return window.OneTrust.IsAlertBoxClosed?.()??!1}catch{return!1}}()&&this.enableSegmentCookieSync&&function(e){if(e)try{var t={version:1,destinations:{...nO()?.destinations||{},...function(e){let t={};return[...nx.analytics,...nx.advertising,...nx.functional].forEach(n=>{nx.analytics.includes(n)?t[n]=e.categoryPreferences.C0003||!1:nx.advertising.includes(n)?t[n]=e.categoryPreferences.C0004||!1:nx.functional.includes(n)&&(t[n]=e.categoryPreferences.C0002||!1)}),t}(e)},custom:{functional:e.categoryPreferences.C0002||!1,marketing:e.categoryPreferences.C0003||!1,advertising:e.categoryPreferences.C0004||!1}};if(!(typeof document>"u"))try{let e=JSON.stringify(t).replace(/"/g,"%22"),n=new Date;n.setFullYear(n.getFullYear()+1);let r=function(){if(typeof window>"u")return"";let e=window.location.hostname;if("localhost"===e||"127.0.0.1"===e)return"";if(e.includes("ouraring.com"))return"; domain=.ouraring.com";if(e.includes("ourastaging.com"))return"; domain=.ourastaging.com";let t=e.split(".");return t.length>=2?`; domain=.${t.slice(-2).join(".")}`:""}();document.cookie=`tracking-preferences=${e}; expires=${n.toUTCString()}; path=/${r}; SameSite=Lax`}catch{}}catch{}}(e.consent),this.callbacks.forEach(t=>{try{t(e)}catch(e){nv({level:"error",message:"Error in consent callback",error:e})}})}catch(e){nv({level:"error",message:"Error in notifyCallbacks",error:e})}}dispose(){this.updateConsentBound&&(window.removeEventListener("OneTrustGroupsUpdated",this.updateConsentBound),this.updateConsentBound=null),this.bodyOverflowManager&&(this.bodyOverflowManager.dispose(),this.bodyOverflowManager=null),this.callbacks.clear(),this.initialized=!1,this.state.isReady=!1}}let nM=null;function nP(e=!1){if(nM){if(nM.getEnableSegmentCookieSync()!==e){let t=`OneTrust Consent Manager: Inconsistent enableSegmentCookieSync value. Manager was already created with enableSegmentCookieSync=${nM.getEnableSegmentCookieSync()}, but called with enableSegmentCookieSync=${e}. All calls within the same application must use the same value.`;throw nv({level:"error",message:"Inconsistent enableSegmentCookieSync configuration detected",data:{existingV
4alue:nM.getEnableSegmentCookieSync(),requestedValue:e,errorMessage:t}}),Error(t)}}else nM=new nL(e);return nM}async function nj(e=!1){let t=nP(e);return await t.initialize(),t}"u">typeof window&&(window.OneTrustConsentManager={getConsentManager:e=>nP(e),OneTrustConsentManager:nL,initializeConsentManager:e=>nj(e),version:nk,get instance(){return nM}});var nA=n(71450),nI=n(87358);function nR(){return void 0!==nI&&nI.env?nI.env:{}}var nD=n(25009),nN=n(96834);function nH(e,t,n,r){var i,o=[e,t,n,r],s=(0,nN.Qd)(e)?e.event:e;if(!s||!(0,nN.Kg)(s))throw Error("Event missing");var a=(0,nN.Qd)(e)?null!=(i=e.properties)?i:{}:(0,nN.Qd)(t)?t:{},u={};return(0,nN.Tn)(n)||(u=null!=n?n:{}),(0,nN.Qd)(e)&&!(0,nN.Tn)(t)&&(u=null!=t?t:{}),[s,a,u,o.find(nN.Tn)]}function nF(e,t,n,r,i){var o,s,a=null,u=null,l=[e,t,n,r,i],c=l.filter(nN.Kg);1===c.length?(u=(0,nN.Kg)(l[1])?l[1]:c[0],a=null):2===c.length&&("string"==typeof l[0]&&(a=l[0]),"string"==typeof l[1]&&(u=l[1]));var d=l.find(nN.Tn),f=l.filter(nN.Qd);return 1===f.length?(0,nN.Qd)(l[2])?(s={},o=l[2]):(0,nN.Qd)(l[3])?(o={},s=l[3]):(o=f[0],s={}):2===f.length&&(o=f[0],s=f[1]),[a,u,null!=o?o:o={},null!=s?s:s={},d]}var nz=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var s={},a=["callback","options","traits","id"],u=0;u<i.length;u++){var l=i[u],c=a.pop();if("id"===c){if((0,nN.Kg)(l)||(0,nN.Et)(l)){s.id=l.toString();continue}if(null==l)continue;c=a.pop()}if(("traits"===c||"options"===c)&&(null==l||(0,nN.Qd)(l))&&(s[c]=l),(0,nN.Tn)(l)){s.callback=l;break}}return[null!=(t=s.id)?t:e.id(),null!=(n=s.traits)?n:{},null!=(r=s.options)?r:{},s.callback]}};function nq(e,t,n,r){(0,nN.Et)(e)&&(e=e.toString()),(0,nN.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(nN.Kg),s=o[0],a=void 0===s?e:s,u=o[1],l=i.filter(nN.Qd)[0];return[a,void 0===u?null:u,void 0===l?{}:l,i.find(nN.Tn)]}var nB=n(31815),nU=n(42112),n$=n(11556),nY=n(72163),nG=n(55833),nJ=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},nK=Object.keys(nJ("","","","","","")),nW=function(e){var t=e.indexOf("#");return -1===t?e:e.slice(0,t)},nX=function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}},nV=function(e){var t=e.c,n=e.p,r=e.s,i=e.u,o=e.r,s=e.t,a=t?nX(t):n,u=t?t.indexOf("?")>-1?t:t+r:nW(i);return{path:a,referrer:o,search:r,title:s,url:u}},nQ=function(){var e=document.querySelector("link[rel='canonical']");return nJ(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},nZ=function(e,t){void 0===t&&(t=nV(nQ()));var n,r,i,o=e.context;"page"===e.type&&(i=e.properties&&(n=e.properties,r=Object.keys(t),Object.assign.apply(Object,(0,nA.fX)([{}],r.map(function(e){var t;if(n&&Object.prototype.hasOwnProperty.call(n,e))return(t={})[e]=n[e],t}),!1))),e.properties=(0,nA.Cl)((0,nA.Cl)((0,nA.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,nA.Cl)((0,nA.Cl)((0,nA.Cl)({},t),i),o.page)},n0=n(27213),n1=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,nA.C6)(t,e),t}(Error),n2="is not a string",n3="is not an object",n4=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!=(t=e.onEventMethodCall)?t:function(){},this.onFinishedEvent=null!=(n=e.onFinishedEvent)?n:function(){}},n5=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,nG.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,nA.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var s=e.prototype.track.call(this,t,n,r,i);return nZ(s,o),s},t.prototype.page=function(t,n,r,i,o,s){var a=e.prototype.page.call(this,t,n,r,i,o);return nZ(a,s),a},t.prototype.screen=function(t,n,r,i,o,s){var a=e.prototype.screen.call(this,t,n,r,i,o);return nZ(a,s),a},t.prototype.identify=function(t,n,r,i,o){var s=e.prototype.identify.call(this,t,n,r,i);return nZ(s,o),s},t.prototype.group=function(t,n,r,i,o){var s=e.prototype.group.call(this,t,n,r,i);return nZ(s,o),s},t.prototype.alias=function(t,n,r,i,o){var s=e.prototype.alias.call(this,t,n,r,i);return nZ(s,o),s},t}(function(){function e(e){this.settings=new n4(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,nA.Cl)({},n),integrations:(0,nA.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"page",options:r});var o,s={type:"page",properties:(0,nA.Cl)({},n),options:(0,nA.Cl)({},r),integrations:(0,nA.Cl)({},i)};return null!==e&&(s.category=e,s.properties=null!=(o=s.properties)?o:{},s.properties.category=e),null!==t&&(s.name=t),this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),s))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,nA.Cl)({},n),options:(0,nA.Cl)({},r),integrations:(0,nA.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,nA.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,nA.Cl)({},n),integrations:(0,nA.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,nA.Cl)({},n),integrations:(0,nA.Cl)({},r)};return(null!==t&&(i.previousId=t),void 0===e)?this.normalize((0,nA.Cl)((0,nA.Cl)({},i),this.baseEvent())):this.normalize((0,nA.Cl)((0,nA.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!=(t=e.context)?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,n0.J)(o,t,e[t]):(0,n0.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i=Object.keys(null!=(n=e.integrations)?n:{}).reduce(function(t,n){var r,i;return(0,nA.Cl)((0,nA.Cl)({},t),((r={})[n]=!!(null==(i=e.integrations)?void 0:i[n]),r))},{});t=e.options||{},e.options=Object.keys(t).filter(function(e){return function(e,t){return void 0!==t}(e,t[e])}).reduce(function(e,n){return e[n]=t[n],e},{});var o=(0,nA.Cl)((0,nA.Cl)({},i),null==(r=e.options)?void 0:r.integrations),s=e.options?this.context(e.options):[],a=s[0],u=s[1],l=e.options,c=(0,nA.Tt)(e,["options"]),d=(0,nA.Cl)((0,nA.Cl)((0,nA.Cl)((0,nA.Cl)({timestamp:new Date},c),{context:a,integrations:o}),u),{messageId:l.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(d),!function(e){if(!(0,nN.t2)(e))throw new n1("Event","is nil");if("object"!=typeof e)throw new n1("Event",n3);if(!(0,nN.Kg)(e.type))throw new n1(".type",n2);if(!(0,nN.Kg)(e.messageId))throw new n1(".messageId",n2);if("track"===e.type){if(!(0,nN.Kg)(e.event))throw new n1(".event",n2);if(!(0,nN.Qd)(e.properties))throw new n1(".properties",n3)}["group","identify"].includes(e.type)&&function(e){if(!(0,nN.Qd)(e.traits))throw new n1(".traits",n3)}(e)}(d),d},e}()),n6=function(e){return"addMiddleware"in e&&"destination"===e.type},n8=n(17056),n7=n(4102),n9=n(28769),re=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(e=new Promise(function(e){return t=e})),i.finally(function(){return 0==--n&&t()})),i}}},rt=n(89288),rn=function(e){function t(t){return e.call(this,"string"==typeof t?new n8.x(4,t):t)||this}return(0,nA.C6)(t,e),t.prototype.flush=function(){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(t){return(0,nB.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(function(e){function t(t){var n=e.call(this)||this;return n.criticalTasks=re(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=t,n.queue.on(n7.g,function(){n.scheduleFlush(0)}),n}return(0,nA.C6)(t,e),t.prototype.register=function(e,t,n){return(0,nA.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,nA.YH)(this,function(s){switch(s.label){case 0:if(this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name)return[3,1];return t.load(e,n).catch(r),[3,4];case 1:return s.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,nA.sH)(this,void 0,void 0,function(){var r;return(0,nA.YH)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!t.unload)return[3,2];return[4,Promise.resolve(t.unload(e,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t;
4return(0,nA.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t=this;return(0,nA.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t=this;return(0,nA.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i;return(0,nA.YH)(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),t=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=o.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw i=r=o.sent(),e.log("error","Failed to deliver",i),this.emit("delivery_failure",e,i),e.stats.increment("delivery_failed"),r;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!!(!(e instanceof n9.d)||e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,nA.sH)(this,void 0,void 0,function(){var e,t;return(0,nA.YH)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=(t="type",n={},this.plugins.filter(function(t){if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var n,r,i,o=void 0;return null==(n=t.alternativeNames)||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!=(i=null!=(r=e[t.name])?r:o)?i:!1!==("Segment.io"===t.name||e.All)}).forEach(function(e){var r,i=void 0;if("string"==typeof t){var o=e[t];i="string"!=typeof o?JSON.stringify(o):o}else t instanceof Function&&(i=t(e));void 0!==i&&(n[i]=(0,nA.fX)((0,nA.fX)([],null!=(r=n[i])?r:[],!0),[e],!1))}),n),i=r.before,o=r.enrichment,s=r.destination,a=r.after;return{before:void 0===i?[]:i,enrichment:void 0===o?[]:o,destinations:void 0===s?[]:s,after:void 0===a?[]:a}},t.prototype.flushOne=function(e){var t,n;return(0,nA.sH)(this,void 0,void 0,function(){var r,i,o,s,a,u,l,c,d,f,p,h,g;return(0,nA.YH)(this,function(v){switch(v.label){case 0:if(!this.isReady())throw Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),i=(r=this.availableExtensions(null!=(t=e.event.integrations)?t:{})).before,o=r.enrichment,s=0,a=i,v.label=1;case 1:if(!(s<a.length))return[3,4];return u=a[s],[4,(0,rt.D)(e,u)];case 2:(l=v.sent())instanceof n9.j&&(e=l),this.emit("message_enriched",e,u),v.label=3;case 3:return s++,[3,1];case 4:c=0,d=o,v.label=5;case 5:if(!(c<d.length))return[3,8];return f=d[c],[4,(0,rt.C)(e,f)];case 6:(l=v.sent())instanceof n9.j&&(e=l),this.emit("message_enriched",e,f),v.label=7;case 7:return c++,[3,5];case 8:return h=(p=this.availableExtensions(null!=(n=e.event.integrations)?n:{})).destinations,g=p.after,[4,new Promise(function(t,n){setTimeout(function(){Promise.all(h.map(function(t){return(0,rt.C)(e,t)})).then(t).catch(n)},0)})];case 9:return v.sent(),e.stats.increment("message_delivered"),this.emit
vendor: 4,895 bytes, line 4
4("message_delivered",e),[4,Promise.all(g.map(function(t){return(0,rt.C)(e,t)}))];case 10:return v.sent(),[2,e]}})})},t}(nY.v));function rr(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var ri={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},ro=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},rs=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){ro(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){ro(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){ro(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),ra=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!=(t=this.cache[e])?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function ru(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(ri).includes(e)})}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var rc=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=rl({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",rl({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,rl({},this.attributes,t))},withConverter:function(t){return e(rl({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function rd(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0||t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],s={domain:"."+o};try{if(rc.set(i,"1",s),rc.get(i))return rc.remove(i,s),o}catch(e){return}}}var rf=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,nA.Cl)((0,nA.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:rd(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=rc.get(e);if(null==n)return null;try{return null!=(t=JSON.parse(n))?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?rc.set(e,t,this.opts()):null===t?rc.remove(e,this.opts()):rc.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return rc.remove(e,this.opts())},e}(),rp=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!=(t=JSON.parse(n))?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function rh(e){return e.map(function(e){var t,n;switch("object"==typeof e&&void 0!==e.name?(t=e.name,n=e.settings):t=e,t){case ri.Cookie
4:return new rf(n);case ri.LocalStorage:return new rp;case ri.Memory:return new ra;default:throw Error("Unknown Store Type: ".concat(e))}})}function rg(e,t){return e.map(function(e){return t&&e===ri.Cookie?{name:e,settings:t}:e})}var rv={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},ry=function(){function e(e,t){void 0===e&&(e=rv);var n,r,i,o,s=this;this.options={},this.id=function(e){if(s.options.disable)return null;var t=s.identityStore.getAndSync(s.idKey);void 0!==e&&(s.identityStore.set(s.idKey,e),e!==t&&null!==t&&null!==e&&s.anonymousId(null));var n=s.identityStore.getAndSync(s.idKey);if(n)return n;var r=s.legacyUserStore.get(rv.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(s.options.disable)return null;if(void 0===e){var r=null!=(t=s.identityStore.getAndSync(s.anonKey))?t:null==(n=s.legacySIO())?void 0:n[0];if(r)return r}return null===e?s.identityStore.set(s.anonKey,null):s.identityStore.set(s.anonKey,null!=e?e:(0,nG.v4)()),s.identityStore.getAndSync(s.anonKey)},this.traits=function(e){var t;if(!s.options.disable)return null===e&&(e={}),e&&s.traitsStore.set(s.traitsKey,null!=e?e:{}),null!=(t=s.traitsStore.get(s.traitsKey))?t:{}},this.options=(0,nA.Cl)((0,nA.Cl)({},rv),e),this.cookieOptions=t,this.idKey=null!=(r=null==(n=e.cookie)?void 0:n.key)?r:rv.cookie.key,this.traitsKey=null!=(o=null==(i=e.localStorage)?void 0:i.key)?o:rv.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===ri.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==ri.Cookie});var a=this.legacyUserStore.get(rv.cookie.oldKey);a&&"object"==typeof a&&(a.id&&this.id(a.id),a.traits&&this.traits(a.traits)),rr(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();(null===n||n===e)&&(t=(0,nA.Cl)((0,nA.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[ri.LocalStorage,ri.Cookie,ri.Memory];return e.disable?new rs([]):e.persist?(void 0!==e.storage&&null!==e.storage&&ru(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==ri.LocalStorage})),n&&(r=r.filter(n)),new rs(rh(rg(r,t)))):new rs([new ra])},e.defaults=rv,e}(),rm={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},rb=function(e){function t(t,n){void 0===t&&(t=rm);var r=e.call(this,(0,nA.Cl)((0,nA.Cl)({},rm),t),n)||this;return r.anonymousId=function(e){},rr(r),r}return(0,nA.C6)(t,e),t}(ry),rw=n(92086),r_=n(72860),rS=n(14822),rE=n(59267),rC=function(e,t,n){n.getAndRemove(e).forEach(function(e){rj(t,e).catch(console.error)})},rx=rC.bind(void 0,"on"),rO=rC.bind(void 0,"setAnonymousId"),rk=function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){rj(e,t).catch(console.error)},0)})})},rT=function(e){if(rL(e))return nV(e.pop())},rL=function(e){var t=e[e.length-1];if("object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase()||"bpc"!==t.__t)return!1;for(var n in t)if(!nK.includes(n))return!1;return!0},rM=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},rP=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e}
4,enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!=(t=this.calls[e])?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!rL(t.args)&&(t.args=(0,nA.fX)((0,nA.fX)([],t.args,!0),[nQ()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,rE.X)()){var e=(0,rS.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){return new rM(e[0],e.slice(1))});this.add.apply(this,t)}}},e}();function rj(e,t){return(0,nA.sH)(this,void 0,void 0,function(){var n,r;return(0,nA.YH)(this,function(i){switch(i.label){case 0:var o;if(i.trys.push([0,3,,4]),t.called)return[2,void 0];if(t.called=!0,!("object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}})})}var rA=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=rw.r,this._preInitBuffer=new rP,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?Promise.resolve((n=t.instance)[e].apply(n,r)):new Promise(function(n,i){t._preInitBuffer.add(new rM(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?(n=t.instance)[e].apply(n,r):t._preInitBuffer.add(new rM(e,r)),t}},e}(),rI=n(15214),rR=n(73304),rD=function(e){var t=!1;window.addEventListener("pagehide",function(){t||e(t=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(t)return;t=!0}else t=!1;e(t)})},rN=function(e){function t(t,n){var r=e.call(this,t)||this;return r.retryTimeout=n,r.name="RateLimitError",r}return(0,nA.C6)(t,e),t}(Error),rH=function(e){return(0,nA.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)};function rF(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}var rz=n(23188);function rq(e,t,n,r){var i=this;e||setTimeout(function(){return(0,nA.sH)(i,void 0,void 0,function(){var e,i;return(0,nA.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,function(e,t){return(0,nA.sH)(this,void 0,void 0,function(){var n,r=this;return(0,nA.YH)(this,function(i){switch(i.label){case 0:if(n=[],(0,nB.a)())return[2,t];return[4,(0,rz._)(function(){return t.length>0&&!(0,nB.a)()},function(){return(0,nA.sH)(r,void 0,void 0,function(){var r;return(0,nA.YH)(this,function(i){switch(i.label){case 0:if(!(r=t.pop())
4)return[2];return[4,(0,rt.C)(r,e)];case 1:return i.sent()instanceof nU.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},5e3*Math.random())}var rB=n(81314),rU=function(e){return"Segment.io"===e.name},r$="This is being deprecated and will be not be available in future releases of Analytics JS",rY=(0,r_.m)(),rG=null==rY?void 0:rY.analytics,rJ=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null==(e=t.plugins.find(rU))?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!=(n=e.cdnSettings)?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null==(t=null==(e=this._getSegmentPluginMetadata)?void 0:e.call(this))?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function rK(){console.warn(r$)}var rW=function(e){function t(t,n,r,i,o){var s,a,u,l,c,d,f=this;(f=e.call(this)||this)._debug=!1,f.initialized=!1,f.user=function(){return f._user},f.init=f.initialize.bind(f),f.log=rK,f.addIntegrationMiddleware=rK,f.listeners=rK,f.addEventListener=rK,f.removeAllListeners=rK,f.removeListener=rK,f.removeEventListener=rK,f.hasListeners=rK,f.add=rK,f.addIntegration=rK;var p=null==n?void 0:n.cookie,h=null!=(c=null==n?void 0:n.disableClientPersistence)&&c;f.queue=null!=r?r:(s="".concat(t.writeKey,":event-queue"),void 0===(a=null==n?void 0:n.retryQueue)&&(a=!1),void 0===(u=h)&&(u=!1),l=a?10:1,new rn(u?new n7.M(l,[]):new n8.x(l,s))),f.settings=new rJ(t,f.queue);var g=null==n?void 0:n.storage;return f._universalStorage=f.createStore(h,g,p),f._user=null!=i?i:new ry((0,nA.Cl)({persist:!h,storage:null==n?void 0:n.storage},null==n?void 0:n.user),p).load(),f._group=null!=o?o:new rb((0,nA.Cl)({persist:!h,storage:null==n?void 0:n.storage},null==n?void 0:n.group),p).load(),f.eventFactory=new n5(f._user),f.integrations=null!=(d=null==n?void 0:n.integrations)?d:{},f.options=null!=n?n:{},rr(f),f}return(0,nA.C6)(t,e),t.prototype.createStore=function(e,t,n){return new rs(e?[new ra]:t&&ru(t)?rh(rg(t.stores,n)):rh([ri.LocalStorage,{name:ri.Cookie,settings:n},ri.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u=this;return(0,nA.YH)(this,function(l){return t=rT(e),r=(n=nH.apply(void 0,e))[0],i=n[1],o=n[2],s=n[3],a=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(a,s).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u,l=this;return(0,nA.YH)(this,function(c){return t=rT(e),r=(n=nF.apply(void 0,e))[0],i=n[1],o=n[2],s=n[3],a=n[4],u=this.eventFactory.page(r,i,o,s,this.integrations,t),[2,this._dispatch(u,a).then(function(e){return l.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u=this;return(0,nA.YH)(this,function(l){return t=rT(e),r=(n=nz(this._user).apply(void 0,e))[0],i=n[1],o=n[2],s=n[3],this._user.identify(r,i),a=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(a,s).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=rT(t);if(0===t.length)return this._group;var i=nz(this._group).apply(void 0,t),o=i[0],s=i[1],a=i[2],u=i[3];this._group.identify(o,s);var l=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(l,c,a,this.integrations,r);return this._dispatch(d,u).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u=this;return(0,nA.YH)(this,function(l){return t=rT(e),r=(n=nq.apply(void 0,e))[0],i=n[1],o=n[2],s=n[3],a=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(a,s).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,u,l=this;return(0,nA.YH)(this,function(c){return t=rT(e),r=(n=nF.apply(void 0,e))[0],i=n[1],o=n[2],s=n[3],a=n[4],u=this.eventFactory.screen(r,
4i,o,s,this.integrations,t),[2,this._dispatch(u,a).then(function(e){return l.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return[4,n.e(248).then(n.bind(n,62401))];case 1:return[2,(t=r.sent().link).call.apply(t,(0,nA.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return[4,n.e(248).then(n.bind(n,62401))];case 1:return[2,(t=r.sent().link).call.apply(t,(0,nA.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return[4,n.e(248).then(n.bind(n,62401))];case 1:return[2,(t=r.sent().form).call.apply(t,(0,nA.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return[4,n.e(248).then(n.bind(n,62401))];case 1:return[2,(t=r.sent().form).call.apply(t,(0,nA.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n=this;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return t=nU.o.system(),[4,Promise.all(e.map(function(e){return n.queue.register(t,e,n)}))];case 1:return r.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,nA.sH)(this,void 0,void 0,function(){var t,n=this;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return t=nU.o.system(),[4,Promise.all(e.map(function(e){var r=n.queue.plugins.find(function(t){return t.name===e});if(r)return n.queue.deregister(t,r,n);t.log("warn","plugin ".concat(e," not found"))}))];case 1:return r.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,nA.sH)(this,void 0,void 0,function(){var n;return(0,nA.YH)(this,function(r){return((n=new nU.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,nB.a)()&&!this.options.retryQueue)?[2,n]:[2,function(e,t,n,r){return(0,nA.sH)(this,void 0,void 0,function(){var i,o;return(0,nA.YH)(this,function(s){switch(s.label){case 0:if(n.emit("dispatch_start",e),i=Date.now(),!t.isEmpty())return[3,2];return[4,t.dispatchSingle(e)];case 1:return o=s.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=s.sent(),s.label=4;case 4:var a,u;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,n$.w_)(o,r.callback,(a=i,Math.max((null!=(u=r.timeout)?u:300)-(Date.now()-a),0)))];case 5:o=s.sent(),s.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}})})}(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t=this;return(0,nA.YH)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,nA.sH)(t,void 0,void 0,function(){var t,r,i;return(0,nA.YH)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.bind(n,874))];case 1:return t=o.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return r[e.name]=!0}),i=t(e,r),[4,this.register(i)];case 2:return o.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];
4return this.queue.plugins.filter(n6).forEach(function(n){("*"===e||n.name.toLowerCase()===e.toLowerCase())&&n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(t){switch(t.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,n.e(7538).then(n.bind(n,12241))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(r$),(0,rS.Ud)(null!=rG?rG:this),this},t.prototype.normalize=function(e){return console.warn(r$),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(r$),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return rw.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(e){return console.warn(r$),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(t){switch(t.label){case 0:return console.warn(r$),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(r$),null!=(e=this._plugins)?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(r$),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?e[t.name]=i:e[t.name]=r,e},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();(!t||this[t])&&this[t].apply(this,e)},t}(nY.v),rX=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,nA.C6)(t,e),t}(rW),rV=n(56079),rQ=n(64071),rZ=n(3155),r0=function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}},r1=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,nA.sH)(e,void 0,void 0,function(){var e;return(0,nA.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i,o,s,u,l=t.event.context,c=l.page.search||"",d="object"==typeof c?r0(c):c;l.userAgent=navigator.userAgent,l.userAgentData=e.userAgentData;var f=navigator.userLanguage||navigator.language;void 0===l.locale&&void 0!==f&&(l.locale=f),null!=l.library||(l.library={name:"analytics.js",version:"".concat("web"===(0,rE.X)()?"next":"npm:next","-").concat(rw.r)}),d&&!l.campaign&&((n=d).startsWith("?")&&(n=n.substring(1)),l.campaign=(n=n.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var o=r.slice(4);"campaign"===o&&(o="name"),e[o]=(0,rZ.p)(void 0===i?"":i)}return e},{}));var p=function(){var e=rc.get("_ga");if(e&&e.startsWith("amp"))return e}();p&&(l.amp={id:p}),o=(i=new rs(null!=(u=e.instance.options.disableClientPersistence)&&u?[]:[new rf(function(){if(a)return a;var e=rd(window.location.href);return a={expires:31536e6,secure:!1,path:"/"},e&&(a.domain=e),a}())])).get("s:context.referrer"),(s=null!=(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=(e=e.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),o=i[0],s=i[1];if(t[o])return{id:s,type:t[o]}}}
4(d))?r:o)&&(l&&(l.referrer=(0,nA.Cl)((0,nA.Cl)({},l.referrer),s)),i.set("s:context.referrer",s));try{l.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},r2=n(87028),r3=n(874),r4=n(93340),r5=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,rQ.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,nA.sH)(this,void 0,void 0,function(){var t;return(0,nA.YH)(this,function(n){switch(n.label){case 0:return[4,(0,r3.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new n9.d({retry:!1,reason:"dropped by destination middleware"})),[2,new nU.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,nA.sH)(t,void 0,void 0,function(){var t,r;return(0,nA.YH)(this,function(i){switch(i.label){case 0:if(!this.action[e])return[2,n];if(t=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw Error("Something prevented the destination from getting ready");return(0,r4.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,r4.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,nA.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,nA.YH)(this,function(s){switch(s.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];s.label=1;case 1:return s.trys.push([1,3,,4]),(0,r4.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[s.sent()]),[2,n];case 3:throw o=s.sent(),(0,r4.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null==(r=(n=this.action).unload)?void 0:r.call(n,e,t)},e}(),r6=(0,r_.m)(),r8=null!=(u=r6.__SEGMENT_INSPECTOR__)?u:r6.__SEGMENT_INSPECTOR__={},r7=function(e){var t;return null==(t=r8.attach)?void 0:t.call(r8,e)},r9=n(43626),ie=function(){var e,t,n=null!=(e=window.location.hash)?e:"",r=null!=(t=window.location.search)?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")},it=function(e){function t(){var t=this,r=(0,rQ.u)(),i=r.promise,o=r.resolve;return(t=e.call(this,function(e){return i.then(function(t){return function(e,t,r){var i,o,s,a,u,l,c,d,f;return void 0===t&&(t={}),(0,nA.sH)(this,void 0,void 0,function(){var p,h,g,v,y,m,b,w,_,S;return(0,nA.YH)(this,function(E){switch(E.label){case 0:if(!0===t.disable)return[2,[new rX,nU.o.system()]];if(t.globalAnalyticsKey&&(0,rS.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,nD.qQ)(e.cdnURL),t.initialPageview&&r.add(new rM("page",[])),p=ie(),h=null!=(i=e.cdnURL)?i:(0,nD.I2)(),null==(o=e.cdnSettings))return[3,1];return v=o,[3,3];case 1:var C,x;return[4,(C=e.writeKey,x=h,(0,rR.h)("".concat(x,"/v1/projects/").concat(C,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:v=E.sent(),E.label=3;case 3:if(g=v,t.updateCDNSettings&&(g=t.updateCDNSettings(g)),"function"!=typeof t.disable)return[3,5];return[4,t.disable(g)];case 4:if(E.sent())return[2,[new rX,nU.o.system()]];E.label=5;case 5:return y=null==(a=null==(s=g.integrations["Segment.io"])?void 0:s.retryQueue)||a,t=(0,nA.Cl)({retryQueue:y},t),r7(m=new rW((0,nA.Cl)((0,nA.Cl)({},e),{cdnSettings:g,cdnURL:h}),t)),b=null!=(u=e.plugins)?u:[],w=null!=(l=e.classicIntegrations)?l:[],_=null==(c=t.integrations)?void 0:c["Segment.io"],r9.U.initRemoteMetrics((0,nA.Cl)((0,nA.Cl)({},g.metrics),{host:null!=(d=null==_?void 0:_.apiHost)?d:null==(f=g.metrics)?void 0:f.host,protocol:null==_?void 0:_.protocol})),[4,function(e,t,r,i,o,s,a){var u,l,c;return void 0===o&&(o=[]),(0,nA.sH)(this,void 0,void 0,function(){var d,f,p,h,g,v,y,m,b,w,_,S,E,C,x=this;return(0,nA.YH)(this,function(O){var k,T,L;switch(O.label){case 0:if(rO(r,a),rx(r,a),d=null==o?void 0:o.filter(function(e){return"object"==typeof e}),f=null==o?void 0:o.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),"test"===nR().NODE_ENV||!((null!=(L=null==(T=null==(k=t.middlewareSettings)?void 0:k.routingRules)?void 0:T.length)?L:0)>0))return[3,2];return[4,n.e(9010).then(n.bind(n,54139)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})];case 1:return h=O.sent(),[3,3];case 2:h=void 0,O.label=3;case 3:if(p=h,("test"===nR().NODE_ENV||!(Object.keys(t.integrations).length>1))&&!(s.length>0))return[3,5];return[4,n.e(5050).then(n.bind(n,51729)).then(function(n){return n.ajsDestinations(e,t,r.integrations,i,p,s)})];case 4:return v=O.sent(),[3,6];case 5:v=[],O.label=6;case 6:if(g=v,!t.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(9694).then(n.bind(n,98814)).then(function(e){return e.loadLegacyVideoPlugins(r)})];case 7:O.sent(),O.label=8;case 8:if(!(null==(u=i.plan)?void 0:u.track))return[3,10];return[4,n.e(3104).then(n.bind(n,53240)).then(function(e){var n;return e.schemaFilter(null==(n=i.plan)?void 0:n.track,t)})];case 9:return m=O.sent(),[3,11];case 10:m=void 0,O.label=11;case 11:return y=m,b=(0,rV.J)(t,i),[4,(function(e,t,n,r,i,o){var s,a,u;return(0,nA.sH)(this,void 0,void 0,function(){var l,c,d=this;return(0,nA.YH)(this,function(f){switch(f.label){case 0:return l=[],c=null!=(a=null==(s=e.middlewareSettings)?void 0:s.routingRules)?a:[],[4,Promise.all((null!=(u=e.remotePlugins)?u:[]).map(function(e){return(0,nA.sH)(d,void 0,void 0,function(){var s,a,u,d,f,p;return(0,nA.YH)(this,function(h){switch(h.label){case 0:var g,v;if(g=t[e.creationName],v=t[e.name],!1===t.All&&!g&&!v||!1===g||!1===v||0)return[2];h.label=1;case 1:if(h.trys.push([1,6,,7]),a=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))return[3,3];return[4,function(e,t){return(0,nA.sH)(this,void 0,void 0,function(){var n,r,i,o,s,a;return(0,nA.YH)(this,function(u){switch(u.label){case 0:if(u.trys.push([0,9,,10]),n=RegExp("https://cdn.segment.(com|build)"),r=(0,nD.I2)(),!t)return[3,6];o=(i=e.url.split("/"))[i.length-2],s=e.url.replace(o,btoa(o).replace(/=/g,"")),u.label=1;case 1:return u.trys.push([1,3,,5]),[4,(0,r2.k)(s.replace(n,r))];case 2:case 4:return u.sent(),[3,5];case 3:return u.sent(),[4,(0,r2.k)(e.url.replace(n,r))];case 5:return[3,8];case 6:return[4,(0,r2.k)(e.url.replace(n,r))];case 7:u.sent(),u.label=8;case 8:if("function"==typeof window[e.libraryName])return[2,window[e.libraryName]];return[3,10];case 9:throw a=u.sent(),console.error("Failed to create PluginFactory",e),a;case 10:return[2]}})})}(e,null==r?void 0:r.obfuscate)];case 2:a=h.sent(),h.label=3;case 3:if(!(s=a))return[3,5];return u=n[e.name],[4,s((0,nA.Cl)((0,nA.Cl)({},e.settings),u))];case 4:!function(e){if(!Array.isArray(e))throw Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw Error("Plugin: ".concat(null!=(n=e.name)?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(d=h.sent())?d:[d]),p=c.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new r5(e.creationName,t);p.length&&i&&n.addMiddleware(i),l.push(n)}),h.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",h.sent()),[3,7];case 7:return[2]}})})}))];case 1:return f.sent(),[2,l.filter(Boolean)]}})})})(t,r.integrations,b,i,p,f).catch(function(){return[]})];case 12:if(w=O.sent(),_=(0,nA.fX)((0,nA.fX)([r1],g,!0),w,!0),y&&_.push(y),(null==(l=i.integrations)?void 0:l.All)===!1&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"])return[3,14];return E=(S=_).push,[4,function(e,t,n){window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(l)),l.clear()});var r,i,o,s,a=null!=(i=null==t?void 0:t.apiKey)?i:"",u=e.options.disableClientPersistence?new n7.M(e.queue.queue.maxAttempts,[]):new n8.x(e.queue.queue.maxAttempts,"".concat(a,":dest-Segment.io")),l=new Set,c=null!=(o=null==t?void 0:t.apiHost)?o:rB.a,d=null!=(s=null==t?void 0:t.protocol)?s:"https",f="".concat(d,"://").concat(c),p=null==t?void 0:t.deliveryStrategy,h=p&&"strategy"in p&&"batching"===p.strategy?function(e,t){var n,r,i,o=[],s=!1,a=null!=(n=null==t?void 0:t.size)?n:10,u=null!=(r=null==t?void 0:t.t
4imeout)?r:5e3,l=0;function c(n){if(0!==n.length){var r,i=null==(r=n[0])?void 0:r.writeKey,o=n.map(function(e){return e.sentAt,(0,nA.Tt)(e,["sentAt"])});return(0,rR.h)("https://".concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||s,headers:rH(null==t?void 0:t.headers),method:"post",body:JSON.stringify({writeKey:i,batch:o,sentAt:new Date().toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t;if(e.status>=500)throw Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null==(t=e.headers)?void 0:t.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):u;throw new rN("Rate limit exceeded: ".concat(e.status),r)}})}}function d(e){var n;return void 0===e&&(e=1),(0,nA.sH)(this,void 0,void 0,function(){var r;return(0,nA.YH)(this,function(i){return o.length?(r=o,o=[],[2,null==(n=c(r))?void 0:n.catch(function(n){var i;nU.o.system().log("error","Error sending batch",n),e<=(null!=(i=null==t?void 0:t.maxRetries)?i:10)&&("RateLimitError"===n.name&&(l=n.retryTimeout),o.push.apply(o,r),o.map(function(t){"_metadata"in t&&(t._metadata=(0,nA.Cl)((0,nA.Cl)({},t._metadata),{retryCount:e}))}),f(e+1))})]):[2]})})}function f(e){void 0===e&&(e=1),i||(i=setTimeout(function(){i=void 0,d(e).catch(console.error)},l||u),l=0)}return rD(function(e){if((s=e)&&o.length){var t,n;Promise.all((t=[],n=0,o.forEach(function(e){rF(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t).map(c)).catch(console.error)}}),{dispatch:function(e,n){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(e){return o.push(n),[2,o.length>=a||rF(o)>=450||(null==t?void 0:t.keepalive)&&rF(o)>=54||s?d():f()]})})}}}(c,p.config):(r=null==p?void 0:p.config,{dispatch:function(e,t){return(0,rR.h)(e,{credentials:null==r?void 0:r.credentials,keepalive:null==r?void 0:r.keepalive,headers:rH(null==r?void 0:r.headers),method:"post",body:JSON.stringify(t),priority:null==r?void 0:r.priority}).then(function(e){var t;if(e.status>=500)throw Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null==(t=e.headers)?void 0:t.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new rN("Rate limit exceeded: ".concat(e.status),r)}})}});function g(r){return(0,nA.sH)(this,void 0,void 0,function(){var i,o;return(0,nA.YH)(this,function(s){var a,c,d,p,g,y;return(0,nB.a)()?(u.push(r),rq(!1,u,v,rq),[2,r]):(l.add(r),i=r.event.type.charAt(0),o=(0,rI.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(a=o,y=e.user(),a.previousId=null!=(p=null!=(d=null!=(c=a.previousId)?c:a.from)?d:y.id())?p:y.anonymousId(),a.userId=null!=(g=a.userId)?g:a.to,delete a.from,delete a.to,o=a),u.getAttempts(r)>=u.maxAttempts)?(l.delete(r),[2,r]):[2,h.dispatch("".concat(f,"/").concat(i),function(e,t,n,r,i){var o,s=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||s.id(),t.anonymousId=t.anonymousId||s.anonymousId(),t.sentAt=new Date;var a=e.queue.failedInitializations||[];a.length>0&&(t._metadata={failedInitializations:a}),null!=i&&(i.attempts>1&&(t._metadata=(0,nA.Cl)((0,nA.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],l=[];for(var c in r){var d=r[c];"Segment.io"===c&&u.push(c),"bundled"===d.bundlingStatus&&u.push(c),"unbundled"===d.bundlingStatus&&l.push(c)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var h=p[f];l.includes(h)||l.push(h)}var g=null!=(o=null==n?void 0:n.maybeBundledConfigIds)?o:{},v=[];return u.sort().forEach(function(e){var t;(null!=(t=g[e])?t:[]).forEach(function(e){v.push(e)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(t._metadata=(0,nA.Cl)((0,nA.Cl)({},t._metadata),{bundled:u.sort(),unbundled:l.sort(),bundledIds:v})),t}(e,o,t,n,r)).then(function(){return r}).catch(function(e){if(r.log("error","Error sending event",e),"RateLimitError"===e.name){var t=e.retryTimeout;u.pushWithBackoff(r,t)}else u.pushWithBackoff(r);return rq(!1,u,v,rq),r}).finally(function(){l.delete(r)})]})})}var v={metadata:{writeKey:a,apiHost:c,protocol:d},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:g,identify:g,page:g,alias:g,group:g,screen:g};return u.todo&&rq(!1,u,v,rq),v}(r,b["Segment.io"],t.integrations)];case 13:E.apply(S,[O.sent()]),O.label=14;case 14:return[4,r.register.apply(r,(0,nA.fX)((0,nA.fX)([],_,!1),d,!1))];case 15:return C=O.sent(),[4,(0,nA.sH)(void 0,void 0,void 0,function(){var e,t;return(0,nA.YH)(this,function(n){switch(n.label){case 0:e=0,t=a.getAndRemove("register"),n.label=1;case 1:if(!(e<t.length))return[3,4];return[4,rj(r,t[e]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})})];case 16:if(O.sent(),!Object.entries(null!=(c=t.enabledMiddleware)?c:{}).some(function(e){return e[1]}))return[3,18];return[4,n.e(521).then(n.bind(n,76313)).then(function(e){var n=e.remoteMiddlewares;return(0,nA.sH)(x,void 0,void 0,function(){return(0,nA.YH)(this,function(e){switch(e.label){case 0:return[4,n(C,t,i.obfuscate)];case 1:return[2,Promise.all(e.sent().map(function(e){return r.addSourceMiddleware(e)}
4))]}})})})];case 17:O.sent(),O.label=18;case 18:return[4,(0,nA.sH)(void 0,void 0,void 0,function(){var e,t;return(0,nA.YH)(this,function(n){switch(n.label){case 0:e=0,t=a.getAndRemove("addSourceMiddleware"),n.label=1;case 1:if(!(e<t.length))return[3,4];return[4,rj(r,t[e]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})})];case 19:return O.sent(),[2,C]}})})}(e.writeKey,g,m,t,b,w,r)];case 6:return S=E.sent(),m.initialized=!0,m.emit("initialize",e,t),[4,function(e,t,n){return(0,nA.sH)(this,void 0,void 0,function(){return(0,nA.YH)(this,function(r){switch(r.label){case 0:var i,o;return[4,(i=e,o=t,(0,nA.sH)(void 0,void 0,void 0,function(){return(0,nA.YH)(this,function(e){switch(e.label){case 0:if(!o.includes("ajs_"))return[3,2];return[4,i.queryString(o).catch(console.error)];case 1:e.sent(),e.label=2;case 2:return[2]}})}))];case 1:return r.sent(),rk(e,n),[2]}})})}(m,p,r)];case 7:return E.sent(),[2,[m,S]]}})})}(t[0],t[1],e)})})||this)._resolveLoadStart=function(e,t){return o([e,t])},t}return(0,nA.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),new t().load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(rA);let ir=(0,c.createContext)(void 0);function ii(e){let{src:t,strategy:n="afterInteractive",onLoad:r,onError:i,id:o,async:s=!0,defer:a=!1,...u}=e,l=(0,c.useRef)(null),d=(0,c.useRef)(r),f=(0,c.useRef)(i),p=(0,c.useRef)(u),h=(0,c.useRef)(!1);return d.current=r,f.current=i,p.current=u,(0,c.useEffect)(()=>{if(o?document.getElementById(o):document.querySelector('script[src="'.concat(t,'"]'))){var e;h.current||(h.current=!0,null==(e=d.current)||e.call(d));return}let r=()=>{let e=document.createElement("script");e.src=t,e.async=s,e.defer=a,o&&(e.id=o),Object.entries(p.current).forEach(t=>{let[n,r]=t;(n.startsWith("data-")||"type"===n||"charset"===n)&&e.setAttribute(n,String(r))}),e.onload=()=>{var e;h.current||(h.current=!0,null==(e=d.current)||e.call(d))},e.onerror=()=>{var e;let n=Error("Failed to load script: ".concat(t));null==(e=f.current)||e.call(f,n)},document.head.appendChild(e),l.current=e};if("beforeInteractive"===n)r();else if("afterInteractive"===n)if("complete"!==document.readyState)return window.addEventListener("load",r),()=>window.removeEventListener("load",r);else r();else if("lazyOnload"===n){let e=setTimeout(r,0);return()=>clearTimeout(e)}return()=>{l.current&&l.current.parentNode&&l.current.parentNode.removeChild(l.current)}},[t,n,s,a,o]),null}function io(e){let{domainScript:t,documentLanguage:n=!0,onLoad:r,onError:i}=e,o=(0,c.useRef)(!1);(0,c.useEffect)(()=>{!("u">typeof window)||o.current||window.OptanonWrapper||(window.OptanonWrapper=function(){},o.current=!0)},[]);let s=(0,c.useCallback)(()=>{null==r||r()},[r]),a=(0,c.useCallback)(e=>{null==i||i(e)},[i]);return t&&""!==t.trim()?(0,l.jsx)(ii,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-document-language":n,"data-domain-script":t,type:"text/javascript",charset:"UTF-8",strategy:"afterInteractive",onLoad:s,onError:a}):null}let is=!1,ia=[];async function iu(e){if(!is||0===ia.length)return;let t=[...ia];ia=[];for(let n=0;n<t.length;n+=10){for(let r of t.slice(n,n+10)){let t=e[r.method];if("function"==typeof t)try{t.apply(e,r.args)}catch(e){}}n+10<t.length&&await new Promise(e=>setTimeout(e,25))}}function il(){ia=[],is=!1}let ic=!1,id=[];function ip(){return()=>{}}function ih(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];is&&(ia.length>=100||ia.push({method:e,args:n}))}}function ig(){var e;return!!(null==(e=window.analytics)?void 0:e._isOneTrustStub)}async function iv(e){is&&(await iu(e),il())}let iy=!1,im=!1,ib=null,iw=0,i_={isLoading:()=>iy,isLoaded:()=>im,getLoadingPromise:()=>ib,getAttempts:()=>iw,setLoading:e=>{iy=e},setLoaded:e=>{im=e},setLoadingPromise:e=>{ib=e},setAttempts:e=>{iw=e},reset:()=>{iy=!1,im=!1,ib=null,iw=0}};function iS(e){if(!(null==e?void 0:e.categoryPreferences))return!1;let t=e.categoryPreferences||{};return d.some(e=>!0===t[e])}function iE(e){return!!e&&"string"==typeof e&&e.trim().length>0}function iC(e){return null==e||"object"==typeof e}let ix=Object.freeze(Object.defineProperty({__proto__:null,hasAnalyticsConsent:iS,isValidConsentObject:iC,isValidWriteKey:iE},Symbol.toStringTag,{value:"Module"}));
4class iO extends Error{constructor(e,t){super(t),this.name=e}}class ik extends iO{constructor(e,t){2==arguments.length&&(e+=" (Received: ".concat(JSON.stringify(t),")")),super("ValidationError","[Validation] ".concat(e))}}function iT(e,t){if("function"!=typeof e)throw new ik("".concat(t," is not a function"),e)}function iL(e,t){if(null===e||"object"!=typeof e)throw new ik("".concat(t," is not an object"),e)}function iM(e){let t=!0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(let n in t=!1,e)if("boolean"!=typeof e[n]){t=!0;break}}if(t)throw new ik("Consent Categories should be {[categoryName: string]: boolean}",e)}let iP=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=n.reduce((e,t)=>n=>t(e(n)),e=>e);return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return i(e(...n))}};async function ij(e,t){return new Promise((n,r)=>{if(e())return void n();let i=()=>setTimeout(()=>{e()?n():i()},t);i()})}class iA{get debugLoggingEnabled(){return!0===window.SEGMENT_CONSENT_WRAPPER_DEBUG_MODE}enableDebugLogging(){window.SEGMENT_CONSENT_WRAPPER_DEBUG_MODE=!0}debug(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.debugLoggingEnabled&&console.log("[consent wrapper debug]",...t)}}let iI=new iA;class iR{load(e){this.isLoadCalled=!0,this.loadOptions={...this.loadOptions,...e},iI.debug("ctx.load called",this.loadOptions)}abort(e){this.isAbortCalled=!0,this.abortLoadOptions={...this.abortLoadOptions,...e},iI.debug("Abort consent wrapper",this.loadOptions)}validate(){if(this.isAbortCalled&&this.isLoadCalled)throw new ik("both abort and load should not be called")}constructor(){this.isAbortCalled=!1,this.isLoadCalled=!1,this.abortLoadOptions={loadSegmentNormally:!0},this.loadOptions={consentModel:"opt-in"}}}var iD=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}};let iN=e=>Array.from(new Set(Object.values(e).reduce((e,t)=>e.concat(t)))),iH=(e,t)=>!!t&&!t.hasUnmappedDestinations&&Object.keys(e).filter(t=>e[t]).every(e=>!t.allCategories.includes(e)),iF=function(e,t,n){var r;let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{integrationCategoryMappings:o,shouldEnableIntegration:s}=i,a=null!=(r=o?o[e]:(e=>{if(e&&"object"==typeof e&&"consentSettings"in e&&"object"==typeof e.consentSettings&&e.consentSettings&&"categories"in e.consentSettings&&Array.isArray(e.consentSettings.categories))return e.consentSettings.categories||void 0})(t.integrations[e]))?r:[];return s?s(a,n,{creationName:e}):!a||!a.length||a.every(e=>n[e])};class iz{get analytics(){return iq(this.uninitializedAnalytics)}get cdnSettings(){return this.cdnSettingsDeferred.promise}async getAllCategories(){var e,t;return null!=(t=this.settings.integrationCategoryMappings?iN(this.settings.integrationCategoryMappings):null==(e=(await this.cdnSettings).consentSettings)?void 0:e.allCategories)?t:[]}async getCategories(){let e=await this.settings.getCategories();return iM(e),e}async loadWithFilteredDeviceModeDestinations(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let[i,o]=n,s=await this.getCategories(),a=e=>((e,t,n)=>{var r;let{remotePlugins:i,integrations:o}=e,{integrationCategoryMappings:s,shouldEnableIntegration:a}=n,u={...e,remotePlugins:[...i||[]],integrations:{...o}},l=n=>iF(n,e,t,{integrationCategoryMappings:s,shouldEnableIntegration:a});for(let e in o)l(e)?iI.debug("Enabled (opt-in): ".concat(e)):(iI.debug("Disabled (opt-in): ".concat(e)),u.remotePlugins=null==(r=u.remotePlugins)?void 0:r.filter(t=>t.creationName!==e),delete u.integrations[e]);return u})(e,s,{shouldEnableIntegration:this.settings.shouldEnableIntegration,integrationCategoryMappings:this.settings.integrationCategoryMappings});return this.load(i,{...o,updateCDNSettings:iP(a,null!=(e=null==o?void 0:o.updateCDNSettings)?e:e=>e),disable:this.createDisableOption(s,null==o?void 0:o.disable)})}load(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t;return this.ogAnalyticsLoad(r,{...i,updateCDNSettings:iP((null==i?void 0:i.updateCDNSettings)||(e=>e),e=>(iI.debug("CDN settings loaded",e),this.cdnSettingsDeferred.resolve(e),e))})}replaceLoadMethod(e){this.analytics.load=e}page(){this.analytics.page()}
4configureBlockingMiddlewareForOptOut(){((e,t,n)=>{let r=async t=>{let{integration:r,payload:i,next:o}=t,s=await e,a=i.obj.context.consent.categoryPreferences,u=!iF(r,s,a,n);if(iI.debug("Destination middleware called: ".concat(r),{DROPPED:u,categoryPreferences:a,payload:i.obj,filterSettings:n}),u)return null;o(i)};t.addDestinationMiddleware("*",r);let i=async t=>{let{payload:r,next:i}=t,o=await e,s=r.obj.context.consent.categoryPreferences,a=n.integrationCategoryMappings?{hasUnmappedDestinations:!1,allCategories:iN(n.integrationCategoryMappings)}:o.consentSettings,u=iH(s,a);if(iI.debug("Source middleware called",{DROPPED:u,categoryPreferences:s,payload:r.obj,filterSettings:n,consentSettings:a}),u)return null;i(r)};t.addSourceMiddleware(i)})(this.cdnSettings,this.analytics,{integrationCategoryMappings:this.settings.integrationCategoryMappings,shouldEnableIntegration:this.settings.shouldEnableIntegration})}configureConsentStampingMiddleware(){let e,{pruneUnmappedCategories:t}=this.settings,n=(e=async()=>{let e=await this.getCategories();return t?((e,t)=>{if(!t.length)throw new ik("Invariant: No consent categories defined in Segment",[]);return t.reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{})})(e,await this.getAllCategories()):e},async t=>{let{payload:n,next:r}=t;n.obj.context.consent={...n.obj.context.consent,categoryPreferences:await e()},r(n)});this.analytics.addSourceMiddleware(n)}consentChange(e){iI.debug("Consent change",e);try{iM(e)}catch(e){return console.error(e)}this.analytics.track("Segment Consent Preference Updated",void 0,{consent:{categoryPreferences:e}})}constructor(e,t){this.cdnSettingsDeferred=iD(),this.createDisableOption=(e,t)=>!0===t||(n=>iH(e,n.consentSettings)||"function"==typeof t&&t(n)),function(e){if(iL(e,"analytics"),!("load"in e&&"addSourceMiddleware"in e&&"addDestinationMiddleware"in e&&"track"in e))throw new ik("analytics is not an Analytics instance",e)}(e),this.settings=t,this.uninitializedAnalytics=e,this.ogAnalyticsLoad=e.load.bind(e)}}let iq=e=>{if(Array.isArray(e)){var t,n;let r=null!=(t=e._loadOptions)?t:{},i=window[null!=(n=null==r?void 0:r.globalAnalyticsKey)?n:"analytics"];if(null==i?void 0:i.initialized)return i}return e},iB=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r]=t;if("object"!=typeof r||!r)throw new ik("Options should be an object",r);iT(r.getCategories,"getCategories"),r.shouldLoadSegment&&iT(r.shouldLoadSegment,"shouldLoadSegment"),r.shouldEnableIntegration&&iT(r.shouldEnableIntegration,"shouldEnableIntegration"),r.shouldDisableSegment&&iT(r.shouldDisableSegment,"shouldDisableSegment"),r.integrationCategoryMappings&&iL(r.integrationCategoryMappings,"integrationCategoryMappings"),r.registerOnConsentChanged&&iT(r.registerOnConsentChanged,"registerOnConsentChanged");let{shouldDisableSegment:i,getCategories:o,shouldLoadSegment:s,integrationCategoryMappings:a,shouldEnableIntegration:u,registerOnConsentChanged:l,shouldLoadWrapper:c,enableDebugLogging:d}=r;return e=>{let t=new iz(e,{integrationCategoryMappings:a,shouldEnableIntegration:u,getCategories:o});d&&iI.enableDebugLogging();let n=(null==c?void 0:c())||Promise.resolve();n.then(()=>{null==l||l(e=>t.consentChange(e))});let r=async(e,r)=>{if((null==r?void 0:r.initialPageview)&&(t.page(),r={...r,initialPageview:!1}),await (null==i?void 0:i()))return;await n;let o=await (async()=>{let e=new iR;return await (null==s?void 0:s(e)),e.validate(),e})();if(o.isAbortCalled){var a;(null==(a=o.abortLoadOptions)?void 0:a.loadSegmentNormally)===!0&&t.load(e,r);return}if(t.configureConsentStampingMiddleware(),"opt-in"===o.loadOptions.consentModel)return void await t.loadWithFilteredDeviceModeDestinations(e,r);if("opt-out"===o.loadOptions.consentModel){t.configureBlockingMiddlewareForOptOut(),t.load(e,r);return}var u=o.loadOptions.consentModel;throw Error("Unhandled discriminated union member: ".concat(JSON.stringify(u)))};return t.replaceLoadMethod(r),e}},iU=e=>{var t,n,r,i,o,s;if(e)return e();let a=null!=(s=null==(o=window.OneTrust)||null==(i=o.GetDomainData)||null==(r=i.call(o))||null==(n=r.ConsentModel)||null==(t=n.Name)?void 0:t.toLowerCase())?s:"unknown";if(a.includes("opt-out"))return"opt-out";if(a.includes("opt-in"))return"opt-in";let u=nm();return d.some(e=>u.has(e))?(ny({level:"debug",message:'OneTrust consent model "'.concat(a,'" resolved to opt-out: analytics categories are granted by default in geolocation rules.'),data:{modelName:a}}),"opt-out"):(ny({level:"debug",message:'OneTrust consent model "'.concat(a,'" resolved to opt-in: no analytics categories are granted by default.'),data:{modelName:a}}),"opt-in")},i$=e=>{let t=nb();return"opt-out"===e&&0===t.size?nw(new Set(f)).categoryPreferences:nw(t).categoryPreferences};async function iY(e){try{var t;let{createConsentPlugin:n}=await Promise.resolve().then(()=>iJ),r=n(()=>{let t=e.getConsent(),n=e.getIAB();return{consent:t,iab:n?{gpp:n.gpp,gppSid:n.gppSid,tcfString:n.tcfString}:void 0}});(null==(t=window.analytics)?void 0:t.register)?window.analytics.register(r):ny({level:"warn",message:"analytics.register not available, consent plugin not registered"})}catch(e){ny({level:"error",message:"Failed to register consent plugin",error:e instanceof Error?e.message:String(e)})}}function iG(e){return function(){let t=e();return t.anonymousId=function(){return"legacy-compat-"+Math.random().toString(36).substring(2,11)},t.id=function(){return null},t.traits=function(){return{}},t}}let iJ=Object.freeze(Object.defineProperty({__proto__:null,createConsentPlugin:function(e){return{name:"onetrust-consent-stamper",type:"before",version:nk,isLoaded:()=>!0,load:()=>Promise.resolve(),track:t=>{let{consent:n,iab:r}=e();return n?t.updateEvent("context.consent",n):console.warn("[OneTrust] Consent data missing in event context"),(null==r?void 0:r.gpp)&&t.updateEvent("context.gpp",r.gpp),(null==r?void 0:r.gppSid)&&t.updateEvent("context.gpp_sid",r.gppSid),(null==r?void 0:r.tcfString)&&t.updateEvent("context.tcfString",r.tcfStr
4ing),t},page:function(e){var t;return null==(t=this.track)?void 0:t.call(this,e)},identify:function(e){var t;return null==(t=this.track)?void 0:t.call(this,e)}}},createLegacyUserObject:iG,updateAnalyticsConsent:function(e,t){var n;(null==(n=window.analytics)?void 0:n.set)&&(window.analytics.set("context.consent",e),(null==t?void 0:t.gpp)&&window.analytics.set("context.gpp",t.gpp),(null==t?void 0:t.gppSid)&&window.analytics.set("context.gpp_sid",t.gppSid),(null==t?void 0:t.tcfString)&&window.analytics.set("context.tcfString",t.tcfString))}},Symbol.toStringTag,{value:"Module"}));async function iK(e,t,n,r){var i;let o=(null==r?void 0:r.forceReload)===!0;if(!iE(e))return void ny({level:"error",message:"Segment not loaded: Invalid Segment write key provided",data:{writeKey:e}});let{hasAnalyticsConsent:s}=await Promise.resolve().then(()=>ix),a=(null==r?void 0:r.consentModel)?r:(()=>{let e=iU(void 0);return{...null!=r?r:{},consentModel:()=>e}})(),u="opt-out"===iU(a.consentModel);if(!u&&!s(t)||typeof window>"u"||typeof document>"u")return;if(!o){if(window.analytics&&"function"==typeof window.analytics.track&&"function"==typeof window.analytics.page&&!ig()){n&&await iY(n),i_.setLoaded(!0);return}if(i_.isLoading()&&i_.getLoadingPromise())return void await i_.getLoadingPromise()}o&&i_.reset(),i_.setLoading(!0),i_.setAttempts(0);let l=function(e){var t=new it;let n=null,r=()=>(null==e?void 0:e.consentModel)?e.consentModel():null!==n?n:iU(void 0);return iB({shouldLoadWrapper:async()=>{await nC()},shouldLoadSegment:async t=>{let r=iU(null==e?void 0:e.consentModel);return(null==e?void 0:e.consentModel)||(n=r),"opt-out"===r?t.load({consentModel:"opt-out"}):(await ij(()=>(()=>{let e=nb();return d.some(t=>e.has(t))})(),500),t.load({consentModel:"opt-in"}))},getCategories:()=>i$(r()),registerOnConsentChanged:e=>{var t,n;null==(n=window.OneTrust)||null==(t=n.OnConsentChanged)||t.call(n,()=>{e(i$(r()))})},integrationCategoryMappings:null==e?void 0:e.integrationCategoryMappings})(t)}(a);l._oneTrustConsentManager=!0,"function"==typeof l.user&&(l.user=iG(l.user)),o?window.analytics=l:typeof window>"u"||!ic||(window.analytics=l,id.forEach(e=>{try{e()}catch(e){ny({level:"warn",message:"Error executing analytics ready callback",error:e instanceof Error?e.message:e,data:{callbackCount:id.length}})}}),id=[],is||il(),ic=!1);try{let r=(async()=>{var t;(null==(t=a.segmentPlugins)?void 0:t.length)&&await l.register(...a.segmentPlugins),await Promise.resolve(l.load({writeKey:e}))})();i_.setLoadingPromise(r),await r,"function"==typeof l.ready&&await l.ready(),i_.setLoaded(!0),i_.setLoading(!1),n&&await iY(n);let o=(null==t?void 0:t.categoryPreferences)||{};Object.keys(o).length>0&&window.analytics&&(window.analytics.consent=o);let c=window.analytics||l,d=async e=>(!!u||!!s(e))&&(await iv(c),!0),f=null!=(i=null==n?void 0:n.getConsent())?i:t;if(!await d(f)&&n){let e=n.subscribe(async t=>{await d(t.consent)&&e()})}else n||await iv(c)}catch(e){i_.setLoading(!1),i_.setLoaded(!1),i_.setLoadingPromise(null),ny({level:"error",message:"Failed to load Segment analytics after ".concat(i_.getAttempts()," attempts"),error:e instanceof Error?e.message:e,data:{attempts:i_.getAttempts(),originalError:e}});return}}let iW=Object.freeze(Object.defineProperty({__proto__:null,loadSegmentAfterConsent:iK},Symbol.toStringTag,{value:"Module"})),iX="C0004";function iV(e){let{children:t,segmentKey:n,applicationName:r,environment:o,autoInitialize:s=!0,onetrustKey:a,documentLanguage:u=!0,onScriptLoad:d,onScriptError:f,enableSegmentCookieSync:p=!1,consentModel:h,integrationCategoryMappings:g,oneTrustLoadTimeoutMs:v,oneTrustLoadRetries:y,oneTrustLoadRetryDelayMs:m,enableEventQueue:b=!1,segmentPlugins:w}=e,[_,S]=(0,c.useState)({consent:null,iab:null,isReady:!1}),[E,C]=(0,c.useState)(!1),x=(0,c.useCallback)(e=>{S(e)},[]);(function(e,t){let n=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(e){var r,o;let s=n.current;s&&s.applicationName===e&&s.environment===t||(r=e,o=t,i=r,o&&(nc=o),n.current={applicationName:e,environment:t})}},[e,t])})(r,o),(0,c.useEffect)(()=>{var e;(void 0!==v||void 0!==y||void 0!==m)&&("number"==typeof(e={timeoutMs:v,retries:y,retryDelayMs:m}).timeoutMs&&Number.isFinite(e.timeoutMs)&&e.timeoutMs>=0&&(nE.timeoutMs=e.timeoutMs),"number"==typeof e.retries&&Number.isFinite(e.retries)&&Number.isInteger(e.retries)&&e.retries>=0&&(nE.retries=e.retries),"number"==typeof e.retryDelayMs&&Number.isFinite(e.retryDelayMs)&&e.retryDelayMs>=0&&(nE.retryDelayMs=e.retryDelayMs))},[v,y,m]);let O=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=(0,c.useRef)(null),o=(0,c.useRef)(null);return(0,c.useEffect)(()=>{i.current||(i.current=nP(r));let s=i.current;return o.current&&(o.current(),o.current=null),o.current=s.subscribe(t),e&&s.initialize().catch(e=>{nv({level:"error",message:"Failed to initialize consent manager",error:e,data:{applicationName:n}})}),()=>{o.current&&(o.current(),o.current=null)}},[e,t,n,r]),i}(s,x,r,p),k=(0,c.useMemo)(()=>a,[a]);(0,c.useEffect)(()=>
4{if(n&&"u">typeof window&&O.current){let e=O.current,t=window.analytics;window.OneTrustDebug={segmentKeyProvided:!!n,analyticsExists:!!t,analyticsWriteKey:null==t?void 0:t._writeKey,analyticsRegisterExists:!!(null==t?void 0:t.register),consentPluginRegistered:null==t?void 0:t._consentPluginRegistered,consentManagerReady:!!e&&"function"==typeof e.isReady&&e.isReady(),lastUpdated:new Date().toISOString()}}},[n,O]),function(e,t,n,r,i){let o=(0,c.useRef)(null),s=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(e&&"u">typeof window&&t.current){let u=t.current;try{var n,a;o.current=function(e,t,n){if(typeof window>"u")throw Error("Analytics initialization not supported in server-side environment");if(!iE(e))throw Error("Valid Segment write key is required for analytics initialization");try{!function(e){var t,n;if(!(typeof window>"u")&&(il(),is=n=(null==e?void 0:e.enableEventQueue)===!0,n||(ia=[]),!window.analytics||(null==(t=window.analytics)?void 0:t._isOneTrustStub))){let t=function(e){ic=!0,id=[];let t=(null==e?void 0:e.enableEventQueue)===!0,n={track:t?ih("track"):ip(),page:t?ih("page"):ip(),identify:t?ih("identify"):ip(),group:t?ih("group"):ip(),alias:t?ih("alias"):ip(),ready:e=>{id.push(e)},load:e=>{n._writeKey=e},user:()=>({anonymousId:()=>"",id:()=>"",traits:()=>({})}),set:t?ih("set"):ip(),_isOneTrustStub:!0};return n}(e);window.analytics=t}}((null==n?void 0:n.enableEventQueue)?{enableEventQueue:!0}:void 0)}catch(e){throw ny({level:"error",message:"Failed to install analytics stub",error:e instanceof Error?e.message:e}),Error("Analytics stub installation failed: ".concat(e instanceof Error?e.message:e))}return{loadWhenConsented:async r=>{try{if(!iC(r))throw Error("Invalid consent object provided");if(i_.isLoaded()&&!iS(r))return;await iK(e,r,t,n)}catch(t){throw ny({level:"error",message:"Failed to load Segment after consent",error:t instanceof Error?t.message:t,data:{hasConsent:iS(r),writeKey:e?"provided":"missing",currentlyLoading:i_.isLoading(),currentlyLoaded:i_.isLoaded()}}),t}},isLoaded:()=>i_.isLoaded()&&!!window.analytics&&!ig(),isLoading:()=>i_.isLoading()}}(e,u,r),null==i||i(o.current.isLoaded());let t=async function(t,n){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var a,l;let{loadSegmentAfterConsent:n}=await Promise.resolve().then(()=>iW);await n(e,t,u,s?{...r,forceReload:!0}:r),null==i||i(null!=(l=null==(a=o.current)?void 0:a.isLoaded())&&l)}catch(e){ny({level:"error",message:n,error:e instanceof Error?e.message:e})}},l=async(e,n)=>{try{await nC(),("opt-out"===iU(null==r?void 0:r.consentModel)||iS(e))&&await t(e,n)}catch(e){ny({level:"error",message:n,error:e instanceof Error?e.message:e})}},c=u.getConsent();s.current=null!=(a=null==c||null==(n=c.categoryPreferences)?void 0:n[iX])&&a,l(c,"Failed to load Segment analytics");let d=u.subscribe(async e=>{var n,r,i,a,u;let{consent:c}=e,d=null!=(u=null==c||null==(n=c.categoryPreferences)?void 0:n[iX])&&u,f=s.current;if(s.current=d,!1===f&&!0===d&&(null==(r=o.current)?void 0:r.isLoaded())){ny({level:"info",message:"Advertising consent (C0004) granted mid-session. Re-initialising Segment to load advertising destinations (e.g. GTM)."}),await t(c,"Failed to reload Segment after advertising consent change",!0);return}(null==(i=o.current)?void 0:i.isLoaded())||(null==(a=o.current)?void 0:a.isLoading())||await l(c,"Failed to load Segment analytics after consent")});return()=>{null==i||i(!1),d(),ic=!1,id=[],il(),o.current=null}}catch(e){ny({level:"error",message:"Failed to initialize consent-first analytics",error:e instanceof Error?e.message:e})}}},[e,t,n,r,i])}(n,O,r,(0,c.useMemo)(()=>({consentModel:h,integrationCategoryMappings:g,enableEventQueue:b,segmentPlugins:w}),[h,g,b,w]),C);let T=(0,c.useCallback)(()=>{let e=O.current;e&&e.openConsentModal()},[O]),L=(0,c.useMemo)(()=>({consent:_.consent,iab:_.iab,isReady:_.isReady,isAnalyticsLoaded:E,openConsentModal:T}),[_.consent,_.iab,_.isReady,E,T]);return(0,l.jsxs)(ir.Provider,{value:L,children:[(0,l.jsx)(io,{domainScript:k,documentLanguage:u,onLoad:d,onError:f}),t]})}},9525:(e,t,n)=>{"use strict";n.d(t,{AP:()=>f,LV:()=>function e(t,n={}){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)if("function"==typeof e)return e;else return t;if((0,i.sp)(t))return t}catch{return t}let r=function(...r){try{let i=r.map(t=>e(t,n));return t.apply(this,i)}catch(e){throw c++,setTimeout(()=>{c--}),(0,o.v4)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,s.gO)(e,void 0,void 0),(0,s.M6)(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,a.Cp)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch{}(0,i.pO)(r,t),(0,i.my)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch{}return r},jN:()=>d,jf:()=>l});var r=n(49636),i=n(73314),o=n(2257),s=n(28385),a=n(27122),u=n(6056
47);let l=r.O,c=0;function d(){return c>0}function f(){let e=(0,u.$N)(),{referrer:t}=l.document||{},{userAgent:n}=l.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}},11556:(e,t,n)=>{"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i=function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}};return new Promise(function(e){return setTimeout(e,n)}).then(function(){return r(i(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},12398:(e,t,n)=>{"use strict";function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},12519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},14822:(e,t,n)=>{"use strict";n.d(t,{Ud:()=>s,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function s(e){window[r]=e}},15214:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(34650);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},17056:(e,t,n)=>{"use strict";n.d(t,{x:()=>f});var r=n(71450),i=n(4102),o=n(42112),s=n(75686),a={getItem:function(){},setItem:function(){},removeItem:function(){}};try{a=(0,s.B)()&&window.localStorage?window.localStorage:a}catch(e){console.warn("Unable to access localStorage",e)}function u(e){var t=a.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function l(e){var t=a.getItem(e);return t?JSON.parse(t):{}}function c(e){a.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=a.getItem(r),o=i?JSON.parse(i):null,s=null===o||new Date().getTime()>o;if(s){a.setItem(r,JSON.stringify(new Date().getTime()+50)),t(),a.removeItem(r);return}!s&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var f=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),s="persisted-queue:v1:".concat(n,":seen"),f=[],p={};return d(n,function(){try{f=u(o),p=l(s),c(o),c(s),i.queue=(0,r.fX)((0,r.fX)([],f,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},p),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){var t,n,c,d;t=u(o),n=(0,r.fX)((0,r.fX)([],e,!0),t,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{}),a.setItem(o,JSON.stringify(Object.values(n))),c=i.seen,d=l(s),a.setItem(s,JSON.stringify((0,r.Cl)((0,r.Cl)({},d),c)))})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},18134:(e,t,n)=>{"use strict";n.d(t,{f:()=>T});var r=n(29097),i=n(43275),o=n(78419),s=n(86334),a=n(87624),u=n(28385),l=n(2257),c=n(9525),d=n(26552),f=n(31209),p=n(88863);let h=String(0),g=c.jf.navigator,v="",y="",m="",b=g?.userAgent||"",w="",_=g?.language||g?.languages?.[0]||"",S=g?.userAgentData;function E(e){return"pageload"===(0,r.et)(e).op}(function(e){return"object"==typeof e&&null!==e&&"getHighEntropyValues"in e})(S)&&S.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(v=e.platform||"",m=e.architecture||"",w=e.model||"",y=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];b=`${t.brand} ${t.version}`}}).catch(e=>void 0);let C=!1;function x(e){if(C)return s.T&&i.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return s.T&&i.Yz.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=(0,l.KU)(),n=t?.getOptions();if(!n)return s.T&&i.Yz.log("[Profiling] Profiling disabled, no options foun
4d."),!1;let r=n.profilesSampleRate;return("number"!=typeof r&&"boolean"!=typeof r||"number"==typeof r&&isNaN(r)?(s.T&&i.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):!0!==r&&!1!==r&&(r<0||r>1)&&(s.T&&i.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${r}.`),1))?(s.T&&i.Yz.warn("[Profiling] Discarding profile because of invalid sample rate."),!1):r?!!(!0===r||Math.random()<r)||(s.T&&i.Yz.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(s.T&&i.Yz.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1)}let O=new Map;function k(e){let t;E(e)&&(t=1e3*(0,a.zf)());let n=function(){let e=c.jf.Profiler;if("function"!=typeof e){s.T&&i.Yz.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){s.T&&(i.Yz.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),i.Yz.log("[Profiling] Disabling profiling for current user session.")),C=!0}}();if(!n)return;s.T&&i.Yz.log(`[Profiling] started profiling span: ${(0,r.et)(e).description}`);let o=(0,u.eJ)();async function d(){if(e&&n)return n.stop().then(t=>{if(f&&(c.jf.clearTimeout(f),f=void 0),s.T&&i.Yz.log(`[Profiling] stopped profiling of span: ${(0,r.et)(e).description}`),!t){s.T&&i.Yz.log(`[Profiling] profiler returned null profile for: ${(0,r.et)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}if(O.set(o,t),O.size>30){let e=O.keys().next().value;O.delete(e)}}).catch(e=>{s.T&&i.Yz.log("[Profiling] error while stopping profiler:",e)})}(0,l.o5)().setContext("profile",{profile_id:o,start_timestamp:t});let f=c.jf.setTimeout(()=>{s.T&&i.Yz.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,r.et)(e).description),d()},3e4),p=e.end.bind(e);e.end=function(){return e?(d().then(()=>{p()},()=>{p()}),e):p()}}let T=(0,o._C)(()=>({name:"BrowserProfiling",setup(e){let t=(0,r.Bk)(),n=t&&(0,r.zU)(t);n&&E(n)&&x(n)&&k(n),e.on("spanStart",e=>{e===(0,r.zU)(e)&&x(e)&&k(e)}),e.on("beforeEnvelope",e=>{if(!O.size)return;let t=function(e){let t=[];return(0,f.yH)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof r||!r){s.T&&i.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let f=function(e){let t=O.get(e);return t&&O.delete(e),t}(r);if(!f){s.T&&i.Yz.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let g=function(e,t,n,r){var o;if(!(n.samples.length<2?(s.T&&i.Yz.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!n.frames.length||(s.T&&i.Yz.log("[Profiling] Discarding profile because it contains no frames"),!1)))return null;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let f=function(e){let t=e.contexts?.trace?.trace_id;return("string"==typeof t&&32!==t.length&&s.T&&i.Yz.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(r),g="thread_metadata"in(o=n)?o:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[h]:{name:"main"}}},i=e.samples[0];if(!i)return r;let o=i.timestamp,s=(0,a.k3)(),u="number"==typeof performance.timeOrigin?performance.timeOrigin:s||0,l=u-(s||u);return e.samples.forEach((i,s)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[s]={elapsed_since_start_ns:((i.timestamp+l-o)*1e6).toFixed(0),stack_id:t,thread_id:h};return}let a=e.stacks[i.stackId],u=[];for(;a;){u.push(a.frameId);let t=e.frames[a.frameId];t&&void 0===r.frames[a.frameId]&&(r.frames[a.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),a=void 0===a.parentId?void 0:e.stacks[a.parentId]}let c={elapsed_since_start_ns:((i.timestamp+l-o)*1e6).toFixed(0),stack_id:n,thread_id:h};r.stacks[n]=u,r.samples[s]=c,n++}),r}(o),S=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,a.zf)()),E="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,a.zf)();return{event_id:e,timestamp:new Date(S).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||d.U,runtime:{name:"javascript",version:c.jf.navigator.userAgent},os:{name:v,version:y,build_number:b},device:{locale:_,model:w,manufacturer:b,architecture:m,is_emulator:!1},debug_meta:{images:function(e){let t=(0,l.KU)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,p.i)(r,e):[]}(n.resources)},profile:g,transactions:[{name:r.transaction||"",id:r.event_id||
4(0,u.eJ)(),trace_id:f,active_thread_id:h,relative_start_ns:"0",relative_end_ns:((E-S)*1e6).toFixed(0)}]}}(r,o,f,e);g&&n.push(g)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,n)})}}))},21010:(e,t,n)=>{"use strict";n.d(t,{AS:()=>l,aj:()=>c,s5:()=>u});var r=n(61571),i=n(43275),o=n(85236);let s={},a={};function u(e,t){s[e]=s[e]||[],s[e].push(t)}function l(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.T&&i.Yz.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let n=e&&s[e];if(n)for(let s of n)try{s(t)}catch(t){r.T&&i.Yz.error(`Error while triggering instrumentation handler.
5Type: ${e}
6Name: ${(0,o.qQ)(s)}
7Error:`,t)}}},23188:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(71450),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return[2,(n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:if(!e(i))return[3,2];return o=n,[4,t()];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})})(void 0)]})})}},23458:(e,t,n)=>{"use strict";var r=n(42928),i=n(63984),o=n(367),s=Object.prototype.toString;e.exports=function(e){var t;if("[object Date]"===s.call(e))return e;return"[object Number]"===s.call(e)?new Date((t=e)<315576e5?1e3*t:t):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e)}},23561:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(43770)),o=n(59284),s=n(29485),a=r(n(31943));function u(e,t){o.Facade.call(this,e,t)}t.Page=u,i.default(u,o.Facade);var l=u.prototype;l.action=function(){return"page"},l.type=l.action,l.category=o.Facade.field("category"),l.name=o.Facade.field("name"),l.title=o.Facade.proxy("properties.title"),l.path=o.Facade.proxy("properties.path"),l.url=o.Facade.proxy("properties.url"),l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},l.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(a.default(t))return t},l.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},l.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},l.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s.Track(t,this.opts)}},25009:(e,t,n)=>{"use strict";n.d(t,{I2:()=>l,YM:()=>c,qQ:()=>u});var r,i=n(14822),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,s=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEac
7h(function(t){var n,r=null!=(n=t.getAttribute("src"))?n:"",i=o.exec(r);i&&i[1]&&(e=i[1])}),e},a=function(){var e;return null!=r?r:null==(e=(0,i.kJ)())?void 0:e._cdn},u=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},l=function(){var e=a();if(e)return e;var t=s();return t||"https://cdn.segment.com"},c=function(){var e=l();return"".concat(e,"/next-integrations")}},26249:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(43770)),o=n(59284);function s(e,t){o.Facade.call(this,e,t)}t.Delete=s,i.default(s,o.Facade),s.prototype.type=function(){return"delete"}},27213:(e,t,n)=>{"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,s=t.length,a=e;o<s&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)a=a[i]=o===s?n:typeof(r=a[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},28769:(e,t,n)=>{"use strict";n.d(t,{d:()=>u,j:()=>l});var r=n(55833),i=n(27213),o=n(71450),s=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,s=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete s.time;var a=null!=(i=null==(r=t.time)?void 0:r.toISOString())?i:"";return e[a]&&(a="".concat(a,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[a]=s,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),a=n(31144),u=function(e){var t,n,r;this.retry=null==(t=e.retry)||t,this.type=null!=(n=e.type)?n:"plugin Error",this.reason=null!=(r=e.reason)?r:""},l=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new a.r),void 0===i&&(i=new s),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new u({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if((null==(n=this.event.integrations)?void 0:n[r])===!1)return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},29023:e=>{function t(e){return function(t,n,r,o){var s,a=o&&"function"==typeof o.normalizer?o.normalizer:i;n=a(n);for(var u=!1;!u;)!function(){for(s in t){var e=a(s);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[s];if(null==i||!n.length){u=!0;return}t=i;return}}}s=void 0,u=!0}();if(s)return null==t?t:e(t,s,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},29485:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(43770)),o=n(59284),s=n(64050),a=r(n(31943)),u=r(n(29023));function l(e,t){o.Facade.call(this,e,t)}t.Track=l,i.default(l,o.Facade);var c=l.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=u.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=u.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(a.default(t))return t},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e&&("number"==typeof e||"string"==typeof e&&!isNaN(e=parseFloat(e=e.replace(/\$/g,"")))))return e}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new s.Identify(e,this.opts)}},31144:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(71450),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:({gauge:"g",counter:"c"})[e.type],e:e.timestamp}})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},31209:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>g,W3:()=>u,bN:()=>d,bm:()=>f,h4:()=>a,n2:()=>v,yH:()=>l,zk:()=>h});var r=n(82438),i=n(22758),o=n(2332),s=n(49636);function a(e,t=[]){return[e,t]}function u(e,t){let[n,r]=e;return[n,[...r,t]]}function l(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function c(e){let t=(0,r.Se)(s.O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function d(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(let e of n){let[t,n]=e;if(i(`
8${JSON.stringify(t)}
9`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,o.S8)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
9e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function f(e){let t="string"==typeof e.data?c(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let p={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"};function h(e){return p[e]}function g(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.SB)(r)},...o&&{trace:o}}}},31815:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(75686);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},31943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},34220:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(95155),i=n(12115),o=n(51118),s=n(53127),a=n(59132),u=n(94416);function l(e){let{children:t,isValidProp:n,...l}=e;n&&(0,a.D)(n);let c=(0,i.useContext)(s.Q);(l={...c,...l}).transition=(0,o.K)(l.transition,c.transition),l.isStatic=(0,u.M)(()=>l.isStatic);let d=(0,i.useMemo)(()=>l,[JSON.stringify(l.transition),l.transformPagePoint,l.reducedMotion,l.skipAnimations]);return(0,r.jsx)(s.Q.Provider,{value:d,children:t})}},34650:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(59284);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(6266);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var s=n(48065);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return s.Group}});var a=n(64050);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return a.Identify}});var u=n(29485);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return u.Track}});var l=n(23561);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return l.Page}});var c=n(65522);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(26249);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:s.Group,Identify:a.Identify,Track:u.Track,Page:l.Page,Screen:c.Screen,Delete:d.Delete})},38050:e=>{"use strict";e.exports=self.fetch.bind(self),e.exports.default=e.exports},38174:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});let r="Content-Type",i=Symbol(),o=Symbol();function s(e={}){var t;return null==(t=Object.entries(e instanceof Array?Object.fromEntries(e):e).find(([e])=>e.toLowerCase()===r.toLowerCase()))?void 0:t[1]}function a(e){return/^application\/.*json.*/.test(e)}let u=function(e,t,n=!1){return Object.entries(t).reduce((t,[r,i])=>{let o=e[r];return Array.isArray(o)&&Array.isArray(i)?t[r]=n?[...o,...i]:i:"object"==typeof o&&"object"==typeof i?t[r]=u(o,i,n):t[r]=i,t},{...e})},l={options:{},errorType:"text",polyfills:{},polyfill(e,t=!0,n=!1,...r){let i=this.polyfills[e]||("undefined"!=typeof self?self[e]:null)||("undefined"!=typeof global?global[e]:null);if(t&&!i)throw Error(e+" is not defined");return n&&i?new i(...r):i}};class c extends Error{}let d={_url:"",_options:{},_config:l,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon(e){return{...this,_addons:[...this._addons,e],...e.wretch}},errorType(e){return{...this,_config:{...this._config,errorType:e}}},polyfills(e,t=!1){return{...this,_config:{...this._config,polyfills:t?e:u(this._config.polyfills,e)}}}
9,url(e,t=!1){if(t)return{...this,_url:e};let n=this._url.split("?");return{...this,_url:n.length>1?n[0]+e+"?"+n[1]:this._url+e}},options(e,t=!1){return{...this,_options:t?e:u(this._options,e)}},headers(e){let t=e?Array.isArray(e)?Object.fromEntries(e):"entries"in e?Object.fromEntries(e.entries()):e:{};return{...this,_options:u(this._options,{headers:t})}},accept(e){return this.headers({Accept:e})},content(e){return this.headers({[r]:e})},auth(e){return this.headers({Authorization:e})},catcher(e,t){let n=new Map(this._catchers);return n.set(e,t),{...this,_catchers:n}},catcherFallback(e){return this.catcher(o,e)},resolve(e,t=!1){return{...this,_resolvers:t?[e]:[...this._resolvers,e]}},defer(e,t=!1){return{...this,_deferred:t?[e]:[...this._deferred,e]}},middlewares(e,t=!1){return{...this,_middlewares:t?e:[...this._middlewares,...e]}},fetch(e=this._options.method,t="",n=null){let r=this.url(t).options({method:e}),l=s(r._options.headers),d=this._config.polyfill("FormData",!1),f="object"==typeof n&&!(d&&n instanceof d)&&(!r._options.headers||!l||a(l));return(e=>{let t=Object.create(null),{_url:n,_options:r,_config:s,_catchers:a,_resolvers:l,_middlewares:d,_addons:f}=e=e._addons.reduce((n,r)=>r.beforeRequest&&r.beforeRequest(n,e._options,t)||n,e),p=new Map(a),h=u(s.options,r),g=n,v=(e=>d.reduceRight((e,t)=>t(e),e)||e)((e,t)=>(g=e,s.polyfill("fetch")(e,t)))(n,h),y=Error(),m=v.catch(e=>{throw{[i]:e}}).then(e=>{var t;if(!e.ok){let n=new c;if(n.cause=y,n.stack=n.stack+"\nCAUSE: "+y.stack,n.response=e,n.status=e.status,n.url=g,"opaque"===e.type)throw n;let r="json"===s.errorType||(null==(t=e.headers.get("Content-Type"))?void 0:t.split(";")[0])==="application/json";return(s.errorType?r?e.text():e[s.errorType]():Promise.resolve(e.body)).then(t=>{if(n.message="string"==typeof t?t:e.statusText,t)if(r&&"string"==typeof t){n.text=t;try{n.json=JSON.parse(t)}catch(e){}}else n[s.errorType]=t;throw n})}return e}),b=t=>t.catch(t=>{let n=Object.prototype.hasOwnProperty.call(t,i),r=n?t[i]:t,s=(null==r?void 0:r.status)&&p.get(r.status)||p.get(null==r?void 0:r.name)||n&&p.has(i)&&p.get(i);if(s)return s(r,e);let a=p.get(o);if(a)return a(r,e);throw r}),w=e=>t=>e?b(m.then(t=>t&&t[e]()).then(e=>t?t(e):e)):b(m.then(e=>t?t(e):e)),_={_wretchReq:e,_fetchReq:v,_sharedState:t,res:w(null),json:w("json"),blob:w("blob"),formData:w("formData"),arrayBuffer:w("arrayBuffer"),text:w("text"),error(e,t){return p.set(e,t),this},badRequest(e){return this.error(400,e)},unauthorized(e){return this.error(401,e)},forbidden(e){return this.error(403,e)},notFound(e){return this.error(404,e)},timeout(e){return this.error(408,e)},internalError(e){return this.error(500,e)},fetchError(e){return this.error(i,e)}},S=f.reduce((e,t)=>({...e,..."function"==typeof t.resolver?t.resolver(e):t.resolver}),_);return l.reduce((t,n)=>n(t,e),S)})((r=n?f?r.json(n,l):r.body(n):r)._deferred.reduce((e,t)=>t(e,e._url,e._options),r))},get(e=""){return this.fetch("GET",e)},delete(e=""){return this.fetch("DELETE",e)},put(e,t=""){return this.fetch("PUT",t,e)},post(e,t=""){return this.fetch("POST",t,e)},patch(e,t=""){return this.fetch("PATCH",t,e)},head(e=""){return this.fetch("HEAD",e)},opts(e=""){return this.fetch("OPTIONS",e)},body(e){return{...this,_options:{...this._options,body:e}}},json(e,t){let n=s(this._options.headers);return this.content(t||a(n)&&n||"application/json").body(JSON.stringify(e))}};function f(e="",t={}){return{...d,_url:e,_options:t}}f.default=f,f.options=function(e,t=!1){l.options=t?e:u(l.options,e)},f.errorType=function(e){l.errorType=e},f.polyfills=function(e,t=!1){l.polyfills=t?e:u(l.polyfills,e)},f.WretchError=c;let p=f},38599:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=n(49636).O},39118:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(2257),i=n(27122),o=n(39920),s=n(78419),a=n(43275),u=n(28385),l=n(12398),c=n(35868),d=n(49636);let f=(0,s._C)((e={})=>{let t=e.levels||a.Ow,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.O&&(0,o.P)(({args:o,level:s})=>{(0,r.KU)()===e&&t.includes(s)&&function(e,t,n){let o={level:(0,l.t)(t),extra:{arguments:e}};(0,r.v4)(r=>{if(r.addEventProcessor(e=>(e.logger="console",(0,u.M6)(e,{handled:n,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${(0,c.gt)(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),(0,i.wd)(t,o)}return}let s=e.find(e=>e instanceof Error);if(s)return void(0,i.Cp)(s,o);let a=(0,c.gt)(e," ");(0,i.wd)(a,o)})}(o,s,n)})}}})},39920:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(43275),i=n(73314),o=n(49636),s=n(21010);function a(e){let t="console";(0,s.s5)(t,e),(0,s.AS)(t,u)}
9function u(){"console"in o.O&&r.Ow.forEach(function(e){e in o.O.console&&(0,i.GS)(o.O.console,e,function(t){return r.Z9[e]=t,function(...t){(0,s.aj)("console",{args:t,level:e});let n=r.Z9[e];n?.apply(o.O.console,t)}})})}},42112:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(71450),i=n(28769),o=n(43626),s=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},42928:(e,t)=>{"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,s=0;o=t[s];s++)r[o]=parseInt(r[o],10)||0;return r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=new Date().getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i)),new Date(Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]))},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},43626:(e,t,n)=>{"use strict";n.d(t,{U:()=>p});var r,i=n(71450),o=n(31144),s=n(73304),a=n(92086),u=n(59267),l=n(81314),c=function(e,t,n){var r=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,i.Cl)((0,i.Cl)({},r),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}};function d(e){console.error("Error sending segment performance metrics",e)}var f=function(){function e(e){var t,n,r,i,o,s=this;if(this.host=null!=(t=null==e?void 0:e.host)?t:l.a,this.sampleRate=null!=(n=null==e?void 0:e.sampleRate)?n:1,this.flushTimer=null!=(r=null==e?void 0:e.flushTimer)?r:3e4,this.maxQueueSize=null!=(i=null==e?void 0:e.maxQueueSize)?i:20,this.protocol=null!=(o=null==e?void 0:e.protocol)?o:"https",this.queue=[],this.sampleRate>0){var a=!1,u=function(){a||(a=!0,s.flush().catch(d),a=!1,setTimeout(u,s.flushTimer))};u()}}return e.prototype.increment=function(e,t){if(!(!e.includes("analytics_js.")||0===t.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=c(e,t,(0,u.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(d)}},e.prototype.flush=function(){return(0,i.sH)(this,void 0,void 0,function(){var e=this;return(0,i.YH)(this,function(t){switch(t.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(t){d(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,i.sH)(this,void 0,void 0,function(){var e,t,n;return(0,i.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,s.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.initRemoteMetrics=function(e){r=new f(e)},t.prototype.increment=function(t,n,i){e.prototype.increment.call(this,t,n,i),null==r||r.increment(t,null!=i?i:[])},t}(o.p)},43770:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},44416:(e,t,n)=>{"use strict";let r,i,o,s,a;n.d(t,{Ts:()=>tf});var u=n(49636),l=n(43275),c=n(81259);function d(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:c.M})),version:c.M}),e._metadata=i}var f=n(27122),p=n(61571),h=n(78419);function g(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var v=n(28385),y=n(35868);let m=[/^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$/],b=(0,h._C)((e={})=>{let t;return{name:"EventFilters",setup(n){t=_(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=_(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,y.Xr)(n,t)}(e,t.ignoreTransactions))return p.T&&l.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10Event: ${(0,v.$X)(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&g(n).some(e=>(0,y.Xr)(e,r)))return p.T&&l.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${(0,v.$X)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return p.T&&l.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.
12Event: ${(0,v.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=S(e);return!!n&&(0,y.Xr)(n,t)}(e,t.denyUrls))return p.T&&l.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.
13Event: ${(0,v.$X)(e)}.
14Url: ${S(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=S(e);return!n||(0,y.Xr)(n,t)}(e,t.allowUrls))return p.T&&l.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15Event: ${(0,v.$X)(e)}.
16Url: ${S(e)}`),!0}return!1}(n,t)?n:null)}}),w=(0,h._C)((e={})=>({...b(e),name:"InboundFilters"}));function _(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:m],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function S(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return p.T&&l.Yz.error(`Cannot extract url for event ${(0,v.$X)(e)}`),null}}var E=n(2257),C=n(73314);let x=new WeakMap,O=(0,h._C)(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,C.sp)(this),n=x.has((0,E.KU)())&&void 0!==t?t:this;return r.apply(n,e)}}catch{}},setup(e){x.set(e,!0)}}));var k=n(85236);let T=(0,h._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r;if(n=t,(r=e)&&(function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!M(e,t)&&!!L(e,t)&&!0}(n,r)||function(e,t){let n=P(t),r=P(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!M(e,t)&&!!L(e,t)}(n,r)))return p.T&&l.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function L(e,t){let n=(0,k.RV)(e),r=(0,k.RV)(t);if(!n&&!r)return!0;
16if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function M(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 P(e){return e.exception?.values?.[0]}var j=n(26552),A=n(22758),I=n(31209),R=n(24617),D=n(94640),N=n(87624),H=n(16649),F=n(76871),z=n(52820),q=n(29097),B=n(43115),U=n(88722);let $="Not capturing exception because it's already been captured.",Y="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),J=Symbol.for("SentryDoNotSendEventError");function K(e){return{message:e,[G]:!0}}function W(e){return{message:e,[J]:!0}}function X(e){return!!e&&"object"==typeof e&&G in e}function V(e){return!!e&&"object"==typeof e&&J in e}class Q{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,A.AD)(e.dsn):p.T&&l.Yz.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,n){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}(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})}}captureException(e,t,n){let r=(0,v.eJ)();if((0,v.GR)(e))return p.T&&l.Yz.log($),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,v.eJ)(),...n},o=(0,H.NF)(e)?e:String(e),s=(0,H.sO)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,v.eJ)();if(t?.originalException&&(0,v.GR)(t.originalException))return p.T&&l.Yz.log($),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,a=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,s||n,a)),i.event_id}captureSession(e){this.sendSession(e),(0,R.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
16return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,B.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,h.qm)(this,e,this._integrations),t||(0,h.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=(0,I.Cj)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n?.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=(0,I.n2)(e,o,r,t);delete e.sdkProcessingMetadata;let u=[{type:s},e];return(0,I.h4)(a,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,I.W3)(n,(0,I.bm)(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let{release:t,environment:n=j.U}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){p.T&&l.Yz.warn(Y);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){p.T&&l.Yz.warn(Y);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=function(e,t,n,r){let i=(0,I.Cj)(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,A.SB)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,I.h4)(o,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;p.T&&l.Yz.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(p.T&&l.Yz.error("Error while sending envelope:",e),e)):(p.T&&l.Yz.error("Transport disabled"),(0,B.XW)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,h.P$)(this,e),(0,h.lc)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t?.handled===!1){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,R.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new B.T2(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,z.mG)(i,e,t,n,this,r).then(e=>
16(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,E.vn)(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,D.ao)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,E.o5)(),r=(0,E.rm)()){return p.T&&Z(e)&&l.Yz.log(`Captured error event \`${g(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{p.T&&(V(e)?l.Yz.log(e.message):X(e)?l.Yz.warn(e.message):l.Yz.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:o}=i,s=ee(e),a=Z(e),u=e.type||"error",l=`before send for type \`${u}\``,c=void 0===o?void 0:function(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}(o);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error"),(0,B.xg)(W(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let d="replay_event"===u?"replay":u;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),W("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,H.Qg)(e))return e.then(e=>{if(!(0,H.Qd)(e)&&null!==e)throw K(n);return e},e=>{throw K(`${t} rejected with ${e}`)});if(!(0,H.Qd)(e)&&null!==e)throw K(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t,a=n;if(Z(a)&&i)return i(a,r);if(ee(a)){if(s){let e=s(function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[U.E1],exclusive_time:s?.[U.jG],measurements:e.measurements,is_segment:!0}}(a));if(e)a=(0,F.h)(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&&{[U.E1]:e.profile_id},...e.exclusive_time&&{[U.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,q.xl)();if(a.spans){let e=[];for(let t of a.spans){let n=s(t);n?e.push(n):((0,q.xl)(),e.push(t))}a.spans=e}}if(o){if(a.spans){let e=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(a,r)}}return a}(0,i,e,t),l)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw W(`${l} returned \`null\`, will not send event.`)}let o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,i),s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let u=i.transaction_info;return s&&u&&i.transaction!==e.transaction&&(i.transaction_info={...u,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(V(e)||X(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),K(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
17Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){p.T&&l.Yz.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){p.T&&l.Yz.log("No outcomes to send");return}if(!this._dsn){p.T&&l.Yz.log("No dsn provided, will not send outcomes");return}p.T&&l.Yz.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,N.lu)(),discarded_events:e}];return(0,I.h4)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,A.SB)(this._dsn));this.sendEnvelope(t)}}function Z(e){return void 0===e.type}function ee(e){return"transaction"===e.type}var et=n(82438);function en(e,t){var n;let r=t??(n=e,er().get(n))??[];if(0===r.length)return;let i=e.getOptions(),o=function(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,A.SB)(r)),(0,I.h4)(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(r,i._metadata,i.tunnel,e.getDsn());er().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function er(){return(0,et.BY)("clientToLogBufferMap",()=>new WeakMap)}function ei(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function eo(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var es=n(2332);function ea(e,t){let n=el(e,t),r={type:function(e){let t=e?.name;return!t&&ed(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return ed(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function eu(e,t){return{exception:{values:[ea(e,t)]}}}function el(e,t){var n,r;let i=t.stacktrace||t.stack||"",o=(n=t)&&ec.test(n.message)?1:0,s="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,o,s)}catch{}return[]}let ec=/Minified React error #\d+;/i;function ed(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ef(e,t,n,r,i){let o;if((0,H.T2)(t)&&t.error)return eu(e,t.error);if((0,H.BD)(t)||(0,H.W6)(t)){if("stack"in t)o=eu(e,t);else{let i=t.name||((0,H.BD)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=ep(e,s,n,r),(0,v.gO)(o,s)}
17return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,H.bJ)(t)?eu(e,t):((0,H.Qd)(t)||(0,H.xH)(t)?o=function(e,t,n,r){let i=(0,E.KU)(),o=i?.getOptions().normalizeDepth,s=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),a={__serialized__:(0,es.cd)(t,o)};if(s)return{exception:{values:[ea(e,s)]},extra:a};let u={exception:{values:[{type:(0,H.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,C.HF)(e),r=t?"promise rejection":"exception";if((0,H.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,H.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=el(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,i):(o=ep(e,t,n,r),(0,v.gO)(o,`${t}`,void 0)),(0,v.M6)(o,{synthetic:!0}),o)}function ep(e,t,n,r){let i={};if(r&&n){let r=el(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,v.M6)(i,{synthetic:!0})}if((0,H.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var eh=n(9525);class eg extends Q{constructor(e){var t;let n=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eh.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});d(n,"browser",["browser"],eh.jf.SENTRY_SDK_SOURCE||"npm"),super(n);let{sendDefaultPii:r,sendClientReports:i,enableLogs:o,_experiments:s}=this._options,a=o??s?.enableLogs;eh.jf.document&&(i||a)&&eh.jf.document.addEventListener("visibilitychange",()=>{"hidden"===eh.jf.document.visibilityState&&(i&&this._flushOutcomes(),a&&en(this))}),a&&(this.on("flush",()=>{en(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{en(this)},5e3)})),r&&(this.on("postprocessEvent",ei),this.on("beforeSendSession",eo))}eventFromException(e,t){return function(e,t,n,r){let i=ef(e,t,n?.syntheticException||void 0,r);return(0,v.M6)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,B.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=ep(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),(0,B.XW)(o)}(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)}}var ev=n(39920),ey=n(81725);function em(e,t){let n=(0,E.KU)(),r=(0,E.rm)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let s={timestamp:(0,N.lu)(),...e},a=i?(0,l.pq)(()=>i(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,o))}var eb=n(60567),ew=n(12398);function e_(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function eS(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}}var eE=n(21010),eC=n(38599);function ex(){if(!eC.j.document)return;let e=eE.aj.bind(null,"dom"),t=eO(e,!0);eC.j.document.addEventListener("click",t,!1),eC.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eC.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,C.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=eO(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),(0,C.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function eO(e,t=!1){return n=>{var r;if(!n||n._sentryCaptured)return;let a=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!a?.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable&&1))return;(0,C.my)(n,"_sentryCaptured",!0),a&&!a._sentryId&&(0,C.my)(a,"_sentryId",(0,v.eJ)());let u="keypress"===n.type?"input":n.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(n)&&(e({event:n,name:u,global:t}),o=n.type,s=a?a._sentryId:void 0),clearTimeout(i),i=eC.j.setTimeout(()=>{s=void 0,o=void 0},1e3)}}var ek=n(62234),eT=n(51217);function eL(e){let t="history";(0,eE.s5)(t,e),(0,eE.AS)(t,eM)}function eM(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=a,i=function(e){try{return new URL(e,eC.j.location.origin).toString()}catch{return e}}(String(n));if(a=i,r===i)return e.apply(this,t);(0,eE.aj)("history",{from:r,to:i})}return e.apply(this,t)}}eC.j.addEventListener("popstate",()=>{let e=eC.j.location.href,t=a;a=e,t!==e&&(0,eE.aj)("history",{from:t,to:e})}),(0,eT.NJ)()&&((0,C.GS)(eC.j.history,"pushState",e),(0,C.GS)(eC.j.history,"replaceState",e))}var eP=n(86334);let ej=(0,h._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,o,s,a,u;t.console&&(0,ev.P)((n=e,function(e){if((0,E.KU)()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,ew.t)(e.level),message:(0,y.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,y.gt)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);em(t,{input:e.args,level:e.level})})),t.dom&&(r=e,i=t.dom,(0,eE.s5)("dom",function(e){let t,n;if((0,E.KU)()!==r)return;let o="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(eP.T&&l.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{var a;let r=e.event,i=(a=r)&&a.target?r.target:r;t=(0,eb.Hd)(i,{keyAttrs:o,maxStringLength:s}),n=(0,eb.xE)(i)}catch{t="<unknown>"}if(0===t.length)return;let u={category:`ui.${e.name}`,message:t};n&&(u.data={"ui.component_name":n}),em(u,{event:e.event,name:e.name,global:e.global})}),(0,eE.AS)("dom",ex)),t.xhr&&(0,ek.Mn)((o=e,function(e){if((0,E.KU)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[ek.Er];if(!t||!n||!r)return;let{method:i,url:s,status_code:a,body:u}=r,l={xhr:e.xhr,input:u,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:s,status_code:a},type:"http",level:e_(a)};o.emit("beforeOutgoingRequestBreadcrumb",c,l),em(c,l)})),t.fetch&&(0,ey.ur)((s=e,function(e){if((0,E.KU)()!==s)return;let{startTimestamp:t,endTimestamp:n}=e;
17if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},o={category:"fetch",data:r,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",o,i),em(o,i)}else{let r=e.response,i={...e.fetchData,status_code:r?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,r?.status;let o={input:e.args,response:r,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:i,type:"http",level:e_(i.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",a,o),em(a,o)}})),t.history&&eL((a=e,function(e){if((0,E.KU)()!==a)return;let t=e.from,n=e.to,r=eS(eh.jf.location.href),i=t?eS(t):void 0,o=eS(n);i?.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),em({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(u=e,function(e){(0,E.KU)()===u&&em({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,v.$X)(e)},{event:e})}))}}}),eA=["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"],eI=(0,h._C)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,C.GS)(eh.jf,"setTimeout",eR),t.setInterval&&(0,C.GS)(eh.jf,"setInterval",eR),t.requestAnimationFrame&&(0,C.GS)(eh.jf,"requestAnimationFrame",eD),t.XMLHttpRequest&&"XMLHttpRequest"in eh.jf&&(0,C.GS)(XMLHttpRequest.prototype,"send",eN);let e=t.eventTarget;e&&(Array.isArray(e)?e:eA).forEach(e=>(function(e,t){let n=eh.jf,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,C.GS)(r,"addEventListener",function(n){return function(r,i,o){var s,a,u,l;try{s=i,"function"==typeof s.handleEvent&&(i.handleEvent=(0,eh.LV)(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,k.qQ)(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&(a=this,u=r,l=i,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(u,l)),n.apply(this,[r,(0,eh.LV)(i,{mechanism:{data:{function:"addEventListener",handler:(0,k.qQ)(i),target:e},handled:!1,type:"instrument"}}),o])}}),(0,C.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))})(e,t))}}});function eR(e){return function(...t){let n=t[0];return t[0]=(0,eh.LV)(n,{mechanism:{data:{function:(0,k.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function eD(e){return function(t){return e.apply(this,[(0,eh.LV)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,k.qQ)(e)},handled:!1,type:"instrument"}})])}}function eN(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,C.GS)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,k.qQ)(t)},handled:!1,type:"instrument"}},r=(0,C.sp)(t);return r&&(n.mechanism.data.handler=(0,k.qQ)(r)),(0,eh.LV)(t,n)})}),e.apply(this,t)}}let eH=(0,h._C)(()=>({name:"BrowserSession",setupOnce(){if(void 0===eh.jf.document){eP.T&&l.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,f.J0)({ignoreDuration:!0}),(0,f.J5)(),eL(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,f.J0)({ignoreDuration:!0}),(0,f.J5)())})}})),eF=null;function ez(){eF=u.O.onerror,u.O.onerror=function(e,t,n,r,i){return(0,eE.aj)("error",{column:r,error:i,line:n,msg:e,url:t}),!!eF&&eF.apply(this,arguments)},u.O.onerror.__SENTRY_INSTRUMENTED__=!0}let eq=null;function eB(){eq=u.O.onunhandledrejection,u.O.onunhandledrejection=function(e){return(0,eE.aj)("unhandledrejection",e),!eq||eq.apply(this,arguments)},u.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let eU=(0,h._C)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){let t="error";(0,eE.s5)(t,t=>{let{stackParser:n,attachStacktrace:r}=eY();if((0,E.KU)()!==e||(0,eh.jN)())return;let{msg:i,url:o,line:s,column:a,error:u}=t,l=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],l=(0,H.Kg)(t)&&t.length>0?t:(0,eb.$N)();return 0===u.length&&u.push({colno:r,filename:l,function:k.yF,in_app:!0,lineno:n}),e}(ef(n,u||i,void 0,r,!1),o,s,a);l.level="error",(0,f.r)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),(0,eE.AS)(t,ez)}(e),e$("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";(0,eE.s5)(t,t=>{var n;let{stackParser:r,attachStacktrace:i}=eY();if((0,E.KU)()!==e||(0,eh.jN)())return;let o=function(e){if((0,H.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),s=(0,H.sO)(o)?(n=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}):ef(r,o,void 0,i,!0);s.level="error",(0,f.r)(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}),(0,eE.AS)(t,eB)}(e),e$("onunhandledrejection"))}}});function e$(e){eP.T&&l.Yz.log(`Global Handler attached: ${e}`)}function eY(){let e=(0,E.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let eG=(0,h._C)(()=>({name:"HttpContext",preprocessEvent(e){if(!eh.jf.navigator&&!eh.jf.location&&!eh.jf.document)return;let t=(0,eh.AP)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}));function eJ(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
17,exception_id:t}}function eK(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let eW=(0,h._C)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,o){if(!i.exception?.values||!o||!(0,H.tH)(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,n,r,i,o,s,a,u){if(s.length>=r+1)return s;let l=[...s];if((0,H.tH)(i[o],Error)){eJ(a,u);let s=t(n,i[o]),c=l.length;eK(s,o,c,u),l=e(t,n,r,i[o],o,[s,...l],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,H.tH)(i,Error)){eJ(a,u);let c=t(n,i),d=l.length;eK(c,`errors[${s}]`,d,u),l=e(t,n,r,i,o,[c,...l],c,d)}}),l}(e,t,r,o.originalException,n,i.exception.values,s,0))}(ea,i.getOptions().stackParser,n,t,e,r)}}});function eX(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?k.yF:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let eV=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,eQ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eZ=/\((\S*)(?::(\d+))(?::(\d+))\)/,e0=[30,e=>{let t=eV.exec(e);if(t){let[,e,n,r]=t;return eX(e,k.yF,+n,+r)}let n=eQ.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=eZ.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=e5(n[1]||k.yF,n[2]);return eX(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],e1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e2=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,e3=[50,e=>{let t=e1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=e2.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]||k.yF;return[n,e]=e5(n,e),eX(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],e4=(0,k.gd)(e0,e3),e5=(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]:k.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},e6=Symbol.for("SentryBufferFullError"),e8={};function e7(e,t=function(e){let t=e8[e];if(t)return t;let n=eC.j[e];if((0,eT.a3)(n))return e8[e]=n.bind(eC.j);let r=eC.j.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n?e8[e]=n.bind(eC.j):n}("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,B.xg)(e6);let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new B.T2((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,B.XW)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if((0,I.yH)(i,(t,n)=>{let i=(0,I.zk)(n);!function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===o.length)return(0,B.XW)({});let s=(0,I.h4)(i[0],o),a=t=>{(0,I.yH)(s,(n,r)=>{e.recordDroppedEvent(t,(0,I.zk)(r))})};return n.add(()=>t({body:(0,I.bN)(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&p.T&&l.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+a):i[e]=r+a;else i.all=r+a}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw a("network_error"),p.T&&l.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
17{if(e===e6)return p.T&&l.Yz.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,B.XW)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let o=i.body.length;n+=o,r++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return e8.fetch=void 0,(0,B.xg)("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return e8.fetch=void 0,n-=o,r--,(0,B.xg)(e)}})}function e9(e){return[w(),O(),eI(),ej(),eU(),eW(),T(),eG(),eH()]}var te=n(12115),tt=n(87358);let tn=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function tr(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function ti(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 to=(0,h._C)((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in u.O&&!!u.O.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?function(e,t){e=tr(e).slice(1),t=tr(t).slice(1);let n=ti(e.split("/")),r=ti(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let s=[];for(let e=o;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}(t,e):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=tn.exec(t);return n?n.slice(1):[]}(e)[2]||"";r.filename=`${n}${o}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}}),ts=(0,h._C)(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...to({iteratee:i=>{if(r){let n="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}));new WeakSet;var ta=n(87358);let tu=u.O;var tl=n(87358);let tc=!1,td=u.O;function tf(e){tc&&(0,l.pq)(()=>{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`.")}),tc=!0;let t={environment:function(e){let t=e?tt.env.NEXT_PUBLIC_VERCEL_ENV:tt.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=e9(e),n=tl.env._sentryRewriteFramesAssetPrefixPath||td._sentryRewriteFramesAssetPrefixPath||"",r=tl.env._sentryAssetPrefix||td._sentryAssetPrefix,i=tl.env._sentryBasePath||td._sentryBasePath,o="true"===tl.env._experimentalThirdPartyOriginStackFrames||"true"===td._experimentalThirdPartyOriginStackFrames;return t.push(ts({assetPrefix:r,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:o})),t}(e),release:tl.env._sentryRelease||td._sentryRelease,...e};!function(e){let t=ta.env._sentryRewritesTunnelPath||tu._sentryRewritesTunnelPath;if(t&&e.dsn){let n=(0,A.hH)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],s=`${t}?o=${i}&p=${n.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s}}}(t),d(t,"nextjs",["nextjs","react"]);let n=function(e){let t={...e};
17return d(t,"react"),(0,f.o)("react",{version:te.version}),function(e={}){var t;let n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eh.jf.window)return!1;let e=eh.jf;if(e.nw)return!1;let t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;let n=(0,eb.$N)();return!(eh.jf===eh.jf.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>n.startsWith(`${e}://`)))}()&&(eP.T&&(0,l.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),r={...e,enabled:!n&&e.enabled,stackParser:(0,k.vk)(e.stackParser||e4),integrations:(0,h.mH)({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?e9():e.defaultIntegrations}),transport:e.transport||e7};!0===r.debug&&(p.T?l.Yz.enable():(0,l.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,E.o5)().update(r.initialScope);let i=new eg(r);return t=i,(0,E.o5)().setClient(t),i.init(),i}(t)}(t),r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,f.SA)(r);let i=e=>"transaction"===e.type&&"incomplete-app-router-transaction"===e.transaction?null:e;i.id="IncompleteTransactionFilter",(0,f.SA)(i);let o=(e,t)=>{var n,r,i,o;return(o=null==t?void 0:t.originalException,(0,H.bJ)(o)&&"string"==typeof o.digest&&o.digest.startsWith("NEXT_REDIRECT;")||(null==(i=e.exception)||null==(r=i.values)||null==(n=r[0])?void 0:n.value)==="NEXT_REDIRECT")?null:e};return o.id="NextRedirectErrorFilter",(0,f.SA)(o),n}},48065:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(43770)),o=r(n(31943)),s=r(n(23458)),a=n(59284);function u(e,t){a.Facade.call(this,e,t)}t.Group=u,i.default(u,a.Facade);var l=u.prototype;l.action=function(){return"group"},l.type=l.action,l.groupId=a.Facade.field("groupId"),l.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return s.default(e)},l.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(o.default(t))return t},l.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},l.name=a.Facade.proxy("traits.name"),l.industry=a.Facade.proxy("traits.industry"),l.employees=a.Facade.proxy("traits.employees"),l.properties=function(){return this.field("traits")||this.field("properties")||{}}},51217:(e,t,n)=>{"use strict";n.d(t,{NJ:()=>s,a3:()=>a,m7:()=>u});var r=n(61571),i=n(43275);let o=n(49636).O;function s(){return"history"in o&&!!o.history}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(a(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&i.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},55833:(e,t,n)=>{"use strict";n.d(t,{v4:()=>s});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function s(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],6==t?n+=o[15&e|64]:8==t?n+=o[63&e|128]:n+=o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},56079:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(71450);function i(e,t){var n,i=Object.entries(null!=(n=t.integrations)?n:{}).reduce(function(e,t){var n,i,o=t[0],s=t[1];return"object"==typeof s?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=s,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],s=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},s),i[o]),n))},{})}},59267:(e,t,n)=>{"use strict";function r(){return"npm"}n.d(t,{X:()=>r})},59284:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
17dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(63462)),o=n(12519),s=r(n(99202)),a=r(n(23458)),u=r(n(29023)),l=r(n(95043));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=a.default(e.timestamp):e.timestamp=new Date,t.traverse&&l.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function f(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=u.default(n,t.join("."))),this.opts.clone?f(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?f(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");if(Array.isArray(n))return n[0]}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||u.default(r,e);return"object"!=typeof i&&(i=u.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&s.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");("object"!=typeof e||null===e)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},62234:(e,t,n)=>{"use strict";n.d(t,{Er:()=>a,Mn:()=>u});var r=n(21010),i=n(87624),o=n(16649),s=n(38599);let a="__sentry_xhr_v3__";function u(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",l)}function l(){if(!s.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let s=Error(),u=1e3*(0,i.zf)(),l=(0,o.Kg)(n[0])?n[0].toUpperCase():void 0,c=function(e){if((0,o.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!l||!c)return e.apply(t,n);t[a]={method:l,url:c,request_headers:{}},"POST"===l&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let d=()=>{let e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let n={endTimestamp:1e3*(0,i.zf)(),startTimestamp:u,xhr:t,virtualError:s};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,s=t[a];return s&&(0,o.Kg)(r)&&(0,o.Kg)(i)&&(s.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let o=t[a];if(!o)return e.apply(t,n);void 0!==n[0]&&(o.body=n[0]);let s={startTimestamp:1e3*(0,i.zf)(),xhr:t};return(0,r.aj)("xhr",s),e.apply(t,n)}})}},63462:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
vendor: 4,317 bytes, line 17
17dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29023));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},63984:(e,t)=>{"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return new Date(e=parseInt(e,10))}},64050:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(59284),o=r(n(29023)),s=r(n(43770)),a=r(n(31943)),u=r(n(23458)),l=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,s.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(a.default(t))return t},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return u.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return u.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return l(e);var t=this.firstName(),n=this.lastName();if(t&&n)return l(t+" "+n)},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return l(e);var t=this.proxy("traits.name");if("string"==typeof t)return l(t).split(" ")[0]},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return l(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=l(t).indexOf(" ");if(-1!==n)return l(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?new Date().getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},64071:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},65522:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(43770)),o=n(23561),s=n(29485);function a(e,t){o.Page.call(this,e,t)}t.Screen=a,i.default(a,o.Page),a.prototype.action=function(){return"screen"},a.prototype.type=a.prototype.action,a.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},a.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s.Track(t,this.opts)}},71450:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>s,YH:()=>u,fX:()=>l,sH:()=>a});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
17)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}Object.create;function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},72163:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!=(t=null==e?void 0:e.maxListeners)?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){!this.warned&&this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!=(n=this.callbacks[e])?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!=(t=this.callbacks[e])?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},72860:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},73304:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(38050),i=n.n(r),o=n(72860),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,o.m)();return(n&&n.fetch||i()).apply(void 0,e)}},75686:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},76739:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
17ise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalOverrideAdapter=void 0;let i=n(28551),o="LocalOverride:Recognized";function s(){return{gate:{},dynamicConfig:{},experiment:{},layer:{},paramStore:{}}}class a{constructor(e){this._overrides=s(),this._sdkKey=null!=e?e:null}_getLocalOverridesStorageKey(e){return`statsig.local-overrides.${(0,i._getStorageKey)(e)}`}loadFromStorage(){return r(this,void 0,void 0,function*(){var e;if(null==this._sdkKey)return;i.Storage.isReady()||(yield i.Storage.isReadyResolver());let t=this._getLocalOverridesStorageKey(this._sdkKey),n=i.Storage.getItem(t),r=n?(0,i._typedJsonParse)(n,"gate","LocalOverrideAdapter overrides"):null,o=this._hasInMemoryOverrides();r&&(this._overrides=o?(e=this._overrides,{gate:Object.assign({},r.gate,e.gate),dynamicConfig:Object.assign({},r.dynamicConfig,e.dynamicConfig),experiment:Object.assign({},r.experiment,e.experiment),layer:Object.assign({},r.layer,e.layer),paramStore:Object.assign({},r.paramStore,e.paramStore)}):r),o&&this._saveOverridesToStorage()})}_saveOverridesToStorage(){if(null==this._sdkKey||!i.Storage.isReady())return;let e=this._getLocalOverridesStorageKey(this._sdkKey);i.Storage.setItem(e,JSON.stringify(this._overrides))}overrideGate(e,t){this._overrides.gate[e]=t,this._overrides.gate[(0,i._DJB2)(e)]=t,this._saveOverridesToStorage()}_warnIfStorageNotReady(){i.Storage.isReady()||i.Log.warn("Storage is not ready. Override removal may not persist.")}removeGateOverride(e){this._warnIfStorageNotReady(),delete this._overrides.gate[e],delete this._overrides.gate[(0,i._DJB2)(e)],this._saveOverridesToStorage()}getGateOverride(e,t){var n;let r=null!=(n=this._overrides.gate[e.name])?n:this._overrides.gate[(0,i._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{value:r,details:Object.assign(Object.assign({},e.details),{reason:o})})}overrideDynamicConfig(e,t){this._overrides.dynamicConfig[e]=t,this._overrides.dynamicConfig[(0,i._DJB2)(e)]=t,this._saveOverridesToStorage()}removeDynamicConfigOverride(e){this._warnIfStorageNotReady(),delete this._overrides.dynamicConfig[e],delete this._overrides.dynamicConfig[(0,i._DJB2)(e)],this._saveOverridesToStorage()}getDynamicConfigOverride(e,t){return this._getConfigOverride(e,this._overrides.dynamicConfig)}overrideExperiment(e,t){this._overrides.experiment[e]=t,this._overrides.experiment[(0,i._DJB2)(e)]=t,this._saveOverridesToStorage()}removeExperimentOverride(e){this._warnIfStorageNotReady(),delete this._overrides.experiment[e],delete this._overrides.experiment[(0,i._DJB2)(e)],this._saveOverridesToStorage()}getExperimentOverride(e,t){return this._getConfigOverride(e,this._overrides.experiment)}overrideLayer(e,t){this._overrides.layer[e]=t,this._overrides.layer[(0,i._DJB2)(e)]=t,this._saveOverridesToStorage()}removeLayerOverride(e){this._warnIfStorageNotReady(),delete this._overrides.layer[e],delete this._overrides.layer[(0,i._DJB2)(e)],this._saveOverridesToStorage()}overrideParamStore(e,t){this._overrides.paramStore[e]=t,this._overrides.paramStore[(0,i._DJB2)(e)]=t,this._saveOverridesToStorage()}removeParamStoreOverride(e){this._warnIfStorageNotReady(),delete this._overrides.paramStore[e],delete this._overrides.paramStore[(0,i._DJB2)(e)],this._saveOverridesToStorage()}getParamStoreOverride(e){var t;let n=null!=(t=this._overrides.paramStore[e.name])?t:this._overrides.paramStore[(0,i._DJB2)(e.name)];if(null==n)return null;let r=Object.assign({},e.__configuration||{});for(let[e,t]of Object.entries(n)){let n=this._inferParamType(t);r[e]={ref_type:"static",param_type:n,value:t}}return{config:r,details:Object.assign(Object.assign({},e.details),{reason:o})}}getAllOverrides(){var e;return null!=(e=(0,i._typedJsonParse)(JSON.stringify(this._overrides),"gate","OverrideStore"))?e:s()}removeAllOverrides(){this._warnIfStorageNotReady(),this._overrides=s(),this._saveOverridesToStorage()}getLayerOverride(e,t){var n;let r=null!=(n=this._overrides.layer[e.name])?n:this._overrides.layer[(0,i._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{__value:r,get:(0,i._makeTypedGet)(e.name,r),details:Object.assign(Object.assign({},e.details),{reason:o})})}_getConfigOverride(e,t){var n;let r=null!=(n=t[e.name])?n:t[(0,i._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{value:r,get:(0,i._makeTypedGet)(e.name,r),details:Object.assign(Object.assign({},e.details),{reason:o})})}_hasInMemoryOverrides(){return Object.keys(this._overrides.gate).length>0||Object.keys(this._overrides.dynamicConfig).length>0||Object.keys(this._overrides.experiment).length>0||Object.keys(this._overrides.layer).length>0||Object.keys(this._overrides.paramStore).length>0}_inferParamType(e){return"string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"==typeof e?"number":Array.isArray(e)?"array":"object"}}t.LocalOverrideAdapter=a},78419:(e,t,n)=>{"use strict";n.d(t,{P$:()=>a,_C:()=>c,lc:()=>u,mH:()=>s,qm:()=>l});var r=n(61571),i=n(43275);let o=[];function s(e){let t,n=e.defaultIntegrations||[],r=e.integrations;
17if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;let i={};return t.forEach(e=>{let{name:t}=e,n=i[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}function a(e,t){let n={};return t.forEach(t=>{t&&l(e,t,n)}),n}function u(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function l(e,t,n){if(n[t.name]){r.T&&i.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===o.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),o.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)}r.T&&i.Yz.log(`Integration installed: ${t.name}`)}function c(e){return e}},81314:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},81725:(e,t,n)=>{"use strict";n.d(t,{ur:()=>l});var r=n(16649),i=n(73314),o=n(51217),s=n(87624),a=n(49636),u=n(21010);function l(e,t){let n="fetch";(0,u.s5)(n,e),(0,u.AS)(n,()=>(function(e,t=!1){(!t||(0,o.m7)())&&(0,i.GS)(a.O,"fetch",function(t){return function(...n){let o=Error(),{method:l,url:f}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:d(t),method:c(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:d(t),method:c(t,"method")?String(t.method).toUpperCase():"GET"}}(n),p={args:n,fetchData:{method:l,url:f},startTimestamp:1e3*(0,s.zf)(),virtualError:o,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((0,r.ks)(t))return new Headers(t.headers)}catch{}}(n)};return e||(0,u.aj)("fetch",{...p}),t.apply(a.O,n).then(async t=>(e?e(t):(0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,s.zf)(),response:t}),t),e=>{if((0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,s.zf)(),error:e}),(0,r.bJ)(e)&&void 0===e.stack&&(e.stack=o.stack,(0,i.my)(e,"framesToPop",1)),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(p.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})})(void 0,t))}function c(e,t){return!!e&&"object"==typeof e&&!!e[t]}function d(e){return"string"==typeof e?e:e?c(e,"url")?e.url:e.toString?e.toString():"":""}},83843:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(76739),t)},86334:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},87028:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var s=0,a=Object.entries(null!=t?t:{});s<a.length;s++){var u=a[s],l=u[0],c=u[1];o.setAttribute(l,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null==(i=d.parentElement)||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})}
17,89288:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,D:()=>s});var r=n(71450),i=n(28769);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=new Date().getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):(function(e){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return o.apply(t,[e])}).then(function(e){var r=new Date().getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?e.log("warn",n.type,{plugin:t.name,error:n}):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)])),n})}function s(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},89913:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=()=>({beforeRequest(e,t,n){let r=e._config.polyfill("AbortController",!1,!0);!t.signal&&r&&(t.signal=r.signal);let i={ref:null,clear(){i.ref&&(clearTimeout(i.ref),i.ref=null)}};return n.abort={timeout:i,fetchController:r},e},wretch:{signal(e){return{...this,_options:{...this._options,signal:e.signal}}}},resolver:{setTimeout(e,t=this._sharedState.abort.fetchController){let{timeout:n}=this._sharedState.abort;return n.clear(),n.ref=setTimeout(()=>t.abort(),e),this},controller(){return[this._sharedState.abort.fetchController,this]},onAbort(e){return this.error("AbortError",e)}}})},91350:(e,t,n)=>{"use strict";function r(e){return void 0!==e?e:""}n.d(t,{A:()=>i});let i={wretch:{query(e,t=!1,n=!1){return{...this,_url:((e,t,n,i,o)=>{let s;if("string"==typeof t)s=t;else{let e=o.polyfill("URLSearchParams",!0,!0);for(let n in t){let o=t[n];if(!i||null!=o)if(t[n]instanceof Array)for(let t of o)e.append(n,r(t));else e.append(n,r(o))}s=e.toString()}let a=e.split("?");return s?n||a.length<2?a[0]+"?"+s:e+"&"+s:n?a[0]:e})(this._url,e,t,n,this._config)}}}}},92086:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var r="1.81.1"},93340:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError;e.stats.increment("analytics_js.integration.invoke".concat(void 0!==o&&o?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},95043:(e,t,n)=>{"use strict";var r=n(42928);e.exports=function e(t,n){var i,o,s,a;if(void 0===n&&(n=!0),t&&"object"==typeof t){return i=t,o=n,Object.keys(i).forEac
17h(function(t){i[t]=e(i[t],o)}),i}if(Array.isArray(t)){return s=t,a=n,s.forEach(function(t,n){s[n]=e(t,a)}),s}return r.is(t,n)?r.parse(t):t}},96834:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function s(e){return null!=e}function a(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>a,Tn:()=>o,t2:()=>s})},98293:(e,t,n)=>{"use strict";n.d(t,{i:()=>g});var r=n(12115),i={amazon_link_forward:"Amazon link forward - critical for partner attribution","Email OOS Notification Signup":"OOS notification - critical customer communication for inventory alerts","Email Signup Completed":"Newsletter signup - critical marketing opt-in","Marketing Opt-In - Footer":"Marketing consent - legal compliance requirement","Marketing Opt-In - Purchase":"Marketing consent at checkout - legal compliance requirement","Order Completed":"Order completion - critical for revenue tracking and attribution","User Email Captured":"Pre-consent email capture - critical checkout attribution"},o=()=>{if("undefined"==typeof window)return{analytics:void 0,isStub:!1};let e=window.analytics,t=!!e&&"boolean"==typeof(null==e?void 0:e._isOneTrustStub)&&(null==e?void 0:e._isOneTrustStub)===!0;return{analytics:e,isStub:t}},s=()=>{let{isStub:e}=o();return e},a={DROP:"drop",PASS_THROUGH:"pass-through",ROUTE_SERVER_SIDE:"route-server-side"},u=class{routeTrackEvent(e){return s()?this.isServerSideAllowedEvent(e)?{action:a.ROUTE_SERVER_SIDE,reason:"OneTrust stub active, event on safe-list (business necessity before consent)"}:{action:a.DROP,reason:"OneTrust stub active, event not on safe-list (GDPR compliant)"}:{action:a.PASS_THROUGH,reason:"OneTrust consent given, real analytics loaded"}}routePageEvent(){return s()?this.isServerSideAllowedEvent("page")?{action:a.ROUTE_SERVER_SIDE,reason:"OneTrust stub active, page event on safe-list (business necessity before consent)"}:{action:a.DROP,reason:"OneTrust stub active, page event not on safe-list (GDPR compliant)"}:{action:a.PASS_THROUGH,reason:"OneTrust consent given, real analytics loaded"}}routeIdentifyEvent(){return s()?this.isServerSideAllowedEvent("identify")?{action:a.ROUTE_SERVER_SIDE,reason:"OneTrust stub active, identify event on safe-list (business necessity before consent)"}:{action:a.DROP,reason:"OneTrust stub active, identify event not on safe-list (GDPR compliant)"}:{action:a.PASS_THROUGH,reason:"OneTrust consent given, real analytics loaded"}}isServerSideAllowedEvent(e){return Object.prototype.hasOwnProperty.call(this.allowlist,e)}constructor(e=i){this.allowlist=e}},l=e=>"undefined"==typeof window?{...e}:{path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,url:window.location.href,...e},c=(e,t)=>{let n=null==t?void 0:t("NEXT_LOCALE");return{locale:null!=n?n:"en",page:l(),...e}},d=class{async track(e,t,n){let r=this.oneTrustRouter.routeTrackEvent(e);return"drop"===r.action?void this.debugAnalyticsEvent("Dropping event: ".concat(e," - ").concat(r.reason)):"route-server-side"===r.action?void await this.sendTrackEvent({event:e,forceServer:!0,options:n,properties:t}):void await this.sendTrackEvent({event:e,options:n,properties:t})}async page(e,t,n){let r=this.oneTrustRouter.routePageEvent();if("drop"===r.action)return void this.debugAnalyticsEvent("Dropping page event: ".concat(e," - ").concat(r.reason));let i="route-server-side"===r.action||"undefined"==typeof window?"server":"client";this.debugAnalyticsEvent("Sending ".concat(i," analytics page"),e,t,n);let o=this.enhanceProperties({...t,name:e}),s=c(n,this.config.getCookie);await this.callAnalyticsFn("page",async()=>"client"===i?this.getWindowAnalytics().page(e,o,{...n,context:s}):this.serverPage(e,o,s))}async identify(e,t){let n=this.oneTrustRouter.routeIdentifyEvent();if("drop"===n.action)return void this.debugAnalyticsEvent("Dropping identify event - ".concat(n.reason));let r="route-server-side"===n.action||"undefined"==typeof window?"server":"client";this.debugAnalyticsEvent("Sending ".concat(r," analytics identify"),e,t);let i=c(t,this.config.getCookie);await this.callAnalyticsFn("identify",async()=>"client"===r?this.getWindowAnalytics().identify(e,{...t,context:i}):this.serverIdentify(e,i))}gtmEvent(e){var t;"undefined"!=typeof window&&(null==(t=window.dataLayer)||t.push(e))}hasWindowAnalytics(){return"undefined"!=typeof window&&!!window.analytics}getWindowAnalytics(){if(!this.hasWindowAnalytics())throw Error("window.analytics is not available in this environment");return window.analytics}async callServerTransport(e,t){if(!this.config.serverTransport)throw Error("No serverTransport configured for server-side analytics");return this.config.serverTransport(e,t)}async sendTrackEvent(e){let{event:t,forceServer:n=!1,options:r,properties:s}
17=e,a=n||"undefined"==typeof window?"server":"client";this.debugAnalyticsEvent("Sending ".concat(a," analytics track"),t,s,r);let u=this.enhanceProperties(s),l=c(r,this.config.getCookie);await this.callAnalyticsFn("track",async()=>{if("client"===a&&!this.hasWindowAnalytics())return Object.prototype.hasOwnProperty.call(i,t)?(this.debugAnalyticsEvent("window.analytics unavailable, falling back to server for allowlisted event: ".concat(t)),this.serverTrack(t,u,{...r,context:l})):new Promise(e=>{!function(e,t,n){var r;if(t())return e();let i=null!=(r=null==n?void 0:n.timeoutMs)?r:1e4,o=Date.now(),s=setInterval(()=>{if(t()){clearInterval(s),e();return}if(Date.now()-o>=i){var r;clearInterval(s),null==n||null==(r=n.onTimeout)||r.call(n)}},100)}(()=>{try{this.getWindowAnalytics().track(t,u,{...r,context:l})}catch(e){this.debugAnalyticsEvent("Error sending track event",e)}e()},()=>(()=>{let{analytics:e,isStub:t}=o();return!!e&&!t})(),{onTimeout:()=>{this.debugAnalyticsEvent("Timed out waiting for window.analytics, dropping event: ".concat(t)),e()}})});return"client"===a?this.getWindowAnalytics().track(t,u,{...r,context:l}):this.serverTrack(t,u,{...r,context:l})})}debugAnalyticsEvent(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.config.debugEnabled&&console.log(...t)}constructor(e={}){var t,n;this.oneTrustRouter=new u,this.enhanceProperties=e=>{var t,n;let r=null==(t=(n=this.config).getCookie)?void 0:t.call(n,"country"),i="undefined"==typeof window?"https://ouraring.com":window.location.href;return((e,t)=>{let n=null==t?void 0:t("_fbc"),r=null==t?void 0:t("_fbp");return{...e,...n&&{fbc:n},...r&&{fbp:r}}})(((e,t,n)=>{let r=null==t?void 0:t("_rdt_uuid"),i=((e,t)=>{let n=null==t?void 0:t("_rdt_cid");try{let t=new URL(e).searchParams.get("rdt_cid");if(t)return t}catch(e){}return n})(n,t);return{...e,...r&&{rdt_uuid:r},...i&&{rdt_cid:i}}})(((e,t,n)=>{var r;let i=null!=(r=null!=n?n:null==t?void 0:t("statsigStableId"))?r:null;return i?{...e,statsigCustomIDs:["stableID",i],statsigStableId:i}:e})(l({...e,...r&&{userCountry:r}}),this.config.getCookie,this.config.statsigStableId),this.config.getCookie,i),this.config.getCookie)},this.callAnalyticsFn=async(e,t)=>Promise.resolve(t()).catch(t=>{this.debugAnalyticsEvent("Error sending ".concat(e," event"),t)}),this.serverTrack=(e,t,n)=>this.callServerTransport("".concat(this.config.serverBasePath,"/track"),{context:null==n?void 0:n.context,event:e,properties:t}),this.serverIdentify=(e,t)=>this.callServerTransport("".concat(this.config.serverBasePath,"/identify"),{context:t,traits:e}),this.serverPage=(e,t,n)=>this.callServerTransport("".concat(this.config.serverBasePath,"/page"),{context:n,name:e,properties:t}),this.config={debugEnabled:null!=(t=e.debugEnabled)&&t,serverBasePath:null!=(n=e.serverBasePath)?n:"/api/analytics",...e}}},f="segment_analytics_loaded",p=!1,h=!1;function g(e){let{children:t,config:n}=e;"undefined"==typeof window||p||(window.ouraAnalytics=new d({debugEnabled:n.debugEnabled,getCookie:n.getCookie,serverBasePath:n.serverBasePath,serverTransport:n.serverTransport,statsigStableId:n.statsigStableId}),p=!0);let i=(0,r.useRef)(n.getCookie),o=(0,r.useRef)(n.setCookie);return i.current=n.getCookie,o.current=n.setCookie,(0,r.useEffect)(()=>{!h&&o.current&&(h=!0,function(e,t){let n=window.analytics;(null==n?void 0:n.ready)&&n.ready(()=>{(null==e?void 0:e(f))!=="true"&&(s()||t(f,"true",525600))})}(i.current,o.current))},[]),null!=t?t:null}},99202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}}}]);

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.