@mcpjam/inspector 3.13.0 → 3.14.0

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.
Files changed (46) hide show
  1. package/bin/runtime-profile.mjs +774 -0
  2. package/bin/start.js +117 -24
  3. package/dist/client/assets/{OAuthDesktopReturnNotice-D5tJNqny.js → OAuthDesktopReturnNotice-D7d-faB1.js} +2 -2
  4. package/dist/client/assets/{app-bootstrap-baadQQNk.js → app-bootstrap-BtDjj9nz.js} +350 -350
  5. package/dist/client/assets/{button-DHPqnOj6.js → button-B99pZFz_.js} +2 -2
  6. package/dist/client/assets/{chunk-D32TOXHM-BPB6AqSK.js → chunk-D32TOXHM-Bcyg0ZVj.js} +5 -5
  7. package/dist/client/assets/{dead-clicks-autocapture-Cbczl2El.js → dead-clicks-autocapture-CnUHv5CB.js} +2 -2
  8. package/dist/client/assets/{error-reporting-CORfsjyM.js → error-reporting-BohBwcQQ.js} +4 -4
  9. package/dist/client/assets/{error-reporting-B4hGM_ob.js → error-reporting-p6G1ojum.js} +1 -1
  10. package/dist/client/assets/{exception-autocapture-CMOUrnel.js → exception-autocapture-Q-isBTHp.js} +2 -2
  11. package/dist/client/assets/{failed-request-tracker-DoQRXuIy.js → failed-request-tracker-BBJW8izb.js} +2 -2
  12. package/dist/client/assets/{highlighted-body-KQOG7T2V-_ljE4u1k.js → highlighted-body-KQOG7T2V-zsXWRnSM.js} +2 -2
  13. package/dist/client/assets/{index-BBr8TZVx.js → index-C9oFRqoK.js} +3 -3
  14. package/dist/client/assets/{jszip.min-C-vIQbxH.js → jszip.min-C86zG41a.js} +2 -2
  15. package/dist/client/assets/{mermaid-MCJ5UELQ-DTJaEEBm.js → mermaid-MCJ5UELQ-DAW4LYwz.js} +1 -1
  16. package/dist/client/assets/{posthog-recorder-Dby9Z8HR.js → posthog-recorder-trUd0BXy.js} +2 -2
  17. package/dist/client/assets/{preload-helper-Dvt1a6xa.js → preload-helper-Buauuydw.js} +2 -2
  18. package/dist/client/assets/{react-CD7Pk4KS.js → react-CZb-kDOs.js} +2 -2
  19. package/dist/client/assets/{rolldown-runtime-mzU9SaVm.js → rolldown-runtime-Bkua2_Tb.js} +1 -1
  20. package/dist/client/assets/{surveys-DYqpu8xl.js → surveys-BISK_WOT.js} +2 -2
  21. package/dist/client/assets/{trace-timeline-PnE1ouRj.js → trace-timeline-CRewsP1E.js} +2 -2
  22. package/dist/client/assets/{trace-timeline-WXINST5z.js → trace-timeline-D-DWE-sO.js} +1 -1
  23. package/dist/client/assets/{web-vitals-BLq6M5vx.js → web-vitals-DqmZ9w02.js} +2 -2
  24. package/dist/client/index.html +7 -7
  25. package/dist/server/authorization-MA42CNYT.js +22 -0
  26. package/dist/server/chunk-7M3XVZCQ.js +381 -0
  27. package/dist/server/{chunk-MBS3EZ3U.js → chunk-7ZIR7SX7.js} +5 -44
  28. package/dist/server/chunk-C47PTIDS.js +487 -0
  29. package/dist/server/chunk-DHRTCKJA.js +3979 -0
  30. package/dist/server/chunk-HJTKF2X6.js +45 -0
  31. package/dist/server/{chunk-2FVSBJQF.js → chunk-KNO4KZJF.js} +224 -758
  32. package/dist/server/{chunk-QHYREDE3.js → chunk-RWFTW2EW.js} +7 -5
  33. package/dist/server/chunk-SDWJSPSI.js +252 -0
  34. package/dist/server/chunk-VFRLMHOC.js +33 -0
  35. package/dist/server/chunk-XSQ2GC45.js +438 -0
  36. package/dist/server/chunk-YQ2BTE46.js +88 -0
  37. package/dist/server/{consent-lifetime-TYLDY64H.js → consent-lifetime-OXQM37RV.js} +4 -3
  38. package/dist/server/grants-UVE62NGN.js +37 -0
  39. package/dist/server/harness-install-cli.js +239 -4
  40. package/dist/server/index.js +9044 -9216
  41. package/dist/server/local-turn-XSUGEKTL.js +19 -0
  42. package/dist/server/runtime-health-TCF3ZEKS.js +28 -0
  43. package/dist/server/runtime-lifecycle-YQ3KWDLJ.js +53 -0
  44. package/package.json +26 -23
  45. package/dist/server/chunk-I7ZVTBZP.js +0 -3100
  46. package/dist/server/local-turn-VQDSTY6T.js +0 -12
