1import{cR as k,cS as F,cT as D,cU as oe,cV as Oe,cW as g,cX as ze,cY as K,cZ as Le,c_ as Pe,c$ as z,d0 as se,d1 as ie,d2 as re,d3 as ae,d4 as Ve,d5 as H,d6 as L,d7 as T,cO as ue,d8 as B,d9 as G,da as ke,db as y,dc as R,dd as $,de as Fe,df as Ue,dg as P,dh as w,cI as He,di as Be,dj as b,dk as _,dl as M,dm as Ge,dn as $e,dp as Ye,dq as Xe,dr as We,ds as je,dt as qe,du as Je,dv as Ke,cN as Ze,cL as Qe,dw as et,dx as tt,dy as nt,cw as ot,dz as st,cz as it}from"./app-C_ju_lDz.js";/* empty css */const N={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,Change:12},C={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},h={AddString:0,AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10},S={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},I={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},A={Play:0,Pause:1},ce={V1:0,Change:1};function rt(){return Y(1)}function at(){return Y(0)}function ut(){return dt(0)}function ct(){return Y(0)}function dt(e){return de(()=>new Map,e)}function Y(e){return de(()=>new WeakMap,e)}function de(e,n){let t=e(),o=n;const s=i=>t.get(i);return{clear(){o!==n&&(t=e(),o=n)},delete(i){t.delete(i)},get:s,getOrInsert(i){let r=s(i);return r===void 0&&(r=o++,t.set(i,r)),r},get nextId(){return o},get size(){return o-n}}}function le(){return k(F.USE_CHANGE_RECORDS)||k(F.USE_INCREMENTAL_CHANGE_RECORDS)}function fe(){return k(F.USE_INCREMENTAL_CHANGE_RECORDS)}function lt(e){return pe(void 0,void 0,e)}function ft(e,n,t){return pe(e,n,t)}function pe(e,n,t){let o={container:void 0,parentId:e,previousSiblingId:void 0,nextSiblingId:n};const s=i=>o.previousSiblingId===i-1?0:o.nextSiblingId!==void 0?o.nextSiblingId-i:o.parentId!==void 0?i-o.parentId:null;return{advance(i){const r=t.getOrInsert(i),a=s(r);return o.previousSiblingId=r,{nodeId:r,insertionPoint:a}},ascend(){o.container&&(o=o.container)},descend(){o.previousSiblingId!==void 0&&(o={container:o,parentId:o.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function V(e,n){const t=e.tagName,o=e.value;if(D(e,n)){const s=e.type;return t==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||t==="OPTION"?void 0:oe}if(t==="OPTION"||t==="SELECT")return e.value;if(!(t!=="INPUT"&&t!=="TEXTAREA"))return o}const pt=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ht=/^[A-Za-z]+:|^\/\//,gt=/^["']?data:.*,/i;function St(e,n){return e.replace(pt,(t,o,s,i,r,a)=>{const u=s||r||a;if(!n||!u||ht.test(u)||gt.test(u))return t;const d=o||i||"";return`url(${d}${Nt(u,n)}${d})`})}function Nt(e,n){try{return Oe(e,n).href}catch{return e}}const mt=/[^a-z1-6-_]/;function It(e){const n=e.toLowerCase().trim();return mt.test(n)?"div":n}function he(e){return e.tagName.toLowerCase()}function Z(e,n){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${n}' style='background-color:silver'%3E%3C/svg%3E`}function ge(e,n){if(e===void 0||e.length===0)return;const t=s=>{const i=s.cssRules||s.rules,r=Array.from(i,u=>u.cssText);return n.addMetric("cssText",r.reduce((u,d)=>u+d.length,0)),{cssRules:r,disabled:s.disabled||void 0,media:s.media.length>0?Array.from(s.media):void 0}},o=[];for(let s=0;s<e.length;s++)o.push(t(e[s]));return o}const Et=1e6;function X(e,n,t,o){if(n===g.HIDDEN)return null;const s=e.getAttribute(t),i=e.tagName;if(ze(i,t,s,n,o)){if(i==="IMG"){const r=e;if(r.naturalWidth>0)return Z(r.naturalWidth,r.naturalHeight);const{width:a,height:u}=e.getBoundingClientRect();return a>0||u>0?Z(a,u):K}return i==="SOURCE"?K:oe}return s&&Le(s,Et)}function yt(e,n,t){return{...Se(e,n,t),...Ne(e,n,t)}}function Se(e,n,t){if(n===g.HIDDEN)return{};const o={},s=he(e);for(let r=0;r<e.attributes.length;r+=1){const u=e.attributes.item(r).name,d=X(e,n,u,t.scope.configuration);d!==null&&(o[u]=d)}if(e.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const r=V(e,n);r!==void 0&&(o.value=r)}if(s==="option"){const r=e;r.selected&&!D(r,n)?o.selected="":delete o.selected}const i=e;return s==="input"&&(i.type==="radio"||i.type==="checkbox")&&(i.checked&&!D(i,n)?o.checked="":delete o.checked),o}function Ne(e,n,t){if(n===g.HIDDEN)return{};const o={},s=e.ownerDocument,i=he(e);if(i==="link"){const u=Array.from(s.styleSheets).find(l=>l.href===e.href),d=U(u);d&&u&&(t.addMetric("cssText",d.length),o._cssText=d)}if(i==="style"&&e.sheet){const u=U(e.sheet);u&&(t.addMetric("cssText",u.length),o._cssText=u)}if(i==="audio"||i==="video"){const u=e;o.rr_mediaState=u.paused?"paused":"played"}let r,a;switch(t.kind){case 0:r=Math.round(e.scrollTop),a=Math.round(e.scrollLeft),(r||a)&&t.scope.elementsScrollPositions.set(e,{scrollTop:r,scrollLeft:a});break;case 1:t.scope.elementsScrollPositions.has(e)&&({scrollTop:r,scrollLeft:a}=t.scope.elementsScrollPositions.get(e));break}return a&&(o.rr_scrollLeft=a),r&&(o.rr_scrollTop=r),o}function U(e){if(!e)return null;let n;try{n=e.rules||e.cssRules}catch{}if(!n)return null;const t=Array.from(n,Pe()?Tt:me).join("");return St(t,e.href)}function Tt(e){if(Ct(e)&&e.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return e.cssText.replace(n,"$1\\$2")}return me(e)}function me(e){return bt(e)&&U(e.styleSheet)||e.cssText}function bt(e){return"styleSheet"in e}function Ct(e){return"selectorText"in e}function W(e,n,t){switch(e.nodeType){case e.DOCUMENT_NODE:return wt(e,n,t);case e.DOCUMENT_FRAGMENT_NODE:return vt(e,n,t);case e.DOCUMENT_TYPE_NODE:return Mt(e,t);case e.ELEMENT_NODE:return Rt(e,n,t);case e.TEXT_NODE:return _t(e,n,t);case e.CDATA_SECTION_NODE:return Dt(e,t);default:return null}}function j(e,n,t){const o=[];return L(e,s=>{const i=W(s,n,t);i&&o.push(i)}),o}function wt(e,n,t){return{type:C.Document,id:t.assignId(e),childNodes:j(e,n,t),adoptedStyleSheets:ge(e.adoptedStyleSheets,t)}}function vt(e,n,t){const o=H(e);return o&&t.scope.shadowRootsController.addShadowRoot(e,t.scope),{type:C.DocumentFragment,id:t.assignId(e),childNodes:j(e,n,t),isShadowRoot:o,adoptedStyleSheets:o?ge(e.adoptedStyleSheets,t):void 0}}function Mt(e,n){return{type:C.DocumentType,id:n.assignId(e),name:e.name,publicId:e.publicId,systemId:e.systemId}}function Rt(e,n,t){const o=It(e.tagName),s=xt(e)||void 0,i=se(ie(e),n);if(i===g.HIDDEN){const{width:d,height:l}=e.getBoundingClientRect();return{type:C.Element,id:t.assignId(e),tagName:o,attributes:{rr_width:`${d}px`,rr_height:`${l}px`,[ae]:re},childNodes:[],isSVG:s}}if(i===g.IGNORE)return null;const r=t.assignId(e),a=yt(e,i,t);let u=[];return Ve(e)&&o!=="style"&&(u=j(e,i,t)),{type:C.Element,id:r,tagName:o,attributes:a,childNodes:u,isSVG:s}}function xt(e){return e.tagName==="svg"||e instanceof SVGElement}function _t(e,n,t){const o=z(e,n);return o===void 0?null:{type:C.Text,id:t.assignId(e),textContent:o}}function Dt(e,n){return{type:C.CDATA,id:n.assignId(e),textContent:""}}function q(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function O(e,n,t){e[n].count+=1,e[n].max=Math.max(e[n].max,t),e[n].sum+=t}function At(e,n){for(const t of["cssText","serializationDuration"])e[t].count+=n[t].count,e[t].max=Math.max(e[t].max,n[t].max),e[t].sum+=n[t].sum}function Ot(e){let n={};const t=i=>{for(let r=0,a=i.length;r<a;r++){const u=i[r];if(typeof u=="string"){const d=e.size;i[r]=e.getOrInsert(u),e.size>d&&o(h.AddString,u)}else Array.isArray(u)&&t(u)}},o=(i,r)=>{i in n||(n[i]=[i]),i!==h.AddString&&Array.isArray(r)&&t(r),n[i].push(r)};return{add:o,flush:()=>{const i=[];return[h.AddString,h.AddNode,h.RemoveNode,h.Attribute,h.Text,h.Size,h.ScrollPosition,h.AddStyleSheet,h.AttachedStyleSheets,h.MediaPlaybackState,h.VisualViewport].forEach(r=>{const a=n[r];a&&i.push(a)}),n={},i}}}function Ie(e,n,t,o,s){const i=[],r=q(),a={add(d){i.push(d)},addMetric(d,l){O(r,d,l)},assignId(d){const l=o.nodeIds.getOrInsert(d);
1return a.serializedNodeIds&&a.serializedNodeIds.add(l),l},kind:e,scope:o},u=T();s(a),O(r,"serializationDuration",ue(u,T()));for(const d of i)n(d);t(r)}function Ee(e,n,t,o,s,i){const r=Ot(o.stringIds),a=q(),u={addMetric(c,f){O(a,c,f)},addNode(...c){r.add(h.AddNode,c)},addStyleSheet(c,f,p){p?r.add(h.AddStyleSheet,[c,f||[],p]):f?r.add(h.AddStyleSheet,[c,f]):r.add(h.AddStyleSheet,[c])},attachStyleSheets(c,f){const p=[c];for(const m of f)p.push(m);r.add(h.AttachedStyleSheets,p)},removeNode(c){r.add(h.RemoveNode,c)},setAttributes(c){r.add(h.Attribute,c)},setMediaPlaybackState(c,f){r.add(h.MediaPlaybackState,[c,f])},setScrollPosition(c,f,p){r.add(h.ScrollPosition,[c,f,p])},setSize(c,f,p){r.add(h.Size,[c,f,p])},setText(c,f){r.add(h.Text,[c,f])},kind:e,scope:o},d=T();i(u),O(a,"serializationDuration",ue(d,T()));const l=r.flush();l.length>0&&n(e===0||e===1?{data:l,format:ce.Change,type:N.FullSnapshot,timestamp:s}:{data:l,type:N.Change,timestamp:s}),t(a)}function zt(e,n,t,o,s,i){Ie(n,o,s,i,r=>{const a=r.scope.configuration.defaultPrivacyLevel,d={data:{node:W(t,a,r),initialOffset:{left:G(),top:B()}},format:ce.V1,type:N.FullSnapshot,timestamp:e};r.add(d),i.serializeObservable.notify({type:"full",kind:n,target:t,timestamp:e,v1:d})})}function J(e,n,t,o){var s;if(((s=n.parentNode)===null||s===void 0?void 0:s.nodeName)==="STYLE"||t===g.HIDDEN||t===g.IGNORE)return;let i;const r=ie(n);if(r?i=se(r,t):i=t,i===g.HIDDEN){Ht(e,n,o);return}if(i!==g.IGNORE){switch(n.nodeType){case n.CDATA_SECTION_NODE:Ut(e,n,o);break;case n.DOCUMENT_NODE:Lt(e,n,o);break;case n.DOCUMENT_FRAGMENT_NODE:Pt(e,n,o);break;case n.DOCUMENT_TYPE_NODE:Vt(e,n,o);break;case n.ELEMENT_NODE:kt(e,n,i,o);break;case n.TEXT_NODE:Ft(e,n,i,o);break;default:return}switch(n.nodeType){case n.CDATA_SECTION_NODE:case n.DOCUMENT_TYPE_NODE:case n.TEXT_NODE:return}e.descend(),L(n,a=>{J(e,a,i,o)}),e.ascend()}}function Lt(e,n,t){const{nodeId:o,insertionPoint:s}=e.advance(n);t.addNode(s,"#document"),t.setScrollPosition(o,G(),B()),ye(n.adoptedStyleSheets,o,t)}function Pt(e,n,t){const{nodeId:o,insertionPoint:s}=e.advance(n);if(!H(n)){t.addNode(s,"#document-fragment");return}t.addNode(s,"#shadow-root"),t.scope.shadowRootsController.addShadowRoot(n,t.scope),ye(n.adoptedStyleSheets,o,t)}function Vt(e,n,t){const{insertionPoint:o}=e.advance(n);t.addNode(o,"#doctype",n.name,n.publicId,n.systemId)}function kt(e,n,t,o){const{nodeId:s,insertionPoint:i}=e.advance(n),r=Object.entries(Se(n,t,o));o.addNode(i,Te(n),...r);const{_cssText:a,rr_mediaState:u,rr_scrollLeft:d,rr_scrollTop:l}=Ne(n,t,o),c=n;if(a!==void 0&&c.sheet){const f=o.scope.styleSheetIds.getOrInsert(c.sheet);o.addStyleSheet(a),o.attachStyleSheets(s,[f])}u==="played"?o.setMediaPlaybackState(s,A.Play):u==="paused"&&o.setMediaPlaybackState(s,A.Pause),(d!==void 0||l!==void 0)&&o.setScrollPosition(s,d||0,l||0)}function Ft(e,n,t,o){const s=z(n,t);if(s===void 0)return;const{insertionPoint:i}=e.advance(n);o.addNode(i,"#text",s)}function Ut(e,n,t){const{insertionPoint:o}=e.advance(n);t.addNode(o,"#cdata-section")}function Ht(e,n,t){if(!ke(n))return;const{nodeId:o,insertionPoint:s}=e.advance(n);t.addNode(s,Te(n),[ae,re]);const{width:i,height:r}=n.getBoundingClientRect();t.setSize(o,i,r)}function ye(e,n,t){!e||e.length===0||t.attachStyleSheets(n,e.map(o=>Bt(o,t)))}function Bt(e,n){const t=Array.from(e.cssRules||e.rules,s=>s.cssText),o=e.media.length>0?Array.from(e.media):void 0;return n.addMetric("cssText",t.reduce((s,i)=>s+i.length,0)),n.addStyleSheet(t,o,e.disabled),n.scope.styleSheetIds.getOrInsert(e)}function Te(e){const n=e.nodeName;return Gt(e)?`svg>${n}`:n}function Gt(e){return e.namespaceURI==="http://www.w3.org/2000/svg"}function $t(e,n,t,o,s,i){i.resetIds(),Ee(n,o,s,i,e,r=>{J(lt(i.nodeIds),t,i.configuration.defaultPrivacyLevel,r)})}function E(e,n,t=T()){return{data:{source:e,...n},type:N.IncrementalSnapshot,timestamp:t}}function Yt(e,n,t,o,s){Ie(2,t,o,s,i=>Xt(e,n,i))}function Xt(e,n,t){const o=new Map;n.filter(c=>c.type==="childList").forEach(c=>{c.removedNodes.forEach(f=>{be(f,t.scope.shadowRootsController.removeShadowRoot)})});const s=n.filter(c=>c.target.isConnected&&Kt(c.target,t.scope.nodeIds)&&y(c.target,t.scope.configuration.defaultPrivacyLevel,o)!==g.HIDDEN),{adds:i,removes:r,hasBeenSerialized:a}=Wt(s.filter(c=>c.type==="childList"),o,t),u=jt(s.filter(c=>c.type==="characterData"&&!a(c.target)),o,t),d=qt(s.filter(c=>c.type==="attributes"&&!a(c.target)),o,t);if(!u.length&&!d.length&&!r.length&&!i.length)return;const l=E(S.Mutation,{adds:i,removes:r,texts:u,attributes:d},e);t.add(l),t.scope.serializeObservable.notify({type:"incremental",target:n,timestamp:e,v1:l})}function Wt(e,n,t){const o=new Set,s=new Map;
1for(const l of e)l.addedNodes.forEach(c=>{o.add(c)}),l.removedNodes.forEach(c=>{o.has(c)||s.set(c,l.target),o.delete(c)});const i=Array.from(o);Jt(i),t.serializedNodeIds=new Set;const r=[];for(const l of i){if(u(l))continue;const c=y(l.parentNode,t.scope.configuration.defaultPrivacyLevel,n);if(c===g.HIDDEN||c===g.IGNORE)continue;const f=W(l,c,t);if(!f)continue;const p=R(l);r.push({nextId:d(l),parentId:t.scope.nodeIds.get(p),node:f})}const a=[];return s.forEach((l,c)=>{const f=t.scope.nodeIds.get(l),p=t.scope.nodeIds.get(c);f!==void 0&&p!==void 0&&a.push({parentId:f,id:p})}),{adds:r,removes:a,hasBeenSerialized:u};function u(l){var c;const f=t.scope.nodeIds.get(l);return f!==void 0&&((c=t.serializedNodeIds)===null||c===void 0?void 0:c.has(f))}function d(l){let c=l.nextSibling;for(;c;){const f=t.scope.nodeIds.get(c);if(f!==void 0)return f;c=c.nextSibling}return null}}function jt(e,n,t){var o;const s=[],i=new Set,r=e.filter(a=>i.has(a.target)?!1:(i.add(a.target),!0));for(const a of r){if(a.target.textContent===a.oldValue)continue;const d=t.scope.nodeIds.get(a.target);if(d===void 0)continue;const l=y(R(a.target),t.scope.configuration.defaultPrivacyLevel,n);l===g.HIDDEN||l===g.IGNORE||s.push({id:d,value:(o=z(a.target,l))!==null&&o!==void 0?o:null})}return s}function qt(e,n,t){const o=[],s=new Map,i=e.filter(a=>{const u=s.get(a.target);return u&&u.has(a.attributeName)?!1:(u?u.add(a.attributeName):s.set(a.target,new Set([a.attributeName])),!0)}),r=new Map;for(const a of i){if(a.target.getAttribute(a.attributeName)===a.oldValue)continue;const d=t.scope.nodeIds.get(a.target);if(d===void 0)continue;const l=y(a.target,t.scope.configuration.defaultPrivacyLevel,n),c=X(a.target,l,a.attributeName,t.scope.configuration);let f;if(a.attributeName==="value"){const m=V(a.target,l);if(m===void 0)continue;f=m}else typeof c=="string"?f=c:f=null;let p=r.get(a.target);p||(p={id:d,attributes:{}},o.push(p),r.set(a.target,p)),p.attributes[a.attributeName]=f}return o}function Jt(e){e.sort((n,t)=>{const o=n.compareDocumentPosition(t);return o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_FOLLOWING?1:o&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function be(e,n){$(e)&&n(e.shadowRoot),L(e,t=>be(t,n))}function Kt(e,n){let t=e;for(;t;){if(n.get(t)===void 0&&!H(t))return!1;t=R(t)}return!0}function Zt(e,n,t,o,s){Ee(2,t,o,s,e,i=>Qt(n,i))}function Qt(e,n){const t=new Set,o=new Map,s=new Map,i=new Set;for(const u of e)switch(u.type){case"attributes":{const d=u.target;let l=o.get(d);l||(l=new Map,o.set(d,l));const c=u.attributeName;l.has(c)||l.set(c,u.oldValue);break}case"characterData":s.has(u.target)||s.set(u.target,u.oldValue);break;case"childList":for(let d=0;d<u.addedNodes.length;d++)t.add(u.addedNodes[d]);for(let d=0;d<u.removedNodes.length;d++)i.add(u.removedNodes[d]);break}const r=n.scope.nodeIds.nextId,a=new Map;en(i,n),tn(t,a,n),nn(s,r,a,n),on(o,r,a,n)}function en(e,n){const t=n.scope.nodeIds;for(const o of e){const s=t.get(o);s!==void 0&&(Ce(o,i=>{$(i)&&n.scope.shadowRootsController.removeShadowRoot(i.shadowRoot),t.delete(i)}),n.removeNode(s))}}function tn(e,n,t){const o=t.scope.nodeIds;for(const s of e){if(!s.isConnected||o.get(s)!==void 0)continue;const r=R(s);if(!r)continue;const a=o.get(r);if(a===void 0)continue;const u=y(r,t.scope.configuration.defaultPrivacyLevel,n),d=sn(s,o);J(ft(a,d,o),s,u,t)}}function nn(e,n,t,o){var s;const i=o.scope.nodeIds;for(const[r,a]of e){if(r.textContent===a||!r.isConnected)continue;const u=i.get(r);if(u===void 0||u>=n)continue;const d=R(r);if(!d)continue;const l=y(d,o.scope.configuration.defaultPrivacyLevel,t);if(l===g.HIDDEN||l===g.IGNORE)continue;const c=(s=z(r,l))!==null&&s!==void 0?s:"";o.setText(u,c)}}function on(e,n,t,o){const s=o.scope.nodeIds;for(const[i,r]of e){if(!i.isConnected)continue;const a=s.get(i);if(a===void 0||a>=n)continue;const u=y(i,o.scope.configuration.defaultPrivacyLevel,t);if(u===g.HIDDEN||u===g.IGNORE)continue;const d=[a];for(const[l,c]of r){if(i.getAttribute(l)===c)continue;if(l==="value"){const p=V(i,u);p!==void 0&&d.push([l,p]);continue}const f=X(i,u,l,o.scope.configuration);f===null?d.push([l]):d.push([l,f])}d.length>1&&o.setAttributes(d)}}function sn(e,n){let t=e.nextSibling;for(;t;){const o=n.get(t);if(o!==void 0)return o;t=t.nextSibling}}function Ce(e,n){n(e),L(e,t=>Ce(t,n))}const Q=25;function rn(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>Q||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>Q}const an=(e,n)=>
1{const t=window.visualViewport,o={layoutViewportX:e,layoutViewportY:n,visualViewportX:e,visualViewportY:n};if(t)rn(t)?(o.layoutViewportX=Math.round(e+t.offsetLeft),o.layoutViewportY=Math.round(n+t.offsetTop)):(o.visualViewportX=Math.round(e-t.offsetLeft),o.visualViewportY=Math.round(n-t.offsetTop));else return o;return o},we=e=>({scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width});function un(e,n,t,o,s,i=ve()){ee(T(),0,n,t,s,i);const{unsubscribe:r}=e.subscribe(2,a=>{o(),ee(a.startClocks.timeStamp,1,n,t,s,i)});return{stop:r}}function ee(e,n,t,o,s,i=ve()){const{width:r,height:a}=Fe();t({data:{height:a,href:window.location.href,width:r},type:N.Meta,timestamp:e}),t({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:e}),i(e,n,document,t,o,s),window.visualViewport&&t({data:we(window.visualViewport),type:N.VisualViewport,timestamp:e})}function ve(){return le()?$t:zt}function cn(e,n,t){const o=rt(),s=at(),i=ut(),r=ct(),a={resetIds(){a.eventIds.clear(),a.nodeIds.clear(),a.stringIds.clear(),a.styleSheetIds.clear()},configuration:e,elementsScrollPositions:n,eventIds:o,nodeIds:s,serializeObservable:new Ue,shadowRootsController:t,stringIds:i,styleSheetIds:r};return a}function dn(){const e=new WeakMap;return{set(n,t){n===document&&!document.scrollingElement||e.set(n===document?document.scrollingElement:n,t)},get(n){return e.get(n)},has(n){return e.has(n)}}}function Me(e){return!!e.changedTouches}function x(e){return e.composed===!0&&$(e.target)?e.composedPath()[0]:e.target}const ln=50;function fn(e,n){const{throttled:t,cancel:o}=P(i=>{const r=x(i),a=n.nodeIds.get(r);if(a===void 0)return;const u=Re(i);if(!u)return;const d={id:a,timeOffset:0,x:u.x,y:u.y};e(E(Me(i)?S.TouchMove:S.MouseMove,{positions:[d]}))},ln,{trailing:!1}),{stop:s}=w(n.configuration,document,["mousemove","touchmove"],t,{capture:!0,passive:!0});return{stop:()=>{s(),o()}}}function Re(e){let{clientX:n,clientY:t}=Me(e)?e.changedTouches[0]:e;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=an(n,t);n=o,t=s}if(!(!Number.isFinite(n)||!Number.isFinite(t)))return{x:n,y:t}}const te={pointerup:I.MouseUp,mousedown:I.MouseDown,click:I.Click,contextmenu:I.ContextMenu,dblclick:I.DblClick,focus:I.Focus,blur:I.Blur,touchstart:I.TouchStart,touchend:I.TouchEnd};function pn(e,n){const t=o=>{const s=x(o),i=n.nodeIds.get(s);if(i===void 0||y(s,n.configuration.defaultPrivacyLevel)===g.HIDDEN)return;const r=te[o.type];let a;if(r!==I.Blur&&r!==I.Focus){const u=Re(o);if(!u)return;a={id:i,type:r,x:u.x,y:u.y}}else a={id:i,type:r};e({id:n.eventIds.getOrInsert(o),...E(S.MouseInteraction,a)})};return w(n.configuration,document,Object.keys(te),t,{capture:!0,passive:!0})}const hn=100;function xe(e,n,t){const{throttled:o,cancel:s}=P(r=>{const a=x(r);if(!a)return;const u=t.nodeIds.get(a);if(u===void 0||y(a,t.configuration.defaultPrivacyLevel)===g.HIDDEN)return;const d=a===document?{scrollTop:B(),scrollLeft:G()}:{scrollTop:Math.round(a.scrollTop),scrollLeft:Math.round(a.scrollLeft)};t.elementsScrollPositions.set(a,d),n(E(S.Scroll,{id:u,x:d.scrollLeft,y:d.scrollTop}))},hn),{stop:i}=He(t.configuration,e,"scroll",o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}const gn=200;function Sn(e,n){const t=Be(n.configuration).subscribe(o=>{e(E(S.ViewportResize,o))});return{stop:()=>{t.unsubscribe()}}}function Nn(e,n){const t=window.visualViewport;if(!t)return{stop:b};const{throttled:o,cancel:s}=P(()=>{e({data:we(t),type:N.VisualViewport,timestamp:T()})},gn,{trailing:!1}),{stop:i}=w(n.configuration,t,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}function mn(e,n){return w(n.configuration,document,["play","pause"],t=>{const o=x(t);if(!o)return;const s=n.nodeIds.get(o);s===void 0||y(o,n.configuration.defaultPrivacyLevel)===g.HIDDEN||e(E(S.MediaInteraction,{id:s,type:t.type==="play"?A.Play:A.Pause}))},{capture:!0,passive:!0})}function In(e,n){function t(i,r){if(!i||!i.ownerNode)return;const a=n.nodeIds.get(i.ownerNode);a!==void 0&&r(a)}const o=[_(CSSStyleSheet.prototype,"insertRule",({target:i,parameters:[r,a]})=>{t(i,u=>e(E(S.StyleSheetRule,{id:u,adds:[{rule:r,index:a}]})))}),_(CSSStyleSheet.prototype,"deleteRule",({target:i,parameters:[r]})=>{t(i,a=>e(E(S.StyleSheetRule,{id:a,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?s(CSSGroupingRule):(s(CSSMediaRule),s(CSSSupportsRule));function s(i){o.push(_(i.prototype,"insertRule",({target:r,parameters:[a,u]})=>{t(r.parentStyleSheet,d=>{const l=ne(r);l&&(l.push(u||0),e(E(S.StyleSheetRule,{id:d,adds:[{rule:a,index:l}]})))})}),_(i.prototype,"deleteRule",({target:r,parameters:[a]})=>{t(r.parentStyleSheet,u=>{const d=ne(r);d&&(d.push(a),e(E(S.StyleSheetRule,{id:u,removes:[{index:d}]})))})}))}return{stop:()=>{o.forEach(i=>
1i.stop())}}}function ne(e){const n=[];let t=e;for(;t.parentRule;){const r=Array.from(t.parentRule.cssRules).indexOf(t);n.unshift(r),t=t.parentRule}if(!t.parentStyleSheet)return;const s=Array.from(t.parentStyleSheet.cssRules).indexOf(t);return n.unshift(s),n}function En(e,n){return w(n.configuration,window,["focus","blur"],()=>{e({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:T()})})}function yn(e,n,t){const o=e.subscribe(5,()=>{t(),n({timestamp:T(),type:N.ViewEnd})});return{stop:()=>{o.unsubscribe()}}}function _e(e,n,t){const o=t.configuration.defaultPrivacyLevel,s=new WeakMap,i=e!==document,{stop:r}=w(t.configuration,e,i?["change"]:["input","change"],l=>{const c=x(l);(c instanceof HTMLInputElement||c instanceof HTMLTextAreaElement||c instanceof HTMLSelectElement)&&u(c)},{capture:!0,passive:!0});let a;if(i)a=b;else{const l=[M(HTMLInputElement.prototype,"value",u),M(HTMLInputElement.prototype,"checked",u),M(HTMLSelectElement.prototype,"value",u),M(HTMLTextAreaElement.prototype,"value",u),M(HTMLSelectElement.prototype,"selectedIndex",u)];a=()=>{l.forEach(c=>c.stop())}}return{stop:()=>{a(),r()}};function u(l){const c=y(l,o);if(c===g.HIDDEN)return;const f=l.type;let p;if(f==="radio"||f==="checkbox"){if(D(l,c))return;p={isChecked:l.checked}}else{const v=V(l,c);if(v===void 0)return;p={text:v}}d(l,p);const m=l.name;f==="radio"&&m&&l.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(m)}"]`).forEach(v=>{v!==l&&d(v,{isChecked:!1})})}function d(l,c){const f=t.nodeIds.get(l);if(f===void 0)return;const p=s.get(l);(!p||p.text!==c.text||p.isChecked!==c.isChecked)&&(s.set(l,c),n(E(S.Input,{id:f,...c})))}}const Tn=100,bn=16;function Cn(e){let n=b,t=[];function o(){n(),e(t),t=[]}const{throttled:s,cancel:i}=P(o,bn,{leading:!1});return{addMutations:r=>{t.length===0&&(n=Ge(s,{timeout:Tn})),t.push(...r)},flush:o,stop:()=>{n(),i()}}}function De(e,n,t,o,s=wn()){const i=$e();if(!i)return{stop:b,flush:b};const r=Cn(u=>{s(T(),u.concat(a.takeRecords()),n,t,o)}),a=new i(Ye(r.addMutations));return a.observe(e,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),r.stop()},flush:()=>{r.flush()}}}function wn(){return fe()?Zt:Yt}const vn=(e,n)=>{const t=new Map;return{addShadowRoot:(s,i)=>{if(t.has(s))return;const r=De(s,e,n,i),a=_e(s,e,i),u=xe(s,e,i);t.set(s,{flush:()=>r.flush(),stop:()=>{r.stop(),a.stop(),u.stop()}})},removeShadowRoot:s=>{const i=t.get(s);i&&(i.stop(),t.delete(s))},stop:()=>{t.forEach(({stop:s})=>s())},flush:()=>{t.forEach(({flush:s})=>s())}}};function Mn(e){const{emitRecord:n,emitStats:t,configuration:o,lifeCycle:s}=e;if(!n||!t)throw new Error("emit functions are required");const i=f=>{n(f),Xe("record",{record:f});const p=e.viewHistory.findView();We(p.id)},r=vn(i,t),a=cn(o,dn(),r),{stop:u}=un(s,i,t,d,a);function d(){r.flush(),l.flush()}const l=De(document,i,t,a),c=[l,fn(i,a),pn(i,a),xe(document,i,a),Sn(i,a),_e(document,i,a),mn(i,a),In(i,a),En(i,a),Nn(i,a),yn(s,i,d)];return{stop:()=>{r.stop(),c.forEach(f=>
1f.stop()),u()},flushMutations:d,shadowRootsController:r}}function Rn(e,n,t,o){const s=new FormData;s.append("segment",new Blob([e],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const i={raw_segment_size:o,compressed_segment_size:e.byteLength,...n},r=JSON.stringify(i);return s.append("event",new Blob([r],{type:"application/json"})),{data:s,bytesCount:e.byteLength,cssText:t.cssText,isFullSnapshot:n.index_in_view===0,rawSize:o,recordCount:n.records_count,serializationDuration:t.serializationDuration}}function xn({context:e,creationReason:n,encoder:t}){let o=0;const s=e.view.id,i=je(s),r={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:i,source:"browser",...e},a=q();qe(s);function u(c,f){r.start=Math.min(r.start,c.timestamp),r.end=Math.max(r.end,c.timestamp),r.records_count+=1,r.has_full_snapshot||(r.has_full_snapshot=c.type===N.FullSnapshot||c.type===N.Change&&r.index_in_view===0);const p=t.isEmpty?'{"records":[':",";t.write(p+JSON.stringify(c),m=>{o+=m,f(o)})}function d(c){At(a,c)}function l(c){if(t.isEmpty)throw new Error("Empty segment flushed");t.write(`],${JSON.stringify(r).slice(1)} 2`),t.finish(f=>{Je(r.view.id,f.rawBytesCount),c(r,a,f)})}return{addRecord:u,addStats:d,flush:l}}const _n=5*et;let Ae=6e4;function Dn(e,n,t,o,s,i){return An(e,()=>On(n.applicationId,t,o),s,i)}function An(e,n,t,o){let s={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:i}=e.subscribe(2,()=>{a("view_change")}),{unsubscribe:r}=e.subscribe(11,u=>{a(u.reason)});function a(u){s.status===1&&(s.segment.flush((d,l,c)=>{const f=Rn(c.output,d,l,c.rawBytesCount);Ke(u)?t.sendOnExit(f):t.send(f)}),Ze(s.expirationTimeoutId)),u!=="stop"?s={status:0,nextSegmentCreationReason:u}:s={status:2}}return{addRecord:u=>{if(s.status!==2){if(s.status===0){const d=n();if(!d)return;s={status:1,segment:xn({encoder:o,context:d,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:Qe(()=>{a("segment_duration_limit")},_n)}}s.segment.addRecord(u,d=>{d>Ae&&a("segment_bytes_limit")})}},addStats:u=>{s.status===1&&s.segment.addStats(u)},stop:()=>{a("stop"),i(),r()}}}function On(e,n,t){const o=n.findTrackedSession(),s=t.findView();if(!(!o||!s))return{application:{id:e},session:{id:o.id},view:{id:s.id}}}function zn(e,n){if(!e.metricsEnabled)return{stop:b};const{unsubscribe:t}=n.subscribe(o=>{if(o.type==="failure"||o.type==="queue-full"||o.type==="success"&&o.payload.isFullSnapshot){const s=Ln(o.type,o.bandwidth,o.payload);tt("Segment network request metrics",{metrics:s})}});return{stop:t}}function Ln(e,n,t){return{cssText:{count:t.cssText.count,max:t.cssText.max,sum:t.cssText.sum},encoding:{fullSnapshot:le()?"change":"v1",incrementalSnapshot:fe()?"change":"v1"},isFullSnapshot:t.isFullSnapshot,ongoingRequests:{count:n.ongoingRequestCount,totalSize:n.ongoingByteCount},recordCount:t.recordCount,result:e,serializationDuration:{count:t.serializationDuration.count,max:t.serializationDuration.max,sum:t.serializationDuration.sum},size:{compressed:t.bytesCount,raw:t.rawSize}}}function Pn(e){const n=nt();return{addRecord:t=>{const o=e.findView();n.send("record",t,o.id)}}}function Fn(e,n,t,o,s,i,r){const a=[],u=p=>{e.notify(14,{error:p}),it("Error reported to customer",{"error.message":p.message})},d=r||ot([n.sessionReplayEndpointBuilder],u,Ae);let l,c;if(st())({addRecord:l}=Pn(o)),c=b;else{const p=Dn(e,n,t,o,d,s);l=p.addRecord,c=p.addStats,a.push(p.stop);const m=zn(i,d.observable);a.push(m.stop)}const{stop:f}=Mn({emitRecord:l,emitStats:c,configuration:n,lifeCycle:e,viewHistory:o});return a.push(f),{stop:()=>{a.forEach(p=>p())}}}export{Fn as startRecording}; 3//# sourceMappingURL=startRecording-asV0QLJl.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.