@seanhogg/builderforce-insights 2026.11.30 → 2026.11.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/replay/manifest.json +4 -4
- package/dist/assets/replay/r/{recorder.efbf70969285.js → recorder.8e54021cf50e.js} +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +92 -0
- package/dist/errors.d.ts +92 -0
- package/dist/errors.global.js.map +1 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/feedback.cjs.map +1 -1
- package/dist/feedback.d.cts +175 -0
- package/dist/feedback.d.ts +175 -0
- package/dist/feedback.global.js.map +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/index.d.cts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/recorder.js +1 -1
- package/dist/replay.cjs.map +1 -1
- package/dist/replay.d.cts +80 -0
- package/dist/replay.d.ts +80 -0
- package/dist/replay.global.js.map +1 -1
- package/dist/replay.mjs.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +22 -0
- package/dist/server.d.ts +22 -0
- package/dist/server.mjs.map +1 -1
- package/dist/types-BfQtGtbS.d.cts +68 -0
- package/dist/types-BfQtGtbS.d.ts +68 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"latest": {
|
|
3
|
-
"version": "2026.11.
|
|
4
|
-
"url": "https://cdn.builderforce.ai/replay/r/recorder.
|
|
5
|
-
"hash": "
|
|
6
|
-
"builtAt": "2026-11-
|
|
3
|
+
"version": "2026.11.31",
|
|
4
|
+
"url": "https://cdn.builderforce.ai/replay/r/recorder.8e54021cf50e.js",
|
|
5
|
+
"hash": "8e54021cf50e",
|
|
6
|
+
"builtAt": "2026-11-28T23:24:18.879Z"
|
|
7
7
|
},
|
|
8
8
|
"player": {
|
|
9
9
|
"url": "https://cdn.builderforce.ai/replay/r/player.35d774f1c2e0.js",
|
|
@@ -127,7 +127,7 @@ or you can use record.mirror to access the mirror instance during recording.`,xs
|
|
|
127
127
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
128
128
|
`,ks=typeof self<"u"&&self.Blob&&new Blob([Ro],{type:"text/javascript;charset=utf-8"});function Ku(e){let t;try{if(t=ks&&(self.URL||self.webkitURL).createObjectURL(ks),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Ro),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var cn=class{constructor(t){_(this,"pendingCanvasMutations",new Map),_(this,"rafStamps",{latestId:0,invokeId:null}),_(this,"mirror"),_(this,"mutationCb"),_(this,"resetObservers"),_(this,"frozen",!1),_(this,"locked",!1),_(this,"processMutation",(u,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(u)||this.pendingCanvasMutations.set(u,[]),this.pendingCanvasMutations.get(u).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:a,recordCanvas:c,dataURLOptions:h}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(i,n,a),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,a,{dataURLOptions:h})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,n,a){let c=Os(r,i,n,!0),h=new Map,u=new Ku;u.onmessage=m=>{let{id:d}=m.data;if(h.set(d,!1),!("base64"in m.data))return;let{base64:g,type:w,width:b,height:S}=m.data;this.mutationCb({id:d,type:ze["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:w}]},0,0]}]})};let p=1e3/t,s=0,f,l=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(d=>{he(d,i,n,!0)||m.push(d)}),m},o=m=>{if(s&&m-s<p){f=requestAnimationFrame(o);return}s=m,l().forEach(async d=>{var g;let w=this.mirror.getId(d);if(h.get(w)||d.width===0||d.height===0)return;if(h.set(w,!0),["webgl","webgl2"].includes(d.__context)){let S=d.getContext(d.__context);((g=S?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}let b=await createImageBitmap(d);u.postMessage({id:w,bitmap:b,width:d.width,height:d.height,dataURLOptions:a.dataURLOptions},[b])}),f=requestAnimationFrame(o)};f=requestAnimationFrame(o),this.resetObservers=()=>{c(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=Os(t,r,i,!1),a=zu(this.processMutation.bind(this),t,r,i),c=ju(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),a(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(c=>{let{type:h,...u}=c;return u}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:n}),this.pendingCanvasMutations.delete(t)}},fn=class{constructor(t){_(this,"trackedLinkElements",new WeakSet),_(this,"mutationCb"),_(this,"adoptedStyleSheetCb"),_(this,"styleMirror",new sn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),n.push({styleId:c,rules:Array.from(a.rules||CSSRule,(h,u)=>({rule:Ps(h,a.href),index:u}))})),i.styleIds.push(c)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},dn=class{constructor(){_(this,"nodeMap",new WeakMap),_(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},re,yt,Zr,Mt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ui=e.contentWindow)==null?void 0:ui.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var we=rl();function Oe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:h=null,maskTextClass:u="rr-mask",maskTextSelector:p=null,inlineStylesheet:s=!0,maskAllInputs:f,maskInputOptions:l,slimDOMOptions:o,maskInputFn:m,maskTextFn:d,hooks:g,packFn:w,sampling:b={},dataURLOptions:S={},mousemoveWait:E,recordDOM:v=!0,recordCanvas:y=!1,recordCrossOriginIframes:x=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:T=!1,collectFonts:O=!1,inlineImages:W=!1,plugins:F,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:ae=new Set([]),errorHandler:ie}=e;Mu(ie);let V=x?window.parent===window:!0,z=!1;if(!V)try{window.parent.document&&(z=!1)}catch{z=!0}if(V&&!t)throw new Error("emit function is required");if(!V&&!z)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),we.reset();let X=f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l!==void 0?l:{password:!0},ne=$s(o);xu();let J,H=0,se=N=>{for(let L of F||[])L.eventProcessor&&(N=L.eventProcessor(N));return w&&!z&&(N=w(N)),N};re=(N,L)=>{var P;let B=N;if(B.timestamp=Je(),(P=De[0])!=null&&P.isFrozen()&&B.type!==Y.FullSnapshot&&!(B.type===Y.IncrementalSnapshot&&B.data.source===K.Mutation)&&De.forEach(q=>q.unfreeze()),V)t?.(se(B),L);else if(z){let q={type:"rrweb",event:se(B),origin:window.location.origin,isCheckout:L};window.parent.postMessage(q,"*")}if(B.type===Y.FullSnapshot)J=B,H=0;else if(B.type===Y.IncrementalSnapshot){if(B.data.source===K.Mutation&&B.data.isAttachIframe)return;H++;let q=i&&H>=i,U=r&&B.timestamp-J.timestamp>r;(q||U)&&yt(!0)}};let k=N=>{re({type:Y.IncrementalSnapshot,data:{source:K.Mutation,...N}})},me=N=>re({type:Y.IncrementalSnapshot,data:{source:K.Scroll,...N}}),A=N=>re({type:Y.IncrementalSnapshot,data:{source:K.CanvasMutation,...N}}),j=N=>re({type:Y.IncrementalSnapshot,data:{source:K.AdoptedStyleSheet,...N}}),Q=new fn({mutationCb:k,adoptedStyleSheetCb:j}),M=new ln({mirror:we,mutationCb:k,stylesheetManager:Q,recordCrossOriginIframes:x,wrappedEmit:re});for(let N of F||[])N.getMirror&&N.getMirror({nodeMirror:we,crossOriginIframeMirror:M.crossOriginIframeMirror,crossOriginIframeStyleMirror:M.crossOriginIframeStyleMirror});let I=new dn;Zr=new cn({recordCanvas:y,mutationCb:A,win:window,blockClass:n,blockSelector:a,mirror:we,sampling:b.canvas,dataURLOptions:S});let D=new un({mutationCb:k,scrollCb:me,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:p,inlineStylesheet:s,maskInputOptions:X,dataURLOptions:S,maskTextFn:d,maskInputFn:m,recordCanvas:y,inlineImages:W,sampling:b,slimDOMOptions:ne,iframeManager:M,stylesheetManager:Q,canvasManager:Zr,keepIframeSrcFn:R,processedNodeManager:I},mirror:we});yt=(N=!1)=>{if(!v)return;re({type:Y.Meta,data:{href:window.location.href,width:lo(),height:ao()}},N),Q.reset(),D.init(),De.forEach(P=>P.lock());let L=Il(document,{mirror:we,blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:p,inlineStylesheet:s,maskAllInputs:X,maskTextFn:d,maskInputFn:m,slimDOM:ne,dataURLOptions:S,recordCanvas:y,inlineImages:W,onSerialize:P=>{fo(P,we)&&M.addIframe(P),ho(P,we)&&Q.trackLinkElement(P),nn(P)&&D.addShadowRoot($.shadowRoot(P),document)},onIframeLoad:(P,B)=>{M.attachIframe(P,B),D.observeAttachShadow(P)},onStylesheetLoad:(P,B)=>{Q.attachLinkElement(P,B)},keepIframeSrcFn:R});if(!L)return console.warn("Failed to snapshot the document");re({type:Y.FullSnapshot,data:{node:L,initialOffset:oo(window)}},N),De.forEach(P=>P.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};try{let N=[],L=B=>{var q;return G(Wu)({mutationCb:k,mousemoveCb:(U,ue)=>re({type:Y.IncrementalSnapshot,data:{source:ue,positions:U}}),mouseInteractionCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.MouseInteraction,...U}}),scrollCb:me,viewportResizeCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.ViewportResize,...U}}),inputCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.Input,...U}}),mediaInteractionCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.MediaInteraction,...U}}),styleSheetRuleCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.StyleSheetRule,...U}}),styleDeclarationCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.StyleDeclaration,...U}}),canvasMutationCb:A,fontCb:U=>re({type:Y.IncrementalSnapshot,data:{source:K.Font,...U}}),selectionCb:U=>{re({type:Y.IncrementalSnapshot,data:{source:K.Selection,...U}})},customElementCb:U=>{re({type:Y.IncrementalSnapshot,data:{source:K.CustomElement,...U}})},blockClass:n,ignoreClass:c,ignoreSelector:h,maskTextClass:u,maskTextSelector:p,maskInputOptions:X,inlineStylesheet:s,sampling:b,recordDOM:v,recordCanvas:y,inlineImages:W,userTriggeredOnInput:T,collectFonts:O,doc:B,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:R,blockSelector:a,slimDOMOptions:ne,dataURLOptions:S,mirror:we,iframeManager:M,stylesheetManager:Q,shadowDomManager:D,processedNodeManager:I,canvasManager:Zr,ignoreCSSAttributes:ae,plugins:((q=F?.filter(U=>U.observer))==null?void 0:q.map(U=>({observer:U.observer,options:U.options,callback:ue=>re({type:Y.Plugin,data:{plugin:U.name,payload:ue}})})))||[]},g)};M.addLoadListener(B=>{try{N.push(L(B.contentDocument))}catch(q){console.warn(q)}});let P=()=>{yt(),N.push(L(document)),Mt=!0};return["interactive","complete"].includes(document.readyState)?P():(N.push(de("DOMContentLoaded",()=>{re({type:Y.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&P()})),N.push(de("load",()=>{re({type:Y.Load,data:{}}),C==="load"&&P()},window))),()=>{N.forEach(B=>{try{B()}catch(q){String(q).toLowerCase().includes("cross-origin")||console.warn(q)}}),I.destroy(),Mt=!1,Ou()}}catch(N){console.warn(N)}}Oe.addCustomEvent=(e,t)=>{if(!Mt)throw new Error("please add custom event after start recording");re({type:Y.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{De.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!Mt)throw new Error("please take full snapshot after start recording");yt(e)};Oe.mirror=we;var Ts;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ts||(Ts={}));var sf=5*1e3;var{addCustomEvent:of}=Oe,{freezePage:af}=Oe,{takeFullSnapshot:lf}=Oe;function Gu(e){let t=e.getAttribute("aria-label");if(t)return t.trim().slice(0,120);let r=(e.textContent??"").replace(/\s+/g," ").trim();return r?r.slice(0,120):(e.getAttribute("title")??e.getAttribute("placeholder")??"").trim().slice(0,120)}function Yu(e){let t=[],r=e,i=0;for(;r&&i<4&&r.nodeType===1;){let n=r.tagName.toLowerCase();if(r.id){n+=`#${r.id}`,t.unshift(n);break}let a=(r.getAttribute("class")??"").split(/\s+/).filter(Boolean)[0];a&&(n+=`.${a}`),t.unshift(n),r=r.parentElement,i++}return t.join(" > ").slice(0,400)}function Tn(e){let t=e.getAttribute("data-testid")??e.getAttribute("data-test-id");if(t)return{selector:`getByTestId(${JSON.stringify(t)})`,label:t};let r=e.getAttribute("role")??An(e),i=Gu(e);return r&&i?{selector:`getByRole(${JSON.stringify(r)}, { name: ${JSON.stringify(i)} })`,label:i}:i?{selector:`getByText(${JSON.stringify(i)})`,label:i}:{selector:Yu(e),label:e.tagName.toLowerCase()}}function An(e){let t=e.tagName.toLowerCase();if(t==="a")return"link";if(t==="button")return"button";if(t==="input"){let r=(e.getAttribute("type")??"text").toLowerCase();return r==="submit"||r==="button"?"button":r==="checkbox"?"checkbox":r==="radio"?"radio":"textbox"}return t==="select"?"combobox":t==="textarea"?"textbox":/^h[1-6]$/.test(t)?"heading":null}var Mo=["page","click","event","rage","dead","quickback","excessive_scroll","error","vital","scroll"];function Nn(e){return typeof e=="string"&&Mo.includes(e)}var nt=50;function Co(e,t){if(!Number.isFinite(e)||!Number.isFinite(t)||t<=0)return 0;let r=Math.floor(e/t*nt);return Math.min(nt-1,Math.max(0,r))}function Dn(e,t,r,i){return{gx:Co(e,r),gy:Co(t,i)}}var Ie={rage:{minClicks:3,windowMs:700,radiusPx:30},dead:{waitMs:500},quickBack:{maxDwellMs:7e3},excessiveScroll:{reversals:3,reversalWindowMs:5e3,viewportHeights:3,travelWindowMs:1e4}},Qu=new Set(["a","button","input","select","textarea","summary","option","details","label"]),Xu=new Set(["button","link","checkbox","radio","tab","menuitem","menuitemcheckbox","menuitemradio","switch","textbox","combobox","slider","spinbutton","searchbox","option","listbox"]);function Ju(e){let t=e.tagName.toLowerCase();if(Qu.has(t))return!0;let r=(e.getAttribute("role")??An(e)??"").toLowerCase();if(r&&Xu.has(r)||(e.getAttribute("contenteditable")??"").toLowerCase()==="true")return!0;let i=e.getAttribute("tabindex");return!!(i!==null&&Number(i)>=0||e.getAttribute("onclick")||e.getAttribute("href"))}function _n(e){let t=e,r=0;for(;t&&r<8;){if(Ju(t))return!1;t=t.parentElement,r+=1}return!0}function Pn(e,t={}){let r=t.minClicks??Ie.rage.minClicks,i=t.windowMs??Ie.rage.windowMs,n=t.radiusPx??Ie.rage.radiusPx;if(e.length<r)return!1;let a=e[e.length-1],c=n*n,h=0;for(let u=e.length-1;u>=0;u--){let p=e[u];if(a.t-p.t>i)break;let s=p.x-a.x,f=p.y-a.y;s*s+f*f<=c&&(h+=1)}return h>=r}function Ln(e,t={}){let r=t.maxDwellMs??Ie.quickBack.maxDwellMs;if(e.length<3)return!1;let i=e[e.length-3],n=e[e.length-2],a=e[e.length-1];if(i.path!==a.path||i.path===n.path)return!1;let c=a.t-n.t;return c>=0&&c<r}function Fn(e,t,r,i={}){let n=Ie.excessiveScroll,a=i.reversals??n.reversals,c=i.reversalWindowMs??n.reversalWindowMs,h=i.viewportHeights??n.viewportHeights,u=i.travelWindowMs??n.travelWindowMs;if(e.length<2)return!1;let p=e[e.length-1].t,s=0,f=0;for(let m=1;m<e.length;m++){let d=e[m-1],g=e[m],w=g.y-d.y,b=w>0?1:w<0?-1:0;b!==0&&(f!==0&&b!==f&&p-g.t<=c&&(s+=1),f=b)}if(s>=a)return!0;let l=p-u;if(r!==null&&r>=l||!(t>0))return!1;let o=0;for(let m=1;m<e.length;m++){let d=e[m];d.t<l||(o+=Math.abs(d.y-e[m-1].y))}return o>h*t}var ye={maxChunkBytes:512e3,maxEventsPerChunk:5e3,flushMs:5e3,maxMarksPerVisit:300,maxTagsPerVisit:20,bufferMs:6e4},Ut=1800*1e3,He=/^[A-Za-z0-9_-]{8,64}$/,Io=["sample","frustration","error","goal","tag","manual"],le={markKey:400,markLabel:120,markHref:200,release:64,recorderVersion:32,browser:32,os:32,referrer:200,variant:64,tagKey:64,tagValue:200,identifyId:128,traitKey:64,traitValue:200,maxTraits:20};function it(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ke(e){return typeof e=="number"&&Number.isFinite(e)}function Ne(e,t,r=!1){return typeof e=="string"&&e.length<=t&&(r||e.length>0)}function Oo(e){return Number.isInteger(e)&&e>=0&&e<nt}var Zu=["desktop","tablet","phone"],pe=le;function ec(e){if(!it(e)||!Nn(e.kind)||!Ne(e.key,pe.markKey,!0)||!ke(e.atMs)||e.atMs<0)return null;let t={kind:e.kind,key:e.key,atMs:e.atMs};if(e.label!==void 0){if(!Ne(e.label,pe.markLabel,!0))return null;t.label=e.label}if(e.gx!==void 0||e.gy!==void 0){if(!Oo(e.gx)||!Oo(e.gy))return null;t.gx=e.gx,t.gy=e.gy}if(e.value!==void 0){if(!ke(e.value))return null;t.value=e.value}if(e.href!==void 0){if(!Ne(e.href,pe.markHref,!0))return null;t.href=e.href}return t}function ko(e,t,r,i){if(!it(e))return null;let n=Object.keys(e);if(n.length>t)return null;let a={};for(let c of n){if(c.length===0||c.length>r)return null;let h=e[c];if(!Ne(h,i,!0))return null;a[c]=h}return a}function tc(e){if(!it(e))return null;let t=e.class;if(typeof t!="string"||!Zu.includes(t)||!ke(e.w)||e.w<0||!ke(e.h)||e.h<0)return null;let r={class:t,w:e.w,h:e.h};if(e.docW!==void 0){if(!ke(e.docW)||e.docW<0)return null;r.docW=e.docW}if(e.docH!==void 0){if(!ke(e.docH)||e.docH<0)return null;r.docH=e.docH}return r}function rc(e){if(!it(e)||!Ne(e.id,pe.identifyId))return null;let t={id:e.id};if(e.traits!==void 0){let r=ko(e.traits,pe.maxTraits,pe.traitKey,pe.traitValue);if(!r)return null;t.traits=r}return t}var nc=[["browser",pe.browser],["os",pe.os],["referrer",pe.referrer],["variant",pe.variant]];function Un(e){if(!it(e)||e.v!==1||typeof e.visitorId!="string"||!He.test(e.visitorId)||typeof e.visitId!="string"||!He.test(e.visitId)||!Number.isInteger(e.seq)||e.seq<0||!ke(e.startedAt)||e.startedAt<0||!Ne(e.release,pe.release,!0)||!Ne(e.recorderVersion,pe.recorderVersion,!0))return null;let t=tc(e.device);if(!t||typeof e.newVisitor!="boolean")return null;let r=e.keep;if(r!==null&&!(typeof r=="string"&&Io.includes(r))||!ke(e.sampleWeight)||e.sampleWeight<=0||!Array.isArray(e.marks)||e.marks.length>ye.maxMarksPerVisit)return null;let i=[];for(let a of e.marks){let c=ec(a);if(!c)return null;i.push(c)}let n={v:1,visitorId:e.visitorId,visitId:e.visitId,seq:e.seq,startedAt:e.startedAt,release:e.release,recorderVersion:e.recorderVersion,device:t,newVisitor:e.newVisitor,keep:r,sampleWeight:e.sampleWeight,marks:i};for(let[a,c]of nc){let h=e[a];if(h!==void 0){if(!Ne(h,c,!0))return null;n[a]=h}}if(e.tags!==void 0){let a=ko(e.tags,ye.maxTagsPerVisit,pe.tagKey,pe.tagValue);if(!a)return null;n.tags=a}if(e.identify!==void 0){let a=rc(e.identify);if(!a)return null;n.identify=a}if(e.events!==void 0){if(!Array.isArray(e.events)||e.events.length>ye.maxEventsPerChunk||n.keep===null)return null;n.events=e.events}if(e.end!==void 0){if(typeof e.end!="boolean")return null;n.end=e.end}if(e.activeMs!==void 0){if(!ke(e.activeMs)||e.activeMs<0)return null;n.activeMs=e.activeMs}return n}var ic=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,sc=/^\d+$/,oc=/^[0-9a-f]{8,}$/i,ac=/^[A-Za-z0-9_~.-]{20,}$/,lc=/[0-9A-Z]/;function uc(e){return sc.test(e)||ic.test(e)||oc.test(e)||ac.test(e)&&lc.test(e)}function Bn(e){let t=e.trim(),r=/^[a-z][a-z0-9+.-]*:\/\/[^/]*/i.exec(t);r&&(t=t.slice(r[0].length));let i=t.search(/[?#]/);return i!==-1&&(t=t.slice(0,i)),t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function cc(e,t){let r=Bn(t).split("/");if(r.length!==e.length)return!1;for(let i=0;i<r.length;i++){let n=r[i];if(!(n.startsWith(":")||n==="*")&&n!==e[i])return!1}return!0}function Wn(e,t){let i=Bn(e).split("/");if(t){for(let a of t)if(cc(i,a))return Bn(a).slice(0,400)}return(i.map(a=>a&&uc(a)?":id":a).join("/")||"/").slice(0,400)}function qn(e){let t=new TextEncoder().encode(e),r=8997,i=33826,n=40164,a=52210;for(let c=0;c<t.length;c++){r^=t[c];let h=r*435,u=i*435,p=n*435+(r<<8),s=a*435+(i<<8);u+=h>>>16,r=h&65535,p+=u>>>16,i=u&65535,a=s+(p>>>16)&65535,n=p&65535}return[a,n,i,r].map(c=>c.toString(16).padStart(4,"0")).join("")}var $n=["sign up","purchase","begin checkout"];function Re(e,t,r,i){return i.map(n=>({name:e,ruleKind:t,match:n,matchMode:r}))}var To=[...Re("sign up","click","contains",["sign up","signup","create account","register","\u6CE8\u518C","\u521B\u5EFA\u8D26\u6237","registrarse","reg\xEDstrate","crear cuenta","s'inscrire","inscrivez-vous","cr\xE9er un compte","registrieren","konto erstellen"]),...Re("sign up","page","contains",["/signup/complete","/welcome"]),...Re("purchase","click","contains",["place order","complete purchase","pay now","buy now","\u63D0\u4EA4\u8BA2\u5355","\u7ACB\u5373\u8D2D\u4E70","\u7ACB\u5373\u652F\u4ED8","realizar pedido","comprar ahora","pagar ahora","passer la commande","acheter maintenant","payer maintenant","jetzt kaufen","kaufen","zahlungspflichtig bestellen","jetzt bezahlen"]),...Re("purchase","page","contains",["/order-confirmation","/order-complete","/checkout/success","/thank-you-for-your-order"]),...Re("add to cart","click","contains",["add to cart","add to bag","add to basket","\u52A0\u5165\u8D2D\u7269\u8F66","a\xF1adir al carrito","agregar al carrito","ajouter au panier","in den warenkorb"]),...Re("begin checkout","click","contains",["checkout","check out","proceed to payment","\u7ED3\u8D26","\u53BB\u7ED3\u7B97","finalizar compra","tramitar pedido","paiement","commander","zur kasse"]),...Re("begin checkout","page","prefix",["/checkout"]),...Re("contact","click","prefix",["mailto:","tel:"]),...Re("contact","click","contains",["contact us","contact sales","get in touch","\u8054\u7CFB\u6211\u4EEC","cont\xE1ctanos","contactar","nous contacter","contactez-nous","kontakt aufnehmen","kontaktieren"]),...Re("download","click","contains",[".pdf",".zip",".dmg",".exe",".msi",".pkg",".apk",".csv",".xlsx",".docx","download","\u4E0B\u8F7D","descargar","t\xE9l\xE9charger","herunterladen"])];function Bt(e,t){let r=e.toLowerCase(),i=t.match.toLowerCase();if(!i)return!1;switch(t.matchMode){case"equals":return r===i;case"prefix":return r.startsWith(i);case"contains":return r.includes(i)}}function Ao(e,t){switch(t.ruleKind){case"page":return e.kind==="page"&&Bt(e.key,t);case"click":return e.kind!=="click"?!1:!!e.label&&Bt(e.label,t)||!!e.href&&Bt(e.href,t);case"custom":return e.kind==="event"&&Bt(e.key,t)}}function Vn(e,t=To){let r=[];for(let i of t)!r.includes(i.name)&&Ao(e,i)&&r.push(i.name);return r}var fc=/[.-][0-9a-f]{6,}[.-]/i;function dc(e){let t=e.search(/[?#]/);return t===-1?e:e.slice(0,t)}async function zn(e){let t=e.filter(n=>fc.test(dc(n))).slice().sort();if(t.length===0)return null;let r=new Uint8Array(await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t.join(`
|
|
129
129
|
`)))),i="";for(let n=0;n<6;n++)i+=r[n].toString(16).padStart(2,"0");return i}var No={ingestConfig:"/api/replay-ingest/v1/config",ingestChunks:"/api/replay-ingest/v1/chunks",sites:"/api/replay/sites",site:"/api/replay/sites/:siteId",siteVerify:"/api/replay/sites/:siteId/verify",recordings:"/api/replay/recordings",recording:"/api/replay/recordings/:recordingId",recordingChunk:"/api/replay/recordings/:recordingId/chunks/:seq",recordingStatus:"/api/replay/recordings/:recordingId/status",releases:"/api/replay/releases",release:"/api/replay/releases/:releaseKey",kpis:"/api/replay/kpis",issues:"/api/replay/issues",issue:"/api/replay/issues/:issueId",live:"/api/replay/live",usage:"/api/replay/usage",heatGrid:"/api/replay/heatmap/grid",heatElements:"/api/replay/heatmap/elements",heatScroll:"/api/replay/heatmap/scroll",heatRoutes:"/api/replay/heatmap/routes",heatInsights:"/api/replay/heatmap/insights",heatSnapshot:"/api/replay/heatmap/snapshot",recordingExport:"/api/replay/recordings/:recordingId/export",exportStatus:"/api/replay/exports/:exportId",exportDownload:"/api/replay/exports/:exportId/download",projectSite:"/api/projects/:projectId/replay/site",capabilityState:"/api/capabilities/:slug/state",capabilityPacks:"/api/capabilities/session-replay/packs",capabilityPackCheckout:"/api/capabilities/session-replay/packs/:packId/checkout",opsSummary:"/api/admin/replay-ops/summary",opsTenantSettings:"/api/admin/replay-ops/tenants/:tenantId/settings",opsGrants:"/api/admin/replay-ops/grants",segments:"/api/replay/segments",segment:"/api/replay/segments/:segmentId",filterOptions:"/api/replay/filter-options",overview:"/api/replay/overview",smartEvents:"/api/replay/smart-events",smartEvent:"/api/replay/smart-events/:eventId",smartEventPreview:"/api/replay/smart-events/preview",funnels:"/api/replay/funnels",funnel:"/api/replay/funnels/:funnelId",funnelEvaluate:"/api/replay/funnels/:funnelId/evaluate",flow:"/api/replay/flow",recordingSummary:"/api/replay/recordings/:recordingId/summary",segmentSummary:"/api/replay/summary",visitor:"/api/replay/visitors/:visitorId",ticketEffect:"/api/replay/ticket-effect/:taskId",opsSeedMethodFunnel:"/api/admin/replay-ops/sites/:siteId/seed-method-funnel",prescriptions:"/api/replay/prescriptions",prescription:"/api/replay/prescriptions/:prescriptionId",prescriptionAction:"/api/replay/prescriptions/:prescriptionId/:action",prescriptionSweep:"/api/replay/prescriptions/sweep",releaseReport:"/api/replay/releases/:releaseKey/report",pages:"/api/replay/pages",pageReview:"/api/replay/pages/review",pageCapture:"/api/replay/pages/capture",capturesAsset:"/api/replay/pages/captures/:captureId/:asset",improvementPrompt:"/api/replay/prescriptions/:prescriptionId/prompt",pagePrompt:"/api/replay/pages/prompt",previewUrl:"/api/replay/releases/:releaseKey/preview",sequences:"/api/replay/sequences",codingAgents:"/api/replay/coding-agents"};function st(e,t){let r=e.lastActiveAt;if(r!==null){let i=t-r;i>0&&i<=3e4&&(e.activeMs+=i)}e.lastActiveAt=t}var hc={history:"durable",histories:"durable",ticket:"durable",tickets:"durable",audit:"durable",audits:"durable",fact:"durable",facts:"durable",telemetry:"best-effort"};function Hn(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t)return hc[t]}var Bf=Object.freeze({"host-persist":{carries:"user work (mixed with host telemetry)",reason:"One queue mixes chat messages with host telemetry, so a single retention is wrong for part of the payload on every delivery. Splitting the queue or stamping per entry belongs to the queue's owner, not to a row in this table."}}),pc={"audit-close":{queue:"audit-close",retention:"durable",onFailure:"retain-until-acked"},"run-checkpoint":{queue:"run-checkpoint",retention:"durable",onFailure:"retain-until-acked"},"fact-publish":{queue:"fact-publish",retention:"durable",onFailure:"retain-until-acked"},"ticket-mutation":{queue:"ticket-mutation",retention:"durable",onFailure:"retain-until-acked"},"brain-turns":{queue:"brain-turns",retention:"durable",onFailure:"retain-until-acked"},steps:{queue:"steps",retention:"durable",onFailure:"retain-until-acked"},"chat-sync":{queue:"chat-sync",retention:"durable",onFailure:"retain-until-acked"},"diagnostics-telemetry":{queue:"diagnostics-telemetry",retention:"best-effort",onFailure:"drop-on-failure"},"session-refresh":{queue:"session-refresh",retention:"best-effort",onFailure:"drop-on-failure"},"qa-capture":{queue:"qa-capture",retention:"best-effort",onFailure:"drop-on-failure"},"visitor-journey":{queue:"visitor-journey",retention:"best-effort",onFailure:"drop-on-failure"},"session-replay":{queue:"session-replay",retention:"best-effort",onFailure:"drop-on-failure"},"tool-audit":{queue:"tool-audit",retention:"best-effort",onFailure:"drop-on-failure"},"usage-snapshot":{queue:"usage-snapshot",retention:"best-effort",onFailure:"drop-on-failure"},"file-change":{queue:"file-change",retention:"best-effort",onFailure:"drop-on-failure"},"remote-chunks":{queue:"remote-chunks",retention:"best-effort",onFailure:"drop-on-failure"},activity:{queue:"activity",retention:"durable",onFailure:"retain-until-acked"},"run-outcomes":{queue:"run-outcomes",retention:"durable",onFailure:"retain-until-acked"}},mc={"audit-close":"audit-close","close-audit":"audit-close","run-checkpoint":"run-checkpoint","fact-publish":"fact-publish","ticket-mutation":"ticket-mutation","brain-turns":"brain-turns","brain-turn":"brain-turns","pending-turns":"brain-turns",steps:"steps",step:"steps","run-steps":"steps","brain-steps":"steps","chat-sync":"chat-sync","rovr-chat":"chat-sync","builderforce-outbox:rovr":"chat-sync","builderforce-outbox:rovr-steps":"steps","diagnostics-telemetry":"diagnostics-telemetry","diagnostic-telemetry":"diagnostics-telemetry","error-reports":"diagnostics-telemetry","error-report":"diagnostics-telemetry","client-report":"diagnostics-telemetry","client-reports":"diagnostics-telemetry","builderforce-outbox:rovr-errors":"diagnostics-telemetry","session-refresh":"session-refresh","refresh-session":"session-refresh","refresh-sessions":"session-refresh","sessions-refresh":"session-refresh","qa-capture":"qa-capture","qa-telemetry":"qa-capture","visitor-journey":"visitor-journey","visitor-events":"visitor-journey",journey:"visitor-journey","session-replay":"session-replay",replay:"session-replay","replay-chunks":"session-replay","tool-audit":"tool-audit","tool-audits":"tool-audit","usage-snapshot":"usage-snapshot","usage-snapshots":"usage-snapshot","file-change":"file-change","file-changes":"file-change","remote-chunks":"remote-chunks","remote-chunk":"remote-chunks",activity:"activity","run-outcomes":"run-outcomes"},Do="builderforce.outbox.";function gc(e){return e.trim().toLowerCase().replace(/[\s_]+/g,"-").replace(/-+/g,"-")}function yc(e){let t=gc(e);if(t)return t.startsWith(Do)&&(t=t.slice(Do.length)),t==="steps"||t.startsWith("steps:")?"steps":mc[t]}function jn(e){if(typeof e!="string")return;let t=yc(e);if(t)return pc[t]}var bc={"qa-captures":"qa-capture","visitor-journeys":"visitor-journey"},vc={history:"history",histories:"history",ticket:"tickets",tickets:"tickets",audit:"audits",audits:"audits",fact:"facts",facts:"facts",telemetry:"telemetry"};function _o(e){return e.trim().toLowerCase().replace(/[\s_]+/g,"-").replace(/-+/g,"-")}function Kn(e,t,r){return{queue:e,retention:t,onFailure:t==="durable"?"retain-until-acked":"drop-on-failure",kind:r}}function ot(e){let t=jn(e);if(t)return Kn(t.queue,t.retention,t.retention==="durable"?"user-work":"telemetry");let r=Hn(e);if(r&&typeof e=="string"){let a=_o(e),c=vc[a];if(c)return Kn(c,r,r==="durable"?"user-work":"telemetry")}if(typeof e!="string")return;let i=_o(e);if(!i)return;let n=bc[i];if(n)return Kn(n,"best-effort","telemetry")}function Gn(e){return e.filter(t=>t.deadLetter).map(t=>({...t,deadLetter:{...t.deadLetter}})).sort((t,r)=>t.seq-r.seq)}function Yn(e,t){if(typeof t!="string"||t.trim()==="")return null;let r=e.find(i=>i.id===t&&i.deadLetter);return r?(delete r.deadLetter,delete r.batch,r.retention="durable",r):null}var Po=0;function Lo(){let e=globalThis.crypto;return e?.randomUUID?e.randomUUID():(Po+=1,`ob-${Date.now().toString(36)}-${Po.toString(36)}-${Math.random().toString(36).slice(2,10)}`)}function Qn(e){let t=e[0];return t?t.batch??t.id:void 0}function Wt(e){let t=e?.status;return typeof t!="number"?!1:t>=400&&t<500&&![401,408,409,425,429].includes(t)}var Xn=(e,t)=>e.seq-t.seq;function Jn(e,t){return!e.deadLetter&&(t===void 0||e.scope===void 0||e.scope===t)}function Fo(e,t,r,i){let n=f=>f.seq<=r&&Jn(f,t),a=e.entries.findIndex(n);if(a<0)return null;let c=e.entries[a],h=0,u=f=>e.entries[a+f];if(c.batch)for(;u(h)&&u(h).batch===c.batch;)h+=1;else for(;u(h)&&h<i&&!u(h).batch&&n(u(h));)h+=1;let p=e.entries.splice(a,h),s=!c.batch;if(s)for(let f of p)f.batch=c.id,t!==void 0&&(f.scope=t);return{batch:p,sealed:s}}function Uo(e){let t=e[0];return{idempotencyKey:Qn(e),ids:e.map(r=>r.id),...t.scope!==void 0?{scope:t.scope}:{}}}function Bo(e,t,r){return{idempotencyKey:Qn(e)??r(),ids:e.map(i=>i.id),...t?{scope:t}:{}}}function ti(e){let t=Math.max(1,e.maxItems??25),r=e.maxWaitMs??5e3,i=e.retry?{baseMs:e.retry.baseMs??1e3,maxMs:e.retry.maxMs??3e5,isPermanent:e.retry.isPermanent??Wt}:null,n=i??{baseMs:1e3,maxMs:3e5,isPermanent:Wt},a=e.store??null,c=!!(i||a),h=Math.max(t,e.maxEntries??Number.POSITIVE_INFINITY),u=e.newId??Lo,p={set:(M,I)=>e.scheduler?e.scheduler.setTimeout(M,I):setTimeout(M,I),clear:M=>e.scheduler?e.scheduler.clearTimeout(M):clearTimeout(M)},s=new Map,f=new Set,l=0,o=0,m=!1,d,g=()=>e.online?.isOnline()??!0,w=()=>!m&&(e.sendPermission?.isAllowed()??!0),b=M=>{let I=s.get(M);return I||(I={entries:[],timer:null,retryTimer:null,attempt:0,inFlight:0,tail:Promise.resolve()},s.set(M,I)),I},S=()=>(l=Math.max(l+1,Date.now()*1e3),l),E=a?Promise.resolve().then(()=>a.load()).then(M=>{for(let I of M)b(I.key).entries.push(I),l=Math.max(l,I.seq);for(let I of s.values())I.entries.sort(Xn)},M=>{d??=M,e.onStoreError?.(M)}):Promise.resolve(),v=E,y=M=>a?(v=v.then(()=>M(a)).catch(I=>{d??=I,e.onStoreError?.(I)}),v):Promise.resolve(),x=(M,I,D)=>{if(I.length===0)return;o+=I.length;let N=I.map(L=>L.id);y(L=>L.remove(N)),e.onDrop?.({key:M,count:I.length,reason:D})},C=M=>M.retention?M.retention:c?"durable":"best-effort",T=(M,I)=>{let D=ot(M)??ot(e.work);return D?D.retention:I==="enqueueDurable"||c?"durable":"best-effort"},O=()=>{let M=0;for(let I of s.values())M+=I.entries.length;return M},W=()=>{let M=0;for(let I of s.values())for(let D of I.entries)C(D)==="durable"&&(M+=1);return M},F=M=>{let I=O();for(;I>M;){let D,N,L=-1,P=Number.POSITIVE_INFINITY;for(let[B,q]of s)for(let U=0;U<q.entries.length;U+=1){let ue=q.entries[U];C(ue)!=="best-effort"||ue.seq>=P||(P=ue.seq,D=B,N=q,L=U)}if(!N||L<0){I>h&&e.onCapacity?.(I,h);return}x(D,N.entries.splice(L,1),"overflow"),I-=1}},R=()=>{F(h)},ae=()=>e.scope?e.scope():void 0,ie=(M,I,D)=>{let N=Fo(M,I,D,t);return N?(N.sealed&&y(L=>L.put(N.batch)),N.batch):null},V=M=>{M.timer!==null&&p.clear(M.timer),M.timer=null},z=M=>{M.retryTimer!==null&&p.clear(M.retryTimer),M.retryTimer=null},X=(M,I,D=!1)=>{if(!i&&!D||!w()||I.retryTimer!==null)return;let N=i??n;I.attempt+=1;let L=Math.min(N.maxMs,N.baseMs*2**(I.attempt-1)),P=Math.round(L*(.8+Math.random()*.4));I.retryTimer=p.set(()=>{I.retryTimer=null,se(M,{final:!1,probe:!0})},P)},ne=(M,I)=>{I.timer!==null||r<=0||!w()||(I.timer=p.set(()=>{I.timer=null,se(M,{final:!1,auto:!0})},r))},J=(M,I)=>{M.entries.unshift(...I),M.entries.sort(Xn)},H=async(M,I,D,N)=>{if(!w())return J(I,D),!1;let L=D.map(U=>U.item),P=Uo(D),B=P.ids,q=new AbortController;f.add(q),I.inFlight+=D.length;try{return await e.send(M,e.coalesce?e.coalesce(L):L,{final:N,...P,signal:q.signal}),I.inFlight-=D.length,q.signal.aborted||!w()?(J(I,D),!1):(I.attempt=0,y(U=>U.remove(B)),!0)}catch(U){return I.inFlight-=D.length,e.onError?.(U,M),j(M,I,D,U)}finally{f.delete(q)}},se=(M,I)=>{let D=s.get(M);if(!D||!w())return Promise.resolve();let N=I.probe?Number.POSITIVE_INFINITY:l;if(I.final){let P=ae();if(!g()||P===null)return Promise.resolve();V(D);let B=[];for(let q=ie(D,P,N);q;q=ie(D,P,N))B.push(q);return Promise.all(B.map(q=>H(M,D,q,!0))).then(()=>{})}let L=D.tail.then(async()=>{if(await E,!w()){V(D),z(D);return}if(I.auto&&D.retryTimer!==null)return;if(I.auto&&!g()){X(M,D);return}!I.auto&&D.retryTimer!==null&&z(D);let P=ae();if(P===null){X(M,D);return}V(D);for(let B=ie(D,P,N);B;B=ie(D,P,N))if(!await H(M,D,B,!1))return;D.entries.some(B=>!B.deadLetter)&&ne(M,D)});return D.tail=L,L},k=M=>Promise.all([...s.keys()].map(I=>se(I,{final:M}))).then(()=>{}),me=e.online?.subscribe(M=>{if(!(!M||!w())){for(let I of s.values())z(I),I.attempt=0;k(!1)}}),A=e.sendPermission?.subscribe(M=>{if(!M){for(let I of s.values())V(I),z(I);for(let I of f)I.abort();return}for(let I of s.values())I.attempt=0;k(!1)});a&&E.then(()=>{R();for(let[M,I]of s)I.entries.length>0&&se(M,{final:!1,auto:!0})});let j=(M,I,D,N)=>{let L=n.isPermanent(N),P=[],B=[],q=[];for(let U of D){let ue=C(U)==="durable";L&&ue?P.push(U):!L&&(ue||i)?B.push(U):q.push(U)}if(P.length){let U=new Date().toISOString(),ue=N instanceof Error?N.message:String(N);for(let fe of P)fe.deadLetter={reason:ue,at:U},fe.retention="durable";J(I,P),y(fe=>fe.put(P)),e.onDeadLetter?.(M,P,N)}return B.length&&(J(I,B),X(M,I,!i&&B.some(U=>C(U)==="durable"))),q.length&&x(M,q,L?"rejected":"failed"),B.length===0},Q=(M,I,D,N,L)=>{let P=T(D,N);if(P==="durable"&&(F(Math.max(0,h-1)),W()>=h))throw e.onCapacity?.(W(),h),Object.assign(new Error("outbox_capacity"),{code:"OUTBOX_CAPACITY"});let B=b(M),q=L??ae(),U={id:u(),key:M,item:I,seq:S(),retention:P,...q?{scope:q}:{}};B.entries.push(U);let ue=y(Ce=>Ce.put([U]));return P==="best-effort"&&R(),B.entries.reduce((Ce,li)=>li.batch||li.deadLetter?Ce:Ce+1,0)>=t?se(M,{final:!1,auto:!0}):ne(M,B),{id:U.id,persisted:ue}};return{enqueue(M,I,D,N){return Q(M,I,D,"enqueue",N).id},async enqueueDurable(M,I,D,N){let L=Q(M,I,D,"enqueueDurable",N);if(await L.persisted,d)throw d;return L.id},async flush(M,I){let D=I?.final??!1;return M===void 0?k(D):se(M,{final:D})},drainWith(M,I){let D=b(M),N=D.tail.then(async()=>{if(await E,!w())throw Object.assign(new Error("platform_send_disabled"),{code:"PLATFORM_SEND_DISABLED"});V(D);let L=ae(),P=[];if(L!==null){let fe=[];for(let Ce of D.entries)(Jn(Ce,L)?P:fe).push(Ce);D.entries=fe}let B=P.map(fe=>fe.item),q=new AbortController;f.add(q);let U={...Bo(P,L,u),signal:q.signal},ue=U.ids;D.inFlight+=P.length;try{if(!w())throw Object.assign(new Error("platform_send_disabled"),{code:"PLATFORM_SEND_DISABLED"});let fe=await I(e.coalesce&&B.length?e.coalesce(B):B,U);return D.inFlight-=P.length,P.length&&y(Ce=>Ce.remove(ue)),fe}catch(fe){throw D.inFlight-=P.length,j(M,D,P,fe),fe}finally{f.delete(q)}});return D.tail=N.catch(()=>{}),N},async retryDeadLetters(){let M=[];for(let I of s.values())for(let D of I.entries)D.deadLetter&&(delete D.deadLetter,M.push(D));M.length&&await y(I=>I.put(M)),await k(!1)},exportDeadLetters(){let M=[];for(let I of s.values())M.push(...I.entries);return Gn(M)},async repairDeadLetter(M){if(typeof M!="string"||M.trim()==="")return!1;let I;for(let B of s.values())if(I=B.entries.find(q=>q.id===M&&q.deadLetter),I)break;if(!I?.deadLetter)return!1;let D=I.deadLetter,N=I.batch,L=Yn([I],M);if(!L)return!1;let P=d;if(await y(B=>B.put([L])),d!==P)throw L.deadLetter=D,N!==void 0?L.batch=N:delete L.batch,d;return!0},size(M){if(M!==void 0)return s.get(M)?.entries.length??0;let I=0;for(let D of s.values())I+=D.entries.length;return I},stats(){let M=0,I=0,D=0;for(let N of s.values())M+=N.entries.length,I+=N.inFlight,D+=N.entries.filter(L=>L.deadLetter).length;return{queued:M,inFlight:I,dropped:o,deadLetters:D}},async ready(){if(await E,await v,d)throw d},close(){m=!0,me?.(),A?.();for(let M of f)M.abort();for(let M of s.values())V(M),z(M)}}}function $o(e,t){let r=setTimeout(e,t);return r.unref?.(),r}var Vo=async e=>{let t=globalThis.CompressionStream;if(typeof t!="function"||typeof ReadableStream>"u")return null;let r=new TextEncoder().encode(e),n=new ReadableStream({start(p){p.enqueue(r),p.close()}}).pipeThrough(new t("gzip")).getReader(),a=[],c=0;for(;;){let{done:p,value:s}=await n.read();if(p)break;s&&(a.push(s),c+=s.length)}let h=new Uint8Array(c),u=0;for(let p of a)h.set(p,u),u+=p.length;return h.buffer},zo=6e4,Sc=5;function wc(e){return Math.min(3e4,200*2**e)}function xc(e,t,r,i={}){let n={"Content-Type":"application/json",...i.headers};i.gzip&&(n["Content-Encoding"]="gzip");let a={method:"POST",headers:n,body:r};return i.keepalive!==void 0&&(a.keepalive=i.keepalive),i.credentials&&(a.credentials=i.credentials),e(t,a)}function Ec(e){if(!e)return;let t=Number(e),r=Number.isFinite(t)?t*1e3:Date.parse(e)-Date.now();return Number.isFinite(r)?Math.max(0,r):void 0}function Ho(e={}){return{async post(t,r,{keepalive:i,gzip:n}){let a=e.fetchFn??globalThis.fetch;if(typeof a!="function")return{status:0};let c=await xc(a,t,r,{headers:e.headers,keepalive:i,gzip:n,credentials:e.credentials});return{status:typeof c.status=="number"?c.status:c.ok?200:500,retryAfterMs:Ec(c.headers?.get?.("retry-after"))}},sleep:t=>new Promise(r=>$o(r,t))}}async function jo(e,t,r,i){for(let n=0;;n+=1){let a;try{a=await e.post(t,r,i)}catch{a={status:0}}let c=a.status===429;if(!(c||a.status>=500||a.status===0)||n>=Sc)return a;await e.sleep(c?Math.max(0,a.retryAfterMs??1e3):wc(n))}}var ri="visit",qt=class{url;header;nextSeq;sink;compress;outbox;constructor(t){this.url=t.url,this.header=t.header,this.nextSeq=t.nextSeq,this.sink=t.sink??Ho({credentials:"omit"}),this.compress=t.compress??Vo,this.outbox=ti({maxItems:ye.maxEventsPerChunk,maxWaitMs:ye.flushMs,send:(r,i,n)=>this.sendItems(i,n.final)})}pushEvent(t){this.outbox.enqueue(ri,{event:t})}addMark(t){this.outbox.enqueue(ri,{mark:t})}flush(t){return this.outbox.flush(ri,{final:t})}sendItems(t,r){let i=[],n=[];for(let h of t)"mark"in h?n.push(h.mark):i.push(h.event);let a=this.header(),c={...a,seq:this.nextSeq(),marks:n};return i.length>0&&a.keep!==null&&(c.events=i),this.send(c,r)}async send(t,r){let i=Un(t);if(!i)return;let n=JSON.stringify(i),a=await this.compress(n).catch(()=>null),c=a??n,h=typeof c=="string"?new TextEncoder().encode(c).length:c.byteLength;if(h>ye.maxChunkBytes){await this.split(i,r);return}(await jo(this.sink,this.url,c,{keepalive:r&&h<=zo,gzip:a!==null})).status===413&&await this.split(i,r)}async split(t,r){let i=t.events??[];if(i.length>=2){let n=Math.ceil(i.length/2),a={...t,events:i.slice(0,n),marks:[]},c={...t,seq:this.nextSeq(),events:i.slice(n)};await this.send(a,r),await this.send(c,r);return}if(i.length===0&&t.marks.length>=2){let n=Math.ceil(t.marks.length/2);await this.send({...t,marks:t.marks.slice(0,n)},r),await this.send({...t,seq:this.nextSeq(),marks:t.marks.slice(n)},r)}}};var $t=class{segments=[[]];lastWasCheckout=!1;count=0;push(t,r){for(r&&!this.lastWasCheckout&&this.current().length>0&&(this.segments.push([]),this.segments.length>2&&(this.count-=this.segments.shift().length)),this.lastWasCheckout=r,this.current().push(t),this.count+=1;this.count>2e4&&this.segments.length>1;)this.count-=this.segments.shift().length}drain(){let t=this.segments.flat();return this.segments=[[]],this.lastWasCheckout=!1,this.count=0,t}get size(){return this.count}current(){return this.segments[this.segments.length-1]}};function Rc(e){return e<640?"phone":e<1024?"tablet":"desktop"}function Vt(){let e=document.documentElement,t=document.body;return{docW:Math.max(e?e.scrollWidth:0,t?t.scrollWidth:0,window.innerWidth||0),docH:Math.max(e?e.scrollHeight:0,t?t.scrollHeight:0,window.innerHeight||0)}}function Ko(){let e=window.innerWidth||0,t=window.innerHeight||0;return{class:Rc(e),w:e,h:t,...Vt()}}var Cc=[[/Edg\//,"Edge"],[/OPR\/|Opera/,"Opera"],[/SamsungBrowser/,"Samsung Internet"],[/Firefox\/|FxiOS/,"Firefox"],[/Chrome\/|CriOS/,"Chrome"],[/Safari\//,"Safari"]],Mc=[[/iPhone|iPad|iPod/,"iOS"],[/Android/,"Android"],[/CrOS/,"ChromeOS"],[/Windows/,"Windows"],[/Mac OS X|Macintosh/,"macOS"],[/Linux/,"Linux"]];function Go(e,t){for(let[r,i]of e)if(r.test(t))return i}function Yo(e){return Go(Cc,e)}function Qo(e){return Go(Mc,e)}function Xo(e,t){if(e)try{let r=new URL(e).hostname;return r&&r!==t?r.slice(0,200):void 0}catch{return}}var ni=Symbol.for("builderforce.insights.pageErrors"),ea=1,ii=new WeakMap;function Jo(e){let t=e[ni];return t&&t.version===ea?t:ii.get(e)}function Zo(e,t){if(t===void 0){ii.delete(e);try{delete e[ni]}catch{}return}if(Object.isExtensible(e))try{Object.defineProperty(e,ni,{value:t,configurable:!0,enumerable:!1,writable:!0});return}catch{}ii.set(e,t)}function Oc(e){if(e instanceof Error)return{message:e.message||e.name,stack:e.stack};if(typeof e=="string")return{message:e};try{return{message:JSON.stringify(e)??String(e)}}catch{return{message:String(e)}}}function Ic(e){let t=e.error instanceof Error?e.error:null;return{message:e.message||(t?t.message:"Error"),stack:t?.stack,error:e.error??new Error(e.message),filename:e.filename||void 0}}function kc(e){let{message:t,stack:r}=Oc(e.reason);return{message:t,stack:r,error:e.reason??new Error("Unhandled promise rejection")}}function Tc(e){let t=new Set,r=a=>{for(let c of[...t])try{c(a)}catch(h){typeof console<"u"&&console.warn("builderforce-insights: page-error subscriber failed",h)}},i=a=>r(Ic(a)),n=a=>r(kc(a));return e.addEventListener("error",i),e.addEventListener("unhandledrejection",n),{version:ea,handlers:t,remove:()=>{e.removeEventListener("error",i),e.removeEventListener("unhandledrejection",n)}}}function ta(e,t){let r=t??(typeof window<"u"?window:void 0);if(!r)return()=>{};let i=Jo(r);i||(i=Tc(r),Zo(r,i));let n=i;n.handlers.add(e);let a=!0;return()=>{a&&(a=!1,n.handlers.delete(e),n.handlers.size===0&&(n.remove(),Jo(r)===n&&Zo(r,void 0)))}}function Ac(e){if(!e)return"";for(let t of e.split(`
|
|
130
|
-
`)){let r=t.trim();if(/:\d+/.test(r)&&(r.startsWith("at ")||r.includes("@")))return r.replace(/\?[^\s:)]*/g,"").slice(0,300)}return""}function ra(e,t){return qn(`${Ac(t)}|${e.replace(/\d+/g,"")}`)}function na(e,t,r){let i=(e||"Error").trim();return{kind:"error",key:ra(i,t),label:i.slice(0,le.markLabel),atMs:r}}function ia(e){return ta(t=>e(t.message,t.stack))}function oa(e){let t=e.toLowerCase();return t==="builderforce.ai"||t.endsWith(".builderforce.ai")?"bf":"bfr"}function zt(e){return{visitor:`${e}_visitor_id`,visit:`${e}_visit_id`,seen:`${e}_visit_last_seen`,state:`${e}_replay_state`,minted:`${e}_visitor_minted_at`}}var Nc=3600*24*365;function sa(){let e=new Uint8Array(18);return crypto.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function je(e){try{return window.localStorage.getItem(e)}catch{return null}}function Ke(e,t){try{window.localStorage.setItem(e,t)}catch{}}function Dc(e){let t=`${e}=`;for(let r of document.cookie.split(";")){let i=r.trim();if(i.startsWith(t))try{return decodeURIComponent(i.slice(t.length))}catch{return null}}return null}function _c(e,t){document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=${Nc}; SameSite=Lax`}function Pc(e,t){if(e==null)return!1;let r=Number(e);return Number.isFinite(r)&&r>0&&r<=t&&t-r<=Ut}function aa(e,t=Date.now()){let r=zt(e),i=je(r.visitor)??Dc(r.visitor),n=!1;!i||!He.test(i)?(i=sa(),n=!0):n=Pc(je(r.minted),t),Ke(r.visitor,i),_c(r.visitor,i);let a=Number(je(r.seen)??"0"),c=je(r.visit),u=!c||!He.test(c)||!Number.isFinite(a)||t-a>Ut||!c?sa():c;return Ke(r.visit,u),Ke(r.seen,String(t)),{visitorId:i,visitId:u,newVisitor:n}}function la(e,t=Date.now()){Ke(zt(e).seen,String(t))}var Lc=(e,t)=>{let r=location.href,i=!1,n=null;try{n=new MutationObserver(()=>{i=!0}),n.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}catch{n=null}setTimeout(()=>{n?.disconnect(),t(!i&&location.href===r)},e)},Fc=10,ua=3,Ht=class{clicks=[];scrolls=[];pages;lastClickT=null;route="/";maxDepth=-1;opts;constructor(t){this.opts=t,this.pages=(t.pages??[]).slice(-ua)}get currentRoute(){return this.route}page(t){let r=this.opts.now();this.route=Wn(t),this.maxDepth=-1,this.scrolls=[],this.opts.emit({kind:"page",key:this.route,atMs:r}),this.pages=[...this.pages,{path:this.route,t:r}].slice(-ua),this.opts.onPages?.(this.pages),Ln(this.pages)&&this.opts.emit({kind:"quickback",key:this.route,atMs:r})}click(t){let r=this.opts.now();this.lastClickT=r;let i={key:t.selector,atMs:r,gx:t.gx,gy:t.gy,...t.label?{label:t.label}:{}};if(this.opts.emit({kind:"click",...i,...t.href?{href:t.href}:{}}),this.clicks=[...this.clicks,{t:r,x:t.x,y:t.y}].slice(-Fc),Pn(this.clicks)){this.clicks=[],this.opts.emit({kind:"rage",...i});return}if(!_n(t.el))return;(this.opts.watchQuiet??Lc)(Ie.dead.waitMs,a=>{a&&this.opts.emit({kind:"dead",...i})})}scroll(t,r,i){let n=this.opts.now();if(Number.isFinite(i)){let c=Math.max(0,Math.min(9,Math.floor(i*10)));c>this.maxDepth&&(this.maxDepth=c)}let a=Ie.excessiveScroll.travelWindowMs;this.scrolls=[...this.scrolls.filter(c=>n-c.t<=a),{t:n,y:t}],Fn(this.scrolls,r,this.lastClickT)&&(this.scrolls=[],this.opts.emit({kind:"excessive_scroll",key:this.route,atMs:n}))}leavePage(t){if(Number.isFinite(t)){let r=Math.max(0,Math.min(9,Math.floor(t*10)));r>this.maxDepth&&(this.maxDepth=r)}this.maxDepth<0||(this.opts.emit({kind:"scroll",key:this.route,atMs:this.opts.now(),value:this.maxDepth}),this.maxDepth=-1)}};var ca="[data-bf-mask]",fa="[data-bf-block]",Uc='input[type="password" i], [autocomplete^="cc-" i]';function Bc(e){if(!e||typeof e.matches!="function")return!1;try{return e.matches(Uc)}catch{return(e.getAttribute("type")??"").toLowerCase()==="password"}}function Wc(e,t){return Bc(t)?"":"*".repeat(e?e.length:0)}function da(e,t){if(t)return!0;try{return e.closest(`${ca},${fa}`)!==null}catch{return!0}}function ha(e){let t=e.recordCanvas===!0;return{maskTextSelector:e.maskAllText?"*":ca,blockSelector:fa,maskInputFn:Wc,sampling:t?{mousemove:50,scroll:150,input:"last",canvas:2}:{mousemove:50,scroll:150,input:"last"},recordCanvas:t,...t?{dataURLOptions:{type:"image/jpeg",quality:.4}}:{},maskAllInputs:!0}}function pa(e,t){if(!e)return;let r=e.trim(),i=/^([a-z][a-z0-9+.-]*):/i.exec(r);if(i){let n=i[1].toLowerCase();if(n==="mailto"||n==="tel"||n==="sms")return`${n}:`;if(n!=="http"&&n!=="https")return}try{let n=new URL(r,t),a=new URL(t).host;return(n.host===a?n.pathname:`${n.host}${n.pathname}`).slice(0,200)}catch{return}}function ma(e){let t=location.pathname,r=()=>{let c=location.pathname;c!==t&&(t=c,e(c))},i={push:history.pushState,replace:history.replaceState},n=function(...c){let h=i.push.apply(this,c);return r(),h},a=function(...c){let h=i.replace.apply(this,c);return r(),h};return history.pushState=n,history.replaceState=a,window.addEventListener("popstate",r),()=>{history.pushState===n&&(history.pushState=i.push),history.replaceState===a&&(history.replaceState=i.replace),window.removeEventListener("popstate",r)}}var ga=["consent","event","tag","identify","keep","stop"];var qc=/^[\w .:-]{1,80}$/,$c=/[^\s@]+@[^\s@]+\.[^\s@]+/,Vc=/^(?:\d[ -]?){12,18}\d$/;function zc(e){return typeof e=="string"&&qc.test(e)}function Hc(e){return $c.test(e)||Vc.test(e.trim())}function Fe(e){try{console.warn(`[BFReplay] ${e}`)}catch{}}function jc(e){if(e===void 0)return;if(typeof e!="object"||e===null||Array.isArray(e))return null;let t=Object.entries(e);if(t.length>le.maxTraits)return null;let r={};for(let[i,n]of t){if(!i||i.length>le.traitKey||typeof n!="string"||n.length>le.traitValue)return null;r[i]=n}return r}function si(e,t){return{version:t.version,consent(r){e.consent(r===!0)},event(r){if(!zc(r)){Fe("event ignored: names are 1\u201380 characters of letters, digits, space, _ . : -");return}e.event(r)},tag(r,i){if(typeof r!="string"||!r||r.length>le.tagKey){Fe("tag ignored: keys are 1\u201364 characters");return}if(typeof i!="string"||i.length>le.tagValue){Fe(`tag "${r}" ignored: values are strings of at most 200 characters`);return}if(Hc(i)){Fe(`tag "${r}" refused: the value looks like an email address or a card number`);return}let n=t.tagKeys?.()??[];if(!n.includes(r)&&n.length>=ye.maxTagsPerVisit){Fe(`tag "${r}" ignored: at most ${ye.maxTagsPerVisit} tags per visit`);return}e.tag(r,i)},identify(r,i){if(!t.identify)return;if(typeof r!="string"||!r||r.length>le.identifyId){Fe("identify ignored: the id is 1\u2013128 characters");return}let n=jc(i);if(n===null){Fe("identify ignored: traits are at most 20 string values");return}e.identify(r,n)},keep(){e.keep()},stop(){e.stop()}}}function ya(e,t){for(let[r,i]of t.splice(0,t.length))ga.includes(r)&&e[r](...i)}function oi(e){let t=typeof window.BF_RELEASE=="string"?window.BF_RELEASE:"";return(e||t||"").trim().slice(0,le.release)}function Kc(e=document){let t=[];return e.querySelectorAll("script[src]").forEach(r=>t.push(r.src)),e.querySelectorAll('link[rel~="stylesheet"][href]').forEach(r=>t.push(r.href)),t}async function ba(e){let t=oi(e);if(t)return t;try{return await zn(Kc())??""}catch{return""}}function va(){let e={},t={},r=[],i=0,n=0,a=0;function c(h,u,p={}){if(!(typeof PerformanceObserver>"u"))try{let s=new PerformanceObserver(f=>{for(let l of f.getEntries())u(l)});s.observe({type:h,buffered:!0,...p}),r.push(s)}catch{}}return c("largest-contentful-paint",h=>{e.LCP=h.startTime}),c("layout-shift",h=>{let u=h;if(u.hadRecentInput||typeof u.value!="number")return;let p=h.startTime;i>0&&p-a<1e3&&p-n<5e3?i+=u.value:(i=u.value,n=p),a=p,e.CLS=Math.max(e.CLS??0,i)}),c("event",h=>{h.interactionId&&(e.INP=Math.max(e.INP??0,h.duration))},{durationThreshold:40}),{take(h){let u=[];for(let p of["LCP","CLS","INP"]){let s=e[p];if(typeof s!="number"||!Number.isFinite(s))continue;let f=Math.round(p==="CLS"?s*1e3:s);t[p]!==f&&(t[p]=f,u.push({kind:"vital",key:p,atMs:h,value:f}))}return u},stop(){for(let h of r)h.disconnect();r.length=0}}}function Gc(e,t){return{visitId:e,startedAt:t,seq:0,keep:null,sampled:null,sampleWeight:1,marks:0,pages:[],activeMs:0,lastActiveAt:null}}function Yc(e,t){if(typeof e!="object"||e===null)return!1;let r=e;return r.visitId===t&&typeof r.startedAt=="number"&&typeof r.seq=="number"&&typeof r.marks=="number"&&Array.isArray(r.pages)&&typeof r.sampleWeight=="number"&&typeof r.activeMs=="number"}var jt=class{state;key;constructor(t,r,i){this.key=t;let n=null;try{let a=je(t);n=a?JSON.parse(a):null}catch{n=null}this.state=Yc(n,r)?n:Gc(r,i),this.save()}nextSeq(){let t=this.state.seq;return this.state.seq=t+1,this.save(),t}save(){Ke(this.key,JSON.stringify(this.state))}};var Sa="2026.11.30",Qc=new Set(["rage","dead","quickback"]),Xc=["pointerdown","keydown","touchstart","mousemove","wheel"],Jc=150,Zc=1e3;function ef(e){let t=e.getAttribute("data-testid")??e.getAttribute("data-test-id");return t?{selector:`getByTestId(${JSON.stringify(t)})`,label:t}:{selector:e.tagName.toLowerCase()}}function ai(){let{docH:e}=Vt();return e>0?(window.scrollY+window.innerHeight)/e:1}function wa(e,t={}){let r=e.config;if(!r.enabled)return null;let i=t.record??Oe,n=t.random??Math.random,a=[],c=!1,h,u=oa(location.hostname),p=aa(u),s=new jt(zt(u).state,p.visitId,Date.now()),f=s.state,l=()=>Math.max(0,Date.now()-f.startedAt);if(f.sampled===null){let A=Math.min(1,Math.max(0,r.keepRate??1));f.sampled=A>0&&n()<A,f.sampled&&f.keep===null&&(f.keep="sample",f.sampleWeight=1/A),s.save()}let o=oi(e.release);o||ba().then(A=>o=A);let m={},d,g=!1,w=navigator.userAgent||"",b=(r.recorderVersion||Sa).slice(0,le.recorderVersion),S=()=>{la(u);let A={v:1,visitorId:p.visitorId,visitId:p.visitId,startedAt:f.startedAt,release:o,recorderVersion:b,device:Ko(),newVisitor:p.newVisitor,keep:f.keep,sampleWeight:f.keep?f.sampleWeight:1,activeMs:Math.round(f.activeMs)},j=Yo(w),Q=Qo(w),M=Xo(document.referrer,location.hostname);return j&&(A.browser=j),Q&&(A.os=Q),M&&(A.referrer=M),e.variant&&(A.variant=e.variant.slice(0,le.variant)),Object.keys(m).length>0&&(A.tags={...m}),d&&(A.identify=d),g&&(A.end=!0),A},E=new qt({url:`${e.api}${No.ingestChunks}?site=${encodeURIComponent(e.site)}`,header:S,nextSeq:()=>s.nextSeq(),sink:t.sink,compress:t.compress}),v=new $t,y=A=>{if(!c){try{console.warn("[BFReplay] recorder disabled after an error",A)}catch{}se(!1)}};function x(A){return(...j)=>{if(!c)try{A(...j)}catch(Q){y(Q)}}}let C=A=>i({emit:x((Q,M)=>{f.keep?E.pushEvent(Q):v.push(Q,M===!0)}),...ha(r),...A?{}:{checkoutEveryNms:ye.bufferMs},maskAllInputs:!0})??void 0,T=A=>{if(!f.keep){f.keep=A,f.sampleWeight=1,s.save();for(let j of v.drain())E.pushEvent(j);h?.(),h=C(!0)}},O=A=>{f.marks>=ye.maxMarksPerVisit||(f.marks+=1,s.save(),E.addMark(A),Qc.has(A.kind)?T("frustration"):A.kind==="error"?T("error"):(A.kind==="click"||A.kind==="page")&&Vn(A).some(j=>$n.includes(j))&&T("goal"))},W=new Ht({emit:O,now:l,pages:f.pages,onPages:A=>{f.pages=A,s.save()},watchQuiet:t.watchQuiet}),F=x(()=>st(f,Date.now())),R=0,ae=x(()=>{let A=Date.now();A-R<Zc||(R=A,st(f,A))}),ie=x(A=>{let j=A.target instanceof Element?A.target:null;if(!j)return;st(f,Date.now());let Q=da(j,r.maskAllText===!0),{selector:M,label:I}=Q?ef(j):Tn(j),{docW:D,docH:N}=Vt(),L=typeof A.pageX=="number"?A.pageX:A.clientX+window.scrollX,P=typeof A.pageY=="number"?A.pageY:A.clientY+window.scrollY,{gx:B,gy:q}=Dn(L,P,D,N),U=j.closest("a[href]");W.click({x:A.clientX,y:A.clientY,gx:B,gy:q,el:j,selector:M.slice(0,le.markKey),label:I?I.slice(0,le.markLabel):void 0,href:U?pa(U.getAttribute("href"),location.href):void 0})}),V=0,z=x(()=>{let A=Date.now();st(f,A),!(A-V<Jc)&&(V=A,W.scroll(window.scrollY,window.innerHeight,ai()))}),X=va(),ne=x(()=>{W.leavePage(ai());for(let A of X.take(l()))O(A);s.save(),E.flush(!0)}),J=x(()=>{document.visibilityState==="hidden"&&(s.save(),E.flush(!0))}),H=(A,j,Q)=>{window.addEventListener(A,j,Q),a.push(()=>window.removeEventListener(A,j,Q))};function se(A){if(!c){c=!0;for(let j of a.splice(0))try{j()}catch{}try{h?.()}catch{}h=void 0,X.stop(),v.drain(),window.BFReplay===k&&(window.BFReplay=me),A&&(g=!0,E.flush(!0))}}let k=si({consent:A=>{A||se(!0)},event:x(A=>O({kind:"event",key:A,atMs:l()})),tag:x((A,j)=>{m[A]=j,T("tag")}),identify:x((A,j)=>{d=j?{id:A,traits:j}:{id:A}}),keep:x(()=>T("manual")),stop:()=>se(!0)},{version:b,identify:r.identify===!0,tagKeys:()=>Object.keys(m)}),me=si({consent(){},event(){},tag(){},identify(){},keep(){},stop(){}},{version:b,identify:!1});try{window.BFReplay=k,h=C(f.keep!==null),W.page(location.pathname),H("click",ie,{capture:!0,passive:!0}),H("scroll",z,{passive:!0}),H("pagehide",ne);for(let A of Xc)H(A,A==="mousemove"?ae:F,{passive:!0,capture:!0});document.addEventListener("visibilitychange",J),a.push(()=>document.removeEventListener("visibilitychange",J)),a.push(ia(x((A,j)=>O(na(A,j,l()))))),a.push(ma(x(A=>{W.leavePage(ai()),W.page(A)}))),ya(k,e.queue)}catch(A){return y(A),null}return{stop:()=>se(!0),flush:A=>E.flush(A)}}if(typeof window<"u"&&window.__bfReplay)try{wa(window.__bfReplay)}catch{}return Oa(tf);})();
|
|
130
|
+
`)){let r=t.trim();if(/:\d+/.test(r)&&(r.startsWith("at ")||r.includes("@")))return r.replace(/\?[^\s:)]*/g,"").slice(0,300)}return""}function ra(e,t){return qn(`${Ac(t)}|${e.replace(/\d+/g,"")}`)}function na(e,t,r){let i=(e||"Error").trim();return{kind:"error",key:ra(i,t),label:i.slice(0,le.markLabel),atMs:r}}function ia(e){return ta(t=>e(t.message,t.stack))}function oa(e){let t=e.toLowerCase();return t==="builderforce.ai"||t.endsWith(".builderforce.ai")?"bf":"bfr"}function zt(e){return{visitor:`${e}_visitor_id`,visit:`${e}_visit_id`,seen:`${e}_visit_last_seen`,state:`${e}_replay_state`,minted:`${e}_visitor_minted_at`}}var Nc=3600*24*365;function sa(){let e=new Uint8Array(18);return crypto.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function je(e){try{return window.localStorage.getItem(e)}catch{return null}}function Ke(e,t){try{window.localStorage.setItem(e,t)}catch{}}function Dc(e){let t=`${e}=`;for(let r of document.cookie.split(";")){let i=r.trim();if(i.startsWith(t))try{return decodeURIComponent(i.slice(t.length))}catch{return null}}return null}function _c(e,t){document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=${Nc}; SameSite=Lax`}function Pc(e,t){if(e==null)return!1;let r=Number(e);return Number.isFinite(r)&&r>0&&r<=t&&t-r<=Ut}function aa(e,t=Date.now()){let r=zt(e),i=je(r.visitor)??Dc(r.visitor),n=!1;!i||!He.test(i)?(i=sa(),n=!0):n=Pc(je(r.minted),t),Ke(r.visitor,i),_c(r.visitor,i);let a=Number(je(r.seen)??"0"),c=je(r.visit),u=!c||!He.test(c)||!Number.isFinite(a)||t-a>Ut||!c?sa():c;return Ke(r.visit,u),Ke(r.seen,String(t)),{visitorId:i,visitId:u,newVisitor:n}}function la(e,t=Date.now()){Ke(zt(e).seen,String(t))}var Lc=(e,t)=>{let r=location.href,i=!1,n=null;try{n=new MutationObserver(()=>{i=!0}),n.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}catch{n=null}setTimeout(()=>{n?.disconnect(),t(!i&&location.href===r)},e)},Fc=10,ua=3,Ht=class{clicks=[];scrolls=[];pages;lastClickT=null;route="/";maxDepth=-1;opts;constructor(t){this.opts=t,this.pages=(t.pages??[]).slice(-ua)}get currentRoute(){return this.route}page(t){let r=this.opts.now();this.route=Wn(t),this.maxDepth=-1,this.scrolls=[],this.opts.emit({kind:"page",key:this.route,atMs:r}),this.pages=[...this.pages,{path:this.route,t:r}].slice(-ua),this.opts.onPages?.(this.pages),Ln(this.pages)&&this.opts.emit({kind:"quickback",key:this.route,atMs:r})}click(t){let r=this.opts.now();this.lastClickT=r;let i={key:t.selector,atMs:r,gx:t.gx,gy:t.gy,...t.label?{label:t.label}:{}};if(this.opts.emit({kind:"click",...i,...t.href?{href:t.href}:{}}),this.clicks=[...this.clicks,{t:r,x:t.x,y:t.y}].slice(-Fc),Pn(this.clicks)){this.clicks=[],this.opts.emit({kind:"rage",...i});return}if(!_n(t.el))return;(this.opts.watchQuiet??Lc)(Ie.dead.waitMs,a=>{a&&this.opts.emit({kind:"dead",...i})})}scroll(t,r,i){let n=this.opts.now();if(Number.isFinite(i)){let c=Math.max(0,Math.min(9,Math.floor(i*10)));c>this.maxDepth&&(this.maxDepth=c)}let a=Ie.excessiveScroll.travelWindowMs;this.scrolls=[...this.scrolls.filter(c=>n-c.t<=a),{t:n,y:t}],Fn(this.scrolls,r,this.lastClickT)&&(this.scrolls=[],this.opts.emit({kind:"excessive_scroll",key:this.route,atMs:n}))}leavePage(t){if(Number.isFinite(t)){let r=Math.max(0,Math.min(9,Math.floor(t*10)));r>this.maxDepth&&(this.maxDepth=r)}this.maxDepth<0||(this.opts.emit({kind:"scroll",key:this.route,atMs:this.opts.now(),value:this.maxDepth}),this.maxDepth=-1)}};var ca="[data-bf-mask]",fa="[data-bf-block]",Uc='input[type="password" i], [autocomplete^="cc-" i]';function Bc(e){if(!e||typeof e.matches!="function")return!1;try{return e.matches(Uc)}catch{return(e.getAttribute("type")??"").toLowerCase()==="password"}}function Wc(e,t){return Bc(t)?"":"*".repeat(e?e.length:0)}function da(e,t){if(t)return!0;try{return e.closest(`${ca},${fa}`)!==null}catch{return!0}}function ha(e){let t=e.recordCanvas===!0;return{maskTextSelector:e.maskAllText?"*":ca,blockSelector:fa,maskInputFn:Wc,sampling:t?{mousemove:50,scroll:150,input:"last",canvas:2}:{mousemove:50,scroll:150,input:"last"},recordCanvas:t,...t?{dataURLOptions:{type:"image/jpeg",quality:.4}}:{},maskAllInputs:!0}}function pa(e,t){if(!e)return;let r=e.trim(),i=/^([a-z][a-z0-9+.-]*):/i.exec(r);if(i){let n=i[1].toLowerCase();if(n==="mailto"||n==="tel"||n==="sms")return`${n}:`;if(n!=="http"&&n!=="https")return}try{let n=new URL(r,t),a=new URL(t).host;return(n.host===a?n.pathname:`${n.host}${n.pathname}`).slice(0,200)}catch{return}}function ma(e){let t=location.pathname,r=()=>{let c=location.pathname;c!==t&&(t=c,e(c))},i={push:history.pushState,replace:history.replaceState},n=function(...c){let h=i.push.apply(this,c);return r(),h},a=function(...c){let h=i.replace.apply(this,c);return r(),h};return history.pushState=n,history.replaceState=a,window.addEventListener("popstate",r),()=>{history.pushState===n&&(history.pushState=i.push),history.replaceState===a&&(history.replaceState=i.replace),window.removeEventListener("popstate",r)}}var ga=["consent","event","tag","identify","keep","stop"];var qc=/^[\w .:-]{1,80}$/,$c=/[^\s@]+@[^\s@]+\.[^\s@]+/,Vc=/^(?:\d[ -]?){12,18}\d$/;function zc(e){return typeof e=="string"&&qc.test(e)}function Hc(e){return $c.test(e)||Vc.test(e.trim())}function Fe(e){try{console.warn(`[BFReplay] ${e}`)}catch{}}function jc(e){if(e===void 0)return;if(typeof e!="object"||e===null||Array.isArray(e))return null;let t=Object.entries(e);if(t.length>le.maxTraits)return null;let r={};for(let[i,n]of t){if(!i||i.length>le.traitKey||typeof n!="string"||n.length>le.traitValue)return null;r[i]=n}return r}function si(e,t){return{version:t.version,consent(r){e.consent(r===!0)},event(r){if(!zc(r)){Fe("event ignored: names are 1\u201380 characters of letters, digits, space, _ . : -");return}e.event(r)},tag(r,i){if(typeof r!="string"||!r||r.length>le.tagKey){Fe("tag ignored: keys are 1\u201364 characters");return}if(typeof i!="string"||i.length>le.tagValue){Fe(`tag "${r}" ignored: values are strings of at most 200 characters`);return}if(Hc(i)){Fe(`tag "${r}" refused: the value looks like an email address or a card number`);return}let n=t.tagKeys?.()??[];if(!n.includes(r)&&n.length>=ye.maxTagsPerVisit){Fe(`tag "${r}" ignored: at most ${ye.maxTagsPerVisit} tags per visit`);return}e.tag(r,i)},identify(r,i){if(!t.identify)return;if(typeof r!="string"||!r||r.length>le.identifyId){Fe("identify ignored: the id is 1\u2013128 characters");return}let n=jc(i);if(n===null){Fe("identify ignored: traits are at most 20 string values");return}e.identify(r,n)},keep(){e.keep()},stop(){e.stop()}}}function ya(e,t){for(let[r,i]of t.splice(0,t.length))ga.includes(r)&&e[r](...i)}function oi(e){let t=typeof window.BF_RELEASE=="string"?window.BF_RELEASE:"";return(e||t||"").trim().slice(0,le.release)}function Kc(e=document){let t=[];return e.querySelectorAll("script[src]").forEach(r=>t.push(r.src)),e.querySelectorAll('link[rel~="stylesheet"][href]').forEach(r=>t.push(r.href)),t}async function ba(e){let t=oi(e);if(t)return t;try{return await zn(Kc())??""}catch{return""}}function va(){let e={},t={},r=[],i=0,n=0,a=0;function c(h,u,p={}){if(!(typeof PerformanceObserver>"u"))try{let s=new PerformanceObserver(f=>{for(let l of f.getEntries())u(l)});s.observe({type:h,buffered:!0,...p}),r.push(s)}catch{}}return c("largest-contentful-paint",h=>{e.LCP=h.startTime}),c("layout-shift",h=>{let u=h;if(u.hadRecentInput||typeof u.value!="number")return;let p=h.startTime;i>0&&p-a<1e3&&p-n<5e3?i+=u.value:(i=u.value,n=p),a=p,e.CLS=Math.max(e.CLS??0,i)}),c("event",h=>{h.interactionId&&(e.INP=Math.max(e.INP??0,h.duration))},{durationThreshold:40}),{take(h){let u=[];for(let p of["LCP","CLS","INP"]){let s=e[p];if(typeof s!="number"||!Number.isFinite(s))continue;let f=Math.round(p==="CLS"?s*1e3:s);t[p]!==f&&(t[p]=f,u.push({kind:"vital",key:p,atMs:h,value:f}))}return u},stop(){for(let h of r)h.disconnect();r.length=0}}}function Gc(e,t){return{visitId:e,startedAt:t,seq:0,keep:null,sampled:null,sampleWeight:1,marks:0,pages:[],activeMs:0,lastActiveAt:null}}function Yc(e,t){if(typeof e!="object"||e===null)return!1;let r=e;return r.visitId===t&&typeof r.startedAt=="number"&&typeof r.seq=="number"&&typeof r.marks=="number"&&Array.isArray(r.pages)&&typeof r.sampleWeight=="number"&&typeof r.activeMs=="number"}var jt=class{state;key;constructor(t,r,i){this.key=t;let n=null;try{let a=je(t);n=a?JSON.parse(a):null}catch{n=null}this.state=Yc(n,r)?n:Gc(r,i),this.save()}nextSeq(){let t=this.state.seq;return this.state.seq=t+1,this.save(),t}save(){Ke(this.key,JSON.stringify(this.state))}};var Sa="2026.11.31",Qc=new Set(["rage","dead","quickback"]),Xc=["pointerdown","keydown","touchstart","mousemove","wheel"],Jc=150,Zc=1e3;function ef(e){let t=e.getAttribute("data-testid")??e.getAttribute("data-test-id");return t?{selector:`getByTestId(${JSON.stringify(t)})`,label:t}:{selector:e.tagName.toLowerCase()}}function ai(){let{docH:e}=Vt();return e>0?(window.scrollY+window.innerHeight)/e:1}function wa(e,t={}){let r=e.config;if(!r.enabled)return null;let i=t.record??Oe,n=t.random??Math.random,a=[],c=!1,h,u=oa(location.hostname),p=aa(u),s=new jt(zt(u).state,p.visitId,Date.now()),f=s.state,l=()=>Math.max(0,Date.now()-f.startedAt);if(f.sampled===null){let A=Math.min(1,Math.max(0,r.keepRate??1));f.sampled=A>0&&n()<A,f.sampled&&f.keep===null&&(f.keep="sample",f.sampleWeight=1/A),s.save()}let o=oi(e.release);o||ba().then(A=>o=A);let m={},d,g=!1,w=navigator.userAgent||"",b=(r.recorderVersion||Sa).slice(0,le.recorderVersion),S=()=>{la(u);let A={v:1,visitorId:p.visitorId,visitId:p.visitId,startedAt:f.startedAt,release:o,recorderVersion:b,device:Ko(),newVisitor:p.newVisitor,keep:f.keep,sampleWeight:f.keep?f.sampleWeight:1,activeMs:Math.round(f.activeMs)},j=Yo(w),Q=Qo(w),M=Xo(document.referrer,location.hostname);return j&&(A.browser=j),Q&&(A.os=Q),M&&(A.referrer=M),e.variant&&(A.variant=e.variant.slice(0,le.variant)),Object.keys(m).length>0&&(A.tags={...m}),d&&(A.identify=d),g&&(A.end=!0),A},E=new qt({url:`${e.api}${No.ingestChunks}?site=${encodeURIComponent(e.site)}`,header:S,nextSeq:()=>s.nextSeq(),sink:t.sink,compress:t.compress}),v=new $t,y=A=>{if(!c){try{console.warn("[BFReplay] recorder disabled after an error",A)}catch{}se(!1)}};function x(A){return(...j)=>{if(!c)try{A(...j)}catch(Q){y(Q)}}}let C=A=>i({emit:x((Q,M)=>{f.keep?E.pushEvent(Q):v.push(Q,M===!0)}),...ha(r),...A?{}:{checkoutEveryNms:ye.bufferMs},maskAllInputs:!0})??void 0,T=A=>{if(!f.keep){f.keep=A,f.sampleWeight=1,s.save();for(let j of v.drain())E.pushEvent(j);h?.(),h=C(!0)}},O=A=>{f.marks>=ye.maxMarksPerVisit||(f.marks+=1,s.save(),E.addMark(A),Qc.has(A.kind)?T("frustration"):A.kind==="error"?T("error"):(A.kind==="click"||A.kind==="page")&&Vn(A).some(j=>$n.includes(j))&&T("goal"))},W=new Ht({emit:O,now:l,pages:f.pages,onPages:A=>{f.pages=A,s.save()},watchQuiet:t.watchQuiet}),F=x(()=>st(f,Date.now())),R=0,ae=x(()=>{let A=Date.now();A-R<Zc||(R=A,st(f,A))}),ie=x(A=>{let j=A.target instanceof Element?A.target:null;if(!j)return;st(f,Date.now());let Q=da(j,r.maskAllText===!0),{selector:M,label:I}=Q?ef(j):Tn(j),{docW:D,docH:N}=Vt(),L=typeof A.pageX=="number"?A.pageX:A.clientX+window.scrollX,P=typeof A.pageY=="number"?A.pageY:A.clientY+window.scrollY,{gx:B,gy:q}=Dn(L,P,D,N),U=j.closest("a[href]");W.click({x:A.clientX,y:A.clientY,gx:B,gy:q,el:j,selector:M.slice(0,le.markKey),label:I?I.slice(0,le.markLabel):void 0,href:U?pa(U.getAttribute("href"),location.href):void 0})}),V=0,z=x(()=>{let A=Date.now();st(f,A),!(A-V<Jc)&&(V=A,W.scroll(window.scrollY,window.innerHeight,ai()))}),X=va(),ne=x(()=>{W.leavePage(ai());for(let A of X.take(l()))O(A);s.save(),E.flush(!0)}),J=x(()=>{document.visibilityState==="hidden"&&(s.save(),E.flush(!0))}),H=(A,j,Q)=>{window.addEventListener(A,j,Q),a.push(()=>window.removeEventListener(A,j,Q))};function se(A){if(!c){c=!0;for(let j of a.splice(0))try{j()}catch{}try{h?.()}catch{}h=void 0,X.stop(),v.drain(),window.BFReplay===k&&(window.BFReplay=me),A&&(g=!0,E.flush(!0))}}let k=si({consent:A=>{A||se(!0)},event:x(A=>O({kind:"event",key:A,atMs:l()})),tag:x((A,j)=>{m[A]=j,T("tag")}),identify:x((A,j)=>{d=j?{id:A,traits:j}:{id:A}}),keep:x(()=>T("manual")),stop:()=>se(!0)},{version:b,identify:r.identify===!0,tagKeys:()=>Object.keys(m)}),me=si({consent(){},event(){},tag(){},identify(){},keep(){},stop(){}},{version:b,identify:!1});try{window.BFReplay=k,h=C(f.keep!==null),W.page(location.pathname),H("click",ie,{capture:!0,passive:!0}),H("scroll",z,{passive:!0}),H("pagehide",ne);for(let A of Xc)H(A,A==="mousemove"?ae:F,{passive:!0,capture:!0});document.addEventListener("visibilitychange",J),a.push(()=>document.removeEventListener("visibilitychange",J)),a.push(ia(x((A,j)=>O(na(A,j,l()))))),a.push(ma(x(A=>{W.leavePage(ai()),W.page(A)}))),ya(k,e.queue)}catch(A){return y(A),null}return{stop:()=>se(!0),flush:A=>E.flush(A)}}if(typeof window<"u"&&window.__bfReplay)try{wa(window.__bfReplay)}catch{}return Oa(tf);})();
|
|
131
131
|
/*! Bundled license information:
|
|
132
132
|
|
|
133
133
|
rrweb/dist/rrweb.js:
|