@@ -1,4 +1,4 @@
1
- (function(){try{var Ve=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Ve.SENTRY_RELEASE={id:"3.13.0"};var $n=new Ve.Error().stack;$n&&(Ve._sentryDebugIds=Ve._sentryDebugIds||{},Ve._sentryDebugIds[$n]="89210625-1185-4202-9363-7e6e1c3408ae",Ve._sentryDebugIdIdentifier="sentry-dbid-89210625-1185-4202-9363-7e6e1c3408ae")}catch{}})();(function(){function Ve(e){return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function $n(e,t,n){return(t=(function(r){var i=(function(s){if(Ve(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,"string");if(Ve(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)})(r);return Ve(i)=="symbol"?i:i+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;arguments.length>t;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lr(Object(n),!0).forEach(function(r){$n(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Di(e,t,n,r,i,s,c){try{var l=e[s](c),o=l.value}catch(a){n(a);return}l.done?t(o):Promise.resolve(o).then(r,i)}function Ge(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function c(o){Di(s,r,i,c,l,"next",o)}function l(o){Di(s,r,i,c,l,"throw",o)}c(void 0)})}}const ka=["type"];var K=(function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e})({}),U=(function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e})({}),He=(function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e})({}),wt=(function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e})({}),tn=(function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e})({}),nn=(function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e})({}),Ee=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})({});function Fi(e,t){return e.indexOf(t)!==-1}"Mobile".toLowerCase(),"Tablet".toLowerCase(),"0".repeat(32),"0".repeat(16);var Pi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},$i={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},Bn={};function zn(e){if(Bn[e])return Bn[e];const t=(function(u){var h,d;const p=(h=globalThis)===null||h===void 0||(h=h.Zone)===null||h===void 0||(d=h.__symbol__)===null||d===void 0?void 0:d.call(h,u);return p&&globalThis[p]?globalThis[p]:void 0})(e)||globalThis[e],n=t.prototype,r=e in Pi?Pi[e]:void 0,i=!!(r&&r.every(u=>{var h;return!!(!((h=Object.getOwnPropertyDescriptor(n,u))===null||h===void 0||(h=h.get)===null||h===void 0)&&h.toString().includes("[native code]"))})),s=e in $i?$i[e]:void 0,c=!!(s&&s.every(u=>{var h;return typeof n[u]=="function"&&((h=n[u])===null||h===void 0?void 0:h.toString().includes("[native code]"))}));if(i&&c)return Bn[e]=t.prototype,t.prototype;const l=document.createElement("iframe");l.style.display="none";let o=!1;try{document.body.appendChild(l);const u=l.contentWindow;if(!u)return t.prototype;const h=u[e].prototype;return h?(Fi(a=navigator.userAgent,"AppleWebKit")&&!Fi(a,"Chrome")&&(l.classList.add("rr-block","ph-no-capture"),l.setAttribute("__rrwebUntaintedPrototype",e),o=!0),Bn[e]=h):n}catch{return n}finally{!o&&l.parentNode&&document.body.removeChild(l)}var a}var rn=Object.create(null);function xt(e,t,n){var r;const i=rn[e],s=i[n];if(s)return s.call(t);const c=zn(e),l=(r=Object.getOwnPropertyDescriptor(c,n))===null||r===void 0?void 0:r.get;return l?(i[n]=l,l.call(t)):t[n]}rn.Node=Object.create(null),rn.ShadowRoot=Object.create(null),rn.MutationObserver=Object.create(null),rn.Element=Object.create(null);var Hn,Nr={};function jn(e,t,n){const r=`${e}.${String(n)}`;if(Nr[r])return Nr[r].bind(t);const i=zn(e)[n];return typeof i!="function"?t[n]:(Nr[r]=i,i.bind(t))}function Bi(){return zn("MutationObserver").constructor}function pt(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i={next:r},s=n(function(...c){return i.next.apply(this,c)});return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r},__rrweb_layer__:{enumerable:!1,value:i}})),e[t]=s,()=>{if(e[t]===s)return void(e[t]=i.next);const c=a=>{var u;return typeof a=="function"?(u=a.__rrweb_layer__)!==null&&u!==void 0?u:a.__posthog_layer__:void 0};let l=e[t],o=c(l);for(;o;){if(o.next===s)return void(o.next=i.next);l=o.next,o=c(l)}}}catch{return()=>{}}}var L={childNodes:e=>xt("Node",e,"childNodes"),parentNode:e=>xt("Node",e,"parentNode"),parentElement:e=>xt("Node",e,"parentElement"),textContent:e=>xt("Node",e,"textContent"),isConnected(e){if(Hn===void 0){var t;const n=(t=Object.getOwnPropertyDescriptor(zn("Node"),"isConnected"))===null||t===void 0?void 0:t.get;Hn=n?.toString().includes("[native code]")?n:null}return Hn?.call(e)},contains:(e,t)=>jn("Node",e,"contains")(t),getRootNode:e=>jn("Node",e,"getRootNode")(),host:e=>e&&"host"in e?xt("ShadowRoot",e,"host"):null,styleSheets:e=>e.styleSheets,shadowRoot:e=>e&&"shadowRoot"in e?xt("Element",e,"shadowRoot"):null,querySelector:(e,t)=>jn("Element",e,"querySelector")(t),querySelectorAll:(e,t)=>jn("Element",e,"querySelectorAll")(t),mutationObserver:Bi,patch:pt};function Ye(){try{if(typeof performance<"u"&&performance.now)return performance.now()}catch{}return Date.now()}var kt=0,Dr=0;function _a(){kt+=1}function zi(){return kt}function Fr(e,t){return(t!==kt||e>6e4)&&(Dr+=1,!0)}var rt=0,Pr=0,$r=0,Be={durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0},Wn=null,At=null,sn=[],on=0,qn=0,Un={slowestBatchMs:0},ft={deferredCount:0,failedCount:0,abandonedCount:0,totalMs:0,slowestSliceMs:0};function Hi(e){var t;(rt+=1)>1||(Be={durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0},sn=[],on=0,At=(t=e)&&t>0?t:null,Pr=Ye(),$r=kt)}function ji(){return rt===0?Wn||{durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0}:(rt-=1)>0?Be:(Be.durationMs=Ye()-Pr,Be.deferredStylesheetCount=on,ft.deferredCount+=on,At=null,Fr(Be.durationMs,$r)?Be:Wn=Be)}function Vn(e,t,n){let r=e.length;if(n>=32)return r;for(let i=0;e.length>i;i++){const s=e[i];try{const c=s.cssRules;if(c&&c.length)r+=Vn(c,t,n+1);else if(t&&s.styleSheet){const l=s.styleSheet;if(!t.has(l)){t.add(l);const o=l.rules||l.cssRules;o&&(r+=Vn(o,t,n+1))}}}catch{}}return r}function Gn(e){if(rt===0)return;const t=Vn(e,null,0);Be.cssRuleCount+=t,qn>0&&(Be.nonDeferrableCssRuleCount+=t)}function Wi(e){qn+=1;try{return e()}finally{qn-=1}}function Br(e){rt>0&&(Be.stylesheetMs+=e)}function qi(e){if(rt===0||At===null)return!1;const t=Be.cssRuleCount-Be.nonDeferrableCssRuleCount;return t>=At||t+(function(n){try{const r=n&&(n.rules||n.cssRules);if(!r)return 0;const i=new WeakSet;return i.add(n),Vn(r,i,0)}catch{return 0}})(e)>At}function Ia(){const e=sn;return sn=[],e}function Yn(){ft.failedCount+=1}function Ui(e){e>0&&(ft.abandonedCount+=e)}function an(e){return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function C(e,t,n){return(t=(function(r){var i=(function(s){if(an(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,"string");if(an(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)})(r);return an(i)=="symbol"?i:i+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e){return e.nodeType===e.ELEMENT_NODE}function ln(e){const t=e&&"host"in e&&"mode"in e&&L.host(e)||null;return!!(t&&"shadowRoot"in t&&L.shadowRoot(t)===e)}function cn(e){return{}.toString.call(e)==="[object ShadowRoot]"}function Vi(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Gi(e){const{cssText:t}=e;if(3>t.split('"').length)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}var Hr=0;function un(e){const t=Hr===0,n=t?Ye():0;Hr+=1;try{const r=e.rules||e.cssRules;if(!r)return null;Gn(r);let i=e.href;return!i&&e.ownerNode&&(i=e.ownerNode.baseURI),Vi(Array.from(r,s=>Yi(s,i)).join(""))}catch{return null}finally{Hr-=1,t&&Br(Ye()-n)}}function Yi(e,t){if(Wr(e)){let r;try{r=un(e.styleSheet)||Gi(e)}catch{r=e.cssText}try{var n;if(r&&(!((n=e.styleSheet)===null||n===void 0)&&n.href))return _t(r,e.styleSheet.href)}catch{}return r}{let r=e.cssText;return Zn(e)&&e.selectorText.includes(":")&&(r=jr(r)),t?_t(r,t):r}}function jr(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function Wr(e){return"styleSheet"in e}function Zn(e){return"selectorText"in e}var Zi=/^-?[A-Za-z_][\w-]*$/,Ca=/^-?[A-Za-z_][\w-]*(\.-?[A-Za-z_][\w-]*)*$/;function Ma(e){const t=[];let n=!1,r=null;const i=new Map;function s(o){const a=t.pop();if(a.kind==="group"){if(o===null){for(;t.length>0&&t[t.length-1].kind==="group";)t.pop();s(null);return}const u=t[t.length-1];u.parts.push(o),u.index+=1;return}if(!a.importRule)return n=!0,void(r=o);c(t[t.length-1],a.importRule,o)}function c(o,a,u){try{let d;try{d=u||Gi(a)}catch{d=a.cssText}try{var h;d&&(h=a.styleSheet)!==null&&h!==void 0&&h.href&&(d=_t(d,a.styleSheet.href))}catch{}d&&o.parts.push(d),o.index+=1}catch{s(null)}}function l(o){const a=o.rules[o.index];if(o.kind==="sheet"&&Wr(a)){const h=i.get(a);h===null?(o.parts.push(a.cssText),o.index+=1):h?t.push({kind:"sheet",sheet:h.sheet,rules:h.rules,sheetHref:h.sheetHref,index:0,parts:[],importRule:a}):c(o,a,null);return}if((function(h,d){try{const p=(function(m){const v=m;if(!v.cssRules||v.cssRules.length===0)return null;if(v.media&&typeof v.media.mediaText=="string")return`@media ${v.media.mediaText} {`;if(Zn(m)){if(typeof v.type=="number"&&v.type!==1)return null;const y=v.style?v.style.cssText:"";return`${m.selectorText} {${y?" "+y:""}`}if("containerName"in v)return typeof v.containerQuery!="string"||v.containerName&&!Zi.test(v.containerName)?null:`@container ${v.containerName?`${v.containerName} `:""}${v.containerQuery} {`;if(typeof v.conditionText=="string"){let y="";try{var g;y=((g=m.constructor)===null||g===void 0?void 0:g.name)||""}catch{return null}return y===""||y==="Object"||y==="CSSSupportsRule"?`@supports ${v.conditionText} {`:null}return typeof v.name=="string"?"keyText"in v.cssRules[0]?Zi.test(v.name)?`@keyframes ${v.name} {`:null:v.name===""?"@layer {":Ca.test(v.name)?`@layer ${v.name} {`:null:null})(h);if(p===null)return!1;const f=d.sheetHref;return t.push({kind:"group",rules:Array.from(h.cssRules),sheetHref:f,index:0,parts:[],prelude:f?_t(p,f):p,fixColons:d.kind==="sheet"&&Zn(h)&&h.selectorText.includes(":")}),!0}catch{return!1}})(a,o))return;let u=a.cssText;o.kind==="sheet"&&Zn(a)&&a.selectorText.includes(":")&&(u=jr(u)),o.parts.push(o.sheetHref?_t(u,o.sheetHref):u),o.index+=1}return(function(o){try{const a=o.rules||o.cssRules;if(!a)return!1;Gn(a);let u=o.href;!u&&o.ownerNode&&(u=o.ownerNode.baseURI);const h=Array.from(a);return t.push({kind:"sheet",sheet:o,rules:h,sheetHref:u,index:0,parts:[],importRule:null}),(function(d,p){const f=[{sheet:p,rules:d,index:0}];for(;f.length>0;){const m=f[f.length-1];if(m.index>=m.rules.length){f.pop();continue}const v=m.rules[m.index];if(m.index+=1,!Wr(v)||i.has(v))continue;let g=null;try{g=v.styleSheet}catch{i.set(v,null);continue}if(g&&!f.some(y=>y.sheet===g))try{const y=g.rules||g.cssRules;if(!y)continue;Gn(y);let b=g.href;!b&&g.ownerNode&&(b=g.ownerNode.baseURI);const k=Array.from(y);i.set(v,{sheet:g,rules:k,sheetHref:b}),f.push({sheet:g,rules:k,index:0})}catch{}}})(h,o),!0}catch{return!1}})(e)||(n=!0),{advance(o){if(n)return!0;const a=Ye();let u=o>0?o:1;try{for(;!n&&u>0;){const h=t[t.length-1];if(h.index>=h.rules.length){let d=null;try{if(h.kind==="group"){const p=h.prelude+h.parts.join("")+"}";d=h.fixColons?jr(p):p}else d=Vi(h.parts.join(""))}catch{}s(d);continue}u-=1;try{l(h)}catch{s(null)}}}catch{n=!0,r=null}finally{Br(Ye()-a)}return n},text:()=>n?r:null,remainingRules(){if(n)return 0;let o=0;for(const a of t)o+=a.rules.length-a.index;return o}}}var Xi=class{constructor(){C(this,"idNodeMap",new Map),C(this,"nodeMetaMap",new WeakMap)}getId(e){var t,n;return e&&(t=(n=this.getMeta(e))===null||n===void 0?void 0:n.id)!==null&&t!==void 0?t:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);if(this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n)),zr(e)){const n=L.shadowRoot(e);n&&this.removeNodeFromMap(n),e.nodeName==="IFRAME"&&e.contentDocument&&this.removeNodeFromMap(e.contentDocument)}}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){this.idNodeMap.set(t.id,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xn({element:e,maskInputOptions:t,tagName:n,type:r,value:i,maskInputFn:s}){let c=i||"";const l=r&&it(r);return(t[n.toLowerCase()]||l&&t[l])&&(c=s?s(c,e):"*".repeat(c.length)),c}function it(e){return e.toLowerCase()}var Ra=new Set(["rr_width","rr_height","rr_left","rr_top","rr_position","rr_transform","rr_display","rr_scrollleft","rr_scrolltop","rr_mediastate","rr_open_mode"]);function Jn({element:e,name:t,value:n,maskAllElementAttributes:r,maskAttributeFn:i,isGenerated:s=!1}){return n&&(r?s&&Ra.has(it(t))?n:"*".repeat(n.length):i?i(t,n,e):n)}var Ji="__rrweb_original__";function Kn(e){try{const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?it(t):null}catch{return null}}var Ea=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ta=/^(?:[a-z+]+:)?\/\//i,xa=/^www\..*/i,Aa=/^(data:)([^,]*),(.*)/i;function _t(e,t){return(e||"").replace(Ea,(n,r,i,s,c,l)=>{const o=i||c||l,a=r||s||"";if(!o)return n;if(Ta.test(o)||xa.test(o))return`url(${a}${o}${a})`;if(Aa.test(o))return`url(${a}${o}${a})`;if(o[0]==="/")return`url(${a}${(function(d){let p="";return p=d.indexOf("//")>-1?d.split("/").slice(0,3).join("/"):d.split("/")[0],p=p.split("?")[0],p})(t)+o}${a})`;const u=t.split("/"),h=o.split("/");u.pop();for(const d of h)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${a}${u.join("/")}${a})`})}var Ot,Ki,dn=new Map,Oa=1,La=new RegExp("[^a-z0-9-_:]");function Qi(){return Oa++}var es=!1,Na=/^[^ \t\n\r\u000c]+/,Da=/^[, \t\n\r\u000c]+/,ts=new WeakMap;function Lt(e,t){return t&&t.trim()!==""?qr(e,t):t}function qr(e,t){let n=ts.get(e);if(n||(n=e.createElement("a"),ts.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Ur(e,t){return t?.maxBase64ImageLength?(function(n,r){return r&&n.length>r?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==":n})(e,t.maxBase64ImageLength):e}function ns(e,t,n,r,i,s){if(!r)return r;if(n==="src"||n==="href"&&(t!=="use"||r[0]!=="#")){if(t==="link"&&i){var c;const o=(c=i.sheet)===null||c===void 0?void 0:c.href;if(o)return o}const l=Lt(e,r);if(l.startsWith("data:")){if(t==="img"&&i){let o=l;return(s!=null&&s.type||s?.quality!==void 0)&&(o=(function(a,u,h,d){if(1e5>u.length||!a.complete||a.naturalWidth===0||a.naturalWidth>4096||a.naturalHeight>4096)return u;const p=dn.get(u);if(p&&p.type===h&&p.quality===d)return p.result;try{const f=document.createElement("canvas");f.width=a.naturalWidth,f.height=a.naturalHeight;const m=f.getContext("2d");if(!m)return u;m.drawImage(a,0,0);const v=f.toDataURL(h||"image/webp",d??.4),g=u.length>v.length?v:u;if(dn.size>=10){const y=dn.keys().next().value;y!==void 0&&dn.delete(y)}return dn.set(u,{type:h,quality:d,result:g}),g}catch{return u}})(i,l,s.type,s.quality)),Ur(o,s)}if(t==="image")return Ur(l,s)}return l}if(n==="xlink:href"&&r[0]!=="#"){const l=Lt(e,r);return t==="image"&&l.startsWith("data:")?Ur(l,s):l}return n!=="background"||t!=="table"&&t!=="td"&&t!=="th"?n==="srcset"?(function(l,o){if(o.trim()==="")return o;let a=0;function u(d){let p;const f=d.exec(o.substring(a));return f?(p=f[0],a+=p.length,p):""}const h=[];for(;u(Da),o.length>a;){let d=u(Na);if(d.slice(-1)===",")d=Lt(l,d.substring(0,d.length-1)),h.push(d);else{let p="";d=Lt(l,d);let f=!1;for(;;){const m=o.charAt(a);if(m===""){h.push((d+p).trim());break}if(f)m===")"&&(f=!1);else{if(m===","){a+=1,h.push((d+p).trim());break}m==="("&&(f=!0)}p+=m,a+=1}}}return h.join(", ")})(e,r):n==="style"?_t(r,qr(e)):t==="object"&&n==="data"?Lt(e,r):r:Lt(e,r)}function rs(e,t,n){return(e==="video"||e==="audio")&&it(t)==="autoplay"}function is(e){return typeof e=="string"&&it(e).split(/\s+/).includes("stylesheet")}function Qn(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&Qn(L.parentNode(e),t,n);for(let r=e.classList.length;r--;)if(t.test(e.classList[r]))return!0;return!!n&&Qn(L.parentNode(e),t,n)}function ss(e,t,n,r){let i;if(zr(e)){if(i=e,!L.childNodes(i).length)return!1}else{if(L.parentElement(e)===null)return!1;i=L.parentElement(e)}try{if(typeof t=="string"){if(r){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(Qn(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Nt(e,t,n){const r=e.removeEventListener;typeof r=="function"&&r.call(e,t,n)}var hn=new Map;function os(e,t){return Array.from(e.styleSheets).find(n=>n.href===t)}function Ze(e){return e==null?"":e.toLowerCase()}var Vr=!1,Gr=!1;function Dt(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,maskTextClass:c,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:a=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p=!1,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v={},inlineImages:g=!1,recordCanvas:y=!1,canvasMaskingConfigured:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_=5e3,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:N=!1,depth:x=0,maxDepth:z=50}=t;let{needsMask:Q}=t,{preserveWhiteSpace:te=!0}=t;if(x>=z)return Gr=!0,Vr||(Vr=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${z}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;Q||(Q=ss(e,c,l,Q===void 0)),rt>0&&(Be.nodeCount+=1);const ue=(function(E,D){const{doc:ee,mirror:X,blockClass:ie,blockSelector:pe,needsMask:ye,inlineStylesheet:Ie,maskInputOptions:de={},maskTextFn:Pe,maskInputFn:Ce,maskAllElementAttributes:Oe=!1,maskAttributeFn:be,dataURLOptions:ot={},inlineImages:Kt,recordCanvas:St,canvasMaskingConfigured:qe,keepIframeSrcFn:Qt,newlyAddedElement:Ue=!1}=D,se=(function(O,ze){if(!ze.hasNode(O))return;const ge=ze.getId(O);return ge===1?void 0:ge})(ee,X);switch(E.nodeType){case E.DOCUMENT_NODE:return E.compatMode!=="CSS1Compat"?{type:Ee.Document,childNodes:[],compatMode:E.compatMode}:{type:Ee.Document,childNodes:[]};case E.DOCUMENT_TYPE_NODE:return{type:Ee.DocumentType,name:E.name,publicId:E.publicId,systemId:E.systemId,rootId:se};case E.ELEMENT_NODE:return(function(O,ze){const{doc:ge,blockClass:A,blockSelector:Me,inlineStylesheet:fe,maskInputOptions:P={},maskInputFn:W,maskAllElementAttributes:$e=!1,maskAttributeFn:q,dataURLOptions:j={},inlineImages:F,recordCanvas:ce,canvasMaskingConfigured:re,keepIframeSrcFn:Qe,newlyAddedElement:et=!1,rootId:en}=ze,dt=(function(T,J,Re){try{if(typeof J=="string"){if(T.classList.contains(J))return!0}else for(let Le=T.classList.length;Le--;)if(J.test(T.classList[Le]))return!0;if(Re)return T.matches(Re)}catch{}return!1})(O,A,Me),ve=(function(T){if(T instanceof HTMLFormElement)return"form";const J=it(T.tagName);return La.test(J)?"div":J})(O),oe=new Set;let B={};const tt=O.attributes.length;for(let T=0;tt>T;T++){const J=O.attributes[T];rs(ve,J.name)||(B[J.name]=ns(ge,ve,it(J.name),J.value,O,j))}if(ve==="link"&&fe&&!dt&&is(B.rel)){let T=O.sheet;if(!T){const Re=(function(Le){return Le.href})(O);Re&&(T=os(ge,Re),!T&&Re.includes(".css"))&&(T=os(ge,window.location.origin+"/"+Re.replace(window.location.href,"")))}let J=null;T&&(qi(T)?rt>0&&(sn.push(O),on+=1):J=un(T)),J&&(delete B.rel,delete B.href,B._cssText=J)}var nt;if(ve==="style"&&O.sheet&&!(O.innerText||L.textContent(O)||"").trim().length){const T=Wi(()=>un(O.sheet));T&&(B._cssText=T)}if(ve==="input"||ve==="textarea"||ve==="select"){const T=O.value,J=O.checked;B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&T?B.value=Xn({element:O,type:Kn(O),tagName:ve,value:T,maskInputOptions:P,maskInputFn:W}):J&&(B.checked=J)}if(ve==="option"&&(O.selected&&!P.select?B.selected=!0:delete B.selected),ve==="dialog"&&O.open){try{B.rr_open_mode=O.matches("dialog:modal")?"modal":"non-modal"}catch{B.rr_open_mode="modal",B.ph_rr_could_not_detect_modal=!0}oe.add("rr_open_mode")}if(ve==="canvas"&&ce&&!re?.())try{if(O.__context==="2d")(function(T){const J=T.getContext("2d");if(!J)return!0;for(let Re=0;T.width>Re;Re+=50)for(let Le=0;T.height>Le;Le+=50){const ke=J.getImageData,ht=Ji in ke?ke[Ji]:ke;let Tt;try{Tt=ht.call(J,Re,Le,Math.min(50,T.width-Re),Math.min(50,T.height-Le))}catch{return!1}if(new Uint32Array(Tt.data.buffer).some(Sa=>Sa!==0))return!1}return!0})(O)||(B.rr_dataURL=O.toDataURL(j.type,j.quality));else if(!("__context"in O)){const T=O.toDataURL(j.type,j.quality),J=ge.createElement("canvas");J.width=O.width,J.height=O.height,T!==J.toDataURL(j.type,j.quality)&&(B.rr_dataURL=T)}}catch(T){((nt=T)==null?void 0:nt.name)==="SecurityError"?es||(es=!0,console.warn("Cannot read canvas pixels, so this canvas is left out of the recording. A cross-origin image or video drawn into it taints it.",nt)):console.warn("Cannot read canvas pixels, so this canvas is left out of the recording.",nt)}let Ar,Or=!1;if(ve==="img"&&F){Ot||(Ot=ge.createElement("canvas"),Ki=Ot.getContext("2d"));const T=O,J=T.currentSrc||T.getAttribute("src")||"<unknown-src>",Re=T.crossOrigin,Le=(ht,Tt)=>Or?Jn({element:O,name:ht,value:Tt,maskAllElementAttributes:$e,maskAttributeFn:q}):Tt,ke=()=>{Nt(T,"load",ke);try{Ot.width=T.naturalWidth,Ot.height=T.naturalHeight,Ki.drawImage(T,0,0);const ht=Ot.toDataURL(j.type,j.quality);B.rr_dataURL=Le("rr_dataURL",ht)}catch(ht){if(T.crossOrigin!=="anonymous")return T.crossOrigin="anonymous",void(T.complete&&T.naturalWidth!==0?ke():T.addEventListener("load",ke));console.warn(`Cannot inline img src=${J}! Error: ${ht}`)}T.crossOrigin==="anonymous"&&(Re?B.crossOrigin=Le("crossOrigin",Re):T.removeAttribute("crossorigin"))};T.complete&&T.naturalWidth!==0?ke():T.addEventListener("load",ke)}if(ve==="audio"||ve==="video"){const T=B;T.rr_mediaState=O.paused?"paused":"played",oe.add("rr_mediaState"),T.rr_mediaCurrentTime=O.currentTime,T.rr_mediaPlaybackRate=O.playbackRate,T.rr_mediaMuted=O.muted,T.rr_mediaLoop=O.loop,T.rr_mediaVolume=O.volume}if(et||(O.scrollLeft&&(B.rr_scrollLeft=O.scrollLeft),O.scrollTop&&(B.rr_scrollTop=O.scrollTop)),dt){var Nn,Dn,Fn;const{width:T,height:J,left:Re,top:Le}=O.getBoundingClientRect(),ke=(Nn=ge.defaultView)===null||Nn===void 0?void 0:Nn.getComputedStyle(O);B={class:B.class,rr_width:`${T}px`,rr_height:`${J}px`,rr_left:`${Math.floor(Re+(((Dn=ge.defaultView)===null||Dn===void 0?void 0:Dn.scrollX)||0))}px`,rr_top:`${Math.floor(Le+(((Fn=ge.defaultView)===null||Fn===void 0?void 0:Fn.scrollY)||0))}px`},oe.add("rr_width"),oe.add("rr_height"),oe.add("rr_left"),oe.add("rr_top"),ke&&(B.rr_position=ke.position||"static",oe.add("rr_position"),ke.transform&&ke.transform!=="none"&&(B.rr_transform=ke.transform,oe.add("rr_transform")),ke.display&&ke.display.startsWith("inline")&&(B.rr_display=ke.display,oe.add("rr_display")))}if(ve!=="iframe"||Qe(B.src)||(O.contentDocument||(B.rr_src=B.src),delete B.src),$e||q)for(const[T,J]of Object.entries(B))typeof J!="string"&&J!==null||(B[T]=Jn({element:O,name:T,value:J,maskAllElementAttributes:$e,maskAttributeFn:q,isGenerated:oe.has(T)}));Or=!0;try{customElements.get(ve)&&(Ar=!0)}catch{}return{type:Ee.Element,tagName:ve,attributes:B,childNodes:[],isSVG:(Pn=O,!!(Pn.tagName==="svg"||Pn.ownerSVGElement)||void 0),needBlock:dt,rootId:en,isCustom:Ar};var Pn})(E,{doc:ee,blockClass:ie,blockSelector:pe,inlineStylesheet:Ie,maskInputOptions:de,maskInputFn:Ce,maskAllElementAttributes:Oe,maskAttributeFn:be,dataURLOptions:ot,inlineImages:Kt,recordCanvas:St,canvasMaskingConfigured:qe,keepIframeSrcFn:Qt,newlyAddedElement:Ue,rootId:se});case E.TEXT_NODE:return(function(O,ze){const{needsMask:ge,maskTextFn:A,rootId:Me}=ze,fe=L.parentNode(O),P=fe&&fe.tagName;let W=L.textContent(O);const $e=P==="STYLE"||void 0,q=P==="SCRIPT"||void 0;if($e&&W){try{var j;if(!(O.nextSibling||O.previousSibling)){if(!qi(fe.sheet)){if(!((j=fe.sheet)===null||j===void 0)&&j.cssRules){const F=un(fe.sheet);F&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(F)&&(W=F)}}}}catch(F){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${F}`,O)}W=_t(W,qr(ze.doc))}return q&&(W="SCRIPT_PLACEHOLDER"),!$e&&!q&&W&&ge&&(W=A?A(W,L.parentElement(O)):W.replace(/[\S]/g,"*")),{type:Ee.Text,textContent:W||"",isStyle:$e,rootId:Me}})(E,{doc:ee,needsMask:ye,maskTextFn:Pe,rootId:se});case E.CDATA_SECTION_NODE:return{type:Ee.CDATA,textContent:"",rootId:se};case E.COMMENT_NODE:return{type:Ee.Comment,textContent:L.textContent(E)||"",rootId:se};default:return!1}})(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,keepIframeSrcFn:R,newlyAddedElement:N});if(!ue)return console.warn(e,"not serialized"),null;let ne;ne=r.hasNode(e)?r.getId(e):(function(E,D){return!!(D.comment&&E.type===Ee.Comment||E.type===Ee.Element&&(D.script&&(E.tagName==="script"||E.tagName==="link"&&(E.attributes.rel==="preload"&&E.attributes.as==="script"||E.attributes.rel==="modulepreload")||E.tagName==="link"&&E.attributes.rel==="prefetch"&&typeof E.attributes.href=="string"&&(function(ee){var X;let ie;try{ie=new URL(ee,window.location.href)}catch{return null}const pe=ie.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(X=pe?.[1])!==null&&X!==void 0?X:null})(E.attributes.href)==="js")||D.headFavicon&&(E.tagName==="link"&&E.attributes.rel==="shortcut icon"||E.tagName==="meta"&&(Ze(E.attributes.name).match(/^msapplication-tile(image|color)$/)||Ze(E.attributes.name)==="application-name"||["icon","apple-touch-icon","shortcut icon"].includes(Ze(E.attributes.rel))))||E.tagName==="meta"&&(D.headMetaDescKeywords&&Ze(E.attributes.name).match(/^description|keywords$/)||D.headMetaSocial&&(Ze(E.attributes.property).match(/^(og|twitter|fb):/)||Ze(E.attributes.name).match(/^(og|twitter):/)||Ze(E.attributes.name)==="pinterest")||D.headMetaRobots&&["robots","googlebot","bingbot"].includes(Ze(E.attributes.name))||D.headMetaHttpEquiv&&E.attributes["http-equiv"]!==void 0||D.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(Ze(E.attributes.name))||Ze(E.attributes.property).match(/^article:/)||Ze(E.attributes.property).match(/^product:/))||D.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(Ze(E.attributes.name)))))})(ue,m)||!te&&ue.type===Ee.Text&&!ue.isStyle&&!ue.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Qi();const H=Object.assign(ue,{id:ne});if(r.add(e,H),ne===-2)return null;k&&k(e);let le=!o;if(H.type===Ee.Element){le=le&&!H.needBlock,delete H.needBlock;const E=L.shadowRoot(e);E&&cn(E)&&(H.isShadowHost=!0)}if((H.type===Ee.Document||H.type===Ee.Element)&&le){m.headWhitespace&&H.type===Ee.Element&&H.tagName==="head"&&(te=!1);const E={doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:o,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x+1,maxDepth:z};if(!(H.type===Ee.Element&&H.tagName==="textarea"&&H.attributes.value!==void 0))for(const ee of Array.from(L.childNodes(e))){const X=Dt(ee,E);X&&H.childNodes.push(X)}let D=null;if(zr(e)&&(D=L.shadowRoot(e)))for(const ee of Array.from(L.childNodes(D))){const X=Dt(ee,E);X&&(cn(D)&&(X.isShadow=!0),H.childNodes.push(X))}}const we=L.parentNode(e);if(we&&ln(we)&&cn(we)&&(H.isShadow=!0),H.type===Ee.Element&&H.tagName==="iframe"){const E=(function(D,ee,X){const ie=()=>{},pe=D.contentWindow;if(!pe)return ie;let ye;try{ye=pe.document.readyState}catch{return ie}const Ie=()=>ee();if(ye!=="complete"){let Ce=!1,Oe=null;const be=()=>{Ce||(Ce=!0,Oe!==null&&(clearTimeout(Oe),Oe=null),Nt(D,"load",ot),D.addEventListener("load",Ie),ee())},ot=()=>be();return Oe=setTimeout(be,X),D.addEventListener("load",ot),()=>{Oe!==null&&(clearTimeout(Oe),Oe=null),Ce?Nt(D,"load",Ie):(Ce=!0,Nt(D,"load",ot))}}const de="about:blank";let Pe;try{Pe=pe.location.href}catch{return ie}if(Pe!==de||D.src===de||D.src===""){const Ce=setTimeout(ee,0);return D.addEventListener("load",Ie),()=>{clearTimeout(Ce),Nt(D,"load",Ie)}}return D.addEventListener("load",Ie),()=>{Nt(D,"load",Ie)}})(e,()=>{const D=e.contentDocument;if(D&&w){const ee=Dt(D,{doc:D,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x+1,maxDepth:z});ee&&w(e,ee)}},_);S?.(e,E)}return H.type===Ee.Element&&H.tagName==="link"&&is(H.attributes.rel)&&(function(E,D,ee){if(hn.has(E))return;let X;try{X=E.sheet}catch{return}if(X)return;const ie=new AbortController;let pe=!1;const ye=()=>{if(!pe){pe=!0;try{(()=>{if(M){const de=Dt(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x,maxDepth:z});de&&M(e,de)}})()}finally{hn.delete(E),ie.abort()}}},Ie=setTimeout(ye,ee);ie.signal.addEventListener("abort",()=>clearTimeout(Ie),{once:!0}),E.addEventListener("load",ye,{signal:ie.signal,once:!0}),hn.set(E,ie)})(e,0,I),H}function as(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e===!1?{}:e}var Fa=class wa{constructor(...t){C(this,"parentElement",null),C(this,"parentNode",null),C(this,"ownerDocument",void 0),C(this,"firstChild",null),C(this,"lastChild",null),C(this,"previousSibling",null),C(this,"nextSibling",null),C(this,"ELEMENT_NODE",1),C(this,"TEXT_NODE",3),C(this,"nodeType",void 0),C(this,"nodeName",void 0),C(this,"RRNodeType",void 0)}get childNodes(){const t=[];let n=this.firstChild;for(;n;)t.push(n),n=n.nextSibling;return t}contains(t){if(!(t instanceof wa)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};function me(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>Ft(n,e,t,r)}function Ft(e,t,n,r){at(()=>{const i=e.removeEventListener;typeof i=="function"&&(r!==void 0?i.call(e,t,n,r):i.call(e,t,n))})}function at(e){try{e()}catch(t){if(!(t instanceof DOMException&&t.name==="SecurityError"))throw t}}function er(e){e.forEach(t=>{if(typeof t=="function")try{t()}catch{}})}var Pt=`Please stop import mirror directly. Instead of that,\r
1
+ (function(){try{var Ve=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Ve.SENTRY_RELEASE={id:"3.14.0"};var $n=new Ve.Error().stack;$n&&(Ve._sentryDebugIds=Ve._sentryDebugIds||{},Ve._sentryDebugIds[$n]="89210625-1185-4202-9363-7e6e1c3408ae",Ve._sentryDebugIdIdentifier="sentry-dbid-89210625-1185-4202-9363-7e6e1c3408ae")}catch{}})();(function(){function Ve(e){return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function $n(e,t,n){return(t=(function(r){var i=(function(s){if(Ve(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,"string");if(Ve(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)})(r);return Ve(i)=="symbol"?i:i+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;arguments.length>t;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lr(Object(n),!0).forEach(function(r){$n(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Di(e,t,n,r,i,s,c){try{var l=e[s](c),o=l.value}catch(a){n(a);return}l.done?t(o):Promise.resolve(o).then(r,i)}function Ge(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function c(o){Di(s,r,i,c,l,"next",o)}function l(o){Di(s,r,i,c,l,"throw",o)}c(void 0)})}}const ka=["type"];var K=(function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e})({}),U=(function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e})({}),He=(function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e})({}),wt=(function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e})({}),tn=(function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e})({}),nn=(function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e})({}),Ee=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})({});function Fi(e,t){return e.indexOf(t)!==-1}"Mobile".toLowerCase(),"Tablet".toLowerCase(),"0".repeat(32),"0".repeat(16);var Pi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},$i={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},Bn={};function zn(e){if(Bn[e])return Bn[e];const t=(function(u){var h,d;const p=(h=globalThis)===null||h===void 0||(h=h.Zone)===null||h===void 0||(d=h.__symbol__)===null||d===void 0?void 0:d.call(h,u);return p&&globalThis[p]?globalThis[p]:void 0})(e)||globalThis[e],n=t.prototype,r=e in Pi?Pi[e]:void 0,i=!!(r&&r.every(u=>{var h;return!!(!((h=Object.getOwnPropertyDescriptor(n,u))===null||h===void 0||(h=h.get)===null||h===void 0)&&h.toString().includes("[native code]"))})),s=e in $i?$i[e]:void 0,c=!!(s&&s.every(u=>{var h;return typeof n[u]=="function"&&((h=n[u])===null||h===void 0?void 0:h.toString().includes("[native code]"))}));if(i&&c)return Bn[e]=t.prototype,t.prototype;const l=document.createElement("iframe");l.style.display="none";let o=!1;try{document.body.appendChild(l);const u=l.contentWindow;if(!u)return t.prototype;const h=u[e].prototype;return h?(Fi(a=navigator.userAgent,"AppleWebKit")&&!Fi(a,"Chrome")&&(l.classList.add("rr-block","ph-no-capture"),l.setAttribute("__rrwebUntaintedPrototype",e),o=!0),Bn[e]=h):n}catch{return n}finally{!o&&l.parentNode&&document.body.removeChild(l)}var a}var rn=Object.create(null);function xt(e,t,n){var r;const i=rn[e],s=i[n];if(s)return s.call(t);const c=zn(e),l=(r=Object.getOwnPropertyDescriptor(c,n))===null||r===void 0?void 0:r.get;return l?(i[n]=l,l.call(t)):t[n]}rn.Node=Object.create(null),rn.ShadowRoot=Object.create(null),rn.MutationObserver=Object.create(null),rn.Element=Object.create(null);var Hn,Nr={};function jn(e,t,n){const r=`${e}.${String(n)}`;if(Nr[r])return Nr[r].bind(t);const i=zn(e)[n];return typeof i!="function"?t[n]:(Nr[r]=i,i.bind(t))}function Bi(){return zn("MutationObserver").constructor}function pt(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i={next:r},s=n(function(...c){return i.next.apply(this,c)});return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r},__rrweb_layer__:{enumerable:!1,value:i}})),e[t]=s,()=>{if(e[t]===s)return void(e[t]=i.next);const c=a=>{var u;return typeof a=="function"?(u=a.__rrweb_layer__)!==null&&u!==void 0?u:a.__posthog_layer__:void 0};let l=e[t],o=c(l);for(;o;){if(o.next===s)return void(o.next=i.next);l=o.next,o=c(l)}}}catch{return()=>{}}}var L={childNodes:e=>xt("Node",e,"childNodes"),parentNode:e=>xt("Node",e,"parentNode"),parentElement:e=>xt("Node",e,"parentElement"),textContent:e=>xt("Node",e,"textContent"),isConnected(e){if(Hn===void 0){var t;const n=(t=Object.getOwnPropertyDescriptor(zn("Node"),"isConnected"))===null||t===void 0?void 0:t.get;Hn=n?.toString().includes("[native code]")?n:null}return Hn?.call(e)},contains:(e,t)=>jn("Node",e,"contains")(t),getRootNode:e=>jn("Node",e,"getRootNode")(),host:e=>e&&"host"in e?xt("ShadowRoot",e,"host"):null,styleSheets:e=>e.styleSheets,shadowRoot:e=>e&&"shadowRoot"in e?xt("Element",e,"shadowRoot"):null,querySelector:(e,t)=>jn("Element",e,"querySelector")(t),querySelectorAll:(e,t)=>jn("Element",e,"querySelectorAll")(t),mutationObserver:Bi,patch:pt};function Ye(){try{if(typeof performance<"u"&&performance.now)return performance.now()}catch{}return Date.now()}var kt=0,Dr=0;function _a(){kt+=1}function zi(){return kt}function Fr(e,t){return(t!==kt||e>6e4)&&(Dr+=1,!0)}var rt=0,Pr=0,$r=0,Be={durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0},Wn=null,At=null,sn=[],on=0,qn=0,Un={slowestBatchMs:0},ft={deferredCount:0,failedCount:0,abandonedCount:0,totalMs:0,slowestSliceMs:0};function Hi(e){var t;(rt+=1)>1||(Be={durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0},sn=[],on=0,At=(t=e)&&t>0?t:null,Pr=Ye(),$r=kt)}function ji(){return rt===0?Wn||{durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0}:(rt-=1)>0?Be:(Be.durationMs=Ye()-Pr,Be.deferredStylesheetCount=on,ft.deferredCount+=on,At=null,Fr(Be.durationMs,$r)?Be:Wn=Be)}function Vn(e,t,n){let r=e.length;if(n>=32)return r;for(let i=0;e.length>i;i++){const s=e[i];try{const c=s.cssRules;if(c&&c.length)r+=Vn(c,t,n+1);else if(t&&s.styleSheet){const l=s.styleSheet;if(!t.has(l)){t.add(l);const o=l.rules||l.cssRules;o&&(r+=Vn(o,t,n+1))}}}catch{}}return r}function Gn(e){if(rt===0)return;const t=Vn(e,null,0);Be.cssRuleCount+=t,qn>0&&(Be.nonDeferrableCssRuleCount+=t)}function Wi(e){qn+=1;try{return e()}finally{qn-=1}}function Br(e){rt>0&&(Be.stylesheetMs+=e)}function qi(e){if(rt===0||At===null)return!1;const t=Be.cssRuleCount-Be.nonDeferrableCssRuleCount;return t>=At||t+(function(n){try{const r=n&&(n.rules||n.cssRules);if(!r)return 0;const i=new WeakSet;return i.add(n),Vn(r,i,0)}catch{return 0}})(e)>At}function Ia(){const e=sn;return sn=[],e}function Yn(){ft.failedCount+=1}function Ui(e){e>0&&(ft.abandonedCount+=e)}function an(e){return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function C(e,t,n){return(t=(function(r){var i=(function(s){if(an(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,"string");if(an(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)})(r);return an(i)=="symbol"?i:i+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e){return e.nodeType===e.ELEMENT_NODE}function ln(e){const t=e&&"host"in e&&"mode"in e&&L.host(e)||null;return!!(t&&"shadowRoot"in t&&L.shadowRoot(t)===e)}function cn(e){return{}.toString.call(e)==="[object ShadowRoot]"}function Vi(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Gi(e){const{cssText:t}=e;if(3>t.split('"').length)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}var Hr=0;function un(e){const t=Hr===0,n=t?Ye():0;Hr+=1;try{const r=e.rules||e.cssRules;if(!r)return null;Gn(r);let i=e.href;return!i&&e.ownerNode&&(i=e.ownerNode.baseURI),Vi(Array.from(r,s=>Yi(s,i)).join(""))}catch{return null}finally{Hr-=1,t&&Br(Ye()-n)}}function Yi(e,t){if(Wr(e)){let r;try{r=un(e.styleSheet)||Gi(e)}catch{r=e.cssText}try{var n;if(r&&(!((n=e.styleSheet)===null||n===void 0)&&n.href))return _t(r,e.styleSheet.href)}catch{}return r}{let r=e.cssText;return Zn(e)&&e.selectorText.includes(":")&&(r=jr(r)),t?_t(r,t):r}}function jr(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function Wr(e){return"styleSheet"in e}function Zn(e){return"selectorText"in e}var Zi=/^-?[A-Za-z_][\w-]*$/,Ca=/^-?[A-Za-z_][\w-]*(\.-?[A-Za-z_][\w-]*)*$/;function Ma(e){const t=[];let n=!1,r=null;const i=new Map;function s(o){const a=t.pop();if(a.kind==="group"){if(o===null){for(;t.length>0&&t[t.length-1].kind==="group";)t.pop();s(null);return}const u=t[t.length-1];u.parts.push(o),u.index+=1;return}if(!a.importRule)return n=!0,void(r=o);c(t[t.length-1],a.importRule,o)}function c(o,a,u){try{let d;try{d=u||Gi(a)}catch{d=a.cssText}try{var h;d&&(h=a.styleSheet)!==null&&h!==void 0&&h.href&&(d=_t(d,a.styleSheet.href))}catch{}d&&o.parts.push(d),o.index+=1}catch{s(null)}}function l(o){const a=o.rules[o.index];if(o.kind==="sheet"&&Wr(a)){const h=i.get(a);h===null?(o.parts.push(a.cssText),o.index+=1):h?t.push({kind:"sheet",sheet:h.sheet,rules:h.rules,sheetHref:h.sheetHref,index:0,parts:[],importRule:a}):c(o,a,null);return}if((function(h,d){try{const p=(function(m){const v=m;if(!v.cssRules||v.cssRules.length===0)return null;if(v.media&&typeof v.media.mediaText=="string")return`@media ${v.media.mediaText} {`;if(Zn(m)){if(typeof v.type=="number"&&v.type!==1)return null;const y=v.style?v.style.cssText:"";return`${m.selectorText} {${y?" "+y:""}`}if("containerName"in v)return typeof v.containerQuery!="string"||v.containerName&&!Zi.test(v.containerName)?null:`@container ${v.containerName?`${v.containerName} `:""}${v.containerQuery} {`;if(typeof v.conditionText=="string"){let y="";try{var g;y=((g=m.constructor)===null||g===void 0?void 0:g.name)||""}catch{return null}return y===""||y==="Object"||y==="CSSSupportsRule"?`@supports ${v.conditionText} {`:null}return typeof v.name=="string"?"keyText"in v.cssRules[0]?Zi.test(v.name)?`@keyframes ${v.name} {`:null:v.name===""?"@layer {":Ca.test(v.name)?`@layer ${v.name} {`:null:null})(h);if(p===null)return!1;const f=d.sheetHref;return t.push({kind:"group",rules:Array.from(h.cssRules),sheetHref:f,index:0,parts:[],prelude:f?_t(p,f):p,fixColons:d.kind==="sheet"&&Zn(h)&&h.selectorText.includes(":")}),!0}catch{return!1}})(a,o))return;let u=a.cssText;o.kind==="sheet"&&Zn(a)&&a.selectorText.includes(":")&&(u=jr(u)),o.parts.push(o.sheetHref?_t(u,o.sheetHref):u),o.index+=1}return(function(o){try{const a=o.rules||o.cssRules;if(!a)return!1;Gn(a);let u=o.href;!u&&o.ownerNode&&(u=o.ownerNode.baseURI);const h=Array.from(a);return t.push({kind:"sheet",sheet:o,rules:h,sheetHref:u,index:0,parts:[],importRule:null}),(function(d,p){const f=[{sheet:p,rules:d,index:0}];for(;f.length>0;){const m=f[f.length-1];if(m.index>=m.rules.length){f.pop();continue}const v=m.rules[m.index];if(m.index+=1,!Wr(v)||i.has(v))continue;let g=null;try{g=v.styleSheet}catch{i.set(v,null);continue}if(g&&!f.some(y=>y.sheet===g))try{const y=g.rules||g.cssRules;if(!y)continue;Gn(y);let b=g.href;!b&&g.ownerNode&&(b=g.ownerNode.baseURI);const k=Array.from(y);i.set(v,{sheet:g,rules:k,sheetHref:b}),f.push({sheet:g,rules:k,index:0})}catch{}}})(h,o),!0}catch{return!1}})(e)||(n=!0),{advance(o){if(n)return!0;const a=Ye();let u=o>0?o:1;try{for(;!n&&u>0;){const h=t[t.length-1];if(h.index>=h.rules.length){let d=null;try{if(h.kind==="group"){const p=h.prelude+h.parts.join("")+"}";d=h.fixColons?jr(p):p}else d=Vi(h.parts.join(""))}catch{}s(d);continue}u-=1;try{l(h)}catch{s(null)}}}catch{n=!0,r=null}finally{Br(Ye()-a)}return n},text:()=>n?r:null,remainingRules(){if(n)return 0;let o=0;for(const a of t)o+=a.rules.length-a.index;return o}}}var Xi=class{constructor(){C(this,"idNodeMap",new Map),C(this,"nodeMetaMap",new WeakMap)}getId(e){var t,n;return e&&(t=(n=this.getMeta(e))===null||n===void 0?void 0:n.id)!==null&&t!==void 0?t:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);if(this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n)),zr(e)){const n=L.shadowRoot(e);n&&this.removeNodeFromMap(n),e.nodeName==="IFRAME"&&e.contentDocument&&this.removeNodeFromMap(e.contentDocument)}}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){this.idNodeMap.set(t.id,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xn({element:e,maskInputOptions:t,tagName:n,type:r,value:i,maskInputFn:s}){let c=i||"";const l=r&&it(r);return(t[n.toLowerCase()]||l&&t[l])&&(c=s?s(c,e):"*".repeat(c.length)),c}function it(e){return e.toLowerCase()}var Ra=new Set(["rr_width","rr_height","rr_left","rr_top","rr_position","rr_transform","rr_display","rr_scrollleft","rr_scrolltop","rr_mediastate","rr_open_mode"]);function Jn({element:e,name:t,value:n,maskAllElementAttributes:r,maskAttributeFn:i,isGenerated:s=!1}){return n&&(r?s&&Ra.has(it(t))?n:"*".repeat(n.length):i?i(t,n,e):n)}var Ji="__rrweb_original__";function Kn(e){try{const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?it(t):null}catch{return null}}var Ea=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ta=/^(?:[a-z+]+:)?\/\//i,xa=/^www\..*/i,Aa=/^(data:)([^,]*),(.*)/i;function _t(e,t){return(e||"").replace(Ea,(n,r,i,s,c,l)=>{const o=i||c||l,a=r||s||"";if(!o)return n;if(Ta.test(o)||xa.test(o))return`url(${a}${o}${a})`;if(Aa.test(o))return`url(${a}${o}${a})`;if(o[0]==="/")return`url(${a}${(function(d){let p="";return p=d.indexOf("//")>-1?d.split("/").slice(0,3).join("/"):d.split("/")[0],p=p.split("?")[0],p})(t)+o}${a})`;const u=t.split("/"),h=o.split("/");u.pop();for(const d of h)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${a}${u.join("/")}${a})`})}var Ot,Ki,dn=new Map,Oa=1,La=new RegExp("[^a-z0-9-_:]");function Qi(){return Oa++}var es=!1,Na=/^[^ \t\n\r\u000c]+/,Da=/^[, \t\n\r\u000c]+/,ts=new WeakMap;function Lt(e,t){return t&&t.trim()!==""?qr(e,t):t}function qr(e,t){let n=ts.get(e);if(n||(n=e.createElement("a"),ts.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Ur(e,t){return t?.maxBase64ImageLength?(function(n,r){return r&&n.length>r?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==":n})(e,t.maxBase64ImageLength):e}function ns(e,t,n,r,i,s){if(!r)return r;if(n==="src"||n==="href"&&(t!=="use"||r[0]!=="#")){if(t==="link"&&i){var c;const o=(c=i.sheet)===null||c===void 0?void 0:c.href;if(o)return o}const l=Lt(e,r);if(l.startsWith("data:")){if(t==="img"&&i){let o=l;return(s!=null&&s.type||s?.quality!==void 0)&&(o=(function(a,u,h,d){if(1e5>u.length||!a.complete||a.naturalWidth===0||a.naturalWidth>4096||a.naturalHeight>4096)return u;const p=dn.get(u);if(p&&p.type===h&&p.quality===d)return p.result;try{const f=document.createElement("canvas");f.width=a.naturalWidth,f.height=a.naturalHeight;const m=f.getContext("2d");if(!m)return u;m.drawImage(a,0,0);const v=f.toDataURL(h||"image/webp",d??.4),g=u.length>v.length?v:u;if(dn.size>=10){const y=dn.keys().next().value;y!==void 0&&dn.delete(y)}return dn.set(u,{type:h,quality:d,result:g}),g}catch{return u}})(i,l,s.type,s.quality)),Ur(o,s)}if(t==="image")return Ur(l,s)}return l}if(n==="xlink:href"&&r[0]!=="#"){const l=Lt(e,r);return t==="image"&&l.startsWith("data:")?Ur(l,s):l}return n!=="background"||t!=="table"&&t!=="td"&&t!=="th"?n==="srcset"?(function(l,o){if(o.trim()==="")return o;let a=0;function u(d){let p;const f=d.exec(o.substring(a));return f?(p=f[0],a+=p.length,p):""}const h=[];for(;u(Da),o.length>a;){let d=u(Na);if(d.slice(-1)===",")d=Lt(l,d.substring(0,d.length-1)),h.push(d);else{let p="";d=Lt(l,d);let f=!1;for(;;){const m=o.charAt(a);if(m===""){h.push((d+p).trim());break}if(f)m===")"&&(f=!1);else{if(m===","){a+=1,h.push((d+p).trim());break}m==="("&&(f=!0)}p+=m,a+=1}}}return h.join(", ")})(e,r):n==="style"?_t(r,qr(e)):t==="object"&&n==="data"?Lt(e,r):r:Lt(e,r)}function rs(e,t,n){return(e==="video"||e==="audio")&&it(t)==="autoplay"}function is(e){return typeof e=="string"&&it(e).split(/\s+/).includes("stylesheet")}function Qn(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&Qn(L.parentNode(e),t,n);for(let r=e.classList.length;r--;)if(t.test(e.classList[r]))return!0;return!!n&&Qn(L.parentNode(e),t,n)}function ss(e,t,n,r){let i;if(zr(e)){if(i=e,!L.childNodes(i).length)return!1}else{if(L.parentElement(e)===null)return!1;i=L.parentElement(e)}try{if(typeof t=="string"){if(r){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(Qn(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Nt(e,t,n){const r=e.removeEventListener;typeof r=="function"&&r.call(e,t,n)}var hn=new Map;function os(e,t){return Array.from(e.styleSheets).find(n=>n.href===t)}function Ze(e){return e==null?"":e.toLowerCase()}var Vr=!1,Gr=!1;function Dt(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,maskTextClass:c,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:a=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p=!1,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v={},inlineImages:g=!1,recordCanvas:y=!1,canvasMaskingConfigured:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_=5e3,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:N=!1,depth:x=0,maxDepth:z=50}=t;let{needsMask:Q}=t,{preserveWhiteSpace:te=!0}=t;if(x>=z)return Gr=!0,Vr||(Vr=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${z}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;Q||(Q=ss(e,c,l,Q===void 0)),rt>0&&(Be.nodeCount+=1);const ue=(function(E,D){const{doc:ee,mirror:X,blockClass:ie,blockSelector:pe,needsMask:ye,inlineStylesheet:Ie,maskInputOptions:de={},maskTextFn:Pe,maskInputFn:Ce,maskAllElementAttributes:Oe=!1,maskAttributeFn:be,dataURLOptions:ot={},inlineImages:Kt,recordCanvas:St,canvasMaskingConfigured:qe,keepIframeSrcFn:Qt,newlyAddedElement:Ue=!1}=D,se=(function(O,ze){if(!ze.hasNode(O))return;const ge=ze.getId(O);return ge===1?void 0:ge})(ee,X);switch(E.nodeType){case E.DOCUMENT_NODE:return E.compatMode!=="CSS1Compat"?{type:Ee.Document,childNodes:[],compatMode:E.compatMode}:{type:Ee.Document,childNodes:[]};case E.DOCUMENT_TYPE_NODE:return{type:Ee.DocumentType,name:E.name,publicId:E.publicId,systemId:E.systemId,rootId:se};case E.ELEMENT_NODE:return(function(O,ze){const{doc:ge,blockClass:A,blockSelector:Me,inlineStylesheet:fe,maskInputOptions:P={},maskInputFn:W,maskAllElementAttributes:$e=!1,maskAttributeFn:q,dataURLOptions:j={},inlineImages:F,recordCanvas:ce,canvasMaskingConfigured:re,keepIframeSrcFn:Qe,newlyAddedElement:et=!1,rootId:en}=ze,dt=(function(T,J,Re){try{if(typeof J=="string"){if(T.classList.contains(J))return!0}else for(let Le=T.classList.length;Le--;)if(J.test(T.classList[Le]))return!0;if(Re)return T.matches(Re)}catch{}return!1})(O,A,Me),ve=(function(T){if(T instanceof HTMLFormElement)return"form";const J=it(T.tagName);return La.test(J)?"div":J})(O),oe=new Set;let B={};const tt=O.attributes.length;for(let T=0;tt>T;T++){const J=O.attributes[T];rs(ve,J.name)||(B[J.name]=ns(ge,ve,it(J.name),J.value,O,j))}if(ve==="link"&&fe&&!dt&&is(B.rel)){let T=O.sheet;if(!T){const Re=(function(Le){return Le.href})(O);Re&&(T=os(ge,Re),!T&&Re.includes(".css"))&&(T=os(ge,window.location.origin+"/"+Re.replace(window.location.href,"")))}let J=null;T&&(qi(T)?rt>0&&(sn.push(O),on+=1):J=un(T)),J&&(delete B.rel,delete B.href,B._cssText=J)}var nt;if(ve==="style"&&O.sheet&&!(O.innerText||L.textContent(O)||"").trim().length){const T=Wi(()=>un(O.sheet));T&&(B._cssText=T)}if(ve==="input"||ve==="textarea"||ve==="select"){const T=O.value,J=O.checked;B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&T?B.value=Xn({element:O,type:Kn(O),tagName:ve,value:T,maskInputOptions:P,maskInputFn:W}):J&&(B.checked=J)}if(ve==="option"&&(O.selected&&!P.select?B.selected=!0:delete B.selected),ve==="dialog"&&O.open){try{B.rr_open_mode=O.matches("dialog:modal")?"modal":"non-modal"}catch{B.rr_open_mode="modal",B.ph_rr_could_not_detect_modal=!0}oe.add("rr_open_mode")}if(ve==="canvas"&&ce&&!re?.())try{if(O.__context==="2d")(function(T){const J=T.getContext("2d");if(!J)return!0;for(let Re=0;T.width>Re;Re+=50)for(let Le=0;T.height>Le;Le+=50){const ke=J.getImageData,ht=Ji in ke?ke[Ji]:ke;let Tt;try{Tt=ht.call(J,Re,Le,Math.min(50,T.width-Re),Math.min(50,T.height-Le))}catch{return!1}if(new Uint32Array(Tt.data.buffer).some(Sa=>Sa!==0))return!1}return!0})(O)||(B.rr_dataURL=O.toDataURL(j.type,j.quality));else if(!("__context"in O)){const T=O.toDataURL(j.type,j.quality),J=ge.createElement("canvas");J.width=O.width,J.height=O.height,T!==J.toDataURL(j.type,j.quality)&&(B.rr_dataURL=T)}}catch(T){((nt=T)==null?void 0:nt.name)==="SecurityError"?es||(es=!0,console.warn("Cannot read canvas pixels, so this canvas is left out of the recording. A cross-origin image or video drawn into it taints it.",nt)):console.warn("Cannot read canvas pixels, so this canvas is left out of the recording.",nt)}let Ar,Or=!1;if(ve==="img"&&F){Ot||(Ot=ge.createElement("canvas"),Ki=Ot.getContext("2d"));const T=O,J=T.currentSrc||T.getAttribute("src")||"<unknown-src>",Re=T.crossOrigin,Le=(ht,Tt)=>Or?Jn({element:O,name:ht,value:Tt,maskAllElementAttributes:$e,maskAttributeFn:q}):Tt,ke=()=>{Nt(T,"load",ke);try{Ot.width=T.naturalWidth,Ot.height=T.naturalHeight,Ki.drawImage(T,0,0);const ht=Ot.toDataURL(j.type,j.quality);B.rr_dataURL=Le("rr_dataURL",ht)}catch(ht){if(T.crossOrigin!=="anonymous")return T.crossOrigin="anonymous",void(T.complete&&T.naturalWidth!==0?ke():T.addEventListener("load",ke));console.warn(`Cannot inline img src=${J}! Error: ${ht}`)}T.crossOrigin==="anonymous"&&(Re?B.crossOrigin=Le("crossOrigin",Re):T.removeAttribute("crossorigin"))};T.complete&&T.naturalWidth!==0?ke():T.addEventListener("load",ke)}if(ve==="audio"||ve==="video"){const T=B;T.rr_mediaState=O.paused?"paused":"played",oe.add("rr_mediaState"),T.rr_mediaCurrentTime=O.currentTime,T.rr_mediaPlaybackRate=O.playbackRate,T.rr_mediaMuted=O.muted,T.rr_mediaLoop=O.loop,T.rr_mediaVolume=O.volume}if(et||(O.scrollLeft&&(B.rr_scrollLeft=O.scrollLeft),O.scrollTop&&(B.rr_scrollTop=O.scrollTop)),dt){var Nn,Dn,Fn;const{width:T,height:J,left:Re,top:Le}=O.getBoundingClientRect(),ke=(Nn=ge.defaultView)===null||Nn===void 0?void 0:Nn.getComputedStyle(O);B={class:B.class,rr_width:`${T}px`,rr_height:`${J}px`,rr_left:`${Math.floor(Re+(((Dn=ge.defaultView)===null||Dn===void 0?void 0:Dn.scrollX)||0))}px`,rr_top:`${Math.floor(Le+(((Fn=ge.defaultView)===null||Fn===void 0?void 0:Fn.scrollY)||0))}px`},oe.add("rr_width"),oe.add("rr_height"),oe.add("rr_left"),oe.add("rr_top"),ke&&(B.rr_position=ke.position||"static",oe.add("rr_position"),ke.transform&&ke.transform!=="none"&&(B.rr_transform=ke.transform,oe.add("rr_transform")),ke.display&&ke.display.startsWith("inline")&&(B.rr_display=ke.display,oe.add("rr_display")))}if(ve!=="iframe"||Qe(B.src)||(O.contentDocument||(B.rr_src=B.src),delete B.src),$e||q)for(const[T,J]of Object.entries(B))typeof J!="string"&&J!==null||(B[T]=Jn({element:O,name:T,value:J,maskAllElementAttributes:$e,maskAttributeFn:q,isGenerated:oe.has(T)}));Or=!0;try{customElements.get(ve)&&(Ar=!0)}catch{}return{type:Ee.Element,tagName:ve,attributes:B,childNodes:[],isSVG:(Pn=O,!!(Pn.tagName==="svg"||Pn.ownerSVGElement)||void 0),needBlock:dt,rootId:en,isCustom:Ar};var Pn})(E,{doc:ee,blockClass:ie,blockSelector:pe,inlineStylesheet:Ie,maskInputOptions:de,maskInputFn:Ce,maskAllElementAttributes:Oe,maskAttributeFn:be,dataURLOptions:ot,inlineImages:Kt,recordCanvas:St,canvasMaskingConfigured:qe,keepIframeSrcFn:Qt,newlyAddedElement:Ue,rootId:se});case E.TEXT_NODE:return(function(O,ze){const{needsMask:ge,maskTextFn:A,rootId:Me}=ze,fe=L.parentNode(O),P=fe&&fe.tagName;let W=L.textContent(O);const $e=P==="STYLE"||void 0,q=P==="SCRIPT"||void 0;if($e&&W){try{var j;if(!(O.nextSibling||O.previousSibling)){if(!qi(fe.sheet)){if(!((j=fe.sheet)===null||j===void 0)&&j.cssRules){const F=un(fe.sheet);F&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(F)&&(W=F)}}}}catch(F){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${F}`,O)}W=_t(W,qr(ze.doc))}return q&&(W="SCRIPT_PLACEHOLDER"),!$e&&!q&&W&&ge&&(W=A?A(W,L.parentElement(O)):W.replace(/[\S]/g,"*")),{type:Ee.Text,textContent:W||"",isStyle:$e,rootId:Me}})(E,{doc:ee,needsMask:ye,maskTextFn:Pe,rootId:se});case E.CDATA_SECTION_NODE:return{type:Ee.CDATA,textContent:"",rootId:se};case E.COMMENT_NODE:return{type:Ee.Comment,textContent:L.textContent(E)||"",rootId:se};default:return!1}})(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,keepIframeSrcFn:R,newlyAddedElement:N});if(!ue)return console.warn(e,"not serialized"),null;let ne;ne=r.hasNode(e)?r.getId(e):(function(E,D){return!!(D.comment&&E.type===Ee.Comment||E.type===Ee.Element&&(D.script&&(E.tagName==="script"||E.tagName==="link"&&(E.attributes.rel==="preload"&&E.attributes.as==="script"||E.attributes.rel==="modulepreload")||E.tagName==="link"&&E.attributes.rel==="prefetch"&&typeof E.attributes.href=="string"&&(function(ee){var X;let ie;try{ie=new URL(ee,window.location.href)}catch{return null}const pe=ie.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(X=pe?.[1])!==null&&X!==void 0?X:null})(E.attributes.href)==="js")||D.headFavicon&&(E.tagName==="link"&&E.attributes.rel==="shortcut icon"||E.tagName==="meta"&&(Ze(E.attributes.name).match(/^msapplication-tile(image|color)$/)||Ze(E.attributes.name)==="application-name"||["icon","apple-touch-icon","shortcut icon"].includes(Ze(E.attributes.rel))))||E.tagName==="meta"&&(D.headMetaDescKeywords&&Ze(E.attributes.name).match(/^description|keywords$/)||D.headMetaSocial&&(Ze(E.attributes.property).match(/^(og|twitter|fb):/)||Ze(E.attributes.name).match(/^(og|twitter):/)||Ze(E.attributes.name)==="pinterest")||D.headMetaRobots&&["robots","googlebot","bingbot"].includes(Ze(E.attributes.name))||D.headMetaHttpEquiv&&E.attributes["http-equiv"]!==void 0||D.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(Ze(E.attributes.name))||Ze(E.attributes.property).match(/^article:/)||Ze(E.attributes.property).match(/^product:/))||D.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(Ze(E.attributes.name)))))})(ue,m)||!te&&ue.type===Ee.Text&&!ue.isStyle&&!ue.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Qi();const H=Object.assign(ue,{id:ne});if(r.add(e,H),ne===-2)return null;k&&k(e);let le=!o;if(H.type===Ee.Element){le=le&&!H.needBlock,delete H.needBlock;const E=L.shadowRoot(e);E&&cn(E)&&(H.isShadowHost=!0)}if((H.type===Ee.Document||H.type===Ee.Element)&&le){m.headWhitespace&&H.type===Ee.Element&&H.tagName==="head"&&(te=!1);const E={doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:o,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x+1,maxDepth:z};if(!(H.type===Ee.Element&&H.tagName==="textarea"&&H.attributes.value!==void 0))for(const ee of Array.from(L.childNodes(e))){const X=Dt(ee,E);X&&H.childNodes.push(X)}let D=null;if(zr(e)&&(D=L.shadowRoot(e)))for(const ee of Array.from(L.childNodes(D))){const X=Dt(ee,E);X&&(cn(D)&&(X.isShadow=!0),H.childNodes.push(X))}}const we=L.parentNode(e);if(we&&ln(we)&&cn(we)&&(H.isShadow=!0),H.type===Ee.Element&&H.tagName==="iframe"){const E=(function(D,ee,X){const ie=()=>{},pe=D.contentWindow;if(!pe)return ie;let ye;try{ye=pe.document.readyState}catch{return ie}const Ie=()=>ee();if(ye!=="complete"){let Ce=!1,Oe=null;const be=()=>{Ce||(Ce=!0,Oe!==null&&(clearTimeout(Oe),Oe=null),Nt(D,"load",ot),D.addEventListener("load",Ie),ee())},ot=()=>be();return Oe=setTimeout(be,X),D.addEventListener("load",ot),()=>{Oe!==null&&(clearTimeout(Oe),Oe=null),Ce?Nt(D,"load",Ie):(Ce=!0,Nt(D,"load",ot))}}const de="about:blank";let Pe;try{Pe=pe.location.href}catch{return ie}if(Pe!==de||D.src===de||D.src===""){const Ce=setTimeout(ee,0);return D.addEventListener("load",Ie),()=>{clearTimeout(Ce),Nt(D,"load",Ie)}}return D.addEventListener("load",Ie),()=>{Nt(D,"load",Ie)}})(e,()=>{const D=e.contentDocument;if(D&&w){const ee=Dt(D,{doc:D,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onIframeListenerRegistered:S,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x+1,maxDepth:z});ee&&w(e,ee)}},_);S?.(e,E)}return H.type===Ee.Element&&H.tagName==="link"&&is(H.attributes.rel)&&(function(E,D,ee){if(hn.has(E))return;let X;try{X=E.sheet}catch{return}if(X)return;const ie=new AbortController;let pe=!1;const ye=()=>{if(!pe){pe=!0;try{(()=>{if(M){const de=Dt(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:Q,maskTextClass:c,maskTextSelector:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:u,maskTextFn:h,maskInputFn:d,maskAllElementAttributes:p,maskAttributeFn:f,slimDOMOptions:m,dataURLOptions:v,inlineImages:g,recordCanvas:y,canvasMaskingConfigured:b,preserveWhiteSpace:te,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:R,depth:x,maxDepth:z});de&&M(e,de)}})()}finally{hn.delete(E),ie.abort()}}},Ie=setTimeout(ye,ee);ie.signal.addEventListener("abort",()=>clearTimeout(Ie),{once:!0}),E.addEventListener("load",ye,{signal:ie.signal,once:!0}),hn.set(E,ie)})(e,0,I),H}function as(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e===!1?{}:e}var Fa=class wa{constructor(...t){C(this,"parentElement",null),C(this,"parentNode",null),C(this,"ownerDocument",void 0),C(this,"firstChild",null),C(this,"lastChild",null),C(this,"previousSibling",null),C(this,"nextSibling",null),C(this,"ELEMENT_NODE",1),C(this,"TEXT_NODE",3),C(this,"nodeType",void 0),C(this,"nodeName",void 0),C(this,"RRNodeType",void 0)}get childNodes(){const t=[];let n=this.firstChild;for(;n;)t.push(n),n=n.nextSibling;return t}contains(t){if(!(t instanceof wa)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};function me(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>Ft(n,e,t,r)}function Ft(e,t,n,r){at(()=>{const i=e.removeEventListener;typeof i=="function"&&(r!==void 0?i.call(e,t,n,r):i.call(e,t,n))})}function at(e){try{e()}catch(t){if(!(t instanceof DOMException&&t.name==="SecurityError"))throw t}}function er(e){e.forEach(t=>{if(typeof t=="function")try{t()}catch{}})}var Pt=`Please stop import mirror directly. Instead of that,\r
2
2
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
3
3
  or you can use record.mirror to access the mirror instance during recording.`,ls={map:{},getId(){return console.warn(Pt),-1},getNode(){return console.warn(Pt),null},removeNodeFromMap(){console.warn(Pt)},has(){return console.warn(Pt),!1},reset(){console.warn(Pt)}};function pn(e,t,n={}){let r=null,i=0;return function(...s){const c=Date.now();i||n.leading!==!1||(i=c);const l=t-(c-i),o=this;0>=l||l>t?(r&&(clearTimeout(r),r=null),i=c,e.apply(o,s)):r||n.trailing===!1||(r=setTimeout(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(o,s)},l))}}function tr(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t),c=()=>tr(e,t,s||{},!0);if(r)return i.Object.defineProperty(e,t,n),c;const l=(function(o){let a=typeof o.setTimeout=="function"?o.setTimeout:void 0;try{var u,h;const p=(u=o.Zone)===null||u===void 0||(h=u.__symbol__)===null||h===void 0?void 0:h.call(u,"setTimeout"),f=p?o[p]:void 0;typeof f=="function"&&(a=f)}catch{}if(!a)return()=>{};const d=a;return p=>{try{d.call(o,p,0)}catch{}}})(i);return i.Object.defineProperty(e,t,{set(o){if(l(()=>{try{n.set.call(this,o)}catch{}}),s&&s.set){if(s.get)try{s.get.call(this)}catch{return}s.set.call(this,o)}}}),c}typeof window<"u"&&window.Proxy&&window.Reflect&&(ls=new Proxy(ls,{get(e,t,n){return t==="map"&&console.warn(Pt),Reflect.get(e,t,n)}}));var nr=Date.now;function cs(e){var t,n,r,i;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:s.documentElement.scrollLeft||s?.body&&((t=L.parentElement(s.body))===null||t===void 0?void 0:t.scrollLeft)||(s==null||(n=s.body)===null||n===void 0?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=L.parentElement(s.body))===null||r===void 0?void 0:r.scrollTop)||(s==null||(i=s.body)===null||i===void 0?void 0:i.scrollTop)||0}}function us(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ds(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hs(e){return e?e.nodeType===e.ELEMENT_NODE?e:L.parentElement(e):null}function Se(e,t,n,r){if(!e)return!1;const i=hs(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||r&&i.closest("."+t)!==null)return!0}else if(Qn(i,t,r))return!0}catch{}return!!(n&&(i.matches(n)||r&&i.closest(n)!==null))}function Yr(e,t,n){return!(e.tagName!=="TITLE"||!n.headTitleMutations)||t.getId(e)===-2}function ps(e,t){if(ln(e))return!1;const n=t.getId(e);if(!t.has(n))return!0;const r=L.parentNode(e);return(!r||r.nodeType!==e.DOCUMENT_NODE)&&(!r||ps(r,t))}function Zr(e){return!!e.changedTouches}function fs(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ms(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Xr(e){return!!e&&(e instanceof Fa&&"shadowRoot"in e?!!e.shadowRoot:!!L.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nr=()=>new Date().getTime());var Pa=class{constructor(){C(this,"id",1),C(this,"styleIDMap",new WeakMap),C(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!==null&&t!==void 0?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function gs(e){var t;let n=null;return"getRootNode"in e&&((t=L.getRootNode(e))===null||t===void 0?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(e))&&(n=L.host(L.getRootNode(e))),n}function vs(e){const t=e.ownerDocument;if(!t)return!1;if(L.contains(t,e))return!0;const n=L.isConnected(e);return typeof n=="boolean"?n:(function(r){const i=r.ownerDocument;if(!i)return!1;const s=(function(c){let l,o=c;for(;l=gs(o);)o=l;return o})(r);return L.contains(i,s)})(e)}function ys(e){return"__ln"in e}var fn,$a=class{constructor(){C(this,"length",0),C(this,"head",null),C(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;e>n;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ys(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&ys(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},bs=(e,t)=>`${e}@${t}`,Ba=class{constructor(){C(this,"frozen",!1),C(this,"locked",!1),C(this,"texts",[]),C(this,"attributes",[]),C(this,"attributeMap",new WeakMap),C(this,"generatedAttributes",new WeakMap),C(this,"removes",[]),C(this,"mapRemoves",new Set),C(this,"movedMap",{}),C(this,"addedSet",new Set),C(this,"movedSet",new Set),C(this,"droppedSet",new Set),C(this,"removesSubTreeCache",new Set),C(this,"mutationCb",void 0),C(this,"blockClass",void 0),C(this,"blockSelector",void 0),C(this,"maskTextClass",void 0),C(this,"maskTextSelector",void 0),C(this,"inlineStylesheet",void 0),C(this,"maskInputOptions",void 0),C(this,"maskTextFn",void 0),C(this,"maskInputFn",void 0),C(this,"maskAllElementAttributes",void 0),C(this,"maskAttributeFn",void 0),C(this,"keepIframeSrcFn",void 0),C(this,"recordCanvas",void 0),C(this,"canvasMaskingConfigured",void 0),C(this,"inlineImages",void 0),C(this,"slimDOMOptions",void 0),C(this,"dataURLOptions",void 0),C(this,"doc",void 0),C(this,"mirror",void 0),C(this,"iframeManager",void 0),C(this,"stylesheetManager",void 0),C(this,"shadowDomManager",void 0),C(this,"canvasManager",void 0),C(this,"processedNodeManager",void 0),C(this,"unattachedDoc",void 0),C(this,"canvasManagerReleased",!1),C(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),C(this,"emit",()=>{if(this.frozen||this.locked)return;const e=Ye(),t=zi();try{this.processBufferedMutations()}finally{n=Ye()-e,r=t,rt>0||Fr(n,r??kt)||n>Un.slowestBatchMs&&(Un.slowestBatchMs=n)}var n,r}),C(this,"processBufferedMutations",()=>{const e=[],t=new Set,n=new $a,r=o=>{let a=o,u=-2;for(;u===-2;)a=a&&a.nextSibling,u=a&&this.mirror.getId(a);return u};let i;const s=o=>{var a;const u=L.parentNode(o);if(!u||!vs(o)||u.tagName==="TEXTAREA"||this.isBlockedAtEmission(u))return;const h=ln(u)?this.mirror.getId(gs(o)):this.mirror.getId(u),d=r(o);if(h===-1||d===-1)return n.addNode(o);(a=i)!==null&&a!==void 0||(i={doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,maskAllElementAttributes:this.maskAllElementAttributes,maskAttributeFn:this.maskAttributeFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,canvasMaskingConfigured:this.canvasMaskingConfigured,inlineImages:this.inlineImages,onSerialize:f=>{fs(f,this.mirror)&&this.iframeManager.addIframe(f),ms(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Xr(f)&&!Se(f,this.blockClass,this.blockSelector,!0)&&this.shadowDomManager.addShadowRoot(L.shadowRoot(f),this.doc)},onIframeLoad:(f,m)=>{this.iframeManager.attachIframe(f,m),this.shadowDomManager.observeAttachShadow(f)},onIframeListenerRegistered:(f,m)=>{this.iframeManager.registerLoadListenerDisposer(f,m)},onStylesheetLoad:(f,m)=>{this.stylesheetManager.attachLinkElement(f,m)}});const p=Dt(o,i);p&&(e.push({parentId:h,nextId:d,node:p}),t.add(p.id))};for(const o of this.mapRemoves)this.mapRemoves.delete(o),this.mirror.removeNodeFromMap(o);for(const o of this.movedSet)ws(this.removesSubTreeCache,o)&&!this.movedSet.has(L.parentNode(o))||s(o);for(const o of this.addedSet)ks(this.droppedSet,o)||ws(this.removesSubTreeCache,o)?ks(this.movedSet,o)?s(o):this.droppedSet.add(o):s(o);let c=null;for(;n.length;){let o=null;if(c){const a=this.mirror.getId(L.parentNode(c.value)),u=r(c.value);a!==-1&&u!==-1&&(o=c)}if(!o){let a=n.tail;for(;a;){const u=a;if(a=a.previous,u){const h=this.mirror.getId(L.parentNode(u.value));if(r(u.value)===-1)continue;if(h!==-1){o=u;break}{const d=L.parentNode(u.value);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=L.host(d);if(this.mirror.getId(p)!==-1){o=u;break}}}}}}if(!o){for(;n.head;)n.removeNode(n.head.value);break}c=o.previous,n.removeNode(o.value),s(o.value)}const l={texts:this.texts.filter(o=>!this.isBlockedAtEmission(o.node)).map(o=>{const a=o.node,u=L.parentNode(a);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(a),value:o.value}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.filter(o=>!this.isBlockedAtEmission(o.node)).map(o=>{const{attributes:a}=o;if(!this.maskAllElementAttributes&&!this.maskAttributeFn&&typeof a.style=="string"){const h=JSON.stringify(o.styleDiff),d=JSON.stringify(o._unchangedStyles);a.style.length>h.length&&(h+d).split("var(").length===a.style.split("var(").length&&(a.style=o.styleDiff)}if(this.maskAllElementAttributes||this.maskAttributeFn){for(const[h,d]of Object.entries(a))if(typeof d=="string"||d===null){var u;a[h]=Jn({element:o.node,name:h,value:d,maskAllElementAttributes:this.maskAllElementAttributes,maskAttributeFn:this.maskAttributeFn,isGenerated:(u=this.generatedAttributes.get(o.node))===null||u===void 0?void 0:u.has(h)})}}return{id:this.mirror.getId(o.node),attributes:a}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:e};this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.generatedAttributes=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},(l.texts.length||l.attributes.length||l.removes.length||l.adds.length)&&this.mutationCb(l)}),C(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),C(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const n=Array.from(L.childNodes(e),r=>L.textContent(r)||"").join("");t.attributes.value=Xn({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Kn(e),value:n,maskInputFn:this.maskInputFn})}),C(this,"processMutation",e=>{if(!Yr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const r=L.textContent(e.target);Se(e.target,this.blockClass,this.blockSelector,!1)||r===e.oldValue||this.texts.push({value:ss(e.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,hs(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var t;const r=e.target,i=it(r.tagName),s=e.attributeName,c=(t=e.attributeNamespace)!==null&&t!==void 0?t:null;let l=(function(h,d,p){if(!p)return d;const f=h.getAttributeNodeNS(p,d);if(f)return f.name;if(p==="http://www.w3.org/1999/xlink")return`xlink:${d}`;if(p==="http://www.w3.org/XML/1998/namespace")return`xml:${d}`;if(p==="http://www.w3.org/2000/xmlns/")return d==="xmlns"?d:`xmlns:${d}`;const m=h.lookupPrefix(p);return m?`${m}:${d}`:d})(r,s,c),o=c?r.getAttributeNS(c,s):e.target.getAttribute(s);if(l==="value"){const h=r,d=Kn(h);o=Xn({element:h,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:d,value:o,maskInputFn:this.maskInputFn})}if(Se(e.target,this.blockClass,this.blockSelector,!1)||o===e.oldValue)return;let a=this.attributeMap.get(e.target);const u=i==="iframe"&&l==="src";if(u&&!this.keepIframeSrcFn(o)&&r.contentDocument)return;if(l==="type"&&i==="input"&&(e.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!rs(i,l)){var n;a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a));const h=ns(this.doc,i,it(l),o,r,this.dataURLOptions);if(u&&!this.keepIframeSrcFn(o)&&(l="rr_src"),a.attributes[l]=h,(n=this.generatedAttributes.get(e.target))===null||n===void 0||n.delete(l),l==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const d=this.unattachedDoc.createElement("span"),p=r.style;e.oldValue&&(d.style.cssText=e.oldValue);for(const f of Array.from(p)){const m=p.getPropertyValue(f),v=p.getPropertyPriority(f);m!==d.style.getPropertyValue(f)||v!==d.style.getPropertyPriority(f)?a.styleDiff[f]=v===""?m:[m,v]:a._unchangedStyles[f]=[m,v]}for(const f of Array.from(d.style))p.getPropertyValue(f)===""&&(a.styleDiff[f]=!1)}else if(l==="open"&&i==="dialog"){a.attributes.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal";let d=this.generatedAttributes.get(e.target);d||(d=new Set,this.generatedAttributes.set(e.target,d)),d.add("rr_open_mode")}}break}case"childList":if(Se(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA")return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(r=>this.genAdds(r,e.target)),e.removedNodes.forEach(r=>{const i=this.mirror.getId(r),s=ln(e.target)?this.mirror.getId(L.host(e.target)):this.mirror.getId(e.target);Se(e.target,this.blockClass,this.blockSelector,!1)||Yr(r,this.mirror,this.slimDOMOptions)||!(function(c,l){return l.getId(c)!==-1})(r,this.mirror)||(this.addedSet.has(r)?(Ss(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(e.target)&&i===-1||ps(e.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[bs(i,s)]?Ss(this.movedSet,r):(this.removes.push({parentId:s,id:i,isShadow:!(!ln(e.target)||!cn(e.target))||void 0}),(function(c,l){const o=[c];for(;o.length;){const a=o.pop();l.has(a)||(l.add(a),L.childNodes(a).forEach(u=>o.push(u)))}})(r,this.removesSubTreeCache))),this.mapRemoves.add(r))})}}),C(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)){if(this.addedSet.has(e))return this.addedSet.delete(e),void this.addedSet.add(e);if(!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Yr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[bs(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);if(!Se(e,this.blockClass,this.blockSelector,!1)){if(e.nodeType===e.TEXT_NODE)return;const n=L.childNodes(e);for(let r=0,i=n.length;i>r;r++){const s=n[r];s&&this.genAdds(s)}if(Xr(e)){const r=L.childNodes(L.shadowRoot(e));for(let i=0,s=r.length;s>i;i++){const c=r[i];c&&(this.processedNodeManager.add(c,this),this.genAdds(c,e))}}}}}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","maskAllElementAttributes","maskAttributeFn","keepIframeSrcFn","recordCanvas","canvasMaskingConfigured","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]}),this.canvasManager.acquire()}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.releaseCanvasManager()}releaseCanvasManager(){this.canvasManagerReleased||(this.canvasManagerReleased=!0,this.canvasManager.reset())}bufferDoc(){return this.doc}destroy(){for(const e of this.mapRemoves)this.mapRemoves.delete(e),this.mirror.removeNodeFromMap(e)}isBlockedAtEmission(e){const t=this.blockClass,n=t&&typeof t!="string"&&(t.global||t.sticky)?new RegExp(t):null;for(;e;){if(n&&(n.lastIndex=0),Se(e,n||t,this.blockSelector,!0))return!0;const r="getRootNode"in e?L.getRootNode(e):null;e=r?.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host(r):null}return!1}};function Ss(e,t){const n=[t];for(;n.length;){const r=n.pop();if(e.delete(r),r.nodeType===r.TEXT_NODE)continue;const i=L.childNodes(r);for(let s=0,c=i.length;c>s;s++){const l=i[s];l&&n.push(l)}}}function ws(e,t,n){return e.size!==0&&(function(r,i){const s=L.parentNode(i);return!!s&&r.has(s)})(e,t)}function ks(e,t){if(e.size===0)return!1;let n=L.parentNode(t);for(;n;){if(e.has(n))return!0;n=L.parentNode(n)}return!1}function za(e){fn=e}function Ha(){fn=void 0}var Y=(e,t="rrweb")=>fn?(...n)=>{try{return e(...n)}catch(r){if(fn&&fn(r,t)===!0)return;throw r}}:e,je=[];function mn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function _s(e,t){const n=new Ba;let r;n.init(e);try{r=new(Bi())(Y(n.processMutations.bind(n)));const i={attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};return e.attributeFilter&&e.attributeFilter.length>0&&(i.attributeFilter=e.attributeFilter),r.observe(t,i),je.push(n),{observer:r,buffer:n}}catch(i){try{r?.disconnect(),n.destroy(),n.reset()}catch{}throw i}}function Is({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,sampling:s}){const c=new Map,l=a=>{const u=mn(a);if(!u||Se(u,r,i,!0))return;const h=n.getId(u);let d,p;if(u===t&&t.defaultView){const m=cs(t.defaultView);d=m.left,p=m.top}else d=u.scrollLeft,p=u.scrollTop;const f=`${d},${p}`;c.get(h)!==f&&(c.set(h,f),e({id:h,x:d,y:p}))},o=[me("scroll",Y(pn(Y(a=>l(a)),s.scroll||100)),t)];return"onscrollend"in t&&o.push(me("scrollend",Y(l),t)),()=>o.forEach(a=>a())}function Cs(e,t){for(let n=je.length-1;n>=0;n--){const r=je[n];if(!r)continue;let i=r.bufferBelongsToIframe(e);!i&&t&&t.has(r.bufferDoc())&&(i=!0),i&&(r.reset(),je.splice(n,1))}}var ja=["INPUT","TEXTAREA","SELECT"],Ms=new WeakMap;function rr(e){return(function t(n,r){if(ir("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ir("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ir("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ir("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);return r.unshift(i),t(n.parentRule,r)}if(n.parentStyleSheet){const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);r.unshift(i)}return r})(e,[])}function mt(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Rs({mirror:e,stylesheetManager:t},n){var r,i;let s=null;s=e.getId(n.nodeName==="#document"?n:L.host(n));const c=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(i=n.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0?void 0:i.ShadowRoot,l=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return s!==null&&s!==-1&&c&&l?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var o;return(o=l.get)===null||o===void 0?void 0:o.call(this)},set(o){let a;try{var u;a=(u=l.set)===null||u===void 0?void 0:u.call(this,o)}catch(h){if(h&&typeof h=="object"&&h.name==="NotAllowedError")return;throw h}if(s!==null&&s!==-1)try{t.adoptStyleSheets(o,s)}catch{}return a}}),Y(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}var Jr=new Set;function Wa(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r,i;(function(o,a){const{mutationCb:u,mousemoveCb:h,mouseInteractionCb:d,scrollCb:p,viewportResizeCb:f,inputCb:m,mediaInteractionCb:v,styleSheetRuleCb:g,styleDeclarationCb:y,canvasMutationCb:b,fontCb:k,selectionCb:w,customElementCb:_}=o;o.mutationCb=(...S)=>{a.mutation&&a.mutation(...S),u(...S)},o.mousemoveCb=(...S)=>{a.mousemove&&a.mousemove(...S),h(...S)},o.mouseInteractionCb=(...S)=>{a.mouseInteraction&&a.mouseInteraction(...S),d(...S)},o.scrollCb=(...S)=>{a.scroll&&a.scroll(...S),p(...S)},o.viewportResizeCb=(...S)=>{a.viewportResize&&a.viewportResize(...S),f(...S)},o.inputCb=(...S)=>{a.input&&a.input(...S),m(...S)},o.mediaInteractionCb=(...S)=>{a.mediaInteaction&&a.mediaInteaction(...S),v(...S)},o.styleSheetRuleCb=(...S)=>{a.styleSheetRule&&a.styleSheetRule(...S),g(...S)},o.styleDeclarationCb=(...S)=>{a.styleDeclaration&&a.styleDeclaration(...S),y(...S)},o.canvasMutationCb=(...S)=>{a.canvasMutation&&a.canvasMutation(...S),b(...S)},o.fontCb=(...S)=>{a.font&&a.font(...S),k(...S)},o.selectionCb=(...S)=>{a.selection&&a.selection(...S),w(...S)},o.customElementCb=(...S)=>{a.customElement&&a.customElement(...S),_(...S)}})(e,t);const s=[],c=Y(()=>{try{if(i)try{i.destroy(),i.reset()}finally{const o=je.indexOf(i);o!==-1&&je.splice(o,1)}e.shadowDomManager.resetForDoc(e.doc),r?.disconnect()}finally{er(s)}}),l=(o,a)=>{const u=Y(()=>{try{return a()}catch(h){throw Jr.add(o),h}})();typeof u=="function"&&s.push(u)};try{if(e.recordDOM&&l("mutation",()=>{const o=_s(e,e.doc);r=o.observer,i=o.buffer}),l("move",()=>(function({mousemoveCb:o,sampling:a,doc:u,mirror:h}){if(a.mousemove===!1)return()=>{};const d=typeof a.mousemove=="number"?a.mousemove:50,p=typeof a.mousemoveCallback=="number"?a.mousemoveCallback:500;let f,m=[];const v=pn(Y(b=>{const k=Date.now()-f;o(m.map(w=>(w.timeOffset-=k,w)),b),m=[],f=null}),p),g=Y(pn(Y(b=>{const k=mn(b),{clientX:w,clientY:_}=Zr(b)?b.changedTouches[0]:b;f||(f=nr()),m.push({x:w,y:_,id:h.getId(k),timeOffset:nr()-f}),v(typeof DragEvent<"u"&&b instanceof DragEvent?U.Drag:b instanceof MouseEvent?U.MouseMove:U.TouchMove)}),d,{trailing:!1})),y=[me("mousemove",g,u),me("touchmove",g,u),me("drag",g,u)];return Y(()=>{y.forEach(b=>b())})})(e)),l("mouseInteraction",()=>(function({mouseInteractionCb:o,doc:a,mirror:u,blockClass:h,blockSelector:d,sampling:p}){if(p.mouseInteraction===!1)return()=>{};const f=p.mouseInteraction===!0||p.mouseInteraction===void 0?{}:p.mouseInteraction,m=[];let v=null;return Object.keys(He).filter(g=>Number.isNaN(Number(g))&&!g.endsWith("_Departed")&&f[g]!==!1).forEach(g=>{let y=it(g);const b=(k=>w=>{const _=mn(w);if(Se(_,h,d,!0))return;let S=null,M=k;if("pointerType"in w){switch(w.pointerType){case"mouse":S=wt.Mouse;break;case"touch":S=wt.Touch;break;case"pen":S=wt.Pen}S===wt.Touch&&(He[k]===He.MouseDown?M="TouchStart":He[k]===He.MouseUp&&(M="TouchEnd"))}else Zr(w)&&(S=wt.Touch);S!==null?(v=S,(M.startsWith("Touch")&&S===wt.Touch||M.startsWith("Mouse")&&S===wt.Mouse)&&(S=null)):He[k]===He.Click&&(S=v,v=null);const I=Zr(w)?w.changedTouches[0]:w;if(!I)return;const R=u.getId(_),{clientX:N,clientY:x}=I;Y(o)($({type:He[M],id:R,x:N,y:x},S!==null&&{pointerType:S}))})(g);if(window.PointerEvent)switch(He[g]){case He.MouseDown:case He.MouseUp:y=y.replace("mouse","pointer");break;case He.TouchStart:case He.TouchEnd:return}m.push(me(y,b,a))}),Y(()=>{m.forEach(g=>g())})})(e)),l("scroll",()=>Is(e)),l("viewportResize",()=>(function({viewportResizeCb:o},{win:a}){let u=-1,h=-1;return me("resize",Y(pn(Y(()=>{const d=us(),p=ds();u===d&&h===p||(o({width:Number(p),height:Number(d)}),u=d,h=p)}),200)),a)})(e,{win:n})),l("input",()=>(function({inputCb:o,doc:a,mirror:u,blockClass:h,blockSelector:d,ignoreClass:p,ignoreSelector:f,maskInputOptions:m,maskInputFn:v,sampling:g,userTriggeredOnInput:y}){function b(M){let I=mn(M);const R=M.isTrusted,N=a.defaultView;if(I&&N&&!(I instanceof N.HTMLElement))return;const x=I&&I.tagName;if(I&&x==="OPTION"&&(I=L.parentElement(I)),!I||!x||0>ja.indexOf(x)||Se(I,h,d,!0)||I.classList.contains(p)||f&&I.matches(f))return;let z=I.value,Q=!1;const te=Kn(I)||"";te==="radio"||te==="checkbox"?Q=I.checked:(m[x.toLowerCase()]||m[te])&&(z=Xn({element:I,maskInputOptions:m,tagName:x,type:te,value:z,maskInputFn:v})),k(I,y?{text:z,isChecked:Q,userTriggered:R}:{text:z,isChecked:Q});const ue=I.name;te==="radio"&&ue&&Q&&a.querySelectorAll(`input[type="radio"][name="${ue}"]`).forEach(ne=>{if(ne!==I){const H=ne.value;k(ne,y?{text:H,isChecked:!Q,userTriggered:!1}:{text:H,isChecked:!Q})}})}function k(M,I){const R=Ms.get(M);if(!R||R.text!==I.text||R.isChecked!==I.isChecked){Ms.set(M,I);const N=u.getId(M);Y(o)($($({},I),{},{id:N}))}}const w=(g.input==="last"?["change"]:["input","change"]).map(M=>me(M,Y(b),a)),_=a.defaultView;if(!_)return()=>{w.forEach(M=>M())};const S=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value");return S&&S.set&&w.push(...[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]].map(M=>tr(M[0],M[1],{set(){Y(b)({target:this,isTrusted:!1})}},!1,_))),Y(()=>{er(w)})})(e)),l("mediaInteraction",()=>(function({mediaInteractionCb:o,blockClass:a,blockSelector:u,mirror:h,sampling:d,doc:p}){const f=Y(v=>pn(Y(g=>{const y=mn(g);if(!y||Se(y,a,u,!0))return;const{currentTime:b,volume:k,muted:w,playbackRate:_,loop:S}=y;o({type:v,id:h.getId(y),currentTime:b,volume:k,muted:w,playbackRate:_,loop:S})}),d.media||500)),m=[me("play",f(nn.Play),p),me("pause",f(nn.Pause),p),me("seeked",f(nn.Seeked),p),me("volumechange",f(nn.VolumeChange),p),me("ratechange",f(nn.RateChange),p)];return Y(()=>{m.forEach(v=>v())})})(e)),e.recordDOM){const o=(function(a){const u=new Map,h=new Set;let d=!0;const p=m=>{if(d)try{m()}catch{}},f=m=>{var v;const g=u.get(m);if(g){for(;!((v=g[0])===null||v===void 0)&&v.ready;){const y=g.shift();y!=null&&y.emit&&p(y.emit)}g.length===0&&u.delete(m)}};return{queueMutation(m,v){if(!m)return void p(v);const g=u.get(m);g?(g.push({emit:v,ready:!0}),f(m)):p(v)},queuePendingMutation(m,v,g){if(!d)return()=>{};let y=u.get(m);y||(y=[],u.set(m,y));const b={emit:v,ready:!1};y.push(b);let k,w=!1,_=!1;const S=()=>{w||_||(w=!0,k!==void 0&&h.delete(k),b.ready=!0,b.emit=void 0,f(m))};try{k=a.setTimeout(S,5e3),w||_?a.clearTimeout(k):h.add(k)}catch{S()}return M=>{!_&&d&&(_=!0,k!==void 0&&(a.clearTimeout(k),h.delete(k)),w?M&&p(g):(b.ready=!0,M||(b.emit=void 0),f(m)))}},reset(){d=!1,h.forEach(m=>a.clearTimeout(m)),h.clear(),u.clear()}}})(n);s.push(o.reset),l("styleSheet",()=>(function({styleSheetRuleCb:a,mirror:u,stylesheetManager:h},{win:d,mutationQueue:p}){if(!d.CSSStyleSheet||!d.CSSStyleSheet.prototype)return()=>{};const f=d.CSSStyleSheet.prototype.insertRule;d.CSSStyleSheet.prototype.insertRule=new Proxy(f,{apply:Y((k,w,_)=>{const[S]=_,M=k.apply(w,_);h.onCssomSheetMutation(w);const{id:I,styleId:R}=mt(w,u,h.styleMirror);return(I&&I!==-1||R&&R!==-1)&&p.queueMutation(w,()=>a({id:I,styleId:R,adds:[{rule:S,index:M}]})),M},"host")}),d.CSSStyleSheet.prototype.addRule=function(k,w,_=this.cssRules.length){return d.CSSStyleSheet.prototype.insertRule.apply(this,[`${k} { ${w} }`,_])};const m=d.CSSStyleSheet.prototype.deleteRule;let v,g;d.CSSStyleSheet.prototype.deleteRule=new Proxy(m,{apply:Y((k,w,_)=>{const[S]=_,M=k.apply(w,_);h.onCssomSheetMutation(w);const{id:I,styleId:R}=mt(w,u,h.styleMirror);return(I&&I!==-1||R&&R!==-1)&&p.queueMutation(w,()=>a({id:I,styleId:R,removes:[{index:S}]})),M},"host")}),d.CSSStyleSheet.prototype.removeRule=function(k){return d.CSSStyleSheet.prototype.deleteRule.apply(this,[k])},d.CSSStyleSheet.prototype.replace&&(v=d.CSSStyleSheet.prototype.replace,d.CSSStyleSheet.prototype.replace=new Proxy(v,{apply:Y((k,w,_)=>{const[S]=_,M=k.apply(w,_);try{const I=M?.then;if(w.ownerNode||!M||typeof I!="function")return M;h.onCssomSheetMutation(w);const{id:R,styleId:N}=mt(w,u,h.styleMirror);if(!(R&&R!==-1||N&&N!==-1))return M;const x=p.queuePendingMutation(w,()=>a({id:R,styleId:N,replace:S}),()=>{const z=un(w);z!==null&&a({id:R,styleId:N,replace:z})});try{I.call(M,()=>x(!0),()=>x(!1))}catch{x(!1)}}catch{}return M},"host")})),d.CSSStyleSheet.prototype.replaceSync&&(g=d.CSSStyleSheet.prototype.replaceSync,d.CSSStyleSheet.prototype.replaceSync=new Proxy(g,{apply:Y((k,w,_)=>{const[S]=_,M=k.apply(w,_);h.onCssomSheetMutation(w);const{id:I,styleId:R}=mt(w,u,h.styleMirror);return(I&&I!==-1||R&&R!==-1)&&p.queueMutation(w,()=>a({id:I,styleId:R,replaceSync:S})),M},"host")}));const y={};sr("CSSGroupingRule")?y.CSSGroupingRule=d.CSSGroupingRule:(sr("CSSMediaRule")&&(y.CSSMediaRule=d.CSSMediaRule),sr("CSSConditionRule")&&(y.CSSConditionRule=d.CSSConditionRule),sr("CSSSupportsRule")&&(y.CSSSupportsRule=d.CSSSupportsRule));const b={};return Object.entries(y).forEach(([k,w])=>{b[k]={insertRule:w.prototype.insertRule,deleteRule:w.prototype.deleteRule},w.prototype.insertRule=new Proxy(b[k].insertRule,{apply:Y((_,S,M)=>{const[I]=M,R=_.apply(S,M);h.onCssomSheetMutation(S.parentStyleSheet);const{id:N,styleId:x}=mt(S.parentStyleSheet,u,h.styleMirror);if(S.parentStyleSheet&&(N&&N!==-1||x&&x!==-1)){const z=[...rr(S),R];p.queueMutation(S.parentStyleSheet,()=>a({id:N,styleId:x,adds:[{rule:I,index:z}]}))}return R},"host")}),w.prototype.deleteRule=new Proxy(b[k].deleteRule,{apply:Y((_,S,M)=>{const[I]=M,R=_.apply(S,M);h.onCssomSheetMutation(S.parentStyleSheet);const{id:N,styleId:x}=mt(S.parentStyleSheet,u,h.styleMirror);if(S.parentStyleSheet&&(N&&N!==-1||x&&x!==-1)){const z=[...rr(S),I];p.queueMutation(S.parentStyleSheet,()=>a({id:N,styleId:x,removes:[{index:z}]}))}return R},"host")})}),Y(()=>{d.CSSStyleSheet.prototype.insertRule=f,d.CSSStyleSheet.prototype.deleteRule=m,v&&(d.CSSStyleSheet.prototype.replace=v),g&&(d.CSSStyleSheet.prototype.replaceSync=g),Object.entries(y).forEach(([k,w])=>{w.prototype.insertRule=b[k].insertRule,w.prototype.deleteRule=b[k].deleteRule})})})(e,{win:n,mutationQueue:o})),l("adoptedStyleSheet",()=>Rs(e,e.doc)),l("styleDeclaration",()=>(function({styleDeclarationCb:a,mirror:u,ignoreCSSAttributes:h,stylesheetManager:d},{win:p,mutationQueue:f}){const m=p.CSSStyleDeclaration.prototype.setProperty;p.CSSStyleDeclaration.prototype.setProperty=new Proxy(m,{apply:Y((g,y,b)=>{var k;const[w,_,S]=b,M=g.apply(y,b);if(h.has(w))return M;const I=(k=y.parentRule)===null||k===void 0?void 0:k.parentStyleSheet;d.onCssomSheetMutation(I);const{id:R,styleId:N}=mt(I,u,d.styleMirror);if(R&&R!==-1||N&&N!==-1){const x=rr(y.parentRule);f.queueMutation(I,()=>a({id:R,styleId:N,set:{property:w,value:_,priority:S},index:x}))}return M},"host")});const v=p.CSSStyleDeclaration.prototype.removeProperty;return p.CSSStyleDeclaration.prototype.removeProperty=new Proxy(v,{apply:Y((g,y,b)=>{var k;const[w]=b,_=g.apply(y,b);if(h.has(w))return _;const S=(k=y.parentRule)===null||k===void 0?void 0:k.parentStyleSheet;d.onCssomSheetMutation(S);const{id:M,styleId:I}=mt(S,u,d.styleMirror);if(M&&M!==-1||I&&I!==-1){const R=rr(y.parentRule);f.queueMutation(S,()=>a({id:M,styleId:I,remove:{property:w},index:R}))}return _},"host")}),Y(()=>{p.CSSStyleDeclaration.prototype.setProperty=m,p.CSSStyleDeclaration.prototype.removeProperty=v})})(e,{win:n,mutationQueue:o})),e.collectFonts&&l("font",()=>(function({fontCb:a,doc:u}){const h=u.defaultView;if(!h)return()=>{};const d=[],p=new WeakMap,f=h.FontFace;h.FontFace=function(v,g,y){const b=new f(v,g,y);return p.set(b,{family:v,buffer:typeof g!="string",descriptors:y,fontSource:typeof g=="string"?g:JSON.stringify(Array.from(new Uint8Array(g)))}),b};const m=pt(u.fonts,"add",function(v){return function(g){return setTimeout(Y(()=>{const y=p.get(g);y&&(a(y),p.delete(g))}),0),v.apply(this,[g])}});return d.push(()=>{h.FontFace=f}),d.push(m),Y(()=>{d.forEach(v=>v())})})(e))}l("selection",()=>(function(o){const{doc:a,mirror:u,blockClass:h,blockSelector:d,selectionCb:p}=o;let f=!0;const m=Y(()=>{const v=a.getSelection();if(!v||f&&v?.isCollapsed)return;f=v.isCollapsed||!1;const g=[],y=v.rangeCount||0;for(let b=0;y>b;b++){const{startContainer:k,startOffset:w,endContainer:_,endOffset:S}=v.getRangeAt(b);Se(k,h,d,!0)||Se(_,h,d,!0)||g.push({start:u.getId(k),startOffset:w,end:u.getId(_),endOffset:S})}p({ranges:g})});return m(),me("selectionchange",m)})(e)),l("customElement",()=>(function({doc:o,customElementCb:a}){const u=o.defaultView;return u&&u.customElements?pt(u.customElements,"define",function(h){return function(d,p,f){try{a({define:{name:d}})}catch{console.warn(`Custom element callback failed for ${d}`)}return h.apply(this,[d,p,f])}}):()=>{}})(e));for(const o of e.plugins)l(`plugin:${o.name}`,()=>o.observer(o.callback,n,o.options))}catch(o){try{c()}catch{}throw o}return c}function ir(e){return window[e]!==void 0}function sr(e){return!!(window[e]!==void 0&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Es=class{constructor(e){C(this,"generateIdFn",void 0),C(this,"iframeRemoteIdToLocalIdMap",new WeakMap),C(this,"iframeLocalIdToRemoteIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,r){if(0>t)return t;const i=n||this.getRemoteIdToLocalIdMap(e),s=r||this.getLocalIdToRemoteIdMap(e);let c=i.get(t);return c===void 0&&(c=this.generateIdFn(),i.set(t,c),s.set(c,t)),c}getIds(e,t){const n=this.getRemoteIdToLocalIdMap(e),r=this.getLocalIdToRemoteIdMap(e);return t.map(i=>this.getId(e,i,n,r))}getRemoteId(e,t,n){var r;return typeof t!="number"||0>t?t:(r=(n||this.getLocalIdToRemoteIdMap(e)).get(t))!==null&&r!==void 0?r:-1}getRemoteIds(e,t){const n=this.getLocalIdToRemoteIdMap(e);return t.map(r=>this.getRemoteId(e,r,n))}reset(e){if(!e)return this.iframeRemoteIdToLocalIdMap=new WeakMap,void(this.iframeLocalIdToRemoteIdMap=new WeakMap);this.iframeRemoteIdToLocalIdMap.delete(e),this.iframeLocalIdToRemoteIdMap.delete(e)}getRemoteIdToLocalIdMap(e){let t=this.iframeRemoteIdToLocalIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToLocalIdMap.set(e,t)),t}getLocalIdToRemoteIdMap(e){let t=this.iframeLocalIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeLocalIdToRemoteIdMap.set(e,t)),t}},qa=class{constructor(e){C(this,"iframes",new WeakMap),C(this,"crossOriginIframeMap",new WeakMap),C(this,"crossOriginIframeMirror",new Es(Qi)),C(this,"crossOriginIframeStyleMirror",void 0),C(this,"crossOriginIframeRootIdMap",new WeakMap),C(this,"mirror",void 0),C(this,"mutationCb",void 0),C(this,"wrappedEmit",void 0),C(this,"loadListener",void 0),C(this,"pageHideListener",void 0),C(this,"stylesheetManager",void 0),C(this,"recordCrossOriginIframes",void 0),C(this,"messageHandler",void 0),C(this,"nestedIframeListeners",new Map),C(this,"attachedWindows",new WeakMap),C(this,"attachedDocuments",new WeakMap),C(this,"attachedIframes",new Map),C(this,"loadListenerDisposers",new WeakMap),C(this,"iframeElementsById",new Map),C(this,"pageHideHandlers",new WeakMap),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Es(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}registerLoadListenerDisposer(e,t){let n=this.loadListenerDisposers.get(e);n||(n=new Set,this.loadListenerDisposers.set(e,n)),n.add(t);const r=this.mirror.getId(e);r!==-1&&this.iframeElementsById.set(r,e)}getIframeElementById(e){var t,n,r;return(t=(n=(r=this.attachedIframes.get(e))===null||r===void 0?void 0:r.element)!==null&&n!==void 0?n:this.iframeElementsById.get(e))!==null&&t!==void 0?t:null}forgetIframeId(e){this.attachedIframes.delete(e),this.iframeElementsById.delete(e)}disposeLoadListeners(e){const t=this.loadListenerDisposers.get(e);t&&(t.forEach(n=>at(n)),this.loadListenerDisposers.delete(e))}removePageHideListener(e){const t=this.pageHideHandlers.get(e);t&&(t.forEach(({win:n,handler:r})=>{Ft(n,"pagehide",r)}),this.pageHideHandlers.delete(e))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}removeLoadListener(){this.loadListener=void 0}trackIframeContent(e,t){const n=this.mirror.getId(e);return this.attachedIframes.set(n,{element:e,content:t}),n}attachIframe(e,t){var n;const r=this.trackIframeContent(e,t);if(e.contentDocument){let s=this.attachedDocuments.get(e);s||(s=new Set,this.attachedDocuments.set(e,s)),s.add(e.contentDocument)}this.mutationCb({adds:[{parentId:r,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0});const i=e.contentWindow;if(this.recordCrossOriginIframes&&i&&!this.nestedIframeListeners.has(i)){const s=this.handleMessage.bind(this);at(()=>{i.addEventListener("message",s),this.nestedIframeListeners.set(i,s);let c=this.attachedWindows.get(e);c||(c=new Set,this.attachedWindows.set(e,c)),c.add(i)})}at(()=>{const s=e.contentWindow;if(!s)return;let c=this.pageHideHandlers.get(e);if(c){for(const o of c)if(o.win===s)return}const l=()=>{var o;(o=this.pageHideListener)===null||o===void 0||o.call(this,e),e.contentDocument&&this.mirror.removeNodeFromMap(e.contentDocument)};s.addEventListener("pagehide",l),c||(c=new Set,this.pageHideHandlers.set(e,c)),c.add({win:s,handler:l})}),(n=this.loadListener)===null||n===void 0||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case K.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),this.trackIframeContent(e,t.data.node),{timestamp:t.timestamp,type:K.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case K.Meta:case K.Load:case K.DomContentLoaded:return!1;case K.Plugin:return t;case K.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case K.IncrementalSnapshot:switch(t.data.source){case U.Mutation:return t.data.adds.forEach(r=>{this.replaceIds(r,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,e);const i=this.crossOriginIframeRootIdMap.get(e);i&&this.patchRootIdOnNode(r.node,i)}),t.data.removes.forEach(r=>{this.replaceIds(r,e,["parentId","id"])}),t.data.attributes.forEach(r=>{this.replaceIds(r,e,["id"])}),t.data.texts.forEach(r=>{this.replaceIds(r,e,["id"])}),t;case U.Drag:case U.TouchMove:case U.MouseMove:return t.data.positions.forEach(r=>{this.replaceIds(r,e,["id"])}),t;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(t.data,e,["id"]),t;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case U.Font:return t;case U.Selection:return t.data.ranges.forEach(r=>{this.replaceIds(r,e,["start","end"])}),t;case U.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(n=t.data.styles)===null||n===void 0||n.forEach(r=>{this.replaceStyleIds(r,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||typeof t[i]=="number")&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,t)})}patchRootIdOnNode(e,t){e.type===Ee.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t)})}removeIframeById(e){const t=this.attachedIframes.get(e),n=t?.element||this.iframeElementsById.get(e)||this.mirror.getNode(e);if(this.iframeElementsById.delete(e),n){const r=n.contentWindow,i=this.attachedWindows.get(n);i&&(i.forEach(c=>{const l=this.nestedIframeListeners.get(c);l&&(Ft(c,"message",l),this.nestedIframeListeners.delete(c)),this.crossOriginIframeMap.delete(c)}),this.attachedWindows.delete(n)),r&&this.nestedIframeListeners.has(r)&&(Ft(r,"message",this.nestedIframeListeners.get(r)),this.nestedIframeListeners.delete(r)),r&&this.crossOriginIframeMap.delete(r),this.iframes.delete(n),this.disposeLoadListeners(n),this.removePageHideListener(n);const s=this.attachedDocuments.get(n);s&&(s.forEach(c=>{at(()=>this.mirror.removeNodeFromMap(c))}),at(()=>Cs(n,s)),this.attachedDocuments.delete(n))}t&&this.attachedIframes.delete(e)}cleanupDetachedIframes(){if(this.attachedIframes.size===0)return;const e=[];this.attachedIframes.forEach((t,n)=>{this.mirror.has(n)||e.push(n)}),e.forEach(t=>this.removeIframeById(t))}reattachIframes(){this.attachedIframes.forEach(({content:e},t)=>{this.mirror.has(t)?this.mutationCb({adds:[{parentId:t,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}):this.attachedIframes.delete(t)})}destroy(){this.recordCrossOriginIframes&&Ft(window,"message",this.messageHandler),this.nestedIframeListeners.forEach((t,n)=>{Ft(n,"message",t)}),this.nestedIframeListeners.clear();const e=new Set;this.iframeElementsById.forEach(t=>e.add(t)),this.attachedIframes.forEach(({element:t})=>e.add(t)),e.forEach(t=>{this.disposeLoadListeners(t),this.removePageHideListener(t)}),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap,this.loadListenerDisposers=new WeakMap,this.pageHideHandlers=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedWindows=new WeakMap,this.iframeElementsById=new Map}},Ua=class{constructor(e){C(this,"shadowDoms",new WeakSet),C(this,"mutationCb",void 0),C(this,"scrollCb",void 0),C(this,"bypassOptions",void 0),C(this,"mirror",void 0),C(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){var n,r;if(!cn(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const i=(n=(r=L.host(e))===null||r===void 0?void 0:r.ownerDocument)!==null&&n!==void 0?n:t,{observer:s,buffer:c}=_s($($({},this.bypassOptions),{},{doc:i,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push({doc:i,handler(){s.disconnect(),c.destroy(),c.releaseCanvasManager();const l=je.indexOf(c);l!==-1&&je.splice(l,1)}}),this.restoreHandlers.push({doc:i,handler:Is($($({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(L.host(e))),this.restoreHandlers.push({doc:i,handler:Rs({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e)})},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push({doc:t,handler:pt(e.prototype,"attachShadow",function(r){return function(i){const s=r.call(this,i),c=L.shadowRoot(this);return c&&vs(this)&&n.addShadowRoot(c,t),s}})})}reset(){this.restoreHandlers.forEach(({handler:e})=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}resetForDoc(e){const t=[];for(const n of this.restoreHandlers)if(n.doc===e)try{n.handler()}catch{}else t.push(n);this.restoreHandlers=t}},Ts="skip-frame";function Va(e){if(typeof e!="object"||e===null)return!1;const{x:t,y:n,width:r,height:i}=e;return Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(i)&&r>=0&&i>=0}for(var gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ga=typeof Uint8Array>"u"?[]:new Uint8Array(256),or=0;64>or;or++)Ga[gn.charCodeAt(or)]=or;var Ya=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;r>t;t+=3)i+=gn[n[t]>>2],i+=gn[(3&n[t])<<4|n[t+1]>>4],i+=gn[(15&n[t+1])<<2|n[t+2]>>6],i+=gn[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},xs=!1,As=new Map,Os=(e,t,n)=>{if(!e||!Ns(e,t)&&typeof e!="object")return;const r=(function(s,c){let l=As.get(s);return l||(l=new Map,As.set(s,l)),l.has(c)||l.set(c,[]),l.get(c)})(n,e.constructor.name);let i=r.indexOf(e);return i===-1&&(i=r.length,r.push(e)),i};function ar(e,t,n,r){if(e instanceof Array)return e.map(i=>ar(i,t,n,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:Ya(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[ar(e.buffer,t,n,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:s}=e;return{rr_type:i,src:s}}if(e instanceof HTMLCanvasElement){const i="HTMLImageElement";let s;try{s=e.toDataURL(r.type,r.quality)}catch(c){throw(function(l){l?.name==="SecurityError"?xs||(xs=!0,console.warn("[replay] canvas capture: skipping a canvas draw because its pixels cannot be read. A cross-origin image or video drawn into it taints it.",l)):console.warn("[replay] canvas capture: skipping a canvas draw because its pixels cannot be read.",l)})(c),c}return{rr_type:i,src:s}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[ar(e.data,t,n,r),e.width,e.height]}:Ns(e,t)||typeof e=="object"?{rr_type:e.constructor.name,index:Os(e,t,n)}:e}var Ls=(e,t,n,r)=>e.map(i=>ar(i,t,n,r)),Ns=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(r=>typeof t[r]=="function").find(r=>e instanceof t[r]),Za=["webgl","webgl2"];function Ds(e){return"nodeType"in e}function Fs(e,t,n,r){const i=[];try{if(r){const c=(function(l,o,a){const u=l.GPUCanvasContext;if(u?.prototype&&typeof u.prototype.configure=="function")return pt(u.prototype,"configure",function(h){return function(d){const p=(function(m){const{canvas:v}=m;return v&&typeof v=="object"?v:null})(this);if(!p||Ds(p)&&Se(p,o,a,!0))return h.call(this,d);Ds(p)&&!("__context"in p)&&(p.__context="webgpu");const f=(function(m){const v=m.GPUTextureUsage;return v?v.COPY_SRC|v.RENDER_ATTACHMENT:null})(l);return h.call(this,f!==null&&d?$($({},d),{},{usage:typeof d.usage=="number"?d.usage|f:f}):d)}})})(e,t,n);c&&i.push(c)}const s=pt(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(l,...o){const a=(function(u){return u==="experimental-webgl"?"webgl":u})(l);if(!Se(this,t,n,!0)&&("__context"in this||(this.__context=a),r&&Za.includes(a)))if(o[0]&&typeof o[0]=="object"){const u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0});return c.apply(this,[l,...o])}});i.push(s)}catch{console.warn("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(s=>s())}}function Ps(e,t,n,r,i,s,c){const l=[],o=Object.getOwnPropertyNames(e);for(const a of o)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;const u=pt(e,a,function(h){return function(...d){const p=h.apply(this,d);if(Os(p,s,this),this.canvas&&"tagName"in this.canvas&&!Se(this.canvas,r,i,!0)){let f;try{f=Ls(d,s,this,c)}catch{}f&&n(this.canvas,{type:t,property:a,args:f})}return p}});l.push(u)}catch{const h=tr(e,a,{set(d){this.canvas&&"tagName"in this.canvas&&!Se(this.canvas,r,i,!0)&&n(this.canvas,{type:t,property:a,args:[d],setter:!0})}});l.push(h)}return l}var $s=`(function() {
4
4
  //#region ../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/base64-arraybuffer/1.0.2/f63fa6b5c318cf1c9f6bdd1d4292ad2f15f76f2ec78475025a2d44070e896fe9/node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js
@@ -107,4 +107,4 @@ or you can use record.mirror to access the mirror instance during recording.`,ls
107
107
  `).filter(function(t){return!!t.match(tl)&&!t.match(/^Error created at/)},this).map(function(t){const n=t.split("@"),r=this.extractLocation(n.pop());return new Bt({functionName:(n.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function rl(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(let s=0;r.children.length>s;s++){const c=r.children[s];c.localName&&c.localName.toLowerCase&&c.localName.toLowerCase()===n&&i.push(c)}i.length>1&&(n+=`:eq(${i.indexOf(e)})`),t=n+(t?">"+t:""),e=r}return t}function Ws(e){return Array.isArray(e)}function ei(e){return typeof e=="object"&&e!==null&&!Ws(e)}function qs(e,t){if(t===0)return!0;const n=Object.keys(e);for(const r of n)if(ei(e[r])&&qs(e[r],t-1))return!0;return!1}function zt(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],i=[];return JSON.stringify(e,function(s,c){if(r.length>0){const o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?i.splice(o,1/0,s):i.push(s),~r.indexOf(c)&&(c=r[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(c)).join(".")+"]")}else r.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(ei(l=c)&&Object.keys(l).length>n.numOfKeysLimit||typeof l=="function"||ei(l)&&qs(l,n.depthOfLimit))return(function(o){let a=o.toString();return n.stringLengthLimit&&a.length>n.stringLengthLimit&&(a=`${a.slice(0,n.stringLengthLimit)}...`),a})(c);var l;if(typeof c=="bigint")return c.toString()+"n";if(c instanceof Event){const o={};for(const a in c){const u=c[a];o[a]=Ws(u)?rl(u.length?u[0]:null):u}return o}return c instanceof Node?c instanceof HTMLElement?c?c.outerHTML:"":c.nodeName:c instanceof Error?c.stack?c.stack+`
108
108
  End of stack for Error object`:c.name+": "+c.message:c})}var Us={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function il(e,t,n){const r=n?Object.assign({},Us,n):Us,i=r.logger;if(!i)return()=>{};let s;s=typeof i=="string"?t[i]:i;let c=0,l=!1,o=!0;const a=[];if(r.level.includes("error")){const h=p=>{const f=p.message;e({level:"error",trace:Qr.parse(p.error).map(m=>m.toString()),payload:[zt(f,r.stringifyOptions)]})};t.addEventListener("error",h),a.push(()=>{t.removeEventListener("error",h)});const d=p=>{let f,m;p.reason instanceof Error?(f=p.reason,m=[zt(`Uncaught (in promise) ${f.name}: ${f.message}`,r.stringifyOptions)]):(f=new Error,m=[zt("Uncaught (in promise)",r.stringifyOptions),zt(p.reason,r.stringifyOptions)]),e({level:"error",trace:Qr.parse(f).map(v=>v.toString()),payload:m})};t.addEventListener("unhandledrejection",d),a.push(()=>{t.removeEventListener("unhandledrejection",d)})}for(const h of r.level)a.push(u(s,h));return()=>{o=!1,a.forEach(h=>h())};function u(h,d){return h[d]?(function(p,f){try{if(!(f in p))return()=>{};const m=p[f],v={next:m},g=(y=>(...b)=>{if(y.apply(h,b),o&&!(d==="assert"&&b[0]||l)){l=!0;try{const k=Qr.parse(new Error).map(_=>_.toString()).splice(1),w=(d==="assert"?b.slice(1):b).map(_=>zt(_,r.stringifyOptions));c++,r.lengthThreshold>c?e({level:d,trace:k,payload:w}):c===r.lengthThreshold&&e({level:"warn",trace:[],payload:[zt("The number of log records reached the threshold.")]})}catch(k){y.apply(h,["rrweb logger error:",k,...b])}finally{l=!1}}})(function(...y){return v.next.apply(this,y)});return typeof g=="function"&&(g.prototype=g.prototype||{},Object.defineProperties(g,{__rrweb_original__:{enumerable:!1,value:m},__rrweb_layer__:{enumerable:!1,value:v}})),p[f]=g,()=>{if(p[f]===g)return void(p[f]=v.next);const y=w=>{var _;return typeof w=="function"?(_=w.__rrweb_layer__)!==null&&_!==void 0?_:w.__posthog_layer__:void 0};let b=p[f],k=y(b);for(;k;){if(k.next===g)return void(k.next=v.next);b=k.next,k=y(b)}}}catch{return()=>{}}})(h,d):()=>{}}}const G="u">typeof window?window:void 0,It="u">typeof globalThis?globalThis:G,st=It?.document,sl=It?.location;It!=null&&It.XMLHttpRequest&&new It.XMLHttpRequest;const Sn=typeof globalThis<"u"?globalThis:G;Sn&&typeof self>"u"&&(Sn.self=Sn),Sn&&typeof File>"u"&&(Sn.File=function(){});const lt=G??{},Vs=Object.prototype,ti=Vs.hasOwnProperty,hr=Vs.toString,xe=Array.isArray||function(e){return hr.call(e)==="[object Array]"},Ne=e=>typeof e=="function",Ae=e=>e===Object(e)&&!xe(e),V=e=>e===void 0,gt=e=>hr.call(e)=="[object String]",De=e=>e===null,Xe=e=>V(e)||De(e),_e=e=>hr.call(e)=="[object Number]"&&e==e,Ke=e=>hr.call(e)==="[object Boolean]",Gs=e=>e instanceof FormData;function vt(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),_e(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),vt(i??n,t,n,r))}var ol=class{constructor(e){this.C={},this.I=e.I,this.R=vt(e.bucketSize,0,100,e.A),this.$=vt(e.refillRate,0,this.R,e.A),this.O=vt(e.refillInterval,0,864e5,e.A)}F(e,t){const n=Math.floor((t-e.lastAccess)/this.O);n>0&&(e.tokens=Math.min(e.tokens+n*this.$,this.R),e.lastAccess=e.lastAccess+n*this.O)}consumeRateLimit(e){var t;const n=Date.now(),r=String(e);let i=this.C[r];return i?this.F(i,n):(i={tokens:this.R,lastAccess:n},this.C[r]=i),i.tokens===0||(i.tokens--,i.tokens===0&&((t=this.I)===null||t===void 0||t.call(this,e)),i.tokens===0)}stop(){this.C={}}};function Ys(e){return e&&e.split("#")[0]}const Zs="NativeGzipValidationError";let wn;const pr=e=>{throw(function(t,n){const r=new Error(n);try{Object.defineProperty(r,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch{}return r})(Zs,`Native gzip produced invalid output: ${e}`)},al=(Xs=Ge(function*(e,t){18>e.size&&pr("too-short");const n=new Uint8Array(yield e.slice(0,10).arrayBuffer());var r;(2>(r=n).length||r[0]!==31||r[1]!==139||n[2]!==8)&&pr("invalid-header");const i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(c=>{const l=(()=>{if(wn)return wn;wn=[];for(let a=0;256>a;a++){let u=a;for(let h=0;8>h;h++)u=1&u?3988292384^u>>>1:u>>>1;wn[a]=u>>>0}return wn})();let o=4294967295;for(let a=0;c.length>a;a++)o=l[255&(o^c[a])]^o>>>8;return(4294967295^o)>>>0})(t)&&pr("invalid-crc");const s=t.length>>>0;i.getUint32(4,!0)!==s&&pr("invalid-size")}),function(e,t){return Xs.apply(this,arguments)});var Xs;function ni(){return ni=Ge(function*(e,t=!0,n){try{const i=new TextEncoder().encode(e),s=new globalThis.CompressionStream("gzip"),c=s.writable.getWriter(),l=c.write(i).then(()=>c.close()).catch((r=Ge(function*(u){try{yield c.abort(u)}catch{}throw u}),function(u){return r.apply(this,arguments)})),o=new Response(s.readable).blob(),[a]=yield Promise.all([o,l]);return yield al(a,i),a}catch(i){if(n?.rethrow)throw i;return t&&console.error("Failed to gzip compress data",i),null}var r}),ni.apply(this,arguments)}const Js="0.9.0",kn={DEBUG:!1,LIB_VERSION:Js,LIB_NAME:"browser-common",JS_SDK_VERSION:Js},Ks=(e,{debugEnabled:t}={})=>{const n={N(r,...i){G&&(kn.DEBUG||G.POSTHOG_DEBUG||t)&&!V(G.console)&&G.console&&("__rrweb_original__"in G.console[r]?G.console[r].__rrweb_original__:G.console[r])(e,...i)},debug(...r){n.N("debug",...r)},info(...r){n.N("log",...r)},warn(...r){n.N("warn",...r)},error(...r){n.N("error",...r)},critical(...r){console.error(e,...r)},uninitializedWarning(r){n.error(`You must initialize PostHog before calling ${r}`)},createLogger:(r,i)=>Ks(`${e} ${r}`,i)};return n},ct=Ks("[PostHog.js]"),Ht=ct.createLogger;function ri(e,t){if(!Xe(e))if(xe(e))e.forEach(t);else if(Gs(e))e.forEach((n,r)=>t(n,r));else for(const n in e)ti.call(e,n)&&t(e[n],n)}function _n(e,t,n,r){const{capture:i=!1,passive:s=!0}=r??{};e?.addEventListener(t,n,{capture:i,passive:s})}const ll=["localhost","127.0.0.1"],Qs=e=>{const t=st?.createElement("a");return V(t)?null:(t.href=e,t)},eo=()=>{},to=e=>{var t;if(Ne(e))return(t=e.__posthog_layer__)!==null&&t!==void 0?t:e.__rrweb_layer__};function no(e,t,n){try{if(!(t in e))return eo;const r={next:e[t]},i=n(function(...s){return r.next.apply(this,s)});return Ne(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:r}})),e[t]=i,()=>{if(e[t]===i)return void(e[t]=r.next);let s=e[t],c=to(s);for(;c;){if(c.next===i)return void(c.next=r.next);s=c.next,c=to(s)}}}catch{return eo}}function ii(e,t){var n;const r=(function(s){try{return typeof s=="string"?new URL(s).hostname:"url"in s?new URL(s.url).hostname:s.hostname}catch{return null}})(e),i={hostname:r,isHostDenied:!1};if(!(!((n=t.payloadHostDenyList)===null||n===void 0)&&n.length)||!r?.trim().length)return i;for(const s of t.payloadHostDenyList)if(r.endsWith(s))return{hostname:r,isHostDenied:!0};return i}function si(e){var t;const n=G==null||(t=G.location)===null||t===void 0?void 0:t.href;return V(n)?void 0:(function(r,i){var s;const c=r==null||(s=r.config)===null||s===void 0?void 0:s.get_current_url;if(!Ne(c))return i;try{const l=c(i);return gt(l)&&l?l:i}catch(l){return ct.error("Error in get_current_url, falling back to window.location.href",l),i}})(e,n)}const ro=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),io=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,cl=[16,15,14,13],ul=new RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),so=new RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),oo=/[0-9A-Za-z_]/;function dl(e){let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=e.charCodeAt(r)-48;n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10==0}const oi=1e6;function ao(e){var t;return Math.min(oi,(t=e.payloadSizeLimitBytes)!==null&&t!==void 0?t:oi)}const jt={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:e=>e,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:oi,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","google-analytics.com","analytics.google.com","nr-data.net","datadoghq.com","datadoghq.eu","ddog-gov.com","segment.io","rudderstack.com","amplitude.com","mixpanel.com","hotjar.com","hotjar.io","fullstory.com"],streamNetworkBody:!1},hl=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],pl=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],fl=["auth","token","secret","session","api-key","apikey","api_key","credential","password","passwd","cookie","csrf","xsrf"],lo=e=>{Xe(e)||ri(Object.keys(e),t=>{(n=>{const r=n.toLowerCase();return hl.includes(r)||fl.some(i=>r.includes(i))})(t)&&(e[t]="redacted")})},ml=["/s/","/e/","/i/"];function co(e,t,n,r){if(Xe(e))return e;let i=t?.["content-length"]||(function(s){return new Blob([s]).size})(e);return gt(i)&&(i=parseInt(i)),i>n?`[SessionRecording] ${r} body too large to record (${i} bytes)`:e}function uo(e,t){if(Xe(e))return e;let n=e;return(function(r,i=!0){return!(Xe(r)||gt(r)&&(r=r.trim(),(i?ro.test((r||"").replace(/[- ]/g,"")):(function(s){let c;for(io.lastIndex=0;c=io.exec(s);){const l=c[2];if(!l)continue;const o=l.replace(/[- ]/g,"");for(let a=0;o.length>a;a++)for(const u of cl){const h=a+u;if(o.length>=h){const d=o.slice(a,h);if(ro.test(d)&&dl(d))return!0}}}return!1})(r))||(i?ul.test(r):(function(s){let c;for(so.lastIndex=0;c=so.exec(s);){const l=c[1],o=c[3];if(!(l&&o&&oo.test(l)&&oo.test(o)))return!0}return!1})(r))))})(n,!1)||(n="[SessionRecording] "+t+" body redacted"),ri(pl,r=>{n!=null&&n.length&&n?.indexOf(r)!==-1&&(n="[SessionRecording] "+t+" body redacted as might contain: "+r)}),n}const ho=new WeakSet,yt=Ht("[Recorder]"),po=e=>e.entryType==="navigation",ai=e=>e.entryType==="resource",gl=()=>{};function fo(e,t){var n;return po(t)&&((n=e.document)===null||n===void 0?void 0:n.readyState)==="complete"&&t.loadEventEnd>0}function vl(e,t){return t.recordInitialRequests?e.performance.getEntries().filter(n=>fo(e,n)||ai(n)&&t.initiatorTypes.includes(n.initiatorType)):t.performanceEntryTypeToObserve.includes("navigation")?(function(n){var r;return((r=n.document)===null||r===void 0?void 0:r.readyState)!=="complete"?[]:n.performance.getEntriesByType("navigation").filter(i=>fo(n,i))})(e):[]}function fr(e,t){return!!t&&(Ke(t)||t[e])}function mo(e){if(typeof Request>"u")return!1;if(e instanceof Request)return!0;try{return{}.toString.call(e)==="[object Request]"}catch{return!1}}const yl=["image/","video/","audio/","font/","application/octet-stream","application/pdf","application/zip","application/wasm"];function mr({type:e,recordBody:t,headers:n,url:r}){function i(c){const l=Object.keys(n).find(a=>a.toLowerCase()==="content-type"),o=l&&n[l];return c.some(a=>o?.toLowerCase().includes(a))}if(!t||(function c(l){try{return typeof l=="string"?l.startsWith("blob:"):l instanceof URL?l.protocol==="blob:":!!mo(l)&&c(l.url)}catch{return!1}})(r)||i(yl))return!1;if(Ke(t))return!0;if(xe(t))return i(t);const s=t[e];return Ke(s)?s:i(s)}function li(e,t,n,r,i){return ci.apply(this,arguments)}function ci(){return ci=Ge(function*(e,t,n,r,i,s=0){return s>10?(yt.warn("Failed to get performance entry for request",{url:n,initiatorType:t}),null):(function(c,l){for(let o=c.length-1;o>=0;o-=1)if(l(c[o]))return c[o]})(e.performance.getEntriesByName(n),c=>ai(c)&&c.initiatorType===t&&(V(r)||c.startTime>=r)&&(V(i)||i>=c.startTime))||(yield new Promise(c=>setTimeout(c,50*s)),li(e,t,n,r,i,s+1))}),ci.apply(this,arguments)}function go({body:e,options:t,url:n}){if(Xe(e))return null;const{hostname:r,isHostDenied:i}=ii(n,t);if(i)return r+" is in deny list";if(gt(e))return e;if((s=>"u">typeof Document&&s instanceof Document)(e))return e.textContent;if(Gs(e))return(function(s,c="&"){let l,o;const a=[];return ri(s,function(u,h){V(u)||V(h)||h==="undefined"||(l=encodeURIComponent((d=>d instanceof File)(u)?u.name:u.toString()),o=encodeURIComponent(h),a[a.length]=o+"="+l)}),a.join(c)})(e);if(Ae(e))try{return JSON.stringify(e)}catch{return"[SessionReplay] Failed to stringify response object"}return"[SessionReplay] Cannot read body of type "+toString.call(e)}const bl=e=>!De(e)&&(e.entryType==="navigation"||e.entryType==="resource");function gr(e,{entry:t,method:n,status:r,networkRequest:i,isInitial:s,start:c,end:l,url:o,initiatorType:a}){c=t?t.startTime:c,l=t?t.responseEnd:l;const u=Math.floor(Date.now()-e.performance.now()),h=Math.floor(u+(c||0)),d=[$($({},t?t.toJSON():{name:o}),{},{startTime:V(c)?void 0:Math.round(c),endTime:V(l)?void 0:Math.round(l),timeOrigin:u,timestamp:h,method:n,initiatorType:a||(t?t.initiatorType:void 0),status:r,requestHeaders:i.requestHeaders,requestBody:i.requestBody,responseHeaders:i.responseHeaders,responseBody:i.responseBody,isInitial:s})];if(bl(t))for(const p of t.serverTiming||[])d.push({timeOrigin:u,timestamp:h,startTime:Math.round(t.startTime),name:p.name,duration:p.duration,entryType:"serverTiming"});return d}const Sl=["video/","audio/"];function vo(e){return Ae(e)&&Ne(e.getReader)&&Ne(e.tee)}const yo="[SessionReplay] Timeout while trying to read body",In="[SessionReplay] Failed to read body";function ui(e){return`${In}: ${e}`}function bo(e){return`[SessionReplay] Body too large to record (> ${e} bytes)`}function So(e,t){if(!t.streamNetworkBody)return(function(r){return new Promise(i=>{const s=setTimeout(()=>i(yo),500);try{r.clone().text().then(c=>i(c),c=>i(ui(c))).finally(()=>clearTimeout(s))}catch{clearTimeout(s),i(In)}})})(e);const n=ao(t);return(function(r,i){try{var s,c;const l=(s=r.headers)===null||s===void 0||(c=s.get)===null||c===void 0?void 0:c.call(s,"content-length");if(!l)return!1;const o=parseInt(l,10);return Number.isFinite(o)&&o>i}catch{return!1}})(e,n)?Promise.resolve(bo(n)):(function(r,i){return new Promise(s=>{let c,l=!1;function o(){try{c?.cancel().catch(()=>{})}catch{}}function a(m){l||(l=!0,clearTimeout(u),o(),s(m))}const u=setTimeout(()=>a(yo),500);let h;try{h=r.clone()}catch{a(In);return}const d=h.body;if(!vo(d)||typeof TextDecoder>"u"){try{h.text().then(m=>a(m),m=>a(ui(m)))}catch{a(In)}return}try{c=d.getReader()}catch{a(In);return}const p=[];let f=0;(function m(){c.read().then(({done:v,value:g})=>{if(l)o();else if(v)a(new TextDecoder().decode((function(y,b){const k=new Uint8Array(b);let w=0;for(const _ of y)k.set(_,w),w+=_.byteLength;return k})(p,f)));else{if(g){if(f+g.byteLength>i)return void a(bo(i));f+=g.byteLength,p.push(g)}m()}},v=>a(ui(v)))})()})})(e,n)}function wo(){return(wo=Ge(function*({r:e,options:t,url:n}){const{hostname:r,isHostDenied:i}=ii(n,t);return i?Promise.resolve(r+" is in deny list"):So(e,t)})).apply(this,arguments)}function ko(){return(ko=Ge(function*({r:e,options:t,url:n}){const r=(function({r:i,options:s,url:c}){var l;if(i.headers.get("Transfer-Encoding")==="chunked")return"Chunked Transfer-Encoding is not supported";const o=(l=i.headers.get("Content-Type"))===null||l===void 0?void 0:l.toLowerCase(),a=Sl.some(d=>o?.startsWith(d));if(o&&a)return`Content-Type ${o} is not supported`;const{hostname:u,isHostDenied:h}=ii(c,s);return h?u+" is in deny list":null})({r:e,options:t,url:n});return De(r)?So(e,t):Promise.resolve(r)})).apply(this,arguments)}let vr=null;function wl(e,t,n){if(!("performance"in t))return()=>{};if(vr)return yt.warn("Network observer already initialised, doing nothing"),()=>{};const r=n?Object.assign({},jt,n):jt;let i=!0,s=!1;const c=h=>{if(!i)return;const d=[];let p=!1;h.requests.forEach(f=>{const m=f.entryType==="serverTiming";if(m&&p)return;let v;try{v=r.maskRequestFn(f)}catch{s||(s=!0,yt.warn("Network capture masking callback failed; dropping the record. Further masking failures will not be logged for this observer.")),m||(p=!0);return}m||(p=!v||(g=>!!g&&ho.has(g))(v)),v&&d.push(v)}),d.length>0&&e($($({},h),{},{requests:d}))},l=(function(h,d,p){try{h({requests:vl(d,p).flatMap(y=>gr(d,{entry:y,method:void 0,status:void 0,networkRequest:{},isInitial:!0})),isInitial:!0})}catch(y){yt.error("Failed to capture initial performance entries for network capture",y)}const f=d.PerformanceObserver,m=f?.supportedEntryTypes;if(!f||!xe(m))return;const v=m.filter(y=>p.performanceEntryTypeToObserve.includes(y));if(!v.length)return;const g=new f(y=>{h({requests:y.getEntries().filter(b=>po(b)||ai(b)&&p.initiatorTypes.includes(b.initiatorType)&&(k=>!p.recordBody&&!p.recordHeaders||k.initiatorType!=="xmlhttprequest"&&k.initiatorType!=="fetch")(b)).flatMap(b=>gr(d,{entry:b,method:void 0,status:void 0,networkRequest:{}}))})});return g.observe({entryTypes:v}),()=>{g.disconnect()}})(c,t,r),o=r.recordHeaders||r.recordBody;if(!l&&!o)return i=!1,gl;let a=()=>{},u=()=>{};return o&&(a=(function(h,d,p){if(!p.initiatorTypes.includes("xmlhttprequest"))return()=>{};const f=fr("request",p.recordHeaders),m=fr("response",p.recordHeaders),v=no(d.XMLHttpRequest.prototype,"open",g=>function(y,b,k=!0,w,_){const S=this;try{const M=new Request(b),I={};let R,N;const x={},z=S.setRequestHeader.bind(S);S.setRequestHeader=(ne,H)=>(x[ne]=H,z(ne,H)),f&&(I.requestHeaders=x);const Q=S.send.bind(S);S.send=ne=>(mr({type:"request",headers:x,url:b,recordBody:p.recordBody})&&(I.requestBody=go({body:ne,options:p,url:b})),R=d.performance.now(),Q(ne));const te=()=>{S.removeEventListener("readystatechange",ue),S.removeEventListener("error",te),S.removeEventListener("abort",te),S.removeEventListener("timeout",te)},ue=()=>{if(S.readyState!==S.DONE)return;te(),N=d.performance.now();const ne={};S.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(H=>{const le=H.split(": "),we=le.shift(),E=le.join(": ");we&&(ne[we]=E)}),m&&(I.responseHeaders=ne),mr({type:"response",headers:ne,url:b,recordBody:p.recordBody})&&(I.responseBody=go({body:S.response,options:p,url:b})),li(d,"xmlhttprequest",M.url,R,N).then(H=>{h({requests:gr(d,{entry:H,method:y,status:S?.status,networkRequest:I,start:R,end:N,url:b.toString(),initiatorType:"xmlhttprequest"})})}).catch(()=>{})};S.addEventListener("readystatechange",ue),S.addEventListener("error",te),S.addEventListener("abort",te),S.addEventListener("timeout",te)}catch(M){yt.error("Failed to instrument XHR for network capture",M)}g.call(S,y,b.toString(),k,w,_)});return()=>{v()}})(c,t,r),u=(function(h,d,p){if(!p.initiatorTypes.includes("fetch"))return()=>{};const f=fr("request",p.recordHeaders),m=fr("response",p.recordHeaders),v=no(d,"fetch",g=>(function(){var y=Ge(function*(b,k){let w,_;try{w=new Request(b,k)}catch(R){return yt.error("Failed to instrument fetch for network capture",R),g(b,k)}const S={};let M,I;try{try{const R={};w.headers.forEach((N,x)=>{R[x]=N}),f&&(S.requestHeaders=R),!vo(k?.body)&&mr({type:"request",headers:R,url:b,recordBody:p.recordBody})&&(S.requestBody=yield(function(N){return wo.apply(this,arguments)})({r:w,options:p,url:b}))}catch(R){yt.error("Failed to record fetch request for network capture",R)}M=d.performance.now(),_=mo(b)?yield g(w):yield g(b,k),I=d.performance.now();try{const R={};_.headers.forEach((N,x)=>{R[x]=N}),m&&(S.responseHeaders=R),mr({type:"response",headers:R,url:b,recordBody:p.recordBody})&&(S.responseBody=yield(function(N){return ko.apply(this,arguments)})({r:_,options:p,url:b}))}catch(R){yt.error("Failed to record fetch response for network capture",R)}return _}finally{li(d,"fetch",w.url,M,I).then(R=>{h({requests:gr(d,{entry:R,method:w.method,status:_?.status,networkRequest:S,start:M,end:I,url:w.url,initiatorType:"fetch"})})}).catch(()=>{})}});return function(b,k){return y.apply(this,arguments)}})());return()=>{v()}})(c,t,r)),vr=()=>{i=!1,l?.(),a(),u(),vr=null},vr}const _o="$replay_override_sampling",Io="$replay_override_linked_flag",Co="$replay_override_url_trigger",Mo="$replay_override_event_trigger",di="$session_is_sampled",Ro="$session_recording_url_trigger_activated_session",Eo="$session_recording_event_trigger_activated_session",To="$posthog_sr_group_event_trigger_",xo="$posthog_sr_group_url_trigger_",Ao="$sess_rec_flush_size",Oo="$stored_person_properties",kl="$sdk_debug_replay_event_trigger_status",_l="$sdk_debug_replay_linked_flag_trigger_status",Il="$sdk_debug_replay_matched_recording_trigger_groups",hi="$sdk_debug_replay_pending_trigger_conditions",Lo="$sdk_debug_replay_remote_trigger_matching_config",Cl="$sdk_debug_replay_trigger_groups_count",Ml="$sdk_debug_replay_url_trigger_status",Rl="$sdk_debug_rrweb_attached",El="$sdk_debug_rrweb_start_attempted",Tl="$session_recording_start_reason",bt="disabled",pi="sampled",fi="active",Wt="buffering",mi="paused",gi="rrweb_error",qt="trigger_activated",Ct="trigger_pending",Ut="trigger_disabled";function No(e,t,n,r,i,s){return t===0?Ut:e?.get_property(n?r+n:i)===s?qt:Ct}function yr(e,t,n){return t.some(r=>{var i;return r.matching==="regex"&&((i=n?.get(r.url))!==null&&i!==void 0?i:new RegExp(r.url)).test(e)})}function Do(e){return e.includes("trigger_activated")?qt:e.includes("trigger_pending")?Ct:Ut}function Fo(e){const t=new Set(e);switch(t.delete(Ut),t.size){case 0:return Ut;case 1:return Array.from(t)[0];default:return Ct}}var vi=class{constructor(e){this.q=e}triggerStatus(e){return Do(this.q.map(t=>t.triggerStatus(e)))}triggerStatusNoSideEffects(e){return Do(this.q.map(t=>t.triggerStatusNoSideEffects(e)))}stop(){this.q.forEach(e=>e.stop())}},yi=class{constructor(e){this.q=e}triggerStatus(e){return Fo(this.q.map(t=>t.triggerStatus(e)))}triggerStatusNoSideEffects(e){return Fo(this.q.map(t=>t.triggerStatusNoSideEffects(e)))}stop(){this.q.forEach(e=>e.stop())}},xl=class{triggerStatus(){return this.triggerStatusNoSideEffects()}triggerStatusNoSideEffects(){return qt}stop(){}};const br=e=>"sessionRecording"in e;var Po=class{constructor(e,t){this._instance=e,this.j=[],this.B=[],this.H=new Map,this.U=new Map,this.W="",this.urlBlocked=!1,this.V=t}onConfig(e){var t,n;this.j=(br(e)?Ae(e.sessionRecording)?(t=e.sessionRecording)===null||t===void 0?void 0:t.urlTriggers:[]:e?.urlTriggers)||[],this.B=(br(e)?Ae(e.sessionRecording)?(n=e.sessionRecording)===null||n===void 0?void 0:n.urlBlocklist:[]:e?.urlBlocklist)||[],this.Z()}Z(){this.H.clear(),this.U.clear();for(const e of this.j)if(e.matching==="regex"&&!this.H.has(e.url))try{this.H.set(e.url,new RegExp(e.url))}catch(t){ct.error("Invalid URL trigger regex pattern:",e.url,t)}for(const e of this.B)if(e.matching==="regex"&&!this.U.has(e.url))try{this.U.set(e.url,new RegExp(e.url))}catch(t){ct.error("Invalid URL blocklist regex pattern:",e.url,t)}}onRemoteConfig(e){this.onConfig(e)}G(e){return No(this._instance,this.j.length,this.V,xo,Ro,e)}triggerStatus(e){const t=this.triggerStatusNoSideEffects(e);return this._instance.register_for_session({[Ml]:t}),t}triggerStatusNoSideEffects(e){return this.G(e)}isCurrentUrlBlocked(){const e=si(this._instance);if(!e)return!1;try{return yr(e,this.B,this.U)}catch{return!0}}checkUrlBlocklist(e,t){const n=si(this._instance);if(!n||n===this.W)return;this.W=n;const r=this.urlBlocked,i=yr(n,this.B,this.U);r&&i||(i&&!r?e():!i&&r&&t())}checkUrlTriggerConditions(e,t,n,r){const i=si(this._instance);if(!i||i===this.W)return;this.W=i;const s=this.urlBlocked,c=yr(i,this.B,this.U);c&&!s?e():!c&&s&&t();const l=this.G(r)===qt,o=yr(i,this.j,this.H);!l&&o&&n("url",i)}stop(){this.W=""}},$o=class{constructor(e){this._instance=e,this.linkedFlag=null,this.linkedFlagSeen=!1,this.J=()=>{}}triggerStatus(){const e=this.triggerStatusNoSideEffects();return this._instance.register_for_session({[_l]:e}),e}triggerStatusNoSideEffects(){let e=Ct;return Xe(this.linkedFlag)&&(e=Ut),this.linkedFlagSeen&&(e=qt),e}onConfig(e,t){var n;if(this.linkedFlag=(br(e)?Ae(e.sessionRecording)?(n=e.sessionRecording)===null||n===void 0?void 0:n.linkedFlag:null:e?.linkedFlag)||null,!Xe(this.linkedFlag)&&!this.linkedFlagSeen){const r=gt(this.linkedFlag)?this.linkedFlag:this.linkedFlag.flag,i=gt(this.linkedFlag)?null:this.linkedFlag.variant;this.J=this._instance.onFeatureFlags((s,c)=>{let l=!1;if(Ae(c)&&r in c){const a=c[r];l=Ke(a)?a===!0:i?a===i:!!a}const o=l&&!this.linkedFlagSeen;this.linkedFlagSeen=l,o&&t(r,i)})}}onRemoteConfig(e,t){this.onConfig(e,t)}stop(){this.J()}},Bo=class{constructor(e,t){this._instance=e,this.K=[],this.V=t}onConfig(e){var t;this.K=(br(e)?Ae(e.sessionRecording)?(t=e.sessionRecording)===null||t===void 0?void 0:t.eventTriggers:[]:e?.eventTriggers)||[]}onRemoteConfig(e){this.onConfig(e)}X(e){return No(this._instance,this.K.length,this.V,To,Eo,e)}triggerStatus(e){const t=this.triggerStatusNoSideEffects(e);return this._instance.register_for_session({[kl]:t}),t}triggerStatusNoSideEffects(e){return this.X(e)}checkEventTriggerConditions(e,t,n){if(this.K.length===0)return;const r=this.X(n)===qt,i=this.K.includes(e);!r&&i&&t("event",e)}stop(){}},Al=class{constructor(e,t,n){if(this._instance=e,this.group=t,this.Y=new Po(e,t.id),this.tt=new Bo(e,t.id),this.et=new $o(e),t.conditions.events&&t.conditions.events.length>0||t.conditions.urls&&t.conditions.urls.length>0||t.conditions.flag){const r=(t.conditions.events||[]).map(c=>c.name),i={urlTriggers:t.conditions.urls||[],eventTriggers:r,linkedFlag:t.conditions.flag||null,urlBlocklist:[]};this.Y.onConfig(i),this.tt.onConfig(i),this.et.onConfig(i,n);const s=[this.tt,this.Y,this.et];this.nt=t.conditions.matchType==="any"?new vi(s):new yi(s)}else this.nt=new xl}triggerStatus(e){return this.nt.triggerStatus(e)}triggerStatusNoSideEffects(e){return this.nt.triggerStatusNoSideEffects(e)}getPendingTriggerConditions(e){return this.triggerStatusNoSideEffects(e)!=="trigger_pending"?[]:[{label:"URL condition not matched",status:this.Y.triggerStatusNoSideEffects(e)},{label:"event condition not matched",status:this.tt.triggerStatusNoSideEffects(e)},{label:"linked flag condition not matched",status:this.et.triggerStatusNoSideEffects()}].filter(({status:t})=>t===Ct).map(({label:t})=>t)}checkEventTriggerConditions(e,t,n){this.tt.checkEventTriggerConditions(e,t,n)}checkUrlTriggerConditions(e,t,n,r){this.Y.checkUrlTriggerConditions(e,t,n,r)}activateTrigger(e,t){var n;const r=e==="url"?xo+this.group.id:To+this.group.id;(n=this._instance.persistence)===null||n===void 0||n.register({[r]:t})}stop(){this.Y.stop(),this.tt.stop(),this.et.stop()}};function Ol(e){if(e.rrwebError)return gi;if(!e.receivedFlags)return Wt;if(!e.isRecordingEnabled)return bt;if(e.urlTriggerMatching.urlBlocked)return mi;const t=e.isSampled===!0,n=new vi([e.eventTriggerMatching,e.urlTriggerMatching,e.linkedFlagMatching]).triggerStatus(e.sessionId);return t?pi:n==="trigger_activated"?fi:n==="trigger_pending"?Wt:e.isSampled===!1?bt:fi}function zo(e){if(e.rrwebError)return gi;if(!e.receivedFlags)return Wt;if(!e.isRecordingEnabled)return bt;if(e.urlTriggerMatching.urlBlocked)return mi;const t=new yi([e.eventTriggerMatching,e.urlTriggerMatching,e.linkedFlagMatching]).triggerStatus(e.sessionId),n=t!==Ut,r=Ke(e.isSampled);return n&&t==="trigger_pending"?Wt:n&&t==="trigger_disabled"||r&&!e.isSampled?bt:e.isSampled===!0?pi:fi}function Ho(){const e=[];return function(t,n){if(Ae(n)||xe(n)){for(;e.length>0&&e[e.length-1]!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}return n}}function Vt(e){try{const t=JSON.stringify(e,Ho());return t?new Blob([t]).size:0}catch{return-1}}function Sr(e){if(De(e))return 4;if(V(e))return 0;switch(typeof e){case"string":return e.length+2;case"number":return String(e).length;case"boolean":return e?4:5;case"object":{if(xe(e)){let i=2;for(let s=0;e.length>s;s++){s>0&&(i+=1);const c=e[s];i+=V(c)||De(c)?4:Sr(c)}return i}const t=e;let n=2,r=!0;for(const i in t){if(!{}.hasOwnProperty.call(t,i))continue;const s=t[i];V(s)||(r||(n+=1),r=!1,n+=i.length+3+Sr(s))}return n}default:return 0}}function bi(e,t=66060288e-1){if(e.size>=t&&e.data.length>1){const n=Math.floor(e.data.length/2),r=e.sizes.slice(0,n),i=e.sizes.slice(n);return[bi({size:r.reduce((s,c)=>s+c,0),data:e.data.slice(0,n),sizes:r,sessionId:e.sessionId,windowId:e.windowId}),bi({size:i.reduce((s,c)=>s+c,0),data:e.data.slice(n),sizes:i,sessionId:e.sessionId,windowId:e.windowId})].flatMap(s=>s)}return[e]}var We=Uint8Array,Fe=Uint16Array,Gt=Uint32Array,Si=new We([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wi=new We([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),jo=new We([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Wo=function(e,t){for(var n=new Fe(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var i=new Gt(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)i[s]=s-n[r]<<5|r;return[n,i]},qo=Wo(Si,2),ki=qo[1];qo[0][28]=258,ki[258]=28;for(var Uo=Wo(wi,0)[1],_i=new Fe(32768),ae=0;32768>ae;++ae){var Yt=(43690&ae)>>>1|(21845&ae)<<1;_i[ae]=((65280&(Yt=(61680&(Yt=(52428&Yt)>>>2|(13107&Yt)<<2))>>>4|(3855&Yt)<<4))>>>8|(255&Yt)<<8)>>>1}var Cn=function(e,t,n){for(var r=e.length,i=0,s=new Fe(t);r>i;++i)++s[e[i]-1];var c,l=new Fe(t);for(i=0;t>i;++i)l[i]=l[i-1]+s[i-1]<<1;if(n){c=new Fe(1<<t);var o=15-t;for(i=0;r>i;++i)if(e[i])for(var a=i<<4|e[i],u=t-e[i],h=l[e[i]-1]++<<u,d=h|(1<<u)-1;d>=h;++h)c[_i[h]>>>o]=a}else for(c=new Fe(r),i=0;r>i;++i)c[i]=_i[l[e[i]-1]++]>>>15-e[i];return c},Mt=new We(288);for(ae=0;144>ae;++ae)Mt[ae]=8;for(ae=144;256>ae;++ae)Mt[ae]=9;for(ae=256;280>ae;++ae)Mt[ae]=7;for(ae=280;288>ae;++ae)Mt[ae]=8;var wr=new We(32);for(ae=0;32>ae;++ae)wr[ae]=5;var Ll=Cn(Mt,9,0),Nl=Cn(wr,5,0),Vo=function(e){return(e/8|0)+(7&e&&1)},Go=function(e,t,n){(t==null||0>t)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Fe?Fe:e instanceof Gt?Gt:We)(n-t);return r.set(e.subarray(t,n)),r},ut=function(e,t,n){var r=t/8|0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},Mn=function(e,t,n){var r=t/8|0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Ii=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return[new We(0),0];if(i==1){var c=new We(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort(function(w,_){return w.f-_.f}),n.push({s:-1,f:25001});var l=n[0],o=n[1],a=0,u=1,h=2;for(n[0]={s:-1,f:l.f+o.f,l,r:o};u!=i-1;)l=n[n[h].f>n[a].f?a++:h++],o=n[a!=u&&n[h].f>n[a].f?a++:h++],n[u++]={s:-1,f:l.f+o.f,l,r:o};var d=s[0].s;for(r=1;i>r;++r)s[r].s>d&&(d=s[r].s);var p=new Fe(d+1),f=Ci(n[u-1],p,0);if(f>t){r=0;var m=0,v=f-t,g=1<<v;for(s.sort(function(w,_){return p[_.s]-p[w.s]||w.f-_.f});i>r;++r){var y=s[r].s;if(t>=p[y])break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=s[r].s;t>p[b]?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var k=s[r].s;p[k]==t&&(--p[k],++m)}f=t}return[new We(p),f]},Ci=function(e,t,n){return e.s==-1?Math.max(Ci(e.l,t,n+1),Ci(e.r,t,n+1)):t[e.s]=n},Yo=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Fe(++t),r=0,i=e[0],s=1,c=function(o){n[r++]=o},l=1;t>=l;++l)if(e[l]==i&&l!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(i),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(i);s=1,i=e[l]}return[n.subarray(0,r),t]},Rn=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},kr=function(e,t,n){var r=n.length,i=Vo(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;r>s;++s)e[i+s+4]=n[s];return 8*(i+4+r)},Zo=function(e,t,n,r,i,s,c,l,o,a,u){ut(t,u++,n),++i[256];for(var h=Ii(i,15),d=h[0],p=h[1],f=Ii(s,15),m=f[0],v=f[1],g=Yo(d),y=g[0],b=g[1],k=Yo(m),w=k[0],_=k[1],S=new Fe(19),M=0;y.length>M;++M)S[31&y[M]]++;for(M=0;w.length>M;++M)S[31&w[M]]++;for(var I=Ii(S,7),R=I[0],N=I[1],x=19;x>4&&!R[jo[x-1]];--x);var z,Q,te,ue,ne=a+5<<3,H=Rn(i,Mt)+Rn(s,wr)+c,le=Rn(i,d)+Rn(s,m)+c+14+3*x+Rn(S,R)+(2*S[16]+3*S[17]+7*S[18]);if(H>=ne&&le>=ne)return kr(t,u,e.subarray(o,o+a));if(ut(t,u,1+(H>le)),u+=2,H>le){z=Cn(d,p,0),Q=d,te=Cn(m,v,0),ue=m;var we=Cn(R,N,0);for(ut(t,u,b-257),ut(t,u+5,_-1),ut(t,u+10,x-4),u+=14,M=0;x>M;++M)ut(t,u+3*M,R[jo[M]]);u+=3*x;for(var E=[y,w],D=0;2>D;++D){var ee=E[D];for(M=0;ee.length>M;++M)ut(t,u,we[X=31&ee[M]]),u+=R[X],X>15&&(ut(t,u,ee[M]>>>5&127),u+=ee[M]>>>12)}}else z=Ll,Q=Mt,te=Nl,ue=wr;for(M=0;l>M;++M)if(r[M]>255){var X;Mn(t,u,z[257+(X=r[M]>>>18&31)]),u+=Q[X+257],X>7&&(ut(t,u,r[M]>>>23&31),u+=Si[X]);var ie=31&r[M];Mn(t,u,te[ie]),u+=ue[ie],ie>3&&(Mn(t,u,r[M]>>>5&8191),u+=wi[ie])}else Mn(t,u,z[r[M]]),u+=Q[r[M]];return Mn(t,u,z[256]),u+Q[256]},Dl=new Gt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Fl=new We(0),Pl=(function(){for(var e=new Gt(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),Mi=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function $l(e,t){t===void 0&&(t={});var n=(function(){var d=4294967295;return{p(p){for(var f=d,m=0;p.length>m;++m)f=Pl[255&f^p[m]]^f>>>8;d=f},d(){return 4294967295^d}}})(),r=e.length;n.p(e);var i,s,c,l,o,a,u=(l=10+((i=t).filename&&i.filename.length+1||0),o=8,(function(d,p,f,m,v,g){var y=d.length,b=new We(m+y+5*(1+Math.floor(y/7e3))+v),k=b.subarray(m,b.length-v),w=0;if(!p||8>y)for(var _=0;y>=_;_+=65535){var S=_+65535;y>S?w=kr(k,w,d.subarray(_,S)):(k[_]=g,w=kr(k,w,d.subarray(_,y)))}else{for(var M=Dl[p-1],I=M>>>13,R=8191&M,N=(1<<f)-1,x=new Fe(32768),z=new Fe(N+1),Q=Math.ceil(f/3),te=2*Q,ue=function(A){return(d[A]^d[A+1]<<Q^d[A+2]<<te)&N},ne=new Gt(25e3),H=new Fe(288),le=new Fe(32),we=0,E=0,D=(_=0,0),ee=0,X=0;y>_;++_){var ie=ue(_),pe=32767&_,ye=z[ie];if(x[pe]=ye,z[ie]=pe,_>=ee){var Ie=y-_;if((we>7e3||D>24576)&&Ie>423){w=Zo(d,k,0,ne,H,le,E,D,X,_-X,w),D=we=E=0,X=_;for(var de=0;286>de;++de)H[de]=0;for(de=0;30>de;++de)le[de]=0}var Pe=2,Ce=0,Oe=R,be=pe-ye&32767;if(Ie>2&&ie==ue(_-be))for(var ot=Math.min(I,Ie)-1,Kt=Math.min(32767,_),St=Math.min(258,Ie);Kt>=be&&--Oe&&pe!=ye;){if(d[_+Pe]==d[_+Pe-be]){for(var qe=0;St>qe&&d[_+qe]==d[_+qe-be];++qe);if(qe>Pe){if(Pe=qe,Ce=be,qe>ot)break;var Qt=Math.min(be,qe-2),Ue=0;for(de=0;Qt>de;++de){var se=_-be+de+32768&32767,O=se-x[se]+32768&32767;O>Ue&&(Ue=O,ye=se)}}}be+=(pe=ye)-(ye=x[pe])+32768&32767}if(Ce){ne[D++]=268435456|ki[Pe]<<18|Uo[Ce];var ze=31&ki[Pe],ge=31&Uo[Ce];E+=Si[ze]+wi[ge],++H[257+ze],++le[ge],ee=_+Pe,++we}else ne[D++]=d[_],++H[d[_]]}}w=Zo(d,k,g,ne,H,le,E,D,X,_-X,w),g||(w=kr(k,w,Fl))}return Go(b,0,m+Vo(w)+v)})(s=e,(c=t).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+c.mem,l,o,!a)),h=u.length;return(function(d,p){var f=p.filename;if(d[0]=31,d[1]=139,d[2]=8,d[8]=2>p.level?4:p.level==9?2:0,d[9]=3,p.mtime!=0&&Mi(d,4,Math.floor(new Date(p.mtime||Date.now())/1e3)),f){d[3]=8;for(var m=0;f.length>=m;++m)d[m+10]=f.charCodeAt(m)}})(u,t),Mi(u,h-8,n.d()),Mi(u,h-4,r),u}function Xo(e,t){var n="";if(!t&&typeof TextDecoder<"u")return new TextDecoder().decode(e);for(var r=0;e.length>r;){var i=e[r++];128>i||t?n+=String.fromCharCode(i):224>i?n+=String.fromCharCode((31&i)<<6|63&e[r++]):240>i?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}return n}var Bl=class{constructor(e,t={}){var n,r,i,s;this._rrweb=e,this.it=t,this.rt={},this.ot=Date.now(),this.st=-1/0,this.ut=()=>{const l=Date.now(),o=l-this.ot;o>0?(this.ct=Math.min(this.dt,this.ct+o/1e3*this.ht),this.ot=l):this.ot=l},this.ft=l=>{if(!this.rt[l]){var o,a;this.rt[l]=!0;const u=this.vt(l);(o=(a=this.it).onBlockedNode)===null||o===void 0||o.call(a,l,u)}},this.yt=l=>{const o=this.vt(l);if(o?.nodeName!=="svg"&&o instanceof Element){const a=o.closest("svg");if(a)return[this._rrweb.mirror.getId(a),a]}return[l,o]},this.vt=l=>this._rrweb.mirror.getNode(l),this.bt=l=>{var o,a,u,h,d,p,f,m;return((o=(a=l.removes)===null||a===void 0?void 0:a.length)!==null&&o!==void 0?o:0)+((u=(h=l.attributes)===null||h===void 0?void 0:h.length)!==null&&u!==void 0?u:0)+((d=(p=l.texts)===null||p===void 0?void 0:p.length)!==null&&d!==void 0?d:0)+((f=(m=l.adds)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)},this.throttleMutations=l=>{if(l.type!==3||l.data.source!==0)return l;const o=l.data,a=this.bt(o);if(o.attributes){const v=o.attributes.length;o.attributes=o.attributes.filter(y=>{const[b]=this.yt(y.id);return!this.wt.consumeRateLimit(b)&&y});const g=v-o.attributes.length;var u,h;g>0&&((u=(h=this.it).onDroppedAttributeMutations)===null||u===void 0||u.call(h,g))}const d=this.bt(o);if(d===0&&a!==d)return;if(this.kt)return l;this.ut();const p=Sr(l);var f,m;return p>this.ct?((f=(m=this.it).onDroppedOversizedMutation)===null||f===void 0||f.call(m,p),void this._t()):(this.ct-=p,l)},this._t=()=>{if(this.St)return;const l=Math.max(0,this.xt-(Date.now()-this.st));this.St=setTimeout(()=>{var o,a;this.St=void 0,this.st=Date.now(),(o=(a=this.it).requestFullSnapshot)===null||o===void 0||o.call(a)},l)},this.wt=new ol({bucketSize:(n=this.it.bucketSize)!==null&&n!==void 0?n:100,refillRate:(r=this.it.refillRate)!==null&&r!==void 0?r:10,refillInterval:1e3,I:this.ft,A:ct}),this.dt=(i=this.it.bytesBucketSize)!==null&&i!==void 0?i:0,this.ht=(s=this.it.bytesRefillRate)!==null&&s!==void 0?s:25600,this.kt=!Number.isFinite(this.dt)||0>=this.dt,this.ct=this.dt;const c=this.it.resyncIntervalMs;this.xt=_e(c)&&Number.isFinite(c)&&c>0?c:3e5}reset(){this.rt={},this.St&&(clearTimeout(this.St),this.St=void 0),this.st=Date.now()}stop(){this.wt.stop(),this.reset(),this.ct=this.dt,this.ot=Date.now(),this.st=-1/0}};Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return _e(e)&&isFinite(e)&&Math.floor(e)===e}),G&&!V(G.crypto)&&crypto;let Rt=null;const Je={Et(){if(!De(Rt))return Rt;if(Rt=!0,V(G))Rt=!1;else try{const e="__support__";Je.$t(e,"xyz"),Je.Ot(e)!=='"xyz"'&&(Rt=!1),Je.Lt(e)}catch{Rt=!1}return Rt},Pt(e){ct.error("sessionStorage error: ",e)},Ot(e){try{return G?.sessionStorage.getItem(e)}catch(t){Je.Pt(t)}return null},Dt(e){try{return JSON.parse(Je.Ot(e))||null}catch{}return null},$t(e,t){try{return G?.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(n){Je.Pt(n)}return!1},Lt(e){try{G?.sessionStorage.removeItem(e)}catch(t){Je.Pt(t)}}};kn.DEBUG=!1,kn.LIB_VERSION="1.435.3",kn.LIB_NAME="web";var Ri=kn,zl=class{constructor(e){if(!e.persistence)throw new Error("it is not valid to not have persistence and be this far into setting up the application");this.Ft=e.get_property.bind(e),this.Nt=e.persistence.set_property.bind(e.persistence)}trackSize(e,t){this.Nt(Ao,{sessionId:e,size:this.currentTrackedSize(e)+t})}currentTrackedSize(e){const t=this.Ft(Ao);return Ae(n=t)&&gt(n.sessionId)&&_e(n.size)&&t.sessionId===e?t.size:0;var n}};function Jo(e,t){return(function(n){let r=0;for(let i=0;n.length>i;i++)r=(r<<5)-r+n.charCodeAt(i),r|=0;return Math.abs(r)})(e)%100<vt(100*t,0,100,ct)}const Ko=(e,t)=>{if(!(n=>{try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}},_r=e=>e.toLowerCase(),Hl={exact:(e,t)=>t.some(n=>e.some(r=>n===r)),is_not:(e,t)=>t.every(n=>e.every(r=>n!==r)),regex:(e,t)=>t.some(n=>e.some(r=>Ko(n,r))),not_regex:(e,t)=>t.every(n=>e.every(r=>!Ko(n,r))),icontains:(e,t)=>t.map(_r).some(n=>e.map(_r).some(r=>n.includes(r))),not_icontains:(e,t)=>t.map(_r).every(n=>e.map(_r).every(r=>!n.includes(r))),gt:(e,t)=>t.some(n=>{const r=parseFloat(n);return!isNaN(r)&&e.some(i=>r>parseFloat(i))}),lt:(e,t)=>t.some(n=>{const r=parseFloat(n);return!isNaN(r)&&e.some(i=>r<parseFloat(i))})},jl=new Set(["is_not","not_icontains","not_regex"]);function Qo(e,t,n){return!e||e.length===0||e.every(r=>{const i=r.type==="person"?n:t,s=i?.[r.key],c=r.operator||"exact";if(V(s)||De(s))return jl.has(c);const l=Hl[c];return!!l&&!V(r.value)&&!De(r.value)&&l(xe(r.value)?r.value.map(String):[String(r.value)],xe(s)?s.map(String):[String(s)])})}const En=Ht("[SessionRecording]");function Wl(e,t){return t?e:"!"+e}function Ei(e,t){return e===t||e!=="!"+t&&null}var ql=class{constructor(e,t,n,r,i,s,c){this._instance=e,this.Y=t,this.tt=n,this.et=r,this.qt=i,this.jt=s,this.Bt=c,this.Ht=null,this.zt=zo}onRemoteConfig(e){this.Ht=_e(e.sampleRate)?e.sampleRate:null,e.triggerMatchType==="any"?(this.Ut=new vi([this.tt,this.Y]),this.zt=Ol):(this.Ut=new yi([this.tt,this.Y]),this.zt=zo),this._instance.register_for_session({[Lo]:e.triggerMatchType}),this.Y.onConfig(e),this.tt.onConfig(e),this.et.onConfig(e,(t,n)=>{this.qt("linked_flag_matched",{flag:t,variant:n}),this.Bt()})}getStatus(e){return this.zt({receivedFlags:!0,isRecordingEnabled:!0,isSampled:e.isSampled,rrwebError:e.rrwebError,urlTriggerMatching:e.urlTriggerMatching,eventTriggerMatching:e.eventTriggerMatching,linkedFlagMatching:e.linkedFlagMatching,sessionId:e.sessionId})}getMinimumDuration(e){const t=this._instance.get_property("$session_recording_remote_config"),n=t?.minimumDurationMilliseconds;return _e(n)?n:null}checkUrlTriggers(e,t,n,r){this.Y.checkUrlTriggerConditions(t,n,r,e)}setupEventTriggerListeners(e,t,n){if(this.tt.K.length!==0&&Xe(this.Wt))return this.Wt=e(r=>{try{this.tt.checkEventTriggerConditions(r.event,n,t)}catch(i){En.error("Could not activate event trigger",i)}}),this.Wt}makeSamplingDecisions(e){var t;const n=this.Ht;var r,i;if(!_e(n))return(r=this._instance.persistence)===null||r===void 0||r.unregister("$session_is_sampled"),void((i=this._instance.persistence)===null||i===void 0||i.unregister("$replay_sample_rate"));const s=this._instance.get_property(di),c=this._instance.get_property("$replay_sample_rate"),l=Ei(s,e),o=_e(c)&&c!==n,a=V(c)&&s===e,u=o||a||!Ke(l),h=u?Jo(e,n):l;u&&(h?this.qt("sampled"):En.warn(`Sample rate (${n}) has determined that this sessionId (${e}) will not be sent to the server.`)),(t=this._instance.persistence)===null||t===void 0||t.register({$session_is_sampled:Wl(e,h),$replay_sample_rate:De(c)&&s===e?null:n})}ensureSamplingDecision(e){if(!_e(this.Ht))return;const t=this._instance.get_property(di);Ke(Ei(t,e))||this.makeSamplingDecisions(e)}onFlushComplete(){}clearConditionalRecordingPersistence(){var e,t,n,r,i;(e=this._instance.persistence)===null||e===void 0||e.unregister("$session_recording_event_trigger_activated_session"),(t=this._instance.persistence)===null||t===void 0||t.unregister("$session_recording_url_trigger_activated_session"),(n=this._instance.persistence)===null||n===void 0||n.unregister("$session_is_sampled"),(r=this._instance.persistence)===null||r===void 0||r.unregister("$replay_sample_rate"),(i=this._instance.persistence)===null||i===void 0||i.unregister("$session_past_minimum_duration")}updateActiveTriggers(e){}hasPendingTriggers(e){var t;return((t=this.Ut)===null||t===void 0?void 0:t.triggerStatus(e))===Ct}getPendingTriggerConditions(e){return[{label:"URL condition not matched",status:this.Y.triggerStatusNoSideEffects(e)},{label:"event condition not matched",status:this.tt.triggerStatusNoSideEffects(e)},{label:"linked flag condition not matched",status:this.et.triggerStatusNoSideEffects()}].filter(({status:t})=>t===Ct).map(({label:t})=>t)}stop(){var e;(e=this.Wt)===null||e===void 0||e.call(this),this.Wt=void 0,this.tt.stop(),this.Y.stop(),this.et.stop()}},Ul=class{constructor(e,t,n,r,i){this._instance=e,this.Y=t,this.qt=n,this.Vt=r,this.Bt=i,this.Zt=[],this.Gt=new Map,this.Qt=!1}onRemoteConfig(e){e.triggerGroups&&e.triggerGroups.length!==0?(this.Jt(e.triggerGroups),this._instance.register_for_session({[Lo]:"v2_trigger_groups",[Cl]:e.triggerGroups.length}),this.Y.onConfig(e)):En.warn("[V2Strategy] No trigger groups configured")}getStatus(e){return(function(t){if(t.rrwebError)return gi;if(!t.receivedFlags)return Wt;if(!t.isRecordingEnabled)return bt;if(t.urlTriggerMatching.urlBlocked)return mi;const n=t.triggerGroupMatchers,r=t.triggerGroupSamplingResults;if(n.length===0)return bt;let i=!1,s=!1;for(const c of n){const l=c.triggerStatus(t.sessionId);if(l==="trigger_activated"){const o=c.group.id,a=r.get(o);V(a)?ct.warn("[V2 Triggers] Group activated but no sampling decision found",{groupId:o}):a===!0&&(s=!0)}else l==="trigger_pending"&&(i=!0)}return s?pi:i?Wt:bt})({receivedFlags:!0,isRecordingEnabled:!0,isSampled:e.isSampled,rrwebError:e.rrwebError,urlTriggerMatching:e.urlTriggerMatching,eventTriggerMatching:e.eventTriggerMatching,linkedFlagMatching:e.linkedFlagMatching,sessionId:e.sessionId,triggerGroupMatchers:this.Zt,triggerGroupSamplingResults:this.Gt,minimumDuration:this.getMinimumDuration(e.sessionId)})}getMinimumDuration(e){let t=null;for(const n of this.Zt)if(n.triggerStatus(e)==="trigger_activated"){const r=n.group.minDurationMs;_e(r)&&(De(t)||t>r)&&(t=r)}return t}checkUrlTriggers(e,t,n,r){this.Y.checkUrlBlocklist(t,n);for(const i of this.Zt)i.checkUrlTriggerConditions(t,n,s=>{this.Kt(i,void 0)&&(i.activateTrigger(s,e),this.updateActiveTriggers(e),this.Bt(s))},e)}setupEventTriggerListeners(e,t,n){return this.Wt=e(r=>{var i;if(this.Qt)return En.info("[SessionRecorder] Stopping trigger checks - initial buffer flushed"),(i=this.Wt)===null||i===void 0||i.call(this),void(this.Wt=void 0);try{for(const s of this.Zt)s.checkEventTriggerConditions(r.event,c=>{if(!this.Kt(s,r.properties))return;const l=(s.group.conditions.events||[]).filter(a=>a.name===r.event),o=this._instance.get_property(Oo);l.some(a=>!a.properties||a.properties.length===0||Qo(a.properties,r.properties,o))&&(s.activateTrigger(c,t),this.updateActiveTriggers(t),this.Bt(c))},t)}catch(s){En.error("Could not activate event trigger for trigger groups",s)}}),this.Wt}makeSamplingDecisions(e){for(const n of this.Zt){var t;const r=n.group,i=r.id,s=r.sampleRate,c="$posthog_sr_group_sampling_"+i,l=this._instance.get_property(c);let o=null,a=!1,u=!1,h=!1;if(Ae(l)){const f=l.sessionId,m=l.sampleRate,v=l.sampled;a=typeof f=="string"&&f!==e,u=_e(m)&&m!==s,o=f===e&&_e(m)&&m===s&&Ke(v)?v:null}else o=l===e||null,a=typeof l=="string"&&l!==e,h=l===e;const d=a||u||h||!Ke(o),p=d?Jo(e+i,s):o;d&&this.Vt("triggerGroupSamplingDecisionMade",{group_id:i,group_name:r.name,sampleRate:s,isSampled:p}),this.Gt.set(i,p),(t=this._instance.persistence)===null||t===void 0||t.register({[c]:{sessionId:e,sampleRate:s,sampled:p}})}this.updateActiveTriggers(e)}ensureSamplingDecision(e){}onFlushComplete(){this.Qt=!0}clearConditionalRecordingPersistence(){var e,t,n;(e=this._instance.persistence)===null||e===void 0||e.unregister("$session_is_sampled"),(t=this._instance.persistence)===null||t===void 0||t.unregister("$replay_sample_rate"),(n=this._instance.persistence)===null||n===void 0||n.unregister("$session_past_minimum_duration");for(const c of this.Zt){var r,i,s;const l=c.group.id;(r=this._instance.persistence)===null||r===void 0||r.unregister("$posthog_sr_group_event_trigger_"+l),(i=this._instance.persistence)===null||i===void 0||i.unregister("$posthog_sr_group_url_trigger_"+l),(s=this._instance.persistence)===null||s===void 0||s.unregister("$posthog_sr_group_sampling_"+l)}}updateActiveTriggers(e){const t=[];for(const n of this.Zt){const r=n.group,i=r.id,s=n.triggerStatus(e)==="trigger_activated",c=this.Gt.get(i)===!0;s&&t.push({id:i,name:r.name,matched:!0,sampled:c})}this._instance.register_for_session({[Il]:t})}hasPendingTriggers(e){for(const t of this.Zt)if(t.triggerStatus(e)==="trigger_pending")return!0;return!1}getPendingTriggerConditions(e){return this.Zt.flatMap(t=>t.triggerStatusNoSideEffects(e)!=="trigger_pending"?[]:t.getPendingTriggerConditions(e).map(n=>`trigger group "${t.group.name}": ${n}`))}stop(){var e;(e=this.Wt)===null||e===void 0||e.call(this),this.Wt=void 0,this.Zt.forEach(t=>t.stop()),this.Zt=[],this.Gt.clear(),this.Y.stop()}Kt(e,t){const n=e.group.conditions.properties;return!n||n.length===0||Qo(n,t,this._instance.get_property(Oo))}Jt(e){this.Zt.forEach(t=>t.stop()),this.Zt=[],this.Gt.clear();for(const t of e){const n=new Al(this._instance,t,(r,i)=>{this.qt("linked_flag_matched",{flag:r,variant:i,group_id:t.id,group_name:t.name}),this.Bt()});this.Zt.push(n)}}};const Vl=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ea=1e5,Gl=/^[A-Za-z0-9]*[A-Za-z][A-Za-z0-9]*$/,ta=[],na=()=>!1,Yl="@type @id actionStatus availability bestRating contentRating encodingFormat eventAttendanceMode eventStatus highPrice inLanguage isAccessibleForFree isFamilyFriendly itemCondition itemListOrder lowPrice maximumAttendeeCapacity nonprofitStatus numberOfItems offerCount position price priceCurrency priceValidUntil publicAccess ratingCount ratingValue reviewCount smokingAllowed worstRating".split(" "),Zl="Action BorrowAction ReadAction SearchAction SeekToAction SolveMathAction WatchAction".split(" "),Tn="AutoDealer Bakery BarOrPub CafeOrCoffeeShop CollegeOrUniversity Corporation DaySpa Dentist EducationalOrganization Electrician FoodEstablishment GovernmentOrganization HealthClub Hotel LegalService Library LibrarySystem LocalBusiness Locksmith LodgingBusiness MedicalBusiness NGO OnlineStore Organization PerformingGroup Pharmacy Physician Plumber RealEstateAgent Restaurant School SportsOrganization Store".split(" "),ra="Accommodation AdministrativeArea Country Place State".split(" "),Et={AggregateOffer:{offers:["Offer"]},Brand:{name:!0},BreadcrumbList:{itemListElement:["ListItem"]},CreativeWork:{genre:!0,dateCreated:!0,dateModified:!0,datePublished:!0,expires:!0,learningResourceType:!0,educationalLevel:!0,educationalUse:!0,interactivityType:!0,aggregateRating:["AggregateRating"],potentialAction:Zl,publisher:Tn},Event:{startDate:!0,endDate:!0,previousStartDate:!0,aggregateRating:["AggregateRating"],offers:["AggregateOffer","Offer"]},ItemList:{itemListElement:["ListItem"]},ListItem:{item:ta},Offer:{seller:Tn},Organization:{name:!0,legalName:!0,foundingDate:!0,dissolutionDate:!0,aggregateRating:["AggregateRating"],brand:["Brand"]},Place:{aggregateRating:["AggregateRating"]},Product:{name:!0,sku:!0,mpn:!0,gtin:!0,gtin8:!0,gtin12:!0,gtin13:!0,gtin14:!0,productID:!0,productGroupID:!0,asin:!0,model:!0,category:!0,color:!0,material:!0,pattern:!0,size:!0,productionDate:!0,releaseDate:!0,brand:["Brand","Organization"],manufacturer:Tn,offers:["Offer","AggregateOffer"],aggregateRating:["AggregateRating"]},Service:{name:!0,serviceType:!0,category:!0,provider:Tn,areaServed:ra,offers:["AggregateOffer","Offer"],aggregateRating:["AggregateRating"]},OfferCatalog:{name:!0,itemListElement:ta}},Xl=[["3DModel AboutPage Answer Article AudioObject Blog BlogPosting Book Clip CollectionPage Comment ContactPage Course CreativeWorkSeason CreativeWorkSeries DataCatalog DataDownload DataFeed Dataset DiscussionForumPosting Episode FAQPage Game HowTo HowToDirection HowToSection HowToStep HowToTip ImageObject LearningResource MediaObject Message MobileApplication Movie MusicPlaylist MusicRecording NewsArticle Photograph PodcastEpisode PodcastSeries ProfilePage QAPage Question Quiz Recipe Review ScholarlyArticle SearchResultsPage SiteNavigationElement SocialMediaPosting SoftwareApplication TVEpisode TVSeries TechArticle VacationRental VideoGame VideoObject WebApplication WebPage WebPageElement WebSite".split(" "),Et.CreativeWork],["BroadcastEvent BusinessEvent EducationEvent Festival MusicEvent SportsEvent TheaterEvent".split(" "),Et.Event],[Tn,Et.Organization],[ra,Et.Place],["Car IndividualProduct ProductGroup ProductModel".split(" "),Et.Product]];function Zt(e,t){return ti.call(e,t)?e[t]:void 0}function ia(e){const t=typeof e;return De(e)||t==="string"||t==="number"||t==="boolean"}function sa(e,t){return t&&(function(n){return gt(n)&&/^(https?:\/\/|\/|\.\.?\/)/i.test(n.trim())})(e)?t(e.trim())||void 0:e}function oa(e,t){return xe(e)&&e.every(ia)?e.map(n=>sa(n,t)).filter(n=>!V(n)):ia(e)?sa(e,t):void 0}function Jl(e,t){if(typeof e!="string")return;const n=e.trim(),r=n.indexOf("#"),i=0>r?n:n.slice(r+1);if(!(!i||0>r&&(/^[a-z][a-z\d+.-]*:/i.test(n)||n.includes("/")||n.includes("?"))))try{return t(i)?i:void 0}catch{return}}function aa(e){if(ti.call(Et,e))return Et[e];for(const[t,n]of Xl)if(t.includes(e))return n}function Ir(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0})}function Ti(e,t,n,r){if(xe(e)){const i=e.map(s=>Ti(s,t,n,r)).filter(s=>!V(s));return i.length?i:void 0}return la(e,t,n,r)||void 0}function la(e,t,n,r){if(!Ae(e)||!(function(a){return a.remainingNodes?(a.remainingNodes--,!0):(a.exceeded=!0,!1)})(n))return null;const i=Zt(e,"@type"),s=(function(a){const u=new Set,h=typeof a=="string"?[a]:xe(a)?a:[],d=[];for(const p of h){if(typeof p!="string")continue;const f=p.replace(/^https?:\/\/schema\.org\//,"");if(100>=f.length&&Gl.test(f)&&!u.has(f)&&(u.add(f),d.push(f),d.length===20))break}return d})(i),c=s.filter(a=>!!aa(a)&&(!r||!r.length||r.includes(a))),l={};for(const a of Yl){const u=a==="@type"?s.length?typeof i=="string"?s[0]:s:void 0:a==="@id"?Jl(Zt(e,a),t):oa(Zt(e,a),n.maskUrl);V(u)||Ir(l,a,u)}for(const a of c){const u=aa(a);for(const h of Object.keys(u)){const d=Zt(e,h),p=u[h];if(p===!0){const f=oa(d,n.maskUrl);V(f)||Ir(l,h,f)}else{const f=Ti(d,t,n,p);V(f)||Ir(l,h,f)}}}const o=Ti(Zt(e,"@graph"),t,n);return V(o)||Ir(l,"@graph",o),Object.keys(l).length?l:null}function ca(e,t,n){if(!Ae(e))return null;const r=Zt(e,"@context");if(typeof r!="string"||!/^https?:\/\/schema\.org\/?$/.test(r))return null;const i=la(e,t,n);return i?$({"@context":"https://schema.org"},i):null}function xn(e){var t;return e.nodeName==="SCRIPT"&&((t=e.getAttribute("type"))===null||t===void 0?void 0:t.trim().toLowerCase())==="application/ld+json"}function Kl(e,t,n){if(typeof t=="string"?e.classList.contains(t):t&&Array.from(e.classList).some(r=>(t.lastIndex=0,t.test(r))))return!0;try{return!!n&&e.matches(n)}catch{return!1}}function xi(e,t,n){for(let r=e;r;){if(Kl(r,t,n))return!0;const i=r.parentNode;r=r.parentElement||(i&&i.nodeType===i.DOCUMENT_FRAGMENT_NODE?i.host:null)}return!1}function ua(e){return xn(e)?[e]:e.nodeType!==e.ELEMENT_NODE?[]:Array.from(e.querySelectorAll("script")).filter(xn)}function da(e){return Ae(e)?e.network_timing:e}const Z=Ht("[SessionRecording]"),Ql=[1,2,3,4,5,6,7,12],ha=e=>({rrwebMethod:e,enqueuedAt:Date.now(),attempt:1});function Cr(){var e;return lt==null||(e=lt.__PosthogExtensions__)===null||e===void 0?void 0:e.rrweb}function An(){var e;return(e=Cr())===null||e===void 0?void 0:e.record}function pa(e){try{return JSON.stringify(e)}catch(t){if(t instanceof RangeError)throw t;return JSON.stringify(e,Ho())}}function On(e){return Xo($l((function(t){var n=t.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var r=new We(t.length+(t.length>>>1)),i=0,s=function(a){r[i++]=a},c=0;n>c;++c){if(i+5>r.length){var l=new We(i+8+(n-c<<1));l.set(r),r=l}var o=t.charCodeAt(c);128>o?s(o):2048>o?(s(192|o>>>6),s(128|63&o)):o>55295&&57344>o?(s(240|(o=65536+(1047552&o)|1023&t.charCodeAt(++c))>>>18),s(128|o>>>12&63),s(128|o>>>6&63),s(128|63&o)):(s(224|o>>>12),s(128|o>>>6&63),s(128|63&o))}return Go(r,0,i)})(pa(e))),!0)}function Ln(e){return Ai.apply(this,arguments)}function Ai(){return Ai=Ge(function*(e){const t=yield(function(n){return ni.apply(this,arguments)})(pa(e),Ri.DEBUG,{rethrow:!0});return Xo(new Uint8Array(yield t.arrayBuffer()),!0)}),Ai.apply(this,arguments)}let Xt,Mr;const ec=typeof globalThis<"u"&&"CompressionStream"in globalThis&&"TextEncoder"in globalThis&&"Response"in globalThis&&typeof Response.prototype.blob=="function";let fa=!1;function Rr(e){var t;return xe(e)&&e.length===0?(Xt=(t=Xt)!==null&&t!==void 0?t:On([]),Xt):On(e)}function Er(e){return ma.apply(this,arguments)}function ma(){return(ma=Ge(function*(e){var t;return xe(e)&&e.length===0?Xt||(Mr=(t=Mr)!==null&&t!==void 0?t:Ln([]).then(n=>(Xt=n,n)).catch(n=>{throw Xt=void 0,Mr=void 0,n}),Mr):Ln(e)})).apply(this,arguments)}function ga(e){return ec&&!fa&&(function(t){return t.type===2||t.type===3&&(t.data.source===0||t.data.source===8)})(e)}function Jt(e){return{event:e,size:Sr(e)}}function va(e,t){return $($({},e),{},{data:t,cv:"2024-10"})}function Tr(e,t){return $($({},e),{},{cv:"2024-10",data:$($({},e.data),t)})}function xr(e){try{if(e.type===2)return Jt(va(e,On(e.data)));if(e.type===3&&e.data.source===0)return Jt(Tr(e,{texts:Rr(e.data.texts),attributes:Rr(e.data.attributes),removes:Rr(e.data.removes),adds:Rr(e.data.adds)}));if(e.type===3&&e.data.source===8)return Jt(Tr(e,{adds:e.data.adds?On(e.data.adds):void 0,removes:e.data.removes?On(e.data.removes):void 0}))}catch(t){Z.warn("could not compress event - will use uncompressed event",t)}return{event:e,size:Vt(e)}}function ya(){return(ya=Ge(function*(e){try{if(e.type===2)return Jt(va(e,yield Ln(e.data)));if(e.type===3&&e.data.source===0){const[t,n,r,i]=yield Promise.all([Er(e.data.texts),Er(e.data.attributes),Er(e.data.removes),Er(e.data.adds)]);return Jt(Tr(e,{texts:t,attributes:n,removes:r,adds:i}))}if(e.type===3&&e.data.source===8){const[t,n]=yield Promise.all([e.data.adds?Ln(e.data.adds):void 0,e.data.removes?Ln(e.data.removes):void 0]);return Jt(Tr(e,{adds:t,removes:n}))}}catch(t){return(n=>{if(!n||typeof n!="object")return!1;const r="name"in n?String(n.name):"";return(i=>!(!i||typeof i!="object")&&("name"in i?String(i.name):"")==="NotReadableError")(n)||r===Zs})(t)&&(fa=!0),Z.warn("could not compress event asynchronously - trying synchronous compression",t),xr(e)}return{event:e,size:Vt(e)}})).apply(this,arguments)}function Oi(e,t){return e.type===5&&e.data.tag===t}function ba(e){return Oi(e,"sessionIdle")}function Li(e){return Oi(e,"$session_ending")}function Ni(e){return Oi(e,"$session_starting")}var tc=class{get sessionId(){return this.Xt}get Yt(){if(!this._instance.sessionManager)throw new Error("[SessionRecording] must be started with a valid sessionManager.");return this._instance.sessionManager}get te(){return this._instance.config.session_recording.session_idle_threshold_ms||3e5}get ee(){return Ei(this._instance.get_property(di),this.sessionId)}get Ht(){var e;const t=(e=this.ne)===null||e===void 0?void 0:e.sampleRate;return _e(t)?t:null}get ie(){var e,t;return(e=(t=this.re)===null||t===void 0?void 0:t.getMinimumDuration(this.sessionId))!==null&&e!==void 0?e:null}constructor(e,t){this._instance=e,this.oe="/s/",this._forceAllowLocalhostNetworkCapture=!1,this.se=void 0,this.ae=!1,this.le=Date.now(),this.ue=!1,this.ce=[],this.de="unknown",this.he=0,this.fe=0,this.ve=0,this.pe=0,this.me=0,this.ge=!1,this.ye=!1,this.be=!1,this.we=!1,this.ke=!1,this._e=!1,this.Se=!1,this.xe=!1,this.Ce=!1,this.Me=!1,this.Ie=!1,this.Te=void 0,this.Re=void 0,this.Ae=!1,this.Ee=[],this.$e=0,this.Oe=0,this.Le=!1,this.Pe=void 0,this.Wt=void 0,this.De=void 0,this.Fe=void 0,this.Ne=void 0,this.qe=(s,c,l)=>{var o,a,u,h;if(!l||s===this.Xt&&c===this.je)return;const d=!l.noSessionId&&(l.activityTimeout||l.sessionPastMaximumLength),p=this.Xt,f=this.je;var m;if(d&&this.Vt("$session_ending",{currentSessionId:p,currentWindowId:f,nextSessionId:s,nextWindowId:c,changeReason:l,lastActivityTimestamp:this.le,flushed_size:(m=this.Be)===null||m===void 0?void 0:m.currentTrackedSize(p)}),(o=this._instance.persistence)===null||o===void 0||o.unregister("$debug_first_full_snapshot_timestamp"),(a=Cr())===null||a===void 0||(u=a.resetMaxDepthState)===null||u===void 0||u.call(a),this.Vt("$session_id_change",{sessionId:s,windowId:c,changeReason:l}),this.He(),!(this.de===!1&&this.isStarted||this.Xt===s&&this.je===c)){const v=this.Xt!==s&&this.de!==!1;this.de="unknown",this.ze(v)}d&&this.Vt("$session_starting",{previousSessionId:p,previousWindowId:f,nextSessionId:s,nextWindowId:c,changeReason:l,lastActivityTimestamp:this.le}),(h=this.re)===null||h===void 0||h.makeSamplingDecisions(s)},this.Ue=!1,this.We=()=>{var s;return((s=this._instance.persistence)===null||s===void 0?void 0:s.props.$session_past_minimum_duration)===this.Xt},this.Ve=()=>{var s,c;if(this.Rt.data.length===0)return null;const l=(s=this.Rt.data[0])===null||s===void 0?void 0:s.timestamp,o=(c=this.Rt.data[this.Rt.data.length-1])===null||c===void 0?void 0:c.timestamp;return _e(l)&&_e(o)?o-l:null},this.Ze=()=>{var s,c;const l=this.ie;if(!_e(l))return!1;if((s=(c=this._instance.config.session_recording)===null||c===void 0?void 0:c.strictMinimumDuration)===null||s===void 0||!s){const u=this.Ge;return _e(u)&&u>=0&&l>u}if(this.We())return!1;const o=this.Ve();return!!De(o)||l>o||((a=this._instance.persistence)===null||a===void 0||a.register({$session_past_minimum_duration:this.Xt}),!1);var a},this.Qe=()=>{this.status!=="buffering"?(this.ge&&this.ye&&this.Je&&(this.Ke(void 0),this.be&&(this.be=!1,this.jt())),this.Xe(),this.Ye(!0)):this.tn()},this.en=()=>{this.Qe()},this.nn=()=>{this.Vt("browser offline",{})},this.rn=()=>{this.Vt("browser online",{})},this.sn=()=>{st!=null&&st.visibilityState&&(st.visibilityState==="visible"&&(this.Je=!0),this.Vt("window "+st.visibilityState,{}))},this.Je=t==null||t;const{sessionId:n,windowId:r,sessionStartTimestamp:i}=this.Yt.checkAndGetSessionAndWindowId();this.Xt=n,this.je=r,this._sessionStartTimestamp=i,this.et=new $o(this._instance),this.Y=new Po(this._instance),this.tt=new Bo(this._instance),this.Rt=this.tn(),this.an="ph_replay_pending_buffer_"+JSON.stringify([this._instance.config.persistence_name||this._instance.config.token,this._instance.config.token]),this.Yt.sessionTimeoutMs>this.te||Z.warn(`session_idle_threshold_ms (${this.te}) is greater than the session timeout (${this.Yt.sessionTimeoutMs}). Session will never be detected as idle`),this.Be=new zl(this._instance)}setDocumentWasEverVisible(e){e&&(this.Je=!0)}get ln(){var e,t,n,r,i,s,c,l,o;const a=(e=this.ne)===null||e===void 0?void 0:e.masking,u={maskAllInputs:(t=this._instance.config.session_recording)===null||t===void 0?void 0:t.maskAllInputs,maskTextSelector:(n=this._instance.config.session_recording)===null||n===void 0?void 0:n.maskTextSelector,blockSelector:(r=this._instance.config.session_recording)===null||r===void 0?void 0:r.blockSelector,maskAllElementAttributes:(i=this._instance.config.session_recording)===null||i===void 0?void 0:i.maskAllElementAttributes},h=(s=u?.maskAllInputs)!==null&&s!==void 0?s:a?.maskAllInputs,d=(c=u?.maskTextSelector)!==null&&c!==void 0?c:a?.maskTextSelector,p=(l=u?.blockSelector)!==null&&l!==void 0?l:a?.blockSelector,f=(o=u?.maskAllElementAttributes)!==null&&o!==void 0?o:a?.maskAllElementAttributes;return V(h)&&V(d)&&V(p)&&V(f)?void 0:{maskAllInputs:h==null||h,maskTextSelector:d,blockSelector:p,maskAllElementAttributes:f}}un(){var e;if(this.xe)return;const t=(e=this.ne)===null||e===void 0?void 0:e.masking;if(Xe(t))return;const n=this._instance.config.session_recording,r=["maskAllInputs","maskTextSelector","blockSelector","maskAllElementAttributes"].filter(i=>{const s=n?.[i],c=t[i];return!V(s)&&s!==c});r.length!==0&&(this.xe=!0,Z.warn('Session recording masking is configured both in `posthog.init` and in your project settings, and they differ. The `session_recording` options in `posthog.init` take precedence, so the project ("Privacy and masking") setting is ignored for: '+r.join(", ")+". Remove these masking options from `posthog.init` to use the project setting instead. See https://posthog.com/docs/session-replay/privacy",{client:{maskAllInputs:n?.maskAllInputs,maskTextSelector:n?.maskTextSelector,blockSelector:n?.blockSelector,maskAllElementAttributes:n?.maskAllElementAttributes},project:t}))}get cn(){var e;return vt((e=this._instance.config.session_recording.canvasCapture)===null||e===void 0?void 0:e.resolutionScale,.1,1,Ht("canvas recording resolution scale"),1)}get dn(){var e,t,n,r,i,s,c;const l=this._instance.config.session_recording.captureCanvas,o=(e=this.ne)===null||e===void 0?void 0:e.canvasRecording,a=(t=(n=l?.recordCanvas)!==null&&n!==void 0?n:o?.enabled)!==null&&t!==void 0&&t,u=(r=(i=l?.canvasFps)!==null&&i!==void 0?i:o?.fps)!==null&&r!==void 0?r:4;let h=(s=(c=l?.canvasQuality)!==null&&c!==void 0?c:o?.quality)!==null&&s!==void 0?s:.4;if(typeof h=="string"){const d=parseFloat(h);h=isNaN(d)?.4:d}return{enabled:a,fps:vt(u,0,12,Ht("canvas recording fps"),4),quality:vt(h,0,1,Ht("canvas recording quality"),.4)}}get hn(){var e;const t=!!(!((e=this.ne)===null||e===void 0)&&e.consoleLogRecordingEnabled),n=this._instance.config.enable_recording_console_log;return n??t}get fn(){var e,t,n;const r=(e=this.ne)===null||e===void 0?void 0:e.networkPayloadCapture,i={recordHeaders:(t=this._instance.config.session_recording)===null||t===void 0?void 0:t.recordHeaders,recordBody:(n=this._instance.config.session_recording)===null||n===void 0?void 0:n.recordBody},s=i?.recordHeaders||r?.recordHeaders,c=i?.recordBody||r?.recordBody,l=da(this._instance.config.capture_performance),o=da(r?.capturePerformance),a=!!(Ke(l)?l:o);return s||c||a?{recordHeaders:s,recordBody:c,recordPerformance:a}:void 0}vn(){var e,t;const n=[],r=(e=lt.__PosthogExtensions__)===null||e===void 0||(e=e.rrwebPlugins)===null||e===void 0?void 0:e.getRecordConsolePlugin;r&&this.hn&&n.push(r());const i=(t=lt.__PosthogExtensions__)===null||t===void 0||(t=t.rrwebPlugins)===null||t===void 0?void 0:t.getRecordNetworkPlugin;if(this.fn&&Ne(i))if(!ll.includes(sl.hostname)||this._forceAllowLocalhostNetworkCapture){const s=Ne(this._instance.requestRouter.isIngestionEndpoint)?this._instance.requestRouter.isIngestionEndpoint.bind(this._instance.requestRouter):void 0;n.push(i(((c,l,o)=>{const a={payloadSizeLimitBytes:jt.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...jt.performanceEntryTypeToObserve],payloadHostDenyList:[...l.payloadHostDenyList||[],...jt.payloadHostDenyList]},u=c.session_recording.recordHeaders!==!1&&l.recordHeaders,h=c.session_recording.recordBody!==!1&&l.recordBody,d=c.capture_performance!==!1&&l.recordPerformance,p=(v=>{const g=ao(v);return y=>(y!=null&&y.requestBody&&(y.requestBody=co(y.requestBody,y.requestHeaders,g,"Request")),y!=null&&y.responseBody&&(y.responseBody=co(y.responseBody,y.responseHeaders,g,"Response")),y)})(a),f=v=>{return p(((y,b,k)=>{var w;if(k?.(y.name))return;const _=Qs(y.name);let S=b.indexOf("http")===0?(w=Qs(b))===null||w===void 0?void 0:w.pathname:b;S==="/"&&(S="");const M=_?.pathname.replace(S||"","");return _&&M&&ml.some(I=>M.indexOf(I)===0)?void 0:y})((lo((g=v).requestHeaders),lo(g.responseHeaders),g),c.api_host,o));var g},m=Ne(c.session_recording.maskNetworkRequestFn);return m&&Ne(c.session_recording.maskCapturedNetworkRequestFn)?ct.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."):m&&(c.session_recording.maskCapturedNetworkRequestFn=v=>{const g=c.session_recording.maskNetworkRequestFn({url:v.name});return!g&&v.isInitial?g:$($({},v),{},{name:g?.url})}),a.maskRequestFn=Ne(c.session_recording.maskCapturedNetworkRequestFn)?v=>{var g,y;const b=f(v);if(!b)return;const k=b.isInitial?{name:"",entryType:b.entryType,startTime:b.startTime,duration:b.duration,endTime:b.endTime,timeOrigin:b.timeOrigin,timestamp:b.timestamp,isInitial:!0}:void 0,w=(g=(y=c.session_recording).maskCapturedNetworkRequestFn)===null||g===void 0?void 0:g.call(y,b);return Xe(w)&&k?(ho.add(k),k):w??void 0}:v=>(function(g){if(!V(g))return g.requestBody=uo(g.requestBody,"Request"),g.responseBody=uo(g.responseBody,"Response"),g})(f(v)),$($($({},jt),a),{},{recordHeaders:u,recordBody:h,recordPerformance:d,recordInitialRequests:d,streamNetworkBody:c.session_recording.streamNetworkBody===!0})})(this._instance.config,this.fn,s)))}else Z.info("NetworkCapture not started because we are on localhost.");return n}pn(e){return this._instance.config.disable_capture_url_hashes?Ys(e):e}mn(e,t=!1){const n=t?Ys(e):this.pn(e),r=this._instance.config.mask_personal_data_properties?[...Vl,...this._instance.config.custom_personal_data_properties||[]]:[];return this.gn((function(i,s){if(!i||!s||!s.length)return i;const c=i.split("#"),l=c[1],o=(c[0]||"").split("?"),a=o[1],u=o[0],h=(a||"").split("&"),d=[];for(let f=0;h.length>f;f++){const m=h[f].split("=");xe(m)&&(s.includes(m[0])?d.push(m[0]+"=<masked>"):d.push(h[f]))}let p=u;return a!=null&&(p+="?"+d.join("&")),l!=null&&(p+="#"+l),p})(n,r))}gn(e){const t=this._instance.config.session_recording;if(t.maskCapturedNetworkRequestFn){var n;const r=t.maskCapturedNetworkRequestFn({name:e});return(n=r?.name)!==null&&n!==void 0?n:r?.url}if(t.maskNetworkRequestFn){const r=t.maskNetworkRequestFn({url:e});return r?.url}return e}yn(e){try{return e.rrwebMethod(),!0}catch(t){return 10>this.ce.length?this.ce.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt+1,rrwebMethod:e.rrwebMethod}):Z.warn("could not emit queued rrweb event.",t,e),!1}}Vt(e,t){return this.yn(ha(()=>An().addCustomEvent(e,t)))}bn(){var e;return this.ae&&((e=this._instance.config.session_recording)===null||e===void 0?void 0:e.captureJsonLd)===!0&&!this.Y.urlBlocked&&this.de!==!0}wn(e){if(!this.bn())return!1;try{const t=An();return!!t&&(t.addCustomEvent("$json_ld",e),this.bn())}catch{return!1}}kn(e=!1){Promise.resolve().then(()=>{var t;return(t=this._n)===null||t===void 0?void 0:t.scan(e)})}Sn(){try{if(this._instance.config.capture_pageview||!G)return;const e=new URL(G.location.href),t=this.mn(e.origin+e.pathname+e.search);this.xn!==t&&(this.xn=t,this.Vt("$url_changed",{href:t}))}catch{}}Cn(){if(this.ce.length){const e=[...this.ce];this.ce=[],e.forEach(t=>{Date.now()-t.enqueuedAt>2e3||this.yn(t)})}}jt(){return this.yn(ha(()=>An().takeFullSnapshot()))}get Mn(){var e,t,n;if(!((e=this.re)===null||e===void 0)&&e.hasPendingTriggers(this.sessionId)&&!["sampled","active"].includes(this.status)){var r;const i=(r=this._instance.config.session_recording)===null||r===void 0?void 0:r.trigger_pending_buffer_interval_millis;return _e(i)&&Number.isFinite(i)&&i>=1e3&&36e5>=i?i:6e4}return(t=(n=this._instance.config.session_recording)===null||n===void 0?void 0:n.full_snapshot_interval_millis)!==null&&t!==void 0?t:3e5}In(){if(this.Tn&&clearInterval(this.Tn),this.de===!0)return;const e=this.Mn;e&&(this.Tn=setInterval(()=>{this.jt()},e))}Bt(e){e==="event"&&this.Rn(),!this.Y.urlBlocked&&["sampled","active"].includes(this.status)&&this.In()}An(){var e;this.Y.urlBlocked||(this.Y.urlBlocked=!0,(e=this._n)===null||e===void 0||e.scan(),clearInterval(this.Tn),Z.info("recording paused due to URL blocker"),this.Vt("recording paused",{reason:"url blocker"}))}En(){var e;this.Y.urlBlocked&&((e=this._n)===null||e===void 0||e.scan(),this.Y.urlBlocked=!1,this.jt(),this.kn(),this.In(),this.Vt("recording resumed",{reason:"left blocked url"}),Z.info("recording resumed"))}$n(e,t){var n;if(e==="event"&&this.Rn(),!this.ue&&((n=this.re)===null||n===void 0?void 0:n.hasPendingTriggers(this.sessionId))){this.ue=!0;try{var r,i;const s=e==="url"?Ro:Eo;(r=this._instance.persistence)===null||r===void 0||r.register({[s]:this.sessionId}),(i=this.re)===null||i===void 0||i.updateActiveTriggers(this.sessionId),this.Bt(),this.Ye(),this.qt(e+"_trigger_matched",{[e==="url"?"matchedUrl":"matchedEvent"]:t})}finally{this.ue=!1}}}get isStarted(){return!!this.se}get ne(){const e=this._instance.get_property("$session_recording_remote_config");if(!e)return;let t;try{t=Ae(e)?e:JSON.parse(e)}catch(r){Z.warn("persisted remote config for session recording is invalid and will be ignored",r);return}if(!this.isStarted&&!this.Ue){var n;const r=(n=t.cache_timestamp)!==null&&n!==void 0?n:Date.now();if(Date.now()-r>36e5)return void Z.info("persisted remote config for session recording is stale and will be ignored",{cacheTimestamp:r,persistedConfig:e})}return t}On(e,t,n){this._instance.get_property(e)&&(t(),n())}start(e){var t,n;const r=this.ne;if(!r)return void Z.info("remote config must be stored in persistence before recording can start");if(!this.isStarted){const l=this.de!==!1&&!this.we;this.Ke(l?"no_interaction_since_recording_started":void 0),this.we=!1,this.ye=l,this.be=!1}this.Le&&(this.Ln(),this.tn());const{sessionId:i,windowId:s,sessionStartTimestamp:c}=this.Yt.checkAndGetSessionAndWindowId();this.Xt=i,this.je=s,this._sessionStartTimestamp=c,this.Pn(),(t=this._instance.persistence)===null||t===void 0||t.unregister("$debug_first_full_snapshot_timestamp"),r!=null&&r.endpoint&&(this.oe=r?.endpoint),this.re=r?.version===2&&r?.triggerGroups&&r.triggerGroups.length>0?new Ul(this._instance,this.Y,this.qt.bind(this),this.Vt.bind(this),this.Bt.bind(this)):new ql(this._instance,this.Y,this.tt,this.et,this.qt.bind(this),this.jt.bind(this),this.Bt.bind(this)),this.re.onRemoteConfig(r),(n=this.Wt)===null||n===void 0||n.call(this),this.Wt=this.re.setupEventTriggerListeners(this._instance.on.bind(this._instance,"eventCaptured"),this.sessionId,(l,o)=>this.$n(l,o)),this.On(_o,()=>{this.overrideSampling()},()=>{var l;return(l=this._instance.persistence)===null||l===void 0?void 0:l.unregister(_o)}),this.On(Io,()=>{this.overrideLinkedFlag()},()=>{var l;return(l=this._instance.persistence)===null||l===void 0?void 0:l.unregister(Io)}),this.On(Mo,()=>{this.overrideTrigger("event")},()=>{var l;return(l=this._instance.persistence)===null||l===void 0?void 0:l.unregister(Mo)}),this.On(Co,()=>{this.overrideTrigger("url")},()=>{var l;return(l=this._instance.persistence)===null||l===void 0?void 0:l.unregister(Co)}),this.re.makeSamplingDecisions(this.sessionId),this.Dn(),this.ke||(_n(G,"beforeunload",this.Qe),_n(G,"pagehide",this.en),_n(G,"offline",this.nn),_n(G,"online",this.rn),_n(st,"visibilitychange",this.sn),!this.De&&Ne(this.Yt.onSessionId)&&(this.De=this.Yt.onSessionId(this.qe)),!this.Fe&&Ne(this.Yt.on)?this.Fe=this.Yt.on("forcedIdleReset",()=>{this.He(),this.de="unknown",this.stop(),this.Ne=this.Yt.onSessionId((l,o,a)=>{var u;(u=this.Ne)===null||u===void 0||u.call(this),this.Ne=void 0,this.qe(l,o,a)})}):Ne(this.Yt.on)||Z.warn("bundled core has no SessionIdManager.on (requires posthog-js >= 1.268.6); recording will start but skip forced-idle-reset handling"),Xe(this.Pe)&&(this.Pe=this._instance.on("eventCaptured",l=>{try{if(l.event==="$pageview"){const o=l?.properties.$current_url?this.mn(l.properties.$current_url):"";if(!o)return;this.Vt("$pageview",{href:o})}}catch(o){Z.error("Could not add $pageview to rrweb session",o)}})),this.status==="active"&&this.qt(e||"recording_initialized"))}Fn(){var e,t,n,r,i,s;G?.removeEventListener("beforeunload",this.Qe),G?.removeEventListener("pagehide",this.en),G?.removeEventListener("offline",this.nn),G?.removeEventListener("online",this.rn),st?.removeEventListener("visibilitychange",this.sn),clearInterval(this.Tn),this.Nn(),(e=this.Pe)===null||e===void 0||e.call(this),this.Pe=void 0,(t=this.Wt)===null||t===void 0||t.call(this),this.Wt=void 0,(n=this.De)===null||n===void 0||n.call(this),this.De=void 0,(r=this.Fe)===null||r===void 0||r.call(this),this.Fe=void 0,(i=this.Ne)===null||i===void 0||i.call(this),this.Ne=void 0,(s=this.re)===null||s===void 0||s.stop(),this.qn(),this.Ln()}Ln(){this.Oe+=1,this.Ee=[],this.$e=0,this.jn=void 0,this.Le=!1}qn(){var e,t;(e=this.Bn)===null||e===void 0||e.stop(),this.ce=[],(t=this._n)===null||t===void 0||t.stop(),this._n=void 0,this.ae=!1;try{var n;(n=this.se)===null||n===void 0||n.call(this)}catch(r){Z.warn("could not stop rrweb",r)}this.se=void 0}Hn(){if(!this.jn||this.$e===0)return!1;if(this.Le)return!0;this.Le=!0,this.zn=void 0;const e=this.Oe;return this.Nn(),this.qn(),this.jn.catch(()=>{}).then(()=>{e===this.Oe&&(this.Le=!1,this.Ye(),this.tn(),this.Un(),this.Fn(),Z.info("stopped"))}).catch(()=>{this.Le=!1,this.Un(),this.Fn(),Z.info("stopped")}),!0}stop(){if(this.qn(),this.Ue)this.Xe();else if(this.Hn())return;this.Ye(),this.tn(),this.Un(),this.Fn(),Z.info("stopped")}Un(){this.Ke(void 0,{preserveLogDedup:this.Ue}),this.ye=!1}flushBeforeIdentityReset(){(this.isStarted||this.Le)&&(this.Xe(),this.Ye())}ze(e){this.Ue=!0,this.le=Date.now();try{var t,n;this.stop(),this.Wn=void 0,this.me=0,this.fe=0,this.ve=0,this.pe=0,(t=Cr())===null||t===void 0||(n=t.resetSnapshotCostState)===null||n===void 0||n.call(t),this.start("session_id_changed")}finally{this.Ue=!1}this.Ke(e?"no_interaction_since_session_rotated":void 0),this.ye=!1}Ke(e,{preserveLogDedup:t=!1}={}){if(this.ge=!V(e),this.zn=e,V(e))return void(t||(this.Vn=void 0));if(this.Ue)return;const n=`${this.sessionId}:${e}`;n!==this.Vn&&(this.Vn=n,Z.info(`holding buffer: ${e}. nothing is uploaded until the user interacts with the page`))}Rn(){this.isStarted||(this.we=!0),this.ge&&(this.Ke(void 0),this.ye=!1,this.be&&(this.be=!1,this.jt()),this.Zn())}discard({discardProducerEvents:e=!1}={}){this.ge=!0,e&&(this.tn(),this.qn()),this.tn(),this.Fn(),this.tn(),this.Un(),Z.info("discarded")}Gn(e,t,n,r,i){if(n===-1)return this.me+=1,void Z.warn("could not stringify event - dropping it to keep the rest of the recording");const s={$snapshot_bytes:n,$snapshot_data:t,$session_id:r,$window_id:i};this.status!=="disabled"?(this.Qn(e,r),this.Jn(s)):this.tn()}Kn(){try{this.Xn()}catch(e){this.Se||(this.Se=!0,Z.error("could not track full snapshot cost",e))}}Xn(){var e,t;const n=(e=Cr())===null||e===void 0||(t=e.getLastSnapshotCost)===null||t===void 0?void 0:t.call(e);n&&n!==this.Wn&&(this.Wn=n,500>n.durationMs||Z.warn("full snapshot was slow, the page may have been unresponsive while it ran",{durationMs:Math.round(n.durationMs),stylesheetMs:Math.round(n.stylesheetMs),nodeCount:n.nodeCount,cssRuleCount:n.cssRuleCount,nonDeferrableCssRuleCount:n.nonDeferrableCssRuleCount,deferredStylesheetCount:n.deferredStylesheetCount}))}Qn(e,t){e.type!==2?e.type===3&&(V(this.Te)||this.Te===t||this.Re===t||(this.Re=t,Z.info("incremental snapshot for a session with no full snapshot - requesting one",{sessionId:t}),this.jt())):this.Te=t}Yn(e){e.counted&&e.generation===this.Oe&&(this.$e=Math.max(0,this.$e-1)),e.counted=!1,this.Ee=this.Ee.filter(t=>t!==e)}ti(e,t,n){e.processed||e.generation!==this.Oe||(e.processed=!0,this.Gn(e.event,t,n,e.targetSessionId,e.targetWindowId))}ei(e){try{let t,n=e.event;if(e.compressionEnabled)try{({event:n,size:t}=xr(e.event))}catch(r){Z.warn("could not process queued compression event - will use uncompressed event",r)}V(t)&&(t=Vt(e.event));try{this.ti(e,n,t)}catch(r){Z.warn("could not capture queued compression event",r)}}finally{this.Yn(e)}}Xe(){[...this.Ee].forEach(e=>{try{this.ei(e)}catch(t){Z.warn("could not drain queued compression event",t)}})}ni(e,t,n,r){var i=this;const s={event:e,compressionEnabled:t,targetSessionId:n,targetWindowId:r,generation:this.Oe,processed:!1,counted:!0};this.Ee.push(s),this.$e+=1;const c=(l=Ge(function*(){try{if(s.processed)return;let o,a;try{const u=t?ga(e)?yield(function(h){return ya.apply(this,arguments)})(e):xr(e):{event:e,size:Vt(e)};o=u.event,a=u.size}catch(u){Z.warn("could not process queued compression event - will use uncompressed event",u),o=e,a=Vt(e)}i.ti(s,o,a)}finally{i.Yn(s)}}),function(){return l.apply(this,arguments)});var l;this.jn=this.jn?this.jn.catch(()=>{}).then(c):c()}onRRwebEmit(e){var t,n,r,i,s,c,l,o,a,u,h,d;if(!this._instance.sessionManager||(this.Cn(),!e||!Ae(e)))return;if(e.type===4){const I=this.mn(e.data.href);if(this.xn=I,!I)return;e.data.href=I}else this.Sn();if((t=this.re)===null||t===void 0||t.checkUrlTriggers(this.sessionId,()=>this.An(),()=>this.En(),(I,R)=>this.$n(I,R)),this.Y.urlBlocked&&((u=e).type!==5||u.data.tag!=="recording paused"))return;e.type===2&&(this.Kn(),Promise.resolve().then(()=>this.Kn()),this.In(),(h=this.Bn)===null||h===void 0||h.reset(),(d=this._instance.persistence)===null||d===void 0||d.register_once({$debug_first_full_snapshot_timestamp:e.timestamp},void 0));const p=e.type===2&&((n=this.re)===null||n===void 0?void 0:n.hasPendingTriggers(this.sessionId));p&&this.ii();const f=this.Bn?this.Bn.throttleMutations(e):e;if(!f)return void(this.de===!0&&this.he++);const m=(function(I){const R=I;if(R&&Ae(R)&&R.type===6&&Ae(R.data)&&R.data.plugin==="rrweb/console@1"){R.data.payload.payload.length>10&&(R.data.payload.payload=R.data.payload.payload.slice(0,10),R.data.payload.payload.push("...[truncated]"));const N=[];for(let x=0;R.data.payload.payload.length>x;x++)N.push(R.data.payload.payload[x]&&R.data.payload.payload[x].length>2e3?R.data.payload.payload[x].slice(0,2e3)+"...[truncated]":R.data.payload.payload[x]);return R.data.payload.payload=N,I}return I})(f),v=(function(I){return Li(I)?I.data.payload:null})(m),g=(function(I){return Ni(I)?I.data.payload:null})(m),y=(function(I){return ba(I)?I.data.payload:null})(m);v||g?v!=null&&v.lastActivityTimestamp&&(m.timestamp=v.lastActivityTimestamp):y!=null&&y.sessionId||this.ri(m);const b=(r=(i=(s=v?.currentSessionId)!==null&&s!==void 0?s:g?.nextSessionId)!==null&&i!==void 0?i:y?.sessionId)!==null&&r!==void 0?r:this.Xt,k=(c=(l=(o=v?.currentWindowId)!==null&&o!==void 0?o:g?.nextWindowId)!==null&&l!==void 0?l:y?.windowId)!==null&&c!==void 0?c:this.je;if(this.de===!0&&!(function(I){return ba(I)||Li(I)||Ni(I)})(m))return void((function(I){return I.type===2||I.type===4||I.type===3&&I.data.source!==9})(m)&&this.he++);m.type===2&&(this.he=0),y&&(m.timestamp=y.lastActivityTimestamp+y.threshold);const w=this.ae;this.ae=!0,p?this.kn(!0):w||this.kn();const _=(a=this._instance.config.session_recording.compress_events)===null||a===void 0||a;if(m.type===5&&m.data.tag==="$json_ld"){let I;try{I=G?this.mn(G.location.href):void 0}catch{}m.data.href=I}if(this.$e>0||_&&ga(m))return void this.ni(m,_,b,k);const{event:S,size:M}=_?xr(m):{event:m,size:Vt(m)};this.Gn(m,S,M,b,k)}get status(){return this.re?this.re.getStatus({instance:this._instance,sessionId:this.sessionId,isSampled:this.ee,rrwebError:this.ke,urlTriggerMatching:this.Y,eventTriggerMatching:this.tt,linkedFlagMatching:this.et,remoteConfig:this.ne}):bt}log(e,t="log"){var n;(n=this._instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:t,trace:[],payload:[JSON.stringify(e)]}},timestamp:Date.now()})}overrideLinkedFlag(){this.et.linkedFlagSeen=!0,this.jt(),this.Rn(),this.qt("linked_flag_overridden")}overrideSampling(){var e;(e=this._instance.persistence)===null||e===void 0||e.register({$session_is_sampled:this.sessionId,$replay_sample_rate:null}),this.jt(),this.Rn(),this.qt("sampling_overridden")}overrideTrigger(e){this.$n(e),this.Rn()}oi(){try{var e;const t=G==null||(e=G.location)===null||e===void 0?void 0:e.href;if(!t)return;const n=this.mn(t);return n&&new URL(n).hostname||void 0}catch{return}}Nn(){this.si&&(clearTimeout(this.si),this.si=void 0)}Zn(){this.si||(this.si=setTimeout(()=>{this.Ye()},2e3))}ai(){return this.Te!==this.Rt.sessionId&&this.Rt.data.length!==0&&this.Rt.data.every(e=>e?.type===5&&!Li(e)&&!Ni(e))}li(){var e,t;return(e=(t=this.re)===null||t===void 0?void 0:t.getPendingTriggerConditions(this.sessionId))!==null&&e!==void 0?e:[]}ui(e){if(e!=="buffering")return V(this.ci)||this._instance.register_for_session({[hi]:[]}),void(this.ci=void 0);const t=this.li();if(t.length===0)return V(this.ci)||this._instance.register_for_session({[hi]:[]}),void(this.ci=void 0);const n=t.join(", "),r=`${this.sessionId}:${n}`;r!==this.ci&&(this.ci=r,this._instance.register_for_session({[hi]:t}),Z.info(`buffering: ${n}`))}di(){var e;return this._instance.config.persistence!=="memory"&&((e=this._instance.persistence)===null||e===void 0?void 0:e.hi)!==!0&&Je.Et()}fi(){this.Rt.data.length!==0&&this.Rt.size!==this.pi&&943718.4>=this.Rt.size&&this.di()&&(this.pi=this.Rt.size,Je.$t(this.an,this.Rt))}Pn(){if(this.Ae||!this.di())return;this.Ae=!0;const e=Je.Dt(this.an);Je.Lt(this.an),Ae(e)&&xe(e.data)&&e.data.length!==0&&xe(e.sizes)&&e.sizes.length===e.data.length&&_e(e.size)&&e.sessionId===this.Xt&&e.windowId===this.je&&(this.Rt.data.length>0||(this.Rt=e))}Ye(e=!1){var t;if(this.Nn(),this.ge)return this.Rt;if(this.ai())return this.Rt.size>943718.4?this.tn():(e&&this.fi(),this.Rt);const n=this.Rt;(t=this.re)===null||t===void 0||t.ensureSamplingDecision(this.sessionId);const r=this.Ze(),i=this.status;if(this.ui(i),i==="buffering"||i==="paused"||i==="disabled"||r)return!e||i!=="active"&&i!=="sampled"||this.fi(),this.Zn(),this.Rt;if(this.Rt!==n)return this.Rt;if(n.data.length>0){var s;const c=this.oi();bi(n).forEach(l=>{try{var o;(o=this.Be)===null||o===void 0||o.trackSize(l.sessionId,l.size),this.mi($($($($({$snapshot_bytes:l.size,$snapshot_data:l.data,$session_id:l.sessionId,$window_id:l.windowId,$lib:Ri.LIB_NAME,$lib_version:Ri.LIB_VERSION,$snapshot_host:c},this.fe>0?{$sdk_debug_replay_throttled_mutations_dropped:this.fe}:{}),this.ve>0?{$sdk_debug_replay_oversized_mutations_dropped:this.ve}:{}),this.pe>0?{$sdk_debug_replay_oversized_mutation_bytes_dropped:this.pe}:{}),this.me>0?{$sdk_debug_replay_unstringifiable_events_dropped:this.me}:{}))}catch(a){Z.warn("could not capture snapshot chunk - skipping it",a)}}),V(this.pi)||(Je.Lt(this.an),this.pi=void 0),(s=this.re)===null||s===void 0||s.onFlushComplete()}return this.tn()}Jn(e){var t;const n=2+(((t=this.Rt)===null||t===void 0?void 0:t.data.length)||0),r=e.$session_id,i=this.Rt.sessionId!==r;if(i||this.de!==!0&&!this.ge&&this.Rt.size+e.$snapshot_bytes+n>943718.4){const s=this.Xt;if(this.Rt=this.Ye(),this.Xt!==s)return;i&&this.Rt.data.length>0&&(this.Rt=this.tn()),this.Rt.sessionId=r,this.Rt.windowId=e.$window_id}this.ge&&(this.be||this.Rt.size+e.$snapshot_bytes+n>943718.4)?this.be=!0:(this.Rt.size+=e.$snapshot_bytes,this.Rt.data.push(e.$snapshot_data),this.Rt.sizes.push(e.$snapshot_bytes),this.de===!0||this.ge||this.Zn())}mi(e){this._instance.capture("$snapshot",e,{_url:this._instance.requestRouter.endpointFor("api",this.oe),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}get Ge(){var e,t;const n=(e=this.Rt)===null||e===void 0?void 0:e.data[((t=this.Rt)===null||t===void 0?void 0:t.data.length)-1];return n?n.timestamp-this._sessionStartTimestamp:null}ii(){if(!this.Rt||this.Rt.data.length===0)return this.tn();let e=-1;for(let t=this.Rt.data.length-1;t>=0;t--)if(this.Rt.data[t].type===4){e=t;break}return 0>e?this.tn():(this.Rt.data=this.Rt.data.slice(e),this.Rt.sizes=this.Rt.sizes.slice(e),this.Rt.size=this.Rt.sizes.reduce((t,n)=>t+n,0),this.Rt)}tn(){return this.Rt={size:0,data:[],sizes:[],sessionId:this.Xt,windowId:this.je},this.Rt}qt(e,t){this._instance.register_for_session({[Tl]:e}),Z.info(e.replace("_"," "),t),e!=="session_id_changed"&&this.Vt("$recording_started",$({reason:e},t))}gi(e){var t;return e.type===3&&Ql.indexOf((t=e.data)===null||t===void 0?void 0:t.source)!==-1}ri(e){const t=this.gi(e);t||this.de===!0||e.timestamp-this.le>this.te&&(this.de=!0,clearInterval(this.Tn),this.Vt("sessionIdle",{eventTimestamp:e.timestamp,lastActivityTimestamp:this.le,threshold:this.te,bufferLength:this.Rt.data.length,bufferSize:this.Rt.size,sessionId:this.Xt,windowId:this.je}),this.Ye());const{windowId:n,sessionId:r}=this.Yt.checkAndGetSessionAndWindowId(!t,e.timestamp);let i=!1;if(t&&(this.le=e.timestamp,this.de)){const o=this.de==="unknown";this.de=!1,o||(this.Vt("sessionNoLongerIdle",{reason:"user activity",type:e.type}),i=!0)}const s=this.Xt!==r,c=this.je!==n;if(this.je=n,this.Xt=r,s||c){const o=s&&this.de!==!1;o&&(this.de="unknown"),this.ze(o)}else if(t&&this.Rn(),i){var l;const o=["sampled","active"].includes(this.status)||((l=this.re)===null||l===void 0?void 0:l.hasPendingTriggers(this.sessionId));this.he>0&&o&&this.jt(),this.kn(),this.In()}}He(){var e;(e=this.re)===null||e===void 0||e.clearConditionalRecordingPersistence()}get sdkDebugProperties(){var e;return{$recording_status:this.status,$sdk_debug_replay_flush_hold_reason:this.zn,$sdk_debug_replay_internal_buffer_length:this.Rt.data.length,$sdk_debug_replay_internal_buffer_size:this.Rt.size,$sdk_debug_session_start:this._sessionStartTimestamp,$sdk_debug_replay_flushed_size:(e=this.Be)===null||e===void 0?void 0:e.currentTrackedSize(this.sessionId),$sdk_debug_replay_rrweb_error:this.ke,[Rl]:this.yi,[El]:this._e}}get yi(){var e,t,n;return!!this.se&&((e=(t=An())===null||t===void 0||(n=t.isRecording)===null||n===void 0?void 0:n.call(t))===null||e===void 0||e)}Dn(){var e;if(this.se)return;this._e=!0;const t={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,maskAllElementAttributes:!1,maskAttributeFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,inlineStylesheetBudgetRules:1e4,recordCrossOriginIframes:!1,sampling:void 0,attributeFilter:void 0},n=this._instance.config.session_recording;for(const[a,u]of Object.entries(n||{}))if(a in t)if(a==="maskInputOptions")t.maskInputOptions=$({password:!0},u);else if(a==="sampling"){const h=u??{},d={};V(h.mousemove)||(d.mousemove=h.mousemove),V(h.mouseInteraction)||(d.mouseInteraction=h.mouseInteraction),t.sampling=d}else t[a]=u;var r,i,s,c;n?.captureJsonLd===!0&&t.slimDOMOptions!==!0&&t.slimDOMOptions!=="all"&&(t.slimDOMOptions=$($({},t.slimDOMOptions),{},{script:!0})),this.dn&&this.dn.enabled&&(t.recordCanvas=!0,t.sampling=$($({},t.sampling),{},{canvas:this.dn.fps}),t.dataURLOptions={type:"image/webp",quality:this.dn.quality},t.canvasResolutionScale=this.cn,t.canvasMasking={configured:()=>{var a;return Ne((a=this._instance.config.session_recording)===null||a===void 0||(a=a.canvasCapture)===null||a===void 0?void 0:a.maskRegionsFn)},regionsFn:a=>{var u;const h=(u=this._instance.config.session_recording)===null||u===void 0||(u=u.canvasCapture)===null||u===void 0?void 0:u.maskRegionsFn;if(Ne(h))try{var d;return(d=h(a))!==null&&d!==void 0?d:null}catch(p){return this.Me||(this.Me=!0,Z.warn("canvasCapture.maskRegionsFn threw, canvas frames will be skipped",p)),null}}}),this.ln&&(t.maskAllInputs=(r=this.ln.maskAllInputs)===null||r===void 0||r,t.maskTextSelector=(i=this.ln.maskTextSelector)!==null&&i!==void 0?i:void 0,t.blockSelector=(s=this.ln.blockSelector)!==null&&s!==void 0?s:void 0,t.maskAllElementAttributes=(c=this.ln.maskAllElementAttributes)!==null&&c!==void 0&&c),t.maskAllElementAttributes&&t.maskAttributeFn&&(t.maskAttributeFn=void 0,this.Ce||(this.Ce=!0,Z.warn('`maskAllElementAttributes` and `maskAttributeFn` are mutually exclusive, and `maskAttributeFn` is being ignored. Remove one of the two. Note that `maskAllElementAttributes` can also come from your project\'s "Privacy and masking" settings. See https://posthog.com/docs/session-replay/privacy'))),this.un();const l=An();if(!l)return void Z.error("_startRecorder was called but rrwebRecord is not available. This indicates something has gone wrong.");this.Bn=(e=this.Bn)!==null&&e!==void 0?e:new Bl(l,{refillRate:this._instance.config.session_recording.__mutationThrottlerRefillRate,bucketSize:this._instance.config.session_recording.__mutationThrottlerBucketSize,onBlockedNode:(a,u)=>{const h=`Too many mutations on node '${a}'. Rate limiting. This could be due to SVG animations or something similar`;Z.info(h,{node:u}),this.log("[SessionRecording] "+h,"warn")},onDroppedAttributeMutations:a=>this.fe+=a,bytesRefillRate:this._instance.config.session_recording.__mutationBytesRefillRate,bytesBucketSize:this._instance.config.session_recording.__mutationBytesBucketSize,resyncIntervalMs:this.Mn,onDroppedOversizedMutation:a=>{this.ve===0&&this.log("[SessionRecording] Dropped an oversized DOM mutation to keep the recording playable. The recording will resync with a full snapshot.","warn"),this.ve+=1,this.pe+=a},requestFullSnapshot:()=>this.jt()});const o=this.vn();if(this.se=l($($({emit:a=>{this.onRRwebEmit(a)},plugins:o,errorHandler:(a,u)=>u==="rrweb"&&(this.Ie||(this.Ie=!0,Z.error("rrweb internal error - recording will continue but may be incomplete",a)),!0)},t),{},{recordAfter:"DOMContentLoaded"})),!this.se)return this.ke=!0,void Z.error("rrweb failed to start - Loss of recording data is possible. Check the browser console for rrweb errors.");this.ke=!1,n?.captureJsonLd===!0&&st&&G!=null&&G.MutationObserver&&!this._n&&(this._n=(function(a,u,h){const d=new WeakMap,p=h.getCaptureState||(()=>!0);let f=ea;const m=(function(g,y){const b=y.attributeFilter;return y.maskAllElementAttributes||y.maskAttributeFn||b?.length&&!b.includes("id")?na:k=>{const w=g.getElementById(k);return!!w&&w.nodeName!=="SCRIPT"&&(!y.isRecordedElement||y.isRecordedElement(w))&&!xi(w,y.blockClass,y.blockSelector)}})(a,h),v=g=>{try{const y=p();if(!f||y===!1||!g.isConnected||g.ownerDocument!==a||(function(_,S){return xi(_,S.blockClass,S.blockSelector)||xi(_,S.maskTextClass,S.maskTextSelector)})(g,h))return;const b=(function(_,S=na,M){if(!_||_.length>ea)return null;try{const I=JSON.parse(_),R={maskUrl:M,remainingNodes:2048,exceeded:!1},N=xe(I)?I.map(z=>ca(z,S,R)):ca(I,S,R);if(R.exceeded||De(N)||xe(N)&&(!N.length||N.some(De)))return null;const x=JSON.stringify(N);return x.length>2e4?null:[N,x]}catch{return null}})(g.text,m,h.maskUrl);if(!b)return void d.delete(g);const[k,w]=b;if(De(y))return void d.set(g,w);if(d.get(g)!==w){if(w.length>f)return void(f=0);h.emit(k)&&(d.set(g,w),f-=w.length)}}catch{return}};try{const g=new u(y=>{try{if(!f||p()===!1)return;const b=k=>{for(const w of ua(k))v(w)};for(const k of y)if(k.type==="childList")xn(k.target)&&v(k.target),k.addedNodes.forEach(b);else if(k.type==="characterData"){const w=k.target.parentNode;w&&xn(w)&&v(w)}else k.type==="attributes"&&xn(k.target)&&v(k.target)}catch{return}});return g.observe(a,{attributes:!0,attributeFilter:["type"],characterData:!0,childList:!0,subtree:!0}),{scan(y=!1){f&&p()!==!1&&ua(a.documentElement).forEach(b=>{y&&d.delete(b),v(b)})},stop(){return g.disconnect()}}}catch{return{scan(){},stop(){}}}})(st,G.MutationObserver,{maskUrl:a=>this.mn(a),attributeFilter:t.attributeFilter,blockClass:t.blockClass,blockSelector:t.blockSelector,isRecordedElement:a=>l.mirror.getId(a)>0,maskAllElementAttributes:t.maskAllElementAttributes,maskAttributeFn:t.maskAttributeFn,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,getCaptureState:()=>{var a;return((a=this._instance.config.session_recording)===null||a===void 0?void 0:a.captureJsonLd)!==!0||this.Y.urlBlocked||this.Y.isCurrentUrlBlocked()?null:this.bn()},emit:a=>this.wn(a)}),this.Y.isCurrentUrlBlocked()&&this._n.scan()),this.le=Date.now(),this.de=Ke(this.de)?this.de:"unknown",this.tryAddCustomEvent("$remote_config_received",this.ne),this.Vt("$session_options",{sessionRecordingOptions:t,activePlugins:o.map(a=>a?.name)}),this.Vt("$posthog_config",{config:this._instance.config})}tryAddCustomEvent(e,t){return this.Vt(e,t)}};lt.__PosthogExtensions__=lt.__PosthogExtensions__||{},lt.__PosthogExtensions__.rrwebPlugins={getRecordConsolePlugin:e=>({name:"rrweb/console@1",observer:il,options:e}),getRecordNetworkPlugin:e=>({name:"rrweb/network@1",observer:wl,options:e})},lt.__PosthogExtensions__.rrweb={record:$t,version:"v2",wasMaxDepthReached:()=>Gr,resetMaxDepthState(){Gr=!1,Vr=!1},getLastSnapshotCost:()=>Wn,getMutationCost:()=>$({},Un),getDeferredStylesheetStats:()=>$({},ft),getDiscardedDurationSamples:()=>Dr,getObserverInitFailures:()=>Jr.size?Array.from(Jr):void 0,resetSnapshotCostState(){rt=0,Pr=0,$r=0,kt=0,Dr=0,Be={durationMs:0,stylesheetMs:0,nodeCount:0,cssRuleCount:0,nonDeferrableCssRuleCount:0,deferredStylesheetCount:0},Wn=null,At=null,sn=[],on=0,qn=0,Un={slowestBatchMs:0},ft={deferredCount:0,failedCount:0,abandonedCount:0,totalMs:0,slowestSliceMs:0}}},lt.__PosthogExtensions__.initSessionRecording=(e,t)=>new tc(e,t)})();
109
109
 
110
- //# sourceMappingURL=posthog-recorder-Dby9Z8HR.js.map
110
+ //# sourceMappingURL=posthog-recorder-trUd0BXy.js.map