@datadog/browser-rum-shopify 7.16.2 → 7.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/chunks/{datadogProfiler-2aa04984c2bf50fa9be4-datadog-rum-shopify.js → datadogProfiler-69f13dc9a235dcd5b806-datadog-rum-shopify.js} +1 -1
- package/bundle/datadog-rum-shopify.js +1 -1
- package/cjs/boot/patchSandboxedIframeApis.js +1 -2
- package/cjs/domain/shopifyAnalytics.js +1 -2
- package/cjs/domain/shopifyBindings.js +1 -2
- package/cjs/domain/shopifyPlugin.js +1 -2
- package/cjs/entries/main.js +1 -2
- package/esm/boot/patchSandboxedIframeApis.mjs +1 -2
- package/esm/domain/shopifyAnalytics.mjs +1 -2
- package/esm/domain/shopifyBindings.mjs +1 -2
- package/esm/domain/shopifyPlugin.mjs +1 -2
- package/esm/entries/main.mjs +1 -2
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var t={5021(t,e,n){n.d(e,{Z:()=>a,m:()=>s});var r=n(8789),o=n(4993),i=n(5648);function s(t){const e={version:"7.16.2",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get(){return r.p},enumerable:!1}),e}function a(t,e,n){const r=t[e];r&&!r.q&&r.version&&i.V.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r?.q&&r.q.forEach(t=>(0,o.y)(t,"onReady callback threw an error:")())}},6448(t,e,n){n.d(e,{Kp:()=>u,_T:()=>c});var r=n(2128),o=n(3540),i=n(449),s=n(8424);const a={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGE_TERMINATED:"page_terminated",FROZEN:"page_frozen"};function c(){return new o.cP(t=>{const e=r.J.window;if(!e)return;const{stop:n}=(0,i.lQ)(e,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:a.HIDDEN}):"freeze"===e.type&&t.notify({reason:a.FROZEN})},{capture:!0}),o=(0,i.q2)(e,"beforeunload",()=>{t.notify({reason:a.UNLOADING})}).stop,s=(0,i.q2)(e,"pagehide",e=>{e.persisted||t.notify({reason:a.PAGE_TERMINATED})}).stop;return()=>{n(),o(),s()}})}function u(t){return(0,s.KQ)(a).includes(t)}n.d(e,["y5",0,a])},7409(t,e,n){n.d(e,{H:()=>i,N:()=>s});var r=n(9360),o=n(449);function i(t,e){if(document.readyState===t||"complete"===document.readyState)return e(),{stop:r.l};const n="complete"===t?"load":"DOMContentLoaded";return(0,o.q2)(window,n,e,{once:!0})}function s(t){return new Promise(e=>{i(t,e)})}},64(t,e,n){n.d(e,{q:()=>o});var r=n(2128);function o(){const{navigator:t}=r.J;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}},4023(t,e,n){n.d(e,["g",0,{AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}])},1468(t,e,n){function r(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}n.d(e,{b:()=>r}),n.d(e,["e",0,"No stack, consider using an instance of Error"])},4215(t,e,n){function r(t,e){return t*e/100}n.d(e,{$5:()=>i,it:()=>r});const o=new Map;function i(t,e){if(100===e)return!0;if(0===e)return!1;const n=o.get(e);if(t===n?.sessionId)return n.decision;const r=function(t,e){const n=1n<<64n;return Number(1111111111111111111n*t%n)<=e/100*Number(n)}(BigInt("0x"+t.split("-")[4]),e);return o.set(e,{sessionId:t,decision:r}),r}},603(t,e,n){var r=n(8333);const o=4*r.MA,i=r.$H;n.d(e,["AQ",0,o,"HB",0,9e5,"Q_",0,{COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},"_P",0,i])},8032(t,e,n){n.d(e,{Jv:()=>l,yN:()=>d});var r=n(2128),o=n(7286),i=n(7003);const s=new Map,a=new Set;let c=!1;function u(){const t=r.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,u=!1;for(const[r,i]of Object.entries(t)){if(e=e||void 0!==i.ddDebugId,n=n||void 0!==i.service,u=u||void 0!==i.version,a.has(r))continue;a.add(r);const t=(0,o.T)({stack:r}).stack[0]?.url;t&&!s.has(t)&&s.set(t,i)}c||(c=!0,(0,i.Q6)({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:u}))}function l(t){u();const e=new Set,n=[];for(const r of t){if(e.has(r))continue;e.add(r);const t=s.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}function d(t){return u(),s.get(t)}},98(t,e,n){n.d(e,{m5:()=>i});var r=n(1864),o=n(5648);function i(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:i,variant:a}=t,c=[s("sdk_version",i??"7.16.2")];return e&&c.push(s("env",e)),n&&c.push(s("service",n)),r&&c.push(s("version",r)),o&&c.push(s("datacenter",o)),a&&c.push(s("variant",a)),c}function s(t,e){const n=e?`${t}:${e}`:t;return(n.length>200||function(t){return RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(n))&&o.V.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${r.xG} ${r.fH}/getting_started/tagging/#defining-tags`),function(t){return t.replace(/,/g,"_")}(n)}},7003(t,e,n){n.d(e,{Rr:()=>D,A2:()=>M,VJ:()=>P,Gk:()=>V,Q6:()=>L,a5:()=>N});var r=n(8333),o=n(3540),i=n(7637),s=n(7472),a=n(9360),c=n(2128),u=n(8789),l=n(5119);function d(t){return 0!==t&&100*Math.random()<=t}var f=n(8383),p=n(5387),m=n(1e3),h=n(1468),g=n(4021),y=n(8925),v=n(98),b=n(5648),_=n(350),w=n(7286),S=n(64),k=n(9305),C=n(6625);const E="log",x="configuration",A="usage",T=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],I=[f.R8,f.KG];let R;function O(){return R||(R=new o.dX(100)),R}function N(t,e,n,u){const h=new o.cP,{enabled:g,metricsEnabled:b}=function(t,e,n,o,a,u=1,f=15){const p={},h=!I.includes(e.site)&&d(e.telemetrySampleRate),g={[E]:h,[x]:h&&d(e.telemetryConfigurationSampleRate),[A]:h&&d(e.telemetryUsageSampleRate),metric:h&&d(u)},b={is_local_file:"file:"===c.J.location?.protocol,is_worker:c.W},w=O();return w.subscribe(({rawEvent:c,metricName:u})=>{if(u&&!g.metric||!g[c.type])return;const d=u||c.status||c.type;let m=p[d];if(m||(m=p[d]=new Set),m.size>=f)return;const h=(0,i.s)(c);if(m.has(h))return;const w=n.trigger({startTime:(0,r.M8)().relative});if(w===l.ug)return;const k=function(t,n,o,i){const c={type:"telemetry",date:(0,r.M8)().timeStamp,service:n,version:"7.16.2",source:"browser",_dd:{format_version:2},telemetry:(0,s.kg)(o,{runtime_env:i,connectivity:(0,S.q)(),sdk_setup:"cdn",sdk_name:a}),ddtags:(0,v.m5)(e).join(","),experimental_features:Array.from((0,y.q7)())};return(0,s.kg)(c,t)}(w,t,c,b);o.notify(k),(0,_.b)("telemetry",k),m.add(h)}),w.unbuffer(),(0,m.Bd)(P),{enabled:h,metricsEnabled:g.metric}}(t,e,n,h,u),{stop:w}=function(t,e){const n=[];if((0,k.d0)()){const t=(0,k.Y9)(),r=e.subscribe(e=>t.send("internal_telemetry",e));n.push(r.unsubscribe)}else{const r=[(0,p.ns)(t,"rum")],o=(0,p.np)(t,"rum");o&&function(t){return t.site===f.Bb}(t)&&r.push(o);const i=(0,C.X)({endpoints:r,reportError:a.l});n.push(i.stop);const s=e.subscribe(i.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(t=>t())}}(e,h);return{stop:w,enabled:g,metricsEnabled:b}}function M(t,e){(0,u.N)()&&b.V.debug("[Telemetry]",t,e),O().notify({rawEvent:{type:E,message:t,status:"debug",...e}})}function P(t,e){O().notify({rawEvent:{type:E,status:"error",...$(t),...e}})}function D(t){O().notify({rawEvent:{type:x,configuration:t}})}function V(t,e){O().notify({rawEvent:{type:E,message:t,status:"debug",...e},metricName:t})}function L(t){O().notify({rawEvent:{type:A,usage:t}})}function $(t){if((0,h.b)(t)){const e=(0,w.T)(t);return{error:{kind:e.name,stack:(0,g.Yn)(U(e))},message:e.message}}return{error:{stack:h.e},message:"Uncaught "+(0,i.s)(t)}}function U(t){return t.stack=t.stack.filter(t=>!t.url||T.some(e=>t.url.startsWith(e))),t}},4993(t,e,n){n.d(e,{y:()=>o});var r=n(5648);function o(t,e){return(...n)=>{try{return t(...n)}catch(t){r.V.error(e,t)}}}},5648(t,e,n){var r=n(1864);const o=(0,r.XH)("Datadog Browser SDK:"),i=r.fH+"/real_user_monitoring/browser/troubleshooting";n.d(e,["V",0,o,"X",0,i])},7522(t,e,n){n.d(e,{N:()=>o});var r=n(4989);function o(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,o){const i=(0,r.WW)(n);e+=i,t+=n,o&&o(i)},finish(t){t(this.finishSync())},finishSync(){const n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount(t){return t.length}}}},8925(t,e,n){n.d(e,{Aq:()=>s,R9:()=>r,q7:()=>c,sr:()=>a});var r,o=n(9056);!function(t){t.SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t.SOFT_NAVIGATION="soft_navigation"}(r||(r={}));const i=new Set;function s(t){Array.isArray(t)&&t.filter(t=>(0,o.Rj)(r,t)).forEach(t=>{i.add(t)})}function a(t){return i.has(t)}function c(){return i}},3444(t,e,n){n.d(e,{H7:()=>a,my:()=>c,tv:()=>f});var r=n(1e3),o=n(8975),i=n(9360),s=n(4021);function a(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if("function"!=typeof o){if(!(e in t)||"string"!=typeof e||!e.startsWith("on"))return{stop:i.l};o=i.l}let a=!1;const{stop:c}=u(t,e,o,function(...t){return a?o.apply(this,t):d(n,{target:this,parameters:t,handlingStack:r?(0,s.uC)("instrumented method"):void 0},()=>o.apply(this,t))});return{stop(){a=!0,c()}}}function c(t,e,n,{computeHandlingStack:r}={}){const o=t[e];if("function"!=typeof o||l(t,e))return{stop:i.l};let a=!1;const c=function(...t){if(!new.target)return Reflect.apply(o,this,t);const e=new.target===c?o:new.target;return a?Reflect.construct(o,t,e):d(n,{parameters:t,handlingStack:r?(0,s.uC)("instrumented constructor"):void 0},()=>Reflect.construct(o,t,e))},f=function(t,e){for(const n of[].concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));const{stop:n}=u(e.prototype,"constructor",e.prototype.constructor,t);return n}(c,o),{stop:p}=u(t,e,o,c);return{stop(){a=!0,f(),p()}}}function u(t,e,n,r){return l(t,e)?{stop:i.l}:(t[e]=r,{stop(){t[e]===r&&(t[e]=n)}})}function l(t,e){const n=Object.getOwnPropertyDescriptor(t,e);return!!n&&!n.writable&&!n.set}function d(t,e,n){let o;(0,r.um)(t,null,[{...e,onPostCall(t){o=t}}]);const i=n();return o&&(0,r.um)(o,null,[i]),i}function f(t,e,n){const r=Object.getOwnPropertyDescriptor(t,e);if(!r?.set||!r.configurable)return{stop:i.l};const s=i.l;let a=(t,e)=>{(0,o.wg)(()=>{a!==s&&n(t,e)},0)};const c=function(t){r.set.call(this,t),a(this,t)};return Object.defineProperty(t,e,{set:c}),{stop(){Object.getOwnPropertyDescriptor(t,e)?.set===c&&Object.defineProperty(t,e,r),a=s}}}},7922(t,e,n){n.d(e,{BB:()=>s});var r=n(8333),o=n(1e3),i=n(8975);function s(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback((0,o.dm)(t),e);return()=>window.cancelIdleCallback(n)}return function(t){const e=(0,r.x3)(),n=(0,i.wg)(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,r.x3)()-e))})},0);return()=>(0,i.DJ)(n)}(t)}},350(t,e,n){n.d(e,{b:()=>o});var r=n(2128);function o(t,e){const n=r.J.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}},7286(t,e,n){n.d(e,{T:()=>i,h:()=>h});var r=n(8307);const o="?";function i(t){const e=[];let n=m(t,"stack");const r=t+"";if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(t=>{const n=function(t){const e=c.exec(t);if(!e)return;const n=0===e[2]?.indexOf("native"),r=0===e[2]?.indexOf("eval"),i=u.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){const e=l.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){const e=d.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:+e[3],url:e[2]}}(t)||function(t){const e=f.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=p.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||o,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=o),e.push(n))}),e.length>0&&function(){if(void 0!==v)return v;const[t,e]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(t=>new t);return v=y(Object.getPrototypeOf(t))&&e.stack!==t.stack,v}()&&t instanceof Error){const n=[];let r=t;for(;(r=Object.getPrototypeOf(r))&&y(r);){const t=r.constructor?.name||o;n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:m(t,"message"),name:m(t,"name"),stack:e}}const s="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",a="(?::(\\d+))",c=RegExp(`^\\s*at (.*?) ?\\(${s}${a}?${a}?\\)?\\s*$`,"i"),u=RegExp(`\\((\\S*)${a}${a}\\)`),l=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${s}${a}?${a}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function m(t,e){return(0,r.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function h(t,e,n,r){if(void 0===e)return;const{name:o,message:i}=function(t){let e,n;return"[object String]"==={}.toString.call(t)&&([,e,n]=g.exec(t)),{name:e,message:n}}(t);return{name:o,message:i,stack:[{url:e,column:r,line:n}]}}const g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function y(t){return(t.constructor+"").startsWith("class ")}let v},4021(t,e,n){n.d(e,{NR:()=>a,Yn:()=>s,uC:()=>i});var r=n(1e3),o=n(7286);function i(t){const e=Error(t);let n;return e.name="HandlingStack",(0,r.um)(()=>{const t=(0,o.T)(e);t.stack=t.stack.slice(2),n=s(t)}),n}function s(t){let e=a(t);return t.stack.forEach(t=>{const n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?":"+t.line:"",i=t.line&&t.column?":"+t.column:"";e+=`\n at ${n}${r} @ ${t.url}${o}${i}`}),e}function a(t){return`${t.name||"Error"}: ${t.message}`}},2423(t,e,n){n.d(e,{Qg:()=>o,yU:()=>i});var r=n(8975);function o(t){return!!t&&"function"==typeof t.then}function i(t,e=3e3){let n;const o=new Promise((t,o)=>{n=(0,r.wg)(()=>o(Error("Timeout")),e)});return Promise.race([t,o]).finally(()=>(0,r.DJ)(n))}},6672(t,e,n){function r(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}function o(t){return Array.isArray(t)&&t.length>0}n.d(e,{Ai:()=>r,EI:()=>o})},9056(t,e,n){n.d(e,{LG:()=>c,RI:()=>a,Rj:()=>s,XU:()=>o,yG:()=>i});const r=(t,e)=>"__proto__"===t?void 0:e;function o(t){try{return JSON.parse(t,r)}catch{}}function i(t){return{...t}}function s(t,e){return Object.keys(t).some(n=>t[n]===e)}function a(t){return 0===Object.keys(t).length}function c(t,e){const n={};for(const r of Object.keys(t))n[r]=e(t[r]);return n}},8424(t,e,n){function r(t,e){for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(e(r,n,t))return r}}function o(t){return Object.values(t)}function i(t){return Object.entries(t)}n.d(e,{KQ:()=>o,Uk:()=>r,WP:()=>i})},3472(t,e,n){function r(t){return t>=500}function o(t){try{return t.clone()}catch{return}}n.d(e,{G:()=>r,i:()=>o})},2511(t,e,n){n.d(e,{qj:()=>u});var r=n(8333),o=n(8975),i=n(6672);const s=1/0;let a;const c=new Set;function u({expireDelay:t,maxEntries:e}){let n=[];const u=()=>{if(!t)return;const e=(0,r.$S)()-t;for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(a||(a=(0,o.yb)(()=>{c.forEach(t=>t())},6e4)),c.add(u)),{add(t,r){const o={value:t,startTime:r,endTime:s,remove(){(0,i.Ai)(n,o)},close(t){o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find(t=1/0,e={returnInactive:!1}){for(const r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive(t){const e=n[0];e?.endTime===s&&e.close(t)},findAll(t=1/0,e=0){const o=(0,r.Gw)(t,e);return n.filter(e=>e.startTime<=o&&t<=e.endTime).map(t=>t.value)},findAllEntries(t=1/0,e=0){const o=(0,r.Gw)(t,e);return n.filter(e=>e.startTime<=o&&t<=e.endTime)},getEntries:t=>n.filter(e=>e.startTime===t),reset(){n=[]},stop(){c.delete(u),0===c.size&&a&&((0,o.vG)(a),a=void 0)}}}},6625(t,e,n){n.d(e,{X:()=>y});var r=n(5762),o=n(7637),i=n(1864),s=n(4989),a=n(5648),c=n(8424),u=n(6448),l=n(7522),d=n(1776),f=n(2128),p=n(3540),m=n(8975);const h=f.W?1:50;function g({pageMayExitObservable:t}){let e;const n=new p.cP,r=t.subscribe(t=>{e=t.reason;try{n.notify(t.reason)}finally{e=void 0}c(t.reason)}),o=new p.cP(()=>()=>{r.unsubscribe()});let i,s=0,a=0;function c(t){if(0===a)return;const e=a,n=s;a=0,s=0,(0,m.DJ)(i),i=void 0,o.notify({reason:t,messagesCount:e,bytesCount:n})}return{flushObservable:o,prepareUrgentFlushObservable:n,forceFlush:c,get messagesCount(){return a},notifyBeforeAddMessage(t){s+t>=d.AK&&c(e??"bytes_limit"),a+=1,s+=t,void 0===i&&(i=(0,m.wg)(()=>{c("duration_limit")},3e4))},notifyAfterAddMessage(t=0){s+=t,a>=h?c(e??"messages_limit"):s>=d.AK&&c(e??"bytes_limit")}}}function y({encoder:t=(0,l.N)(),endpoints:e,reportError:n}){const f=(0,r.B)(d.sA)(e,n),p=(0,r.B)(u._T)(),m=(0,r.B)(g)({pageMayExitObservable:p});let h={};const y=m.flushObservable.subscribe(e=>function(e){const n=(0,c.KQ)(h).join("\n");h={};const r=(0,u.Kp)(e.reason),o=r?f.sendOnExit:f.send;if(r&&t.isAsync){const e=t.finishSync();e.outputBytesCount&&o(v(e));const r=[e.pendingData,n].filter(Boolean).join("\n");r&&o({data:r,bytesCount:(0,s.WW)(r)})}else n&&t.write(t.isEmpty?n:"\n"+n),t.finish(t=>{o(v(t))})}(e));function b(e,n){const r=(0,o.s)(e),s=t.estimateEncodedBytesCount(r);s>=262144?a.V.warn(`Discarded a message whose size was bigger than the maximum allowed size 256KiB. ${i.xG} ${a.X}/#technical-limitations`):function(e,n,r){if(void 0!==r){let o;void 0!==h[r]?o=n-t.estimateEncodedBytesCount(h[r]):(m.notifyBeforeAddMessage(n),o=0),h[r]=e,m.notifyAfterAddMessage(o)}else m.notifyBeforeAddMessage(n),t.write(t.isEmpty?e:"\n"+e,t=>{m.notifyAfterAddMessage(t-n)})}(r,s,n)}return{get isEmpty(){return 0===m.messagesCount},add:b,upsert:b,prepareUrgentFlushObservable:m.prepareUrgentFlushObservable,forceFlush:m.forceFlush,flushObservable:m.flushObservable,stop:y.unsubscribe}}function v(t){let e;return e="string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}},9305(t,e,n){n.d(e,{Ww:()=>s,Y9:()=>i,d0:()=>a});var r=n(2128),o=n(5648);function i(){const t=r.J.DatadogEventBridge;if(t)return{getCapabilities(){return JSON.parse(t.getCapabilities?.()||"[]")},getPrivacyLevel(){return t.getPrivacyLevel?.()},getIsTraceSampled(){return JSON.parse(t.getIsTraceSampled?.()||"null")},getAllowedWebViewHosts(){return JSON.parse(t.getAllowedWebViewHosts())},send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function s(t){const e=i();return!!e&&e.getCapabilities().includes(t)}function a(t=r.J.location?.hostname){const e=i();return e?.getAllowedWebViewHosts().some(e=>function(t,e){if(!e.includes("*"))return t===e||t.endsWith("."+e);const n=e.split("*");if(2!==n.length)return o.V.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;const[r,i]=n;return t.length>r.length+i.length&&t.startsWith(r)&&t.endsWith(i)}(t,e))??!1}},1776(t,e,n){n.d(e,{AK:()=>y,sA:()=>v});var r=n(1e3),o=n(3540),i=n(9164),s=n(2128),a=n(5358),c=n(4989),u=n(8975),l=n(3472);const d=20*c.iH;function f(t,e,n,r,o,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?m(t,e,n,i,{onSuccess:()=>h(0,e,n,r,o,i),onFailure(){e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),p(e,n,r,o,i)}}):e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function p(t,e,n,r,o){2===t.transportStatus&&(0,u.wg)(()=>{m(t.queuedPayloads.first(),t,e,o,{onSuccess(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,h(1,t,e,n,r,o)},onFailure(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),p(t,e,n,r,o)}})},t.currentBackoffTime)}function m(t,e,n,r,{onSuccess:o,onFailure:i}){e.bandwidthMonitor.add(t),n(t,n=>{e.bandwidthMonitor.remove(t),function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(0,l.G)(t.status))}(n)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i()):(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o())})}function h(t,e,n,r,o,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${d/c.iH}MiB`),e.queueFullReported=!0);const s=e.queuedPayloads;for(e.queuedPayloads=g();s.size()>0;)f(s.dequeue(),e,n,r,o,i)}function g(){const t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first(){return t[0]},dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size(){return t.length},isFull(){return this.bytesCount>=d}}}const y=16384;function v(t,e,n=y){const r=new o.cP,i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:g(),queueFullReported:!1};return{observable:r,send(n){for(const o of t)f(n,i,(t,e)=>{w(o,t,e)},o.trackType,e,r)},sendOnExit(e){for(const r of t)b(r,n,e)}}}function b(t,e,n){if(n.bytesCount<e)try{const e=t.build("beacon",n),r=(0,i.c$)(e,s.J.document?.baseURI??s.J.location?.href).protocol;if(("http:"===r||"https:"===r)&&navigator.sendBeacon(e,n.data))return}catch(t){!function(t){_||(_=!0,(0,r.Dx)(t))}(t)}w(t,n)}let _=!1;function w(t,e,n){const o=t.build("fetch",e);(0,a.h)(o,{method:"POST",body:e.data,mode:"cors"}).then((0,r.dm)(t=>n?.({status:t.status,type:t.type}))).catch((0,r.dm)(()=>n?.({status:0})))}},8637(t,e,n){n.d(e,{eT:()=>Zr,o:()=>"***",$m:()=>Kr,NT:()=>Qr,Wd:()=>"hidden",bb:()=>at,K:()=>ct,do:()=>Sr,DL:()=>ht,K$:()=>Ji,wP:()=>ns,wI:()=>br,PJ:()=>to,dT:()=>no,$4:()=>_r,Gn:()=>pi,zL:()=>mi,dx:()=>ts,rf:()=>ao,pB:()=>yi,g1:()=>gi,r0:()=>gr,nS:()=>hr,XS:()=>yr,p_:()=>vr,AB:()=>Yi,jR:()=>eo,ei:()=>Gn,ap:()=>oo,Ie:()=>ro});var r=n(8333),o=n(5762),i=n(7472),s=n(3192),a=n(3540);const c={GRANTED:"granted",NOT_GRANTED:"not-granted"};var u=n(1864),l=n(2128),d=n(9164),f=n(1e3),p=n(3444),m=n(9360),h=n(4989),g=n(3472);let y;const v=[];function b({responseBodyAction:t}={}){return t&&v.push(t),y||(y=new a.cP(t=>{if(!l.J.fetch)return;const{stop:e}=(0,p.H7)(l.J,"fetch",e=>function({parameters:t,onPostCall:e,handlingStack:n},o){const[i,s]=t;let a=s?.method;void 0===a&&i instanceof Request&&(a=i.method);const c=void 0!==a?(a+"").toUpperCase():"GET",u=i instanceof Request?i.url:(0,d.l2)(i+""),l={state:"start",init:s,input:i,method:c,startClocks:(0,r.M8)(),url:u,handlingStack:n,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||s?.signal?.aborted||!1};o.notify(l),l.input!==i&&(t[0]=l.input),l.init!==s&&(t[1]=l.init),e(t=>{(async function(t,e,n){const r=n;let o;try{o=await e}catch(e){return void t.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}if(r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1,1===v.reduce((t,e)=>Math.max(t,e(r)),0)){const t=(0,g.i)(o);if(t?.body)try{const e=await async function(t){const e=t.getReader(),n=[];for(;;){const t=await e.read();if(t.done)break;n.push(t.value)}return e.cancel().catch(m.l),(0,h.wh)(n)}(t.body);r.responseBody=(new TextDecoder).decode(e)}catch{}}t.notify({...r,state:"resolve"})})(o,t,l).catch(f.Dx)})}(e,t),{computeHandlingStack:!0});return e})),y}var _=n(449);let w;const S=new WeakMap;function k(){return w||(w="XMLHttpRequest"in l.J?new a.cP(t=>{const{stop:e}=(0,p.H7)(XMLHttpRequest.prototype,"open",C),{stop:n}=(0,p.H7)(XMLHttpRequest.prototype,"send",e=>{!function({target:t,parameters:[e],handlingStack:n},o){const i=S.get(t);if(!i)return;const s=i;s.state="start",s.startClocks=(0,r.M8)(),s.isAborted=!1,s.xhr=t,s.handlingStack=n,s.requestBody=e;let a=!1;const{stop:c}=(0,p.H7)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(l(),c(),a)return;a=!0;const e=i;e.duration=(0,r.vk)(s.startClocks.timeStamp,(0,r.nx)()),e.status=t.status,"string"==typeof t.response&&(e.responseBody=t.response),o.notify({...e,state:"complete"})},{stop:l}=(0,_.q2)(t,"loadend",u);o.notify(s)}(e,t)},{computeHandlingStack:!0}),{stop:o}=(0,p.H7)(XMLHttpRequest.prototype,"abort",E);return()=>{e(),n(),o()}}):new a.cP),w}function C({target:t,parameters:[e,n]}){S.set(t,{state:"open",method:(e+"").toUpperCase(),url:(0,d.l2)(n+"")})}function E({target:t}){const e=S.get(t);e&&(e.isAborted=!0)}var x=n(7003),A=n(7286),T=n(7637),I=n(8307),R=n(5648);function O(t,e=225280){const n=(0,T.M)(Object.prototype),r=(0,T.M)(Array.prototype);try{const n=[],r=new WeakMap,o=N(t,"$",void 0,n,r),i=JSON.stringify(o);let s=i?i.length:0;if(s>e)return void P(e,"discarded",t);for(;n.length>0&&s<e;){const o=n.shift();let i=0;if(Array.isArray(o.source))for(let a=0;a<o.source.length;a++){const c=N(o.source[a],o.path,a,n,r);if(s+=void 0!==c?JSON.stringify(c).length:4,s+=i,i=1,s>e){P(e,"truncated",t);break}o.target[a]=c}else for(const a in o.source)if(Object.prototype.hasOwnProperty.call(o.source,a)){const c=N(o.source[a],o.path,a,n,r);if(void 0!==c&&(s+=JSON.stringify(c).length+i+a.length+3,i=1),s>e){P(e,"truncated",t);break}o.target[a]=c}}return o}finally{n(),r()}}function N(t,e,n,r,o){const i=function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)return t;const e=t;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof(s=i)?"[BigInt] "+s.toString():"function"==typeof s?"[Function] "+(s.name||"unknown"):"symbol"==typeof s?"[Symbol] "+(s.description||s.toString()):s;var s;const a=M(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;const c=t;if(o.has(c))return`[Reference seen at ${o.get(c)}]`;const u=void 0!==n?`${e}.${n}`:e,l=Array.isArray(i)?[]:{};return o.set(c,u),r.push({source:i,target:l,path:u}),l}function M(t){try{if(t instanceof Event)return{type:(e=t).type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?M(e.currentTarget):null,target:e.target?M(e.target):null};if(t instanceof RegExp)return"[RegExp] "+t.toString();const n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}var e;return"[Unserializable]"}function P(t,e,n){R.V.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}var D=n(4021),V=n(8032),L=n(1468);function $({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const i=(0,L.b)(t);return{source:n,type:e?e.name:void 0,message:q(e,i,o,t),stack:e?(0,D.Yn)(e):r?L.e:void 0}}function U(t){return t?.stack.map(t=>t.url).filter(t=>!!t)??[]}function z(t,e){const n=e.flatMap(({stackTrace:t})=>U(t));return(0,V.Jv)(U(t).concat(n))}function j({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:c}){const u=t??((0,L.b)(e)?(0,A.T)(e):void 0),l=(0,L.b)(e)?function(t){const e=[];let n=t.cause;for(;null!=n&&e.length<10;){const t=(0,L.b)(n),r=t?(0,A.T)(n):void 0;e.push({originalError:n,stackTrace:r}),n=t?n.cause:void 0}return e}(e):[],d=$({originalError:e,stackTrace:u,source:a,useFallbackStack:s,nonErrorPrefix:i}),f=l.map(({originalError:t,stackTrace:e})=>$({originalError:t,stackTrace:e,source:a,useFallbackStack:!1}));return{startClocks:o,handling:c,handlingStack:n,componentStack:r,originalError:e,...d,debugIds:z(u,l),causes:f.length?f:void 0,fingerprint:B(e),context:F(e)}}function q(t,e,n,r){return t?.message&&t?.name?t.message:e?"Empty message":n?`${n} ${(0,T.s)(O(r))}`:(0,T.s)(O(r))}function B(t){return(0,L.b)(t)&&"dd_fingerprint"in t?t.dd_fingerprint+"":void 0}function F(t){if((0,I.OE)(t))return t.dd_context}var G=n(4023);function W(){return new a.cP(t=>{const e=(e,n)=>{const o=j({stackTrace:n,originalError:e,startClocks:(0,r.M8)(),nonErrorPrefix:"Uncaught",source:G.g.SOURCE,handling:"unhandled"});t.notify(o)},{stop:n}=(o=e,(0,p.H7)(l.J,"onerror",({parameters:[t,e,n,r,i]})=>{let s;(0,L.b)(i)||(s=(0,A.h)(t,e,n,r)),o(i??t,s)}));var o;const{stop:i}=function(t){return(0,_.BX)(l.J.window,"unhandledrejection")?(0,p.H7)(l.J,"onunhandledrejection",({parameters:[e]})=>{t(e.reason||"Empty reason")}):{stop:m.l}}(e);return()=>{n(),i()}})}let H={};var J=n(7522),K=n(5021);function Q(t,e,n,r){return(0,f.dm)((...o)=>(r&&(0,x.Q6)({feature:r}),t()[e][n](...o)))}function Z(t,e,n){t.changeObservable.subscribe(()=>{const r=t.getContext();n.notify(t=>t[e].setContext(r))})}const Y="userContext",X="globalContext",tt="accountContext",et="getContext",nt="setContext",rt="setContextProperty",ot="removeContextProperty",it="clearContext";function st(t,e){e.silentMultipleInit||R.V.error(t+" is already initialized.")}const at={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},ct={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},ut="initial_load",lt="route_change",dt="bf_cache",ft="custom",pt="error_click",mt="dead_click",ht={DURATION:"duration",OPERATION_STEP:"operation_step",WEBSOCKET:"websocket"};var gt=n(8925),yt=n(8383);const vt={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},bt={ALL:"all",SAMPLED:"sampled"},_t={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:yt.NW},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1},trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:c,default:c.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};var wt=n(9305),St=n(4993);function kt(t,e){return+t.toFixed(e)}function Ct(t){return"number"==typeof t}var Et=n(6672);function xt(t,e){switch(e.type){case"string":return`"${t}" must be a non-empty string`;case"number":return void 0!==e.min&&void 0!==e.max?`"${t}" must be a number between ${e.min} and ${e.max}`:void 0!==e.min?`"${t}" must be a number greater than or equal to ${e.min}`:void 0!==e.max?`"${t}" must be a number less than or equal to ${e.max}`:`"${t}" must be a finite number`;case"percentage":return`"${t}" must be a number between 0 and 100`;case"boolean":return`"${t}" must be a boolean`;case"site":return`"${t}" must be a valid Datadog site. ${u.xG} ${u.fH}/getting_started/site/.`;case"match-option":return`"${t}" must be a string, RegExp, or function`;case"enum":return`"${t}" must be one of: "${Ot(e.values).join('", "')}"`;case"union":return`"${t}" does not match any expected type`;case"schema":return`"${t}" is not a valid object`;case"function":return`"${t}" must be a function`}}function At(t,e,n){const r={};for(const[o,s]of Object.entries(t)){const t=e[o],a=s.multiple?Tt(s,t,n):Rt(s,t,n);if(void 0===a){if(null!=t&&""!==t){if(n.error(xt(o,s)),s.required||!1!==s.strict)return}else if(s.required)return void n.error(`"${o}" is required`);r[o]="default"in s?(0,i.Go)(s.default):void 0}else r[o]=a}return r}function Tt(t,e,n){if(null==e)return;if("enum"===t.type&&t.allowAll&&"all"===e)return Ot(t.values).slice();const r=Array.isArray(e)?e:[e],o=[];for(const e of r){const r=Rt(t,e,n);if(void 0===r){if(!1!==t.strict)return}else o.push(r)}return!1===t.strict&&0===o.length&&r.length>0?void 0:o}const It=/(datadog|ddog|datad0g|dd0g)/;function Rt(t,e,n){if("schema"===t.type){if("object"!=typeof e||null===e)return;return At(t.schema,e,n)}if("union"!==t.type){if(null!=e)switch(t.type){case"function":return"function"==typeof e?e:void 0;case"string":return"string"==typeof e&&e.length>0?e:void 0;case"number":return"number"==typeof e&&Number.isFinite(e)&&(void 0===t.min||e>=t.min)&&(void 0===t.max||e<=t.max)?e:void 0;case"percentage":return(0,I.fp)(e)?e:void 0;case"boolean":return"boolean"==typeof e?e:!1===t.strict?!!e:void 0;case"site":if("string"!=typeof e||!It.test(e))return;return e;case"match-option":return(0,I.Vl)(e)?e:void 0;case"enum":return"string"==typeof e&&Ot(t.values).includes(e)?e:void 0}}else{if(null==e)return;for(const r of t.variants){const t=Rt(r,e,n);if(void 0!==t)return t}}}function Ot(t){return Array.isArray(t)?t:Object.values(t)}var Nt=n(9056);const Mt=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function Pt(t,e){for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Dt(t,e,n=""){const r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:`${t.slice(0,o)}${n}`}function Vt(t,e,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const i="expires="+o.toUTCString(),s=r?.crossSite?"none":"strict",a=r?.domain?";domain="+r.domain:"",c=r?.secure?";secure":"",u=r?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${i};path=/;samesite=${s}${a}${c}${u}`}function Lt(t){const e=Pt(document.cookie,t);if(""!==e)return e}function $t(t){return function(t){const e=new Map;for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;{const t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}}return e}(document.cookie).get(t)||[]}let Ut,zt;function jt(t){return Ut||(Ut=function(t){const e=new Map;for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),Ut.get(t)}function qt(t,e){Vt(t,"",0,e)}var Bt=n(5358),Ft=n(5387);function Gt(t,e){e.lastIndex=0;const n=e.exec(t);if(!n)return;const[r,o]=n;return o||r}const Wt=/[a-zA-Z_$]/,Ht=/[a-zA-Z0-9_$]/,Jt=/[0-9]/,Kt=/[a-fA-F0-9]/,Qt={0:()=>!1,1:()=>!1,2:t=>Wt.test(t),3:t=>Ht.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>Jt.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?(e.quote+"/\\bfnrtu").includes(t):!!(e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5)&&Kt.test(t)},Zt={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},Yt=[2,3,7,10],Xt=[4,5,6];function te(t){return"\"'/\\bfnrt".includes(t)||t.startsWith("u")&&5===t.length}const ee={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function ne(t){return t.startsWith("u")?String.fromCharCode(parseInt(t.slice(1),16)):ee[t]}const re={hit:"success",miss:"missing",error:"failure"};function oe(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}const ie=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];function se(t,e,n,r){const o={...t};if(e.rum){const t=e.rum;ie.forEach(e=>{e in t&&(o[e]=i(t[e]))}),Object.keys(n).forEach(e=>{var r;void 0!==t[e]&&(r=n[e],t[e].forEach(({key:t,value:e})=>{r.setContextProperty(t,i(e))}))})}return void 0!==e.profiling?.sampleRate&&(o.profilingSampleRate=e.profiling.sampleRate),o;function i(t){if(Array.isArray(t))return t.map(i);if((0,I.OE)(t)){if("rcSerializedType"in t){const e=t.rcSerializedType;switch(e){case"string":return t.value;case"regex":return ce(t.value);case"dynamic":return function(t){const e=t.strategy;let n;switch(e){case"cookie":n=function({name:t}){const e=Lt(t);return r.increment("cookie",void 0!==e?"success":"missing"),e}(t);break;case"dom":n=function({selector:t,attribute:e}){let n;try{n=document.querySelector(t)}catch{return R.V.error(`Invalid selector in the remote configuration: '${t}'`),void r.increment("dom","failure")}if(!n)return void r.increment("dom","missing");if(function(t,e){return"password"===t.getAttribute("type")&&"value"===e}(n,e))return R.V.error(`Forbidden element selected by the remote configuration: '${t}'`),void r.increment("dom","failure");const o=void 0!==e?n.getAttribute(e):n.textContent;if(null!==o)return r.increment("dom","success"),o;r.increment("dom","missing")}(t);break;case"js":n=function({path:t}){let e=window;const n=function(t){const e=[];let n,r=0;const o={quote:void 0,escapeSequence:void 0};let i="";for(const s of t){if(n=Zt[r].find(t=>Qt[t](s,o)),!n)return[];if(void 0!==o.escapeSequence&&12!==n){if(!te(o.escapeSequence))return[];i+=ne(o.escapeSequence),o.escapeSequence=void 0}Yt.includes(n)?i+=s:Xt.includes(n)&&""!==i?(e.push(i),i=""):12===n?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${s}`:s:8===n?o.quote=s:9===n&&(o.quote=void 0),r=n}return Zt[r].includes(1)?(""!==i&&e.push(i),e):[]}(t);if(0===n.length)return R.V.error(`Invalid JSON path in the remote configuration: '${t}'`),void r.increment("js","failure");for(const o of n){if(!(o in e))return void r.increment("js","missing");try{e=e[o]}catch(e){return R.V.error(`Error accessing: '${t}'`,e),void r.increment("js","failure")}}return r.increment("js","success"),e}(t);break;case"localStorage":n=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{return void r.increment("localStorage","failure")}return r.increment("localStorage",null!==e?"success":"missing"),e??void 0}(t);break;default:return void R.V.error(`Unsupported remote configuration: "strategy": "${e}"`)}const o=t.extractor;return void 0!==o&&"string"==typeof n?function(t,e){const n=ce(t.value);if(void 0!==n)return Gt(e,n)}(o,n):n}(t);default:return void R.V.error(`Unsupported remote configuration: "rcSerializedType": "${e}"`)}}return(0,Nt.LG)(t,i)}return t}}function ae(){const t={fetch:{}};return{get:()=>t,increment(e,n){t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}function ce(t){try{return RegExp(t)}catch{R.V.error(`Invalid regex in the remote configuration: '${t}'`)}}function ue(t){const e=t.headers?.get("last-modified");if(!e)return;const n=new Date(e).getTime();return isNaN(n)?void 0:n}async function le(t){let e;try{e=await(0,Bt.h)(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;const e=de(t);return(0,Ft.Hg)({site:t.site,path:`/v1/${encodeURIComponent(e)}.json`,subdomain:"sdk-configuration"})}(t))}catch{e=void 0}if(!e?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};const n=await e.json();return n.rum||n.profiling?{ok:!0,value:n,lastModified:ue(e)}:{ok:!1,error:Error("No remote configuration for RUM.")}}function de(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}const fe=["tracecontext","datadog"],pe=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],me={LOW:"low",MEDIUM:"medium",HIGH:"high"},he={[me.LOW]:{maxFramesPerSecond:1,hashingMaxDimension:50,maxImageDimension:600,encodeQuality:.3},[me.MEDIUM]:{maxFramesPerSecond:4,hashingMaxDimension:100,maxImageDimension:1e3,encodeQuality:.5},[me.HIGH]:{maxFramesPerSecond:8,hashingMaxDimension:100,maxImageDimension:1280,encodeQuality:.75}},ge={..._t,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},quality:{type:"enum",values:me,default:me.MEDIUM}}},defaultPrivacyLevel:{type:"enum",values:vt,default:vt.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:bt,default:bt.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:fe}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function ye(t,e,n){return!(0,wt.d0)()&&(t??(!e&&"rum-salesforce"!==n))}function ve(t){const e=new Set;return(0,Et.EI)(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(t=>{be(t)?.propagatorTypes.forEach(t=>e.add(t))}),Array.from(e)}function be(t){return(0,I.Vl)(t)?{match:t,propagatorTypes:fe}:(0,I.OE)(t)&&(0,I.Vl)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||fe}:void 0}function _e(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return R.V.warn("allowedGraphQlUrls should be an array"),[];const e=[];return t.allowedGraphQlUrls.forEach(t=>{(0,I.Vl)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,I.OE)(t)&&(0,I.Vl)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}const we=["request","response","any"];function Se(t){const e=t.trackResourceHeaders;if(void 0===e||!1===e)return[];if(!0===e)return pe.map(t=>({name:t}));if(!Array.isArray(e))return R.V.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return R.V.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return e.forEach((t,e)=>{if(!(0,I.OE)(t))return void R.V.warn(`trackResourceHeaders[${e}] should be a MatchHeader object`);if(void 0!==t.name&&!(0,I.Vl)(t.name))return void R.V.warn(`trackResourceHeaders[${e}].name should be a MatchOption`);if(void 0!==t.url&&!(0,I.Vl)(t.url))return void R.V.warn(`trackResourceHeaders[${e}].url should be a MatchOption`);if(void 0!==t.extractor&&!(t.extractor instanceof RegExp))return void R.V.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`);if(void 0!==t.location&&("string"!=typeof t.location||!we.includes(t.location)))return void R.V.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`);const{name:r,...o}=t;n.push({...o,...void 0!==r?{name:"string"==typeof r?r.toLowerCase():r}:{}})}),n}function ke(t){return(0,Et.EI)(t)&&t.some(t=>(0,I.OE)(t)&&t.trackResponseErrors)}var Ce=n(2423);const Ee=[];function xe(t,e,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;const r=function(t,e){return`_dd_c_${t}_${e}`}(e,n);Ee.push((0,_.q2)(window,"storage",({key:e})=>{r===e&&t.setContext(s())})),t.changeObservable.subscribe(function(){localStorage.setItem(r,JSON.stringify(t.getContext()))});const o=(0,i.kg)(s(),t.getContext());function s(){const t=localStorage.getItem(r);return t?(0,Nt.XU)(t)??{}:{}}(0,Nt.RI)(o)||t.setContext(o)}function Ae(t,e,n){const r={...t};for(const[t,{required:o,type:i}]of Object.entries(e))"string"!==i||Te(r[t])||(r[t]=r[t]+""),o&&Te(r[t])&&R.V.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function Te(t){return null==t||""===t}function Ie(t="",{propertiesConfig:e={}}={}){let n={};const r=new a.cP,o={getContext:()=>(0,i.Go)(n),setContext(i){!function(t){const e="object"===(0,I.Pw)(t);return e||R.V.error("Unsupported context:",t),e}(i)?o.clearContext():n=O(Ae(i,e,t)),r.notify()},setContextProperty(o,i){n=O(Ae({...n,[o]:i},e,t)),r.notify()},removeContextProperty(o){delete n[o],Ae(n,e,t),r.notify()},clearContext(){n={},r.notify()},changeObservable:r};return o}function Re(){return Ie("global context")}var Oe=n(5119);function Ne(){return Ie("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function Me(){return Ie("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function Pe(t,e,n=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){R.V.error(t)}return!1})}const De=["chrome-extension://","moz-extension://"];function Ve(t){return De.some(e=>t.includes(e))}var Le=n(3935),$e=n(8975),Ue=n(2511),ze=n(4215),je=n(8424),qe=n(603);const Be=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Fe(t){return t.created?Number(t.created):void 0}function Ge(t){const e=t.expire&&Number(t.expire),n=Fe(t);if(e&&n)return Math.min(e,n+qe.AQ)}function We(t,e){const n={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function He(t){return(0,Nt.RI)(t)}function Je(t){return void 0!==t.isExpired||!function(t){const e=Ge(t);return!!e&&(0,r.x3)()<e}(t)}function Ke(t){t.expire=(0,r.x3)()+qe.HB+""}function Qe(t){return(0,je.WP)(t).map(([t,e])=>"anonymousId"===t?"aid="+e:`${t}=${e}`).join("&")}function Ze(t){const e={};return function(t){return!!t&&(-1!==t.indexOf("&")||Be.test(t))}(t)&&t.split("&").forEach(t=>{const n=Be.exec(t);if(null!==n){const[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}}),e}function Ye(t,e){return He(t)?(e.trackAnonymousUser&&(t.anonymousId=(0,s.l)()),We(t,e)):t}function Xe(t,e){if(He(t))return t;let n=t;return Je(t)&&(n=We(t,e)),n.id||(n.id=(0,s.l)(),n.created=(0,r.x3)()+""),e.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=(0,s.l)()),delete n.isExpired,Ke(n),n}async function tn(t,e){const n="dd_cookie_test_"+(0,s.l)(),r="test",o=t(n,e);try{return await o.getAllAndSet(()=>({value:r,expireDelay:6e4})),(await o.getAll()).includes(r)}catch(t){return R.V.error(t),!1}finally{try{await o.delete()}catch{}}}function en(t,e){const n=(0,o.B)(l.J.cookieStore),i=new a.cP(()=>(0,_.q2)(n,"change",e=>{(e.changed.some(e=>e.name===t)||e.deleted.some(e=>e.name===t))&&i.notify()}).stop);return{async getAll(){return(await n.getAll(t)).map(t=>t.value)},delete(){return n.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned})},async getAllAndSet(o){const i=(await n.getAll(t)).map(t=>t.value),{value:s,expireDelay:a}=o(i);try{await n.set({name:t,value:s,expires:(0,r.x3)()+a,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch{}},observable:i}}function nn(t,e){let n=$t(t);const r=new a.cP(()=>{const e=(0,$e.yb)(()=>{o($t(t))},1e3);return()=>{(0,$e.vG)(e)}});function o(t){t+""!=n+""&&(n=t,r.notify())}return{getAll(){return Promise.resolve($t(t))},async getAllAndSet(n){const r=$t(t),{value:i,expireDelay:s}=n(r);Vt(t,i,s,e),await Promise.resolve(),o([i])},async delete(){qt(t,e),await Promise.resolve(),o([])},observable:r}}function rn(){const t=(0,o.B)(l.J.cookieStore);return!(!t||!(0,_.BX)(t,"change"))}const on="_dd_s_v2";let sn;function an(t,e){return 1===t?en(on,e):nn(on,e)}function cn(t,e){let n;for(const r of t.slice().reverse())if(n=Ze(r),n.c===e)break;return delete n?.c,n??{}}function un(t){let e=0;return e|=0,e|=(t.domain?t.domain.split(".").length-1:0)<<1,e|=t.crossSite?1:0,e.toString(16)}const ln="_DD_SESSION";async function dn(t){const e=void 0!==(n=t.sessionPersistence)?n:l.W?[qe.Q_.MEMORY]:[qe.Q_.COOKIE];var n;for(const n of e){const e=await fn(n,t);if(void 0!==e)return e}}function fn(t,e){switch(t){case qe.Q_.COOKIE:return async function(t){const e=function(t){const e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){const t=function(t=l.J.location?.hostname??"",e=("undefined"!=typeof document?document.referrer:"")){if("undefined"!=typeof document){if(void 0===zt){const n=function(t,e){try{return t||(0,d.c$)(e).hostname}catch{}}(t,e);if(n){const t="dd_site_test_"+(0,s.l)(),e="test",r=n.split(".");let o=r.pop();for(;r.length&&!Lt(t);)o=`${r.pop()}.${o}`,Vt(t,e,1e3,{domain:o});qt(t,{domain:o}),zt=o}}return zt}}();if(!t)return;e.domain=t}return e}(t);if(e)return rn()&&await tn(en,e)?{type:qe.Q_.COOKIE,cookieOptions:e,cookieApi:1}:await tn(nn,e)?{type:qe.Q_.COOKIE,cookieOptions:e,cookieApi:0}:void 0}(e);case qe.Q_.LOCAL_STORAGE:return function(){try{const t=(0,s.l)(),e="_dd_test_"+t;localStorage.setItem(e,t);const n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:qe.Q_.LOCAL_STORAGE}:void 0}catch{return}}();case qe.Q_.MEMORY:return{type:qe.Q_.MEMORY};default:return void R.V.error(`Invalid session persistence '${t+""}'`)}}function pn(t,e){switch(t.type){case qe.Q_.COOKIE:return function(t,e){const{cookieOptions:n,cookieApi:r}=t,i=new a.cP,s=!!e.trackAnonymousUser,c=un(n),u=(0,o.B)(an)(r,n);let l=!0;function d(t){return u.getAllAndSet(e=>{let r=cn(e,c);l&&(0,Nt.RI)(r)&&(r=cn($t("_dd_s"),c)),l=!1;const o=function(t,e){return Qe((0,Nt.RI)(t)?t:{...t,c:un(e)})}(t(r),n);return{value:o,expireDelay:s?qe._P:qe.AQ}})}return u.observable.subscribe(()=>{u.getAll().then(t=>{i.notify(cn(t,c))}).catch(t=>(0,f.Dx)(Error("Error while reading session cookies on change: "+t)))}),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(on,()=>d(t)).catch(t=>{if(!function(t){return t instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable")||t.message.includes("Responsible document is not fully active")||t.message.includes("The document is not active"))}(t))throw t}):(sn=(sn??Promise.resolve()).then(()=>d(t)),await sn)},sessionObservable:i}}(t,e);case qe.Q_.LOCAL_STORAGE:return function(){const t=new a.cP(t=>(0,_.q2)(window,"storage",e=>{e.key===on&&e.storageArea===localStorage&&t.notify(Ze(e.newValue))}).stop);let e=!0;return{async setSessionState(n,r){let o=Ze(localStorage.getItem(on));e&&He(o)&&(o=Ze(localStorage.getItem("_dd_s"))),e=!1;const i=n(o);localStorage.setItem(on,Qe(i)),await Promise.resolve(),t.notify(i)},sessionObservable:t}}();case qe.Q_.MEMORY:return function(){const t=l.J;t[ln]||(t[ln]={});const e=t[ln],n=new a.cP,r=e.onChange;return e.onChange=t=>{r?.(t),n.notify(t)},{async setSessionState(t,n){const r=e.state??{},o=(0,Nt.yG)(t(r));e.state=o,await Promise.resolve(),e.onChange?.(o)},sessionObservable:n}}()}}const mn=12*r.MA;let hn=[];async function gn(t,e){const n=(0,r.$S)(),i=new a.cP,s=new a.cP,c=await(0,o.B)(dn)(t);if(!c)return void R.V.warn("No storage available for session. We will not send any data.");const u=(0,o.B)(pn)(c,t),d=(0,Ue.qj)({maxEntries:1e3});hn.push(()=>d.stop());let p=!1;const{throttled:m,cancel:h}=(0,Le.n)(()=>{p=!1,u.setSessionState(e=>Xe(e,t),"expandOrRenewOnActivity").catch(f.Dx)},1e3);let g;hn.push(h),hn.push(()=>(0,$e.DJ)(g));let y=!1;hn.push(()=>{y=!0});let v=await b().catch(t=>(0,f.Dx)(Error("Error while resolving initial session state: "+t)));if(v&&!y){for(;!e.isGranted();){if(C(),await new Promise(t=>e.onGrantedOnce(t)),y)return;if(v=await b().catch(f.Dx),!v||y)return}return d.add(E(v),(0,r.Oc)().relative),w(v),function(){const t=u.sessionObservable.subscribe(t=>{w(t),S(t)});hn.push(()=>t.unsubscribe())}(),e.observable.subscribe(()=>{e.isGranted()?(p=!1,u.setSessionState(e=>Xe(e,t),"expandOrRenewOnConsent").catch(f.Dx)):C()}),l.W||(function(t){const{stop:e}=(0,_.lQ)(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});hn.push(e)}(k),function(){const t=()=>{"visible"===document.visibilityState&&(p||u.setSessionState(t=>function(t){return Je(t)||He(t)||!t.id||Ke(t),t}(t),"expandOnVisibility").catch(f.Dx))},{stop:e}=(0,_.q2)(document,"visibilitychange",t);hn.push(e);const n=(0,$e.yb)(t,6e4);hn.push(()=>{(0,$e.vG)(n)})}(),function(){const{stop:e}=(0,_.q2)(window,"resume",()=>{u.setSessionState(e=>Ye(e,t),"initializeOnResume").catch(f.Dx)},{capture:!0});hn.push(e)}()),(0,x.Gk)("Session manager init metrics",{metrics:{duration:(0,r.vk)(n,(0,r.$S)())}}),{findSession(t,e){return d.find(t,e)},findTrackedSession(e,{returnInactive:n=!1,maxAge:o=mn}={}){const i=d.find(e,{returnInactive:n});if(i&&"invalid"!==i.id&&(0,ze.$5)(i.id,t.sessionSampleRate)&&!((0,r.x3)()-i.createdAt>o))return i},renewObservable:i,expireObservable:s,expire:C,expandOrRenew:k,updateSessionState(t){u.setSessionState(e=>({...e,...t}),"updateState").catch(f.Dx)}}}async function b(){let e={};return await u.setSessionState(n=>{const r=Ye(n,t);return e=Xe(r,t),e},"initialize"),e}function w(n){(0,$e.DJ)(g);const o=Ge(n);if(o){const n=o-(0,r.x3)();g=(0,$e.wg)(()=>{u.setSessionState(n=>Je(n)?(e.isGranted()||delete n.anonymousId,We(n,t)):n,"expireOnTimeout").catch(f.Dx)},n)}}function S(t){const e=d.find(),n=void 0!==e?.id,o=void 0!==t.id,a=n&&o&&e.id!==t.id;if(!n||o&&!a||(p=!0,s.notify(),d.closeActive((0,r.$S)())),!o||n&&!a)n&&o&&!a&&(e.isReplayForced=!!t.forcedReplay);else{if(p)return;d.add(E(t),(0,r.$S)()),i.notify()}}function k(){e.isGranted()&&m()}function C(){h();const n=We(d.find(),t);e.isGranted()||delete n.anonymousId,S(n),u.setSessionState(n=>(e.isGranted()||delete n.anonymousId,We(n,t)),"expire").catch(f.Dx)}function E(t){const e=Fe(t)??(0,r.nx)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}const yn="datadog-synthetics-",vn=yn+"public-id",bn=yn+"result-id",_n=yn+"injects-rum",wn=yn+"rum-context";function Sn(){return!(l.W||!l.J._DATADOG_SYNTHETICS_INJECTS_RUM&&!jt(_n))}function kn(){const t=function(){const t=l.J._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;const e=jt(wn);return e?(0,Nt.XU)(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||jt(vn),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||jt(bn)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0;var e}var Cn=n(350),En=n(6448);const xn="_dd_tab_id";let An;var Tn=n(8780);const In=class{constructor(){this.callbacks={}}notify(t,e){const n=this.callbacks[t];n&&n.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}},Rn=qe.AQ,On="fetch",Nn="other",Mn=On,Pn=[["document",t=>"navigation"===t],["xhr",t=>"xmlhttprequest"===t],[On,t=>"fetch"===t],["beacon",t=>"beacon"===t],["css",(t,e)=>/\.css$/i.test(e)],["js",(t,e)=>/\.js$/i.test(e)],["image",(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],["font",(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],["media",(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function Dn(t){const e=t.name;if(!(0,d.AY)(e))return Nn;const n=(0,d.L2)(e);for(const[e,r]of Pn)if(r(t.initiatorType,n))return e;return Nn}function Vn(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ln(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function $n(t){if(!function(t){const e=Vn(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||Vn(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}(t))return;const{startTime:e,fetchStart:n,workerStart:r,redirectStart:o,redirectEnd:i,domainLookupStart:s,domainLookupEnd:a,connectStart:c,secureConnectionStart:u,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,m={download:Un(e,f,p),first_byte:Un(e,d,f)};return 0<r&&r<n&&(m.worker=Un(e,r,n)),n<l&&(m.connect=Un(e,c,l),c<=u&&u<=l&&(m.ssl=Un(e,u,l))),n<a&&(m.dns=Un(e,s,a)),e<i&&(m.redirect=Un(e,o,i)),m}function Un(t,e,n){if(t<=e&&e<=n)return{duration:(0,r.Zj)((0,r.vk)(e,n)),start:(0,r.Zj)((0,r.vk)(t,e))}}function zn(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function jn(t){return""===t.deliveryType?"other":t.deliveryType}function qn(t){if(t.startTime<t.responseStart){const{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Bn(t){return t&&(!(0,yt.wo)(t)||(0,gt.sr)(gt.R9.TRACK_INTAKE_REQUESTS))}const Fn=/data:(.+)?(;base64)?,/g;function Gn(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;const n=t.substring(0,100).match(Fn);return n?n[0]+"[...]":t}function Wn(){return Hn(63)}function Hn(t){const e=crypto.getRandomValues(new Uint32Array(2));let n=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(n&=0x7fffffffffffffffn),n}function Jn(t){return t.toString(16).padStart(16,"0")}function Kn(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Qn(t,e,n,r,o,i){const s=n.findTrackedSession();if(!s)return;const a=t.allowedTracingUrls.find(t=>Pe([t.match],e.url,!0));if(!a)return;const c=(0,ze.$5)(s.id,(0,ze.it)(t.sessionSampleRate,t.traceSampleRate)),u=(0,wt.d0)()?(0,wt.Y9)()?.getIsTraceSampled()??c:c;(u||t.traceContextInjection===bt.ALL)&&(e.traceSampled=u,e.traceId=Hn(64),e.spanId=Wn(),i(function(t,e,n,r,o,i,s,a){const c={};if(o.forEach(r=>{switch(r){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${Jn(t)}-${Jn(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${Jn(t)}-${Jn(e)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":Jn(t),"X-B3-SpanId":Jn(e),"X-B3-Sampled":n?"1":"0"})}}),a.propagateTraceBaggage){const t={"session.id":r},e=i.getContext().id;"string"==typeof e&&(t["user.id"]=e);const n=s.getContext().id;"string"==typeof n&&(t["account.id"]=n);const o=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");o&&(c.baggage=o)}return c}(e.traceId,e.spanId,e.traceSampled,s.id,a.propagatorTypes,r,o,t)))}function Zn(t,e){return e.allowedGraphQlUrls.find(e=>Pe([e.match],t))}let Yn,Xn=1;function tr(t){t.requestIndex||(t.requestIndex=Xn++)}function er(t){return"string"==typeof t?(0,h.WW)(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:0}function nr(t){const e=t.id,n=t.connectingClocks,o=n.timeStamp,i=rr(t).timeStamp;switch(t.phase){case"connecting":return ir(i,{name:"websocket_connecting",websocket:{id:e,url:t.url,requested_protocols:t.requestedProtocols,connecting_date:o}});case"open":return ir(i,{name:"websocket_open",websocket:{id:e,connecting_duration:(0,r.Zj)((0,r.vk)(n.relative,t.openClocks.relative)),open_date:or(n,t.openClocks),selected_protocol:t.selectedProtocol,selected_extensions:t.selectedExtensions,snapshot_version:t.snapshotVersion,snapshot:sr(t.snapshot)}});case"closing":return ir(i,{name:"websocket_closing",websocket:{id:e,closing_date:or(n,t.closingClocks),close_initiator:"client"}});case"closed":return ir(i,{name:"websocket_closed",websocket:{id:e,url:t.url,closed_date:or(n,t.endClocks),duration:(0,r.Zj)((0,r.vk)(n.relative,t.endClocks.relative)),tracking_end_reason:t.trackingEndReason,close_code:t.closeEvent?.code,close_reason:t.closeEvent?.reason,was_clean:t.closeEvent?.wasClean,snapshot_version:t.snapshotVersion,snapshot:t.snapshot&&sr(t.snapshot,t)}})}}function rr(t){switch(t.phase){case"connecting":return t.connectingClocks;case"open":return t.reportClocks;case"closing":return t.closingClocks;case"closed":return t.endClocks}}function or(t,e){return Math.round((0,r.Gw)(t.timeStamp,(0,r.vk)(t.relative,e.relative)))}function ir(t,e){return{date:t,type:at.VITAL,vital:{id:(0,s.l)(),type:ht.WEBSOCKET,...e}}}function sr({inbound:t,outbound:e,bufferedAmountMax:n},o){return{inbound:{...ar(t),silence_before_close:(0,r.Zj)(o?.silenceBeforeClose.inbound)},outbound:{...ar(e),buffered_amount_max:n,silence_before_close:(0,r.Zj)(o?.silenceBeforeClose.outbound),buffered_amount_at_close:o?.bufferedAmountAtClose}}}function ar(t){return{message_count:t.messageCount,message_size_total:t.messageSizeTotal,message_size_max:t.messageSizeMax,time_to_first_message:(0,r.Zj)(t.timeToFirstMessage),longest_silence:(0,r.Zj)(t.longestSilence)}}function cr(t){const e="string"==typeof t?[t]:t;return e&&e.length>0?e:void 0}function ur(t,e,n,o,i){void 0===e?i&&(t.timeToFirstMessage=(0,r.vk)(i.relative,o)):t.longestSilence=fr(t.longestSilence,(0,r.vk)(e,o)),t.messageCount+=1,t.messageSizeTotal+=n,t.messageSizeMax=Math.max(t.messageSizeMax,n)}function lr(t,e,n){return void 0===t?n.longestSilence:fr(n.longestSilence,(0,r.vk)(t,e))}function dr(t,e){return void 0===t?void 0:(0,r.vk)(t,e)}function fr(t,e){return Math.max(t,e)}function pr(t){return Ct(t)&&t<0?void 0:t}function mr(t){return t.nodeType===Node.TEXT_NODE}function hr(t){return t.nodeType===Node.ELEMENT_NODE}function gr(t){return hr(t)&&"CANVAS"===t.tagName}function yr(t){return hr(t)&&!!t.shadowRoot}function vr(t){const e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&hr(e.host)}function br(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;yr(t)&&e(t.shadowRoot)}function _r(t){return vr(t)?t.host:t.parentNode}function wr(t){if(t.parentElement)return t.parentElement;const e=t.parentNode;return e&&vr(e)?e.host:null}var Sr;function kr(t){return new a.cP(e=>{const n=t=>{const n=function(t){return t.filter(t=>!function(t){return!(t.entryType!==Sr.RESOURCE||Bn(t.name)&&function(t){return t.duration>=0}(t))}(t))}(t);n.length>0&&e.notify(n)};let r,o=!0;const i=new PerformanceObserver((0,f.dm)(t=>{o?r=(0,$e.wg)(()=>n(t.getEntries())):n(t.getEntries())}));return i.observe(t),o=!1,!Cr&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Cr=(0,_.q2)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{i.disconnect(),(0,$e.DJ)(r)}})}let Cr;function Er(t){return PerformanceObserver.supportedEntryTypes.includes(t)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource",t.SOFT_NAVIGATION="soft-navigation",t.INTERACTION_CONTENTFUL_PAINT="interaction-contentful-paint",t.VISIBILITY_STATE="visibility-state"}(Sr||(Sr={}));const xr="data-dd-excluded-activity-mutations";function Ar(t,e,n,i,s,a){const c=(0,o.B)(Tr)(t,e,n,i);let u,l=!1;const d=(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!1})),100),p=void 0!==a?(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!0,end:(0,r.nx)()})),a):void 0,m=c.subscribe(({isBusy:t})=>{(0,$e.DJ)(d),(0,$e.DJ)(u);const e=(0,r.nx)();t||(u=(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!0,end:e})),100))}),h=()=>{l=!0,(0,$e.DJ)(d),(0,$e.DJ)(u),(0,$e.DJ)(p),m.unsubscribe()};function g(t){l||(h(),s(t))}return{stop:h}}function Tr(t,e,n,r){return new a.cP(o=>{const i=[];let s,a=0;return i.push(e.subscribe(t=>{t.every(Rr)||c()}),n.subscribe(c),kr({type:Sr.RESOURCE}).subscribe(t=>{t.some(t=>!Ir(r,t.name))&&c()}),t.subscribe(7,t=>{Ir(r,t.url)||(void 0===s&&(s=t.requestIndex),a+=1,c())}),t.subscribe(8,t=>{Ir(r,t.url)||void 0===s||t.requestIndex<s||(a-=1,c())})),()=>{i.forEach(t=>t.unsubscribe())};function c(){o.notify({isBusy:a>0})}})}function Ir(t,e){return Pe(t.excludedActivityUrls,e)}function Rr(t){const e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&hr(e)&&e.matches(`[${xr}], [${xr}] *`))}const Or="data-dd-action-name",Nr="Masked Element",Mr=[Or,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Pr=[jr,Ur],Dr=[jr,function(t){if("BODY"===t.tagName)return;const e=t.classList;for(let n=0;n<e.length;n+=1){const r=e[n];if(!$r(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}},zr];function Vr(t,e){if(!t.isConnected)return;const n=function(t){const e=[];let n=t;for(;n;){const t=n.getRootNode();if(e.push({rootNode:t,target:n}),!vr(t))break;n=t.host}return e.reverse()}(t),r=[];for(const{rootNode:t,target:o}of n){const n=Lr(o,t,e);if(!n)return;r.push(n)}return r.join("::shadow ")}function Lr(t,e,n){let r,o=t;for(;o&&"HTML"!==o.nodeName;){const t=Gr(o,e,Pr,Wr,n,r);if(t)return Jr(t,r);r=Jr(Gr(o,e,Dr,Hr,n,r)||Br(o),r),o=o.parentElement}return r}function $r(t){return/[0-9]/.test(t)}function Ur(t){if(t.id&&!$r(t.id))return"#"+CSS.escape(t.id)}function zr(t){return CSS.escape(t.tagName)}function jr(t,e){if(e){const t=n(e);if(t)return t}for(const t of Mr){const e=n(t);if(e)return e}function n(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${qr(e,t.getAttribute(e))}`}}function qr(t,e){return`[${t}="${CSS.escape(e)}"]`}function Br(t){const e=Fr(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}function Fr(t){let e=t.parentNode.firstElementChild,n=1;for(;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return n}function Gr(t,e,n,r,o,i){for(const s of n){const n=s(t,o);if(n&&r(t,e,n,i))return n}}function Wr(t,e,n,r){return 1===e.querySelectorAll(Jr(n,r)).length}function Hr(t,e,n,r){let o;if(void 0===r)o=t=>t.matches(n);else{const t=Jr(n+":scope",r);o=e=>null!==e.querySelector(t)}let i=t.previousElementSibling;for(;i;){if(o(i))return!1;i=i.previousElementSibling}for(i=t.nextElementSibling;i;){if(o(i))return!1;i=i.nextElementSibling}return!0}function Jr(t,e){return e?`${t}>${e}`:t}const Kr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:vt.ALLOW,MASK:vt.MASK,MASK_USER_INPUT:vt.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:vt.MASK_UNLESS_ALLOWLISTED},Qr="data-dd-privacy",Zr="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Yr={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Xr(t){return`[${Qr}="${t}"], .dd-privacy-${t}`}function to(t,e,n){if(n?.has(t))return n.get(t);const r=_r(t),o=r?to(r,e,n):e,i=eo(no(t),o);return n&&n.set(t,i),i}function eo(t,e){switch(e){case Kr.HIDDEN:case Kr.IGNORE:return e}switch(t){case Kr.ALLOW:case Kr.MASK:case Kr.MASK_USER_INPUT:case Kr.MASK_UNLESS_ALLOWLISTED:case Kr.HIDDEN:case Kr.IGNORE:return t;default:return e}}function no(t){if(hr(t)){if("BASE"===t.tagName)return Kr.ALLOW;if("INPUT"===t.tagName){const e=t;if("password"===e.type||"email"===e.type||"tel"===e.type)return Kr.MASK;if("hidden"===e.type)return Kr.MASK;const n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Kr.MASK}return t.matches(Xr(Kr.HIDDEN))?Kr.HIDDEN:t.matches(Xr(Kr.MASK))?Kr.MASK:t.matches(Xr(Kr.MASK_UNLESS_ALLOWLISTED))?Kr.MASK_UNLESS_ALLOWLISTED:t.matches(Xr(Kr.MASK_USER_INPUT))?Kr.MASK_USER_INPUT:t.matches(Xr(Kr.ALLOW))?Kr.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){const t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){const n=e("name"),r=e("rel"),o=e("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(o)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(o)||/^product:/.test(o)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Kr.IGNORE:void 0}}function ro(t,e){switch(e){case Kr.MASK:case Kr.HIDDEN:case Kr.IGNORE:return!0;case Kr.MASK_UNLESS_ALLOWLISTED:return mr(t)?!!io(t.parentNode)||!co(t.textContent||""):io(t)||gr(t);case Kr.MASK_USER_INPUT:return mr(t)?io(t.parentNode):io(t);default:return!1}}function oo(t,e,n,r,o){if(r!==Kr.MASK&&r!==Kr.MASK_UNLESS_ALLOWLISTED)return!1;if(e===Qr||Mr.includes(e)||e===o.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":return!0;case"name":return"SLOT"!==t}return"A"===t&&"href"===e||"IFRAME"===t&&"srcdoc"===e||!(!n||!e.startsWith("data-"))||!("IMG"!==t&&"SOURCE"!==t||"src"!==e&&"srcset"!==e)}function io(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;const e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Yr[e.tagName]}function so(t){return t.replace(/\S/g,"x")}function ao(t,e){const n=t.parentElement?.tagName;let r=t.textContent||"";const o=e;return"SCRIPT"===n||o===Kr.HIDDEN?r="***":ro(t,o)&&("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n||(r="OPTION"===n?"***":so(r))),"HEAD"!==n||r.trim()?r:""}function co(t){return!t?.trim()||window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1}function uo({lifeCycle:t,isChildEvent:e,onChange:n=m.l}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=t.subscribe(13,t=>{if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case at.ERROR:r.errorCount+=1,n();break;case at.ACTION:r.actionCount+=1,t.action.frustration&&(r.frustrationCount+=t.action.frustration.type.length),n();break;case at.LONG_TASK:r.longTaskCount+=1,n();break;case at.RESOURCE:t._dd?.discarded||(r.resourceCount+=1,n())}});return{stop(){o.unsubscribe()},eventCounts:r}}function lo(t){const e=(0,Ue.qj)({expireDelay:3e5}),n=new Map;function o(t){n.delete(t.key),t.eventCounts?.stop()}function a(){n.forEach(t=>{o(t)}),e.reset()}const c=t.subscribe(10,a);function u(t){const e=n.get(t);if(!e)return;const r=e.eventCounts?.eventCounts;return o(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:r}}return{start(r,o,i,a){const c=(0,s.l)(),l=e.add(c,o.relative);n.has(r)&&u(r);const d={id:c,key:r,startClocks:o,data:i,historyEntry:l,eventCounts:a?.isChildEvent?uo({lifeCycle:t,isChildEvent:a.isChildEvent(c)}):void 0};return n.set(r,d),d},stop(t,e,s){const a=n.get(t);if(!a)return;const c=s?(0,i.kg)(a.data,s):a.data;a.historyEntry.close(e.relative);const u=(0,r.vk)(a.startClocks.timeStamp,e.timeStamp),l=a.eventCounts?.eventCounts;return o(a),{...c,id:a.id,startClocks:a.startClocks,duration:u,counts:l}},discard:u,getCounts:t=>n.get(t)?.eventCounts?.eventCounts,findId:t=>e.findAll(t),stopAll(){c.unsubscribe(),a(),e.stop()}}}const fo=["HTML","BODY"],po=Mr.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function mo(t,e){const n=zr(t),r=Ur(t),o=function(t){return Array.from(t.classList).filter(t=>!$r(t)).sort().map(t=>"."+CSS.escape(t)).join("")}(t),i=function(t,e){const n=[],r=Array.from(t.attributes);for(const t of r)e.includes(t.name)&&n.push(qr(t.name,t.value));return n.sort().join("")}(t,e),s=function(t){const e=Array.from(t.parentNode.children);if(e.length<=1)return"";const n=e.filter(e=>e.tagName===t.tagName),r=e.indexOf(t),o=Fr(t);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${o})`:""}`}(t);return`${n}${r||""}${i}${o}${s};`}function ho(t,e){return 0!==(t&e)}function go(t){let e=0,n=t;for(;n;){const t=n.getAttribute("data-dd-ignore-frustration");if(null!==t){const n=t.split(/\s+/);if(""===t.trim()||n.includes("all"))return 7;n.includes("rage-click")&&(e|=1),n.includes("dead-click")&&(e|=2),n.includes("error-click")&&(e|=4)}if(7===e)break;n=wr(n)}return e}function yo(t,e){const n=function(t,e){let n=t;for(;n;){if(n.matches(e))return n;n=wr(n)}return null}(t,`[${e}]`);if(n)return So(wo(n.getAttribute(e).trim()))}const vo=[(t,e,n)=>{if("labels"in t&&t.labels&&t.labels.length>0)return Co(t.labels[0],e,n)},t=>{if("INPUT"===t.nodeName){const e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return{name:e.value,nameSource:"text_content"}}},(t,e,n)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"A"===t.nodeName||"button"===t.getAttribute("role")||"link"===t.getAttribute("role"))return Co(t,e,n)},(t,e,n)=>ko(t,"aria-label",e,n),(t,e,n)=>{const r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(e=>function(t,e){const n=t.getRootNode();if(n instanceof ShadowRoot){const t=n.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)).filter(t=>!!t).map(t=>Eo(t,e,n)).join(" "),nameSource:"text_content"}},(t,e,n)=>ko(t,"alt",e,n),(t,e,n)=>ko(t,"name",e,n),(t,e,n)=>ko(t,"title",e,n),(t,e,n)=>ko(t,"placeholder",e,n),(t,e,n)=>{if("options"in t&&t.options.length>0)return Co(t.options[0],e,n)}],bo=[(t,e,n)=>Co(t,e,n)];function _o(t,e,n,r){let o=t,i=0;for(;i<=10&&o&&"BODY"!==o.nodeName&&"HTML"!==o.nodeName&&"HEAD"!==o.nodeName;){for(const t of e){const e=t(o,n,r);if(e){const{name:t,nameSource:n}=e,r=t?.trim();if(r)return{name:So(wo(r)),nameSource:n}}}if("FORM"===o.nodeName)break;o=wr(o),i+=1}}function wo(t){return t.replace(/\s+/g," ")}function So(t){return t.length>100?Dt(t,100)+" [...]":t}function ko(t,e,n,r){const{enablePrivacyForActionName:o,defaultPrivacyLevel:i}=n;let s=t.getAttribute(e);if(s&&o){const o=to(t,i,r);oo(t.tagName,e,s,o,n)&&(c=Nr,s=co(a=s)?a:c||so(a))}else s||(s="");var a,c;return{name:s,nameSource:"standard_attribute"}}function Co(t,e,n){return{name:Eo(t,e,n)||"",nameSource:"text_content"}}function Eo(t,e,n){if(t.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:i}=e,s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){const e=to(t,i,n);if(r&&e&&ro(t,e))return NodeFilter.FILTER_REJECT;if(hr(t)){if(t.hasAttribute(Or)||o&&t.hasAttribute(o))return NodeFilter.FILTER_REJECT;const e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT});let a="";for(;s.nextNode();){const t=s.currentNode;hr(t)?("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(a+=" "):a+=t.textContent||""}return a.replace(/\s+/g," ").trim()}function xo(){const t=window.getSelection();return!t||t.isCollapsed}function Ao(t){return t.target instanceof Element&&!1!==t.isPrimary}function To(t){if(ho(t.ignore,2))return!1;if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}const Io=new Map;function Ro(t,e){Io.set(t,e),Io.forEach((t,e)=>{(0,r.vk)(e,(0,r.$S)())>1e4&&Io.delete(e)})}function Oo(t){return e=>e.action?.id?.includes(t)??!1}function No(t,e,n,o){const i=lo(t),s=new a.cP;let c;t.subscribe(5,d),t.subscribe(11,t=>{t!==En.y5.PAGE_TERMINATED&&d()});const{stop:u}=function({onPointerDown:t,onPointerUp:e}){let n,r,o={selection:!1,input:!1,scroll:!1};const i=[(0,_.q2)(window,"pointerdown",e=>{Ao(e)&&(n=xo(),o={selection:!1,input:!1,scroll:!1},r=t(e))},{capture:!0}),(0,_.q2)(window,"selectionchange",()=>{n&&xo()||(o.selection=!0)},{capture:!0}),(0,_.q2)(window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,_.q2)(window,"pointerup",t=>{if(Ao(t)&&r){const n=o;e(r,t,()=>n),r=void 0}},{capture:!0}),(0,_.q2)(window,"input",()=>{o.input=!0},{capture:!0})];return{stop(){i.forEach(t=>t.stop())}}}({onPointerDown:r=>function(t,e,n,r,o){let i;if(i=t.enablePrivacyForActionName?to(Mo(r),t.defaultPrivacyLevel):Kr.ALLOW,i===Kr.HIDDEN)return;const s=function(t,e,n){const r=Mo(t),o=r.getBoundingClientRect(),i=Vr(r,n.actionNameAttribute),s=function(t,e){const n=t.filter(t=>t instanceof Element&&!fo.includes(t.tagName));if(0===n.length)return"";const r=e?[e].concat(po):po;let o="";for(const t of n)if(o+=mo(t,r),o.length>=2048)return Dt(o,2048);return o}(t.composedPath(),n.actionNameAttribute);i&&Ro(t.timeStamp,i);const{name:a,nameSource:c}=function(t,e,n=Kr.ALLOW){const r=new Map,{actionNameAttribute:o}=e,i=yo(t,Or)||o&&yo(t,o);return i?{name:i,nameSource:"custom_attribute"}:n===Kr.MASK?{name:Nr,nameSource:"mask_placeholder"}:_o(t,vo,e,r)||_o(t,bo,e,r)||{name:"",nameSource:"blank"}}(r,n,e);return{type:"click",target:{width:Math.round(o.width),height:Math.round(o.height),selector:i,composedPathSelector:s||void 0},position:{x:Math.round(t.clientX-o.left),y:Math.round(t.clientY-o.top)},name:a,nameSource:c}}(r,i,t);let a=!1;return Ar(e,n,o,t,t=>{a=t.hadActivity},100),{clickActionBase:s,ignore:go(Mo(r)),hadActivityOnPointerDown:()=>a}}(o,t,e,r,n),onPointerUp({clickActionBase:a,ignore:c,hadActivityOnPointerDown:u},d,f){!function(t,e,n,o,i,s,a,c,u,l,d,f){const p=Po(e,i,d,c,u,l);a(p);const m=c?.target?.selector;m&&Ro(l.timeStamp,m);const{stop:h}=Ar(e,n,o,t,t=>{t.hadActivity&&t.end<p.startClocks.timeStamp?p.discard():t.hadActivity?p.stop(t.end):f()?p.stop(p.startClocks.timeStamp):p.stop()},1e4),g=e.subscribe(5,({endClocks:t})=>{p.stop(t.timeStamp)}),y=e.subscribe(11,t=>{t!==En.y5.PAGE_TERMINATED&&p.stop((0,r.nx)())}),v=s.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{y.unsubscribe(),g.unsubscribe(),h(),v.unsubscribe()})}(o,t,e,n,i,s,l,a,c,d,f,u)}});return{stop(){d(),s.notify(),u(),i.stopAll()},findActionId:i.findId};function l(t){if(!c?.tryAppend(t)){const e=t.clone(),n=function(t){const o=[];let i,s=0;function a(t){t.stopObservable.subscribe(u),o.push(t),(0,$e.DJ)(i),i=(0,$e.wg)(l,1e3)}function u(){1===s&&o.every(t=>t.isStopped())&&(s=2,function(t,e){const{isRage:n}=function(t,e){if(function(t){if(t.some(t=>ho(t.ignore,1)||t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(To)&&e.addFrustration(mt),e.hasError&&!ho(e.ignore,4)&&e.addFrustration(pt),{isRage:!0};const n=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&!ho(t.ignore,4)&&t.addFrustration(pt),To(t)&&!n&&t.addFrustration(mt)}),{isRage:!1}}(t,e);n?(t.forEach(t=>t.discard()),e.stop((0,r.nx)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))}(o,e),c===n&&(c=void 0))}function l(){(0,$e.DJ)(i),0===s&&(s=1,u())}return a(t),{tryAppend(t){return 0===s&&(o.length>0&&(n=t,!(ho((e=o[o.length-1]).ignore,1)===ho(n.ignore,1)&&e.event.target===n.event.target&&(r=e.event,i=n.event,Math.sqrt(Math.pow(r.clientX-i.clientX,2)+Math.pow(r.clientY-i.clientY,2))<=100)&&e.event.timeStamp-n.event.timeStamp<=1e3))?(l(),!1):(a(t),!0));var e,n,r,i},stop(){l()}}}(t);c=n}}function d(){c&&c.stop()}}function Mo(t){if(t.composed&&yr(t.target)&&"function"==typeof t.composedPath){const e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}function Po(t,e,n,o,i,c){const u=(0,s.l)(),l=(0,r.FR)(c.timeStamp),d=e.start(u,l,o,{isChildEvent:Oo});t.notify(15,d);let f,p=0;const m=[],h=new a.cP;function g(t){0===p&&(p=1,f=t?e.stop(u,(0,r.jR)(t)):e.discard(u),h.notify())}return{event:c,ignore:i,stop:g,stopObservable:h,get hasError(){const t=f?.counts??e.getCounts(u);return!!t&&t.errorCount>0},get hasPageActivity(){return f&&"duration"in f},getUserActivity:n,addFrustration(t){m.push(t)},get startClocks(){return l},isStopped:()=>1===p||2===p,clone:()=>Po(t,e,n,o,i,c),validate(e){if(g(),1!==p)return;if(!f)return;const n={frustrationTypes:m,events:e??[c],event:c,...f,counts:f.counts};t.notify(0,n),p=2},discard(){g(),p=2}}}function Do(t){const e=function(t){return"events"in t}(t),n=pr((0,r.Zj)(t.duration));return{rawRumEvent:{type:at.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==n&&{loading_time:n},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:{selector:t.target?.selector||void 0,width:t.target?.width||void 0,height:t.target?.height||void 0,composed_path_selector:t.target?.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}const Vo="csp_violation";function Lo(t){return{startClocks:(0,r.M8)(),source:G.g.REPORT,handling:"unhandled",...t}}function $o(t,e,n,r,o){return n?(0,D.Yn)({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}var Uo=n(7922);function zo(){const t=[];function e(e){let r;if(!e||e.didTimeout){const t=performance.now();r=()=>30-(performance.now()-t)}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){(0,Uo.BB)(e,{timeout:1e3})}return{push(e){1===t.push(e)&&n()},stop(){t.length=0}}}var jo=n(7409);function qo(){if(Er(Sr.NAVIGATION)){const t=performance.getEntriesByType(Sr.NAVIGATION)[0];if(t&&function(t){return!(t.loadEventEnd>0&&t.domComplete<=0)}(t))return t}const t=function(){const t={},e=performance.timing;for(const n in e)if(Ct(e[n])){const o=n,i=e[o];t[o]=0===i?0:(0,r.d6)(i)}return t}(),e={entryType:Sr.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function Bo(t){return t.responseStart>=0&&t.responseStart<=(0,r.$S)()?t.responseStart:void 0}function Fo(t){const e=function(t){const e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return Go(e?.content,n?.content)}(t)||function(t){const e=function(t){for(let e=0;e<t.childNodes.length;e+=1){const n=Wo(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){const n=t.body.childNodes[e],r=Wo(n);if(r)return r;if(!mr(n))break}}(t);if(e)return Go(Pt(e,"trace-id"),Pt(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,r.uc)()-12e4))return e.traceId}function Go(t,e){const n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function Wo(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){const e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function Ho(t,e,n){const a=e?function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(e,n):function(t,e){if("navigation"!==t.initiatorType)return;const n=(0,o.B)(Fo)(document);return n?{_dd:{trace_id:n,span_id:Wn().toString(),rule_psr:e.rulePsr}}:void 0}(t,n);if(!n.trackResources&&!a)return;const c=(0,r.FR)(t.startTime),u=function(t){const{duration:e,startTime:n,responseEnd:o}=t;return"navigation"===t.initiatorType||0===e&&n<o?(0,r.vk)(n,o):e}(t),l=function(t,e){const n=e.trackResourceHeaders;if(0===n.length||!t)return;const r=n.filter(e=>void 0===e.url||Pe([e.url],t.url,!0));if(0===r.length)return;const o=r.filter(t=>void 0===t.location||"any"===t.location||"response"===t.location),i=r.filter(t=>void 0===t.location||"any"===t.location||"request"===t.location),s=o.length>0?function(t,e){if(t.type===Mn&&t.response)return Yo(t.response.headers,e);if("xhr"===t.type&&t.xhr){const n=t.xhr.getAllResponseHeaders();if(n)try{return Yo(new Headers(function(t){const e=[],n=t.trim().split(/\r\n/);for(const t of n){const n=t.indexOf(":");n>0&&e.push([t.substring(0,n).trim(),t.substring(n+1).trim()])}return e}(n)),e)}catch{}}}(t,o):void 0,a=i.length>0?function(t,e){if(t.type!==Mn)return;let n;return t.init?.headers?n=new Headers(t.init.headers):t.input instanceof Request&&(n=t.input.headers),n?Yo(n,e):void 0}(t,i):void 0;return s||a?{resource:{request:a?{headers:a}:void 0,response:s?{headers:s}:void 0}}:void 0}(e,n),d=(0,i.kg)({date:c.timeStamp,resource:{id:(0,s.l)(),duration:(0,r.Zj)(u),type:Dn(t),method:e?.method,status_code:e?e.status:(f=t.responseStatus,0===f?void 0:f),url:e?Gn(e.url):t.name,protocol:zn(t),delivery_type:jn(t),graphql:e&&Jo(e,n),render_blocking_status:t.renderBlockingStatus,...qn(t),...$n(t)},type:at.RESOURCE,_dd:{discarded:!n.trackResources}},a,function(t){const e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}(t),l);var f;return{startClocks:c,duration:u,rawRumEvent:d,domainContext:Ko(t,e)}}function Jo(t,e){const n=Zn(t.url,e);if(n)return function(t,e){const n=function(t,e=!1){let n;if("POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;const e=(0,Nt.XU)(t);return e?{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0,operationType:e.operationType}:void 0}(t.requestBody):"GET"===t.method&&(n=function(t){const e=(0,d.c$)(t).searchParams,n=e.get("variables"),r=n&&void 0!==(0,Nt.XU)(n)?n:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:r,operationType:e.get("operationType")||void 0}}(t.url)),n)return function(t,e){let n,r,o;if(t.query){const o=t.query.trim();i=o,n=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(r=Dt(o,32768,"..."))}var i;if(!n){const e=t.operationType;"query"!==e&&"mutation"!==e&&"subscription"!==e||(n=e)}return t.variables&&(o=t.variables),{operationType:n,operationName:t.operationName,variables:o,payload:r}}(n,e)}(t,e.trackPayload);if(n){if(e.trackResponseErrors&&t.responseBody){const e=function(t){const e=(0,Nt.XU)(t);if(!e||"object"!=typeof e)return;const n=e;return(0,Et.EI)(n.errors)?n.errors.map(t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code})):void 0}(t.responseBody);e&&(n.error_count=e.length,n.errors=e)}return n}}(t,n)}function Ko(t,e){return{performanceEntry:t,isManual:!1,isAborted:!!e&&e.isAborted,isWebSocket:!1,handlingStack:e?.handlingStack,requestInit:e?.init,requestInput:e?.input,response:e?.response,error:e?.error,xhr:e?.xhr}}const Qo=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,Zo=t=>pe.includes(t);function Yo(t,e){const n={};let r=0,o=!1;return t.forEach((t,i)=>{if(r>=100)return void(o||(R.V.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0));const s=i.toLowerCase();if(Qo.test(s))return;const a=e.find(t=>Pe([t.name??Zo],s));if(!a)return;const{extractor:c}=a,u=c?Gt(t,c):t;void 0!==u&&(u.length>128&&R.V.warn(`Header "${s}" value was truncated from ${u.length} to 128 characters.`),n[s]=Dt(u,128),r++)}),r>0?n:void 0}function Xo(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{return}}function ti(t,e,n){if(void 0===n)return;const r=t?function(t,e){const n=function(){if(Er(Sr.RESOURCE))return performance.getEntriesByType(Sr.RESOURCE)}();if(n)return(0,je.Uk)(n,n=>n.name===t&&n.startTime<=e)}(t,e):void 0,o=r?Math.max(n,r.requestStart||r.startTime):n,i=Math.min(e,Math.max(o,r?.responseEnd||0));return{loadDelay:o-n,loadTime:i-o,renderDelay:e-i}}function ei(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:m.l};if(Er(Sr.VISIBILITY_STATE)){const e=performance.getEntriesByType(Sr.VISIBILITY_STATE).filter(t=>"hidden"===t.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:m.l}}let n=1/0;const{stop:r}=(0,_.lQ)(e,["pagehide","visibilitychange"],t=>{"pagehide"!==t.type&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}function ni(t,e,n,r){const i={},{stop:s}=(l=t=>{n(t.loadEvent),i.navigationTimings=t,r()},function(t){let e;const{stop:n}=(0,jo.H)("complete",()=>{e=(0,$e.wg)(()=>t())});return{stop(){n(),(0,$e.DJ)(e)}}}(()=>{const t=(0,o.B)(qo)();(function(t){return t.loadEventEnd<=0})(t)||l(function(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:Bo(t)}}(t))})),a=ei(e),{stop:c}=function(t){return{stop:kr({type:Sr.PAINT,buffered:!0}).subscribe(e=>{const n=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<t.timeStamp&&e.startTime<6e5);var o;n&&(o=n.startTime,i.firstContentfulPaint=o,r())}).unsubscribe}}(a),{stop:u}=function(t,e,n){let o=1/0;const{stop:s}=(0,_.lQ)(n,["pointerdown","keydown"],t=>{o=t.timeStamp},{capture:!0,once:!0});let a=0;const c=kr({type:Sr.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(n=>{const s=(0,je.Uk)(n,t=>t.entryType===Sr.LARGEST_CONTENTFUL_PAINT&&t.startTime<o&&t.startTime<e.timeStamp&&t.startTime<6e5&&t.size>a);if(s){let e;s.element&&(e=Vr(s.element,t.actionNameAttribute));const n=""===(u=s).url?void 0:u.url,o=s.startTime;c={value:o,targetSelector:e,resourceUrl:n,subParts:ti(n,o,Bo(qo()))},i.largestContentfulPaint=c,r(),a=s.size}var c,u});return{stop(){s(),c.unsubscribe()}}}(t,a,window);var l;return{stop(){s(),c(),u(),a.stop()},initialViewMetrics:i}}const ri=(t,e)=>t*e,oi=t=>ri(t.previousRect.width,t.previousRect.height)+ri(t.currentRect.width,t.currentRect.height)-((t,e)=>{const n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),o=Math.min(t.right,e.right),i=Math.min(t.bottom,e.bottom);return n>=o||r>=i?0:ri(o-n,i-r)})(t.previousRect,t.currentRect);function ii(t){let e;for(const n of t)if(n.node&&hr(n.node)){const t=oi(n);(!e||oi(e)<t)&&(e=n)}return e}function si({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}let ai,ci=0,ui=1/0,li=0;const di=()=>ai?ci:window.performance.interactionCount||0;function fi(t){return Math.min(t,6e4)}function pi(){let t;const e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function mi(){let t;const e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}let hi;function gi(){return hi||(hi=new a.cP(t=>{const{throttled:e}=(0,Le.n)(()=>{t.notify(yi())},200);return(0,_.q2)(window,"resize",e,{capture:!0,passive:!0}).stop})),hi}function yi(){const t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function vi(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}function bi({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,largestContentfulPaint:o}){return{cls:t&&{score:t.value,timestamp:(0,r.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:(0,r.Zj)(n)},inp:e&&{duration:(0,r.Zj)(e.value),timestamp:(0,r.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,r.Zj)(e.subParts.inputDelay),processing_duration:(0,r.Zj)(e.subParts.processingDuration),presentation_delay:(0,r.Zj)(e.subParts.presentationDelay)}:void 0},lcp:o&&{timestamp:(0,r.Zj)(o.value),target_selector:o.targetSelector,resource_url:o.resourceUrl,sub_parts:o.subParts?{load_delay:(0,r.Zj)(o.subParts.loadDelay),load_time:(0,r.Zj)(o.subParts.loadTime),render_delay:(0,r.Zj)(o.subParts.renderDelay)}:void 0}}}var _i=n(6625);function wi(t,e){if(t===e)return!0;if(null===t||"object"!=typeof t||null===e||"object"!=typeof e)return t===e;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((t,n)=>wi(t,e[n]));if(Array.isArray(t)||Array.isArray(e))return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);return o.length===i.length&&o.every(t=>i.includes(t)&&wi(n[t],r[t]))}function Si(t,e,n){const r={},o=n?.replaceKeys??new Set,i=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(const n of Object.keys(t)){if(s.has(n))continue;const a=t[n],c=e[n];if(!o.has(n)&&(0,I.OE)(a)&&(0,I.OE)(c)){const t=Si(a,c,{replaceKeys:ki(o,n),appendKeys:ki(i,n),ignoreKeys:ki(s,n)});t&&(r[n]=t)}else i.has(n)&&Array.isArray(a)&&Array.isArray(c)?a.length>c.length&&(r[n]=a.slice(c.length)):wi(a,c)||(r[n]=a)}for(const n of Object.keys(e))n in t||(r[n]=null);return Object.keys(r).length>0?r:void 0}function ki(t,e){const n=new Set;for(const r of t)r.startsWith(e+".")&&n.add(r.slice(e.length+1));return n}function Ci(t,e){const n=Si(t,e,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return(0,i.kg)(n,{type:at.VIEW_UPDATE,date:t.date,application:t.application,session:t.session,view:{id:t.view.id,url:t.view.url},_dd:{document_version:t._dd.document_version,format_version:t._dd.format_version}})}const Ei=qe.AQ;function xi(){return(0,o.B)(l.J.location)}function Ai(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}const Ti=qe.AQ;let Ii,Ri;function Oi(){0!==Ii.batchCount&&((0,x.Gk)("Customer data measures",Ii),Mi())}function Ni(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Mi(){Ii={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0}}}const Pi=qe.AQ;function Di(t,e,n){if(0!==t.length)return t.slice(-n).reverse().map(({state:t,startTime:n})=>({state:t,start:(0,r.Zj)((0,r.vk)(e,n))}))}function Vi(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Li(t){const{startClocks:e,type:n,name:o,description:i,context:a,handlingStack:c}=t,u={id:(t.type===ht.DURATION?t.id:void 0)??(0,s.l)(),type:n,name:o,description:i,...n===ht.DURATION?{duration:(0,r.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:u,type:at.VITAL,context:a},startClocks:e,duration:n===ht.DURATION?t.duration:void 0,domainContext:c?{handlingStack:c}:{}}}function $i(t,e){let n=Lt(t);const r=(0,$e.yb)(()=>{const r=Lt(t);r!==n&&(n=r,e(r))},1e3);return()=>{(0,$e.vG)(r)}}const Ui="datadog-ci-visibility-test-execution-id";function zi(t,e){const n=(0,s.l)(),o=(0,r.Zj)(t.duration),i={date:e.timeStamp,type:at.LONG_TASK,_dd:{discarded:!1}};if(t.entryType===Sr.LONG_TASK)return{...i,long_task:{id:n,entry_type:ct.LONG_TASK,duration:o}};const a=t.scripts.map(t=>t.sourceURL).filter(t=>!!t),c=(0,V.Jv)(a);return{...i,_dd:{discarded:!1,debug_ids:c},long_task:{id:n,entry_type:ct.LONG_ANIMATION_FRAME,duration:o,blocking_duration:(0,r.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,r.Zj)(t.firstUIEventTimestamp),render_start:(0,r.Zj)(t.renderStart),style_and_layout_start:(0,r.Zj)(t.styleAndLayoutStart),start_time:(0,r.Zj)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,r.Zj)(t.duration),pause_duration:(0,r.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,r.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,r.Zj)(t.startTime),execution_start:(0,r.Zj)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))}}}function ji(t,e,n=3e3){let r=0,o=!1;return{isLimitReached(){if(0===r&&(0,$e.wg)(()=>{r=0},6e4),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{e(`Reached max number of ${t}s by minute: ${n}`)}finally{o=!1}}return!0}}}var qi=n(98);function Bi(t,e,n){const r=(0,i.Go)(t),o=n(r);return(0,je.WP)(e).forEach(([e,n])=>Fi(t,r,e.split(/\.|(?=\[\])/),n)),o}function Fi(t,e,n,r){const[o,...i]=n;if("[]"!==o){if(Gi(t)&&Gi(e))return i.length>0?Fi(t[o],e[o],i,r):void function(t,e,n,r){if(t[e]===n)return;const o=(0,I.Pw)(n);o===r?t[e]=O(n):"object"!==r||"undefined"!==o&&"null"!==o?"array"!==r||"undefined"!==o&&"null"!==o||(t[e]=[]):t[e]={}}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((t,n)=>Fi(t,e[n],i,r))}function Gi(t){return"object"===(0,I.Pw)(t)}const Wi={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},Hi={[at.VIEW]:{...Wi,"view.performance.lcp.resource_url":"string"},[at.ERROR]:{...Wi,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[at.RESOURCE]:{...Wi,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object"},[at.ACTION]:{...Wi,"action.target.name":"string"},[at.LONG_TASK]:{...Wi,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[at.VITAL]:{...Wi,"vital.websocket.url":"string","vital.websocket.requested_protocols":"array","vital.websocket.selected_protocol":"string","vital.websocket.close_reason":"string"}};function Ji(t,e){return(0,wt.d0)()?(0,wt.Ww)("records")?1:0:(0,ze.$5)(t.id,(0,ze.it)(e.sessionSampleRate,e.sessionReplaySampleRate))?1:t.isReplayForced?2:0}var Ki=n(64);const Qi=[at.ACTION,at.ERROR,at.LONG_TASK,at.RESOURCE,at.VITAL];function Zi(t,e,n,c,h,g,y,v,w,S){const C=[],E=new In;E.subscribe(13,t=>(0,Cn.b)("rum",t)),e.expireObservable.subscribe(()=>E.notify(9,{endClocks:(0,r.M8)()})),e.renewObservable.subscribe(()=>E.notify(10));const T=t=>{E.notify(14,{error:{message:t,source:G.g.AGENT,startClocks:(0,r.M8)()}}),(0,x.A2)("Error reported to customer",{"error.message":t})};if((0,wt.d0)()){!function(t){const e=(0,wt.Y9)();t.subscribe(13,t=>{e.send("rum",t)})}(E);const t=(0,En._T)().subscribe(t=>{E.notify(11,t.reason)});C.push(()=>t.unsubscribe())}else{const n=function(t,e,n,r,o){const i=[(0,Ft.ns)(t,"rum")],s=(0,Ft.np)(t,"rum");s&&i.push(s);const a=(0,_i.X)({encoder:o(2),endpoints:i,reportError:n});r.subscribe(()=>a.forceFlush("session_expire"));const{dispatch:c,stop:u}=function(t,e){let n,r,o=!1,i=0;const{unsubscribe:s}=t.flushObservable.subscribe(()=>{o=!1,r=n});return{dispatch(s){if(s.type!==at.VIEW)return void t.add(s);if(!e)return void t.upsert(s,s.view.id);const a=s.view.id;if(!s.view.is_active)return a===n?.view.id&&(n=void 0,r=void 0,o=!1,i=0),void t.upsert(s,a);if(a!==n?.view.id)return i=0,t.upsert(s,a),n=s,void(o=!t.isEmpty);if(n=s,o)t.upsert(s,a);else{if(i+=1,i>=100)return i=0,t.upsert(s,a),void(o=!t.isEmpty);if(r){const e=Ci(s,r);e&&((0,Cn.b)("rum",e),t.upsert(e,a))}}},stop:s}}(a,t.betaEnableViewUpdates);e.subscribe(13,c);const l=a.stop.bind(a);return a.stop=()=>{u(),l()},a}(t,E,T,e.expireObservable,g),r=n.prepareUrgentFlushObservable.subscribe(t=>{E.notify(11,t)});C.push(()=>r.unsubscribe()),C.push(()=>n.stop()),function(t,e,n){t.metricsEnabled&&(Mi(),Ri=!1,e.subscribe(13,()=>{Ri=!0}),n.subscribe(({bytesCount:t,messagesCount:e})=>{Ri&&(Ri=!1,Ii.batchCount+=1,Ni(Ii.batchBytesCount,t),Ni(Ii.batchMessagesCount,e))}),(0,$e.yb)(Oi,1e4))}(v,E,n.flushObservable)}const{stop:I,...N}=function(t,e,n,c,h,g,y,v,w){const S=[],C=(0,Tn.l)(),E=function(){let t=(0,Nt.yG)(xi());return new a.cP(e=>{const{stop:n}=function(t){const{stop:e}=(0,p.H7)(Ai("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,p.H7)(Ai("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,_.q2)(window,"popstate",t);return{stop(){e(),n(),r()}}}(i),{stop:r}=(o=i,(0,_.q2)(window,"hashchange",o));var o;function i(){if(t.href===xi().href)return;const n=(0,Nt.yG)(xi());e.notify({newLocation:n,oldLocation:t}),t=n}return()=>{n(),r()}})}(),{observable:x,stop:T}=function(){const t=new a.cP,{stop:e}=(0,p.H7)(window,"open",()=>t.notify());return{observable:t,stop:e}}();S.push(T);const{assembleEventDefaults:I}=e;!function(t,e,n){t.register(({eventType:t})=>{const o=e.source;return{type:t,_dd:{format_version:2,drift:(0,r._O)(),configuration:{session_sample_rate:kt(e.sessionSampleRate,3),session_replay_sample_rate:kt(e.sessionReplaySampleRate,3),profiling_sample_rate:kt(e.profilingSampleRate,3),trace_sample_rate:kt(e.traceSampleRate,3)},browser_sdk_version:(0,wt.d0)()?"7.16.2":void 0,sdk_name:n},application:{id:e.applicationId},date:(0,r.nx)(),source:o}})}(I,n,v);const N=function(t,e=500){const n=(0,Ue.qj)({expireDelay:Pi,maxEntries:4e3});let o;Er(Sr.VISIBILITY_STATE)&&performance.getEntriesByType(Sr.VISIBILITY_STATE).forEach(t=>{s("hidden"===t.name?"hidden":"active",t.startTime)}),s(Vi(),(0,r.$S)());const{stop:i}=(0,_.lQ)(window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],t=>{s(function(t){return"freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":Vi()}(t),t.timeStamp)},{capture:!0});function s(t,e=(0,r.$S)()){t!==o&&(o=t,n.closeActive(e),n.add({state:o,startTime:e},e))}function a(t,e,r){return n.findAll(e,r).some(e=>e.state===t)}return t.register(({startTime:t,duration:r=0,eventType:o})=>o===at.VIEW?{type:o,_dd:{page_states:Di(n.findAll(t,r),t,e)}}:o===at.ACTION||o===at.ERROR?{type:o,view:{in_foreground:a("active",t,0)}}:Oe.$O),{wasInPageStateDuringPeriod:a,addPageState:s,stop(){i(),n.stop()}}}(I);S.push(()=>N.stop());const M=function(t){const e=(0,Ue.qj)({expireDelay:Rn});return t.subscribe(1,t=>{e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{e.closeActive(t.relative)}),t.subscribe(3,t=>{const n=e.find(t.startClocks.relative);n&&(t.name&&(n.name=t.name),t.context&&(n.context=t.context),n.sessionIsActive=t.sessionIsActive)}),t.subscribe(10,()=>{e.reset()}),{findView(t,n){return e.find(t,n)},stop(){e.stop()}}}(t);S.push(()=>M.stop());const P=function(t,e,n){const i=(0,Ue.qj)({expireDelay:Ei});let s;t.subscribe(1,({startClocks:t,url:e})=>{const n=(0,o.B)(l.J.location).href,r=void 0!==e?(0,d.c$)(e,n).href:n;i.add(c({url:r,referrer:s||document.referrer}),t.relative),s=r}),t.subscribe(6,({endClocks:t})=>{i.closeActive(t.relative)});const a=n.subscribe(({newLocation:t})=>{const e=i.find();if(e){const n=(0,r.$S)();i.closeActive(n),i.add(c({url:t.href,referrer:e.referrer}),n)}});function c({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(({startTime:t,eventType:e})=>{const n=i.find(t);return n?{type:e,view:{url:n.url,referrer:n.referrer}}:Oe.ug}),{findUrl(t){return i.find(t)},stop(){a.unsubscribe(),i.stop()}}}(t,I,E);S.push(()=>P.stop());const D=function(t,e,n){const r=(0,Ue.qj)({expireDelay:Ti});return t.subscribe(1,({startClocks:t})=>{r.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{r.closeActive(t.relative)}),e.register(({startTime:t,eventType:e})=>{if(!n.trackFeatureFlagsForEvents.concat([at.VIEW,at.ERROR]).includes(e))return Oe.$O;const o=r.find(t);return!o||(0,Nt.RI)(o)?Oe.$O:{type:e,feature_flags:o}}),{addFeatureFlagEvaluation(t,e){const n=r.find();n&&(n[t]=e)}}}(t,I,n);(function(t,e,n,r,o){t.register(({eventType:t,startTime:i})=>{const s=n.findTrackedSession(i),a=o.findView(i);if(!s||!a)return Oe.ug;let c,u,l;return t===at.VIEW?(c=!!r.getReplayStats(a.id)||void 0,u=1===Ji(s,e),l=!!a.sessionIsActive&&void 0):c=!!r.isRecording()||void 0,{type:t,session:{id:s.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:l}}})})(I,n,c,h,M),function(t){t.register(({eventType:t})=>({type:t,connectivity:(0,Ki.q)()}))}(I),function(t){const e=(An||(An=function(){try{const t=sessionStorage.getItem(xn);if(t)return t;const e=(0,s.l)();return sessionStorage.setItem(xn,e),e}catch{return}}()??(0,s.l)()),An);t.register(()=>({tab:{id:e}}))}(I);const L=function(t,e){const n=Re();return e.storeContextsAcrossPages&&xe(n,"rum",2),t.register(()=>({context:n.getContext()})),n}(I,n),$=function(t,e,n){const r=Ne();return e.storeContextsAcrossPages&&xe(r,"rum",1),t.register(({eventType:t,startTime:o})=>{const i=r.getContext(),s=n.findTrackedSession(o);return s?.anonymousId&&!i.anonymous_id&&e.trackAnonymousUser&&(i.anonymous_id=s.anonymousId),(0,Nt.RI)(i)?Oe.$O:{type:t,usr:i}}),r}(I,n,c),U=function(t,e){const n=Me();return e.storeContextsAcrossPages&&xe(n,"rum",4),t.register(()=>{const t=n.getContext();return(0,Nt.RI)(t)||!t.id?Oe.$O:{account:t}}),n}(I,n),z=function(t,e,n,o,i){const{unsubscribe:a}=t.subscribe(0,e=>{t.notify(12,Do(e))}),c=m.l;let u;i.trackUserInteractions&&(u=No(t,n,o,i));const l=function(t,e){const n=lo(t);return{addAction(t){e({id:(0,s.l)(),frustrationTypes:[],...t})},startAction(e,o={},i=(0,r.M8)()){const s=o.actionKey??e,a=n.start(s,i,{name:e,...o},{isChildEvent:Oo});t.notify(15,a)},stopAction(t,o={},i=(0,r.M8)()){const s=o.actionKey??t,a=n.stop(s,i,o);if(!a)return;const c=[];a.counts&&a.counts.errorCount>0&&c.push(pt);const u={...a,type:a.type||ft,frustrationTypes:c};e(u)},findActionId:n.findId,stop:n.stopAll}}(t,e=>{t.notify(12,Do(e))}),d={findActionId(t){const e=l.findActionId(t),n=u?.findActionId(t)??[];return e.concat(n)}};return e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{if(e!==at.ERROR&&e!==at.RESOURCE&&e!==at.LONG_TASK)return Oe.$O;const n=e===at.LONG_TASK?(0,r.Gw)(t,1):t,o=d.findActionId(n);return o.length?{type:e,action:{id:o}}:Oe.$O}),e.assembleTelemetry.register(({startTime:t})=>({action:{id:d.findActionId(t)}})),{addAction:l.addAction,startAction:l.startAction,stopAction:l.stopAction,actionContexts:d,stop(){a(),c(),l.stop(),u?.stop()}}}(t,e,C,x,n);S.push(z.stop);const q=function(t){return{addEvent(e,n,o,i){Qi.includes(n.type)&&t.notify(12,{startClocks:(0,r.FR)(e),rawRumEvent:n,domainContext:o,duration:i})}}}(t),B=function(t){let e;const n=requestAnimationFrame((0,f.dm)(()=>{e=yi()})),r=gi().subscribe(t=>{e=t}).unsubscribe;return t.register(({eventType:t})=>({type:t,display:e?{viewport:e}:void 0})),{stop(){r(),n&&cancelAnimationFrame(n)}}}(I);S.push(B.stop);const F=function(t,e=function(t){const e=rn()?(t,e)=>(0,_.q2)(l.J.cookieStore,"change",n=>{const r=n.changed.find(e=>e.name===t)||n.deleted.find(e=>e.name===t);r&&e(r.value)}).stop:$i;return new a.cP(n=>e(t,t=>n.notify(t)))}(Ui)){let n=jt(Ui)||function(){const t=window.Cypress;if(t)try{return t.env("traceId")}catch{return void R.V.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.")}}();const r=e.subscribe(t=>{n=t});return t.register(({eventType:t})=>"string"!=typeof n?Oe.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop(){r.unsubscribe()}}}(I);S.push(F.stop),function(t){t.register(({eventType:t})=>kn()?{type:t,session:{type:"synthetics"},synthetics:{...kn(),injected:Sn()}}:Oe.$O)}(I),function(t,e,n,r,o){const s={[at.ERROR]:ji(at.ERROR,r,o),[at.ACTION]:ji(at.ACTION,r,o),[at.VITAL]:ji(at.VITAL,r,o)};e.subscribe(12,({startClocks:r,duration:o,rawRumEvent:a,domainContext:c})=>{const u={eventType:a.type,rawRumEvent:a,domainContext:c,startTime:r.relative,duration:o},l=n.assembleEventDefaults.trigger(u);if(l===Oe.ug)return;const d=n.assembleEvent.trigger(u);if(d===Oe.ug)return;const f=(0,i.kg)(l,a,d,{ddtags:(0,qi.m5)(t).join(",")});(function(t,e,n,r){if(e){const r=Bi(t,Hi[t.type],t=>e(t,n));if(!1===r){const e=t.type===at.VIEW?"view":t.type===at.VITAL&&t.vital?.type===ht.WEBSOCKET?"WebSocket vital":void 0;if(!e)return!1;R.V.warn(`Can't dismiss ${e} events using beforeSend!`)}}const o=r[t.type]?.isLimitReached();return!o})(f,t.beforeSend,c,s)&&((0,Nt.RI)(f.context)&&delete f.context,e.notify(13,f))})}(n,t,e,w);const{addTiming:W,setLoadingTime:H,startView:J,setViewName:K,setViewContext:Q,setViewContextProperty:Z,getViewContext:Y,stop:X}=function(t,e,n,i,c,u,l,d,p){return t.subscribe(4,e=>t.notify(12,function(t,e,n){const o=n.getReplayStats(t.id),i=t.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,s={_dd:{document_version:t.documentVersion,replay_stats:o,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually,remote_configuration_id:e.remoteConfigurationId}},date:t.startClocks.timeStamp,type:at.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,r.Zj)(t.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:t.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,r.Zj)(t.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,r.Zj)(t.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,r.Zj)(t.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:t.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,r.Zj)(t.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:t.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.loadEvent),loading_time:pr((0,r.Zj)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:bi(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,r.Zj)(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,r.Zj)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:Xo()}};return(0,Nt.RI)(t.customTimings)||(s.view.custom_timings=(0,Nt.LG)(t.customTimings,r.Zj)),{rawRumEvent:s,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}(e,n,l))),e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{const n=d.findView(t);return n?{type:e,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:Oe.ug}),e.assembleTelemetry.register(({startTime:t})=>({view:{id:d.findView(t)?.id}})),function(t,e,n,i,c,u,l){const d=new Set;let p,h,g=y(ut,(0,r.Oc)(),l);function y(c,u,l){const p=function(t,e,n,i,c,u=(0,r.M8)(),l){const d=(0,s.l)(),p=new a.cP,h={};let g,y=0;const v=(0,Nt.yG)((0,o.B)(window.location)),b=Ie();let w=!0,S=l?.name;const k=l?.service||i.service,C=l?.version||i.version,E=l?.context,x=l?.handlingStack;E&&b.setContext(E);const A={id:d,name:S,startClocks:u,service:k,version:C,context:E,url:l?.url};t.notify(1,A),t.notify(2,A);const{throttled:T,cancel:I}=(0,Le.n)(H,3e3,{leading:!1}),{setLoadEvent:O,setViewEnd:N,stop:M,stopINPTracking:P,getCommonViewMetrics:D,setLoadingTime:V}=function(t,e,n,o,i,s,c){const u={};let l=!1,d=!1;const{stop:p,setLoadEvent:h}=function(t,e,n,o,s,a){let c=s===ut,d=!0;const f=[],p=ei(a);function m(){if(!d&&!c&&f.length>0){const e=Math.max(...f);e<p.timeStamp-a.relative&&(t=e,l||(u.loadingTime=t,i()))}var t}const{stop:h}=Ar(t,e,n,o,t=>{d&&(d=!1,t.hadActivity&&f.push((0,r.vk)(a.timeStamp,t.end)),m())});return{stop(){h(),p.stop()},setLoadEvent(t){c&&(c=!1,f.push(t),m())}}}(t,e,n,o,s,c),{stop:g}=function(t,e,n=function(t=1e3){return new a.cP(e=>{const n=(0,Le.n)(function(){e.notify(function(){const t=mi(),{height:e}=yi();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,f.dm)(n.throttled));r&&o.observe(r);const i=(0,_.q2)(window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),o.disconnect(),i.stop()}})}()){let o=0,i=0,s=0;const c=n.subscribe(({scrollDepth:n,scrollTop:a,scrollHeight:c})=>{let u=!1;if(n>o&&(o=n,u=!0),c>i){i=c;const e=(0,r.$S)();s=(0,r.vk)(t.relative,e),u=!0}u&&e({maxDepth:Math.min(o,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:s})});return{stop(){return c.unsubscribe()}}}(c,t=>{u.scroll=t}),{stop:y}=function(t,e,n){if(!Er(Sr.LAYOUT_SHIFT)||!("WeakRef"in window))return{stop:m.l};let o,i=0;n({value:0});const s=function(){let t,e,n=0,r=0;return{update(o){let i;return void 0===t||o.startTime-e>=1e3||o.startTime-t>=5e3?(t=e=o.startTime,r=n=o.value,i=!0):(n+=o.value,e=o.startTime,i=o.value>r,i&&(r=o.value)),{cumulatedValue:n,isMaxValue:i}}}}(),a=kr({type:Sr.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{for(const c of a){if(c.hadRecentInput||c.startTime<e)continue;const{cumulatedValue:a,isMaxValue:u}=s.update(c);if(u){const t=ii(c.sources);o={target:t?.node?new WeakRef(t.node):void 0,time:(0,r.vk)(e,c.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(a>i){i=a;const e=o?.target?.deref();n({value:kt(i,4),targetSelector:e&&Vr(e,t.actionNameAttribute),time:o?.time,previousRect:o?.previousRect?si(o.previousRect):void 0,currentRect:o?.currentRect?si(o.currentRect):void 0,devicePixelRatio:o?.devicePixelRatio})}}});return{stop(){a.unsubscribe()}}}(o,c.relative,t=>{u.cumulativeLayoutShift=t,i()}),{stop:v,getInteractionToNextPaint:b,setViewEnd:w}=function(t,e,n){if(!(Er(Sr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint(){},setViewEnd:m.l,stop:m.l};let o,i=1/0;const{getViewInteractionCount:s,stopViewInteractionCount:a}=function(t){"interactionCount"in performance||ai||(ai=new window.PerformanceObserver((0,f.dm)(t=>{t.getEntries().forEach(t=>{const e=t;e.interactionId&&(ui=Math.min(ui,e.interactionId),li=Math.max(li,e.interactionId),ci=(li-ui)/7+1)})})),ai.observe({type:"event",buffered:!0,durationThreshold:0}));const e=t===ut?0:di();let n={stopped:!1};function r(){return di()-e}return{getViewInteractionCount(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount(){n={stopped:!0,interactionCount:r()}}}}(n),c=function(t){const e=[];function n(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){const r=e.findIndex(e=>t.interactionId===e.interactionId),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction(){const n=Math.min(e.length-1,Math.floor(t()/50));return e[n]},isTracked:t=>e.some(e=>e.interactionId===t)}}(s),u=function(t){const e=new Map;function n(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;const r=t.startTime+t.duration,o=e.get(t.interactionId);if(o)n(o,t);else{for(const[,o]of e.entries())if(Math.abs(r-o.referenceRenderTime)<=8)return n(o,t),void e.set(t.interactionId,o);e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:r})}},pruneUntracked(){for(const[n]of e)t.isTracked(n)||e.delete(n)},computeSubParts(t,n){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;const o=e.get(t.interactionId);if(!o)return;const i=Math.max(o.startTime+n,o.processingStart),s=Math.min(o.processingEnd,i);return{inputDelay:(0,r.vk)(o.startTime,o.processingStart),processingDuration:(0,r.vk)(o.processingStart,s),presentationDelay:(0,r.vk)(s,i)}},stop(){e.clear()}}}(c),l=kr({type:Sr.FIRST_INPUT,buffered:!0}).subscribe(p),d=kr({type:Sr.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);function p(n){for(const t of n)t.interactionId&&t.startTime>=e&&t.startTime<=i&&(c.process(t),u.process(t));u.pruneUntracked();const s=c.estimateP98Interaction();s&&function(n){const i=(0,r.vk)(e,n.startTime);if(n.duration!==o?.duration||i!==o.startTime){let e=function(t){const e=Io.get(t);return Io.delete(t),e}(n.startTime);!e&&n.target&&hr(n.target)&&(e=Vr(n.target,t.actionNameAttribute)),o={duration:n.duration,startTime:i,targetSelector:e}}o.subParts=u.computeSubParts(n,fi(o.duration))}(s)}return{getInteractionToNextPaint(){return o?{value:fi(o.duration),targetSelector:o.targetSelector,time:o.startTime,subParts:o.subParts}:s()?{value:0}:void 0},setViewEnd(t){i=t,a()},stop(){d.unsubscribe(),l.unsubscribe(),u.stop()}}}(o,c.relative,s);return{stop(){p(),y(),g()},stopINPTracking:v,setLoadEvent:h,setViewEnd(t){d=!0,w(t)},getCommonViewMetrics:()=>(u.interactionToNextPaint=b(),u),setLoadingTime(t){if(d)return;const e=(0,r.vk)(c.timeStamp,t??(0,r.nx)());l||p(),l=!0,u.loadingTime=e,i()}}}(t,e,n,i,W,c,u);let L=c===ut?{...ni(i,u,O,W),setViewEnd:m.l}:{stop:m.l,initialViewMetrics:{},setViewEnd:m.l};c===lt&&(0,gt.sr)(gt.R9.SOFT_NAVIGATION)&&Er(Sr.SOFT_NAVIGATION)&&(L=function(t,e){const n={};let r,o=!1,i=0;const s=[],a=kr({type:Sr.INTERACTION_CONTENTFUL_PAINT,buffered:!0}).subscribe(t=>{r||s.push(...t),u(t)}),c=kr({type:Sr.SOFT_NAVIGATION,buffered:!1}).subscribe(t=>{if(r)return;r=t[0],u(s),s.length=0;const e=r.getLargestInteractionContentfulPaint();e&&u([e])});function u(o){if(r)for(const s of o){if(s.interactionId!==r.interactionId||s.largestContentfulPaint.size<=i)continue;i=s.largestContentfulPaint.size;const o=s.largestContentfulPaint,a=o.url||void 0,c={value:o.startTime-r.startTime,targetSelector:o.element?Vr(o.element,t.actionNameAttribute):void 0,resourceUrl:a,subParts:ti(a,o.startTime,r.startTime)};n.largestContentfulPaint=c,e()}}return{initialViewMetrics:n,setViewEnd(){o=!0,c.unsubscribe(),r||a.unsubscribe()},stop(){o||c.unsubscribe(),a.unsubscribe()}}}(i,W));const{stop:$,initialViewMetrics:U,setViewEnd:z}=L;c===dt&&function(t,e,n){var o,i;o=t.relative,i=t=>{e.firstContentfulPaint=t,e.largestContentfulPaint={value:t},n()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{i((0,r.vk)(o,(0,r.$S)()))})})}(u,U,W);const{stop:j,eventCounts:q}=function(t,e,n){const{stop:r,eventCounts:o}=uo({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:n});return{stop:r,eventCounts:o}}(t,d,W),B=(0,$e.yb)(H,3e5),F=t.subscribe(11,t=>{t===En.y5.UNLOADING&&H()});function G(){t.notify(3,{id:d,name:S,context:b.getContext(),startClocks:u,sessionIsActive:w})}function W(){G(),T()}function H(){I(),G(),y+=1;const e=void 0===g?(0,r.nx)():g.timeStamp;t.notify(4,{customTimings:h,documentVersion:y,id:d,name:S,service:k,version:C,context:b.getContext(),loadingType:c,location:v,handlingStack:x,startClocks:u,commonViewMetrics:D(),initialViewMetrics:U,duration:(0,r.vk)(u.timeStamp,e),isActive:void 0===g,sessionIsActive:w,eventCounts:q})}return H(),b.changeObservable.subscribe(W),{get name(){return S},service:k,version:C,contextManager:b,stopObservable:p,end(e={}){g||(g=e.endClocks??(0,r.M8)(),w=e.sessionIsActive??!0,t.notify(5,{endClocks:g}),t.notify(6,{endClocks:g}),(0,$e.vG)(B),N(g.relative),z(),M(),F.unsubscribe(),H(),(0,$e.wg)(()=>{this.stop()},3e5))},stop(){$(),j(),P(),p.notify()},addTiming(t,e){if(g)return;const n=(0,r.A3)(e)?e:(0,r.vk)(u.timeStamp,e);h[function(t){const e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&R.V.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}(t)]=n,W()},setLoadingTime:V,setViewName(t){S=t,H()}}}(t,e,n,i,c,u,l);return d.add(p),p.stopObservable.subscribe(()=>{d.delete(p)}),p}return t.subscribe(10,()=>{g=y("session_renewal",void 0,{name:g.name,service:g.service,version:g.version,context:g.contextManager.getContext()})}),t.subscribe(9,({endClocks:t})=>{g.end({sessionIsActive:!1,endClocks:t})}),u&&(h=function(t){return t.subscribe(({oldLocation:t,newLocation:e})=>{var n,r;r=e,((n=t).pathname!==r.pathname||!function(t){const e=t.substring(1);return""!==e&&!!document.getElementById(e)}(r.hash)&&vi(r.hash)!==vi(n.hash))&&(g.end(),g=y(lt))})}(c),p=function(){const{stop:t}=(0,_.q2)(window,"pageshow",t=>{t.persisted&&(t=>{g.end();const e=(0,r.FR)(t.timeStamp);g=y(dt,e,void 0)})(t)},{capture:!0});return t}()),{addTiming(t,e=(0,r.nx)()){g.addTiming(t,e)},setLoadingTime(t){return g.setLoadingTime(t)},startView(t,e){g.end({endClocks:e}),g=y(lt,e,t)},setViewContext(t){g.contextManager.setContext(t)},setViewContextProperty(t,e){g.contextManager.setContextProperty(t,e)},setViewName(t){g.setViewName(t)},getViewContext(){return g.contextManager.getContext()},stop(){h&&h.unsubscribe(),p&&p(),g.end(),d.forEach(t=>t.stop())}}}(t,i,c,n,u,!n.trackViewsManually,p)}(t,e,n,C,x,E,h,M,g);(function(t){t.register(({domainContext:t,rawRumEvent:e})=>{const n=function(t,e){if("long_task"===e.type&&"long-animation-frame"===e.long_task.entry_type)return e.long_task.scripts[0]?.source_url;let n;"handlingStack"in t&&(n=t.handlingStack),"error"===e.type&&e.error.stack&&(n=e.error.stack);const r=(0,A.T)({stack:n});return r.stack[0]?.url}(t,e);if(!n)return Oe.$O;const r=(0,V.yN)(n);return r?{type:e.type,service:r.service,version:r.version}:Oe.$O})})(I),S.push(X);const tt=function(t,e){const n=(0,o.B)(zo)(),i=function(t){const e=new Set,n=t.subscribe(8,t=>{e.add(t),e.size>1e3&&e.delete(e.values().next().value)});return{getMatchingRequest(t){let n,r=1/0;for(const o of e){const e=t.startTime-o.startClocks.relative;0<=e&&e<r&&o.url===t.name&&(r=Math.abs(e),n=o)}return n&&e.delete(n),n},stop(){n.unsubscribe()}}}(t),s=kr({type:Sr.RESOURCE,buffered:!0}).subscribe(n=>{for(const r of n)Ln(r)?(0,$e.wg)(()=>{const n=Ho(r,i.getMatchingRequest(r),e);n&&t.notify(12,n)},50):c(()=>Ho(r,void 0,e))}),{stop:a}=(0,jo.H)("interactive",()=>{c(()=>Ho(qo(),void 0,e))});function c(e){n.push(()=>{const n=e();n&&t.notify(12,n)})}const u=lo(t),l=function(t,e){return{startResource(t,n={},o=(0,r.M8)()){const i=n.resourceKey??t;e.start(i,o,{url:t,...n})},stopResource(n,o={},i=(0,r.M8)()){const s=o.resourceKey??n,a=e.stop(s,i,{context:o.context,type:o.type});if(!a)return;const c=(0,r.vk)(a.startClocks.relative,i.relative),u={date:a.startClocks.timeStamp,type:at.RESOURCE,resource:{id:a.id,type:a.type||Nn,url:Gn(a.url),duration:(0,r.Zj)(c),method:a.method,status_code:o.statusCode,size:o.size},_dd:{},context:a.context};t.notify(12,{rawRumEvent:u,startClocks:a.startClocks,duration:c,domainContext:{isManual:!0}})}}}(t,u);return{startResource:l.startResource,stopResource:l.stopResource,stop(){a(),n.stop(),s.unsubscribe(),u.stopAll()}}}(t,n);S.push(tt.stop);const{stop:et}=function(t,e){const n=kr({type:Er(Sr.LONG_ANIMATION_FRAME)?Sr.LONG_ANIMATION_FRAME:Sr.LONG_TASK,buffered:!0}).subscribe(n=>{for(const o of n){if(!e.trackLongTasks)break;const n=(0,r.FR)(o.startTime),i=zi(o,n);t.notify(12,{rawRumEvent:i,startClocks:n,duration:o.duration,domainContext:{performanceEntry:o}})}});return{stop(){return n.unsubscribe()}}}(t,n);S.push(et);const{addError:nt}=function(t,e){const n=new a.cP;return e.subscribe(({data:t,type:e})=>{0===e?n.notify(t):3===e&&t.api===u.bP.error&&n.notify(t.error)}),function(t){(function(t){const e=[];t.includes(Vo)&&e.push(new a.cP(t=>{if(!(0,_.BX)(document,"securitypolicyviolation"))return;const{stop:e}=(0,_.q2)(document,"securitypolicyviolation",e=>{t.notify(function(t){const e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return Lo({type:t.effectiveDirective,message:`${Vo}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:$o(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${Dt(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber),debugIds:t.sourceFile?(0,V.Jv)([t.sourceFile]):void 0})}(e))});return e}));const n=t.filter(t=>t!==Vo);return n.length&&e.push(function(t){return new a.cP(e=>{if(!window.ReportingObserver)return;const n=(0,f.dm)((t,n)=>t.forEach(t=>e.notify(function(t){const{type:e,body:n}=t;return Lo({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:$o(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?(0,V.Jv)([n.sourceFile]):void 0})}(t)))),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),()=>{r.disconnect()}})}(n)),(0,a.Fx)(...e)})([Vo,"intervention"]).subscribe(e=>t.notify(e))}(n),n.subscribe(e=>t.notify(14,{error:e})),function(t){return t.subscribe(14,({error:e})=>{t.notify(12,function(t){const e={date:t.startClocks.timeStamp,error:{id:(0,s.l)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},_dd:{debug_ids:t.debugIds},type:at.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:n}}(e))}),{addError({error:e,handlingStack:n,componentStack:r,startClocks:o,context:s}){const a=j({originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:"Provided",source:G.g.CUSTOM,handling:"handled"});a.context=(0,i.kg)(a.context,s),t.notify(14,{error:a})}}}(t)}(t,y);!function(t,e,n,o,i,s){const a=function(t,e,n,r){return{clearTracingIfNeeded:Kn,traceFetch:o=>Qn(t,o,e,n,r,t=>{if(o.input instanceof Request&&!o.init?.headers)o.input=new Request(o.input),Object.keys(t).forEach(e=>{o.input.headers.append(e,t[e])});else{o.init=(0,Nt.yG)(o.init);const e=[];o.init.headers instanceof Headers?o.init.headers.forEach((t,n)=>{e.push([n,t])}):Array.isArray(o.init.headers)?o.init.headers.forEach(t=>{e.push(t)}):o.init.headers&&Object.keys(o.init.headers).forEach(t=>{e.push([t,o.init.headers[t]])}),o.init.headers=e.concat((0,je.WP)(t))}}),traceXhr:(o,i)=>Qn(t,o,e,n,r,t=>{try{Object.keys(t).forEach(e=>{i.setRequestHeader(e,t[e])})}catch{}})}}(e,n,o,i);!function(t,e,n){const r=[];r.push(k().subscribe(t=>{"start"===t.state&&Bn(t.url)&&(e.traceXhr(t,t.xhr),tr(t))})),r.push(n.subscribe(({data:n,type:r})=>{if(2!==r)return;const o=n;if(Bn(o.url))switch(o.state){case"start":tr(o),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"complete":e.clearTracingIfNeeded(o),t.notify(8,{...o,type:"xhr",isAbortedOnStart:!1})}}))}(t,a,s),function(t,e,n,o){const i=[];i.push(b({responseBodyAction(t){return Zn(t.url,e)?.trackResponseErrors?1:0}}).subscribe(t=>{"start"===t.state&&Bn(t.url)&&(n.traceFetch(t),tr(t))})),i.push(o.subscribe(({data:e,type:o})=>{if(1!==o)return;const i=e;if(Bn(i.url))switch(i.state){case"start":tr(i),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":n.clearTracingIfNeeded(i),t.notify(8,{...i,duration:(0,r.vk)(i.startClocks.timeStamp,(0,r.nx)()),type:Mn,requestBody:i.init?.body})}}))}(t,e,a,s)}(t,n,c,$,U,y);const rt=function(t,e){const n=lo(t);function o(n){(function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.duration)})(n)&&t.notify(12,Li(n))}return{addOperationStepVital(e,n,o,i){const{operationKey:s,context:a,description:c,handlingStack:u}=o||{},l={name:e,type:ht.OPERATION_STEP,operationKey:s,failureReason:i,stepType:n,startClocks:(0,r.M8)(),context:O(a),description:c,handlingStack:u};t.notify(12,Li(l))},addDurationVital:o,startDurationVital(e,o={},i=(0,r.M8)()){const{id:s}=n.start(o.vitalKey??e,i,{name:e,...o});t.notify(16,{id:s,name:e,startClocks:i,...o})},stopDurationVital(t,e={},i=(0,r.M8)()){const s=n.stop(e.vitalKey??t,i,e);s&&o({type:ht.DURATION,...s})}}}(t,N),ot=function(t,e){if(!function(t){return t.trackResources&&(t.betaTrackWebSockets||(0,gt.sr)(gt.R9.TRACK_WEBSOCKETS))}(e))return{stop:m.l};const n=function(t,e){const n=new Map;let o;function a(e,n){const r=n.getState();t.notify(12,{rawRumEvent:nr(r),startClocks:rr(r),domainContext:{webSocket:e}})}function c(){const t=(0,r.M8)();n.forEach((e,n)=>{e.isOpen()&&(e.recordReport(t),a(n,e))})}function u(){(0,$e.vG)(o),o=void 0}const l=e.subscribe(t=>{(function(t){switch(t.state){case"connecting":{const e=function({url:t,protocols:e,startClocks:n}){const r=(0,s.l)(),o=n,a=function(t){const e=(0,d.c$)(t);return e.search="",e.href}(t),c={inbound:{messageCount:0,messageSizeTotal:0,messageSizeMax:0,longestSilence:0},outbound:{messageCount:0,messageSizeTotal:0,messageSizeMax:0,longestSilence:0},bufferedAmountMax:0};let u,l,f,p={id:r,connectingClocks:o,phase:"connecting",url:a,requestedProtocols:cr(e)},m=0;function h(){return m+=1,m}function g(t){return{inbound:{...c.inbound,longestSilence:lr(u,t,c.inbound)},outbound:{...c.outbound,longestSilence:lr(l,t,c.outbound)},bufferedAmountMax:c.bufferedAmountMax}}function y(t,e,n,i){p={id:r,connectingClocks:o,phase:"closed",url:a,endClocks:t,trackingEndReason:e,closeEvent:i,snapshotVersion:h(),snapshot:f?g(t.relative):void 0,bufferedAmountAtClose:n,silenceBeforeClose:{inbound:dr(u,t.relative),outbound:dr(l,t.relative)}}}return{getState(){return(0,i.Go)(p)},isOpen(){return"open"===p.phase},recordOpen(t){f=t.openClocks,p={id:r,connectingClocks:o,phase:"open",openClocks:f,reportClocks:{...f},selectedProtocol:t.protocol||void 0,selectedExtensions:t.extensions||void 0,snapshotVersion:h(),snapshot:g(f.relative)}},recordReport(t){"open"===p.phase&&(p={...p,reportClocks:t,snapshotVersion:h(),snapshot:g(t.relative)})},recordInboundMessage({size:t,at:e}){ur(c.inbound,u,t,e.relative,f),u=e.relative},recordOutboundMessage({size:t,bufferedAmountPreSend:e,at:n}){c.bufferedAmountMax=Math.max(c.bufferedAmountMax,e+t),ur(c.outbound,l,t,n.relative,f),l=n.relative},recordClosing({at:t}){p={id:r,connectingClocks:o,phase:"closing",closingClocks:t}},recordClose({at:t,code:e,reason:n,wasClean:r,bufferedAmountAtClose:o}){y(t,"close_event",o,{code:e,reason:n,wasClean:r})},recordTrackingEnd(t,e,n){y(t,e,n)}}}(t);return n.set(t.instance,e),void a(t.instance,e)}case"open":{const e=n.get(t.instance);if(!e)return;return e.recordOpen(t),void a(t.instance,e)}case"message-in":return void n.get(t.instance)?.recordInboundMessage(t);case"message-out":return void n.get(t.instance)?.recordOutboundMessage(t);case"closing":{const e=n.get(t.instance);if(!e)return;return e.recordClosing(t),void a(t.instance,e)}case"closed":{const e=n.get(t.instance);if(!e)return;n.delete(t.instance),e.recordClose(t),a(t.instance,e)}}})(t),"message-in"!==t.state&&"message-out"!==t.state&&(function(){for(const t of n.values())if(t.isOpen())return!0;return!1}()?void 0===o&&(o=(0,$e.yb)(c,6e4)):u())});return{reportOpenConnections:c,flushOpenConnections(t=(0,r.M8)(),e="session_end"){const o=n.size;return n.forEach((n,r)=>{n.recordTrackingEnd(t,e,r.bufferedAmount),a(r,n)}),n.clear(),u(),o},stop(){l.unsubscribe(),n.clear(),u()}}}(t,(Yn||(Yn=new a.cP(t=>{if(!function(t){return"function"==typeof t.WebSocket}(l.J))return;const{stop:e}=(0,p.my)(l.J,"WebSocket",({parameters:e,onPostCall:n})=>{const o=Array.isArray(e[1])?[].concat(e[1]):e[1],i=(0,r.M8)();n(e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:o,startClocks:i}),function(t,e){const{stop:n}=(0,_.q2)(t,"open",()=>{e.notify({state:"open",instance:t,openClocks:(0,r.M8)(),protocol:t.protocol||"",extensions:t.extensions||""}),n()}),{stop:o}=(0,_.q2)(t,"message",n=>{e.notify({state:"message-in",instance:t,size:er(n.data),at:(0,r.M8)()})}),{stop:i}=(0,_.q2)(t,"close",n=>{e.notify({state:"closed",instance:t,code:n.code,reason:n.reason,wasClean:n.wasClean,bufferedAmountAtClose:t.bufferedAmount,at:(0,r.M8)()}),o(),i()})}(e,t)})}),{stop:n}=(0,p.H7)(l.J.WebSocket.prototype,"send",({target:e,parameters:[n],onPostCall:o})=>{if(1!==e.readyState)return;const i=er(n),s=e.bufferedAmount;o(()=>{t.notify({state:"message-out",instance:e,size:i,bufferedAmountPreSend:s,at:(0,r.M8)()})})}),{stop:o}=(0,p.H7)(l.J.WebSocket.prototype,"close",({target:e,onPostCall:n})=>{2!==e.readyState&&3!==e.readyState&&n(()=>{t.notify({state:"closing",instance:e,at:(0,r.M8)()})})});return()=>{e(),n(),o()}})),Yn)),o=t.subscribe(9,({endClocks:t})=>{n.flushOpenConnections(t)}),c=t.subscribe(11,t=>{t===En.y5.PAGE_TERMINATED?n.flushOpenConnections((0,r.M8)(),"page_terminated"):n.reportOpenConnections()});return{stop(){o.unsubscribe(),c.unsubscribe(),n.flushOpenConnections(),n.stop()}}}(t,n);S.push(ot.stop);const it=function(t,e,n,r,o){return{get(i){const s=n.findView(i),a=o.findUrl(i),c=e.findTrackedSession(i);if(c&&s&&a){const e=r.findActionId(i);return{application_id:t,session_id:c.id,user_action:e?{id:e}:void 0,view:{id:s.id,name:s.name,referrer:a.referrer,url:a.url}}}}}}(n.applicationId,c,M,z.actionContexts,P);return{addAction:z.addAction,startAction:z.startAction,stopAction:z.stopAction,startResource:tt.startResource,stopResource:tt.stopResource,addEvent:q.addEvent,addError:nt,addTiming:W,setLoadingTime:H,addFeatureFlagEvaluation:D.addFeatureFlagEvaluation,startView:J,setViewContext:Q,setViewContextProperty:Z,getViewContext:Y,setViewName:K,viewHistory:M,sessionManager:c,stopSession:()=>c.expire(),getInternalContext:it.get,startDurationVital:rt.startDurationVital,stopDurationVital:rt.stopDurationVital,addDurationVital:rt.addDurationVital,addOperationStepVital:rt.addOperationStepVital,globalContext:L,userContext:$,accountContext:U,stop:()=>S.forEach(t=>t())}}(E,w,t,e,n,h,y,S,T);return C.push(I),y.unbuffer(),C.push(()=>c.stop()),{...N,lifeCycle:E,sessionManager:e,stopSession:()=>e.expire(),telemetry:v,stop(){C.forEach(t=>t())},hooks:w}}function Yi(t,e,n={}){const d=function(t){const e=new a.cP;function n(){return t===c.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(n())t();else{const r=e.subscribe(()=>{n()&&(t(),r.unsubscribe())})}},update(n){t=n,e.notify()},isGranted:n,observable:e}}(),p=function(){const t=new a.dX(500,t=>{(0,x.A2)("Early data collection dropped data on unbuffer",{count:t})}),e=[];function n(n,r){e.push(r.subscribe(e=>{t.notify({type:n,data:e})}))}return n(0,(0,o.B)(W)()),n(1,b()),n(2,k()),n(3,function(t){const e=t.map(t=>(H[t]||(H[t]=function(t){return new a.cP(e=>{const n=u.JZ[t];return u.JZ[t]=(...o)=>{n.apply(console,o);const i=(0,D.uC)("console error");(0,f.um)(()=>{e.notify(function(t,e,n){const o=t.map(t=>function(t){return"string"==typeof t?O(t):(0,L.b)(t)?(0,D.NR)((0,A.T)(t)):(0,T.s)(O(t),void 0,2)}(t)).join(" ");if(e===u.bP.error){const i=j({originalError:t.find(L.b),handlingStack:n,startClocks:(0,r.M8)(),source:G.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return i.message=o,{api:e,message:o,handlingStack:n,error:i}}return{api:e,message:o,error:void 0,handlingStack:n}}(o,t,i))})},()=>{u.JZ[t]=n}})}(t)),H[t]));return(0,a.Fx)(...e)}(Object.values(u.bP))),{observable:t,stop(){return e.forEach(t=>t.unsubscribe())}}}();let h=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:n},i,c){const u=new a.dX(500,t=>{(0,x.A2)("preStartRum buffer data lost",{count:t})}),d=Re();Z(d,X,u);const p=Ne();Z(p,Y,u);const h=Me();let g,y,v,b,w,S;Z(h,tt,u);const k={assembleEventDefaults:(0,Oe.ab)(),assembleTelemetry:(0,Oe.ab)(),assembleEvent:(0,Oe.ab)()},C=i.observable.subscribe(T),E={};let A=!1;function T(){if(A||!v||!b||!w||!S)return;let t;if(C.unsubscribe(),b.trackViewsManually){if(!g)return;t=g.options}const e=b.trackViewsManually?g?.callback:void 0,n=c(b,w,y,t,S,k);A=!0,u.subscribe(t=>{t!==e&&t(n)}),u.unbuffer()}function N(t,c,u){const d=(0,wt.d0)();if(d&&(t=function(t){return{...t,service:t.service||t.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:t.defaultPrivacyLevel??(0,wt.Y9)()?.getPrivacyLevel()}}(t)),v=t,b)return void st("DD_RUM",t);const p=function(t,e){const n=function(t,e,n){if(t&&"object"==typeof t)return At(e,t,n);n.error("Configuration must be an object")}(t,ge,R.V);if(!n)return;const r=n.allowedTracingUrls.map(be).filter(Boolean);if(r.length>0&&!n.service)return void R.V.error("Service needs to be configured when tracing is enabled");const o=function(t){const e=t&&he[t.quality];return(0,gt.sr)(gt.R9.SESSION_REPLAY_RECORD_CANVAS)&&t?.enable&&e?{enable:!0,...e}:void 0}(n.sessionReplayCanvasRecording);return{...n,service:n.service||n.applicationId,sessionReplayCanvasRecording:o,betaEnableViewUpdates:ye(n.betaEnableViewUpdates,n.proxy,e),allowedTracingUrls:r,beforeSend:n.beforeSend?(0,St.y)(n.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:Ct(t.traceSampleRate)?t.traceSampleRate/100:void 0,trackResourceHeaders:Se(t),allowedGraphQlUrls:_e(t),remoteConfigurationId:de(t)}}(t,n);p&&function(t,e){const n=(0,o.B)(l.J.location),r=n?n.origin:"",i=t.allowedTrackingOrigins;if(!i)return!function(t,e=""){return!Ve(t)&&Ve(e.split("\n").filter(t=>{const e=t.trim();return e.length&&/^at\s+|@/.test(e)})[1]||"")}(r,e)||(R.V.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);const s=Pe(i,r);return s||R.V.error("SDK initialized on a non-allowed domain."),s}(p,c??"")&&(p.compressIntakeRequests&&!d&&e&&(y=e(p,"Datadog RUM",m.l),!y)||(b=p,i.tryToInit(p.trackingConsent),i.onGrantedOnce(()=>{const{assembleTelemetry:e}=k;if(function(t,e){t.register(()=>e.isGranted()?Oe.$O:Oe.ug)}(e,i),S=(0,o.B)(x.a5)("browser-rum-sdk",p,e,n),l.W)return void R.V.warn("The RUM SDK is not supported in a web or service worker environment.");const c=r=>{w=r,function(t,e,n){t.register(({startTime:t})=>{const r=e.findTrackedSession(t);return r?{session:{id:r.id},anonymous_id:r.anonymousId,...n}:Oe.$O})}(e,w,{application:{id:p.applicationId}}),(0,x.Rr)(function(t,e,n){const r={session_sample_rate:(o=t).sessionSampleRate,telemetry_sample_rate:o.telemetrySampleRate,telemetry_configuration_sample_rate:o.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:o.telemetryUsageSampleRate,use_before_send:!!o.beforeSend,use_partitioned_cross_site_session_cookie:o.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:o.useSecureSessionCookie,use_proxy:!!o.proxy,silent_multiple_init:o.silentMultipleInit,track_session_across_subdomains:o.trackSessionAcrossSubdomains,track_anonymous_user:o.trackAnonymousUser,session_persistence:Array.isArray(o.sessionPersistence)?o.sessionPersistence[0]:o.sessionPersistence,store_contexts_across_pages:!!o.storeContextsAcrossPages,allow_untrusted_events:!!o.allowUntrustedEvents,tracking_consent:o.trackingConsent,use_allowed_tracking_origins:Array.isArray(o.allowedTrackingOrigins),source:o.source,sdk_version:o.sdkVersion,variant:o.variant};var o,i,s;return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,propagate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:(0,Et.EI)(t.allowedTracingUrls),use_allowed_graph_ql_urls:(0,Et.EI)(t.allowedGraphQlUrls),use_track_graph_ql_payload:(s=t.allowedGraphQlUrls,(0,Et.EI)(s)&&s.some(t=>(0,I.OE)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:ke(t.allowedGraphQlUrls),selected_tracing_propagators:ve(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:(0,Et.EI)(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:t.plugins?.map(t=>({name:t.name,...t.getConfigurationTelemetry?.()})),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:de(t),remote_configuration:n&&{config_id:de(t),last_modified:n.lastModified,last_synced:n.lastSynced,first_applied:n.firstApplied,sync_id:n.syncId},profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,track_resource_headers:(i=t.trackResourceHeaders,!0===i?"default_headers":Array.isArray(i)?"custom":void 0),beta_enable_view_updates:ye(t.betaEnableViewUpdates,t.proxy,e),beta_track_web_sockets:t.betaTrackWebSockets,session_replay_canvas_recording:t.sessionReplayCanvasRecording?.enable,session_replay_canvas_recording_quality:t.sessionReplayCanvasRecording?.quality,...r}}(t,n,u)),T()};(0,wt.d0)()?c(function(){let t={id:(0,s.l)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,r.nx)()};return{findSession:()=>t,findTrackedSession:()=>t,renewObservable:new a.cP,expireObservable:new a.cP,expire:m.l,expandOrRenew:m.l,updateSessionState(e){t={...t,...e}}}}()):(0,o.B)(gn)(p,i).then(t=>{t&&c(t)}).catch(f.Dx)})))}const M={init(e,n,o){if(!e)return void R.V.error("Missing configuration");if((0,gt.Aq)(e.enableExperimentalFeatures),(0,_.fK)(e.allowUntrustedEvents),v=e,t&&Sn())return;const i=function(t,e){if(!t)return!0;const n=t.map(t=>t.onInit?.(e));return n.some(Ce.Qg)?Promise.all(n).then(t=>!t.includes(!1)):!n.includes(!1)}(e.plugins,{initConfiguration:e,publicApi:n,registerAssembleEventHook:k.assembleEvent.register});function a(){if(de(e)){const t={user:p,context:d};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)(async function(t,e){let n;const r=ae(),o=await le(t);return o.ok?(r.increment("fetch","success"),n=se(t,o.value,e,r)):(r.increment("fetch","failure"),R.V.error(o.error)),(0,x.Gk)("remote configuration metrics",{metrics:r.get()}),n})(e,t).then(t=>{t&&N(t,o)}).catch(f.Dx);else{const n=function(t,e){const n=function({remoteConfigurationId:t}){const e=function(t){return"dd_rc_"+t}(t);return{read(){let t;try{t=localStorage.getItem(e)}catch{return{status:"error"}}if(null===t)return{status:"miss"};const n=(0,Nt.XU)(t);return void 0===n?(this.remove(),{status:"error"}):function(t){if("object"!=typeof t||null===t)return!1;const e="version"in t&&3===t.version,n="config"in t&&"object"==typeof t.config&&null!==t.config,r="metadata"in t&&(0,I.OE)(t.metadata)&&"string"==typeof t.metadata.syncId&&"number"==typeof t.metadata.lastSynced;return e&&n&&r}(n)?{status:"hit",config:n.config,metadata:n.metadata}:(this.remove(),{status:"error"})},remove(){try{localStorage.removeItem(e)}catch{}},write(t,n){const o=this.read();"hit"===o.status&&JSON.stringify(o.config)===JSON.stringify(t)||oe(e,{version:3,config:t,metadata:{lastModified:n,lastSynced:(0,r.nx)(),syncId:(0,s.l)()}})},stampFirstApplied(t){if(void 0!==t.metadata.firstApplied)return t.metadata;const n={...t.metadata,firstApplied:(0,r.nx)()};return oe(e,{version:3,config:t.config,metadata:n}),n}}}({remoteConfigurationId:de(t)}),o=ae(),i=n.read();return o.increment("cache",re[i.status]),function(t,e,n){le(t).then(t=>{t.ok?(n.increment("fetch","success"),e.write(t.value,t.lastModified)):(n.increment("fetch","failure"),R.V.error(t.error))}).catch(f.Dx).finally(()=>{(0,x.Gk)("remote configuration metrics",{metrics:n.get()})})}(t,n,o),"hit"===i.status?{metadata:n.stampFirstApplied(i),initConfiguration:se(t,i.config,e,o)}:t.remoteConfiguration?.required?void 0:{initConfiguration:t}}(e,t);n&&N(n.initConfiguration,o,n.metadata)}}else N(e,o)}"boolean"==typeof i?i&&a():i.then(t=>{t&&a()}).catch(f.Dx)},get initConfiguration(){return v},getInternalContext:m.l,stopSession:m.l,addTiming(t,e=(0,r.nx)()){u.notify(n=>n.addTiming(t,e))},setLoadingTime(t){u.notify(e=>e.setLoadingTime(t))},startView(t,e=(0,r.M8)()){const n=n=>{n.startView(t,e)};u.notify(n),g||(g={options:t,callback:n},T())},setViewName(t){u.notify(e=>e.setViewName(t))},setViewContext(t){u.notify(e=>e.setViewContext(t))},setViewContextProperty(t,e){u.notify(n=>n.setViewContextProperty(t,e))},getViewContext(){return E},globalContext:d,userContext:p,accountContext:h,addAction(t){u.notify(e=>e.addAction(t))},startAction(t,e){const n=(0,r.M8)();u.notify(r=>r.startAction(t,e,n))},stopAction(t,e){const n=(0,r.M8)();u.notify(r=>r.stopAction(t,e,n))},startResource(t,e){const n=(0,r.M8)();u.notify(r=>r.startResource(t,e,n))},stopResource(t,e){const n=(0,r.M8)();u.notify(r=>r.stopResource(t,e,n))},addError(t){u.notify(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){u.notify(n=>n.addFeatureFlagEvaluation(t,e))},startDurationVital(t,e){const n=(0,r.M8)();u.notify(r=>r.startDurationVital(t,e,n))},stopDurationVital(t,e){const n=(0,r.M8)();u.notify(r=>r.stopDurationVital(t,e,n))},addDurationVital(t){u.notify(e=>e.addDurationVital(t))},addOperationStepVital(t,e,n,r){u.notify(o=>o.addOperationStepVital(O(t),e,O(n),O(r)))}};return M}(n,d,(r,i,s,a,c,u)=>{const l=s&&n.createDeflateEncoder?t=>n.createDeflateEncoder(s,t):J.N,d=(0,o.B)(Zi)(r,i,t,e,a,l,p.observable,c,u,n.sdkName);return t.onRumStart(d.lifeCycle,r,i,d.viewHistory,s,d.telemetry),e.onRumStart(d.lifeCycle,d.hooks,r,i,d.viewHistory,l),h=function(t,e){return{...t,init(t){st("DD_RUM",t)},getInternalContext:e.getInternalContext,stopSession:e.stopSession,getViewContext:e.getViewContext,globalContext:e.globalContext,userContext:e.userContext,accountContext:e.accountContext}}(h,d),function(t,e){for(const n of t??[])n.onRumStart?.(e)}(r.plugins,{addEvent:d.addEvent,addError:d.addError}),d});const g=()=>h,y=(t,e)=>{const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"start"}),h.addOperationStepVital(t,"start",{...e,handlingStack:n})})},v=(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),h.addOperationStepVital(t,"end",e)}),w=(0,f.dm)((t,e,n)=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),h.addOperationStepVital(t,"end",n,e)}),S=(0,K.m)({init(t){const e=Error().stack;(0,f.um)(()=>h.init(t,S,e))},setTrackingConsent:(0,f.dm)(t=>{d.update(t),(0,x.Q6)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,f.dm)(t=>{h.setViewName(Xi(t,"view name")),(0,x.Q6)({feature:"set-view-name"})}),setViewContext:(0,f.dm)(t=>{h.setViewContext(t),(0,x.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,f.dm)((t,e)=>{h.setViewContextProperty(t,e),(0,x.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,f.dm)(()=>((0,x.Q6)({feature:"set-view-context-property"}),h.getViewContext())),getInternalContext:(0,f.dm)(t=>h.getInternalContext(t)),getInitConfiguration:(0,f.dm)(()=>(0,i.Go)(h.initConfiguration)),addAction(t,e){const n=(0,D.uC)("action");(0,f.um)(()=>{h.addAction({name:O(t),context:O(e),startClocks:(0,r.M8)(),type:ft,handlingStack:n}),(0,x.Q6)({feature:"add-action"})})},startAction:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"start-action"}),h.startAction(O(t),{type:O(e?.type),context:O(e?.context),actionKey:e?.actionKey})}),stopAction:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-action"}),h.stopAction(O(t),{type:O(e?.type),context:O(e?.context),actionKey:e?.actionKey})}),startResource:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"start-resource"}),h.startResource(O(t),{type:O(e?.type),method:O(e?.method),context:O(e?.context),resourceKey:e?.resourceKey})}),stopResource:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-resource"}),h.stopResource(O(t),{type:O(e?.type),statusCode:e?.statusCode,size:e?.size,context:O(e?.context),resourceKey:e?.resourceKey})}),addError(t,e){const n=(0,D.uC)("error");(0,f.um)(()=>{h.addError({error:t,handlingStack:n,context:O(e),startClocks:(0,r.M8)()}),(0,x.Q6)({feature:"add-error"})})},addTiming:(0,f.dm)((t,e)=>{h.addTiming(O(t),e)}),setViewLoadingTime:(0,f.dm)(()=>{const t=(0,r.nx)();h.setLoadingTime(t),(0,x.Q6)({feature:"addViewLoadingTime"})}),setGlobalContext:Q(g,X,nt,"set-global-context"),getGlobalContext:Q(g,X,et,"get-global-context"),setGlobalContextProperty:Q(g,X,rt,"set-global-context-property"),removeGlobalContextProperty:Q(g,X,ot,"remove-global-context-property"),clearGlobalContext:Q(g,X,it,"clear-global-context"),setUser:Q(g,Y,nt,"set-user"),getUser:Q(g,Y,et,"get-user"),setUserProperty:Q(g,Y,rt,"set-user-property"),removeUserProperty:Q(g,Y,ot,"remove-user-property"),clearUser:Q(g,Y,it,"clear-user"),setAccount:Q(g,tt,nt,"set-account"),getAccount:Q(g,tt,et,"get-account"),setAccountProperty:Q(g,tt,rt,"set-account-property"),removeAccountProperty:Q(g,tt,ot,"remove-account-property"),clearAccount:Q(g,tt,it,"clear-account"),startView(t){const e=(0,D.uC)("view");(0,f.um)(()=>{const n="object"==typeof t?t:{name:t};h.startView({...n,name:Xi(n.name,"view name"),service:Xi(n.service,"view service"),version:Xi(n.version,"view version"),handlingStack:e}),(0,x.Q6)({feature:"start-view"})})},stopSession:(0,f.dm)(()=>{h.stopSession(),(0,x.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,f.dm)((t,e)=>{h.addFeatureFlagEvaluation(O(t),O(e)),(0,x.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,f.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,f.dm)(e=>{t.start(e),(0,x.Q6)({feature:"start-session-replay-recording",force:e?.force})}),stopSessionReplayRecording:(0,f.dm)(()=>t.stop()),addDurationVital(t,e){const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"add-duration-vital"}),h.addDurationVital({id:(0,s.l)(),name:O(t),type:ht.DURATION,startClocks:(0,r.jR)(e.startTime),duration:e.duration,context:O(e?.context),description:O(e?.description),handlingStack:n})})},startDurationVital(t,e){const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"start-duration-vital"}),h.startDurationVital(O(t),{vitalKey:e?.vitalKey,context:O(e?.context),description:O(e?.description),handlingStack:n})})},stopDurationVital:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-duration-vital"}),h.stopDurationVital(O(t),{vitalKey:e?.vitalKey,context:O(e?.context),description:O(e?.description)})}),startOperation:y,succeedOperation:v,failOperation:w,startFeatureOperation:y,succeedFeatureOperation:v,failFeatureOperation:w,DEFAULT_TRACKED_RESOURCE_HEADERS:pe});return S}function Xi(t,e){if(void 0!==t){if("string"==typeof t)return O(t);R.V.warn(`Invalid ${e} provided (expected a string, got ${typeof t}). Ignoring.`)}}function ts(t,{session:e,viewContext:n,errorType:r}){const o=e?e.id:"no-session-id",i=[];void 0!==r&&i.push("error-type="+r),n&&(i.push("seed="+n.id),i.push("from="+n.startClocks.timeStamp));const s=function(t){const e=t.site,n=t.subdomain||function(t){switch(t.site){case yt.NW:case yt.dV:return"app";case yt.Bb:return"dd";default:return}}(t);return`https://${n?n+".":""}${e}`}(t);return`${s}${"/rum/replay/sessions/"+o}?${i.join("&")}`}var es=n(1776);function ns(t,e,n,o){const i=(0,es.sA)([(0,Ft.ns)(t,"profile")],t=>{e.notify(14,{error:{message:t,source:G.g.AGENT,startClocks:(0,r.M8)()}}),(0,x.A2)("Error reported to customer",{"error.message":t})}),s=n(o);return{async send({event:t,...e}){const n=new FormData,r=(0,T.s)(t);if(!r)throw Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let o=r.length;for(const[t,r]of(0,je.WP)(e)){const e=(0,T.s)(r);if(!e)throw Error("Failed to serialize attachment");const i=await rs(s,e);o+=i.outputBytesCount,n.append(t,new Blob([i.output]),t)}i.send({data:n,bytesCount:o})}}}function rs(t,e){return new Promise(n=>{t.write(e),t.finish(t=>{n(t)})})}},7923(t,e,n){n.d(e,{BJ:()=>I,CB:()=>A,g1:()=>Mt});var r=n(8637),o=n(8333),i=n(979),s=n(9164);function a(t,e){const n=t.tagName,o=t.value;if((0,r.Ie)(t,e)){const e=t.type;if("INPUT"===n&&("button"===e||"submit"===e||"reset"===e))return o;if(!o||"OPTION"===n)return;return r.o}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?o:void 0}const c=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,u=/^[A-Za-z]+:|^\/\//,l=/^["']?data:.*,/i;function d(t){return t.tagName.toLowerCase()}function f(t,e){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${e}' style='background-color:silver'%3E%3C/svg%3E`}function p(t,e){return{role:t,string:e}}function m(t,e,n){return[p(i._o.AttributeName,e),p(v(t,e),n)]}function h(t,e,n){const r=p(i._o.AttributeName,e);return null===n?[r]:[r,p(v(t,e),n)]}const g=new Set(["input","option","select","textarea"]),y=new Set(["action","background","cite","data","formaction","href","longdesc","manifest","ping","poster","src","srcset","xlink:href"]);function v(t,e){switch(e){case"value":return g.has(t)?i._o.FormInput:i._o.AttributeValue;case"style":return i._o.Css;default:return y.has(e)?i._o.Url:i._o.AttributeValue}}function b(t){const e={},n=new Map,r=[];let o=0,s=!1;const a=e=>{const r=t.get(e);if(void 0!==r)return r;s=!0;let i=n.get(e.role);i||(i={role:e.role,strings:new Map,references:0},n.set(e.role,i)),i.references++;const a=i.strings.get(e.string);if(a)return a;const c={literal:e,id:void 0};return i.strings.set(e.string,c),o++,c},c=t=>{for(let e=0,n=t.length;e<n;e++){const n=t[e];"string"==typeof n?t[e]=a(p(i._o.Default,n)):Array.isArray(n)?c(n):S(n)&&(t[e]=a(n))}};return{add(t,n){t in e||(e[t]=[t]),Array.isArray(n)&&(s=!1,c(n),s&&r.push(n)),e[t].push(n)},flushInto(o){const s=(()=>{if(0===n.size)return;const e=[i.JQ.AddRoleAnnotatedStrings];for(const r of Array.from(n.values()).sort(w)){const n=[r.role];for(const e of r.strings.values())e.id=t.getOrInsert(e.literal),n.push(e.literal.string);e.push(n)}return e})();s&&o.push(s);for(const t of r)_(t);[i.JQ.AddNode,i.JQ.RemoveNode,i.JQ.Attribute,i.JQ.Text,i.JQ.InputValue,i.JQ.InputSelection,i.JQ.Size,i.JQ.ScrollPosition,i.JQ.AddStyleSheet,i.JQ.AttachedStyleSheets,i.JQ.MediaPlaybackState,i.JQ.VisualViewport,i.JQ.ImageContent].forEach(t=>{const n=e[t];n&&o.push(n)})},get pendingStringCount(){return o}}}function _(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];Array.isArray(n)?_(n):k(n)&&(t[e]=n.id)}}function w(t,e){return e.references-t.references}function S(t){return"object"==typeof t&&null!==t&&"string"in t}function k(t){return"object"==typeof t&&null!==t&&"literal"in t}function C(t){return function(t,e){let n=t(),r=e;const o=t=>n.get(t);return{clear(){r!==e&&(n=t(),r=e)},delete(t){n.delete(t)},get:o,getOrInsert(t){let e=o(t);return void 0===e&&(e=r++,n.set(t,e)),e},get nextId(){return r},get size(){return r-e}}}(()=>new WeakMap,t)}function E(){return{[i._o.Default]:x(),[i._o.NodeName]:x(),[i._o.AttributeName]:x(),[i._o.AttributeValue]:x(),[i._o.TextContent]:x(),[i._o.FormInput]:x(),[i._o.Css]:x(),[i._o.Url]:x(),[i._o.ResourceId]:x()}}function x(){return Object.create(null)}function A(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function T(t,e,n){t[e].count+=1,t[e].max=Math.max(t[e].max,n),t[e].sum+=n}function I(t,e){for(const n of["cssText","serializationDuration"])t[n].count+=e[n].count,t[n].max=Math.max(t[n].max,e[n].max),t[n].sum+=e[n].sum}function R(t,e,n,r,s,a){const c=function(t){let e=[],n=b(t);const r=()=>{n.flushInto(e),n=b(t)};return{add(o,s){n.add(o,s),t.size+n.pendingStringCount>=Number(1e6)&&(r(),e.push([i.JQ.ClearStrings]),t.clear())},flush(){r();const t=e;return e=[],t}}}(r.stringIds),u={cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}},l={addMetric(t,e){T(u,t,e)},addNode(...t){c.add(i.JQ.AddNode,t)},addStyleSheet(t,e,n){n?c.add(i.JQ.AddStyleSheet,[t,e||[],n]):e?c.add(i.JQ.AddStyleSheet,[t,e]):c.add(i.JQ.AddStyleSheet,[t])},attachStyleSheets(t,e){const n=[t];for(const t of e)n.push(t);c.add(i.JQ.AttachedStyleSheets,n)},removeNode(t){c.add(i.JQ.RemoveNode,t)},setAttributes(t){c.add(i.JQ.Attribute,t)},setInputSelection(t,e){const n=[t];for(const t of e)n.push(t);c.add(i.JQ.InputSelection,n)},setInputValue(t,e){c.add(i.JQ.InputValue,[t,e])},setMediaPlaybackState(t,e){c.add(i.JQ.MediaPlaybackState,[t,e])},setScrollPosition(t,e,n){c.add(i.JQ.ScrollPosition,[t,e,n])},setSize(t,e,n){c.add(i.JQ.Size,[t,e,n])},setText(t,e){c.add(i.JQ.Text,[t,e])},setImageContent(t,e){c.add(i.JQ.ImageContent,[t,e])},kind:t,scope:r},d=(0,o.nx)();a(l),T(u,"serializationDuration",(0,o.vk)(d,(0,o.nx)()));const f=c.flush();f.length>0&&e(0===t||1===t?{data:f,format:i.KN.Change,type:i.ee.FullSnapshot,timestamp:s}:{data:f,type:i.ee.Change,timestamp:s}),n(u)}let O;function N(t,e,n,o){if(e===r.$m.HIDDEN)return null;const i=t.getAttribute(n),s=t.tagName;if((0,r.ap)(s,n,i,e,o)){if("IMG"===s){const e=t;if(e.naturalWidth>0)return f(e.naturalWidth,e.naturalHeight);const{width:n,height:o}=t.getBoundingClientRect();return n>0||o>0?f(n,o):r.eT}return"SOURCE"===s?r.eT:r.o}return i?(0,r.ei)(i,1e6):i}function M(t,e,n,r,o,i){const s=N(e,o,r,i.scope.configuration);null!==s&&t.push(m(n,r,s))}function P(t){if(!t)return null;let e;try{e=t.rules||t.cssRules}catch{}return e?(n=Array.from(e,1===(O??(O=function(t=window){const e=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(e)?0:0===t.navigator.vendor?.indexOf("Apple")||/safari/i.test(e)&&!/chrome|android/i.test(e)?1:2}()))?D:V).join(""),r=t.href,n.replace(c,(t,e,n,o,i,a)=>{const c=n||i||a;if(!r||!c||u.test(c)||l.test(c))return t;const d=e||o||"";return`url(${d}${function(t,e){try{return(0,s.c$)(t,e).href}catch{return t}}(c,r)}${d})`})):null;var n,r}function D(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return V(t)}function V(t){return function(t){return"styleSheet"in t}(t)&&P(t.styleSheet)||t.cssText}function L(t,e,n,o){if("STYLE"===e.parentNode?.nodeName)return;if(n===r.$m.HIDDEN||n===r.$m.IGNORE)return;let s;const c=(0,r.dT)(e);if(s=c?(0,r.jR)(c,n):n,s!==r.$m.HIDDEN){if(s!==r.$m.IGNORE){switch(e.nodeType){case e.CDATA_SECTION_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i._o.NodeName,"#cdata-section"))}(t,e,o);break;case e.DOCUMENT_NODE:!function(t,e,n){const{nodeId:o,insertionPoint:s}=t.advance(e);n.addNode(s,p(i._o.NodeName,"#document")),n.setScrollPosition(o,(0,r.Gn)(),(0,r.zL)()),$(e.adoptedStyleSheets,o,n)}(t,e,o);break;case e.DOCUMENT_FRAGMENT_NODE:!function(t,e,n){const{nodeId:o,insertionPoint:s}=t.advance(e);(0,r.p_)(e)?(n.addNode(s,p(i._o.NodeName,"#shadow-root")),n.scope.shadowRootsController.addShadowRoot(e,n.scope),$(e.adoptedStyleSheets,o,n)):n.addNode(s,p(i._o.NodeName,"#document-fragment"))}(t,e,o);break;case e.DOCUMENT_TYPE_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i._o.NodeName,"#doctype"),p(i._o.AttributeValue,e.name),p(i._o.AttributeValue,e.publicId),p(i._o.Url,e.systemId))}(t,e,o);break;case e.ELEMENT_NODE:!function(t,e,n,o){const{nodeId:s,insertionPoint:c}=t.advance(e),u=function(t,e,n){if(e===r.$m.HIDDEN)return[];const o=[],i=d(t);for(let r=0;r<t.attributes.length;r+=1){const s=t.attributes.item(r).name;"value"!==s&&"selected"!==s&&"checked"!==s&&M(o,t,i,s,e,n)}if(!t.value||"textarea"!==i&&"select"!==i&&"option"!==i&&"input"!==i)t.hasAttribute("value")&&M(o,t,i,"value",e,n);else{const n=a(t,e);void 0!==n&&o.push(m(i,"value",n))}"option"===i?t.selected&&!(0,r.Ie)(t,e)&&o.push(m(i,"selected","")):t.hasAttribute("selected")&&M(o,t,i,"selected",e,n);const s=t;return"input"!==i||"radio"!==s.type&&"checkbox"!==s.type?t.hasAttribute("checked")&&M(o,t,i,"checked",e,n):s.checked&&!(0,r.Ie)(t,e)&&o.push(m(i,"checked","")),o}(e,n,o);o.addNode(c,U(e),...u),(0,r.r0)(e)&&o.scope.canvasManager.markCanvas(e,1);const{_cssText:l,rr_mediaState:f,rr_scrollLeft:h,rr_scrollTop:g}=function(t,e,n){if(e===r.$m.HIDDEN)return{};const o={},i=d(t);if("link"===i){const e=P(t.sheet);e&&(n.addMetric("cssText",e.length),o._cssText=e)}if("style"===i&&t.sheet){const e=P(t.sheet);e&&(n.addMetric("cssText",e.length),o._cssText=e)}if("audio"===i||"video"===i){const e=t;o.rr_mediaState=e.paused?"paused":"played"}let s,a;switch(n.kind){case 0:s=Math.round(t.scrollTop),a=Math.round(t.scrollLeft),(s||a)&&n.scope.elementsScrollPositions.set(t,{scrollTop:s,scrollLeft:a});break;case 1:n.scope.elementsScrollPositions.has(t)&&({scrollTop:s,scrollLeft:a}=n.scope.elementsScrollPositions.get(t))}return a&&(o.rr_scrollLeft=a),s&&(o.rr_scrollTop=s),o}(e,n,o),y=e;if(void 0!==l&&y.sheet){const t=o.scope.styleSheetIds.getOrInsert(y.sheet);o.addStyleSheet(p(i._o.Css,l)),o.attachStyleSheets(s,[t])}"played"===f?o.setMediaPlaybackState(s,i.xQ.Play):"paused"===f&&o.setMediaPlaybackState(s,i.xQ.Pause),void 0===h&&void 0===g||o.setScrollPosition(s,h||0,g||0)}(t,e,s,o);break;case e.TEXT_NODE:!function(t,e,n,o){const{insertionPoint:s}=t.advance(e),a=(0,r.rf)(e,n);o.addNode(s,p(i._o.NodeName,"#text"),p(i._o.TextContent,a))}(t,e,s,o);break;default:return}switch(e.nodeType){case e.CDATA_SECTION_NODE:case e.DOCUMENT_TYPE_NODE:case e.TEXT_NODE:return}t.descend(),(0,r.wI)(e,e=>{L(t,e,s,o)}),t.ascend()}}else!function(t,e,n){if(!(0,r.nS)(e))return;const{nodeId:o,insertionPoint:i}=t.advance(e);n.addNode(i,U(e),m(d(e),r.NT,r.Wd));const{width:s,height:a}=e.getBoundingClientRect();n.setSize(o,s,a)}(t,e,o)}function $(t,e,n){t&&0!==t.length&&n.attachStyleSheets(e,t.map(t=>function(t,e){const n=Array.from(t.cssRules||t.rules,t=>p(i._o.Css,t.cssText)),r=t.media.length>0?Array.from(t.media).map(t=>p(i._o.Css,t)):void 0;return e.addMetric("cssText",n.reduce((t,e)=>t+e.string.length,0)),e.addStyleSheet(n,r,t.disabled),e.scope.styleSheetIds.getOrInsert(t)}(t,n)))}function U(t){const e=t.nodeName;return function(t){return"http://www.w3.org/2000/svg"===t.namespaceURI}(t)?p(i._o.NodeName,"svg>"+e):p(i._o.NodeName,e)}function z(t,e,n){return j(t,e,n)}function j(t,e,n){let r={container:void 0,parentId:t,previousSiblingId:void 0,nextSiblingId:e};return{advance(t){const e=n.getOrInsert(t),o=(t=>r.previousSiblingId===t-1?0:void 0!==r.nextSiblingId?r.nextSiblingId-t:void 0!==r.parentId?t-r.parentId:null)(e);return r.previousSiblingId=e,{nodeId:e,insertionPoint:o}},ascend(){r.container&&(r=r.container)},descend(){void 0!==r.previousSiblingId&&(r={container:r,parentId:r.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function q(t,e){let n=t.nextSibling;for(;n;){const t=e.get(n);if(void 0!==t)return t;n=n.nextSibling}}function B(t,e){e(t),(0,r.wI)(t,t=>B(t,e))}const F=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function G(t){try{const e=(0,s.c$)(t);return e.search="",e.hash="",e.href}catch{return t.split(/[?#]/)[0]}}function W(t,e,n,o,s){const{width:a,height:c}=(0,r.pB)();n({data:{height:c,href:G(window.location.href),width:a},type:i.ee.Meta,timestamp:t}),n({data:{has_focus:document.hasFocus()},type:i.ee.Focus,timestamp:t}),function(t,e,n,r,o,i){i.resetIds(),R(e,r,o,i,t,t=>{L(j(void 0,void 0,i.nodeIds),n,i.configuration.defaultPrivacyLevel,t)})}(t,e,document,n,o,s),window.visualViewport&&n({data:F(window.visualViewport),type:i.ee.VisualViewport,timestamp:t})}var H=n(350),J=n(728),K=n(449),Q=n(3935);function Z(t){return!!t.changedTouches}function Y(t){return!0===t.composed&&(0,r.XS)(t.target)?t.composedPath()[0]:t.target}function X(t,e,n=(0,o.nx)()){return{data:{source:t,...e},type:i.ee.IncrementalSnapshot,timestamp:n}}function tt(t,e){const{throttled:n,cancel:r}=(0,Q.n)(n=>{const r=Y(n),o=e.nodeIds.get(r);if(void 0===o)return;const s=et(n);if(!s)return;const a={id:o,timeOffset:0,x:s.x,y:s.y};t(X(Z(n)?i.Cj.TouchMove:i.Cj.MouseMove,{positions:[a]}))},50,{trailing:!1}),{stop:o}=(0,K.lQ)(document,["mousemove","touchmove"],n,{capture:!0,passive:!0});return{stop(){o(),r()}}}function et(t){let{clientX:e,clientY:n}=Z(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:t,visualViewportY:r}=((t,e)=>{const n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)),r):r})(e,n);e=t,n=r}if(Number.isFinite(e)&&Number.isFinite(n))return{x:e,y:n}}const nt={pointerup:i.GE.MouseUp,mousedown:i.GE.MouseDown,click:i.GE.Click,contextmenu:i.GE.ContextMenu,dblclick:i.GE.DblClick,focus:i.GE.Focus,blur:i.GE.Blur,touchstart:i.GE.TouchStart,touchend:i.GE.TouchEnd};function rt(t,e){return(0,K.lQ)(document,Object.keys(nt),n=>{const o=Y(n),s=e.nodeIds.get(o);if(void 0===s||(0,r.PJ)(o,e.configuration.defaultPrivacyLevel)===r.$m.HIDDEN)return;const a=nt[n.type];let c;if(a!==i.GE.Blur&&a!==i.GE.Focus){const t=et(n);if(!t)return;c={id:s,type:a,x:t.x,y:t.y}}else c={id:s,type:a};t({id:e.eventIds.getOrInsert(n),...X(i.Cj.MouseInteraction,c)})},{capture:!0,passive:!0})}function ot(t,e,n){const{throttled:o,cancel:s}=(0,Q.n)(t=>{const o=Y(t);if(!o)return;const s=n.nodeIds.get(o);if(void 0===s||(0,r.PJ)(o,n.configuration.defaultPrivacyLevel)===r.$m.HIDDEN)return;const a=o===document?{scrollTop:(0,r.zL)(),scrollLeft:(0,r.Gn)()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.elementsScrollPositions.set(o,a),e(X(i.Cj.Scroll,{id:s,x:a.scrollLeft,y:a.scrollTop}))},100),{stop:a}=(0,K.q2)(t,"scroll",o,{capture:!0,passive:!0});return{stop(){a(),s()}}}var it=n(9360);function st(t){const e=(0,r.g1)().subscribe(e=>{t(X(i.Cj.ViewportResize,e))});return{stop(){e.unsubscribe()}}}function at(t){const e=window.visualViewport;if(!e)return{stop:it.l};const{throttled:n,cancel:r}=(0,Q.n)(()=>{t({data:F(e),type:i.ee.VisualViewport,timestamp:(0,o.nx)()})},200,{trailing:!1}),{stop:s}=(0,K.lQ)(e,["resize","scroll"],n,{capture:!0,passive:!0});return{stop(){s(),r()}}}function ct(t,e){return(0,K.lQ)(document,["play","pause"],n=>{const o=Y(n);if(!o)return;const s=e.nodeIds.get(o);void 0!==s&&(0,r.PJ)(o,e.configuration.defaultPrivacyLevel)!==r.$m.HIDDEN&&t(X(i.Cj.MediaInteraction,{id:s,type:"play"===n.type?i.xQ.Play:i.xQ.Pause}))},{capture:!0,passive:!0})}var ut=n(3444);function lt(t,e){function n(t,n){if(!t?.ownerNode)return;const r=e.nodeIds.get(t.ownerNode);void 0!==r&&n(r)}const r=[(0,ut.H7)(CSSStyleSheet.prototype,"insertRule",({target:e,parameters:[r,o]})=>{n(e,e=>t(X(i.Cj.StyleSheetRule,{id:e,adds:[{rule:r,index:o}]})))}),(0,ut.H7)(CSSStyleSheet.prototype,"deleteRule",({target:e,parameters:[r]})=>{n(e,e=>t(X(i.Cj.StyleSheetRule,{id:e,removes:[{index:r}]})))})];function o(e){r.push((0,ut.H7)(e.prototype,"insertRule",({target:e,parameters:[r,o]})=>{n(e.parentStyleSheet,n=>{const s=dt(e);s&&(s.push(o||0),t(X(i.Cj.StyleSheetRule,{id:n,adds:[{rule:r,index:s}]})))})}),(0,ut.H7)(e.prototype,"deleteRule",({target:e,parameters:[r]})=>{n(e.parentStyleSheet,n=>{const o=dt(e);o&&(o.push(r),t(X(i.Cj.StyleSheetRule,{id:n,removes:[{index:o}]})))})}))}return"undefined"!=typeof CSSGroupingRule?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule)),{stop(){r.forEach(t=>t.stop())}}}function dt(t){const e=[];let n=t;for(;n.parentRule;){const t=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(t),n=n.parentRule}if(!n.parentStyleSheet)return;const r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}function ft(t){return(0,K.lQ)(window,["focus","blur"],()=>{t({data:{has_focus:document.hasFocus()},type:i.ee.Focus,timestamp:(0,o.nx)()})})}function pt(t,e,n){const r=t.subscribe(5,()=>{n(),e({timestamp:(0,o.nx)(),type:i.ee.ViewEnd})});return{stop(){r.unsubscribe()}}}const mt={type:1,selection:i.WW.Deselected};function ht(t,e,n,s){const c=s.configuration.defaultPrivacyLevel,u=new WeakMap,l=t.nodeType!==t.DOCUMENT_NODE,d=(l?t.ownerDocument:t).defaultView;if(!d)return{stop:it.l};const{stop:f}=(0,K.lQ)(t,l?["change"]:["input","change"],t=>{const e=Y(t);(e instanceof d.HTMLInputElement||e instanceof d.HTMLTextAreaElement||e instanceof d.HTMLSelectElement)&&h(e)},{capture:!0,passive:!0});let m;if(l)m=it.l;else{const t=[(0,ut.tv)(d.HTMLInputElement.prototype,"value",h),(0,ut.tv)(d.HTMLInputElement.prototype,"checked",h),(0,ut.tv)(d.HTMLSelectElement.prototype,"value",h),(0,ut.tv)(d.HTMLTextAreaElement.prototype,"value",h),(0,ut.tv)(d.HTMLSelectElement.prototype,"selectedIndex",h)];m=()=>{t.forEach(t=>t.stop())}}return{stop(){m(),f()}};function h(t){const l=(0,r.PJ)(t,c);if(l===r.$m.HIDDEN)return;const d=t.type;let f,m=t;if("radio"===d||"checkbox"===d){if((0,r.Ie)(t,l))return;f={type:1,selection:(h=t,h.checked?i.WW.Selected:i.WW.Deselected)}}else if(gt(t)){if((0,r.Ie)(t,l))return;const e=t.options[t.selectedIndex];if(!e)return;m=e,f={type:1,selection:i.WW.Selected}}else{const e=a(t,l);if(void 0===e)return;f={type:0,value:e}}var h;const y=g(m,f),v=[];if("radio"===d&&t.checked&&(b=t).name&&b.ownerDocument.querySelectorAll(`input[type="radio"][name="${CSS.escape(b.name)}"]`).forEach(t=>{t!==b&&(t=>{const e=g(t,mt);void 0!==e&&v.push(e)})(t)}),gt(t))for(let e=0;e<t.options.length;e++){const n=t.options[e];n!==m&&u.delete(n)}var b;void 0===y&&0===v.length||R(2,e,n,s,(0,o.nx)(),t=>{void 0!==y&&(0===f.type?t.setInputValue(y,p(i._o.FormInput,f.value)):t.setInputSelection(f.selection,[y])),v.length>0&&t.setInputSelection(i.WW.Deselected,v)})}function g(t,e){const n=s.nodeIds.get(t);if(void 0===n)return;const r=u.get(t);return r&&(i=e,0===(o=r).type?0===i.type&&o.value===i.value:1===i.type&&o.selection===i.selection)?void 0:(u.set(t,e),n);var o,i}}function gt(t){return"SELECT"===t.tagName}var yt=n(1e3),vt=n(8780),bt=n(7922);function _t(t,e,n,s,c){const u=(0,vt.W)();if(!u)return{stop:it.l,flush:it.l,notifyContentMutated:it.l};const l=function(){let t=it.l,u=[],l=!1;function g(){l||(l=!0,t=(0,bt.BB)(v,{timeout:100}))}function y(){var g;t(),l=!1,g=u,function(t,e,n,o,s,c){R(2,n,s,c,t,t=>function(t,e,n){const o=new Set,s=new Map,c=new Map,u=new Set;for(const e of t)switch(e.type){case"attributes":{const t=e.target;let n=s.get(t);n||(n=new Map,s.set(t,n));const r=e.attributeName;n.has(r)||n.set(r,e.oldValue);break}case"characterData":c.has(e.target)||c.set(e.target,e.oldValue);break;case"childList":for(let t=0;t<e.addedNodes.length;t++)o.add(e.addedNodes[t]);for(let t=0;t<e.removedNodes.length;t++)u.add(e.removedNodes[t])}const l=n.scope.nodeIds.nextId,f=new Map;(function(t,e){const n=e.scope.nodeIds;for(const o of t){const t=n.get(o);void 0!==t&&(B(o,t=>{(0,r.r0)(t)&&e.scope.canvasManager.forgetCanvas(t),(0,r.XS)(t)&&e.scope.shadowRootsController.removeShadowRoot(t.shadowRoot),n.delete(t)}),e.removeNode(t))}})(u,n),function(t,e,n){const o=n.scope.nodeIds;for(const i of t){if(!i.isConnected)continue;if(void 0!==o.get(i))continue;const t=(0,r.$4)(i);if(!t)continue;const s=o.get(t);if(void 0===s)continue;const a=(0,r.PJ)(t,n.scope.configuration.defaultPrivacyLevel,e);L(z(s,q(i,o),o),i,a,n)}}(o,f,n),function(t,e,n,o){const s=o.scope.nodeIds;for(const[a,c]of t){if(a.textContent===c)continue;if(!a.isConnected)continue;const t=s.get(a);if(void 0===t)continue;if(t>=e)continue;const u=(0,r.$4)(a);if(!u)continue;const l=(0,r.PJ)(u,o.scope.configuration.defaultPrivacyLevel,n);if(l===r.$m.HIDDEN||l===r.$m.IGNORE)continue;const d=(0,r.rf)(a,l);o.setText(t,p(i._o.TextContent,d))}}(c,l,f,n),function(t,e,n,o){const i=o.scope.nodeIds;for(const[s,c]of t){if(!s.isConnected)continue;const t=i.get(s);if(void 0===t)continue;if(t>=e)continue;const u=(0,r.PJ)(s,o.scope.configuration.defaultPrivacyLevel,n);if(u===r.$m.HIDDEN||u===r.$m.IGNORE)continue;const l=d(s),f=[t];for(const[t,e]of c){if(s.getAttribute(t)===e)continue;if("value"===t){const e=a(s,u);void 0!==e&&f.push(m(l,t,e));continue}const n=N(s,u,t,o.scope.configuration);f.push(h(l,t,n))}f.length>1&&o.setAttributes(f)}}(s,l,f,n),function(t,e,n){for(const{canvas:o,captureAttempt:s,hash:a,image:c}of n.scope.canvasManager.takeCanvasContentMutations()){if(!s.isCurrent()||!o.isConnected)continue;const u=n.scope.nodeIds.get(o);if(void 0===u){n.scope.canvasManager.forgetCanvas(o);continue}const l=(0,r.PJ)(o,n.scope.configuration.defaultPrivacyLevel,t);if((0,r.Ie)(o,l))n.scope.canvasManager.markCanvas(o,1);else try{e(a,c,()=>{s.isCurrent()&&n.scope.canvasManager.retryCanvas(o)}),n.setImageContent(u,p(i._o.ResourceId,a)),s.setLastChangeHash(a)}catch{n.scope.canvasManager.markCanvas(o,1)}}}(f,e,n)}(e,o,t))}((0,o.nx)(),g.concat(f.takeRecords()),e,n,s,c),u=[]}const{throttled:v,cancel:b}=(0,Q.n)(y,16,{leading:!1});return{addMutations(t){g();for(const e of t)u.push(e)},notifyContentMutated:g,flush:y,stop(){t(),b()}}}(),f=new u((0,yt.dm)(l.addMutations));return f.observe(t,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop(){f.disconnect(),l.stop()},flush(){l.flush()},notifyContentMutated:l.notifyContentMutated}}function wt(t,e){const n=t.width,r=t.height,o=St(t,n,r,e);if(o)return{canvasHeight:r,canvasWidth:n,source:o}}function St(t,e,n,r){const o=Math.min(1,r/Math.max(e,n)),i=Math.max(1,Math.round(e*o)),s=Math.max(1,Math.round(n*o)),a=document.createElement("canvas");a.width=i,a.height=s;const c=a.getContext("2d");if(c)return c.imageSmoothingQuality="low",c.drawImage(t,0,0,i,s),a}const kt=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"],Ct=["clear","drawArrays","drawElements"],Et=["blitFramebuffer","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","drawArraysInstanced","drawElementsInstanced","drawRangeElements"];function xt(t){const e=t.configuration.sessionReplayCanvasRecording;if(!e?.enable||0===e.maxFramesPerSecond)return{stop:it.l};const n=[],o=1e3/e.maxFramesPerSecond,i=new WeakMap;let s=!1;const a=e=>{void 0!==t.nodeIds.get(e)&&t.canvasManager.markCanvas(e,1)};"undefined"!=typeof CanvasRenderingContext2D&&kt.forEach(t=>{n.push((0,ut.H7)(CanvasRenderingContext2D.prototype,t,({target:t,onPostCall:e})=>{e(()=>a(t.canvas))}))});const c=(c,u)=>{u.forEach(u=>{n.push((0,ut.H7)(c,u,({target:n,onPostCall:c})=>{c(()=>(n=>{const c=n.canvas;if(void 0===t.nodeIds.get(c))return;const u=c;let l=i.get(u);if(l||(l={nextSnapshotTime:-1/0,preservesDrawingBuffer:!0===n.getContextAttributes()?.preserveDrawingBuffer,snapshotScheduled:!1},i.set(u,l)),l.preservesDrawingBuffer)return void a(c);const d=performance.now();l.snapshotScheduled||d<l.nextSnapshotTime||(l.snapshotScheduled=!0,l.nextSnapshotTime=d+o,Promise.resolve().then(()=>{if(l.snapshotScheduled=!1,s)return;const n=(0,r.PJ)(u,t.configuration.defaultPrivacyLevel);if(!(0,r.Ie)(u,n))try{const n=wt(u,e.maxImageDimension);n&&(t.canvasManager.setCanvasSnapshot(u,n),a(u))}catch(e){t.canvasManager.markCanvas(u,e instanceof DOMException&&"SecurityError"===e.name?2:1)}}))})(n))}))})};return"undefined"!=typeof WebGLRenderingContext&&c(WebGLRenderingContext.prototype,Ct),"undefined"!=typeof WebGL2RenderingContext&&(c(WebGL2RenderingContext.prototype,Ct),c(WebGL2RenderingContext.prototype,Et)),{stop(){s=!0,n.forEach(t=>t.stop())}}}var At=n(8975),Tt=n(5762),It=n(2128);function Rt(t,e,n){return`${t}x${e}-${n}`}function Ot(t){let e=2166136261;for(let n=0;n<t.length;n+=1)e^=t[n],e=Math.imul(e,16777619);return(e>>>0).toString(16).padStart(8,"0")}const Nt=(t,e)=>{const n=t.canvasManager,o=t.configuration.sessionReplayCanvasRecording,i=o?.maxFramesPerSecond??0;if(!o?.enable||0===i)return{stop:it.l};let s,a=!1;const c=1e3/i;function u(t,e){t.isCurrent()&&n.markCanvas(e,1)}async function l(t){const r=n.startCaptureAttempt(t),i=()=>a||!r.isCurrent();if(!i())try{const s=r.snapshot??wt(t,o?.maxImageDimension??1e3);if(!s)return u(r,t),void n.discardCaptureAttempt(t,r);const a=await function(t,e){const{height:n,width:r}=t.source,o=Math.max(r,n)<=e?t.source:St(t.source,r,n,e);if(!o)return Promise.resolve(void 0);const i=o.getContext("2d");if(!i)return Promise.resolve(void 0);const s=i.getImageData(0,0,o.width,o.height).data,a=(0,Tt.B)(It.J.crypto?.subtle);return a?a.digest("SHA-256",s).then(e=>Rt(t.canvasWidth,t.canvasHeight,function(t){return Array.from(new Uint8Array(t),t=>t.toString(16).padStart(2,"0")).join("")}(e)),()=>Rt(t.canvasWidth,t.canvasHeight,Ot(s))):Promise.resolve(Rt(t.canvasWidth,t.canvasHeight,Ot(s)))}(s,o?.hashingMaxDimension??100);if(i())return;if(void 0===a)return u(r,t),void n.discardCaptureAttempt(t,r);if(a===r.lastChangeHash)return void n.discardCaptureAttempt(t,r);const c=await function(t,e){return new Promise(n=>{try{t.source.toBlob(t=>n(t??void 0),"image/webp",e)}catch{n(void 0)}})}(s,o?.encodeQuality??.5);if(i())return;if(!c)return u(r,t),void n.discardCaptureAttempt(t,r);n.addCanvasContentMutation({canvas:t,captureAttempt:r,hash:a,image:c}),e()}catch(e){i()||(n.markCanvas(t,function(t){return t instanceof DOMException&&"SecurityError"===t.name}(e)?2:1),n.discardCaptureAttempt(t,r))}}return function e(o){a||(s=(0,At.wg)(()=>{!async function(){const o=performance.now();try{await async function(){const e=n.takeCapturableCanvases();if(!a)for(const o of e){if(void 0===t.nodeIds.get(o)){n.forgetCanvas(o);continue}const e=(0,r.PJ)(o,t.configuration.defaultPrivacyLevel);(0,r.Ie)(o,e)?n.markCanvas(o,1):await l(o)}}()}finally{const t=performance.now()-o;e(Math.max(c-t,.5*c))}}()},o))}(c),{stop(){a=!0,(0,At.DJ)(s)}}};function Mt(t){const{emitRecord:e,emitResource:n,emitStats:r,configuration:i,lifeCycle:s}=t;if(!e||!n||!r)throw Error("emit functions are required");const a=n=>{e(n),(0,H.b)("record",{record:n});const r=t.viewHistory.findView();J.$1(r.id)},c=(e,r,o)=>{n(e,r,o);const i=t.viewHistory.findView();J.Mt(i.id)},u=function(){const t=(0,vt.W)(),e=new Set,n=new WeakSet,r=new Map,o=new WeakMap;let i=[],s=new WeakMap;function a(t){let e=s.get(t);return e||(e={capturePending:!1},s.set(t,e)),e}function c(t){t.isConnected&&!n.has(t)&&e.add(t)}return{markCanvas(o,i){switch(function(e){if(r.has(e))return;const n=new t(()=>c(e));n.observe(e,{attributes:!0,attributeFilter:["width","height"]}),r.set(e,n)}(o),i){case 1:return void c(o);case 0:return void function(t){e.delete(t)}(o);case 2:return void function(t){n.add(t),e.delete(t)}(o);default:return}},setCanvasSnapshot(t,e){o.set(t,e)},forgetCanvas(t){e.delete(t),s.delete(t),o.delete(t),function(t){r.get(t)?.disconnect(),r.delete(t)}(t)},takeCapturableCanvases(){const t=[];return e.forEach(r=>{r.isConnected?n.has(r)||a(r).capturePending||(e.delete(r),t.push(r)):e.delete(r)}),t},startCaptureAttempt(t){const e=a(t);e.capturePending=!0;const n=()=>s.get(t)===e;return{lastChangeHash:e.lastChangeHash,snapshot:o.get(t),isCurrent:n,setLastChangeHash(t){n()&&(e.lastChangeHash=t)}}},discardCaptureAttempt(t,e){e.isCurrent()&&(a(t).capturePending=!1)},retryCanvas(t){s.delete(t),c(t)},addCanvasContentMutation(t){i.push(t)},takeCanvasContentMutations(){const t=i;i=[];for(const e of t)e.captureAttempt.isCurrent()&&(a(e.canvas).capturePending=!1);return t},reset(){e.clear(),i=[],s=new WeakMap,r.forEach(t=>t.disconnect()),r.clear()}}}(),l=((t,e,n)=>{const r=new Map;return{addShadowRoot(o,i){if(r.has(o))return;const s=_t(o,t,e,n,i),a=ht(o,t,n,i),c=ot(o,t,i);r.set(o,{flush(){return s.flush()},stop(){s.stop(),a.stop(),c.stop()}})},removeShadowRoot(t){const e=r.get(t);e&&(e.stop(),r.delete(t))},stop(){r.forEach(({stop:t})=>t())},flush(){r.forEach(({flush:t})=>t())}}})(a,c,r),d=function(t,e,n,r){const o=C(1),i=C(0),s=function(){let t=0,e=E();const n=t=>e[t.role][t.string];return{clear(){0!==t&&(e=E(),t=0)},get:n,getOrInsert(r){let o=n(r);return void 0===o&&(o=t++,e[r.role][r.string]=o),o},get size(){return t-0}}}(),a=C(0),c={resetIds(){c.eventIds.clear(),c.nodeIds.clear(),c.stringIds.clear(),c.styleSheetIds.clear(),c.canvasManager.reset()},canvasManager:t,configuration:e,elementsScrollPositions:n,eventIds:o,nodeIds:i,shadowRootsController:r,stringIds:s,styleSheetIds:a};return c}(u,i,function(){const t=new WeakMap;return{set(e,n){(e!==document||document.scrollingElement)&&t.set(e===document?document.scrollingElement:e,n)},get:e=>t.get(e),has:e=>t.has(e)}}(),l),{stop:f}=function(t,e,n,r,i){W((0,o.nx)(),0,e,n,i);const{unsubscribe:s}=t.subscribe(2,t=>{r(),W(t.startClocks.timeStamp,1,e,n,i)});return{stop:s}}(s,a,r,p,d);function p(){l.flush(),m.flush()}const m=_t(document,a,c,r,d),h=[m,tt(a,d),rt(a,d),ot(document,a,d),st(a),ht(document,a,r,d),ct(a,d),lt(a,d),ft(a),at(a),pt(s,a,p),xt(d),Nt(d,m.notifyContentMutated)];return{stop(){l.stop(),h.forEach(t=>t.stop()),f(),u.reset()},flushMutations:p,shadowRootsController:l}}},728(t,e,n){let r;function o(t){return l(t).segments_count}function i(t){l(t).segments_count+=1}function s(t){l(t).records_count+=1}function a(t){l(t).resources_count+=1}function c(t,e){l(t).segments_total_raw_size+=e}function u(t){return r?.get(t)}function l(t){let e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,resources_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>1e3&&function(){if(!r)return;const t=r.keys().next().value;t&&r.delete(t)}()),e}n.d(e,{$1:()=>s,H5:()=>i,K_:()=>o,L7:()=>c,Mt:()=>a,lv:()=>u})},979(t,e,n){n.d(e,["Cj",0,{Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},"GE",0,{MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},"JQ",0,{AddString:0,AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10,AddRoleAnnotatedStrings:11,InputValue:12,InputSelection:13,ClearStrings:14,ImageContent:15},"KN",0,{V1:0,Change:1},"WW",0,{Selected:0,Deselected:1,Indeterminate:2},"_o",0,{Default:0,NodeName:1,AttributeName:2,AttributeValue:3,TextContent:4,FormInput:5,Css:6,Url:7,ResourceId:8},"ee",0,{FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9,Change:12},"xQ",0,{Play:0,Pause:1}])},5119(t,e,n){n.d(e,{ab:()=>o});var r=n(7472);function o(){let t=[];return{register(e){return t.push(e),{unregister(){t=t.filter(t=>t!==e)}}},trigger(e){const n=[];for(const r of t){const t=r(e);if(t===i)return i;t!==s&&n.push(t)}return(0,r.kg)(...n)}}}const i="DISCARDED",s="SKIPPED";n.d(e,["$O",0,s,"ug",0,i])},449(t,e,n){n.d(e,{BX:()=>c,fK:()=>l,lQ:()=>a,q2:()=>s});var r=n(1e3),o=n(9211),i=n(9360);function s(t,e,n,r){return a(t,[e],n,r)}function a(t,e,n,{once:i,capture:s,passive:a}={}){const c=(0,r.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||!1!==u)&&(i&&p(),n(t))}),l=a?{capture:s,passive:a}:s,d=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,f=(0,o.W)(d,"addEventListener");function p(){const n=(0,o.W)(d,"removeEventListener");e.forEach(e=>n.call(t,e,c,l))}return e.forEach(e=>f.call(t,e,c,l)),{stop:p}}function c(t,e){if(!t)return!1;try{return s(t,e,i.l).stop(),!0}catch{return!1}}let u;function l(t){!0!==u&&(u=t??!1)}},8780(t,e,n){n.d(e,{W:()=>c,l:()=>a});var r=n(1e3),o=n(9360),i=n(3540),s=n(9211);function a(){const t=c();return new i.cP(e=>{const n=new t((0,r.dm)(t=>e.notify(t)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function c(){let t;const e=window;if(e.Zone&&(t=(0,s.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){const n=new e.MutationObserver(o.l),r=(0,s.W)(n,"originalInstance");t=r?.constructor}return t||(t=e.MutationObserver),t}},5358(t,e,n){n.d(e,{h:()=>i});var r=n(2128),o=n(9211);function i(t,e){return(0,o.W)(r.J,"fetch")(t,e)}},1e3(t,e,n){n.d(e,{Bd:()=>l});var r=n(1864),o=n(8789);let i;const s=function(t,e){function n(t){return function(...e){return r(t,this,e)}}function r(t,e,n){try{return t.apply(e,n)}catch(t){i(t)}}function i(n){const r=e=>{(0,o.N)()&&t.error("[MONITOR]",e)};r(n);try{e(n)}catch(n){r(n)}}return{monitored(t,e,r){r.value=n(r.value)},monitor:n,callMonitored:r,monitorError:i}}((0,r.XH)("Datadog SDK:"),t=>i?.(t)),a=s.monitor,c=s.callMonitored,u=s.monitorError;function l(t){return!i&&(i=t,!0)}n.d(e,["Dx",0,u,"dm",0,a,"um",0,c])},8333(t,e,n){n.d(e,{$S:()=>u,A3:()=>h,FR:()=>f,Gw:()=>c,M8:()=>l,Oc:()=>d,Zj:()=>a,_O:()=>g,d6:()=>m,jR:()=>p,nx:()=>i,uc:()=>v,vk:()=>s,x3:()=>o});const r=31536e6;function o(){return(new Date).getTime()}function i(){return o()}function s(t,e){return e-t}function a(t){return"number"!=typeof t?t:Math.round(1e6*t)}function c(t,e){return t+e}function u(){return performance.now()}function l(){return{relative:u(),timeStamp:i()}}function d(){return{relative:0,timeStamp:v()}}function f(t){return{relative:t,timeStamp:b(t)}}function p(t){return{relative:m(t),timeStamp:t}}function m(t){return t-v()}function h(t){return t<r}function g(){return Math.round(o()-c(v(),performance.now()))}let y;function v(){return void 0===y&&(y=performance.timing?.navigationStart??performance.timeOrigin),y}function b(t){const e=o()-performance.now();return e>v()?Math.round(c(e,t)):function(t){return Math.round(c(v(),t))}(t)}n.d(e,["$H",0,r,"MA",0,36e5])},5387(t,e,n){n.d(e,{Hg:()=>u,np:()=>c,ns:()=>a});var r=n(8333),o=n(9164),i=n(3192),s=n(8383);function a(t,e,n){return{build(r,o){return u({proxy:t.proxy,site:t.site,path:"/api/v2/"+e,parameters:l(t,e,r,o,n)})},trackType:e}}function c({replica:t,proxy:e,source:n},r){if(t)return a({clientToken:t.clientToken,proxy:e,source:n,site:s.NW},r,"rum"===r?["application.id="+t.applicationId]:void 0)}function u({proxy:t,site:e=s.NW,path:n,parameters:r="",subdomain:i}){let a=n;if(r&&(a+="?"+r),"string"==typeof t){let e=`${(0,o.l2)(t)}?ddforward=${encodeURIComponent(a)}`;return i&&(e+="&ddforwardSubdomain="+i),e}if("function"==typeof t)return t({path:n,parameters:r,subdomain:i});const c=e.split("."),u=c.pop();let l=`browser-intake-${c.join("-")}.${u}`;return i&&(l=`${i}.${l}`),`https://${l}${a}`}function l({clientToken:t,source:e="browser"},n,o,{retry:s,encoding:a},c=[]){const u=["ddsource="+e,"dd-api-key="+t,"dd-evp-origin-version="+encodeURIComponent("7.16.2"),"dd-evp-origin=browser","dd-request-id="+(0,i.l)()].concat(c);return a&&u.push("dd-evp-encoding="+a),"rum"===n&&(u.push("batch_time="+(0,r.nx)(),"_dd.api="+o),s&&u.push("_dd.retry_count="+s.count,"_dd.retry_after="+s.lastFailureStatus)),u.join("&")}},8383(t,e,n){n.d(e,{wo:()=>o});const r=["ddsource","dd-api-key","dd-request-id"];function o(t){return r.every(e=>t.includes(e))}n.d(e,["Bb",0,"datad0g.com","KG",0,"us2.ddog-gov.com","NW",0,"datadoghq.com","R8",0,"ddog-gov.com","dV",0,"datadoghq.eu"])},4989(t,e,n){n.d(e,{WW:()=>o,wh:()=>i});const r=/[^\u0000-\u007F]/;function o(t){return r.test(t)?(new TextEncoder).encode(t).length:t.length}function i(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}n.d(e,["iH",0,1048576])},8789(t,e,n){n.d(e,{N:()=>i,p:()=>o});let r=!1;function o(t){r=t}function i(){return r}},1864(t,e,n){n.d(e,{XH:()=>i});const r=console,o={log:r.log,debug:r.debug,info:r.info,warn:r.warn,error:r.error};function i(t){return{debug:o.debug.bind(r,t),log:o.log.bind(r,t),info:o.info.bind(r,t),warn:o.warn.bind(r,t),error:o.error.bind(r,t)}}n.d(e,["JZ",0,r,"bP",0,{log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},"fH",0,"https://docs.datadoghq.com","xG",0,"More details:"])},3935(t,e,n){n.d(e,{n:()=>o});var r=n(8975);function o(t,e,n){const o=void 0===n?.leading||n.leading,i=void 0===n?.trailing||n.trailing;let s,a,c=!1;return{throttled(...n){c?s=n:(o?t(...n):s=n,c=!0,a=(0,r.wg)(()=>{i&&s&&t(...s),c=!1,s=void 0},e))},cancel(){(0,r.DJ)(a),c=!1,s=void 0}}}},9211(t,e,n){n.d(e,{W:()=>o});var r=n(2128);function o(t,e){const n=r.J;let o;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(o=t[n.Zone.__symbol__(e)]),o||(o=t[e]),o}},2128(t,e,n){const r=globalThis,o="WorkerGlobalScope"in r;n.d(e,["J",0,r,"W",0,o])},7637(t,e,n){function r(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);const r=o(Object.prototype),i=o(Array.prototype),s=o(Object.getPrototypeOf(t)),a=o(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),s(),a()}}function o(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):i}function i(){}n.d(e,{M:()=>o,s:()=>r})},7472(t,e,n){n.d(e,{Go:()=>s,kg:()=>a});var r=n(8307);function o(t,e){return i(t,e,function(){const t=new WeakSet;return{hasAlreadyBeenSeen(e){const n=t.has(e);return n||t.add(e),n}}}())}function i(t,e,n){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return RegExp(e.source,e.flags);if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){const r=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)r[t]=i(r[t],e[t],n);return r}const o="object"===(0,r.Pw)(t)?t:{};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&"__proto__"!==t&&(o[t]=i(o[t],e[t],n));return o}function s(t){return o(void 0,t)}function a(...t){let e;for(const n of t)null!=n&&(e=o(e,n));return e}},5762(t,e,n){function r(t){return t}n.d(e,{B:()=>r}),new Map},9360(t,e,n){function r(){}n.d(e,{l:()=>r})},3540(t,e,n){n.d(e,{dX:()=>c,cP:()=>s,Fx:()=>a});var r=n(1e3),o=n(2128);function i(t){const e=o.J.queueMicrotask;"function"==typeof e?e((0,r.dm)(t)):Promise.resolve().then((0,r.dm)(t))}class s{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(e=>e(t))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function a(...t){return new s(e=>{const n=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>n.forEach(t=>t.unsubscribe())})}class c extends s{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;const n={unsubscribe:()=>{e=!0,this.removeObserver(t)}};return i(()=>{for(const n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)}),n}unbuffer(){i(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}},3192(t,e,n){function r(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o)}function o(t){return(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16)}n.d(e,{l:()=>r})},8975(t,e,n){n.d(e,{DJ:()=>a,vG:()=>u,wg:()=>s,yb:()=>c});var r=n(1e3),o=n(2128),i=n(9211);function s(t,e){return(0,i.W)(o.J,"setTimeout")((0,r.dm)(t),e)}function a(t){(0,i.W)(o.J,"clearTimeout")(t)}function c(t,e){return(0,i.W)(o.J,"setInterval")((0,r.dm)(t),e)}function u(t){(0,i.W)(o.J,"clearInterval")(t)}},8307(t,e,n){function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function o(t){return"object"===r(t)}function i(t){return"number"==typeof t&&t>=0&&t<=100}function s(t){return"string"==typeof t||t instanceof RegExp||"function"==typeof t}n.d(e,{OE:()=>o,Pw:()=>r,Vl:()=>s,fp:()=>i})},9164(t,e,n){n.d(e,{AY:()=>i,L2:()=>s,c$:()=>a,l2:()=>o});var r=n(2128);function o(t){return a(t,r.J.document?.baseURI??r.J.location?.href).href}function i(t){try{return!!a(t)}catch{return!1}}function s(t){const e=a(t).pathname;return"/"===e[0]?e:"/"+e}function a(t,e){const n=function(){if(!c){let t=!1;try{t="http://a/b"===new r.J.URL("b","http://a").href}catch{}c=t?r.J.URL:function(){if(!u){let t,e;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),e=t.contentWindow??r.J}catch{e=r.J}u={URL:e.URL},t?.remove()}return u}().URL}return c}();try{return void 0!==e?new n(t,e):new n(t)}catch(t){throw Error("Failed to construct URL: "+t)}}let c,u}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.m=t,n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++],s=0===i?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:i};n.o(t,o)||Object.defineProperty(t,o,s)}else for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.f={},n.e=t=>{const e=[];return n.f.j(t,e),Promise.all(e)},n.u=t=>"chunks/"+t+"-"+{datadogRecorder:"4ace47c1ea1f698b8e26",datadogProfiler:"2aa04984c2bf50fa9be4"}[t]+"-datadog-rum-shopify.js",n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={main:0},e=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:o,__webpack_esm_runtime__:i}=e;var s,a,c=0;for(s in o)n.o(o,s)&&(n.m[s]=o[s]);for(i&&i(n);c<r.length;c++)a=r[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0};n.f.j=(r,o)=>{let i=n.o(t,r)?t[r]:void 0;if(0!==i)if(i)o.push(i[1]);else{let s=import("./"+n.u(r)).then(e,e=>{throw 0!==t[r]&&(t[r]=void 0),e});s=Promise.race([s,new Promise(e=>i=t[r]=[e])]),o.push(i[1]=s)}}})();var r=n(2128),o=n(5021),i=n(8637),s=(n(7923),n(9360)),a=n(9305),c=n(728),u=n(4989),l=n(449),d=n(5648),f=n(7003),p=n(5762),m=n(8975),h=n(1864);function g({configuredUrl:t,error:e,source:n,scriptType:r}){if(d.V.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&((o=e.message).includes("Content Security Policy")||o.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",d.V.error(`${e} See documentation at ${h.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,f.VJ)(e);var o}function y(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.16.2"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let v={status:0};function b(){return v.status}function _(t,e,n,r){1===v.status||0===v.status?(g({configuredUrl:t.workerUrl,error:n,source:e,scriptType:"worker"}),1===v.status&&v.initializationFailureCallbacks.forEach(t=>t()),v={status:2}):(0,f.VJ)(n,{worker_version:3===v.status&&v.version,stream_id:r})}var w=n(1e3),S=n(7409),k=n(3540),C=n(8333);async function E(){try{return await(0,p.B)(x)()}catch(t){g({error:t,source:"Recorder",scriptType:"module"})}}async function x(){return(await n.e("datadogRecorder").then(()=>n(8647))).startRecording}async function A(t,e,n){try{return await n}finally{t.notify(e)}}var T=n(4215);function I(){return void 0!==r.J.Profiler}var R=n(5119);async function O(){try{return await(0,p.B)(N)()}catch(t){g({error:t,source:"Profiler",scriptType:"module"})}}async function N(){return(await n.e("datadogProfiler").then(()=>n(7492))).createRumProfiler}function M(){P(r.J,"cookieStore"),P(navigator,"locks"),Object.defineProperty(document,"hasFocus",{value:()=>!0,configurable:!0,writable:!0})}function P(t,e){Object.defineProperty(t,e,{value:void 0,configurable:!0,writable:!0})}var D=n(2423);function V(t){return t.context?.document?.location?.href}const L=/\/(([a-z]{2}(-[a-z0-9]+)?)\/)?(checkouts?)(\/|$)/i;function $(t){const e=V(t);return!(!e||!L.test(e))}function U(t,e){e&&(e.subscribe("page_viewed",e=>{$(e)&&t.startView({url:V(e)})}),e.subscribe("clicked",e=>{if(!$(e))return;const n=e.data?.element,r=n?.id??"element-without-id";t.startAction(r,{type:"click"}),t.stopAction(r,{type:"click"})}),e.subscribe("ui_extension_errored",e=>{if(!$(e))return;const n=e.data?.error,r=Error(n?.message);r.stack=n?.trace,t.addError(r,{extensionName:n?.extensionName,extensionTarget:n?.extensionTarget,extensionErrorType:n?.type,appId:n?.appId,appName:n?.appName,appVersion:n?.appVersion})}))}const z=r.J,j=(0,i.AB)(function(){if((0,a.d0)()&&!(0,a.Ww)("records"))return{start:s.l,stop:s.l,getReplayStats(){},onRumStart:s.l,isRecording:()=>!1,getSessionReplayLink(){}};let{strategy:t,shouldStartImmediately:e}=function(){let t=0;return{strategy:{start(){t=1},stop(){t=2},isRecording(){return!1},getSessionReplayLink:s.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually}}();return{start:e=>t.start(e),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart(n,r,o,a,c,h){let g;t=function(t,e,n,r,o,a){let c,u=0;e.subscribe(9,()=>{2!==u&&3!==u||(m(),u=1)}),e.subscribe(10,()=>{1===u&&p()});const l=new k.cP;!function(t,e){if(!t.metricsEnabled)return{stop:s.l};let n,r,o;const{unsubscribe:i}=e.subscribe(t=>{switch(t.type){case"start":n={forced:t.forced,timestamp:(0,C.nx)()},r=void 0,o=void 0;break;case"document-ready":n&&(r=(0,C.vk)(n.timestamp,(0,C.nx)()));break;case"recorder-settled":n&&(o=(0,C.vk)(n.timestamp,(0,C.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":i(),n&&(0,f.Gk)("Recorder init metrics",{metrics:(e=n.forced,s=o,a=(0,C.vk)(n.timestamp,(0,C.nx)()),c=t.type,u=r,{forced:e,loadRecorderModuleDuration:s,recorderInitDuration:a,result:c,waitForDocReadyDuration:u})})}var e,s,a,c,u})}(a,l);const d=async i=>{l.notify({type:"start",forced:i});const[s]=await Promise.all([A(l,{type:"recorder-settled"},E()),A(l,{type:"document-ready"},(0,S.N)("interactive"))]);if(2!==u)return void l.notify({type:"aborted"});if(!s)return u=0,void l.notify({type:"recorder-load-failed"});const d=o();if(!d)return u=0,void l.notify({type:"deflate-encoder-load-failed"});({stop:c}=s(e,t,n,r,d,a)),u=3,l.notify({type:"succeeded"})};function p(e){const r=n.findTrackedSession(),o=r?(0,i.K$)(r,t):void 0;if(!function(t,e){return void 0!==t&&(0!==t||e?.force)}(o,e))return void(u=1);if(function(t){return 2===t||3===t}(u))return;u=2;const s=function(t,e){return e&&e.force&&0===t}(o,e)||!1;d(s).catch(w.Dx),s&&n.updateSessionState({forcedReplay:"1"})}function m(){3===u&&c?.(),u=0}return{start:p,stop:m,getSessionReplayLink:()=>function(t,e,n,r){const o=e.findTrackedSession(),s=function(t,e,n){return e?0===(0,i.K$)(e,t)?"incorrect-session-plan":n?void 0:"replay-not-started":"rum-not-tracked"}(t,o,r),a=n.findView();return(0,i.dx)(t,{viewContext:a,errorType:s,session:o})}(t,n,r,0!==u),isRecording(){return 3===u}}}(r,n,o,a,function(){return g||(c??(c=function(e){switch(0===v.status&&function(t,e){try{const n=(0,p.B)(y)(t),{stop:r}=(0,l.q2)(n,"error",n=>{_(t,e,n)}),{stop:o}=(0,l.q2)(n,"message",({data:n})=>{var r;"errored"===n.type?_(t,e,n.error,n.streamId):"initialized"===n.type&&(r=n.version,1===v.status&&(v={status:3,worker:v.worker,stop:v.stop,version:r}))});n.postMessage({action:"init"}),(0,m.wg)(()=>function(t){1===v.status&&(d.V.error(t+" failed to start: a timeout occurred while initializing the Worker"),v.initializationFailureCallbacks.forEach(t=>t()),v={status:2})}(e),3e4),v={status:1,worker:n,stop(){r(),o()},initializationFailureCallbacks:[]}}catch(n){_(t,e,n)}}(e,"Datadog Session Replay"),v.status){case 1:return v.initializationFailureCallbacks.push(()=>t.stop()),v.worker;case 3:return v.worker}}(r)),c&&(g=function(t){let e,n=0,r=[],o=!0,i=0;const s=[],{stop:a}=(0,l.q2)(t,"message",({data:t})=>{if("wrote"!==t.type||1!==t.streamId)return;const o=s[0];o&&(o.id===t.id?(s.shift(),n+=t.additionalBytesCount,r.push(t.result),e=t.trailer,o.writeCallback?o.writeCallback(t.result.byteLength):o.finishCallback&&o.finishCallback()):o.id<t.id&&a())});function c(){const t=0===r.length?new Uint8Array(0):(0,u.wh)(r.concat(e)),o={rawBytesCount:n,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return n=0,r=[],o}function d(){o||(t.postMessage({action:"reset",streamId:1}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(e,n){t.postMessage({action:"write",id:i,data:e,streamId:1}),s.push({id:i,writeCallback:n,data:e}),o=!1,i+=1},finish(t){d(),s.length?(s.forEach(t=>{delete t.writeCallback}),s[s.length-1].finishCallback=()=>t(c())):t(c())},finishSync(){d();const t=s.map(t=>t.data).join("");return s.length=0,{...c(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){a()}}}(c))),g},h),e(r)&&t.start()},isRecording:()=>3===b()&&t.isRecording(),getReplayStats:t=>3===b()?(0,c.lv)(t):void 0}}(),function(){let t;return{onRumStart(e,n,r,o,s,c){const u=o.findTrackedSession();if(!u)return;if(!function(t,e){return(0,a.d0)()?(0,a.Ww)("profiles"):(0,T.$5)(e.id,(0,T.it)(t.sessionSampleRate,t.profilingSampleRate))}(r,u))return;const l=function(t){let e={status:"starting"};return t.assembleEventDefaults.register(({eventType:t})=>t!==i.bb.VIEW&&t!==i.bb.LONG_TASK&&t!==i.bb.ACTION&&t!==i.bb.VITAL?R.$O:{type:t,_dd:{profiling:e}}),{get(){return e},set(t){e=t}}}(n);(0,p.B)(I)()?(0,p.B)(O)().then(n=>{n?(t=n(r,e,o,l,c,s,void 0),t.start()):l.set({status:"error",error_reason:"failed-to-lazy-load"})}).catch(w.Dx):l.set({status:"error",error_reason:"not-supported-by-browser"})},stop(){t?.stop()}}}(),{sdkName:"rum-shopify"});j.shopifyPlugin=function(t){return{name:"shopify",async onInit({initConfiguration:e,publicApi:n}){const r=t.shopifyAnalytics;if(!r)return!1;const o=await function(t,{timeout:e=1e3}={}){return(0,D.yU)(new Promise(e=>{t.subscribe("page_viewed",t=>{e(t)})}),e)}(r);if(!$(o))return!1;(0,p.B)(M)(),(0,p.B)(U)(n,r),e.trackViewsManually=!0,e.sessionReplaySampleRate=0,e.profilingSampleRate=0,e.trackUserInteractions=!1,e.trackResources=!1,e.trackLongTasks=!1,e.sessionPersistence="cookie"}}},(0,o.Z)(z,"DD_RUM",j)})();
|
|
1
|
+
(()=>{var t={5021(t,e,n){n.d(e,{Z:()=>a,m:()=>s});var r=n(8789),o=n(4993),i=n(5648);function s(t){const e={version:"7.17.1",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get(){return r.p},enumerable:!1}),e}function a(t,e,n){const r=t[e];r&&!r.q&&r.version&&i.V.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r?.q&&r.q.forEach(t=>(0,o.y)(t,"onReady callback threw an error:")())}},6448(t,e,n){n.d(e,{Kp:()=>u,_T:()=>c});var r=n(2128),o=n(3540),i=n(449),s=n(8424);const a={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGE_TERMINATED:"page_terminated",FROZEN:"page_frozen"};function c(){return new o.cP(t=>{const e=r.J.window;if(!e)return;const{stop:n}=(0,i.lQ)(e,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:a.HIDDEN}):"freeze"===e.type&&t.notify({reason:a.FROZEN})},{capture:!0}),o=(0,i.q2)(e,"beforeunload",()=>{t.notify({reason:a.UNLOADING})}).stop,s=(0,i.q2)(e,"pagehide",e=>{e.persisted||t.notify({reason:a.PAGE_TERMINATED})}).stop;return()=>{n(),o(),s()}})}function u(t){return(0,s.KQ)(a).includes(t)}n.d(e,["y5",0,a])},7409(t,e,n){n.d(e,{H:()=>i,N:()=>s});var r=n(9360),o=n(449);function i(t,e){if(document.readyState===t||"complete"===document.readyState)return e(),{stop:r.l};const n="complete"===t?"load":"DOMContentLoaded";return(0,o.q2)(window,n,e,{once:!0})}function s(t){return new Promise(e=>{i(t,e)})}},64(t,e,n){n.d(e,{q:()=>o});var r=n(2128);function o(){const{navigator:t}=r.J;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}},4023(t,e,n){n.d(e,["g",0,{AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}])},1468(t,e,n){function r(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}n.d(e,{b:()=>r}),n.d(e,["e",0,"No stack, consider using an instance of Error"])},4215(t,e,n){function r(t,e){return t*e/100}n.d(e,{$5:()=>i,it:()=>r});const o=new Map;function i(t,e){if(100===e)return!0;if(0===e)return!1;const n=o.get(e);if(t===n?.sessionId)return n.decision;const r=function(t,e){const n=1n<<64n;return Number(1111111111111111111n*t%n)<=e/100*Number(n)}(BigInt("0x"+t.split("-")[4]),e);return o.set(e,{sessionId:t,decision:r}),r}},603(t,e,n){var r=n(8333);const o=4*r.MA,i=r.$H;n.d(e,["AQ",0,o,"HB",0,9e5,"Q_",0,{COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},"_P",0,i])},8032(t,e,n){n.d(e,{Jv:()=>l,yN:()=>d});var r=n(2128),o=n(7286),i=n(7003);const s=new Map,a=new Set;let c=!1;function u(){const t=r.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,u=!1;for(const[r,i]of Object.entries(t)){if(e=e||void 0!==i.ddDebugId,n=n||void 0!==i.service,u=u||void 0!==i.version,a.has(r))continue;a.add(r);const t=(0,o.T)({stack:r}).stack[0]?.url;t&&!s.has(t)&&s.set(t,i)}c||(c=!0,(0,i.Q6)({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:u}))}function l(t){u();const e=new Set,n=[];for(const r of t){if(e.has(r))continue;e.add(r);const t=s.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}function d(t){return u(),s.get(t)}},98(t,e,n){n.d(e,{m5:()=>i});var r=n(1864),o=n(5648);function i(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:i,variant:a}=t,c=[s("sdk_version",i??"7.17.1")];return e&&c.push(s("env",e)),n&&c.push(s("service",n)),r&&c.push(s("version",r)),o&&c.push(s("datacenter",o)),a&&c.push(s("variant",a)),c}function s(t,e){const n=e?`${t}:${e}`:t;return(n.length>200||function(t){return RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(n))&&o.V.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${r.xG} ${r.fH}/getting_started/tagging/#defining-tags`),function(t){return t.replace(/,/g,"_")}(n)}},7003(t,e,n){n.d(e,{Rr:()=>D,A2:()=>M,VJ:()=>P,Gk:()=>L,Q6:()=>V,a5:()=>N});var r=n(8333),o=n(3540),i=n(7637),s=n(7472),a=n(9360),c=n(2128),u=n(8789),l=n(5119);function d(t){return 0!==t&&100*Math.random()<=t}var f=n(8383),p=n(5387),m=n(1e3),h=n(1468),g=n(4021),v=n(8925),y=n(98),b=n(5648),_=n(350),w=n(7286),S=n(64),k=n(9305),C=n(6625);const E="log",x="configuration",A="usage",T=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],I=[f.R8,f.KG];let R;function O(){return R||(R=new o.dX(100)),R}function N(t,e,n,u){const h=new o.cP,{enabled:g,metricsEnabled:b}=function(t,e,n,o,a,u=1,f=15){const p={},h=!I.includes(e.site)&&d(e.telemetrySampleRate),g={[E]:h,[x]:h&&d(e.telemetryConfigurationSampleRate),[A]:h&&d(e.telemetryUsageSampleRate),metric:h&&d(u)},b={is_local_file:"file:"===c.J.location?.protocol,is_worker:c.W},w=O();return w.subscribe(({rawEvent:c,metricName:u})=>{if(u&&!g.metric||!g[c.type])return;const d=u||c.status||c.type;let m=p[d];if(m||(m=p[d]=new Set),m.size>=f)return;const h=(0,i.s)(c);if(m.has(h))return;const w=n.trigger({startTime:(0,r.M8)().relative});if(w===l.ug)return;const k=function(t,n,o,i){const c={type:"telemetry",date:(0,r.M8)().timeStamp,service:n,version:"7.17.1",source:"browser",_dd:{format_version:2},telemetry:(0,s.kg)(o,{runtime_env:i,connectivity:(0,S.q)(),sdk_setup:"cdn",sdk_name:a}),ddtags:(0,y.m5)(e).join(","),experimental_features:Array.from((0,v.q7)())};return(0,s.kg)(c,t)}(w,t,c,b);o.notify(k),(0,_.b)("telemetry",k),m.add(h)}),w.unbuffer(),(0,m.Bd)(P),{enabled:h,metricsEnabled:g.metric}}(t,e,n,h,u),{stop:w}=function(t,e){const n=[];if((0,k.d0)()){const t=(0,k.Y9)(),r=e.subscribe(e=>t.send("internal_telemetry",e));n.push(r.unsubscribe)}else{const r=[(0,p.ns)(t,"rum")],o=(0,p.np)(t,"rum");o&&function(t){return t.site===f.Bb}(t)&&r.push(o);const i=(0,C.X)({endpoints:r,reportError:a.l});n.push(i.stop);const s=e.subscribe(i.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(t=>t())}}(e,h);return{stop:w,enabled:g,metricsEnabled:b}}function M(t,e){(0,u.N)()&&b.V.debug("[Telemetry]",t,e),O().notify({rawEvent:{type:E,message:t,status:"debug",...e}})}function P(t,e){O().notify({rawEvent:{type:E,status:"error",...U(t),...e}})}function D(t){O().notify({rawEvent:{type:x,configuration:t}})}function L(t,e){O().notify({rawEvent:{type:E,message:t,status:"debug",...e},metricName:t})}function V(t){O().notify({rawEvent:{type:A,usage:t}})}function U(t){if((0,h.b)(t)){const e=(0,w.T)(t);return{error:{kind:e.name,stack:(0,g.Yn)($(e))},message:e.message}}return{error:{stack:h.e},message:"Uncaught "+(0,i.s)(t)}}function $(t){return t.stack=t.stack.filter(t=>!t.url||T.some(e=>t.url.startsWith(e))),t}},4993(t,e,n){n.d(e,{y:()=>o});var r=n(5648);function o(t,e){return(...n)=>{try{return t(...n)}catch(t){r.V.error(e,t)}}}},5648(t,e,n){var r=n(1864);const o=(0,r.XH)("Datadog Browser SDK:"),i=r.fH+"/real_user_monitoring/browser/troubleshooting";n.d(e,["V",0,o,"X",0,i])},7522(t,e,n){n.d(e,{N:()=>o});var r=n(4989);function o(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,o){const i=(0,r.WW)(n);e+=i,t+=n,o&&o(i)},finish(t){t(this.finishSync())},finishSync(){const n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount(t){return t.length}}}},8925(t,e,n){n.d(e,{Aq:()=>s,R9:()=>r,q7:()=>c,sr:()=>a});var r,o=n(9056);!function(t){t.SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t.SOFT_NAVIGATION="soft_navigation",t.COMPOSED_PATH_SELECTOR_ATTRIBUTES="composed_path_selector_attributes"}(r||(r={}));const i=new Set;function s(t){Array.isArray(t)&&t.filter(t=>(0,o.Rj)(r,t)).forEach(t=>{i.add(t)})}function a(t){return i.has(t)}function c(){return i}},3444(t,e,n){n.d(e,{H7:()=>a,my:()=>c,tv:()=>f});var r=n(1e3),o=n(8975),i=n(9360),s=n(4021);function a(t,e,n,{computeHandlingStack:r,handlingStackType:o="instrumented method"}={}){let a=t[e];if("function"!=typeof a){if(!(e in t)||"string"!=typeof e||!e.startsWith("on"))return{stop:i.l};a=i.l}let c=!1;const{stop:l}=u(t,e,a,function(...t){return c?a.apply(this,t):d(n,{target:this,parameters:t,handlingStack:r?(0,s.uC)(o):void 0},()=>a.apply(this,t))});return{stop(){c=!0,l()}}}function c(t,e,n,{computeHandlingStack:r}={}){const o=t[e];if("function"!=typeof o||l(t,e))return{stop:i.l};let a=!1;const c=function(...t){if(!new.target)return Reflect.apply(o,this,t);const e=new.target===c?o:new.target;return a?Reflect.construct(o,t,e):d(n,{parameters:t,handlingStack:r?(0,s.uC)("instrumented constructor"):void 0},()=>Reflect.construct(o,t,e))},f=function(t,e){for(const n of[].concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));Object.setPrototypeOf(t,Object.getPrototypeOf(e));const{stop:n}=u(e.prototype,"constructor",e.prototype.constructor,t);return n}(c,o),{stop:p}=u(t,e,o,c);return{stop(){a=!0,f(),p()}}}function u(t,e,n,r){return l(t,e)?{stop:i.l}:(t[e]=r,{stop(){t[e]===r&&(t[e]=n)}})}function l(t,e){const n=Object.getOwnPropertyDescriptor(t,e);return!!n&&!n.writable&&!n.set}function d(t,e,n){let o;(0,r.um)(t,null,[{...e,onPostCall(t){o=t}}]);const i=n();return o&&(0,r.um)(o,null,[i]),i}function f(t,e,n){const r=Object.getOwnPropertyDescriptor(t,e);if(!r?.set||!r.configurable)return{stop:i.l};const s=i.l;let a=(t,e)=>{(0,o.wg)(()=>{a!==s&&n(t,e)},0)};const c=function(t){r.set.call(this,t),a(this,t)};return Object.defineProperty(t,e,{set:c}),{stop(){Object.getOwnPropertyDescriptor(t,e)?.set===c&&Object.defineProperty(t,e,r),a=s}}}},7922(t,e,n){n.d(e,{BB:()=>s});var r=n(8333),o=n(1e3),i=n(8975);function s(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback((0,o.dm)(t),e);return()=>window.cancelIdleCallback(n)}return function(t){const e=(0,r.x3)(),n=(0,i.wg)(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,r.x3)()-e))})},0);return()=>(0,i.DJ)(n)}(t)}},350(t,e,n){n.d(e,{b:()=>o});var r=n(2128);function o(t,e){const n=r.J.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}},7286(t,e,n){n.d(e,{T:()=>i,h:()=>h});var r=n(8307);const o="?";function i(t){const e=[];let n=m(t,"stack");const r=t+"";if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(t=>{const n=function(t){const e=c.exec(t);if(!e)return;const n=0===e[2]?.indexOf("native"),r=0===e[2]?.indexOf("eval"),i=u.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){const e=l.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){const e=d.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:+e[3],url:e[2]}}(t)||function(t){const e=f.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=p.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||o,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=o),e.push(n))}),e.length>0&&function(){if(void 0!==y)return y;const[t,e]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(t=>new t);return y=v(Object.getPrototypeOf(t))&&e.stack!==t.stack,y}()&&t instanceof Error){const n=[];let r=t;for(;(r=Object.getPrototypeOf(r))&&v(r);){const t=r.constructor?.name||o;n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:m(t,"message"),name:m(t,"name"),stack:e}}const s="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",a="(?::(\\d+))",c=RegExp(`^\\s*at (.*?) ?\\(${s}${a}?${a}?\\)?\\s*$`,"i"),u=RegExp(`\\((\\S*)${a}${a}\\)`),l=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${s}${a}?${a}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function m(t,e){return(0,r.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function h(t,e,n,r){if(void 0===e)return;const{name:o,message:i}=function(t){let e,n;return"[object String]"==={}.toString.call(t)&&([,e,n]=g.exec(t)),{name:e,message:n}}(t);return{name:o,message:i,stack:[{url:e,column:r,line:n}]}}const g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function v(t){return(t.constructor+"").startsWith("class ")}let y},4021(t,e,n){n.d(e,{NR:()=>a,Yn:()=>s,uC:()=>i});var r=n(1e3),o=n(7286);function i(t){const e=Error(t);let n;return e.name="HandlingStack",(0,r.um)(()=>{const t=(0,o.T)(e);t.stack=t.stack.slice(2),n=s(t)}),n}function s(t){let e=a(t);return t.stack.forEach(t=>{const n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?":"+t.line:"",i=t.line&&t.column?":"+t.column:"";e+=`\n at ${n}${r} @ ${t.url}${o}${i}`}),e}function a(t){return`${t.name||"Error"}: ${t.message}`}},2423(t,e,n){n.d(e,{Qg:()=>o,yU:()=>i});var r=n(8975);function o(t){return!!t&&"function"==typeof t.then}function i(t,e=3e3){let n;const o=new Promise((t,o)=>{n=(0,r.wg)(()=>o(Error("Timeout")),e)});return Promise.race([t,o]).finally(()=>(0,r.DJ)(n))}},6672(t,e,n){function r(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}function o(t){return Array.isArray(t)&&t.length>0}n.d(e,{Ai:()=>r,EI:()=>o})},9056(t,e,n){n.d(e,{LG:()=>c,RI:()=>a,Rj:()=>s,XU:()=>o,yG:()=>i});const r=(t,e)=>"__proto__"===t?void 0:e;function o(t){try{return JSON.parse(t,r)}catch{}}function i(t){return{...t}}function s(t,e){return Object.keys(t).some(n=>t[n]===e)}function a(t){return 0===Object.keys(t).length}function c(t,e){const n={};for(const r of Object.keys(t))n[r]=e(t[r]);return n}},8424(t,e,n){function r(t,e){for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(e(r,n,t))return r}}function o(t){return Object.values(t)}function i(t){return Object.entries(t)}n.d(e,{KQ:()=>o,Uk:()=>r,WP:()=>i})},3472(t,e,n){function r(t){return t>=500}function o(t){try{return t.clone()}catch{return}}n.d(e,{G:()=>r,i:()=>o})},2511(t,e,n){n.d(e,{qj:()=>u});var r=n(8333),o=n(8975),i=n(6672);const s=1/0;let a;const c=new Set;function u({expireDelay:t,maxEntries:e}){let n=[];const u=()=>{if(!t)return;const e=(0,r.$S)()-t;for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(a||(a=(0,o.yb)(()=>{c.forEach(t=>t())},6e4)),c.add(u)),{add(t,r){const o={value:t,startTime:r,endTime:s,remove(){(0,i.Ai)(n,o)},close(t){o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find(t=1/0,e={returnInactive:!1}){for(const r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive(t){const e=n[0];e?.endTime===s&&e.close(t)},findAll(t=1/0,e=0){const o=(0,r.Gw)(t,e);return n.filter(e=>e.startTime<=o&&t<=e.endTime).map(t=>t.value)},findAllEntries(t=1/0,e=0){const o=(0,r.Gw)(t,e);return n.filter(e=>e.startTime<=o&&t<=e.endTime)},getEntries:t=>n.filter(e=>e.startTime===t),reset(){n=[]},stop(){c.delete(u),0===c.size&&a&&((0,o.vG)(a),a=void 0)}}}},6625(t,e,n){n.d(e,{X:()=>v});var r=n(5762),o=n(7637),i=n(1864),s=n(4989),a=n(5648),c=n(8424),u=n(6448),l=n(7522),d=n(1776),f=n(2128),p=n(3540),m=n(8975);const h=f.W?1:50;function g({pageMayExitObservable:t}){let e;const n=new p.cP,r=t.subscribe(t=>{e=t.reason;try{n.notify(t.reason)}finally{e=void 0}c(t.reason)}),o=new p.cP(()=>()=>{r.unsubscribe()});let i,s=0,a=0;function c(t){if(0===a)return;const e=a,n=s;a=0,s=0,(0,m.DJ)(i),i=void 0,o.notify({reason:t,messagesCount:e,bytesCount:n})}return{flushObservable:o,prepareUrgentFlushObservable:n,forceFlush:c,get messagesCount(){return a},notifyBeforeAddMessage(t){s+t>=d.AK&&c(e??"bytes_limit"),a+=1,s+=t,void 0===i&&(i=(0,m.wg)(()=>{c("duration_limit")},3e4))},notifyAfterAddMessage(t=0){s+=t,a>=h?c(e??"messages_limit"):s>=d.AK&&c(e??"bytes_limit")}}}function v({encoder:t=(0,l.N)(),endpoints:e,reportError:n}){const f=(0,r.B)(d.sA)(e,n),p=(0,r.B)(u._T)(),m=(0,r.B)(g)({pageMayExitObservable:p});let h={};const v=m.flushObservable.subscribe(e=>function(e){const n=(0,c.KQ)(h).join("\n");h={};const r=(0,u.Kp)(e.reason),o=r?f.sendOnExit:f.send;if(r&&t.isAsync){const e=t.finishSync();e.outputBytesCount&&o(y(e));const r=[e.pendingData,n].filter(Boolean).join("\n");r&&o({data:r,bytesCount:(0,s.WW)(r)})}else n&&t.write(t.isEmpty?n:"\n"+n),t.finish(t=>{o(y(t))})}(e));function b(e,n){const r=(0,o.s)(e),s=t.estimateEncodedBytesCount(r);s>=262144?a.V.warn(`Discarded a message whose size was bigger than the maximum allowed size 256KiB. ${i.xG} ${a.X}/#technical-limitations`):function(e,n,r){if(void 0!==r){let o;void 0!==h[r]?o=n-t.estimateEncodedBytesCount(h[r]):(m.notifyBeforeAddMessage(n),o=0),h[r]=e,m.notifyAfterAddMessage(o)}else m.notifyBeforeAddMessage(n),t.write(t.isEmpty?e:"\n"+e,t=>{m.notifyAfterAddMessage(t-n)})}(r,s,n)}return{get isEmpty(){return 0===m.messagesCount},add:b,upsert:b,prepareUrgentFlushObservable:m.prepareUrgentFlushObservable,forceFlush:m.forceFlush,flushObservable:m.flushObservable,stop:v.unsubscribe}}function y(t){let e;return e="string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}},9305(t,e,n){n.d(e,{Ww:()=>s,Y9:()=>i,d0:()=>a});var r=n(2128),o=n(5648);function i(){const t=r.J.DatadogEventBridge;if(t)return{getCapabilities(){return JSON.parse(t.getCapabilities?.()||"[]")},getPrivacyLevel(){return t.getPrivacyLevel?.()},getIsTraceSampled(){return JSON.parse(t.getIsTraceSampled?.()||"null")},getAllowedWebViewHosts(){return JSON.parse(t.getAllowedWebViewHosts())},send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function s(t){const e=i();return!!e&&e.getCapabilities().includes(t)}function a(t=r.J.location?.hostname){const e=i();return e?.getAllowedWebViewHosts().some(e=>function(t,e){if(!e.includes("*"))return t===e||t.endsWith("."+e);const n=e.split("*");if(2!==n.length)return o.V.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;const[r,i]=n;return t.length>r.length+i.length&&t.startsWith(r)&&t.endsWith(i)}(t,e))??!1}},1776(t,e,n){n.d(e,{AK:()=>v,sA:()=>y});var r=n(1e3),o=n(3540),i=n(4989),s=n(9164),a=n(2128),c=n(5358),u=n(8975),l=n(3472);const d=20*i.iH;function f(t,e,n,r,o,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?m(t,e,n,i,{onSuccess:()=>h(0,e,n,r,o,i),onFailure(){e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),p(e,n,r,o,i)}}):e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function p(t,e,n,r,o){2===t.transportStatus&&(0,u.wg)(()=>{m(t.queuedPayloads.first(),t,e,o,{onSuccess(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,h(1,t,e,n,r,o)},onFailure(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),p(t,e,n,r,o)}})},t.currentBackoffTime)}function m(t,e,n,r,{onSuccess:o,onFailure:i}){e.bandwidthMonitor.add(t),n(t,n=>{e.bandwidthMonitor.remove(t),function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(0,l.G)(t.status))}(n)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i()):(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o())})}function h(t,e,n,r,o,s){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${d/i.iH}MiB`),e.queueFullReported=!0);const a=e.queuedPayloads;for(e.queuedPayloads=g();a.size()>0;)f(a.dequeue(),e,n,r,o,s)}function g(){const t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first(){return t[0]},dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size(){return t.length},isFull(){return this.bytesCount>=d}}}const v=16384;function y(t,e,n=v){const r=new o.cP,s=t.map(t=>({endpointBuilder:t,retryState:{transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:g(),queueFullReported:!1}}));return{observable:r,send(t){for(const{endpointBuilder:n,retryState:o}of s)f({...t},o,(t,e)=>{w(n,t,e)},n.trackType,e,r)},sendOnExit(e){const r=function(t,e){if(t.bytesCount<e||"string"!=typeof t.data)return[t];const n=[];let r=[],o=0;for(const s of t.data.split("\n")){const a=(0,i.WW)(s);r.length>0&&o+1+a>=e&&(n.push({...t,data:r.join("\n"),bytesCount:o}),r=[],o=0),o+=(r.length>0?1:0)+a,r.push(s)}return 0===n.length?[t]:(n.push({...t,data:r.join("\n"),bytesCount:o}),n)}(e,n);for(const e of t)for(const t of r)b(e,n,t)}}}function b(t,e,n){if(n.bytesCount<e)try{const e=t.build("beacon",n),r=(0,s.c$)(e,a.J.document?.baseURI??a.J.location?.href).protocol;if(("http:"===r||"https:"===r)&&navigator.sendBeacon(e,n.data))return}catch(t){!function(t){_||(_=!0,(0,r.Dx)(t))}(t)}w(t,n)}let _=!1;function w(t,e,n){const o=t.build("fetch",e);(0,c.h)(o,{method:"POST",body:e.data,mode:"cors"}).then((0,r.dm)(t=>n?.({status:t.status,type:t.type}))).catch((0,r.dm)(()=>n?.({status:0})))}},6196(t,e,n){n.d(e,{eT:()=>Xr,o:()=>"***",$m:()=>Qr,NT:()=>Yr,Wd:()=>"hidden",bb:()=>at,K:()=>ct,do:()=>kr,DL:()=>ht,K$:()=>ns,wP:()=>ls,wI:()=>_r,PJ:()=>eo,dT:()=>ro,$4:()=>wr,Gn:()=>wi,zL:()=>Si,dx:()=>cs,rf:()=>co,pB:()=>Ei,g1:()=>Ci,r0:()=>vr,nS:()=>gr,XS:()=>yr,p_:()=>br,AB:()=>ss,jR:()=>no,ei:()=>Wn,ap:()=>io,Ie:()=>oo});var r=n(8333),o=n(1864),i=n(5762),s=n(7472),a=n(3192),c=n(3540);const u={GRANTED:"granted",NOT_GRANTED:"not-granted"};var l=n(2128),d=n(9164),f=n(1e3),p=n(3444),m=n(9360),h=n(4989),g=n(3472);let v;const y=[];function b({responseBodyAction:t}={}){return t&&y.push(t),v||(v=new c.cP(t=>{if(!l.J.fetch)return;const{stop:e}=(0,p.H7)(l.J,"fetch",e=>function({parameters:t,onPostCall:e,handlingStack:n},o){const[i,s]=t;let a=s?.method;void 0===a&&i instanceof Request&&(a=i.method);const c=void 0!==a?(a+"").toUpperCase():"GET",u=i instanceof Request?i.url:(0,d.l2)(i+""),l={state:"start",init:s,input:i,method:c,startClocks:(0,r.M8)(),url:u,handlingStack:n,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||s?.signal?.aborted||!1};o.notify(l),l.input!==i&&(t[0]=l.input),l.init!==s&&(t[1]=l.init),e(t=>{(async function(t,e,n){const r=n;let o;try{o=await e}catch(e){return void t.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}if(r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1,1===y.reduce((t,e)=>Math.max(t,e(r)),0)){const t=(0,g.i)(o);if(t?.body)try{const e=await async function(t){const e=t.getReader(),n=[];for(;;){const t=await e.read();if(t.done)break;n.push(t.value)}return e.cancel().catch(m.l),(0,h.wh)(n)}(t.body);r.responseBody=(new TextDecoder).decode(e)}catch{}}t.notify({...r,state:"resolve"})})(o,t,l).catch(f.Dx)})}(e,t),{computeHandlingStack:!0});return e})),v}var _=n(449);let w;const S=new WeakMap;function k(){return w||(w="XMLHttpRequest"in l.J?new c.cP(t=>{const{stop:e}=(0,p.H7)(XMLHttpRequest.prototype,"open",C),{stop:n}=(0,p.H7)(XMLHttpRequest.prototype,"send",e=>{!function({target:t,parameters:[e],handlingStack:n},o){const i=S.get(t);if(!i)return;const s=i;s.state="start",s.startClocks=(0,r.M8)(),s.isAborted=!1,s.xhr=t,s.handlingStack=n,s.requestBody=e;let a=!1;const{stop:c}=(0,p.H7)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(l(),c(),a)return;a=!0;const e=i;e.duration=(0,r.vk)(s.startClocks.timeStamp,(0,r.nx)()),e.status=t.status,"string"==typeof t.response&&(e.responseBody=t.response),o.notify({...e,state:"complete"})},{stop:l}=(0,_.q2)(t,"loadend",u);o.notify(s)}(e,t)},{computeHandlingStack:!0}),{stop:o}=(0,p.H7)(XMLHttpRequest.prototype,"abort",E);return()=>{e(),n(),o()}}):new c.cP),w}function C({target:t,parameters:[e,n]}){S.set(t,{state:"open",method:(e+"").toUpperCase(),url:(0,d.l2)(n+"")})}function E({target:t}){const e=S.get(t);e&&(e.isAborted=!0)}var x=n(7003),A=n(7286),T=n(7637),I=n(8307),R=n(5648);function O(t,e=225280){const n=(0,T.M)(Object.prototype),r=(0,T.M)(Array.prototype);try{const n=[],r=new WeakMap,o=N(t,"$",void 0,n,r),i=JSON.stringify(o);let s=i?i.length:0;if(s>e)return void P(e,"discarded",t);for(;n.length>0&&s<e;){const o=n.shift();let i=0;if(Array.isArray(o.source))for(let a=0;a<o.source.length;a++){const c=N(o.source[a],o.path,a,n,r);if(s+=void 0!==c?JSON.stringify(c).length:4,s+=i,i=1,s>e){P(e,"truncated",t);break}o.target[a]=c}else for(const a in o.source)if(Object.prototype.hasOwnProperty.call(o.source,a)){const c=N(o.source[a],o.path,a,n,r);if(void 0!==c&&(s+=JSON.stringify(c).length+i+a.length+3,i=1),s>e){P(e,"truncated",t);break}o.target[a]=c}}return o}finally{n(),r()}}function N(t,e,n,r,o){const i=function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)return t;const e=t;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof(s=i)?"[BigInt] "+s.toString():"function"==typeof s?"[Function] "+(s.name||"unknown"):"symbol"==typeof s?"[Symbol] "+(s.description||s.toString()):s;var s;const a=M(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;const c=t;if(o.has(c))return`[Reference seen at ${o.get(c)}]`;const u=void 0!==n?`${e}.${n}`:e,l=Array.isArray(i)?[]:{};return o.set(c,u),r.push({source:i,target:l,path:u}),l}function M(t){try{if(t instanceof Event)return{type:(e=t).type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?M(e.currentTarget):null,target:e.target?M(e.target):null};if(t instanceof RegExp)return"[RegExp] "+t.toString();const n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}var e;return"[Unserializable]"}function P(t,e,n){R.V.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}var D=n(4021),L=n(8032),V=n(1468);function U({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const i=(0,V.b)(t);return{source:n,type:e?e.name:void 0,message:q(e,i,o,t),stack:e?(0,D.Yn)(e):r?V.e:void 0}}function $(t){return t?.stack.map(t=>t.url).filter(t=>!!t)??[]}function z(t,e){const n=e.flatMap(({stackTrace:t})=>$(t));return(0,L.Jv)($(t).concat(n))}function j({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:c}){const u=t??((0,V.b)(e)?(0,A.T)(e):void 0),l=(0,V.b)(e)?function(t){const e=[];let n=t.cause;for(;null!=n&&e.length<10;){const t=(0,V.b)(n),r=t?(0,A.T)(n):void 0;e.push({originalError:n,stackTrace:r}),n=t?n.cause:void 0}return e}(e):[],d=U({originalError:e,stackTrace:u,source:a,useFallbackStack:s,nonErrorPrefix:i}),f=l.map(({originalError:t,stackTrace:e})=>U({originalError:t,stackTrace:e,source:a,useFallbackStack:!1}));return{startClocks:o,handling:c,handlingStack:n,componentStack:r,originalError:e,...d,debugIds:z(u,l),causes:f.length?f:void 0,fingerprint:B(e),context:F(e)}}function q(t,e,n,r){return t?.message&&t?.name?t.message:e?"Empty message":n?`${n} ${(0,T.s)(O(r))}`:(0,T.s)(O(r))}function B(t){return(0,V.b)(t)&&"dd_fingerprint"in t?t.dd_fingerprint+"":void 0}function F(t){if((0,I.OE)(t))return t.dd_context}var G=n(4023);function W(){return new c.cP(t=>{const e=(e,n)=>{const o=j({stackTrace:n,originalError:e,startClocks:(0,r.M8)(),nonErrorPrefix:"Uncaught",source:G.g.SOURCE,handling:"unhandled"});t.notify(o)},{stop:n}=(o=e,(0,p.H7)(l.J,"onerror",({parameters:[t,e,n,r,i]})=>{let s;(0,V.b)(i)||(s=(0,A.h)(t,e,n,r)),o(i??t,s)}));var o;const{stop:i}=function(t){return(0,_.BX)(l.J.window,"unhandledrejection")?(0,p.H7)(l.J,"onunhandledrejection",({parameters:[e]})=>{t(e.reason||"Empty reason")}):{stop:m.l}}(e);return()=>{n(),i()}})}let H={};var J=n(7522),K=n(5021);function Q(t,e,n,r){return(0,f.dm)((...o)=>(r&&(0,x.Q6)({feature:r}),t()[e][n](...o)))}function Y(t,e,n){t.changeObservable.subscribe(()=>{const r=t.getContext();n.notify(t=>t[e].setContext(r))})}const X="userContext",Z="globalContext",tt="accountContext",et="getContext",nt="setContext",rt="setContextProperty",ot="removeContextProperty",it="clearContext";function st(t,e){e.silentMultipleInit||R.V.error(t+" is already initialized.")}const at={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},ct={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},ut="initial_load",lt="route_change",dt="bf_cache",ft="custom",pt="error_click",mt="dead_click",ht={DURATION:"duration",OPERATION_STEP:"operation_step",WEBSOCKET:"websocket"};var gt=n(8925),vt=n(8383);const yt={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},bt={ALL:"all",SAMPLED:"sampled"},_t={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:vt.NW},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1},trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:u,default:u.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};var wt=n(9305),St=n(4993);function kt(t,e){return+t.toFixed(e)}function Ct(t){return"number"==typeof t}var Et=n(6672);function xt(t,e){switch(e.type){case"string":return`"${t}" must be a non-empty string`;case"number":return void 0!==e.min&&void 0!==e.max?`"${t}" must be a number between ${e.min} and ${e.max}`:void 0!==e.min?`"${t}" must be a number greater than or equal to ${e.min}`:void 0!==e.max?`"${t}" must be a number less than or equal to ${e.max}`:`"${t}" must be a finite number`;case"percentage":return`"${t}" must be a number between 0 and 100`;case"boolean":return`"${t}" must be a boolean`;case"site":return`"${t}" must be a valid Datadog site. ${o.xG} ${o.fH}/getting_started/site/.`;case"match-option":return`"${t}" must be a string, RegExp, or function`;case"enum":return`"${t}" must be one of: "${Ot(e.values).join('", "')}"`;case"union":return`"${t}" does not match any expected type`;case"schema":return`"${t}" is not a valid object`;case"function":return`"${t}" must be a function`}}function At(t,e,n){const r={};for(const[o,i]of Object.entries(t)){const t=e[o],a=i.multiple?Tt(i,t,n):Rt(i,t,n);if(void 0===a){if(null!=t&&""!==t){if(n.error(xt(o,i)),i.required||!1!==i.strict)return}else if(i.required)return void n.error(`"${o}" is required`);r[o]="default"in i?(0,s.Go)(i.default):void 0}else r[o]=a}return r}function Tt(t,e,n){if(null==e)return;if("enum"===t.type&&t.allowAll&&"all"===e)return Ot(t.values).slice();const r=Array.isArray(e)?e:[e],o=[];for(const e of r){const r=Rt(t,e,n);if(void 0===r){if(!1!==t.strict)return}else o.push(r)}return!1===t.strict&&0===o.length&&r.length>0?void 0:o}const It=/(datadog|ddog|datad0g|dd0g)/;function Rt(t,e,n){if("schema"===t.type){if("object"!=typeof e||null===e)return;return At(t.schema,e,n)}if("union"!==t.type){if(null!=e)switch(t.type){case"function":return"function"==typeof e?e:void 0;case"string":return"string"==typeof e&&e.length>0?e:void 0;case"number":return"number"==typeof e&&Number.isFinite(e)&&(void 0===t.min||e>=t.min)&&(void 0===t.max||e<=t.max)?e:void 0;case"percentage":return(0,I.fp)(e)?e:void 0;case"boolean":return"boolean"==typeof e?e:!1===t.strict?!!e:void 0;case"site":if("string"!=typeof e||!It.test(e))return;return e;case"match-option":return(0,I.Vl)(e)?e:void 0;case"enum":return"string"==typeof e&&Ot(t.values).includes(e)?e:void 0}}else{if(null==e)return;for(const r of t.variants){const t=Rt(r,e,n);if(void 0!==t)return t}}}function Ot(t){return Array.isArray(t)?t:Object.values(t)}var Nt=n(9056);const Mt=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function Pt(t,e){for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Dt(t,e,n=""){const r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:`${t.slice(0,o)}${n}`}function Lt(t,e,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const i="expires="+o.toUTCString(),s=r?.crossSite?"none":"strict",a=r?.domain?";domain="+r.domain:"",c=r?.secure?";secure":"",u=r?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${i};path=/;samesite=${s}${a}${c}${u}`}function Vt(t){const e=Pt(qt(),t);if(""!==e)return e}function Ut(t){return function(t){const e=new Map;for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;{const t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}}return e}(qt()).get(t)||[]}let $t,zt;function jt(t){return $t||($t=function(t){const e=new Map;for(Mt.lastIndex=0;;){const n=Mt.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(qt())),$t.get(t)}function qt(){try{return document.cookie}catch{return""}}function Bt(t,e){Lt(t,"",0,e)}var Ft=n(5358),Gt=n(5387);function Wt(t,e){e.lastIndex=0;const n=e.exec(t);if(!n)return;const[r,o]=n;return o||r}const Ht=/[a-zA-Z_$]/,Jt=/[a-zA-Z0-9_$]/,Kt=/[0-9]/,Qt=/[a-fA-F0-9]/,Yt={0:()=>!1,1:()=>!1,2:t=>Ht.test(t),3:t=>Jt.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>Kt.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?(e.quote+"/\\bfnrtu").includes(t):!!(e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5)&&Qt.test(t)},Xt={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},Zt=[2,3,7,10],te=[4,5,6];function ee(t){return"\"'/\\bfnrt".includes(t)||t.startsWith("u")&&5===t.length}const ne={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function re(t){return t.startsWith("u")?String.fromCharCode(parseInt(t.slice(1),16)):ne[t]}const oe={hit:"success",miss:"missing",error:"failure"};function ie(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}const se=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];function ae(t,e,n,r){const o={...t};if(e.rum){const t=e.rum;se.forEach(e=>{e in t&&(o[e]=i(t[e]))}),Object.keys(n).forEach(e=>{var r;void 0!==t[e]&&(r=n[e],t[e].forEach(({key:t,value:e})=>{r.setContextProperty(t,i(e))}))})}return void 0!==e.profiling?.sampleRate&&(o.profilingSampleRate=e.profiling.sampleRate),o;function i(t){if(Array.isArray(t))return t.map(i);if((0,I.OE)(t)){if("rcSerializedType"in t){const e=t.rcSerializedType;switch(e){case"string":return t.value;case"regex":return ue(t.value);case"dynamic":return function(t){const e=t.strategy;let n;switch(e){case"cookie":n=function({name:t}){const e=Vt(t);return r.increment("cookie",void 0!==e?"success":"missing"),e}(t);break;case"dom":n=function({selector:t,attribute:e}){let n;try{n=document.querySelector(t)}catch{return R.V.error(`Invalid selector in the remote configuration: '${t}'`),void r.increment("dom","failure")}if(!n)return void r.increment("dom","missing");if(function(t,e){return"password"===t.getAttribute("type")&&"value"===e}(n,e))return R.V.error(`Forbidden element selected by the remote configuration: '${t}'`),void r.increment("dom","failure");const o=void 0!==e?n.getAttribute(e):n.textContent;if(null!==o)return r.increment("dom","success"),o;r.increment("dom","missing")}(t);break;case"js":n=function({path:t}){let e=window;const n=function(t){const e=[];let n,r=0;const o={quote:void 0,escapeSequence:void 0};let i="";for(const s of t){if(n=Xt[r].find(t=>Yt[t](s,o)),!n)return[];if(void 0!==o.escapeSequence&&12!==n){if(!ee(o.escapeSequence))return[];i+=re(o.escapeSequence),o.escapeSequence=void 0}Zt.includes(n)?i+=s:te.includes(n)&&""!==i?(e.push(i),i=""):12===n?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${s}`:s:8===n?o.quote=s:9===n&&(o.quote=void 0),r=n}return Xt[r].includes(1)?(""!==i&&e.push(i),e):[]}(t);if(0===n.length)return R.V.error(`Invalid JSON path in the remote configuration: '${t}'`),void r.increment("js","failure");for(const o of n){if(!(o in e))return void r.increment("js","missing");try{e=e[o]}catch(e){return R.V.error(`Error accessing: '${t}'`,e),void r.increment("js","failure")}}return r.increment("js","success"),e}(t);break;case"localStorage":n=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{return void r.increment("localStorage","failure")}return r.increment("localStorage",null!==e?"success":"missing"),e??void 0}(t);break;default:return void R.V.error(`Unsupported remote configuration: "strategy": "${e}"`)}const o=t.extractor;return void 0!==o&&"string"==typeof n?function(t,e){const n=ue(t.value);if(void 0!==n)return Wt(e,n)}(o,n):n}(t);default:return void R.V.error(`Unsupported remote configuration: "rcSerializedType": "${e}"`)}}return(0,Nt.LG)(t,i)}return t}}function ce(){const t={fetch:{}};return{get:()=>t,increment(e,n){t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}function ue(t){try{return RegExp(t)}catch{R.V.error(`Invalid regex in the remote configuration: '${t}'`)}}function le(t){const e=t.headers?.get("last-modified");if(!e)return;const n=new Date(e).getTime();return isNaN(n)?void 0:n}async function de(t){let e,n;try{e=await(0,Ft.h)(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;const e=fe(t);return(0,Gt.Hg)({site:t.site,path:`/v1/${encodeURIComponent(e)}.json`,subdomain:"sdk-configuration"})}(t)),e.ok&&(n=await e.json())}catch{}return e&&n?n.rum||n.profiling?{ok:!0,value:n,lastModified:le(e)}:{ok:!1,error:Error("No remote configuration for RUM.")}:{ok:!1,error:Error("Error fetching the remote configuration.")}}function fe(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}const pe=["tracecontext","datadog"],me=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],he={LOW:"low",MEDIUM:"medium",HIGH:"high"},ge={[he.LOW]:{maxFramesPerSecond:1,hashingMaxDimension:50,maxImageDimension:600,encodeQuality:.3},[he.MEDIUM]:{maxFramesPerSecond:4,hashingMaxDimension:100,maxImageDimension:1e3,encodeQuality:.5},[he.HIGH]:{maxFramesPerSecond:8,hashingMaxDimension:100,maxImageDimension:1280,encodeQuality:.75}},ve={..._t,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},quality:{type:"enum",values:he,default:he.MEDIUM}}},defaultPrivacyLevel:{type:"enum",values:yt,default:yt.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:bt,default:bt.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:pe}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function ye(t,e,n){return!(0,wt.d0)()&&(t??(!e&&"rum-salesforce"!==n))}function be(t){const e=new Set;return(0,Et.EI)(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(t=>{_e(t)?.propagatorTypes.forEach(t=>e.add(t))}),Array.from(e)}function _e(t){return(0,I.Vl)(t)?{match:t,propagatorTypes:pe}:(0,I.OE)(t)&&(0,I.Vl)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||pe}:void 0}function we(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return R.V.warn("allowedGraphQlUrls should be an array"),[];const e=[];return t.allowedGraphQlUrls.forEach(t=>{(0,I.Vl)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,I.OE)(t)&&(0,I.Vl)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}const Se=["request","response","any"];function ke(t){const e=t.trackResourceHeaders;if(void 0===e||!1===e)return[];if(!0===e)return me.map(t=>({name:t}));if(!Array.isArray(e))return R.V.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return R.V.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return e.forEach((t,e)=>{if(!(0,I.OE)(t))return void R.V.warn(`trackResourceHeaders[${e}] should be a MatchHeader object`);if(void 0!==t.name&&!(0,I.Vl)(t.name))return void R.V.warn(`trackResourceHeaders[${e}].name should be a MatchOption`);if(void 0!==t.url&&!(0,I.Vl)(t.url))return void R.V.warn(`trackResourceHeaders[${e}].url should be a MatchOption`);if(void 0!==t.extractor&&!(t.extractor instanceof RegExp))return void R.V.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`);if(void 0!==t.location&&("string"!=typeof t.location||!Se.includes(t.location)))return void R.V.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`);const{name:r,...o}=t;n.push({...o,...void 0!==r?{name:"string"==typeof r?r.toLowerCase():r}:{}})}),n}function Ce(t){return(0,Et.EI)(t)&&t.some(t=>(0,I.OE)(t)&&t.trackResponseErrors)}var Ee=n(2423);const xe=[];function Ae(t,e,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;const r=function(t,e){return`_dd_c_${t}_${e}`}(e,n);xe.push((0,_.q2)(window,"storage",({key:e})=>{r===e&&t.setContext(i())})),t.changeObservable.subscribe(function(){localStorage.setItem(r,JSON.stringify(t.getContext()))});const o=(0,s.kg)(i(),t.getContext());function i(){const t=localStorage.getItem(r);return t?(0,Nt.XU)(t)??{}:{}}(0,Nt.RI)(o)||t.setContext(o)}function Te(t,e,n){const r={...t};for(const[t,{required:o,type:i}]of Object.entries(e))"string"!==i||Ie(r[t])||(r[t]=r[t]+""),o&&Ie(r[t])&&R.V.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function Ie(t){return null==t||""===t}function Re(t="",{propertiesConfig:e={}}={}){let n={};const r=new c.cP,o={getContext:()=>(0,s.Go)(n),setContext(i){!function(t){const e="object"===(0,I.Pw)(t);return e||R.V.error("Unsupported context:",t),e}(i)?o.clearContext():n=O(Te(i,e,t)),r.notify()},setContextProperty(o,i){n=O(Te({...n,[o]:i},e,t)),r.notify()},removeContextProperty(o){delete n[o],Te(n,e,t),r.notify()},clearContext(){n={},r.notify()},changeObservable:r};return o}function Oe(){return Re("global context")}var Ne=n(5119);function Me(){return Re("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function Pe(){return Re("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function De(t,e,n=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){R.V.error(t)}return!1})}const Le=["chrome-extension://","moz-extension://"];function Ve(t){return Le.some(e=>t.includes(e))}var Ue=n(3935),$e=n(8975),ze=n(2511),je=n(4215),qe=n(8424),Be=n(603);const Fe=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Ge(t){return t.created?Number(t.created):void 0}function We(t){const e=t.expire&&Number(t.expire),n=Ge(t);if(e&&n)return Math.min(e,n+Be.AQ)}function He(t,e){const n={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function Je(t){return(0,Nt.RI)(t)}function Ke(t){return void 0!==t.isExpired||!function(t){const e=We(t);return!!e&&(0,r.x3)()<e}(t)}function Qe(t){t.expire=(0,r.x3)()+Be.HB+""}function Ye(t){return(0,qe.WP)(t).map(([t,e])=>"anonymousId"===t?"aid="+e:`${t}=${e}`).join("&")}function Xe(t){const e={};return function(t){return!!t&&(-1!==t.indexOf("&")||Fe.test(t))}(t)&&t.split("&").forEach(t=>{const n=Fe.exec(t);if(null!==n){const[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}}),e}function Ze(t,e){return Je(t)?(e.trackAnonymousUser&&(t.anonymousId=(0,a.l)()),He(t,e)):t}function tn(t,e){if(Je(t))return t;let n=t;return Ke(t)&&(n=He(t,e)),n.id||(n.id=(0,a.l)(),n.created=(0,r.x3)()+""),e.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=(0,a.l)()),delete n.isExpired,Qe(n),n}async function en(t,e){const n="dd_cookie_test_"+(0,a.l)(),r="test",o=t(n,e);try{return await o.getAllAndSet(()=>({value:r,expireDelay:6e4})),(await o.getAll()).includes(r)}catch(t){return R.V.error(t),!1}finally{try{await o.delete()}catch{}}}function nn(t,e){const n=(0,i.B)(l.J.cookieStore),o=new c.cP(()=>(0,_.q2)(n,"change",e=>{(e.changed.some(e=>e.name===t)||e.deleted.some(e=>e.name===t))&&o.notify()}).stop);return{async getAll(){return(await n.getAll(t)).map(t=>t.value)},delete(){return n.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned})},async getAllAndSet(o){const i=(await n.getAll(t)).map(t=>t.value),{value:s,expireDelay:a}=o(i);try{await n.set({name:t,value:s,expires:(0,r.x3)()+a,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch{}},observable:o}}function rn(t,e){let n=Ut(t);const r=new c.cP(()=>{const e=(0,$e.yb)(()=>{o(Ut(t))},1e3);return()=>{(0,$e.vG)(e)}});function o(t){t+""!=n+""&&(n=t,r.notify())}return{getAll(){return Promise.resolve(Ut(t))},async getAllAndSet(n){const r=Ut(t),{value:i,expireDelay:s}=n(r);Lt(t,i,s,e),await Promise.resolve(),o([i])},async delete(){Bt(t,e),await Promise.resolve(),o([])},observable:r}}function on(){const t=(0,i.B)(l.J.cookieStore);return!(!t||!(0,_.BX)(t,"change"))}const sn="_dd_s_v2";let an;function cn(t,e){return 1===t?nn(sn,e):rn(sn,e)}function un(t,e){let n;for(const r of t.slice().reverse())if(n=Xe(r),n.c===e)break;return delete n?.c,n??{}}function ln(t){let e=0;return e|=0,e|=(t.domain?t.domain.split(".").length-1:0)<<1,e|=t.crossSite?1:0,e.toString(16)}const dn="_DD_SESSION";async function fn(t){const e=void 0!==(n=t.sessionPersistence)?n:l.W?[Be.Q_.MEMORY]:[Be.Q_.COOKIE];var n;for(const n of e){const e=await pn(n,t);if(void 0!==e)return e}}function pn(t,e){switch(t){case Be.Q_.COOKIE:return async function(t){const e=function(t){const e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){const t=function(t=l.J.location?.hostname??"",e=("undefined"!=typeof document?document.referrer:"")){if("undefined"!=typeof document){if(void 0===zt){const n=function(t,e){try{return t||(0,d.c$)(e).hostname}catch{}}(t,e);if(n){const t="dd_site_test_"+(0,a.l)(),e="test",r=n.split(".");let o=r.pop();try{for(;r.length&&!Vt(t);)o=`${r.pop()}.${o}`,Lt(t,e,1e3,{domain:o});Bt(t,{domain:o})}catch{return}zt=o}}return zt}}();if(!t)return;e.domain=t}return e}(t);if(e)return on()&&await en(nn,e)?{type:Be.Q_.COOKIE,cookieOptions:e,cookieApi:1}:await en(rn,e)?{type:Be.Q_.COOKIE,cookieOptions:e,cookieApi:0}:void 0}(e);case Be.Q_.LOCAL_STORAGE:return function(){try{const t=(0,a.l)(),e="_dd_test_"+t;localStorage.setItem(e,t);const n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:Be.Q_.LOCAL_STORAGE}:void 0}catch{return}}();case Be.Q_.MEMORY:return{type:Be.Q_.MEMORY};default:return void R.V.error(`Invalid session persistence '${t+""}'`)}}function mn(t,e){switch(t.type){case Be.Q_.COOKIE:return function(t,e){const{cookieOptions:n,cookieApi:r}=t,o=new c.cP,s=!!e.trackAnonymousUser,a=ln(n),u=(0,i.B)(cn)(r,n);let l=!0;function d(t){return u.getAllAndSet(e=>{let r=un(e,a);l&&(0,Nt.RI)(r)&&(r=un(Ut("_dd_s"),a)),l=!1;const o=function(t,e){return Ye((0,Nt.RI)(t)?t:{...t,c:ln(e)})}(t(r),n);return{value:o,expireDelay:s?Be._P:Be.AQ}})}return u.observable.subscribe(()=>{u.getAll().then(t=>{o.notify(un(t,a))}).catch(t=>(0,f.Dx)(Error("Error while reading session cookies on change: "+t)))}),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(sn,()=>d(t)).catch(t=>{if(!function(t){return t instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable")||t.message.includes("Responsible document is not fully active")||t.message.includes("The document is not active"))}(t))throw t}):(an=(an??Promise.resolve()).then(()=>d(t)),await an)},sessionObservable:o}}(t,e);case Be.Q_.LOCAL_STORAGE:return function(){const t=new c.cP(t=>(0,_.q2)(window,"storage",e=>{e.key===sn&&e.storageArea===localStorage&&t.notify(Xe(e.newValue))}).stop);let e=!0;return{async setSessionState(n,r){let o=Xe(localStorage.getItem(sn));e&&Je(o)&&(o=Xe(localStorage.getItem("_dd_s"))),e=!1;const i=n(o);localStorage.setItem(sn,Ye(i)),await Promise.resolve(),t.notify(i)},sessionObservable:t}}();case Be.Q_.MEMORY:return function(){const t=l.J;t[dn]||(t[dn]={});const e=t[dn],n=new c.cP,r=e.onChange;return e.onChange=t=>{r?.(t),n.notify(t)},{async setSessionState(t,n){const r=e.state??{},o=(0,Nt.yG)(t(r));e.state=o,await Promise.resolve(),e.onChange?.(o)},sessionObservable:n}}()}}const hn=12*r.MA;let gn=[];async function vn(t,e){const n=(0,r.$S)(),o=new c.cP,s=new c.cP,a=await(0,i.B)(fn)(t);if(!a)return void R.V.warn("No storage available for session. We will not send any data.");const u=(0,i.B)(mn)(a,t),d=(0,ze.qj)({maxEntries:1e3});gn.push(()=>d.stop());let p=!1;const{throttled:m,cancel:h}=(0,Ue.n)(()=>{p=!1,u.setSessionState(e=>tn(e,t),"expandOrRenewOnActivity").catch(f.Dx)},1e3);let g;gn.push(h),gn.push(()=>(0,$e.DJ)(g));let v=!1;gn.push(()=>{v=!0});let y=await b().catch(t=>(0,f.Dx)(Error("Error while resolving initial session state: "+t)));if(y&&!v){for(;!e.isGranted();){if(C(),await new Promise(t=>e.onGrantedOnce(t)),v)return;if(y=await b().catch(f.Dx),!y||v)return}return d.add(E(y),(0,r.Oc)().relative),w(y),function(){const t=u.sessionObservable.subscribe(t=>{w(t),S(t)});gn.push(()=>t.unsubscribe())}(),e.observable.subscribe(()=>{e.isGranted()?(p=!1,u.setSessionState(e=>tn(e,t),"expandOrRenewOnConsent").catch(f.Dx)):C()}),l.W||(function(t){const{stop:e}=(0,_.lQ)(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});gn.push(e)}(k),function(){const t=()=>{"visible"===document.visibilityState&&(p||u.setSessionState(t=>function(t){return Ke(t)||Je(t)||!t.id||Qe(t),t}(t),"expandOnVisibility").catch(f.Dx))},{stop:e}=(0,_.q2)(document,"visibilitychange",t);gn.push(e);const n=(0,$e.yb)(t,6e4);gn.push(()=>{(0,$e.vG)(n)})}(),function(){const{stop:e}=(0,_.q2)(window,"resume",()=>{u.setSessionState(e=>Ze(e,t),"initializeOnResume").catch(f.Dx)},{capture:!0});gn.push(e)}()),(0,x.Gk)("Session manager init metrics",{metrics:{duration:(0,r.vk)(n,(0,r.$S)())}}),{findSession(t,e){return d.find(t,e)},findTrackedSession(e,{returnInactive:n=!1,maxAge:o=hn}={}){const i=d.find(e,{returnInactive:n});if(i&&"invalid"!==i.id&&(0,je.$5)(i.id,t.sessionSampleRate)&&!((0,r.x3)()-i.createdAt>o))return i},renewObservable:o,expireObservable:s,expire:C,expandOrRenew:k,updateSessionState(t){u.setSessionState(e=>({...e,...t}),"updateState").catch(f.Dx)}}}async function b(){let e={};return await u.setSessionState(n=>{const r=Ze(n,t);return e=tn(r,t),e},"initialize"),e}function w(n){(0,$e.DJ)(g);const o=We(n);if(o){const n=o-(0,r.x3)();g=(0,$e.wg)(()=>{u.setSessionState(n=>Ke(n)?(e.isGranted()||delete n.anonymousId,He(n,t)):n,"expireOnTimeout").catch(f.Dx)},n)}}function S(t){const e=d.find(),n=void 0!==e?.id,i=void 0!==t.id,a=n&&i&&e.id!==t.id;if(!n||i&&!a||(p=!0,s.notify(),d.closeActive((0,r.$S)())),!i||n&&!a)n&&i&&!a&&(e.isReplayForced=!!t.forcedReplay);else{if(p)return;d.add(E(t),(0,r.$S)()),o.notify()}}function k(){e.isGranted()&&m()}function C(){h();const n=He(d.find(),t);e.isGranted()||delete n.anonymousId,S(n),u.setSessionState(n=>(e.isGranted()||delete n.anonymousId,He(n,t)),"expire").catch(f.Dx)}function E(t){const e=Ge(t)??(0,r.nx)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}const yn="datadog-synthetics-",bn=yn+"public-id",_n=yn+"result-id",wn=yn+"injects-rum",Sn=yn+"rum-context";function kn(){return!(l.W||!l.J._DATADOG_SYNTHETICS_INJECTS_RUM&&!jt(wn))}function Cn(){const t=function(){const t=l.J._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;const e=jt(Sn);return e?(0,Nt.XU)(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||jt(bn),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||jt(_n)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0;var e}var En=n(350),xn=n(6448);const An="_dd_tab_id";let Tn;var In=n(8780);const Rn=class{constructor(){this.callbacks={}}notify(t,e){const n=this.callbacks[t];n&&n.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}},On=Be.AQ,Nn="fetch",Mn="other",Pn=Nn,Dn=[["document",t=>"navigation"===t],["xhr",t=>"xmlhttprequest"===t],[Nn,t=>"fetch"===t],["beacon",t=>"beacon"===t],["css",(t,e)=>/\.css$/i.test(e)],["js",(t,e)=>/\.js$/i.test(e)],["image",(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],["font",(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],["media",(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function Ln(t){const e=t.name;if(!(0,d.AY)(e))return Mn;const n=(0,d.L2)(e);for(const[e,r]of Dn)if(r(t.initiatorType,n))return e;return Mn}function Vn(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Un(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function $n(t){if(!function(t){const e=Vn(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||Vn(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}(t))return;const{startTime:e,fetchStart:n,workerStart:r,redirectStart:o,redirectEnd:i,domainLookupStart:s,domainLookupEnd:a,connectStart:c,secureConnectionStart:u,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,m={download:zn(e,f,p),first_byte:zn(e,d,f)};return 0<r&&r<n&&(m.worker=zn(e,r,n)),n<l&&(m.connect=zn(e,c,l),c<=u&&u<=l&&(m.ssl=zn(e,u,l))),n<a&&(m.dns=zn(e,s,a)),e<i&&(m.redirect=zn(e,o,i)),m}function zn(t,e,n){if(t<=e&&e<=n)return{duration:(0,r.Zj)((0,r.vk)(e,n)),start:(0,r.Zj)((0,r.vk)(t,e))}}function jn(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function qn(t){return""===t.deliveryType?"other":t.deliveryType}function Bn(t){if(t.startTime<t.responseStart){const{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Fn(t){return t&&(!(0,vt.wo)(t)||(0,gt.sr)(gt.R9.TRACK_INTAKE_REQUESTS))}const Gn=/data:(.+)?(;base64)?,/g;function Wn(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;const n=t.substring(0,100).match(Gn);return n?n[0]+"[...]":t}function Hn(){return Jn(63)}function Jn(t){const e=crypto.getRandomValues(new Uint32Array(2));let n=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(n&=0x7fffffffffffffffn),n}function Kn(t){return t.toString(16).padStart(16,"0")}function Qn(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Yn(t,e,n,r,o,i){const s=n.findTrackedSession();if(!s)return;const a=t.allowedTracingUrls.find(t=>De([t.match],e.url,!0));if(!a)return;const c=(0,je.$5)(s.id,(0,je.it)(t.sessionSampleRate,t.traceSampleRate)),u=(0,wt.d0)()?(0,wt.Y9)()?.getIsTraceSampled()??c:c;(u||t.traceContextInjection===bt.ALL)&&(e.traceSampled=u,e.traceId=Jn(64),e.spanId=Hn(),i(function(t,e,n,r,o,i,s,a){const c={};if(o.forEach(r=>{switch(r){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${Kn(t)}-${Kn(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${Kn(t)}-${Kn(e)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":Kn(t),"X-B3-SpanId":Kn(e),"X-B3-Sampled":n?"1":"0"})}}),a.propagateTraceBaggage){const t={"session.id":r},e=i.getContext().id;"string"==typeof e&&(t["user.id"]=e);const n=s.getContext().id;"string"==typeof n&&(t["account.id"]=n);const o=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");o&&(c.baggage=o)}return c}(e.traceId,e.spanId,e.traceSampled,s.id,a.propagatorTypes,r,o,t)))}function Xn(t,e){return e.allowedGraphQlUrls.find(e=>De([e.match],t))}let Zn,tr=1;function er(t){t.requestIndex||(t.requestIndex=tr++)}function nr(t){return"string"==typeof t?(0,h.WW)(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:0}function rr(t){const e=t.id,n=t.connectingClocks,o=n.timeStamp,i=or(t).timeStamp;switch(t.phase){case"connecting":return sr(i,{name:"websocket_connecting",websocket:{id:e,url:t.url,requested_protocols:t.requestedProtocols,connecting_date:o}});case"open":return sr(i,{name:"websocket_open",websocket:{id:e,connecting_duration:(0,r.Zj)((0,r.vk)(n.relative,t.openClocks.relative)),open_date:ir(n,t.openClocks),selected_protocol:t.selectedProtocol,selected_extensions:t.selectedExtensions,snapshot_version:t.snapshotVersion,snapshot:ar(t.snapshot)}});case"closing":return sr(i,{name:"websocket_closing",websocket:{id:e,closing_date:ir(n,t.closingClocks),close_initiator:"client"}});case"closed":return sr(i,{name:"websocket_closed",websocket:{id:e,url:t.url,closed_date:ir(n,t.endClocks),duration:(0,r.Zj)((0,r.vk)(n.relative,t.endClocks.relative)),tracking_end_reason:t.trackingEndReason,close_code:t.closeEvent?.code,close_reason:t.closeEvent?.reason,was_clean:t.closeEvent?.wasClean,snapshot_version:t.snapshotVersion,snapshot:t.snapshot&&ar(t.snapshot,t)}})}}function or(t){switch(t.phase){case"connecting":return t.connectingClocks;case"open":return t.reportClocks;case"closing":return t.closingClocks;case"closed":return t.endClocks}}function ir(t,e){return Math.round((0,r.Gw)(t.timeStamp,(0,r.vk)(t.relative,e.relative)))}function sr(t,e){return{date:t,type:at.VITAL,vital:{id:(0,a.l)(),type:ht.WEBSOCKET,...e}}}function ar({inbound:t,outbound:e,bufferedAmountMax:n},o){return{inbound:{...cr(t),silence_before_close:(0,r.Zj)(o?.silenceBeforeClose.inbound)},outbound:{...cr(e),buffered_amount_max:n,silence_before_close:(0,r.Zj)(o?.silenceBeforeClose.outbound),buffered_amount_at_close:o?.bufferedAmountAtClose}}}function cr(t){return{message_count:t.messageCount,message_size_total:t.messageSizeTotal,message_size_max:t.messageSizeMax,time_to_first_message:(0,r.Zj)(t.timeToFirstMessage),longest_silence:(0,r.Zj)(t.longestSilence)}}function ur(t){const e="string"==typeof t?[t]:t;return e&&e.length>0?e:void 0}function lr(t,e,n,o,i){void 0===e?i&&(t.timeToFirstMessage=(0,r.vk)(i.relative,o)):t.longestSilence=pr(t.longestSilence,(0,r.vk)(e,o)),t.messageCount+=1,t.messageSizeTotal+=n,t.messageSizeMax=Math.max(t.messageSizeMax,n)}function dr(t,e,n){return void 0===t?n.longestSilence:pr(n.longestSilence,(0,r.vk)(t,e))}function fr(t,e){return void 0===t?void 0:(0,r.vk)(t,e)}function pr(t,e){return Math.max(t,e)}function mr(t){return Ct(t)&&t<0?void 0:t}function hr(t){return t.nodeType===Node.TEXT_NODE}function gr(t){return t.nodeType===Node.ELEMENT_NODE}function vr(t){return gr(t)&&"CANVAS"===t.tagName}function yr(t){return gr(t)&&!!t.shadowRoot}function br(t){const e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&gr(e.host)}function _r(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;yr(t)&&e(t.shadowRoot)}function wr(t){return br(t)?t.host:t.parentNode}function Sr(t){if(t.parentElement)return t.parentElement;const e=t.parentNode;return e&&br(e)?e.host:null}var kr;function Cr(t){return new c.cP(e=>{const n=t=>{const n=function(t){return t.filter(t=>!function(t){return!(t.entryType!==kr.RESOURCE||Fn(t.name)&&function(t){return t.duration>=0}(t))}(t))}(t);n.length>0&&e.notify(n)};let r,o=!0;const i=new PerformanceObserver((0,f.dm)(t=>{o?r=(0,$e.wg)(()=>n(t.getEntries())):n(t.getEntries())}));return i.observe(t),o=!1,!Er&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Er=(0,_.q2)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{i.disconnect(),(0,$e.DJ)(r)}})}let Er;function xr(t){return PerformanceObserver.supportedEntryTypes.includes(t)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource",t.SOFT_NAVIGATION="soft-navigation",t.INTERACTION_CONTENTFUL_PAINT="interaction-contentful-paint",t.VISIBILITY_STATE="visibility-state"}(kr||(kr={}));const Ar="data-dd-excluded-activity-mutations";function Tr(t,e,n,o,s,a){const c=(0,i.B)(Ir)(t,e,n,o);let u,l=!1;const d=(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!1})),100),p=void 0!==a?(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!0,end:(0,r.nx)()})),a):void 0,m=c.subscribe(({isBusy:t})=>{(0,$e.DJ)(d),(0,$e.DJ)(u);const e=(0,r.nx)();t||(u=(0,$e.wg)((0,f.dm)(()=>g({hadActivity:!0,end:e})),100))}),h=()=>{l=!0,(0,$e.DJ)(d),(0,$e.DJ)(u),(0,$e.DJ)(p),m.unsubscribe()};function g(t){l||(h(),s(t))}return{stop:h}}function Ir(t,e,n,r){return new c.cP(o=>{const i=[];let s,a=0;return i.push(e.subscribe(t=>{t.every(Or)||c()}),n.subscribe(c),Cr({type:kr.RESOURCE}).subscribe(t=>{t.some(t=>!Rr(r,t.name))&&c()}),t.subscribe(7,t=>{Rr(r,t.url)||(void 0===s&&(s=t.requestIndex),a+=1,c())}),t.subscribe(8,t=>{Rr(r,t.url)||void 0===s||t.requestIndex<s||(a-=1,c())})),()=>{i.forEach(t=>t.unsubscribe())};function c(){o.notify({isBusy:a>0})}})}function Rr(t,e){return De(t.excludedActivityUrls,e)}function Or(t){const e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&gr(e)&&e.matches(`[${Ar}], [${Ar}] *`))}const Nr="data-dd-action-name",Mr="Masked Element",Pr=[Nr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Dr=[qr,zr],Lr=[qr,function(t){if("BODY"===t.tagName)return;const e=t.classList;for(let n=0;n<e.length;n+=1){const r=e[n];if(!$r(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}},jr];function Vr(t,e){if(!t.isConnected)return;const n=function(t){const e=[];let n=t;for(;n;){const t=n.getRootNode();if(e.push({rootNode:t,target:n}),!br(t))break;n=t.host}return e.reverse()}(t),r=[];for(const{rootNode:t,target:o}of n){const n=Ur(o,t,e);if(!n)return;r.push(n)}return r.join("::shadow ")}function Ur(t,e,n){let r,o=t;for(;o&&"HTML"!==o.nodeName;){const t=Wr(o,e,Dr,Hr,n,r);if(t)return Kr(t,r);r=Kr(Wr(o,e,Lr,Jr,n,r)||Fr(o),r),o=o.parentElement}return r}function $r(t){return/[0-9]/.test(t)}function zr(t){if(t.id&&!$r(t.id))return"#"+CSS.escape(t.id)}function jr(t){return CSS.escape(t.tagName)}function qr(t,e){if(e){const t=n(e);if(t)return t}for(const t of Pr){const e=n(t);if(e)return e}function n(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${Br(e,t.getAttribute(e))}`}}function Br(t,e){return`[${t}="${CSS.escape(e)}"]`}function Fr(t){const e=Gr(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}function Gr(t){let e=t.parentNode.firstElementChild,n=1;for(;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return n}function Wr(t,e,n,r,o,i){for(const s of n){const n=s(t,o);if(n&&r(t,e,n,i))return n}}function Hr(t,e,n,r){return 1===e.querySelectorAll(Kr(n,r)).length}function Jr(t,e,n,r){let o;if(void 0===r)o=t=>t.matches(n);else{const t=Kr(n+":scope",r);o=e=>null!==e.querySelector(t)}let i=t.previousElementSibling;for(;i;){if(o(i))return!1;i=i.previousElementSibling}for(i=t.nextElementSibling;i;){if(o(i))return!1;i=i.nextElementSibling}return!0}function Kr(t,e){return e?`${t}>${e}`:t}const Qr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:yt.ALLOW,MASK:yt.MASK,MASK_USER_INPUT:yt.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:yt.MASK_UNLESS_ALLOWLISTED},Yr="data-dd-privacy",Xr="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Zr={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function to(t){return`[${Yr}="${t}"], .dd-privacy-${t}`}function eo(t,e,n){if(n?.has(t))return n.get(t);const r=wr(t),o=r?eo(r,e,n):e,i=no(ro(t),o);return n&&n.set(t,i),i}function no(t,e){switch(e){case Qr.HIDDEN:case Qr.IGNORE:return e}switch(t){case Qr.ALLOW:case Qr.MASK:case Qr.MASK_USER_INPUT:case Qr.MASK_UNLESS_ALLOWLISTED:case Qr.HIDDEN:case Qr.IGNORE:return t;default:return e}}function ro(t){if(gr(t)){if("BASE"===t.tagName)return Qr.ALLOW;if("INPUT"===t.tagName){const e=t;if("password"===e.type||"email"===e.type||"tel"===e.type)return Qr.MASK;if("hidden"===e.type)return Qr.MASK;const n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Qr.MASK}return t.matches(to(Qr.HIDDEN))?Qr.HIDDEN:t.matches(to(Qr.MASK))?Qr.MASK:t.matches(to(Qr.MASK_UNLESS_ALLOWLISTED))?Qr.MASK_UNLESS_ALLOWLISTED:t.matches(to(Qr.MASK_USER_INPUT))?Qr.MASK_USER_INPUT:t.matches(to(Qr.ALLOW))?Qr.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){const t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){const n=e("name"),r=e("rel"),o=e("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(o)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(o)||/^product:/.test(o)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Qr.IGNORE:void 0}}function oo(t,e){switch(e){case Qr.MASK:case Qr.HIDDEN:case Qr.IGNORE:return!0;case Qr.MASK_UNLESS_ALLOWLISTED:return hr(t)?!!so(t.parentNode)||!uo(t.textContent||""):so(t)||vr(t);case Qr.MASK_USER_INPUT:return hr(t)?so(t.parentNode):so(t);default:return!1}}function io(t,e,n,r,o){if(r!==Qr.MASK&&r!==Qr.MASK_UNLESS_ALLOWLISTED)return!1;if(e===Yr||Pr.includes(e)||e===o.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":return!0;case"name":return"SLOT"!==t}return"A"===t&&"href"===e||"IFRAME"===t&&"srcdoc"===e||!(!n||!e.startsWith("data-"))||!("IMG"!==t&&"SOURCE"!==t||"src"!==e&&"srcset"!==e)}function so(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;const e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Zr[e.tagName]}function ao(t){return t.replace(/\S/g,"x")}function co(t,e){const n=t.parentElement?.tagName;let r=t.textContent||"";const o=e;return"SCRIPT"===n||o===Qr.HIDDEN?r="***":oo(t,o)&&("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n||(r="OPTION"===n?"***":ao(r))),"HEAD"!==n||r.trim()?r:""}function uo(t){return!t?.trim()||window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1}function lo({lifeCycle:t,isChildEvent:e,onChange:n=m.l}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=t.subscribe(13,t=>{if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case at.ERROR:r.errorCount+=1,n();break;case at.ACTION:r.actionCount+=1,t.action.frustration&&(r.frustrationCount+=t.action.frustration.type.length),n();break;case at.LONG_TASK:r.longTaskCount+=1,n();break;case at.RESOURCE:t._dd?.discarded||(r.resourceCount+=1,n())}});return{stop(){o.unsubscribe()},eventCounts:r}}function fo(t){const e=(0,ze.qj)({expireDelay:3e5}),n=new Map;function o(t){n.delete(t.key),t.eventCounts?.stop()}function i(){n.forEach(t=>{o(t)}),e.reset()}const c=t.subscribe(10,i);function u(t){const e=n.get(t);if(!e)return;const r=e.eventCounts?.eventCounts;return o(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:r}}return{start(r,o,i,s){const c=(0,a.l)(),l=e.add(c,o.relative);n.has(r)&&u(r);const d={id:c,key:r,startClocks:o,data:i,historyEntry:l,eventCounts:s?.isChildEvent?lo({lifeCycle:t,isChildEvent:s.isChildEvent(c)}):void 0};return n.set(r,d),d},stop(t,e,i){const a=n.get(t);if(!a)return;const c=i?(0,s.kg)(a.data,i):a.data;a.historyEntry.close(e.relative);const u=(0,r.vk)(a.startClocks.timeStamp,e.timeStamp),l=a.eventCounts?.eventCounts;return o(a),{...c,id:a.id,startClocks:a.startClocks,duration:u,counts:l}},discard:u,getCounts:t=>n.get(t)?.eventCounts?.eventCounts,findId:t=>e.findAll(t),stopAll(){c.unsubscribe(),i(),e.stop()}}}const po=["HTML","BODY"],mo=2048,ho=Pr.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),go=["aria-label","name","title","alt"];function vo(t,e,n){return[jr(t),zr(t)||""].concat(function(t,e,n){const r=[];for(const o of Array.from(t.attributes)){const i=o.name;if(n&&yo(t,i,e)){const e=eo(t,n.configuration.defaultPrivacyLevel,n.nodePrivacyLevelCache);if(e===Qr.HIDDEN||e===Qr.IGNORE)continue;const s=o.value;if(io(t.tagName,i,s,e,n.configuration)&&(e!==Qr.MASK_UNLESS_ALLOWLISTED||!uo(s)))continue;r.push(Br(CSS.escape(i),Dt(s,100)))}else e.includes(i)&&r.push(Br(i,o.value))}return r.sort()}(t,e,n),function(t){return Array.from(t.classList).filter(t=>!$r(t)).sort().map(t=>"."+CSS.escape(t))}(t),function(t){const e=Array.from(t.parentNode.children);if(e.length<=1)return"";const n=e.filter(e=>e.tagName===t.tagName),r=e.indexOf(t),o=Gr(t);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${o})`:""}`}(t),";")}function yo(t,e,n){return"href"===e?"A"===t.tagName:e.startsWith("data-")?e!==Yr&&!Pr.includes(e)&&(!$r(e)||n.includes(e)):go.includes(e)}function bo(t,e){return 0!==(t&e)}function _o(t){let e=0,n=t;for(;n;){const t=n.getAttribute("data-dd-ignore-frustration");if(null!==t){const n=t.split(/\s+/);if(""===t.trim()||n.includes("all"))return 7;n.includes("rage-click")&&(e|=1),n.includes("dead-click")&&(e|=2),n.includes("error-click")&&(e|=4)}if(7===e)break;n=Sr(n)}return e}function wo(t,e){const n=function(t,e){let n=t;for(;n;){if(n.matches(e))return n;n=Sr(n)}return null}(t,`[${e}]`);if(n)return xo(Eo(n.getAttribute(e).trim()))}const So=[(t,e,n)=>{if("labels"in t&&t.labels&&t.labels.length>0)return To(t.labels[0],e,n)},t=>{if("INPUT"===t.nodeName){const e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return{name:e.value,nameSource:"text_content"}}},(t,e,n)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"A"===t.nodeName||"button"===t.getAttribute("role")||"link"===t.getAttribute("role"))return To(t,e,n)},(t,e,n)=>Ao(t,"aria-label",e,n),(t,e,n)=>{const r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(e=>function(t,e){const n=t.getRootNode();if(n instanceof ShadowRoot){const t=n.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)).filter(t=>!!t).map(t=>Io(t,e,n)).join(" "),nameSource:"text_content"}},(t,e,n)=>Ao(t,"alt",e,n),(t,e,n)=>Ao(t,"name",e,n),(t,e,n)=>Ao(t,"title",e,n),(t,e,n)=>Ao(t,"placeholder",e,n),(t,e,n)=>{if("options"in t&&t.options.length>0)return To(t.options[0],e,n)}],ko=[(t,e,n)=>To(t,e,n)];function Co(t,e,n,r){let o=t,i=0;for(;i<=10&&o&&"BODY"!==o.nodeName&&"HTML"!==o.nodeName&&"HEAD"!==o.nodeName;){for(const t of e){const e=t(o,n,r);if(e){const{name:t,nameSource:n}=e,r=t?.trim();if(r)return{name:xo(Eo(r)),nameSource:n}}}if("FORM"===o.nodeName)break;o=Sr(o),i+=1}}function Eo(t){return t.replace(/\s+/g," ")}function xo(t){return t.length>100?Dt(t,100)+" [...]":t}function Ao(t,e,n,r){const{enablePrivacyForActionName:o,defaultPrivacyLevel:i}=n;let s=t.getAttribute(e);if(s&&o){const o=eo(t,i,r);io(t.tagName,e,s,o,n)&&(c=Mr,s=uo(a=s)?a:c||ao(a))}else s||(s="");var a,c;return{name:s,nameSource:"standard_attribute"}}function To(t,e,n){return{name:Io(t,e,n)||"",nameSource:"text_content"}}function Io(t,e,n){if(t.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:i}=e,s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){const e=eo(t,i,n);if(r&&e&&oo(t,e))return NodeFilter.FILTER_REJECT;if(gr(t)){if(t.hasAttribute(Nr)||o&&t.hasAttribute(o))return NodeFilter.FILTER_REJECT;const e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT});let a="";for(;s.nextNode();){const t=s.currentNode;gr(t)?("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(a+=" "):a+=t.textContent||""}return a.replace(/\s+/g," ").trim()}function Ro(){const t=window.getSelection();return!t||t.isCollapsed}function Oo(t){return t.target instanceof Element&&!1!==t.isPrimary}function No(t){if(bo(t.ignore,2))return!1;if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}const Mo=new Map;function Po(t,e){Mo.set(t,e),Mo.forEach((t,e)=>{(0,r.vk)(e,(0,r.$S)())>1e4&&Mo.delete(e)})}function Do(t){return e=>e.action?.id?.includes(t)??!1}function Lo(t,e,n,o){const i=fo(t),s=new c.cP;let a;t.subscribe(5,d),t.subscribe(11,t=>{t!==xn.y5.PAGE_TERMINATED&&d()});const{stop:u}=function({onPointerDown:t,onPointerUp:e}){let n,r,o={selection:!1,input:!1,scroll:!1};const i=[(0,_.q2)(window,"pointerdown",e=>{Oo(e)&&(n=Ro(),o={selection:!1,input:!1,scroll:!1},r=t(e))},{capture:!0}),(0,_.q2)(window,"selectionchange",()=>{n&&Ro()||(o.selection=!0)},{capture:!0}),(0,_.q2)(window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,_.q2)(window,"pointerup",t=>{if(Oo(t)&&r){const n=o;e(r,t,()=>n),r=void 0}},{capture:!0}),(0,_.q2)(window,"input",()=>{o.input=!0},{capture:!0})];return{stop(){i.forEach(t=>t.stop())}}}({onPointerDown:r=>function(t,e,n,r,o){let i;if(i=t.enablePrivacyForActionName?eo(Vo(r),t.defaultPrivacyLevel):Qr.ALLOW,i===Qr.HIDDEN)return;const s=function(t,e,n){const r=Vo(t),o=r.getBoundingClientRect(),i=Vr(r,n.actionNameAttribute),s=function(t,e){const n=t.filter(t=>t instanceof Element&&!po.includes(t.tagName));if(0===n.length)return"";const r=(0,gt.sr)(gt.R9.COMPOSED_PATH_SELECTOR_ATTRIBUTES),{actionNameAttribute:o}=e,i=r?ho.filter(t=>"action"!==t):ho,s=o?[o].concat(i):i,a=r?{configuration:{...e,actionNameAttribute:void 0},nodePrivacyLevelCache:new Map}:void 0;let c="";for(const t of n){const e=vo(t,s,a);if(a)for(const t of e){if(c.length+t.length>mo)return c;c+=t}else if(c+=e.join(""),c.length>=mo)return Dt(c,mo)}return c}(t.composedPath(),n);i&&Po(t.timeStamp,i);const{name:a,nameSource:c}=function(t,e,n=Qr.ALLOW){const r=new Map,{actionNameAttribute:o}=e,i=wo(t,Nr)||o&&wo(t,o);return i?{name:i,nameSource:"custom_attribute"}:n===Qr.MASK?{name:Mr,nameSource:"mask_placeholder"}:Co(t,So,e,r)||Co(t,ko,e,r)||{name:"",nameSource:"blank"}}(r,n,e);return{type:"click",target:{width:Math.round(o.width),height:Math.round(o.height),selector:i,composedPathSelector:s||void 0},position:{x:Math.round(t.clientX-o.left),y:Math.round(t.clientY-o.top)},name:a,nameSource:c}}(r,i,t);let a=!1;return Tr(e,n,o,t,t=>{a=t.hadActivity},100),{clickActionBase:s,ignore:_o(Vo(r)),hadActivityOnPointerDown:()=>a}}(o,t,e,r,n),onPointerUp({clickActionBase:a,ignore:c,hadActivityOnPointerDown:u},d,f){!function(t,e,n,o,i,s,a,c,u,l,d,f){const p=Uo(e,i,d,c,u,l);a(p);const m=c?.target?.selector;m&&Po(l.timeStamp,m);const{stop:h}=Tr(e,n,o,t,t=>{t.hadActivity&&t.end<p.startClocks.timeStamp?p.discard():t.hadActivity?p.stop(t.end):f()?p.stop(p.startClocks.timeStamp):p.stop()},1e4),g=e.subscribe(5,({endClocks:t})=>{p.stop(t.timeStamp)}),v=e.subscribe(11,t=>{t!==xn.y5.PAGE_TERMINATED&&p.stop((0,r.nx)())}),y=s.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{v.unsubscribe(),g.unsubscribe(),h(),y.unsubscribe()})}(o,t,e,n,i,s,l,a,c,d,f,u)}});return{stop(){d(),s.notify(),u(),i.stopAll()},findActionId:i.findId};function l(t){if(!a?.tryAppend(t)){const e=t.clone(),n=function(t){const o=[];let i,s=0;function c(t){t.stopObservable.subscribe(u),o.push(t),(0,$e.DJ)(i),i=(0,$e.wg)(l,1e3)}function u(){1===s&&o.every(t=>t.isStopped())&&(s=2,function(t,e){const{isRage:n}=function(t,e){if(function(t){if(t.some(t=>bo(t.ignore,1)||t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(No)&&e.addFrustration(mt),e.hasError&&!bo(e.ignore,4)&&e.addFrustration(pt),{isRage:!0};const n=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&!bo(t.ignore,4)&&t.addFrustration(pt),No(t)&&!n&&t.addFrustration(mt)}),{isRage:!1}}(t,e);n?(t.forEach(t=>t.discard()),e.stop((0,r.nx)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))}(o,e),a===n&&(a=void 0))}function l(){(0,$e.DJ)(i),0===s&&(s=1,u())}return c(t),{tryAppend(t){return 0===s&&(o.length>0&&(n=t,!(bo((e=o[o.length-1]).ignore,1)===bo(n.ignore,1)&&e.event.target===n.event.target&&(r=e.event,i=n.event,Math.sqrt(Math.pow(r.clientX-i.clientX,2)+Math.pow(r.clientY-i.clientY,2))<=100)&&e.event.timeStamp-n.event.timeStamp<=1e3))?(l(),!1):(c(t),!0));var e,n,r,i},stop(){l()}}}(t);a=n}}function d(){a&&a.stop()}}function Vo(t){if(t.composed&&yr(t.target)&&"function"==typeof t.composedPath){const e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}function Uo(t,e,n,o,i,s){const u=(0,a.l)(),l=(0,r.FR)(s.timeStamp),d=e.start(u,l,o,{isChildEvent:Do});t.notify(15,d);let f,p=0;const m=[],h=new c.cP;function g(t){0===p&&(p=1,f=t?e.stop(u,(0,r.jR)(t)):e.discard(u),h.notify())}return{event:s,ignore:i,stop:g,stopObservable:h,get hasError(){const t=f?.counts??e.getCounts(u);return!!t&&t.errorCount>0},get hasPageActivity(){return f&&"duration"in f},getUserActivity:n,addFrustration(t){m.push(t)},get startClocks(){return l},isStopped:()=>1===p||2===p,clone:()=>Uo(t,e,n,o,i,s),validate(e){if(g(),1!==p)return;if(!f)return;const n={frustrationTypes:m,events:e??[s],event:s,...f,counts:f.counts};t.notify(0,n),p=2},discard(){g(),p=2}}}function $o(t){const e=function(t){return"events"in t}(t),n=mr((0,r.Zj)(t.duration));return{rawRumEvent:{type:at.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==n&&{loading_time:n},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:{selector:t.target?.selector||void 0,width:t.target?.width||void 0,height:t.target?.height||void 0,composed_path_selector:t.target?.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}const zo="csp_violation";function jo(t){return{startClocks:(0,r.M8)(),source:G.g.REPORT,handling:"unhandled",...t}}function qo(t,e,n,r,o){return n?(0,D.Yn)({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}var Bo=n(7922);function Fo(){const t=[];function e(e){let r;if(!e||e.didTimeout){const t=performance.now();r=()=>30-(performance.now()-t)}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){(0,Bo.BB)(e,{timeout:1e3})}return{push(e){1===t.push(e)&&n()},stop(){t.length=0}}}var Go=n(7409);function Wo(){if(xr(kr.NAVIGATION)){const t=performance.getEntriesByType(kr.NAVIGATION)[0];if(t&&function(t){return!(t.loadEventEnd>0&&t.domComplete<=0)}(t))return t}const t=function(){const t={},e=performance.timing;for(const n in e)if(Ct(e[n])){const o=n,i=e[o];t[o]=0===i?0:(0,r.d6)(i)}return t}(),e={entryType:kr.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function Ho(t){return t.responseStart>=0&&t.responseStart<=(0,r.$S)()?t.responseStart:void 0}function Jo(t){const e=function(t){const e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return Ko(e?.content,n?.content)}(t)||function(t){const e=function(t){for(let e=0;e<t.childNodes.length;e+=1){const n=Qo(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){const n=t.body.childNodes[e],r=Qo(n);if(r)return r;if(!hr(n))break}}(t);if(e)return Ko(Pt(e,"trace-id"),Pt(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,r.uc)()-12e4))return e.traceId}function Ko(t,e){const n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function Qo(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){const e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function Yo(t,e,n){const o=e?function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(e,n):function(t,e){if("navigation"!==t.initiatorType)return;const n=(0,i.B)(Jo)(document);return n?{_dd:{trace_id:n,span_id:Hn().toString(),rule_psr:e.rulePsr}}:void 0}(t,n);if(!n.trackResources&&!o)return;const c=(0,r.FR)(t.startTime),u=function(t){const{duration:e,startTime:n,responseEnd:o}=t;return"navigation"===t.initiatorType||0===e&&n<o?(0,r.vk)(n,o):e}(t),l=function(t,e){const n=e.trackResourceHeaders;if(0===n.length||!t)return;const r=n.filter(e=>void 0===e.url||De([e.url],t.url,!0));if(0===r.length)return;const o=r.filter(t=>void 0===t.location||"any"===t.location||"response"===t.location),i=r.filter(t=>void 0===t.location||"any"===t.location||"request"===t.location),s=o.length>0?function(t,e){if(t.type===Pn&&t.response)return ni(t.response.headers,e);if("xhr"===t.type&&t.xhr){const n=t.xhr.getAllResponseHeaders();if(n)try{return ni(new Headers(function(t){const e=[],n=t.trim().split(/\r\n/);for(const t of n){const n=t.indexOf(":");n>0&&e.push([t.substring(0,n).trim(),t.substring(n+1).trim()])}return e}(n)),e)}catch{}}}(t,o):void 0,a=i.length>0?function(t,e){if(t.type!==Pn)return;let n;return t.init?.headers?n=new Headers(t.init.headers):t.input instanceof Request&&(n=t.input.headers),n?ni(n,e):void 0}(t,i):void 0;return s||a?{resource:{request:a?{headers:a}:void 0,response:s?{headers:s}:void 0}}:void 0}(e,n),d=(0,s.kg)({date:c.timeStamp,resource:{id:(0,a.l)(),duration:(0,r.Zj)(u),type:Ln(t),method:e?.method,status_code:e?e.status:(f=t.responseStatus,0===f?void 0:f),url:e?Wn(e.url):t.name,protocol:jn(t),delivery_type:qn(t),graphql:e&&Xo(e,n),render_blocking_status:t.renderBlockingStatus,...Bn(t),...$n(t)},type:at.RESOURCE,_dd:{discarded:!n.trackResources}},o,function(t){const e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}(t),l);var f;return{startClocks:c,duration:u,rawRumEvent:d,domainContext:Zo(t,e)}}function Xo(t,e){const n=Xn(t.url,e);if(n)return function(t,e){const n=function(t,e=!1){let n;if("POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;const e=(0,Nt.XU)(t);return e?{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0,operationType:e.operationType}:void 0}(t.requestBody):"GET"===t.method&&(n=function(t){const e=(0,d.c$)(t).searchParams,n=e.get("variables"),r=n&&void 0!==(0,Nt.XU)(n)?n:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:r,operationType:e.get("operationType")||void 0}}(t.url)),n)return function(t,e){let n,r,o;if(t.query){const o=t.query.trim();i=o,n=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(r=Dt(o,32768,"..."))}var i;if(!n){const e=t.operationType;"query"!==e&&"mutation"!==e&&"subscription"!==e||(n=e)}return t.variables&&(o=t.variables),{operationType:n,operationName:t.operationName,variables:o,payload:r}}(n,e)}(t,e.trackPayload);if(n){if(e.trackResponseErrors&&t.responseBody){const e=function(t){const e=(0,Nt.XU)(t);if(!e||"object"!=typeof e)return;const n=e;return(0,Et.EI)(n.errors)?n.errors.map(t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code})):void 0}(t.responseBody);e&&(n.error_count=e.length,n.errors=e)}return n}}(t,n)}function Zo(t,e){return{performanceEntry:t,isManual:!1,isAborted:!!e&&e.isAborted,isWebSocket:!1,handlingStack:e?.handlingStack,requestInit:e?.init,requestInput:e?.input,response:e?.response,error:e?.error,xhr:e?.xhr}}const ti=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,ei=t=>me.includes(t);function ni(t,e){const n={};let r=0,o=!1;return t.forEach((t,i)=>{if(r>=100)return void(o||(R.V.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0));const s=i.toLowerCase();if(ti.test(s))return;const a=e.find(t=>De([t.name??ei],s));if(!a)return;const{extractor:c}=a,u=c?Wt(t,c):t;void 0!==u&&(u.length>128&&R.V.warn(`Header "${s}" value was truncated from ${u.length} to 128 characters.`),n[s]=Dt(u,128),r++)}),r>0?n:void 0}function ri(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{return}}function oi(t,e,n){if(void 0===n)return;const r=t?function(t,e){const n=function(){if(xr(kr.RESOURCE))return performance.getEntriesByType(kr.RESOURCE)}();if(n)return(0,qe.Uk)(n,n=>n.name===t&&n.startTime<=e)}(t,e):void 0,o=r?Math.max(n,r.requestStart||r.startTime):n,i=Math.min(e,Math.max(o,r?.responseEnd||0));return{loadDelay:o-n,loadTime:i-o,renderDelay:e-i}}function ii(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:m.l};if(xr(kr.VISIBILITY_STATE)){const e=performance.getEntriesByType(kr.VISIBILITY_STATE).filter(t=>"hidden"===t.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:m.l}}let n=1/0;const{stop:r}=(0,_.lQ)(e,["pagehide","visibilitychange"],t=>{"pagehide"!==t.type&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}function si(t,e,n,r){const o={},{stop:s}=(l=t=>{n(t.loadEvent),o.navigationTimings=t,r()},function(t){let e;const{stop:n}=(0,Go.H)("complete",()=>{e=(0,$e.wg)(()=>t())});return{stop(){n(),(0,$e.DJ)(e)}}}(()=>{const t=(0,i.B)(Wo)();(function(t){return t.loadEventEnd<=0})(t)||l(function(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:Ho(t)}}(t))})),a=ii(e),{stop:c}=function(t){return{stop:Cr({type:kr.PAINT,buffered:!0}).subscribe(e=>{const n=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<t.timeStamp&&e.startTime<6e5);var i;n&&(i=n.startTime,o.firstContentfulPaint=i,r())}).unsubscribe}}(a),{stop:u}=function(t,e,n){let i=1/0;const{stop:s}=(0,_.lQ)(n,["pointerdown","keydown"],t=>{i=t.timeStamp},{capture:!0,once:!0});let a=0;const c=Cr({type:kr.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(n=>{const s=(0,qe.Uk)(n,t=>t.entryType===kr.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<6e5&&t.size>a);if(s){let e;s.element&&(e=Vr(s.element,t.actionNameAttribute));const n=""===(u=s).url?void 0:u.url,i=s.startTime;c={value:i,targetSelector:e,resourceUrl:n,subParts:oi(n,i,Ho(Wo()))},o.largestContentfulPaint=c,r(),a=s.size}var c,u});return{stop(){s(),c.unsubscribe()}}}(t,a,window);var l;return{stop(){s(),c(),u(),a.stop()},initialViewMetrics:o}}const ai=(t,e)=>t*e,ci=t=>ai(t.previousRect.width,t.previousRect.height)+ai(t.currentRect.width,t.currentRect.height)-((t,e)=>{const n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),o=Math.min(t.right,e.right),i=Math.min(t.bottom,e.bottom);return n>=o||r>=i?0:ai(o-n,i-r)})(t.previousRect,t.currentRect);function ui(t){let e,n,r=[];return{accept(o){const{navigationId:i}=o;return!t||void 0===i||(void 0!==n?i>=n:(void 0===e?e=i:i>e&&r.push(o),!0))},setNavigationId(t,o){const i=r;r=[],n=t,void 0!==e&&t>e&&o(i.filter(e=>e.navigationId>=t))}}}function li(t){let e;for(const n of t)if(n.node&&gr(n.node)){const t=ci(n);(!e||ci(e)<t)&&(e=n)}return e}function di({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}function fi(){let t,e,n=0,r=0;return{update(o){let i;return void 0===t||o.startTime-e>=1e3||o.startTime-t>=5e3?(t=e=o.startTime,r=n=o.value,i=!0):(n+=o.value,e=o.startTime,i=o.value>r,i&&(r=o.value)),{cumulatedValue:n,isMaxValue:i}}}}let pi,mi=0,hi=1/0,gi=0;const vi=()=>pi?mi:window.performance.interactionCount||0;function yi(t){const e=[];function n(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){const r=e.findIndex(e=>t.interactionId===e.interactionId),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction(){const n=Math.min(e.length-1,Math.floor(t()/50));return e[n]},isTracked(t){return e.some(e=>e.interactionId===t)}}}function bi(t){const e=new Map;function n(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;const r=t.startTime+t.duration,o=e.get(t.interactionId);if(o)n(o,t);else{for(const[,o]of e.entries())if(Math.abs(r-o.referenceRenderTime)<=8)return n(o,t),void e.set(t.interactionId,o);e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:r})}},pruneUntracked(){for(const[n]of e)t.isTracked(n)||e.delete(n)},computeSubParts(t,n){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;const o=e.get(t.interactionId);if(!o)return;const i=Math.max(o.startTime+n,o.processingStart),s=Math.min(o.processingEnd,i);return{inputDelay:(0,r.vk)(o.startTime,o.processingStart),processingDuration:(0,r.vk)(o.processingStart,s),presentationDelay:(0,r.vk)(s,i)}},stop(){e.clear()}}}function _i(t){return Math.min(t,6e4)}function wi(){let t;const e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Si(){let t;const e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}let ki;function Ci(){return ki||(ki=new c.cP(t=>{const{throttled:e}=(0,Ue.n)(()=>{t.notify(Ei())},200);return(0,_.q2)(window,"resize",e,{capture:!0,passive:!0}).stop})),ki}function Ei(){const t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function xi(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Ai({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,largestContentfulPaint:o}){return{cls:t&&{score:t.value,timestamp:(0,r.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:(0,r.Zj)(n)},inp:e&&{duration:(0,r.Zj)(e.value),timestamp:(0,r.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,r.Zj)(e.subParts.inputDelay),processing_duration:(0,r.Zj)(e.subParts.processingDuration),presentation_delay:(0,r.Zj)(e.subParts.presentationDelay)}:void 0},lcp:o&&{timestamp:(0,r.Zj)(o.value),target_selector:o.targetSelector,resource_url:o.resourceUrl,sub_parts:o.subParts?{load_delay:(0,r.Zj)(o.subParts.loadDelay),load_time:(0,r.Zj)(o.subParts.loadTime),render_delay:(0,r.Zj)(o.subParts.renderDelay)}:void 0}}}var Ti=n(6625);function Ii(t,e){if(t===e)return!0;if(null===t||"object"!=typeof t||null===e||"object"!=typeof e)return t===e;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((t,n)=>Ii(t,e[n]));if(Array.isArray(t)||Array.isArray(e))return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);return o.length===i.length&&o.every(t=>i.includes(t)&&Ii(n[t],r[t]))}function Ri(t,e,n){const r={},o=n?.replaceKeys??new Set,i=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(const n of Object.keys(t)){if(s.has(n))continue;const a=t[n],c=e[n];if(!o.has(n)&&(0,I.OE)(a)&&(0,I.OE)(c)){const t=Ri(a,c,{replaceKeys:Oi(o,n),appendKeys:Oi(i,n),ignoreKeys:Oi(s,n)});t&&(r[n]=t)}else i.has(n)&&Array.isArray(a)&&Array.isArray(c)?a.length>c.length&&(r[n]=a.slice(c.length)):Ii(a,c)||(r[n]=a)}for(const n of Object.keys(e))n in t||(r[n]=null);return Object.keys(r).length>0?r:void 0}function Oi(t,e){const n=new Set;for(const r of t)r.startsWith(e+".")&&n.add(r.slice(e.length+1));return n}function Ni(t,e){const n=Ri(t,e,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return(0,s.kg)(n,{type:at.VIEW_UPDATE,date:t.date,application:t.application,session:t.session,view:{id:t.view.id,url:t.view.url},_dd:{document_version:t._dd.document_version,format_version:t._dd.format_version}})}const Mi=Be.AQ;function Pi(){return(0,i.B)(l.J.location)}function Di(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}const Li=Be.AQ;let Vi,Ui;function $i(){0!==Vi.batchCount&&((0,x.Gk)("Customer data measures",Vi),ji())}function zi(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function ji(){Vi={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0}}}const qi=Be.AQ;function Bi(t,e,n){if(0!==t.length)return t.slice(-n).reverse().map(({state:t,startTime:n})=>({state:t,start:(0,r.Zj)((0,r.vk)(e,n))}))}function Fi(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Gi(t){const{startClocks:e,type:n,name:o,description:i,context:s,handlingStack:c}=t,u={id:(t.type===ht.DURATION?t.id:void 0)??(0,a.l)(),type:n,name:o,description:i,...n===ht.DURATION?{duration:(0,r.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:u,type:at.VITAL,context:s},startClocks:e,duration:n===ht.DURATION?t.duration:void 0,domainContext:c?{handlingStack:c}:{}}}function Wi(t,e){let n=Vt(t);const r=(0,$e.yb)(()=>{const r=Vt(t);r!==n&&(n=r,e(r))},1e3);return()=>{(0,$e.vG)(r)}}const Hi="datadog-ci-visibility-test-execution-id";function Ji(t,e){const n=(0,a.l)(),o=(0,r.Zj)(t.duration),i={date:e.timeStamp,type:at.LONG_TASK,_dd:{discarded:!1}};if(t.entryType===kr.LONG_TASK)return{...i,long_task:{id:n,entry_type:ct.LONG_TASK,duration:o}};const s=t.scripts.map(t=>t.sourceURL).filter(t=>!!t),c=(0,L.Jv)(s);return{...i,_dd:{discarded:!1,debug_ids:c},long_task:{id:n,entry_type:ct.LONG_ANIMATION_FRAME,duration:o,blocking_duration:(0,r.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,r.Zj)(t.firstUIEventTimestamp),render_start:(0,r.Zj)(t.renderStart),style_and_layout_start:(0,r.Zj)(t.styleAndLayoutStart),start_time:(0,r.Zj)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,r.Zj)(t.duration),pause_duration:(0,r.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,r.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,r.Zj)(t.startTime),execution_start:(0,r.Zj)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))}}}function Ki(t,e,n=3e3){let r=0,o=!1;return{isLimitReached(){if(0===r&&(0,$e.wg)(()=>{r=0},6e4),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{e(`Reached max number of ${t}s by minute: ${n}`)}finally{o=!1}}return!0}}}var Qi=n(98);function Yi(t,e,n){const r=(0,s.Go)(t),o=n(r);return(0,qe.WP)(e).forEach(([e,n])=>Xi(t,r,e.split(/\.|(?=\[\])/),n)),o}function Xi(t,e,n,r){const[o,...i]=n;if("[]"!==o){if(Zi(t)&&Zi(e))return i.length>0?Xi(t[o],e[o],i,r):void function(t,e,n,r){if(t[e]===n)return;const o=(0,I.Pw)(n);o===r?t[e]=O(n):"object"!==r||"undefined"!==o&&"null"!==o?"array"!==r||"undefined"!==o&&"null"!==o||(t[e]=[]):t[e]={}}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((t,n)=>Xi(t,e[n],i,r))}function Zi(t){return"object"===(0,I.Pw)(t)}const ts={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},es={[at.VIEW]:{...ts,"view.performance.lcp.resource_url":"string"},[at.ERROR]:{...ts,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[at.RESOURCE]:{...ts,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object"},[at.ACTION]:{...ts,"action.target.name":"string"},[at.LONG_TASK]:{...ts,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[at.VITAL]:{...ts,"vital.websocket.url":"string","vital.websocket.requested_protocols":"array","vital.websocket.selected_protocol":"string","vital.websocket.close_reason":"string"}};function ns(t,e){return(0,wt.d0)()?(0,wt.Ww)("records")?1:0:(0,je.$5)(t.id,(0,je.it)(e.sessionSampleRate,e.sessionReplaySampleRate))?1:t.isReplayForced?2:0}var rs=n(64);const os=[at.ACTION,at.ERROR,at.LONG_TASK,at.RESOURCE,at.VITAL];function is(t,e,n,u,h,g,v,y,w,S){const C=[],E=new Rn;E.subscribe(13,t=>(0,En.b)("rum",t)),e.expireObservable.subscribe(()=>E.notify(9,{endClocks:(0,r.M8)()})),e.renewObservable.subscribe(()=>E.notify(10));const T=t=>{E.notify(14,{error:{message:t,source:G.g.AGENT,startClocks:(0,r.M8)()}}),(0,x.A2)("Error reported to customer",{"error.message":t})};if((0,wt.d0)()){!function(t){const e=(0,wt.Y9)();t.subscribe(13,t=>{e.send("rum",t)})}(E);const t=(0,xn._T)().subscribe(t=>{E.notify(11,t.reason)});C.push(()=>t.unsubscribe())}else{const n=function(t,e,n,r,o){const i=[(0,Gt.ns)(t,"rum")],s=(0,Gt.np)(t,"rum");s&&i.push(s);const a=(0,Ti.X)({encoder:o(2),endpoints:i,reportError:n});r.subscribe(()=>a.forceFlush("session_expire"));const{dispatch:c,stop:u}=function(t,e){let n,r,o=!1,i=0;const{unsubscribe:s}=t.flushObservable.subscribe(()=>{o=!1,r=n});return{dispatch(s){if(s.type!==at.VIEW)return void t.add(s);if(!e)return void t.upsert(s,s.view.id);const a=s.view.id;if(!s.view.is_active)return a===n?.view.id&&(n=void 0,r=void 0,o=!1,i=0),void t.upsert(s,a);if(a!==n?.view.id)return i=0,t.upsert(s,a),n=s,void(o=!t.isEmpty);if(n=s,o)t.upsert(s,a);else{if(i+=1,i>=100)return i=0,t.upsert(s,a),void(o=!t.isEmpty);if(r){const e=Ni(s,r);e&&((0,En.b)("rum",e),t.upsert(e,a))}}},stop:s}}(a,t.betaEnableViewUpdates);e.subscribe(13,c);const l=a.stop.bind(a);return a.stop=()=>{u(),l()},a}(t,E,T,e.expireObservable,g),r=n.prepareUrgentFlushObservable.subscribe(t=>{E.notify(11,t)});C.push(()=>r.unsubscribe()),C.push(()=>n.stop()),function(t,e,n){t.metricsEnabled&&(ji(),Ui=!1,e.subscribe(13,()=>{Ui=!0}),n.subscribe(({bytesCount:t,messagesCount:e})=>{Ui&&(Ui=!1,Vi.batchCount+=1,zi(Vi.batchBytesCount,t),zi(Vi.batchMessagesCount,e))}),(0,$e.yb)($i,1e4))}(y,E,n.flushObservable)}const{stop:I,...N}=function(t,e,n,u,h,g,v,y,w){const S=[],C=(0,In.l)(),E=function(){let t=(0,Nt.yG)(Pi());return new c.cP(e=>{const{stop:n}=function(t){const{stop:e}=(0,p.H7)(Di("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,p.H7)(Di("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,_.q2)(window,"popstate",t);return{stop(){e(),n(),r()}}}(i),{stop:r}=(o=i,(0,_.q2)(window,"hashchange",o));var o;function i(){if(t.href===Pi().href)return;const n=(0,Nt.yG)(Pi());e.notify({newLocation:n,oldLocation:t}),t=n}return()=>{n(),r()}})}(),{observable:x,stop:T}=function(){const t=new c.cP,{stop:e}=(0,p.H7)(window,"open",()=>t.notify());return{observable:t,stop:e}}();S.push(T);const{assembleEventDefaults:I}=e;!function(t,e,n){t.register(({eventType:t})=>{const o=e.source;return{type:t,_dd:{format_version:2,drift:(0,r._O)(),configuration:{session_sample_rate:kt(e.sessionSampleRate,3),session_replay_sample_rate:kt(e.sessionReplaySampleRate,3),profiling_sample_rate:kt(e.profilingSampleRate,3),trace_sample_rate:kt(e.traceSampleRate,3)},browser_sdk_version:(0,wt.d0)()?"7.17.1":void 0,sdk_name:n},application:{id:e.applicationId},date:(0,r.nx)(),source:o}})}(I,n,y);const N=function(t,e=500){const n=(0,ze.qj)({expireDelay:qi,maxEntries:4e3});let o;xr(kr.VISIBILITY_STATE)&&performance.getEntriesByType(kr.VISIBILITY_STATE).forEach(t=>{s("hidden"===t.name?"hidden":"active",t.startTime)}),s(Fi(),(0,r.$S)());const{stop:i}=(0,_.lQ)(window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],t=>{s(function(t){return"freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":Fi()}(t),t.timeStamp)},{capture:!0});function s(t,e=(0,r.$S)()){t!==o&&(o=t,n.closeActive(e),n.add({state:o,startTime:e},e))}function a(t,e,r){return n.findAll(e,r).some(e=>e.state===t)}return t.register(({startTime:t,duration:r=0,eventType:o})=>o===at.VIEW?{type:o,_dd:{page_states:Bi(n.findAll(t,r),t,e)}}:o===at.ACTION||o===at.ERROR?{type:o,view:{in_foreground:a("active",t,0)}}:Ne.$O),{wasInPageStateDuringPeriod:a,addPageState:s,stop(){i(),n.stop()}}}(I);S.push(()=>N.stop());const M=function(t){const e=(0,ze.qj)({expireDelay:On});return t.subscribe(1,t=>{e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{e.closeActive(t.relative)}),t.subscribe(3,t=>{const n=e.find(t.startClocks.relative);n&&(t.name&&(n.name=t.name),t.context&&(n.context=t.context),n.sessionIsActive=t.sessionIsActive)}),t.subscribe(10,()=>{e.reset()}),{findView(t,n){return e.find(t,n)},stop(){e.stop()}}}(t);S.push(()=>M.stop());const P=function(t,e,n){const o=(0,ze.qj)({expireDelay:Mi});let s;t.subscribe(1,({startClocks:t,url:e})=>{const n=(0,i.B)(l.J.location).href,r=void 0!==e?(0,d.c$)(e,n).href:n;o.add(c({url:r,referrer:s||document.referrer}),t.relative),s=r}),t.subscribe(6,({endClocks:t})=>{o.closeActive(t.relative)});const a=n.subscribe(({newLocation:t})=>{const e=o.find();if(e){const n=(0,r.$S)();o.closeActive(n),o.add(c({url:t.href,referrer:e.referrer}),n)}});function c({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(({startTime:t,eventType:e})=>{const n=o.find(t);return n?{type:e,view:{url:n.url,referrer:n.referrer}}:Ne.ug}),{findUrl(t){return o.find(t)},stop(){a.unsubscribe(),o.stop()}}}(t,I,E);S.push(()=>P.stop());const D=function(t,e,n){const r=(0,ze.qj)({expireDelay:Li});return t.subscribe(1,({startClocks:t})=>{r.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{r.closeActive(t.relative)}),e.register(({startTime:t,eventType:e})=>{if(!n.trackFeatureFlagsForEvents.concat([at.VIEW,at.ERROR]).includes(e))return Ne.$O;const o=r.find(t);return!o||(0,Nt.RI)(o)?Ne.$O:{type:e,feature_flags:o}}),{addFeatureFlagEvaluation(t,e){const n=r.find();n&&(n[t]=e)}}}(t,I,n);(function(t,e,n,r,o){t.register(({eventType:t,startTime:i})=>{const s=n.findTrackedSession(i),a=o.findView(i);if(!s||!a)return Ne.ug;let c,u,l;return t===at.VIEW?(c=!!r.getReplayStats(a.id)||void 0,u=1===ns(s,e),l=!!a.sessionIsActive&&void 0):c=!!r.isRecording()||void 0,{type:t,session:{id:s.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:l}}})})(I,n,u,h,M),function(t){t.register(({eventType:t})=>({type:t,connectivity:(0,rs.q)()}))}(I),function(t){const e=(Tn||(Tn=function(){try{const t=sessionStorage.getItem(An);if(t)return t;const e=(0,a.l)();return sessionStorage.setItem(An,e),e}catch{return}}()??(0,a.l)()),Tn);t.register(()=>({tab:{id:e}}))}(I);const V=function(t,e){const n=Oe();return e.storeContextsAcrossPages&&Ae(n,"rum",2),t.register(()=>({context:n.getContext()})),n}(I,n),U=function(t,e,n){const r=Me();return e.storeContextsAcrossPages&&Ae(r,"rum",1),t.register(({eventType:t,startTime:o})=>{const i=r.getContext(),s=n.findTrackedSession(o);return s?.anonymousId&&!i.anonymous_id&&e.trackAnonymousUser&&(i.anonymous_id=s.anonymousId),(0,Nt.RI)(i)?Ne.$O:{type:t,usr:i}}),r}(I,n,u),$=function(t,e){const n=Pe();return e.storeContextsAcrossPages&&Ae(n,"rum",4),t.register(()=>{const t=n.getContext();return(0,Nt.RI)(t)||!t.id?Ne.$O:{account:t}}),n}(I,n),z=function(t,e,n,o,i){const{unsubscribe:s}=t.subscribe(0,e=>{t.notify(12,$o(e))}),c=m.l;let u;i.trackUserInteractions&&(u=Lo(t,n,o,i));const l=function(t,e){const n=fo(t);return{addAction(t){e({id:(0,a.l)(),frustrationTypes:[],...t})},startAction(e,o={},i=(0,r.M8)()){const s=o.actionKey??e,a=n.start(s,i,{name:e,...o},{isChildEvent:Do});t.notify(15,a)},stopAction(t,o={},i=(0,r.M8)()){const s=o.actionKey??t,a=n.stop(s,i,o);if(!a)return;const c=[];a.counts&&a.counts.errorCount>0&&c.push(pt);const u={...a,type:a.type||ft,frustrationTypes:c};e(u)},findActionId:n.findId,stop:n.stopAll}}(t,e=>{t.notify(12,$o(e))}),d={findActionId(t){const e=l.findActionId(t),n=u?.findActionId(t)??[];return e.concat(n)}};return e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{if(e!==at.ERROR&&e!==at.RESOURCE&&e!==at.LONG_TASK)return Ne.$O;const n=e===at.LONG_TASK?(0,r.Gw)(t,1):t,o=d.findActionId(n);return o.length?{type:e,action:{id:o}}:Ne.$O}),e.assembleTelemetry.register(({startTime:t})=>({action:{id:d.findActionId(t)}})),{addAction:l.addAction,startAction:l.startAction,stopAction:l.stopAction,actionContexts:d,stop(){s(),c(),l.stop(),u?.stop()}}}(t,e,C,x,n);S.push(z.stop);const q=function(t){return{addEvent(e,n,o,i){os.includes(n.type)&&t.notify(12,{startClocks:(0,r.FR)(e),rawRumEvent:n,domainContext:o,duration:i})}}}(t),B=function(t){let e;const n=requestAnimationFrame((0,f.dm)(()=>{e=Ei()})),r=Ci().subscribe(t=>{e=t}).unsubscribe;return t.register(({eventType:t})=>({type:t,display:e?{viewport:e}:void 0})),{stop(){r(),n&&cancelAnimationFrame(n)}}}(I);S.push(B.stop);const F=function(t,e=function(t){const e=on()?(t,e)=>(0,_.q2)(l.J.cookieStore,"change",n=>{const r=n.changed.find(e=>e.name===t)||n.deleted.find(e=>e.name===t);r&&e(r.value)}).stop:Wi;return new c.cP(n=>e(t,t=>n.notify(t)))}(Hi)){let n=jt(Hi)||function(){const t=window.Cypress;if(t)try{return t.env("traceId")}catch{return void R.V.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.")}}();const r=e.subscribe(t=>{n=t});return t.register(({eventType:t})=>"string"!=typeof n?Ne.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop(){r.unsubscribe()}}}(I);S.push(F.stop),function(t){t.register(({eventType:t})=>Cn()?{type:t,session:{type:"synthetics"},synthetics:{...Cn(),injected:kn()}}:Ne.$O)}(I),function(t,e,n,r,o){const i={[at.ERROR]:Ki(at.ERROR,r,o),[at.ACTION]:Ki(at.ACTION,r,o),[at.VITAL]:Ki(at.VITAL,r,o)};e.subscribe(12,({startClocks:r,duration:o,rawRumEvent:a,domainContext:c})=>{const u={eventType:a.type,rawRumEvent:a,domainContext:c,startTime:r.relative,duration:o},l=n.assembleEventDefaults.trigger(u);if(l===Ne.ug)return;const d=n.assembleEvent.trigger(u);if(d===Ne.ug)return;const f=(0,s.kg)(l,a,d,{ddtags:(0,Qi.m5)(t).join(",")});(function(t,e,n,r){if(e){const r=Yi(t,es[t.type],t=>e(t,n));if(!1===r){const e=t.type===at.VIEW?"view":t.type===at.VITAL&&t.vital?.type===ht.WEBSOCKET?"WebSocket vital":void 0;if(!e)return!1;R.V.warn(`Can't dismiss ${e} events using beforeSend!`)}}const o=r[t.type]?.isLimitReached();return!o})(f,t.beforeSend,c,i)&&((0,Nt.RI)(f.context)&&delete f.context,e.notify(13,f))})}(n,t,e,w);const{addTiming:W,setLoadingTime:H,startView:J,setViewName:K,setViewContext:Q,setViewContextProperty:Y,getViewContext:X,stop:Z}=function(t,e,n,o,s,u,l,d,p){return t.subscribe(4,e=>t.notify(12,function(t,e,n){const o=n.getReplayStats(t.id),i=t.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,s={_dd:{document_version:t.documentVersion,replay_stats:o,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually,remote_configuration_id:e.remoteConfigurationId}},date:t.startClocks.timeStamp,type:at.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,r.Zj)(t.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:t.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,r.Zj)(t.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,r.Zj)(t.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,r.Zj)(t.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:t.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,r.Zj)(t.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:t.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,r.Zj)(t.initialViewMetrics.navigationTimings?.loadEvent),loading_time:mr((0,r.Zj)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:Ai(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,r.Zj)(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,r.Zj)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:ri()}};return(0,Nt.RI)(t.customTimings)||(s.view.custom_timings=(0,Nt.LG)(t.customTimings,r.Zj)),{rawRumEvent:s,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}(e,n,l))),e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{const n=d.findView(t);return n?{type:e,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:Ne.ug}),e.assembleTelemetry.register(({startTime:t})=>({view:{id:d.findView(t)?.id}})),function(t,e,n,o,s,u,l){const d=new Set;let p,h,g=v(ut,(0,r.Oc)(),l);function v(s,u,l){const p=function(t,e,n,o,s,u=(0,r.M8)(),l){const d=(0,a.l)(),p=new c.cP,h={};let g,v=0;const y=(0,Nt.yG)((0,i.B)(window.location)),b=Re();let w=!0,S=l?.name;const k=l?.service||o.service,C=l?.version||o.version,E=l?.context,x=l?.handlingStack;E&&b.setContext(E);const A={id:d,name:S,startClocks:u,service:k,version:C,context:E,url:l?.url};t.notify(1,A),t.notify(2,A);const{throttled:T,cancel:I}=(0,Ue.n)(K,3e3,{leading:!1}),O=s===lt&&(0,gt.sr)(gt.R9.SOFT_NAVIGATION)&&xr(kr.SOFT_NAVIGATION),{setLoadEvent:N,setViewEnd:M,stop:P,stopINPTracking:D,getCommonViewMetrics:L,setLoadingTime:V,setNavigationId:U}=function(t,e,n,o,i,s,a,u){const l={};let d=!1,p=!1;const{stop:h,setLoadEvent:g}=function(t,e,n,o,s,a){let c=s===ut,u=!0;const f=[],p=ii(a);function m(){if(!u&&!c&&f.length>0){const e=Math.max(...f);e<p.timeStamp-a.relative&&(t=e,d||(l.loadingTime=t,i()))}var t}const{stop:h}=Tr(t,e,n,o,t=>{u&&(u=!1,t.hadActivity&&f.push((0,r.vk)(a.timeStamp,t.end)),m())});return{stop(){h(),p.stop()},setLoadEvent(t){c&&(c=!1,f.push(t),m())}}}(t,e,n,o,s,a),{stop:v}=function(t,e,n=function(t=1e3){return new c.cP(e=>{const n=(0,Ue.n)(function(){e.notify(function(){const t=Si(),{height:e}=Ei();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,f.dm)(n.throttled));r&&o.observe(r);const i=(0,_.q2)(window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),o.disconnect(),i.stop()}})}()){let o=0,i=0,s=0;const a=n.subscribe(({scrollDepth:n,scrollTop:a,scrollHeight:c})=>{let u=!1;if(n>o&&(o=n,u=!0),c>i){i=c;const e=(0,r.$S)();s=(0,r.vk)(t.relative,e),u=!0}u&&e({maxDepth:Math.min(o,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:s})});return{stop(){return a.unsubscribe()}}}(a,t=>{l.scroll=t}),{stop:y,setNavigationId:b}=function(t,e,n,o){if(!xr(kr.LAYOUT_SHIFT)||!("WeakRef"in window))return{stop:m.l,setNavigationId:m.l};let i,s=0;const a=ui(o);n({value:0});let c=fi();const u=Cr({type:kr.LAYOUT_SHIFT,buffered:!0}).subscribe(l);function l(o){for(const u of o){if(u.hadRecentInput||u.startTime<e||!a.accept(u))continue;const{cumulatedValue:o,isMaxValue:l}=c.update(u);if(l){const t=li(u.sources);i={target:t?.node?new WeakRef(t.node):void 0,time:(0,r.vk)(e,u.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(o>s){s=o;const e=i?.target?.deref();n({value:kt(s,4),targetSelector:e&&Vr(e,t.actionNameAttribute),time:i?.time,previousRect:i?.previousRect?di(i.previousRect):void 0,currentRect:i?.currentRect?di(i.currentRect):void 0,devicePixelRatio:i?.devicePixelRatio})}}}return{stop(){u.unsubscribe()},setNavigationId(t){a.setNavigationId(t,t=>{s=0,i=void 0,c=fi(),n({value:0}),l(t)})}}}(o,a.relative,t=>{l.cumulativeLayoutShift=t,i()},u),{stop:w,getInteractionToNextPaint:S,setViewEnd:k,setNavigationId:C}=function(t,e,n,o){if(!(xr(kr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint(){},setViewEnd:m.l,setNavigationId:m.l,stop:m.l};let i,s=1/0;const{getViewInteractionCount:a,stopViewInteractionCount:c,resetViewInteractionCount:u}=function(t){"interactionCount"in performance||pi||(pi=new window.PerformanceObserver((0,f.dm)(t=>{t.getEntries().forEach(t=>{const e=t;e.interactionId&&(hi=Math.min(hi,e.interactionId),gi=Math.max(gi,e.interactionId),mi=(gi-hi)/7+1)})})),pi.observe({type:"event",buffered:!0,durationThreshold:0}));let e=t===ut?0:vi(),n={stopped:!1};function r(){return vi()-e}return{getViewInteractionCount(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount(){n={stopped:!0,interactionCount:r()}},resetViewInteractionCount(){e=vi()}}}(n);let l=yi(a),d=bi(l);const p=ui(o),h=Cr({type:kr.FIRST_INPUT,buffered:!0}).subscribe(v),g=Cr({type:kr.EVENT,durationThreshold:40,buffered:!0}).subscribe(v);function v(n){for(const t of n)t.interactionId&&t.startTime>=e&&t.startTime<=s&&p.accept(t)&&(l.process(t),d.process(t));d.pruneUntracked();const o=l.estimateP98Interaction();o&&function(n){const o=(0,r.vk)(e,n.startTime);if(n.duration!==i?.duration||o!==i.startTime){let e=function(t){const e=Mo.get(t);return Mo.delete(t),e}(n.startTime);!e&&n.target&&gr(n.target)&&(e=Vr(n.target,t.actionNameAttribute)),i={duration:n.duration,startTime:o,targetSelector:e}}i.subParts=d.computeSubParts(n,_i(i.duration))}(o)}return{getInteractionToNextPaint(){return i?{value:_i(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:a()?{value:0}:void 0},setViewEnd(t){s=t,c()},setNavigationId(t){u(),p.setNavigationId(t,t=>{l=yi(a),d=bi(l),i=void 0,v(t)})},stop(){g.unsubscribe(),h.unsubscribe(),d.stop()}}}(o,a.relative,s,u);return{stop(){h(),y(),v()},stopINPTracking:w,setLoadEvent:g,setViewEnd(t){p=!0,k(t)},setNavigationId(t){b(t),C(t)},getCommonViewMetrics:()=>(l.interactionToNextPaint=S(),l),setLoadingTime(t){if(p)return;const e=(0,r.vk)(a.timeStamp,t??(0,r.nx)());d||h(),d=!0,l.loadingTime=e,i()}}}(t,e,n,o,J,s,u,O);let $=s===ut?{...si(o,u,N,J),setViewEnd:m.l}:{stop:m.l,initialViewMetrics:{},setViewEnd:m.l};O&&($=function(t,e,n){const o={};let i,s=!1,a=0;const c=[],u=Cr({type:kr.INTERACTION_CONTENTFUL_PAINT,buffered:!0}).subscribe(t=>{i||c.push(...t),d(t)}),l=Cr({type:kr.SOFT_NAVIGATION,buffered:!1}).subscribe(t=>{if(i)return;i=t[0],o.firstContentfulPaint=(0,r.vk)(i.startTime,i.presentationTime||i.paintTime),n(i.navigationId),e(),d(c),c.length=0;const s=i.getLargestInteractionContentfulPaint();s&&d([s])});function d(n){if(i)for(const r of n){if(r.interactionId!==i.interactionId||r.largestContentfulPaint.size<=a)continue;a=r.largestContentfulPaint.size;const n=r.largestContentfulPaint,s=n.url||void 0,c={value:n.startTime-i.startTime,targetSelector:n.element?Vr(n.element,t.actionNameAttribute):void 0,resourceUrl:s,subParts:oi(s,n.startTime,i.startTime)};o.largestContentfulPaint=c,e()}}return{initialViewMetrics:o,setViewEnd(){s=!0,l.unsubscribe(),i||u.unsubscribe()},stop(){s||l.unsubscribe(),u.unsubscribe()}}}(o,J,U));const{stop:z,initialViewMetrics:j,setViewEnd:q}=$;s===dt&&function(t,e,n){var o,i;o=t.relative,i=t=>{e.firstContentfulPaint=t,e.largestContentfulPaint={value:t},n()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{i((0,r.vk)(o,(0,r.$S)()))})})}(u,j,J);const{stop:B,eventCounts:F}=function(t,e,n){const{stop:r,eventCounts:o}=lo({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:n});return{stop:r,eventCounts:o}}(t,d,J),G=(0,$e.yb)(K,3e5),W=t.subscribe(11,t=>{t===xn.y5.UNLOADING&&K()});function H(){t.notify(3,{id:d,name:S,context:b.getContext(),startClocks:u,sessionIsActive:w})}function J(){H(),T()}function K(){I(),H(),v+=1;const e=void 0===g?(0,r.nx)():g.timeStamp;t.notify(4,{customTimings:h,documentVersion:v,id:d,name:S,service:k,version:C,context:b.getContext(),loadingType:s,location:y,handlingStack:x,startClocks:u,commonViewMetrics:L(),initialViewMetrics:j,duration:(0,r.vk)(u.timeStamp,e),isActive:void 0===g,sessionIsActive:w,eventCounts:F})}return K(),b.changeObservable.subscribe(J),{get name(){return S},service:k,version:C,contextManager:b,stopObservable:p,end(e={}){g||(g=e.endClocks??(0,r.M8)(),w=e.sessionIsActive??!0,t.notify(5,{endClocks:g}),t.notify(6,{endClocks:g}),(0,$e.vG)(G),M(g.relative),q(),P(),W.unsubscribe(),K(),(0,$e.wg)(()=>{this.stop()},3e5))},stop(){z(),B(),D(),p.notify()},addTiming(t,e){if(g)return;const n=(0,r.A3)(e)?e:(0,r.vk)(u.timeStamp,e);h[function(t){const e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&R.V.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}(t)]=n,J()},setLoadingTime:V,setViewName(t){S=t,K()}}}(t,e,n,o,s,u,l);return d.add(p),p.stopObservable.subscribe(()=>{d.delete(p)}),p}return t.subscribe(10,()=>{g=v("session_renewal",void 0,{name:g.name,service:g.service,version:g.version,context:g.contextManager.getContext()})}),t.subscribe(9,({endClocks:t})=>{g.end({sessionIsActive:!1,endClocks:t})}),u&&(h=function(t){return t.subscribe(({oldLocation:t,newLocation:e})=>{var n,r;r=e,((n=t).pathname!==r.pathname||!function(t){const e=t.substring(1);return""!==e&&!!document.getElementById(e)}(r.hash)&&xi(r.hash)!==xi(n.hash))&&(g.end(),g=v(lt))})}(s),p=function(){const{stop:t}=(0,_.q2)(window,"pageshow",t=>{t.persisted&&(t=>{g.end();const e=(0,r.FR)(t.timeStamp);g=v(dt,e,void 0)})(t)},{capture:!0});return t}()),{addTiming(t,e=(0,r.nx)()){g.addTiming(t,e)},setLoadingTime(t){return g.setLoadingTime(t)},startView(t,e){g.end({endClocks:e}),g=v(lt,e,t)},setViewContext(t){g.contextManager.setContext(t)},setViewContextProperty(t,e){g.contextManager.setContextProperty(t,e)},setViewName(t){g.setViewName(t)},getViewContext(){return g.contextManager.getContext()},stop(){h&&h.unsubscribe(),p&&p(),g.end(),d.forEach(t=>t.stop())}}}(t,o,s,n,u,!n.trackViewsManually,p)}(t,e,n,C,x,E,h,M,g);(function(t){t.register(({domainContext:t,rawRumEvent:e})=>{const n=function(t,e){if("long_task"===e.type&&"long-animation-frame"===e.long_task.entry_type)return e.long_task.scripts[0]?.source_url;let n;"handlingStack"in t&&(n=t.handlingStack),"error"===e.type&&e.error.stack&&(n=e.error.stack);const r=(0,A.T)({stack:n});return r.stack[0]?.url}(t,e);if(!n)return Ne.$O;const r=(0,L.yN)(n);return r?{type:e.type,service:r.service,version:r.version}:Ne.$O})})(I),S.push(Z);const tt=function(t,e){const n=(0,i.B)(Fo)(),o=function(t){const e=new Set,n=t.subscribe(8,t=>{e.add(t),e.size>1e3&&e.delete(e.values().next().value)});return{getMatchingRequest(t){let n,r=1/0;for(const o of e){const e=t.startTime-o.startClocks.relative;0<=e&&e<r&&o.url===t.name&&(r=Math.abs(e),n=o)}return n&&e.delete(n),n},stop(){n.unsubscribe()}}}(t),s=Cr({type:kr.RESOURCE,buffered:!0}).subscribe(n=>{for(const r of n)Un(r)?(0,$e.wg)(()=>{const n=Yo(r,o.getMatchingRequest(r),e);n&&t.notify(12,n)},50):c(()=>Yo(r,void 0,e))}),{stop:a}=(0,Go.H)("interactive",()=>{c(()=>Yo(Wo(),void 0,e))});function c(e){n.push(()=>{const n=e();n&&t.notify(12,n)})}const u=fo(t),l=function(t,e){return{startResource(t,n={},o=(0,r.M8)()){const i=n.resourceKey??t;e.start(i,o,{url:t,...n})},stopResource(n,o={},i=(0,r.M8)()){const s=o.resourceKey??n,a=e.stop(s,i,{context:o.context,type:o.type});if(!a)return;const c=(0,r.vk)(a.startClocks.relative,i.relative),u={date:a.startClocks.timeStamp,type:at.RESOURCE,resource:{id:a.id,type:a.type||Mn,url:Wn(a.url),duration:(0,r.Zj)(c),method:a.method,status_code:o.statusCode,size:o.size},_dd:{},context:a.context};t.notify(12,{rawRumEvent:u,startClocks:a.startClocks,duration:c,domainContext:{isManual:!0}})}}}(t,u);return{startResource:l.startResource,stopResource:l.stopResource,stop(){a(),n.stop(),s.unsubscribe(),u.stopAll()}}}(t,n);S.push(tt.stop);const{stop:et}=function(t,e){const n=Cr({type:xr(kr.LONG_ANIMATION_FRAME)?kr.LONG_ANIMATION_FRAME:kr.LONG_TASK,buffered:!0}).subscribe(n=>{for(const o of n){if(!e.trackLongTasks)break;const n=(0,r.FR)(o.startTime),i=Ji(o,n);t.notify(12,{rawRumEvent:i,startClocks:n,duration:o.duration,domainContext:{performanceEntry:o}})}});return{stop(){return n.unsubscribe()}}}(t,n);S.push(et);const{addError:nt}=function(t,e){const n=new c.cP;return e.subscribe(({data:t,type:e})=>{0===e?n.notify(t):3===e&&t.api===o.bP.error&&n.notify(t.error)}),function(t){(function(t){const e=[];t.includes(zo)&&e.push(new c.cP(t=>{if(!(0,_.BX)(document,"securitypolicyviolation"))return;const{stop:e}=(0,_.q2)(document,"securitypolicyviolation",e=>{t.notify(function(t){const e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return jo({type:t.effectiveDirective,message:`${zo}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:qo(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${Dt(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber),debugIds:t.sourceFile?(0,L.Jv)([t.sourceFile]):void 0})}(e))});return e}));const n=t.filter(t=>t!==zo);return n.length&&e.push(function(t){return new c.cP(e=>{if(!window.ReportingObserver)return;const n=(0,f.dm)((t,n)=>t.forEach(t=>e.notify(function(t){const{type:e,body:n}=t;return jo({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:qo(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?(0,L.Jv)([n.sourceFile]):void 0})}(t)))),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),()=>{r.disconnect()}})}(n)),(0,c.Fx)(...e)})([zo,"intervention"]).subscribe(e=>t.notify(e))}(n),n.subscribe(e=>t.notify(14,{error:e})),function(t){return t.subscribe(14,({error:e})=>{t.notify(12,function(t){const e={date:t.startClocks.timeStamp,error:{id:(0,a.l)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},_dd:{debug_ids:t.debugIds},type:at.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:n}}(e))}),{addError({error:e,handlingStack:n,componentStack:r,startClocks:o,context:i}){const a=j({originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:"Provided",source:G.g.CUSTOM,handling:"handled"});a.context=(0,s.kg)(a.context,i),t.notify(14,{error:a})}}}(t)}(t,v);!function(t,e,n,o,i,s){const a=function(t,e,n,r){return{clearTracingIfNeeded:Qn,traceFetch:o=>Yn(t,o,e,n,r,t=>{if(o.input instanceof Request&&!o.init?.headers)o.input=new Request(o.input),Object.keys(t).forEach(e=>{o.input.headers.append(e,t[e])});else{o.init=(0,Nt.yG)(o.init);const e=[];o.init.headers instanceof Headers?o.init.headers.forEach((t,n)=>{e.push([n,t])}):Array.isArray(o.init.headers)?o.init.headers.forEach(t=>{e.push(t)}):o.init.headers&&Object.keys(o.init.headers).forEach(t=>{e.push([t,o.init.headers[t]])}),o.init.headers=e.concat((0,qe.WP)(t))}}),traceXhr:(o,i)=>Yn(t,o,e,n,r,t=>{try{Object.keys(t).forEach(e=>{i.setRequestHeader(e,t[e])})}catch{}})}}(e,n,o,i);!function(t,e,n){const r=[];r.push(k().subscribe(t=>{"start"===t.state&&Fn(t.url)&&(e.traceXhr(t,t.xhr),er(t))})),r.push(n.subscribe(({data:n,type:r})=>{if(2!==r)return;const o=n;if(Fn(o.url))switch(o.state){case"start":er(o),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"complete":e.clearTracingIfNeeded(o),t.notify(8,{...o,type:"xhr",isAbortedOnStart:!1})}}))}(t,a,s),function(t,e,n,o){const i=[];i.push(b({responseBodyAction(t){return Xn(t.url,e)?.trackResponseErrors?1:0}}).subscribe(t=>{"start"===t.state&&Fn(t.url)&&(n.traceFetch(t),er(t))})),i.push(o.subscribe(({data:e,type:o})=>{if(1!==o)return;const i=e;if(Fn(i.url))switch(i.state){case"start":er(i),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":n.clearTracingIfNeeded(i),t.notify(8,{...i,duration:(0,r.vk)(i.startClocks.timeStamp,(0,r.nx)()),type:Pn,requestBody:i.init?.body})}}))}(t,e,a,s)}(t,n,u,U,$,v);const rt=function(t,e){const n=fo(t);function o(n){(function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.duration)})(n)&&t.notify(12,Gi(n))}return{addOperationStepVital(e,n,o,i){const{operationKey:s,context:a,description:c,handlingStack:u}=o||{},l={name:e,type:ht.OPERATION_STEP,operationKey:s,failureReason:i,stepType:n,startClocks:(0,r.M8)(),context:O(a),description:c,handlingStack:u};t.notify(12,Gi(l))},addDurationVital:o,startDurationVital(e,o={},i=(0,r.M8)()){const{id:s}=n.start(o.vitalKey??e,i,{name:e,...o});t.notify(16,{id:s,name:e,startClocks:i,...o})},stopDurationVital(t,e={},i=(0,r.M8)()){const s=n.stop(e.vitalKey??t,i,e);s&&o({type:ht.DURATION,...s})}}}(t,N),ot=function(t,e){if(!function(t){return t.trackResources&&(t.betaTrackWebSockets||(0,gt.sr)(gt.R9.TRACK_WEBSOCKETS))}(e))return{stop:m.l};const n=function(t,e){const n=new Map;let o;function i(e,n){const r=n.getState();t.notify(12,{rawRumEvent:rr(r),startClocks:or(r),domainContext:{webSocket:e}})}function c(){const t=(0,r.M8)();n.forEach((e,n)=>{e.isOpen()&&(e.recordReport(t),i(n,e))})}function u(){(0,$e.vG)(o),o=void 0}const l=e.subscribe(t=>{(function(t){switch(t.state){case"connecting":{const e=function({url:t,protocols:e,startClocks:n}){const r=(0,a.l)(),o=n,i=function(t){const e=(0,d.c$)(t);return e.search="",e.href}(t),c={inbound:{messageCount:0,messageSizeTotal:0,messageSizeMax:0,longestSilence:0},outbound:{messageCount:0,messageSizeTotal:0,messageSizeMax:0,longestSilence:0},bufferedAmountMax:0};let u,l,f,p={id:r,connectingClocks:o,phase:"connecting",url:i,requestedProtocols:ur(e)},m=0;function h(){return m+=1,m}function g(t){return{inbound:{...c.inbound,longestSilence:dr(u,t,c.inbound)},outbound:{...c.outbound,longestSilence:dr(l,t,c.outbound)},bufferedAmountMax:c.bufferedAmountMax}}function v(t,e,n,s){p={id:r,connectingClocks:o,phase:"closed",url:i,endClocks:t,trackingEndReason:e,closeEvent:s,snapshotVersion:h(),snapshot:f?g(t.relative):void 0,bufferedAmountAtClose:n,silenceBeforeClose:{inbound:fr(u,t.relative),outbound:fr(l,t.relative)}}}return{getState(){return(0,s.Go)(p)},isOpen(){return"open"===p.phase},recordOpen(t){f=t.openClocks,p={id:r,connectingClocks:o,phase:"open",openClocks:f,reportClocks:{...f},selectedProtocol:t.protocol||void 0,selectedExtensions:t.extensions||void 0,snapshotVersion:h(),snapshot:g(f.relative)}},recordReport(t){"open"===p.phase&&(p={...p,reportClocks:t,snapshotVersion:h(),snapshot:g(t.relative)})},recordInboundMessage({size:t,at:e}){lr(c.inbound,u,t,e.relative,f),u=e.relative},recordOutboundMessage({size:t,bufferedAmountPreSend:e,at:n}){c.bufferedAmountMax=Math.max(c.bufferedAmountMax,e+t),lr(c.outbound,l,t,n.relative,f),l=n.relative},recordClosing({at:t}){p={id:r,connectingClocks:o,phase:"closing",closingClocks:t}},recordClose({at:t,code:e,reason:n,wasClean:r,bufferedAmountAtClose:o}){v(t,"close_event",o,{code:e,reason:n,wasClean:r})},recordTrackingEnd(t,e,n){v(t,e,n)}}}(t);return n.set(t.instance,e),void i(t.instance,e)}case"open":{const e=n.get(t.instance);if(!e)return;return e.recordOpen(t),void i(t.instance,e)}case"message-in":return void n.get(t.instance)?.recordInboundMessage(t);case"message-out":return void n.get(t.instance)?.recordOutboundMessage(t);case"closing":{const e=n.get(t.instance);if(!e)return;return e.recordClosing(t),void i(t.instance,e)}case"closed":{const e=n.get(t.instance);if(!e)return;n.delete(t.instance),e.recordClose(t),i(t.instance,e)}}})(t),"message-in"!==t.state&&"message-out"!==t.state&&(function(){for(const t of n.values())if(t.isOpen())return!0;return!1}()?void 0===o&&(o=(0,$e.yb)(c,6e4)):u())});return{reportOpenConnections:c,flushOpenConnections(t=(0,r.M8)(),e="session_end"){const o=n.size;return n.forEach((n,r)=>{n.recordTrackingEnd(t,e,r.bufferedAmount),i(r,n)}),n.clear(),u(),o},stop(){l.unsubscribe(),n.clear(),u()}}}(t,(Zn||(Zn=new c.cP(t=>{if(!function(t){return"function"==typeof t.WebSocket}(l.J))return;const{stop:e}=(0,p.my)(l.J,"WebSocket",({parameters:e,onPostCall:n})=>{const o=Array.isArray(e[1])?[].concat(e[1]):e[1],i=(0,r.M8)();n(e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:o,startClocks:i}),function(t,e){const{stop:n}=(0,_.q2)(t,"open",()=>{e.notify({state:"open",instance:t,openClocks:(0,r.M8)(),protocol:t.protocol||"",extensions:t.extensions||""}),n()}),{stop:o}=(0,_.q2)(t,"message",n=>{e.notify({state:"message-in",instance:t,size:nr(n.data),at:(0,r.M8)()})}),{stop:i}=(0,_.q2)(t,"close",n=>{e.notify({state:"closed",instance:t,code:n.code,reason:n.reason,wasClean:n.wasClean,bufferedAmountAtClose:t.bufferedAmount,at:(0,r.M8)()}),o(),i()})}(e,t)})}),{stop:n}=(0,p.H7)(l.J.WebSocket.prototype,"send",({target:e,parameters:[n],onPostCall:o})=>{if(1!==e.readyState)return;const i=nr(n),s=e.bufferedAmount;o(()=>{t.notify({state:"message-out",instance:e,size:i,bufferedAmountPreSend:s,at:(0,r.M8)()})})}),{stop:o}=(0,p.H7)(l.J.WebSocket.prototype,"close",({target:e,onPostCall:n})=>{2!==e.readyState&&3!==e.readyState&&n(()=>{t.notify({state:"closing",instance:e,at:(0,r.M8)()})})});return()=>{e(),n(),o()}})),Zn)),o=t.subscribe(9,({endClocks:t})=>{n.flushOpenConnections(t)}),i=t.subscribe(11,t=>{t===xn.y5.PAGE_TERMINATED?n.flushOpenConnections((0,r.M8)(),"page_terminated"):n.reportOpenConnections()});return{stop(){o.unsubscribe(),i.unsubscribe(),n.flushOpenConnections(),n.stop()}}}(t,n);S.push(ot.stop);const it=function(t,e,n,r,o){return{get(i){const s=n.findView(i),a=o.findUrl(i),c=e.findTrackedSession(i);if(c&&s&&a){const e=r.findActionId(i);return{application_id:t,session_id:c.id,user_action:e?{id:e}:void 0,view:{id:s.id,name:s.name,referrer:a.referrer,url:a.url}}}}}}(n.applicationId,u,M,z.actionContexts,P);return{addAction:z.addAction,startAction:z.startAction,stopAction:z.stopAction,startResource:tt.startResource,stopResource:tt.stopResource,addEvent:q.addEvent,addError:nt,addTiming:W,setLoadingTime:H,addFeatureFlagEvaluation:D.addFeatureFlagEvaluation,startView:J,setViewContext:Q,setViewContextProperty:Y,getViewContext:X,setViewName:K,viewHistory:M,sessionManager:u,stopSession:()=>u.expire(),getInternalContext:it.get,startDurationVital:rt.startDurationVital,stopDurationVital:rt.stopDurationVital,addDurationVital:rt.addDurationVital,addOperationStepVital:rt.addOperationStepVital,globalContext:V,userContext:U,accountContext:$,stop:()=>S.forEach(t=>t())}}(E,w,t,e,n,h,v,S,T);return C.push(I),v.unbuffer(),C.push(()=>u.stop()),{...N,lifeCycle:E,sessionManager:e,stopSession:()=>e.expire(),telemetry:y,stop(){C.forEach(t=>t())},hooks:w}}function ss(t,e,n={}){const d=function(t){const e=new c.cP;function n(){return t===u.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(n())t();else{const r=e.subscribe(()=>{n()&&(t(),r.unsubscribe())})}},update(n){t=n,e.notify()},isGranted:n,observable:e}}(),h=function(t=Object.values(o.bP)){const e=new c.dX(500,t=>{(0,x.A2)("Early data collection dropped data on unbuffer",{count:t})});function n(t,n){return n.subscribe(n=>{e.notify({type:t,data:n})})}const s=[n(0,(0,i.B)(W)()),n(1,b()),n(2,k())],a=new Map;return t.forEach(t=>{a.set(t,n(3,function(t){const e=t.map(t=>(H[t]||(H[t]=function(t){return new c.cP(e=>{const{stop:n}=(0,p.H7)(o.JZ,t,({parameters:n,handlingStack:i,onPostCall:s})=>{s(()=>e.notify(function(t,e,n){const i=t.map(t=>function(t){return"string"==typeof t?O(t):(0,V.b)(t)?(0,D.NR)((0,A.T)(t)):(0,T.s)(O(t),void 0,2)}(t)).join(" ");if(e===o.bP.error){const o=j({originalError:t.find(V.b),handlingStack:n,startClocks:(0,r.M8)(),source:G.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=i,{api:e,message:i,handlingStack:n,error:o}}return{api:e,message:i,error:void 0,handlingStack:n}}(n,t,i)))},{computeHandlingStack:!0,handlingStackType:"console error"});return n})}(t)),H[t]));return(0,c.Fx)(...e)}([t])))}),{observable:e,restrictConsoleApis(t){a.forEach((e,n)=>{t.includes(n)||(e.unsubscribe(),a.delete(n))})},stop(){s.forEach(t=>t.unsubscribe()),a.forEach(t=>t.unsubscribe()),a.clear()}}}([o.bP.error]);let g=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:n},o,s){const u=new c.dX(500,t=>{(0,x.A2)("preStartRum buffer data lost",{count:t})}),d=Oe();Y(d,Z,u);const p=Me();Y(p,X,u);const h=Pe();let g,v,y,b,w,S;Y(h,tt,u);const k={assembleEventDefaults:(0,Ne.ab)(),assembleTelemetry:(0,Ne.ab)(),assembleEvent:(0,Ne.ab)()},C=o.observable.subscribe(T),E={};let A=!1;function T(){if(A||!y||!b||!w||!S)return;let t;if(C.unsubscribe(),b.trackViewsManually){if(!g)return;t=g.options}const e=b.trackViewsManually?g?.callback:void 0,n=s(b,w,v,t,S,k);A=!0,u.subscribe(t=>{t!==e&&t(n)}),u.unbuffer()}function N(t,s,u,d){const g=(0,wt.d0)();if(g&&(t=function(t){return{...t,service:t.service||t.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:t.defaultPrivacyLevel??(0,wt.Y9)()?.getPrivacyLevel()}}(t)),y=t,b)return void st("DD_RUM",t);const _=function(t,e){const n=function(t,e,n){if(t&&"object"==typeof t)return At(e,t,n);n.error("Configuration must be an object")}(t,ve,R.V);if(!n)return;const r=n.allowedTracingUrls.map(_e).filter(Boolean);if(r.length>0&&!n.service)return void R.V.error("Service needs to be configured when tracing is enabled");const o=function(t){const e=t&&ge[t.quality];return(0,gt.sr)(gt.R9.SESSION_REPLAY_RECORD_CANVAS)&&t?.enable&&e?{enable:!0,...e}:void 0}(n.sessionReplayCanvasRecording);return{...n,service:n.service||n.applicationId,sessionReplayCanvasRecording:o,betaEnableViewUpdates:ye(n.betaEnableViewUpdates,n.proxy,e),allowedTracingUrls:r,beforeSend:n.beforeSend?(0,St.y)(n.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:Ct(t.traceSampleRate)?t.traceSampleRate/100:void 0,trackResourceHeaders:ke(t),allowedGraphQlUrls:we(t),remoteConfigurationId:fe(t)}}(t,n);_&&function(t,e){const n=(0,i.B)(l.J.location),r=n?n.origin:"",o=t.allowedTrackingOrigins;if(!o)return!function(t,e=""){return!Ve(t)&&Ve(e.split("\n").filter(t=>{const e=t.trim();return e.length&&/^at\s+|@/.test(e)})[1]||"")}(r,e)||(R.V.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);const s=De(o,r);return s||R.V.error("SDK initialized on a non-allowed domain."),s}(_,u??"")&&(_.compressIntakeRequests&&!g&&e&&(v=e(_,"Datadog RUM",m.l),!v)||(b=_,s?.user&&p.setContext(s.user),s?.account&&h.setContext(s.account),o.tryToInit(_.trackingConsent),o.onGrantedOnce(()=>{const{assembleTelemetry:e}=k;if(function(t,e){t.register(()=>e.isGranted()?Ne.$O:Ne.ug)}(e,o),S=(0,i.B)(x.a5)("browser-rum-sdk",_,e,n),l.W)return void R.V.warn("The RUM SDK is not supported in a web or service worker environment.");const s=r=>{w=r,function(t,e,n){t.register(({startTime:t})=>{const r=e.findTrackedSession(t);return r?{session:{id:r.id},anonymous_id:r.anonymousId,...n}:Ne.$O})}(e,w,{application:{id:_.applicationId}}),(0,x.Rr)(function(t,e,n){const r={session_sample_rate:(o=t).sessionSampleRate,telemetry_sample_rate:o.telemetrySampleRate,telemetry_configuration_sample_rate:o.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:o.telemetryUsageSampleRate,use_before_send:!!o.beforeSend,use_partitioned_cross_site_session_cookie:o.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:o.useSecureSessionCookie,use_proxy:!!o.proxy,silent_multiple_init:o.silentMultipleInit,track_session_across_subdomains:o.trackSessionAcrossSubdomains,track_anonymous_user:o.trackAnonymousUser,session_persistence:Array.isArray(o.sessionPersistence)?o.sessionPersistence[0]:o.sessionPersistence,store_contexts_across_pages:!!o.storeContextsAcrossPages,allow_untrusted_events:!!o.allowUntrustedEvents,tracking_consent:o.trackingConsent,use_allowed_tracking_origins:Array.isArray(o.allowedTrackingOrigins),source:o.source,sdk_version:o.sdkVersion,variant:o.variant};var o,i,s;return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,propagate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:(0,Et.EI)(t.allowedTracingUrls),use_allowed_graph_ql_urls:(0,Et.EI)(t.allowedGraphQlUrls),use_track_graph_ql_payload:(s=t.allowedGraphQlUrls,(0,Et.EI)(s)&&s.some(t=>(0,I.OE)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:Ce(t.allowedGraphQlUrls),selected_tracing_propagators:be(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:(0,Et.EI)(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:t.plugins?.map(t=>({name:t.name,...t.getConfigurationTelemetry?.()})),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:fe(t),remote_configuration:n&&{config_id:fe(t),last_modified:n.lastModified,last_synced:n.lastSynced,first_applied:n.firstApplied,sync_id:n.syncId},profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,track_resource_headers:(i=t.trackResourceHeaders,!0===i?"default_headers":Array.isArray(i)?"custom":void 0),beta_enable_view_updates:ye(t.betaEnableViewUpdates,t.proxy,e),beta_track_web_sockets:t.betaTrackWebSockets,session_replay_canvas_recording:t.sessionReplayCanvasRecording?.enable,session_replay_canvas_recording_quality:t.sessionReplayCanvasRecording?.quality,...r}}(t,n,d)),T()};(0,wt.d0)()?s(function(){let t={id:(0,a.l)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,r.nx)()};return{findSession:()=>t,findTrackedSession:()=>t,renewObservable:new c.cP,expireObservable:new c.cP,expire:m.l,expandOrRenew:m.l,updateSessionState(e){t={...t,...e}}}}()):(0,i.B)(vn)(_,o).then(t=>{t&&s(t)}).catch(f.Dx)})))}const M={init(e,n,o,i){if(!e)return void R.V.error("Missing configuration");if((0,gt.Aq)(e.enableExperimentalFeatures),(0,_.fK)(e.allowUntrustedEvents),y=e,t&&kn())return;const s=function(t,e){if(!t)return!0;const n=t.map(t=>t.onInit?.(e));return n.some(Ee.Qg)?Promise.all(n).then(t=>!t.includes(!1)):!n.includes(!1)}(e.plugins,{initConfiguration:e,publicApi:n,registerAssembleEventHook:k.assembleEvent.register});function c(){if(fe(e)){const t={user:p,context:d};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)(async function(t,e){let n;const r=ce(),o=await de(t);return o.ok?(r.increment("fetch","success"),n=ae(t,o.value,e,r)):(r.increment("fetch","failure"),R.V.error(o.error)),(0,x.Gk)("remote configuration metrics",{metrics:r.get()}),n})(e,t).then(t=>{t&&N(t,i,o)}).catch(f.Dx);else{const n=function(t,e){const n=function({remoteConfigurationId:t}){const e=function(t){return"dd_rc_"+t}(t);return{read(){let t;try{t=localStorage.getItem(e)}catch{return{status:"error"}}if(null===t)return{status:"miss"};const n=(0,Nt.XU)(t);return void 0===n?(this.remove(),{status:"error"}):function(t){if("object"!=typeof t||null===t)return!1;const e="version"in t&&3===t.version,n="config"in t&&"object"==typeof t.config&&null!==t.config,r="metadata"in t&&(0,I.OE)(t.metadata)&&"string"==typeof t.metadata.syncId&&"number"==typeof t.metadata.lastSynced;return e&&n&&r}(n)?{status:"hit",config:n.config,metadata:n.metadata}:(this.remove(),{status:"error"})},remove(){try{localStorage.removeItem(e)}catch{}},write(t,n){const o=this.read();"hit"===o.status&&JSON.stringify(o.config)===JSON.stringify(t)||ie(e,{version:3,config:t,metadata:{lastModified:n,lastSynced:(0,r.nx)(),syncId:(0,a.l)()}})},stampFirstApplied(t){if(void 0!==t.metadata.firstApplied)return t.metadata;const n={...t.metadata,firstApplied:(0,r.nx)()};return ie(e,{version:3,config:t.config,metadata:n}),n}}}({remoteConfigurationId:fe(t)}),o=ce(),i=n.read();return o.increment("cache",oe[i.status]),function(t,e,n){de(t).then(t=>{t.ok?(n.increment("fetch","success"),e.write(t.value,t.lastModified)):(n.increment("fetch","failure"),R.V.error(t.error))}).catch(f.Dx).finally(()=>{(0,x.Gk)("remote configuration metrics",{metrics:n.get()})})}(t,n,o),"hit"===i.status?{metadata:n.stampFirstApplied(i),initConfiguration:ae(t,i.config,e,o)}:t.remoteConfiguration?.required?void 0:{initConfiguration:t}}(e,t);n&&N(n.initConfiguration,i,o,n.metadata)}}else N(e,i,o)}"boolean"==typeof s?s&&c():s.then(t=>{t&&c()}).catch(f.Dx)},get initConfiguration(){return y},getInternalContext:m.l,stopSession:m.l,addTiming(t,e=(0,r.nx)()){u.notify(n=>n.addTiming(t,e))},setLoadingTime(t){u.notify(e=>e.setLoadingTime(t))},startView(t,e=(0,r.M8)()){const n=n=>{n.startView(t,e)};u.notify(n),g||(g={options:t,callback:n},T())},setViewName(t){u.notify(e=>e.setViewName(t))},setViewContext(t){u.notify(e=>e.setViewContext(t))},setViewContextProperty(t,e){u.notify(n=>n.setViewContextProperty(t,e))},getViewContext(){return E},globalContext:d,userContext:p,accountContext:h,addAction(t){u.notify(e=>e.addAction(t))},startAction(t,e){const n=(0,r.M8)();u.notify(r=>r.startAction(t,e,n))},stopAction(t,e){const n=(0,r.M8)();u.notify(r=>r.stopAction(t,e,n))},startResource(t,e){const n=(0,r.M8)();u.notify(r=>r.startResource(t,e,n))},stopResource(t,e){const n=(0,r.M8)();u.notify(r=>r.stopResource(t,e,n))},addError(t){u.notify(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){u.notify(n=>n.addFeatureFlagEvaluation(t,e))},startDurationVital(t,e){const n=(0,r.M8)();u.notify(r=>r.startDurationVital(t,e,n))},stopDurationVital(t,e){const n=(0,r.M8)();u.notify(r=>r.stopDurationVital(t,e,n))},addDurationVital(t){u.notify(e=>e.addDurationVital(t))},addOperationStepVital(t,e,n,r){u.notify(o=>o.addOperationStepVital(O(t),e,O(n),O(r)))}};return M}(n,d,(r,o,s,a,c,u)=>{const l=s&&n.createDeflateEncoder?t=>n.createDeflateEncoder(s,t):J.N,d=(0,i.B)(is)(r,o,t,e,a,l,h.observable,c,u,n.sdkName);return t.onRumStart(d.lifeCycle,r,o,d.viewHistory,s,d.telemetry),e.onRumStart(d.lifeCycle,d.hooks,r,o,d.viewHistory,l),g=function(t,e){return{...t,init(t){st("DD_RUM",t)},getInternalContext:e.getInternalContext,stopSession:e.stopSession,getViewContext:e.getViewContext,globalContext:e.globalContext,userContext:e.userContext,accountContext:e.accountContext}}(g,d),function(t,e){for(const n of t??[])n.onRumStart?.(e)}(r.plugins,{addEvent:d.addEvent,addError:d.addError}),d});const v=()=>g,y=(t,e)=>{const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"start"}),g.addOperationStepVital(t,"start",{...e,handlingStack:n})})},w=(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),g.addOperationStepVital(t,"end",e)}),S=(0,f.dm)((t,e,n)=>{(0,x.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),g.addOperationStepVital(t,"end",n,e)}),C=(0,K.m)({init(t,e){const n=Error().stack;(0,f.um)(()=>g.init(t,C,n,e))},setTrackingConsent:(0,f.dm)(t=>{d.update(t),(0,x.Q6)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,f.dm)(t=>{g.setViewName(as(t,"view name")),(0,x.Q6)({feature:"set-view-name"})}),setViewContext:(0,f.dm)(t=>{g.setViewContext(t),(0,x.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,f.dm)((t,e)=>{g.setViewContextProperty(t,e),(0,x.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,f.dm)(()=>((0,x.Q6)({feature:"set-view-context-property"}),g.getViewContext())),getInternalContext:(0,f.dm)(t=>g.getInternalContext(t)),getInitConfiguration:(0,f.dm)(()=>(0,s.Go)(g.initConfiguration)),addAction(t,e){const n=(0,D.uC)("action");(0,f.um)(()=>{g.addAction({name:O(t),context:O(e),startClocks:(0,r.M8)(),type:ft,handlingStack:n}),(0,x.Q6)({feature:"add-action"})})},startAction:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"start-action"}),g.startAction(O(t),{type:O(e?.type),context:O(e?.context),actionKey:e?.actionKey})}),stopAction:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-action"}),g.stopAction(O(t),{type:O(e?.type),context:O(e?.context),actionKey:e?.actionKey})}),startResource:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"start-resource"}),g.startResource(O(t),{type:O(e?.type),method:O(e?.method),context:O(e?.context),resourceKey:e?.resourceKey})}),stopResource:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-resource"}),g.stopResource(O(t),{type:O(e?.type),statusCode:e?.statusCode,size:e?.size,context:O(e?.context),resourceKey:e?.resourceKey})}),addError(t,e){const n=(0,D.uC)("error");(0,f.um)(()=>{g.addError({error:t,handlingStack:n,context:O(e),startClocks:(0,r.M8)()}),(0,x.Q6)({feature:"add-error"})})},addTiming:(0,f.dm)((t,e)=>{g.addTiming(O(t),e)}),setViewLoadingTime:(0,f.dm)(()=>{const t=(0,r.nx)();g.setLoadingTime(t),(0,x.Q6)({feature:"addViewLoadingTime"})}),setGlobalContext:Q(v,Z,nt,"set-global-context"),getGlobalContext:Q(v,Z,et,"get-global-context"),setGlobalContextProperty:Q(v,Z,rt,"set-global-context-property"),removeGlobalContextProperty:Q(v,Z,ot,"remove-global-context-property"),clearGlobalContext:Q(v,Z,it,"clear-global-context"),setUser:Q(v,X,nt,"set-user"),getUser:Q(v,X,et,"get-user"),setUserProperty:Q(v,X,rt,"set-user-property"),removeUserProperty:Q(v,X,ot,"remove-user-property"),clearUser:Q(v,X,it,"clear-user"),setAccount:Q(v,tt,nt,"set-account"),getAccount:Q(v,tt,et,"get-account"),setAccountProperty:Q(v,tt,rt,"set-account-property"),removeAccountProperty:Q(v,tt,ot,"remove-account-property"),clearAccount:Q(v,tt,it,"clear-account"),startView(t){const e=(0,D.uC)("view");(0,f.um)(()=>{const n="object"==typeof t?t:{name:t};g.startView({...n,name:as(n.name,"view name"),service:as(n.service,"view service"),version:as(n.version,"view version"),handlingStack:e}),(0,x.Q6)({feature:"start-view"})})},stopSession:(0,f.dm)(()=>{g.stopSession(),(0,x.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,f.dm)((t,e)=>{g.addFeatureFlagEvaluation(O(t),O(e)),(0,x.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,f.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,f.dm)(e=>{t.start(e),(0,x.Q6)({feature:"start-session-replay-recording",force:e?.force})}),stopSessionReplayRecording:(0,f.dm)(()=>t.stop()),addDurationVital(t,e){const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"add-duration-vital"}),g.addDurationVital({id:(0,a.l)(),name:O(t),type:ht.DURATION,startClocks:(0,r.jR)(e.startTime),duration:e.duration,context:O(e?.context),description:O(e?.description),handlingStack:n})})},startDurationVital(t,e){const n=(0,D.uC)("vital");(0,f.um)(()=>{(0,x.Q6)({feature:"start-duration-vital"}),g.startDurationVital(O(t),{vitalKey:e?.vitalKey,context:O(e?.context),description:O(e?.description),handlingStack:n})})},stopDurationVital:(0,f.dm)((t,e)=>{(0,x.Q6)({feature:"stop-duration-vital"}),g.stopDurationVital(O(t),{vitalKey:e?.vitalKey,context:O(e?.context),description:O(e?.description)})}),startOperation:y,succeedOperation:w,failOperation:S,startFeatureOperation:y,succeedFeatureOperation:w,failFeatureOperation:S,DEFAULT_TRACKED_RESOURCE_HEADERS:me});return C}function as(t,e){if(void 0!==t){if("string"==typeof t)return O(t);R.V.warn(`Invalid ${e} provided (expected a string, got ${typeof t}). Ignoring.`)}}function cs(t,{session:e,viewContext:n,errorType:r}){const o=e?e.id:"no-session-id",i=[];void 0!==r&&i.push("error-type="+r),n&&(i.push("seed="+n.id),i.push("from="+n.startClocks.timeStamp));const s=function(t){const e=t.site,n=t.subdomain||function(t){switch(t.site){case vt.NW:case vt.dV:return"app";case vt.Bb:return"dd";default:return}}(t);return`https://${n?n+".":""}${e}`}(t);return`${s}${"/rum/replay/sessions/"+o}?${i.join("&")}`}var us=n(1776);function ls(t,e,n,o){const i=(0,us.sA)([(0,Gt.ns)(t,"profile")],t=>{e.notify(14,{error:{message:t,source:G.g.AGENT,startClocks:(0,r.M8)()}}),(0,x.A2)("Error reported to customer",{"error.message":t})}),s=n(o);return{async send({event:t,...e}){const n=new FormData,r=(0,T.s)(t);if(!r)throw Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let o=r.length;for(const[t,r]of(0,qe.WP)(e)){const e=(0,T.s)(r);if(!e)throw Error("Failed to serialize attachment");const i=await ds(s,e);o+=i.outputBytesCount,n.append(t,new Blob([i.output]),t)}i.send({data:n,bytesCount:o})}}}function ds(t,e){return new Promise(n=>{t.write(e),t.finish(t=>{n(t)})})}},7923(t,e,n){n.d(e,{BJ:()=>I,CB:()=>A,g1:()=>Mt});var r=n(6196),o=n(8333),i=n(979),s=n(9164);function a(t,e){const n=t.tagName,o=t.value;if((0,r.Ie)(t,e)){const e=t.type;if("INPUT"===n&&("button"===e||"submit"===e||"reset"===e))return o;if(!o||"OPTION"===n)return;return r.o}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?o:void 0}const c=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,u=/^[A-Za-z]+:|^\/\//,l=/^["']?data:.*,/i;function d(t){return t.tagName.toLowerCase()}function f(t,e){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${e}' style='background-color:silver'%3E%3C/svg%3E`}function p(t,e){return{role:t,string:e}}function m(t,e,n){return[p(i._o.AttributeName,e),p(y(t,e),n)]}function h(t,e,n){const r=p(i._o.AttributeName,e);return null===n?[r]:[r,p(y(t,e),n)]}const g=new Set(["input","option","select","textarea"]),v=new Set(["action","background","cite","data","formaction","href","longdesc","manifest","ping","poster","src","srcset","xlink:href"]);function y(t,e){switch(e){case"value":return g.has(t)?i._o.FormInput:i._o.AttributeValue;case"style":return i._o.Css;default:return v.has(e)?i._o.Url:i._o.AttributeValue}}function b(t){const e={},n=new Map,r=[];let o=0,s=!1;const a=e=>{const r=t.get(e);if(void 0!==r)return r;s=!0;let i=n.get(e.role);i||(i={role:e.role,strings:new Map,references:0},n.set(e.role,i)),i.references++;const a=i.strings.get(e.string);if(a)return a;const c={literal:e,id:void 0};return i.strings.set(e.string,c),o++,c},c=t=>{for(let e=0,n=t.length;e<n;e++){const n=t[e];"string"==typeof n?t[e]=a(p(i._o.Default,n)):Array.isArray(n)?c(n):S(n)&&(t[e]=a(n))}};return{add(t,n){t in e||(e[t]=[t]),Array.isArray(n)&&(s=!1,c(n),s&&r.push(n)),e[t].push(n)},flushInto(o){const s=(()=>{if(0===n.size)return;const e=[i.JQ.AddRoleAnnotatedStrings];for(const r of Array.from(n.values()).sort(w)){const n=[r.role];for(const e of r.strings.values())e.id=t.getOrInsert(e.literal),n.push(e.literal.string);e.push(n)}return e})();s&&o.push(s);for(const t of r)_(t);[i.JQ.AddNode,i.JQ.RemoveNode,i.JQ.Attribute,i.JQ.Text,i.JQ.InputValue,i.JQ.InputSelection,i.JQ.Size,i.JQ.ScrollPosition,i.JQ.AddStyleSheet,i.JQ.AttachedStyleSheets,i.JQ.MediaPlaybackState,i.JQ.VisualViewport,i.JQ.ImageContent].forEach(t=>{const n=e[t];n&&o.push(n)})},get pendingStringCount(){return o}}}function _(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];Array.isArray(n)?_(n):k(n)&&(t[e]=n.id)}}function w(t,e){return e.references-t.references}function S(t){return"object"==typeof t&&null!==t&&"string"in t}function k(t){return"object"==typeof t&&null!==t&&"literal"in t}function C(t){return function(t,e){let n=t(),r=e;const o=t=>n.get(t);return{clear(){r!==e&&(n=t(),r=e)},delete(t){n.delete(t)},get:o,getOrInsert(t){let e=o(t);return void 0===e&&(e=r++,n.set(t,e)),e},get nextId(){return r},get size(){return r-e}}}(()=>new WeakMap,t)}function E(){return{[i._o.Default]:x(),[i._o.NodeName]:x(),[i._o.AttributeName]:x(),[i._o.AttributeValue]:x(),[i._o.TextContent]:x(),[i._o.FormInput]:x(),[i._o.Css]:x(),[i._o.Url]:x(),[i._o.ResourceId]:x()}}function x(){return Object.create(null)}function A(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function T(t,e,n){t[e].count+=1,t[e].max=Math.max(t[e].max,n),t[e].sum+=n}function I(t,e){for(const n of["cssText","serializationDuration"])t[n].count+=e[n].count,t[n].max=Math.max(t[n].max,e[n].max),t[n].sum+=e[n].sum}function R(t,e,n,r,s,a){const c=function(t){let e=[],n=b(t);const r=()=>{n.flushInto(e),n=b(t)};return{add(o,s){n.add(o,s),t.size+n.pendingStringCount>=Number(1e6)&&(r(),e.push([i.JQ.ClearStrings]),t.clear())},flush(){r();const t=e;return e=[],t}}}(r.stringIds),u={cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}},l={addMetric(t,e){T(u,t,e)},addNode(...t){c.add(i.JQ.AddNode,t)},addStyleSheet(t,e,n){n?c.add(i.JQ.AddStyleSheet,[t,e||[],n]):e?c.add(i.JQ.AddStyleSheet,[t,e]):c.add(i.JQ.AddStyleSheet,[t])},attachStyleSheets(t,e){const n=[t];for(const t of e)n.push(t);c.add(i.JQ.AttachedStyleSheets,n)},removeNode(t){c.add(i.JQ.RemoveNode,t)},setAttributes(t){c.add(i.JQ.Attribute,t)},setInputSelection(t,e){const n=[t];for(const t of e)n.push(t);c.add(i.JQ.InputSelection,n)},setInputValue(t,e){c.add(i.JQ.InputValue,[t,e])},setMediaPlaybackState(t,e){c.add(i.JQ.MediaPlaybackState,[t,e])},setScrollPosition(t,e,n){c.add(i.JQ.ScrollPosition,[t,e,n])},setSize(t,e,n){c.add(i.JQ.Size,[t,e,n])},setText(t,e){c.add(i.JQ.Text,[t,e])},setImageContent(t,e){c.add(i.JQ.ImageContent,[t,e])},kind:t,scope:r},d=(0,o.nx)();a(l),T(u,"serializationDuration",(0,o.vk)(d,(0,o.nx)()));const f=c.flush();f.length>0&&e(0===t||1===t?{data:f,format:i.KN.Change,type:i.ee.FullSnapshot,timestamp:s}:{data:f,type:i.ee.Change,timestamp:s}),n(u)}let O;function N(t,e,n,o){if(e===r.$m.HIDDEN)return null;const i=t.getAttribute(n),s=t.tagName;if((0,r.ap)(s,n,i,e,o)){if("IMG"===s){const e=t;if(e.naturalWidth>0)return f(e.naturalWidth,e.naturalHeight);const{width:n,height:o}=t.getBoundingClientRect();return n>0||o>0?f(n,o):r.eT}return"SOURCE"===s?r.eT:r.o}return i?(0,r.ei)(i,1e6):i}function M(t,e,n,r,o,i){const s=N(e,o,r,i.scope.configuration);null!==s&&t.push(m(n,r,s))}function P(t){if(!t)return null;let e;try{e=t.rules||t.cssRules}catch{}return e?(n=Array.from(e,1===(O??(O=function(t=window){const e=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(e)?0:0===t.navigator.vendor?.indexOf("Apple")||/safari/i.test(e)&&!/chrome|android/i.test(e)?1:2}()))?D:L).join(""),r=t.href,n.replace(c,(t,e,n,o,i,a)=>{const c=n||i||a;if(!r||!c||u.test(c)||l.test(c))return t;const d=e||o||"";return`url(${d}${function(t,e){try{return(0,s.c$)(t,e).href}catch{return t}}(c,r)}${d})`})):null;var n,r}function D(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return L(t)}function L(t){return function(t){return"styleSheet"in t}(t)&&P(t.styleSheet)||t.cssText}function V(t,e,n,o){if("STYLE"===e.parentNode?.nodeName)return;if(n===r.$m.HIDDEN||n===r.$m.IGNORE)return;let s;const c=(0,r.dT)(e);if(s=c?(0,r.jR)(c,n):n,s!==r.$m.HIDDEN){if(s!==r.$m.IGNORE){switch(e.nodeType){case e.CDATA_SECTION_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i._o.NodeName,"#cdata-section"))}(t,e,o);break;case e.DOCUMENT_NODE:!function(t,e,n){const{nodeId:o,insertionPoint:s}=t.advance(e);n.addNode(s,p(i._o.NodeName,"#document")),n.setScrollPosition(o,(0,r.Gn)(),(0,r.zL)()),U(e.adoptedStyleSheets,o,n)}(t,e,o);break;case e.DOCUMENT_FRAGMENT_NODE:!function(t,e,n){const{nodeId:o,insertionPoint:s}=t.advance(e);(0,r.p_)(e)?(n.addNode(s,p(i._o.NodeName,"#shadow-root")),n.scope.shadowRootsController.addShadowRoot(e,n.scope),U(e.adoptedStyleSheets,o,n)):n.addNode(s,p(i._o.NodeName,"#document-fragment"))}(t,e,o);break;case e.DOCUMENT_TYPE_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i._o.NodeName,"#doctype"),p(i._o.AttributeValue,e.name),p(i._o.AttributeValue,e.publicId),p(i._o.Url,e.systemId))}(t,e,o);break;case e.ELEMENT_NODE:!function(t,e,n,o){const{nodeId:s,insertionPoint:c}=t.advance(e),u=function(t,e,n){if(e===r.$m.HIDDEN)return[];const o=[],i=d(t);for(let r=0;r<t.attributes.length;r+=1){const s=t.attributes.item(r).name;"value"!==s&&"selected"!==s&&"checked"!==s&&M(o,t,i,s,e,n)}if(!t.value||"textarea"!==i&&"select"!==i&&"option"!==i&&"input"!==i)t.hasAttribute("value")&&M(o,t,i,"value",e,n);else{const n=a(t,e);void 0!==n&&o.push(m(i,"value",n))}"option"===i?t.selected&&!(0,r.Ie)(t,e)&&o.push(m(i,"selected","")):t.hasAttribute("selected")&&M(o,t,i,"selected",e,n);const s=t;return"input"!==i||"radio"!==s.type&&"checkbox"!==s.type?t.hasAttribute("checked")&&M(o,t,i,"checked",e,n):s.checked&&!(0,r.Ie)(t,e)&&o.push(m(i,"checked","")),o}(e,n,o);o.addNode(c,$(e),...u),(0,r.r0)(e)&&o.scope.canvasManager.markCanvas(e,1);const{_cssText:l,rr_mediaState:f,rr_scrollLeft:h,rr_scrollTop:g}=function(t,e,n){if(e===r.$m.HIDDEN)return{};const o={},i=d(t);if("link"===i){const e=P(t.sheet);e&&(o._cssText=e)}if("style"===i&&t.sheet){const e=P(t.sheet);e&&(o._cssText=e)}if("audio"===i||"video"===i){const e=t;o.rr_mediaState=e.paused?"paused":"played"}let s,a;switch(n.kind){case 0:s=Math.round(t.scrollTop),a=Math.round(t.scrollLeft),(s||a)&&n.scope.elementsScrollPositions.set(t,{scrollTop:s,scrollLeft:a});break;case 1:n.scope.elementsScrollPositions.has(t)&&({scrollTop:s,scrollLeft:a}=n.scope.elementsScrollPositions.get(t))}return a&&(o.rr_scrollLeft=a),s&&(o.rr_scrollTop=s),o}(e,n,o),v=e;if(void 0!==l&&v.sheet){const t=function(t,e,n){const r=n.scope.styleSheetIds.get(t);return void 0!==r?r:(n.addMetric("cssText",e.length),n.addStyleSheet(p(i._o.Css,e)),n.scope.styleSheetIds.getOrInsert(t))}(v.sheet,l,o);o.attachStyleSheets(s,[t])}"played"===f?o.setMediaPlaybackState(s,i.xQ.Play):"paused"===f&&o.setMediaPlaybackState(s,i.xQ.Pause),void 0===h&&void 0===g||o.setScrollPosition(s,h||0,g||0)}(t,e,s,o);break;case e.TEXT_NODE:!function(t,e,n,o){const{insertionPoint:s}=t.advance(e),a=(0,r.rf)(e,n);o.addNode(s,p(i._o.NodeName,"#text"),p(i._o.TextContent,a))}(t,e,s,o);break;default:return}switch(e.nodeType){case e.CDATA_SECTION_NODE:case e.DOCUMENT_TYPE_NODE:case e.TEXT_NODE:return}t.descend(),(0,r.wI)(e,e=>{V(t,e,s,o)}),t.ascend()}}else!function(t,e,n){if(!(0,r.nS)(e))return;const{nodeId:o,insertionPoint:i}=t.advance(e);n.addNode(i,$(e),m(d(e),r.NT,r.Wd));const{width:s,height:a}=e.getBoundingClientRect();n.setSize(o,s,a)}(t,e,o)}function U(t,e,n){t&&0!==t.length&&n.attachStyleSheets(e,t.map(t=>function(t,e){const n=e.scope.styleSheetIds.get(t);if(void 0!==n)return n;const r=Array.from(t.cssRules||t.rules,t=>p(i._o.Css,t.cssText)),o=t.media.length>0?Array.from(t.media).map(t=>p(i._o.Css,t)):void 0;return e.addMetric("cssText",r.reduce((t,e)=>t+e.string.length,0)),e.addStyleSheet(r,o,t.disabled),e.scope.styleSheetIds.getOrInsert(t)}(t,n)))}function $(t){const e=t.nodeName;return function(t){return"http://www.w3.org/2000/svg"===t.namespaceURI}(t)?p(i._o.NodeName,"svg>"+e):p(i._o.NodeName,e)}function z(t,e,n){return j(t,e,n)}function j(t,e,n){let r={container:void 0,parentId:t,previousSiblingId:void 0,nextSiblingId:e};return{advance(t){const e=n.getOrInsert(t),o=(t=>r.previousSiblingId===t-1?0:void 0!==r.nextSiblingId?r.nextSiblingId-t:void 0!==r.parentId?t-r.parentId:null)(e);return r.previousSiblingId=e,{nodeId:e,insertionPoint:o}},ascend(){r.container&&(r=r.container)},descend(){void 0!==r.previousSiblingId&&(r={container:r,parentId:r.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function q(t,e){let n=t.nextSibling;for(;n;){const t=e.get(n);if(void 0!==t)return t;n=n.nextSibling}}function B(t,e){e(t),(0,r.wI)(t,t=>B(t,e))}const F=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function G(t){try{const e=(0,s.c$)(t);return e.search="",e.hash="",e.href}catch{return t.split(/[?#]/)[0]}}function W(t,e,n,o,s){const{width:a,height:c}=(0,r.pB)();n({data:{height:c,href:G(window.location.href),width:a},type:i.ee.Meta,timestamp:t}),n({data:{has_focus:document.hasFocus()},type:i.ee.Focus,timestamp:t}),function(t,e,n,r,o,i){i.resetIds(),R(e,r,o,i,t,t=>{V(j(void 0,void 0,i.nodeIds),n,i.configuration.defaultPrivacyLevel,t)})}(t,e,document,n,o,s),window.visualViewport&&n({data:F(window.visualViewport),type:i.ee.VisualViewport,timestamp:t})}var H=n(350),J=n(728),K=n(449),Q=n(3935);function Y(t){return!!t.changedTouches}function X(t){return!0===t.composed&&(0,r.XS)(t.target)?t.composedPath()[0]:t.target}function Z(t,e,n=(0,o.nx)()){return{data:{source:t,...e},type:i.ee.IncrementalSnapshot,timestamp:n}}function tt(t,e){const{throttled:n,cancel:r}=(0,Q.n)(n=>{const r=X(n),o=e.nodeIds.get(r);if(void 0===o)return;const s=et(n);if(!s)return;const a={id:o,timeOffset:0,x:s.x,y:s.y};t(Z(Y(n)?i.Cj.TouchMove:i.Cj.MouseMove,{positions:[a]}))},50,{trailing:!1}),{stop:o}=(0,K.lQ)(document,["mousemove","touchmove"],n,{capture:!0,passive:!0});return{stop(){o(),r()}}}function et(t){let{clientX:e,clientY:n}=Y(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:t,visualViewportY:r}=((t,e)=>{const n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)),r):r})(e,n);e=t,n=r}if(Number.isFinite(e)&&Number.isFinite(n))return{x:e,y:n}}const nt={pointerup:i.GE.MouseUp,mousedown:i.GE.MouseDown,click:i.GE.Click,contextmenu:i.GE.ContextMenu,dblclick:i.GE.DblClick,focus:i.GE.Focus,blur:i.GE.Blur,touchstart:i.GE.TouchStart,touchend:i.GE.TouchEnd};function rt(t,e){return(0,K.lQ)(document,Object.keys(nt),n=>{const o=X(n),s=e.nodeIds.get(o);if(void 0===s||(0,r.PJ)(o,e.configuration.defaultPrivacyLevel)===r.$m.HIDDEN)return;const a=nt[n.type];let c;if(a!==i.GE.Blur&&a!==i.GE.Focus){const t=et(n);if(!t)return;c={id:s,type:a,x:t.x,y:t.y}}else c={id:s,type:a};t({id:e.eventIds.getOrInsert(n),...Z(i.Cj.MouseInteraction,c)})},{capture:!0,passive:!0})}function ot(t,e,n){const{throttled:o,cancel:s}=(0,Q.n)(t=>{const o=X(t);if(!o)return;const s=n.nodeIds.get(o);if(void 0===s||(0,r.PJ)(o,n.configuration.defaultPrivacyLevel)===r.$m.HIDDEN)return;const a=o===document?{scrollTop:(0,r.zL)(),scrollLeft:(0,r.Gn)()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.elementsScrollPositions.set(o,a),e(Z(i.Cj.Scroll,{id:s,x:a.scrollLeft,y:a.scrollTop}))},100),{stop:a}=(0,K.q2)(t,"scroll",o,{capture:!0,passive:!0});return{stop(){a(),s()}}}var it=n(9360);function st(t){const e=(0,r.g1)().subscribe(e=>{t(Z(i.Cj.ViewportResize,e))});return{stop(){e.unsubscribe()}}}function at(t){const e=window.visualViewport;if(!e)return{stop:it.l};const{throttled:n,cancel:r}=(0,Q.n)(()=>{t({data:F(e),type:i.ee.VisualViewport,timestamp:(0,o.nx)()})},200,{trailing:!1}),{stop:s}=(0,K.lQ)(e,["resize","scroll"],n,{capture:!0,passive:!0});return{stop(){s(),r()}}}function ct(t,e){return(0,K.lQ)(document,["play","pause"],n=>{const o=X(n);if(!o)return;const s=e.nodeIds.get(o);void 0!==s&&(0,r.PJ)(o,e.configuration.defaultPrivacyLevel)!==r.$m.HIDDEN&&t(Z(i.Cj.MediaInteraction,{id:s,type:"play"===n.type?i.xQ.Play:i.xQ.Pause}))},{capture:!0,passive:!0})}var ut=n(3444);function lt(t,e){function n(t,n){if(!t?.ownerNode)return;const r=e.nodeIds.get(t.ownerNode);void 0!==r&&n(r)}const r=[(0,ut.H7)(CSSStyleSheet.prototype,"insertRule",({target:e,parameters:[r,o]})=>{n(e,e=>t(Z(i.Cj.StyleSheetRule,{id:e,adds:[{rule:r,index:o}]})))}),(0,ut.H7)(CSSStyleSheet.prototype,"deleteRule",({target:e,parameters:[r]})=>{n(e,e=>t(Z(i.Cj.StyleSheetRule,{id:e,removes:[{index:r}]})))})];function o(e){r.push((0,ut.H7)(e.prototype,"insertRule",({target:e,parameters:[r,o]})=>{n(e.parentStyleSheet,n=>{const s=dt(e);s&&(s.push(o||0),t(Z(i.Cj.StyleSheetRule,{id:n,adds:[{rule:r,index:s}]})))})}),(0,ut.H7)(e.prototype,"deleteRule",({target:e,parameters:[r]})=>{n(e.parentStyleSheet,n=>{const o=dt(e);o&&(o.push(r),t(Z(i.Cj.StyleSheetRule,{id:n,removes:[{index:o}]})))})}))}return"undefined"!=typeof CSSGroupingRule?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule)),{stop(){r.forEach(t=>t.stop())}}}function dt(t){const e=[];let n=t;for(;n.parentRule;){const t=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(t),n=n.parentRule}if(!n.parentStyleSheet)return;const r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}function ft(t){return(0,K.lQ)(window,["focus","blur"],()=>{t({data:{has_focus:document.hasFocus()},type:i.ee.Focus,timestamp:(0,o.nx)()})})}function pt(t,e,n){const r=t.subscribe(5,()=>{n(),e({timestamp:(0,o.nx)(),type:i.ee.ViewEnd})});return{stop(){r.unsubscribe()}}}const mt={type:1,selection:i.WW.Deselected};function ht(t,e,n,s){const c=s.configuration.defaultPrivacyLevel,u=new WeakMap,l=t.nodeType!==t.DOCUMENT_NODE,d=(l?t.ownerDocument:t).defaultView;if(!d)return{stop:it.l};const{stop:f}=(0,K.lQ)(t,l?["change"]:["input","change"],t=>{const e=X(t);(e instanceof d.HTMLInputElement||e instanceof d.HTMLTextAreaElement||e instanceof d.HTMLSelectElement)&&h(e)},{capture:!0,passive:!0});let m;if(l)m=it.l;else{const t=[(0,ut.tv)(d.HTMLInputElement.prototype,"value",h),(0,ut.tv)(d.HTMLInputElement.prototype,"checked",h),(0,ut.tv)(d.HTMLSelectElement.prototype,"value",h),(0,ut.tv)(d.HTMLTextAreaElement.prototype,"value",h),(0,ut.tv)(d.HTMLSelectElement.prototype,"selectedIndex",h)];m=()=>{t.forEach(t=>t.stop())}}return{stop(){m(),f()}};function h(t){const l=(0,r.PJ)(t,c);if(l===r.$m.HIDDEN)return;const d=t.type;let f,m=t;if("radio"===d||"checkbox"===d){if((0,r.Ie)(t,l))return;f={type:1,selection:(h=t,h.checked?i.WW.Selected:i.WW.Deselected)}}else if(gt(t)){if((0,r.Ie)(t,l))return;const e=t.options[t.selectedIndex];if(!e)return;m=e,f={type:1,selection:i.WW.Selected}}else{const e=a(t,l);if(void 0===e)return;f={type:0,value:e}}var h;const v=g(m,f),y=[];if("radio"===d&&t.checked&&(b=t).name&&b.ownerDocument.querySelectorAll(`input[type="radio"][name="${CSS.escape(b.name)}"]`).forEach(t=>{t!==b&&(t=>{const e=g(t,mt);void 0!==e&&y.push(e)})(t)}),gt(t))for(let e=0;e<t.options.length;e++){const n=t.options[e];n!==m&&u.delete(n)}var b;void 0===v&&0===y.length||R(2,e,n,s,(0,o.nx)(),t=>{void 0!==v&&(0===f.type?t.setInputValue(v,p(i._o.FormInput,f.value)):t.setInputSelection(f.selection,[v])),y.length>0&&t.setInputSelection(i.WW.Deselected,y)})}function g(t,e){const n=s.nodeIds.get(t);if(void 0===n)return;const r=u.get(t);return r&&(i=e,0===(o=r).type?0===i.type&&o.value===i.value:1===i.type&&o.selection===i.selection)?void 0:(u.set(t,e),n);var o,i}}function gt(t){return"SELECT"===t.tagName}var vt=n(1e3),yt=n(8780),bt=n(7922);function _t(t,e,n,s,c){const u=(0,yt.W)();if(!u)return{stop:it.l,flush:it.l,notifyContentMutated:it.l};const l=function(){let t=it.l,u=[],l=!1;function g(){l||(l=!0,t=(0,bt.BB)(y,{timeout:100}))}function v(){var g;t(),l=!1,g=u,function(t,e,n,o,s,c){R(2,n,s,c,t,t=>function(t,e,n){const o=new Set,s=new Map,c=new Map,u=new Set;for(const e of t)switch(e.type){case"attributes":{const t=e.target;let n=s.get(t);n||(n=new Map,s.set(t,n));const r=e.attributeName;n.has(r)||n.set(r,e.oldValue);break}case"characterData":c.has(e.target)||c.set(e.target,e.oldValue);break;case"childList":for(let t=0;t<e.addedNodes.length;t++)o.add(e.addedNodes[t]);for(let t=0;t<e.removedNodes.length;t++)u.add(e.removedNodes[t])}const l=n.scope.nodeIds.nextId,f=new Map;(function(t,e){const n=e.scope.nodeIds;for(const o of t){const t=n.get(o);void 0!==t&&(B(o,t=>{(0,r.r0)(t)&&e.scope.canvasManager.forgetCanvas(t),(0,r.XS)(t)&&e.scope.shadowRootsController.removeShadowRoot(t.shadowRoot),n.delete(t)}),e.removeNode(t))}})(u,n),function(t,e,n){const o=n.scope.nodeIds;for(const i of t){if(!i.isConnected)continue;if(void 0!==o.get(i))continue;const t=(0,r.$4)(i);if(!t)continue;const s=o.get(t);if(void 0===s)continue;const a=(0,r.PJ)(t,n.scope.configuration.defaultPrivacyLevel,e);V(z(s,q(i,o),o),i,a,n)}}(o,f,n),function(t,e,n,o){const s=o.scope.nodeIds;for(const[a,c]of t){if(a.textContent===c)continue;if(!a.isConnected)continue;const t=s.get(a);if(void 0===t)continue;if(t>=e)continue;const u=(0,r.$4)(a);if(!u)continue;const l=(0,r.PJ)(u,o.scope.configuration.defaultPrivacyLevel,n);if(l===r.$m.HIDDEN||l===r.$m.IGNORE)continue;const d=(0,r.rf)(a,l);o.setText(t,p(i._o.TextContent,d))}}(c,l,f,n),function(t,e,n,o){const i=o.scope.nodeIds;for(const[s,c]of t){if(!s.isConnected)continue;const t=i.get(s);if(void 0===t)continue;if(t>=e)continue;const u=(0,r.PJ)(s,o.scope.configuration.defaultPrivacyLevel,n);if(u===r.$m.HIDDEN||u===r.$m.IGNORE)continue;const l=d(s),f=[t];for(const[t,e]of c){if(s.getAttribute(t)===e)continue;if("value"===t){const e=a(s,u);void 0!==e&&f.push(m(l,t,e));continue}const n=N(s,u,t,o.scope.configuration);f.push(h(l,t,n))}f.length>1&&o.setAttributes(f)}}(s,l,f,n),function(t,e,n){for(const{canvas:o,captureAttempt:s,hash:a,image:c}of n.scope.canvasManager.takeCanvasContentMutations()){if(!s.isCurrent()||!o.isConnected)continue;const u=n.scope.nodeIds.get(o);if(void 0===u){n.scope.canvasManager.forgetCanvas(o);continue}const l=(0,r.PJ)(o,n.scope.configuration.defaultPrivacyLevel,t);if((0,r.Ie)(o,l))n.scope.canvasManager.markCanvas(o,1);else try{e(a,c,()=>{s.isCurrent()&&n.scope.canvasManager.retryCanvas(o)}),n.setImageContent(u,p(i._o.ResourceId,a)),s.setLastChangeHash(a)}catch{n.scope.canvasManager.markCanvas(o,1)}}}(f,e,n)}(e,o,t))}((0,o.nx)(),g.concat(f.takeRecords()),e,n,s,c),u=[]}const{throttled:y,cancel:b}=(0,Q.n)(v,16,{leading:!1});return{addMutations(t){g();for(const e of t)u.push(e)},notifyContentMutated:g,flush:v,stop(){t(),b()}}}(),f=new u((0,vt.dm)(l.addMutations));return f.observe(t,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop(){f.disconnect(),l.stop()},flush(){l.flush()},notifyContentMutated:l.notifyContentMutated}}function wt(t,e){const n=t.width,r=t.height,o=St(t,n,r,e);if(o)return{canvasHeight:r,canvasWidth:n,source:o}}function St(t,e,n,r){const o=Math.min(1,r/Math.max(e,n)),i=Math.max(1,Math.round(e*o)),s=Math.max(1,Math.round(n*o)),a=document.createElement("canvas");a.width=i,a.height=s;const c=a.getContext("2d");if(c)return c.imageSmoothingQuality="low",c.drawImage(t,0,0,i,s),a}const kt=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"],Ct=["clear","drawArrays","drawElements"],Et=["blitFramebuffer","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","drawArraysInstanced","drawElementsInstanced","drawRangeElements"];function xt(t){const e=t.configuration.sessionReplayCanvasRecording;if(!e?.enable||0===e.maxFramesPerSecond)return{stop:it.l};const n=[],o=1e3/e.maxFramesPerSecond,i=new WeakMap;let s=!1;const a=e=>{void 0!==t.nodeIds.get(e)&&t.canvasManager.markCanvas(e,1)};"undefined"!=typeof CanvasRenderingContext2D&&kt.forEach(t=>{n.push((0,ut.H7)(CanvasRenderingContext2D.prototype,t,({target:t,onPostCall:e})=>{e(()=>a(t.canvas))}))});const c=(c,u)=>{u.forEach(u=>{n.push((0,ut.H7)(c,u,({target:n,onPostCall:c})=>{c(()=>(n=>{const c=n.canvas;if(void 0===t.nodeIds.get(c))return;const u=c;let l=i.get(u);if(l||(l={nextSnapshotTime:-1/0,preservesDrawingBuffer:!0===n.getContextAttributes()?.preserveDrawingBuffer,snapshotScheduled:!1},i.set(u,l)),l.preservesDrawingBuffer)return void a(c);const d=performance.now();l.snapshotScheduled||d<l.nextSnapshotTime||(l.snapshotScheduled=!0,l.nextSnapshotTime=d+o,Promise.resolve().then(()=>{if(l.snapshotScheduled=!1,s)return;const n=(0,r.PJ)(u,t.configuration.defaultPrivacyLevel);if(!(0,r.Ie)(u,n))try{const n=wt(u,e.maxImageDimension);n&&(t.canvasManager.setCanvasSnapshot(u,n),a(u))}catch(e){t.canvasManager.markCanvas(u,e instanceof DOMException&&"SecurityError"===e.name?2:1)}}))})(n))}))})};return"undefined"!=typeof WebGLRenderingContext&&c(WebGLRenderingContext.prototype,Ct),"undefined"!=typeof WebGL2RenderingContext&&(c(WebGL2RenderingContext.prototype,Ct),c(WebGL2RenderingContext.prototype,Et)),{stop(){s=!0,n.forEach(t=>t.stop())}}}var At=n(8975),Tt=n(5762),It=n(2128);function Rt(t,e,n){return`${t}x${e}-${n}`}function Ot(t){let e=2166136261;for(let n=0;n<t.length;n+=1)e^=t[n],e=Math.imul(e,16777619);return(e>>>0).toString(16).padStart(8,"0")}const Nt=(t,e)=>{const n=t.canvasManager,o=t.configuration.sessionReplayCanvasRecording,i=o?.maxFramesPerSecond??0;if(!o?.enable||0===i)return{stop:it.l};let s,a=!1;const c=1e3/i;function u(t,e){t.isCurrent()&&n.markCanvas(e,1)}async function l(t){const r=n.startCaptureAttempt(t),i=()=>a||!r.isCurrent();if(!i())try{const s=r.snapshot??wt(t,o?.maxImageDimension??1e3);if(!s)return u(r,t),void n.discardCaptureAttempt(t,r);const a=await function(t,e){const{height:n,width:r}=t.source,o=Math.max(r,n)<=e?t.source:St(t.source,r,n,e);if(!o)return Promise.resolve(void 0);const i=o.getContext("2d");if(!i)return Promise.resolve(void 0);const s=i.getImageData(0,0,o.width,o.height).data,a=(0,Tt.B)(It.J.crypto?.subtle);return a?a.digest("SHA-256",s).then(e=>Rt(t.canvasWidth,t.canvasHeight,function(t){return Array.from(new Uint8Array(t),t=>t.toString(16).padStart(2,"0")).join("")}(e)),()=>Rt(t.canvasWidth,t.canvasHeight,Ot(s))):Promise.resolve(Rt(t.canvasWidth,t.canvasHeight,Ot(s)))}(s,o?.hashingMaxDimension??100);if(i())return;if(void 0===a)return u(r,t),void n.discardCaptureAttempt(t,r);if(a===r.lastChangeHash)return void n.discardCaptureAttempt(t,r);const c=await function(t,e){return new Promise(n=>{try{t.source.toBlob(t=>n(t??void 0),"image/webp",e)}catch{n(void 0)}})}(s,o?.encodeQuality??.5);if(i())return;if(!c)return u(r,t),void n.discardCaptureAttempt(t,r);n.addCanvasContentMutation({canvas:t,captureAttempt:r,hash:a,image:c}),e()}catch(e){i()||(n.markCanvas(t,function(t){return t instanceof DOMException&&"SecurityError"===t.name}(e)?2:1),n.discardCaptureAttempt(t,r))}}return function e(o){a||(s=(0,At.wg)(()=>{!async function(){const o=performance.now();try{await async function(){const e=n.takeCapturableCanvases();if(!a)for(const o of e){if(void 0===t.nodeIds.get(o)){n.forgetCanvas(o);continue}const e=(0,r.PJ)(o,t.configuration.defaultPrivacyLevel);(0,r.Ie)(o,e)?n.markCanvas(o,1):await l(o)}}()}finally{const t=performance.now()-o;e(Math.max(c-t,.5*c))}}()},o))}(c),{stop(){a=!0,(0,At.DJ)(s)}}};function Mt(t){const{emitRecord:e,emitResource:n,emitStats:r,configuration:i,lifeCycle:s}=t;if(!e||!n||!r)throw Error("emit functions are required");const a=n=>{e(n),(0,H.b)("record",{record:n});const r=t.viewHistory.findView();J.$1(r.id)},c=(e,r,o)=>{n(e,r,o);const i=t.viewHistory.findView();J.Mt(i.id)},u=function(){const t=(0,yt.W)(),e=new Set,n=new WeakSet,r=new Map,o=new WeakMap;let i=[],s=new WeakMap;function a(t){let e=s.get(t);return e||(e={capturePending:!1},s.set(t,e)),e}function c(t){t.isConnected&&!n.has(t)&&e.add(t)}return{markCanvas(o,i){switch(function(e){if(r.has(e))return;const n=new t(()=>c(e));n.observe(e,{attributes:!0,attributeFilter:["width","height"]}),r.set(e,n)}(o),i){case 1:return void c(o);case 0:return void function(t){e.delete(t)}(o);case 2:return void function(t){n.add(t),e.delete(t)}(o);default:return}},setCanvasSnapshot(t,e){o.set(t,e)},forgetCanvas(t){e.delete(t),s.delete(t),o.delete(t),function(t){r.get(t)?.disconnect(),r.delete(t)}(t)},takeCapturableCanvases(){const t=[];return e.forEach(r=>{r.isConnected?n.has(r)||a(r).capturePending||(e.delete(r),t.push(r)):e.delete(r)}),t},startCaptureAttempt(t){const e=a(t);e.capturePending=!0;const n=()=>s.get(t)===e;return{lastChangeHash:e.lastChangeHash,snapshot:o.get(t),isCurrent:n,setLastChangeHash(t){n()&&(e.lastChangeHash=t)}}},discardCaptureAttempt(t,e){e.isCurrent()&&(a(t).capturePending=!1)},retryCanvas(t){s.delete(t),c(t)},addCanvasContentMutation(t){i.push(t)},takeCanvasContentMutations(){const t=i;i=[];for(const e of t)e.captureAttempt.isCurrent()&&(a(e.canvas).capturePending=!1);return t},reset(){e.clear(),i=[],s=new WeakMap,r.forEach(t=>t.disconnect()),r.clear()}}}(),l=((t,e,n)=>{const r=new Map;return{addShadowRoot(o,i){if(r.has(o))return;const s=_t(o,t,e,n,i),a=ht(o,t,n,i),c=ot(o,t,i);r.set(o,{flush(){return s.flush()},stop(){s.stop(),a.stop(),c.stop()}})},removeShadowRoot(t){const e=r.get(t);e&&(e.stop(),r.delete(t))},stop(){r.forEach(({stop:t})=>t())},flush(){r.forEach(({flush:t})=>t())}}})(a,c,r),d=function(t,e,n,r){const o=C(1),i=C(0),s=function(){let t=0,e=E();const n=t=>e[t.role][t.string];return{clear(){0!==t&&(e=E(),t=0)},get:n,getOrInsert(r){let o=n(r);return void 0===o&&(o=t++,e[r.role][r.string]=o),o},get size(){return t-0}}}(),a=C(0),c={resetIds(){c.eventIds.clear(),c.nodeIds.clear(),c.stringIds.clear(),c.styleSheetIds.clear(),c.canvasManager.reset()},canvasManager:t,configuration:e,elementsScrollPositions:n,eventIds:o,nodeIds:i,shadowRootsController:r,stringIds:s,styleSheetIds:a};return c}(u,i,function(){const t=new WeakMap;return{set(e,n){(e!==document||document.scrollingElement)&&t.set(e===document?document.scrollingElement:e,n)},get:e=>t.get(e),has:e=>t.has(e)}}(),l),{stop:f}=function(t,e,n,r,i){W((0,o.nx)(),0,e,n,i);const{unsubscribe:s}=t.subscribe(2,t=>{r(),W(t.startClocks.timeStamp,1,e,n,i)});return{stop:s}}(s,a,r,p,d);function p(){l.flush(),m.flush()}const m=_t(document,a,c,r,d),h=[m,tt(a,d),rt(a,d),ot(document,a,d),st(a),ht(document,a,r,d),ct(a,d),lt(a,d),ft(a),at(a),pt(s,a,p),xt(d),Nt(d,m.notifyContentMutated)];return{stop(){l.stop(),h.forEach(t=>t.stop()),f(),u.reset()},flushMutations:p,shadowRootsController:l}}},728(t,e,n){let r;function o(t){return l(t).segments_count}function i(t){l(t).segments_count+=1}function s(t){l(t).records_count+=1}function a(t){l(t).resources_count+=1}function c(t,e){l(t).segments_total_raw_size+=e}function u(t){return r?.get(t)}function l(t){let e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,resources_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>1e3&&function(){if(!r)return;const t=r.keys().next().value;t&&r.delete(t)}()),e}n.d(e,{$1:()=>s,H5:()=>i,K_:()=>o,L7:()=>c,Mt:()=>a,lv:()=>u})},979(t,e,n){n.d(e,["Cj",0,{Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},"GE",0,{MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},"JQ",0,{AddString:0,AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10,AddRoleAnnotatedStrings:11,InputValue:12,InputSelection:13,ClearStrings:14,ImageContent:15},"KN",0,{V1:0,Change:1},"WW",0,{Selected:0,Deselected:1,Indeterminate:2},"_o",0,{Default:0,NodeName:1,AttributeName:2,AttributeValue:3,TextContent:4,FormInput:5,Css:6,Url:7,ResourceId:8},"ee",0,{FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9,Change:12},"xQ",0,{Play:0,Pause:1}])},5119(t,e,n){n.d(e,{ab:()=>o});var r=n(7472);function o(){let t=[];return{register(e){return t.push(e),{unregister(){t=t.filter(t=>t!==e)}}},trigger(e){const n=[];for(const r of t){const t=r(e);if(t===i)return i;t!==s&&n.push(t)}return(0,r.kg)(...n)}}}const i="DISCARDED",s="SKIPPED";n.d(e,["$O",0,s,"ug",0,i])},449(t,e,n){n.d(e,{BX:()=>c,fK:()=>l,lQ:()=>a,q2:()=>s});var r=n(1e3),o=n(9211),i=n(9360);function s(t,e,n,r){return a(t,[e],n,r)}function a(t,e,n,{once:i,capture:s,passive:a}={}){const c=(0,r.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||!1!==u)&&(i&&p(),n(t))}),l=a?{capture:s,passive:a}:s,d=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,f=(0,o.W)(d,"addEventListener");function p(){const n=(0,o.W)(d,"removeEventListener");e.forEach(e=>n.call(t,e,c,l))}return e.forEach(e=>f.call(t,e,c,l)),{stop:p}}function c(t,e){if(!t)return!1;try{return s(t,e,i.l).stop(),!0}catch{return!1}}let u;function l(t){!0!==u&&(u=t??!1)}},8780(t,e,n){n.d(e,{W:()=>c,l:()=>a});var r=n(1e3),o=n(9360),i=n(3540),s=n(9211);function a(){const t=c();return new i.cP(e=>{const n=new t((0,r.dm)(t=>e.notify(t)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function c(){let t;const e=window;if(e.Zone&&(t=(0,s.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){const n=new e.MutationObserver(o.l),r=(0,s.W)(n,"originalInstance");t=r?.constructor}return t||(t=e.MutationObserver),t}},5358(t,e,n){n.d(e,{h:()=>i});var r=n(2128),o=n(9211);function i(t,e){return(0,o.W)(r.J,"fetch")(t,e)}},1e3(t,e,n){n.d(e,{Bd:()=>l});var r=n(1864),o=n(8789);let i;const s=function(t,e){function n(t){return function(...e){return r(t,this,e)}}function r(t,e,n){try{return t.apply(e,n)}catch(t){i(t)}}function i(n){const r=e=>{(0,o.N)()&&t.error("[MONITOR]",e)};r(n);try{e(n)}catch(n){r(n)}}return{monitored(t,e,r){r.value=n(r.value)},monitor:n,callMonitored:r,monitorError:i}}((0,r.XH)("Datadog SDK:"),t=>i?.(t)),a=s.monitor,c=s.callMonitored,u=s.monitorError;function l(t){return!i&&(i=t,!0)}n.d(e,["Dx",0,u,"dm",0,a,"um",0,c])},8333(t,e,n){n.d(e,{$S:()=>u,A3:()=>h,FR:()=>f,Gw:()=>c,M8:()=>l,Oc:()=>d,Zj:()=>a,_O:()=>g,d6:()=>m,jR:()=>p,nx:()=>i,uc:()=>y,vk:()=>s,x3:()=>o});const r=31536e6;function o(){return(new Date).getTime()}function i(){return o()}function s(t,e){return e-t}function a(t){return"number"!=typeof t?t:Math.round(1e6*t)}function c(t,e){return t+e}function u(){return performance.now()}function l(){return{relative:u(),timeStamp:i()}}function d(){return{relative:0,timeStamp:y()}}function f(t){return{relative:t,timeStamp:b(t)}}function p(t){return{relative:m(t),timeStamp:t}}function m(t){return t-y()}function h(t){return t<r}function g(){return Math.round(o()-c(y(),performance.now()))}let v;function y(){return void 0===v&&(v=performance.timing?.navigationStart??Math.floor(performance.timeOrigin)),v}function b(t){const e=o()-performance.now();return e>y()?Math.round(c(e,t)):function(t){return Math.round(c(y(),t))}(t)}n.d(e,["$H",0,r,"MA",0,36e5])},5387(t,e,n){n.d(e,{Hg:()=>u,np:()=>c,ns:()=>a});var r=n(8333),o=n(9164),i=n(3192),s=n(8383);function a(t,e,n){return{build(r,o){return u({proxy:t.proxy,site:t.site,path:"/api/v2/"+e,parameters:l(t,e,r,o,n)})},trackType:e}}function c({replica:t,proxy:e,source:n},r){if(t)return a({clientToken:t.clientToken,proxy:e,source:n,site:s.NW},r,"rum"===r?["application.id="+t.applicationId]:void 0)}function u({proxy:t,site:e=s.NW,path:n,parameters:r="",subdomain:i}){let a=n;if(r&&(a+="?"+r),"string"==typeof t){let e=`${(0,o.l2)(t)}?ddforward=${encodeURIComponent(a)}`;return i&&(e+="&ddforwardSubdomain="+i),e}if("function"==typeof t)return t({path:n,parameters:r,subdomain:i});const c=e.split("."),u=c.pop();let l=`browser-intake-${c.join("-")}.${u}`;return i&&(l=`${i}.${l}`),`https://${l}${a}`}function l({clientToken:t,source:e="browser"},n,o,{retry:s,encoding:a},c=[]){const u=["ddsource="+e,"dd-api-key="+t,"dd-evp-origin-version="+encodeURIComponent("7.17.1"),"dd-evp-origin=browser","dd-request-id="+(0,i.l)()].concat(c);return a&&u.push("dd-evp-encoding="+a),"rum"===n&&(u.push("batch_time="+(0,r.nx)(),"_dd.api="+o),s&&u.push("_dd.retry_count="+s.count,"_dd.retry_after="+s.lastFailureStatus)),u.join("&")}},8383(t,e,n){n.d(e,{wo:()=>o});const r=["ddsource","dd-api-key","dd-request-id"];function o(t){return r.every(e=>t.includes(e))}n.d(e,["Bb",0,"datad0g.com","KG",0,"us2.ddog-gov.com","NW",0,"datadoghq.com","R8",0,"ddog-gov.com","dV",0,"datadoghq.eu"])},4989(t,e,n){n.d(e,{WW:()=>o,wh:()=>i});const r=/[^\u0000-\u007F]/;function o(t){return r.test(t)?(new TextEncoder).encode(t).length:t.length}function i(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}n.d(e,["iH",0,1048576])},8789(t,e,n){n.d(e,{N:()=>i,p:()=>o});let r=!1;function o(t){r=t}function i(){return r}},1864(t,e,n){n.d(e,{XH:()=>i});const r=console,o={log:r.log,debug:r.debug,info:r.info,warn:r.warn,error:r.error};function i(t){return{debug:o.debug.bind(r,t),log:o.log.bind(r,t),info:o.info.bind(r,t),warn:o.warn.bind(r,t),error:o.error.bind(r,t)}}n.d(e,["JZ",0,r,"bP",0,{log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},"fH",0,"https://docs.datadoghq.com","xG",0,"More details:"])},3935(t,e,n){n.d(e,{n:()=>o});var r=n(8975);function o(t,e,n){const o=void 0===n?.leading||n.leading,i=void 0===n?.trailing||n.trailing;let s,a,c=!1;return{throttled(...n){c?s=n:(o?t(...n):s=n,c=!0,a=(0,r.wg)(()=>{i&&s&&t(...s),c=!1,s=void 0},e))},cancel(){(0,r.DJ)(a),c=!1,s=void 0}}}},9211(t,e,n){n.d(e,{W:()=>o});var r=n(2128);function o(t,e){const n=r.J;let o;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(o=t[n.Zone.__symbol__(e)]),o||(o=t[e]),o}},2128(t,e,n){const r=globalThis,o="WorkerGlobalScope"in r;n.d(e,["J",0,r,"W",0,o])},7637(t,e,n){function r(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);const r=o(Object.prototype),i=o(Array.prototype),s=o(Object.getPrototypeOf(t)),a=o(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),s(),a()}}function o(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):i}function i(){}n.d(e,{M:()=>o,s:()=>r})},7472(t,e,n){n.d(e,{Go:()=>s,kg:()=>a});var r=n(8307);function o(t,e){return i(t,e,function(){const t=new WeakSet;return{hasAlreadyBeenSeen(e){const n=t.has(e);return n||t.add(e),n}}}())}function i(t,e,n){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return RegExp(e.source,e.flags);if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){const r=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)r[t]=i(r[t],e[t],n);return r}const o="object"===(0,r.Pw)(t)?t:{};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&"__proto__"!==t&&(o[t]=i(o[t],e[t],n));return o}function s(t){return o(void 0,t)}function a(...t){let e;for(const n of t)null!=n&&(e=o(e,n));return e}},5762(t,e,n){function r(t){return t}n.d(e,{B:()=>r}),new Map},9360(t,e,n){function r(){}n.d(e,{l:()=>r})},3540(t,e,n){n.d(e,{dX:()=>c,cP:()=>s,Fx:()=>a});var r=n(1e3),o=n(2128);function i(t){const e=o.J.queueMicrotask;"function"==typeof e?e((0,r.dm)(t)):Promise.resolve().then((0,r.dm)(t))}class s{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(e=>e(t))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function a(...t){return new s(e=>{const n=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>n.forEach(t=>t.unsubscribe())})}class c extends s{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;const n={unsubscribe:()=>{e=!0,this.removeObserver(t)}};return i(()=>{for(const n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)}),n}unbuffer(){i(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}},3192(t,e,n){function r(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o)}function o(t){return(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16)}n.d(e,{l:()=>r})},8975(t,e,n){n.d(e,{DJ:()=>a,vG:()=>u,wg:()=>s,yb:()=>c});var r=n(1e3),o=n(2128),i=n(9211);function s(t,e){return(0,i.W)(o.J,"setTimeout")((0,r.dm)(t),e)}function a(t){(0,i.W)(o.J,"clearTimeout")(t)}function c(t,e){return(0,i.W)(o.J,"setInterval")((0,r.dm)(t),e)}function u(t){(0,i.W)(o.J,"clearInterval")(t)}},8307(t,e,n){function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function o(t){return"object"===r(t)}function i(t){return"number"==typeof t&&t>=0&&t<=100}function s(t){return"string"==typeof t||t instanceof RegExp||"function"==typeof t}n.d(e,{OE:()=>o,Pw:()=>r,Vl:()=>s,fp:()=>i})},9164(t,e,n){n.d(e,{AY:()=>i,L2:()=>s,c$:()=>a,l2:()=>o});var r=n(2128);function o(t){return a(t,r.J.document?.baseURI??r.J.location?.href).href}function i(t){try{return!!a(t)}catch{return!1}}function s(t){const e=a(t).pathname;return"/"===e[0]?e:"/"+e}function a(t,e){const n=function(){if(!c){let t=!1;try{t="http://a/b"===new r.J.URL("b","http://a").href}catch{}c=t?r.J.URL:function(){if(!u){let t,e;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),e=t.contentWindow??r.J}catch{e=r.J}u={URL:e.URL},t?.remove()}return u}().URL}return c}();try{return void 0!==e?new n(t,e):new n(t)}catch(t){throw Error("Failed to construct URL: "+t)}}let c,u}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.m=t,n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++],s=0===i?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:i};n.o(t,o)||Object.defineProperty(t,o,s)}else for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.f={},n.e=t=>{const e=[];return n.f.j(t,e),Promise.all(e)},n.u=t=>"chunks/"+t+"-"+{datadogRecorder:"4ace47c1ea1f698b8e26",datadogProfiler:"69f13dc9a235dcd5b806"}[t]+"-datadog-rum-shopify.js",n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={main:0},e=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:o,__webpack_esm_runtime__:i}=e;var s,a,c=0;for(s in o)n.o(o,s)&&(n.m[s]=o[s]);for(i&&i(n);c<r.length;c++)a=r[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0};n.f.j=(r,o)=>{let i=n.o(t,r)?t[r]:void 0;if(0!==i)if(i)o.push(i[1]);else{let s=import("./"+n.u(r)).then(e,e=>{throw 0!==t[r]&&(t[r]=void 0),e});s=Promise.race([s,new Promise(e=>i=t[r]=[e])]),o.push(i[1]=s)}}})();var r=n(2128),o=n(5021),i=n(6196),s=(n(7923),n(9360)),a=n(9305),c=n(728),u=n(4989),l=n(449),d=n(5648),f=n(7003),p=n(5762),m=n(8975),h=n(1864);function g({configuredUrl:t,error:e,source:n,scriptType:r}){if(d.V.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&((o=e.message).includes("Content Security Policy")||o.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",d.V.error(`${e} See documentation at ${h.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,f.VJ)(e);var o}function v(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var o=Array(256);e(o);var _=Array(29);e(_);var d,u,c,f=Array(30);function g(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function p(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(f);var m=function(t){return t<256?l[t]:l[256+(t>>>7)]},v=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},w=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,v(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){w(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?v(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},M=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=o[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=_[h],w(t,s,l)),i--,h=m(i),b(t,h,r),0!==(l=n[h])&&(i-=f[h],w(t,i,l)))}while(d<t.last_lit);b(t,256,e)},B=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,_=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>f&&(i=f,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=u[n-c]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(_[2*n+1]+s)));if(0!==g){do{for(i=f-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[f]--,g-=2}while(g>0);for(i=f;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,o,t.bl_count)},I=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<o?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<o)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),w(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),w(t,h-3,3)):(b(t,18,t.bl_tree),w(t,h-11,7));h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}},S=!1,D=function(t,e,a,n){w(t,0+(n?1:0),3),function(t,e,a){x(t),v(t,a),v(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},E=D,j=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),L=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},$=E,O=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(o[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.last_lit===t.lit_bufsize-1},Q=-2,q=258,F=262,N=103,P=113,W=666,G=function(t,e){return t.msg=T[e],e},J=function(t){return(t<<1)-(t>4?9:0)},K=function(t){for(var e=t.length;--e>=0;)t[e]=0},R=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},V=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},X=function(t,e){(function(t,e,a,n){var r,l,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),B(t,t.l_desc),B(t,t.d_desc),o=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),B(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?D(t,e,a,n):4===t.strategy||l===r?(w(t,2+(n?1:0),3),M(t,s,h)):(w(t,4+(n?1:0),3),function(t,e,a,n){var r;for(w(t,e-257,5),w(t,a-1,5),w(t,n-4,4),r=0;r<n;r++)w(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),M(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,V(t.strm)},Y=function(t,e){t.pending_buf[t.pending++]=e},Z=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=j(t.adler,e,r,a):2===t.state.wrap&&(t.adler=L(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-F?t.strstart-(t.w_size-F):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+q,c=o[i+s-1],f=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===f&&o[a+s-1]===c&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do{}while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<u);if(n=q-(u-i),i=u-q,n>s){if(t.match_start=e,s=n,n>=h)break;c=o[i+s-1],f=o[i+s]}}}while((e=d[e&_])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-F)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=R(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=R(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<F&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<F){if(at(t),t.lookahead<F&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=R(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-F&&(t.match_length=et(t,a)),t.match_length>=3)if(n=O(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=R(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=R(t,t.ins_h,t.window[t.strstart+1]);else n=O(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(X(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(X(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(X(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<F){if(at(t),t.lookahead<F&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=R(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-F&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=O(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=R(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(X(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=O(t,0,t.window[t.strstart-1]))&&X(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=O(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(X(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(X(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,X(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-F&&(X(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(X(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(X(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return G(t,Q);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:P,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){S||(function(){var t,e,i,p,m,v=Array(16);for(i=0,p=0;p<28;p++)for(_[p]=i,t=0;t<1<<a[p];t++)o[i++]=p;for(o[i-1]=p,m=0,p=0;p<16;p++)for(f[p]=m,t=0;t<1<<n[p];t++)l[m++]=p;for(m>>=7;p<30;p++)for(f[p]=m<<7,t=0;t<1<<n[p]-7;t++)l[256+m++]=p;for(e=0;e<=15;e++)v[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,v[8]++;for(;t<=255;)s[2*t+1]=9,t++,v[9]++;for(;t<=279;)s[2*t+1]=7,t++,v[7]++;for(;t<=287;)s[2*t+1]=8,t++,v[8]++;for(z(s,287,v),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new g(s,a,257,286,15),u=new g(h,n,0,30,15),c=new g([],r,0,19,7)}(),S=!0),t.l_desc=new p(t.dyn_ltree,d),t.d_desc=new p(t.dyn_dtree,u),t.bl_desc=new p(t.bl_tree,c),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,K(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},ot=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?G(t,Q):Q;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===W&&4!==e)return G(t,0===t.avail_out?-5:Q);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Y(r,31),Y(r,139),Y(r,8),r.gzhead?(Y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Y(r,255&r.gzhead.time),Y(r,r.gzhead.time>>8&255),Y(r,r.gzhead.time>>16&255),Y(r,r.gzhead.time>>24&255),Y(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Y(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Y(r,255&r.gzhead.extra.length),Y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=L(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Y(r,0),Y(r,0),Y(r,0),Y(r,0),Y(r,0),Y(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Y(r,3),r.status=P);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=P,Z(r,h),0!==r.strstart&&(Z(r,t.adler>>>16),Z(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),V(t),a=r.pending,r.pending!==r.pending_buf_size));)Y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),V(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Y(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),V(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Y(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=L(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=N)}else r.status=N;if(r.status===N&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&V(t),r.pending+2<=r.pending_buf_size&&(Y(r,255&t.adler),Y(r,t.adler>>8&255),t.adler=0,r.status=P)):r.status=P),0!==r.pending){if(V(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&J(e)<=J(i)&&4!==e)return G(t,-5);if(r.status===W&&0!==t.avail_in)return G(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==W){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=O(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(X(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(X(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(X(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=q){if(at(t),t.lookahead<=q&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+q;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=q-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=O(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=O(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(X(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(X(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(X(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=W),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){w(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(v(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&($(r,0,0,!1),3===e&&(K(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),V(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Y(r,255&t.adler),Y(r,t.adler>>8&255),Y(r,t.adler>>16&255),Y(r,t.adler>>24&255),Y(r,255&t.total_in),Y(r,t.total_in>>8&255),Y(r,t.total_in>>16&255),Y(r,t.total_in>>24&255)):(Z(r,t.adler>>>16),Z(r,65535&t.adler)),V(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},_t=function(t){if(!t?.state)return Q;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==N&&e!==P&&e!==W?G(t,Q):(t.state=null,e===P?G(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ft=Object.prototype.toString;function gt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ct,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return Q;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return G(t,Q);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ft.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return Q;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return Q;if(1===r&&(t.adler=j(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var o=n.strstart,_=n.lookahead-2;do{n.ins_h=R(n,n.ins_h,n.window[o+3-1]),n.prev[o&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=o,o++}while(--_);n.strstart=o,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}gt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ft.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=ot(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=_t(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},gt.prototype.onData=function(t){this.chunks.push(t)},gt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},new Map;const pt=globalThis;function mt(t,e,a){const n=new OffscreenCanvas(e,a).getContext("2d");if(!n)throw Error("2d context unavailable");return n.imageSmoothingQuality="low",n.drawImage(t,0,0,e,a),n}function vt(t){return Array.from(new Uint8Array(t),t=>t.toString(16).padStart(2,"0")).join("")}function wt(t){let e=2166136261;for(let a=0;a<t.length;a+=1)e^=t[a],e=Math.imul(e,16777619);return(e>>>0).toString(16).padStart(8,"0")}function bt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function yt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}!function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a,n){switch(n.action){case"init":return{type:"initialized",version:"7.17.1"};case"write":{let e=a.get(n.streamId);e||(e=new gt,a.set(n.streamId,e));const r=e.chunks.length,i=(new TextEncoder).encode(n.data);return e.push(i,2),{type:"wrote",id:n.id,streamId:n.streamId,result:t(e.chunks.slice(r)),trailer:yt(e),additionalBytesCount:i.length}}case"reset":a.delete(n.streamId);break;case"captureCanvas":(async function(t){const{id:e,bitmap:a}=t;try{const n=mt(a,a.width,a.height),r=Math.max(a.width,a.height)<=t.hashingMaxDimension?n:mt(n.canvas,...function(t,e,a){const n=Math.min(1,a/Math.max(t,e));return[Math.max(1,Math.round(t*n)),Math.max(1,Math.round(e*n))]}(a.width,a.height,t.hashingMaxDimension)),i=r.getImageData(0,0,r.canvas.width,r.canvas.height).data,s=`${t.canvasWidth}x${t.canvasHeight}-${await function(t){const e=pt.crypto?.subtle;return e?e.digest("SHA-256",t).then(vt,()=>wt(t)):Promise.resolve(wt(t))}(i)}`;return s===t.lastChangeHash?{type:"canvasUnchanged",id:e}:{type:"canvasCaptured",id:e,hash:s,image:await n.canvas.convertToBlob({type:"image/webp",quality:t.encodeQuality})}}catch(t){return{type:"canvasCaptureFailed",id:e,errorName:t instanceof Error?t.name:void 0}}finally{a.close()}})(n).then(t=>e.postMessage(t))}}(e,a,n.data);r&&e.postMessage(r)}catch(t){bt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){bt(e,t)}}()})();'])))}const y=new Map;function b(t){return y.get(t)||{status:0}}function _(t="deflate"){return b(t).status}function w(t,e,n,r,o){const i=b(n);1===i.status||0===i.status?(g({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===i.status&&i.initializationFailureCallbacks.forEach(t=>t()),y.set(n,{status:2})):(0,f.VJ)(r,{worker_version:3===i.status&&i.version,stream_id:o})}var S=n(1e3),k=n(7409),C=n(3540),E=n(8333);async function x(){try{return await(0,p.B)(A)()}catch(t){g({error:t,source:"Recorder",scriptType:"module"})}}async function A(){return(await n.e("datadogRecorder").then(()=>n(8647))).startRecording}async function T(t,e,n){try{return await n}finally{t.notify(e)}}var I=n(4215);function R(){return void 0!==r.J.Profiler}var O=n(5119);async function N(){try{return await(0,p.B)(M)()}catch(t){g({error:t,source:"Profiler",scriptType:"module"})}}async function M(){return(await n.e("datadogProfiler").then(()=>n(7492))).createRumProfiler}function P(){D(r.J,"cookieStore"),D(navigator,"locks"),Object.defineProperty(document,"hasFocus",{value:()=>!0,configurable:!0,writable:!0})}function D(t,e){Object.defineProperty(t,e,{value:void 0,configurable:!0,writable:!0})}var L=n(2423);function V(t){return t.context?.document?.location?.href}const U=/\/(([a-z]{2}(-[a-z0-9]+)?)\/)?(checkouts?)(\/|$)/i;function $(t){const e=V(t);return!(!e||!U.test(e))}function z(t,e){e&&(e.subscribe("page_viewed",e=>{$(e)&&t.startView({url:V(e)})}),e.subscribe("clicked",e=>{if(!$(e))return;const n=e.data?.element,r=n?.id??"element-without-id";t.startAction(r,{type:"click"}),t.stopAction(r,{type:"click"})}),e.subscribe("ui_extension_errored",e=>{if(!$(e))return;const n=e.data?.error,r=Error(n?.message);r.stack=n?.trace,t.addError(r,{extensionName:n?.extensionName,extensionTarget:n?.extensionTarget,extensionErrorType:n?.type,appId:n?.appId,appName:n?.appName,appVersion:n?.appVersion})}))}const j=r.J,q=(0,i.AB)(function(){if((0,a.d0)()&&!(0,a.Ww)("records"))return{start:s.l,stop:s.l,getReplayStats(){},onRumStart:s.l,isRecording:()=>!1,getSessionReplayLink(){}};let{strategy:t,shouldStartImmediately:e}=function(){let t=0;return{strategy:{start(){t=1},stop(){t=2},isRecording(){return!1},getSessionReplayLink:s.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually}}();return{start:e=>t.start(e),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart(n,r,o,a,c,h){let g;t=function(t,e,n,r,o,a){let c,u=0;e.subscribe(9,()=>{2!==u&&3!==u||(m(),u=1)}),e.subscribe(10,()=>{1===u&&p()});const l=new C.cP;!function(t,e){if(!t.metricsEnabled)return{stop:s.l};let n,r,o;const{unsubscribe:i}=e.subscribe(t=>{switch(t.type){case"start":n={forced:t.forced,timestamp:(0,E.nx)()},r=void 0,o=void 0;break;case"document-ready":n&&(r=(0,E.vk)(n.timestamp,(0,E.nx)()));break;case"recorder-settled":n&&(o=(0,E.vk)(n.timestamp,(0,E.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":i(),n&&(0,f.Gk)("Recorder init metrics",{metrics:(e=n.forced,s=o,a=(0,E.vk)(n.timestamp,(0,E.nx)()),c=t.type,u=r,{forced:e,loadRecorderModuleDuration:s,recorderInitDuration:a,result:c,waitForDocReadyDuration:u})})}var e,s,a,c,u})}(a,l);const d=async i=>{l.notify({type:"start",forced:i});const[s]=await Promise.all([T(l,{type:"recorder-settled"},x()),T(l,{type:"document-ready"},(0,k.N)("interactive"))]);if(2!==u)return void l.notify({type:"aborted"});if(!s)return u=0,void l.notify({type:"recorder-load-failed"});const d=o();if(!d)return u=0,void l.notify({type:"deflate-encoder-load-failed"});({stop:c}=s(e,t,n,r,d,a)),u=3,l.notify({type:"succeeded"})};function p(e){const r=n.findTrackedSession(),o=r?(0,i.K$)(r,t):void 0;if(!function(t,e){return void 0!==t&&(0!==t||e?.force)}(o,e))return void(u=1);if(function(t){return 2===t||3===t}(u))return;u=2;const s=function(t,e){return e&&e.force&&0===t}(o,e)||!1;d(s).catch(S.Dx),s&&n.updateSessionState({forcedReplay:"1"})}function m(){3===u&&c?.(),u=0}return{start:p,stop:m,getSessionReplayLink:()=>function(t,e,n,r){const o=e.findTrackedSession(),s=function(t,e,n){return e?0===(0,i.K$)(e,t)?"incorrect-session-plan":n?void 0:"replay-not-started":"rum-not-tracked"}(t,o,r),a=n.findView();return(0,i.dx)(t,{viewContext:a,errorType:s,session:o})}(t,n,r,0!==u),isRecording(){return 3===u}}}(r,n,o,a,function(){return g||(c??(c=function(t,e,n,r="deflate"){0===b(r).status&&function(t,e,n){try{const r=(0,p.B)(v)(t),{stop:o}=(0,l.q2)(r,"error",r=>{w(t,e,n,r)}),{stop:i}=(0,l.q2)(r,"message",({data:r})=>{"errored"===r.type?w(t,e,n,r.error,r.streamId):"initialized"===r.type&&function(t,e){const n=b(t);1===n.status&&y.set(t,{status:3,worker:n.worker,stop:n.stop,version:e})}(n,r.version)});r.postMessage({action:"init"}),(0,m.wg)(()=>function(t,e){const n=b(e);1===n.status&&(d.V.error(t+" failed to start: a timeout occurred while initializing the Worker"),n.initializationFailureCallbacks.forEach(t=>t()),y.set(e,{status:2}))}(e,n),3e4);const s=()=>{o(),i()};y.set(n,{status:1,worker:r,stop:s,initializationFailureCallbacks:[]})}catch(r){w(t,e,n,r)}}(t,e,r);const o=b(r);switch(o.status){case 1:return o.initializationFailureCallbacks.push(n),o.worker;case 3:return o.worker}}(r,"Datadog Session Replay",()=>t.stop())),c&&(g=function(t){let e,n=0,r=[],o=!0,i=0;const s=[],{stop:a}=(0,l.q2)(t,"message",({data:t})=>{if("wrote"!==t.type||1!==t.streamId)return;const o=s[0];o&&(o.id===t.id?(s.shift(),n+=t.additionalBytesCount,r.push(t.result),e=t.trailer,o.writeCallback?o.writeCallback(t.result.byteLength):o.finishCallback&&o.finishCallback()):o.id<t.id&&a())});function c(){const t=0===r.length?new Uint8Array(0):(0,u.wh)(r.concat(e)),o={rawBytesCount:n,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return n=0,r=[],o}function d(){o||(t.postMessage({action:"reset",streamId:1}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(e,n){t.postMessage({action:"write",id:i,data:e,streamId:1}),s.push({id:i,writeCallback:n,data:e}),o=!1,i+=1},finish(t){d(),s.length?(s.forEach(t=>{delete t.writeCallback}),s[s.length-1].finishCallback=()=>t(c())):t(c())},finishSync(){d();const t=s.map(t=>t.data).join("");return s.length=0,{...c(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){a()}}}(c))),g},h),e(r)&&t.start()},isRecording:()=>3===_()&&t.isRecording(),getReplayStats:t=>3===_()?(0,c.lv)(t):void 0}}(),function(){let t;return{onRumStart(e,n,r,o,s,c){const u=o.findTrackedSession();if(!u)return;if(!function(t,e){return(0,a.d0)()?(0,a.Ww)("profiles"):(0,I.$5)(e.id,(0,I.it)(t.sessionSampleRate,t.profilingSampleRate))}(r,u))return;const l=function(t){let e={status:"starting"};return t.assembleEventDefaults.register(({eventType:t})=>t!==i.bb.VIEW&&t!==i.bb.LONG_TASK&&t!==i.bb.ACTION&&t!==i.bb.VITAL?O.$O:{type:t,_dd:{profiling:e}}),{get(){return e},set(t){e=t}}}(n);(0,p.B)(R)()?(0,p.B)(N)().then(n=>{n?(t=n(r,e,o,l,c,s,void 0),t.start()):l.set({status:"error",error_reason:"failed-to-lazy-load"})}).catch(S.Dx):l.set({status:"error",error_reason:"not-supported-by-browser"})},stop(){t?.stop()}}}(),{sdkName:"rum-shopify"});q.shopifyPlugin=function(t){return{name:"shopify",async onInit({initConfiguration:e,publicApi:n}){const r=t.shopifyAnalytics;if(!r)return!1;const o=await function(t,{timeout:e=1e3}={}){return(0,L.yU)(new Promise(e=>{t.subscribe("page_viewed",t=>{e(t)})}),e)}(r);if(!$(o))return!1;(0,p.B)(P)(),(0,p.B)(z)(n,r),e.trackViewsManually=!0,e.sessionReplaySampleRate=0,e.profilingSampleRate=0,e.trackUserInteractions=!1,e.trackResources=!1,e.trackLongTasks=!1,e.sessionPersistence="cookie"}}},(0,o.Z)(j,"DD_RUM",q)})();
|