PageSourceSearch

https://motionbox.io/_next/static/chunks/9993-55e7bc07f15b51da.js

js motionbox.io collected 2026-10-03 23:35:41 UTC 78,133 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9993],{79180:function(t,e,s){var i,n,r;n=[s(59829)],void 0!==(r="function"==typeof(i=function(t){"use strict";var e=/(^|@)\S+:\d+/,s=/^\s*at .*(\S+:\d+|\(native\))/m,i=/^(eval@)?(\[native code])?$/;return{parse:function(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"])return this.parseOpera(t);if(t.stack&&t.stack.match(s))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw Error("Cannot parse given Error object")},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(t){return!!t.match(s)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var s=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=s.match(/ (\(.+\)$)/);s=i?s.replace(i[0],""):s;var n=this.extractLocation(i?i[1]:s),r=i&&s||void 0,o=["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0];return new t({functionName:r,fileName:o,lineNumber:n[1],columnNumber:n[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(t){return!t.match(i)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});
1var s=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=e.match(s),n=i&&i[1]?i[1]:void 0,r=this.extractLocation(e.replace(s,""));return new t({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var s=/Line (\d+).*script (?:in )?(\S+)/i,i=e.message.split("\n"),n=[],r=2,o=i.length;r<o;r+=2){var a=s.exec(i[r]);a&&n.push(new t({fileName:a[2],lineNumber:a[1],source:i[r]}))}return n},parseOpera10:function(e){for(var s=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,i=e.stacktrace.split("\n"),n=[],r=0,o=i.length;r<o;r+=2){var a=s.exec(i[r]);a&&n.push(new t({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:i[r]}))}return n},parseOpera11:function(s){return s.stack.split("\n").filter(function(t){return!!t.match(e)&&!t.match(/^Error created at/)},this).map(function(e){var s,i=e.split("@"),n=this.extractLocation(i.pop()),r=i.shift()||"",o=r.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;r.match(/\(([^)]*)\)/)&&(s=r.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===s||"[arguments not available]"===s?void 0:s.split(",");return new t({functionName:o,args:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e})},this)}}})?i.apply(e,n):i)&&(t.exports=r)},59829:function(t,e){var s,i;void 0!==(i="function"==typeof(s=function(){"use strict";function _capitalize(t){return t.charAt(0).toUpperCase()+t.substring(1)}function _getter(t){return function(){return this[t]}}var t=["isConstructor","isEval","isNative","isToplevel"],e=["columnNumber","lineNumber"],s=["fileName","functionName","source"],i=t.concat(e,s,["args"],["evalOrigin"]);function StackFrame(t){if(t)for(var e=0;e<i.length;e++)void 0!==t[i[e]]&&this["set"+_capitalize(i[e])](t[i[e]])}StackFrame.prototype={getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof StackFrame)this.evalOrigin=t;else if(t instanceof Object)this.evalOrigin=new StackFrame(t);else throw TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var t=this.getFileName()||"",e=this.getLineNumber()||"",s=this.getColumnNumber()||"",i=this.getFunctionName()||"";return this.getIsEval()?t?"[eval] ("+t+":"+e+":"+s+")":"[eval]:"+e+":"+s:i?i+" ("+t+":"+e+":"+s+")":t+":"+e+":"+s}},StackFrame.fromString=function(t){var e=t.indexOf("("),s=t.lastIndexOf(")"),i=t.substring(0,e),n=t.substring(e+1,s).split(","),r=t.substring(s+1);if(0===r.indexOf("@"))var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(r,""),a=o[1],c=o[2],u=o[3];return new StackFrame({functionName:i,args:n||void 0,fileName:a,lineNumber:c||void 0,columnNumber:u||void 0})};for(var n=0;n<t.length;n++)StackFrame.prototype["get"+_capitalize(t[n])]=_getter(t[n]),StackFrame.prototype["set"+_capitalize(t[n])]=function(t){return function(e){this[t]=!!e}}(t[n]);for(var r=0;r<e.length;r++)StackFrame.prototype["get"+_capitalize(e[r])]=_getter(e[r]),StackFrame.prototype["set"+_capitalize(e[r])]=function(t){return function(e){if(!(!isNaN(parseFloat(e))&&isFinite(e)))throw TypeError(t+" must be a Number");this[t]=Number(e)}}(e[r]);for(var o=0;o<s.length;o++)StackFrame.prototype["get"+_capitalize(s[o])]=_getter(s[o]),StackFrame.prototype["set"+_capitalize(s[o])]=function(t){return function(e){this[t]=String(e)}}(s[o]);return StackFrame})?s.apply(e,[]):s)&&(t.exports=i)},14671:function(t,e,s){"use strict";s.d(e,{Z:function(){return create}});var i=s(67294);let n="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),r=n?i.useEffect:i.useLayoutEffect;function create(t){let e="function"==typeof t?function(t){let e;let s=new Set,setState=(t,i)=>{let n="function"==typeof t?t(e):t;if(n!==e){let t=e;e=i?n:Object.assign({}
1,e,n),s.forEach(s=>s(e,t))}},getState=()=>e,subscribeWithSelector=(t,i=getState,n=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let r=i(e);function listenerToAdd(){let s=i(e);if(!n(r,s)){let e=r;t(r=s,e)}}return s.add(listenerToAdd),()=>s.delete(listenerToAdd)},i={setState,getState,subscribe:(t,e,i)=>e||i?subscribeWithSelector(t,e,i):(s.add(t),()=>s.delete(t)),destroy:()=>s.clear()};return e=t(setState,getState,i),i}(t):t,useStore=(t=e.getState,s=Object.is)=>{let n;let[,o]=(0,i.useReducer)(t=>t+1,0),a=e.getState(),c=(0,i.useRef)(a),u=(0,i.useRef)(t),h=(0,i.useRef)(s),l=(0,i.useRef)(!1),d=(0,i.useRef)();void 0===d.current&&(d.current=t(a));let p=!1;(c.current!==a||u.current!==t||h.current!==s||l.current)&&(n=t(a),p=!s(d.current,n)),r(()=>{p&&(d.current=n),c.current=a,u.current=t,h.current=s,l.current=!1});let m=(0,i.useRef)(a);r(()=>{let listener=()=>{try{let t=e.getState(),s=u.current(t);h.current(d.current,s)||(c.current=t,d.current=s,o())}catch(t){l.current=!0,o()}},t=e.subscribe(listener);return e.getState()!==m.current&&listener(),t},[]);let f=p?n:d.current;return(0,i.useDebugValue)(f),f};return Object.assign(useStore,e),useStore[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let t=[useStore,e];return{next(){let e=t.length<=0;return{value:t.shift(),done:e}}}},useStore}},28189:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasTag=e.isRootNode=e.isTextNode=e.isElementNode=e.isSVGElement=void 0,e.isSVGElement=function(t){return"http://www.w3.org/2000/svg"===t.namespaceURI},e.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.isRootNode=function(t){return t.nodeType===Node.DOCUMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE},e.hasTag=function(t,e){return t.nodeName===e}},25834:function(t,e,s){"use strict";var i,n;Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_INGEST_POINT=void 0;let r=s(1595),o=s(78752),a=s(2313),c=s(87952),u=s(96786),h=s(73832),l=s(93179),d=s(46673),p=s(43790),m="canceled",UnsuccessfulStart=t=>({reason:t,success:!1}),SuccessfulStart=t=>Object.assign(Object.assign({},t),{success:!0});(n=i||(i={}))[n.NotActive=0]="NotActive",n[n.Starting=1]="Starting",n[n.Active=2]="Active",e.DEFAULT_INGEST_POINT="https://api.openreplay.com/ingest",e.default=class{constructor(t,s,n){this.messages=[],this.startCallbacks=[],this.stopCallbacks=[],this.commitCallbacks=[],this.activityState=i.NotActive,this.version="3.6.6",this.projectKey=t,this.options=Object.assign({revID:"",node_id:"__openreplay_id",session_token_key:"__openreplay_token",session_pageno_key:"__openreplay_pageno",session_reset_key:"__openreplay_reset",local_uuid_key:"__openreplay_uuid",ingestPoint:e.DEFAULT_INGEST_POINT,resourceBaseHref:null,verbose:!1,__is_snippet:!1,__debug_report_edp:null,localStorage:window.localStorage,sessionStorage:window.sessionStorage},n),this.revID=this.options.revID,this.sanitizer=new u.default(this,n),this.nodes=new a.default(this.options.node_id),this.observer=new c.default(this,n),this.ticker=new h.default(this),this.ticker.attach(()=>this.commit()),this.debug=new l.default(this.options.__debug__),this.notify=new l.default(this.options.verbose?l.LogLevel.Warnings:l.LogLevel.Silent),this.session=new d.default(this,this.options),this.session.attachUpdateCallback(({userID:t,metadata:e})=>{null!=t&&this.send(new r.UserID(t)),null!=e&&Object.entries(e).forEach(([t,e])=>this.send(new r.Metadata(t,e)))}),this.localStorage=this.options.localStorage,this.sessionStorage=this.options.sessionStorage,null!=s&&this.sessionStorage.setItem(this.options.session_token_key,s);try{this.worker=new Worker(URL.createObjectURL(new Blob(['"use strict";function t(t){function i(...i){return new t(...i)}return i.prototype=t.prototype,i}const i=new Map;const s=t(class{constructor(t,i,s){this.pageNo=t,this.firstIndex=i,this.timestamp=s,this._id=80}encode(t){return t.uint(80)&&t.uint(this.pageNo)&&t.uint(this.firstIndex)&&t.int(this.timestamp)}});i.set(80,s);const e=t(class{constructor(t){this.timestamp=t,this._id=0}encode(t){return t.uint(0)&&t.uint(this.timestamp)}});i.set(0,e);const n=t(class{constructor(t,i,s){this.url=t,this.referrer=i,this.navigationStart=s,this._id=4}encode(t){return t.uint(4)&&t.string(this.url)&&t.string(this.referrer)&&t.uint(this.navigationStart)}});i.set(4,n);const r=t(class{constructor(t,i){this.width=t,this.height=i,this._id=5}encode(t){return t.uint(5)&&t.uint(this.width)&&t.uint(this.height)}});i.set(5,r);const h=t(class{constructor(t,i){this.x=t,this.y=i,this._id=6}encode(t){return t.uint(6)&&t.int(this.x)&&t.int(this.y)}});i.set(6,h);const o=t(class{constructor(){this._id=7}encode(t){return t.uint(7)}});i.set(7,o);const c=t(class{constructor(t,i,s,e,n){this.id=t,this.parentID=i,this.index=s,this.tag=e,this.svg=n,this._id=8}
1encode(t){return t.uint(8)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)&&t.string(this.tag)&&t.boolean(this.svg)}});i.set(8,c);const a=t(class{constructor(t,i,s){this.id=t,this.parentID=i,this.index=s,this._id=9}encode(t){return t.uint(9)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}});i.set(9,a);const u=t(class{constructor(t,i,s){this.id=t,this.parentID=i,this.index=s,this._id=10}encode(t){return t.uint(10)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}});i.set(10,u);const d=t(class{constructor(t){this.id=t,this._id=11}encode(t){return t.uint(11)&&t.uint(this.id)}});i.set(11,d);const l=t(class{constructor(t,i,s){this.id=t,this.name=i,this.value=s,this._id=12}encode(t){return t.uint(12)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)}});i.set(12,l);const p=t(class{constructor(t,i){this.id=t,this.name=i,this._id=13}encode(t){return t.uint(13)&&t.uint(this.id)&&t.string(this.name)}});i.set(13,p);const g=t(class{constructor(t,i){this.id=t,this.data=i,this._id=14}encode(t){return t.uint(14)&&t.uint(this.id)&&t.string(this.data)}});i.set(14,g);const m=t(class{constructor(t,i,s){this.id=t,this.x=i,this.y=s,this._id=16}encode(t){return t.uint(16)&&t.uint(this.id)&&t.int(this.x)&&t.int(this.y)}});i.set(16,m);const f=t(class{constructor(t,i){this.id=t,this.label=i,this._id=17}encode(t){return t.uint(17)&&t.uint(this.id)&&t.string(this.label)}});i.set(17,f);const y=t(class{constructor(t,i,s){this.id=t,this.value=i,this.mask=s,this._id=18}encode(t){return t.uint(18)&&t.uint(this.id)&&t.string(this.value)&&t.int(this.mask)}});i.set(18,y);const _=t(class{constructor(t,i){this.id=t,this.checked=i,this._id=19}encode(t){return t.uint(19)&&t.uint(this.id)&&t.boolean(this.checked)}});i.set(19,_);const v=t(class{constructor(t,i){this.x=t,this.y=i,this._id=20}encode(t){return t.uint(20)&&t.uint(this.x)&&t.uint(this.y)}});i.set(20,v);const S=t(class{constructor(t,i){this.level=t,this.value=i,this._id=22}encode(t){return t.uint(22)&&t.string(this.level)&&t.string(this.value)}});i.set(22,S);const b=t(class{constructor(t,i,s,e,n,r,h,o,c){this.requestStart=t,this.responseStart=i,this.responseEnd=s,this.domContentLoadedEventStart=e,this.domContentLoadedEventEnd=n,this.loadEventStart=r,this.loadEventEnd=h,this.firstPaint=o,this.firstContentfulPaint=c,this._id=23}encode(t){return t.uint(23)&&t.uint(this.requestStart)&&t.uint(this.responseStart)&&t.uint(this.responseEnd)&&t.uint(this.domContentLoadedEventStart)&&t.uint(this.domContentLoadedEventEnd)&&t.uint(this.loadEventStart)&&t.uint(this.loadEventEnd)&&t.uint(this.firstPaint)&&t.uint(this.firstContentfulPaint)}});i.set(23,b);const w=t(class{constructor(t,i,s){this.speedIndex=t,this.visuallyComplete=i,this.timeToInteractive=s,this._id=24}encode(t){return t.uint(24)&&t.uint(this.speedIndex)&&t.uint(this.visuallyComplete)&&t.uint(this.timeToInteractive)}});i.set(24,w);const E=t(class{constructor(t,i,s){this.name=t,this.message=i,this.payload=s,this._id=25}encode(t){return t.uint(25)&&t.string(this.name)&&t.string(this.message)&&t.string(this.payload)}});i.set(25,E);const x=t(class{constructor(t,i){this.name=t,this.payload=i,this._id=27}encode(t){return t.uint(27)&&t.string(this.name)&&t.string(this.payload)}});i.set(27,x);const T=t(class{constructor(t){this.id=t,this._id=28}encode(t){return t.uint(28)&&t.string(this.id)}});i.set(28,T);const z=t(class{constructor(t){this.id=t,this._id=29}encode(t){return t.uint(29)&&t.string(this.id)}});i.set(29,z);const k=t(class{constructor(t,i){this.key=t,this.value=i,this._id=30}encode(t){return t.uint(30)&&t.string(this.key)&&t.string(this.value)}});i.set(30,k);const A=t(class{constructor(t,i,s){this.id=t,this.rule=i,this.index=s,this._id=37}encode(t){return t.uint(37)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)}});i.set(37,A);const I=t(class{constructor(t,i){this.id=t,this.index=i,this._id=38}encode(t){return t.uint(38)&&t.uint(this.id)&&t.uint(this.index)}});i.set(38,I);const L=t(class{constructor(t,i,s,e,n,r,h){this.method=t,this.url=i,this.request=s,this.response=e,this.status=n,this.timestamp=r,this.duration=h,this._id=39}encode(t){return t.uint(39)&&t.string(this.method)&&t.string(this.url)&&t.string(this.request)&&t.string(this.response)&&t.uint(this.status)&&t.uint(this.timestamp)&&t.uint(this.duration)}});i.set(39,L);const C=t(class{constructor(t,i,s,e){this.name=t,this.duration=i,this.args=s,this.result=e,this._id=40}encode(t){return t.uint(40)&&t.string(this.name)&&t.uint(this.duration)&&t.string(this.args)&&t.string(this.result)}});i.set(40,C);const M=t(class{constructor(t,i){this.key=t,this.value=i,this._id=41}encode(t){return t.uint(41)&&t.string(this.key)&&t.string(this.value)}});i.set(41,M);const N=t(class{constructor(t){this.type=t,this._id=42}
1encode(t){return t.uint(42)&&t.string(this.type)}});i.set(42,N);const B=t(class{constructor(t,i,s){this.action=t,this.state=i,this.duration=s,this._id=44}encode(t){return t.uint(44)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}});i.set(44,B);const U=t(class{constructor(t,i){this.mutation=t,this.state=i,this._id=45}encode(t){return t.uint(45)&&t.string(this.mutation)&&t.string(this.state)}});i.set(45,U);const R=t(class{constructor(t,i){this.type=t,this.payload=i,this._id=46}encode(t){return t.uint(46)&&t.string(this.type)&&t.string(this.payload)}});i.set(46,R);const O=t(class{constructor(t,i,s){this.action=t,this.state=i,this.duration=s,this._id=47}encode(t){return t.uint(47)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}});i.set(47,O);const P=t(class{constructor(t,i,s,e){this.operationKind=t,this.operationName=i,this.variables=s,this.response=e,this._id=48}encode(t){return t.uint(48)&&t.string(this.operationKind)&&t.string(this.operationName)&&t.string(this.variables)&&t.string(this.response)}});i.set(48,P);const q=t(class{constructor(t,i,s,e){this.frames=t,this.ticks=i,this.totalJSHeapSize=s,this.usedJSHeapSize=e,this._id=49}encode(t){return t.uint(49)&&t.int(this.frames)&&t.int(this.ticks)&&t.uint(this.totalJSHeapSize)&&t.uint(this.usedJSHeapSize)}});i.set(49,q);const D=t(class{constructor(t,i,s,e,n,r,h,o){this.timestamp=t,this.duration=i,this.ttfb=s,this.headerSize=e,this.encodedBodySize=n,this.decodedBodySize=r,this.url=h,this.initiator=o,this._id=53}encode(t){return t.uint(53)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.ttfb)&&t.uint(this.headerSize)&&t.uint(this.encodedBodySize)&&t.uint(this.decodedBodySize)&&t.string(this.url)&&t.string(this.initiator)}});i.set(53,D);const W=t(class{constructor(t,i){this.downlink=t,this.type=i,this._id=54}encode(t){return t.uint(54)&&t.uint(this.downlink)&&t.string(this.type)}});i.set(54,W);const H=t(class{constructor(t){this.hidden=t,this._id=55}encode(t){return t.uint(55)&&t.boolean(this.hidden)}});i.set(55,H);const J=t(class{constructor(t,i,s,e,n,r,h){this.timestamp=t,this.duration=i,this.context=s,this.containerType=e,this.containerSrc=n,this.containerId=r,this.containerName=h,this._id=59}encode(t){return t.uint(59)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.context)&&t.uint(this.containerType)&&t.string(this.containerSrc)&&t.string(this.containerId)&&t.string(this.containerName)}});i.set(59,J);const F=t(class{constructor(t,i,s,e){this.id=t,this.name=i,this.value=s,this.baseURL=e,this._id=60}encode(t){return t.uint(60)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)&&t.string(this.baseURL)}});i.set(60,F);const X=t(class{constructor(t,i,s){this.id=t,this.data=i,this.baseURL=s,this._id=61}encode(t){return t.uint(61)&&t.uint(this.id)&&t.string(this.data)&&t.string(this.baseURL)}});i.set(61,X);const G=t(class{constructor(t,i){this.type=t,this.value=i,this._id=63}encode(t){return t.uint(63)&&t.string(this.type)&&t.string(this.value)}});i.set(63,G);const K=t(class{constructor(t,i){this.name=t,this.payload=i,this._id=64}encode(t){return t.uint(64)&&t.string(this.name)&&t.string(this.payload)}});i.set(64,K);const j=t(class{constructor(){this._id=65}encode(t){return t.uint(65)}});i.set(65,j);const Q=t(class{constructor(t,i,s,e){this.id=t,this.rule=i,this.index=s,this.baseURL=e,this._id=67}encode(t){return t.uint(67)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)&&t.string(this.baseURL)}});i.set(67,Q);const V=t(class{constructor(t,i,s,e){this.id=t,this.hesitationTime=i,this.label=s,this.selector=e,this._id=69}encode(t){return t.uint(69)&&t.uint(this.id)&&t.uint(this.hesitationTime)&&t.string(this.label)&&t.string(this.selector)}});i.set(69,V);const Y=t(class{constructor(t,i){this.frameID=t,this.id=i,this._id=70}encode(t){return t.uint(70)&&t.uint(this.frameID)&&t.uint(this.id)}});i.set(70,Y);class Z{constructor(t,i,s,e=10,n=1e3){this.onUnauthorised=i,this.onFailure=s,this.MAX_ATTEMPTS_COUNT=e,this.ATTEMPT_TIMEOUT=n,this.attemptsCount=0,this.busy=!1,this.queue=[],this.token=null,this.ingestURL=t+"/v1/web/i"}authorise(t){this.token=t}push(t){this.busy||!this.token?this.queue.push(t):this.sendBatch(t)}retry(t){this.attemptsCount>=this.MAX_ATTEMPTS_COUNT?this.onFailure():(this.attemptsCount++,setTimeout(()=>this.sendBatch(t),this.ATTEMPT_TIMEOUT*this.attemptsCount))}sendBatch(t){this.busy=!0,fetch(this.ingestURL,{body:t,method:"POST",headers:{Authorization:"Bearer "+this.token},keepalive:t.length<65536}).then(i=>{if(401===i.status)return this.busy=!1,void this.onUnauthorised();if(i.status>=400)return void this.retry(t);this.attemptsCount=0;const s=this.queue.shift();s?this.sendBatch(s):this.busy=!1}).catch(i=>{console.warn("OpenReplay:",i),this.retry(t)})}clean(){this.queue.length=0}}const tt="function"==typeof TextEncoder?new TextEncoder:{encode(t){const i=t.length,s=new Uint8Array(3*i);let e=-1;for(let n=0,r=0,h=0;h!==i;){if(n=t.charCodeAt(h),h+=1,n>=55296&&n<=56319){if(h===i){s[e+=1]=239,s[e+=1]=191,s[e+=1]=189;break}if(r=t.charCodeAt(h),!(r>=56320&&r<=57343)){s[e+=1]=239,s[e+=1]=191,s[e+=1]=189;continue}if(n=1024*(n-55296)+r-56320+65536,h+=1,n>65535){s[e+=1]=240|n>>>18,s[e+=1]=128|n>>>12&63,s[e+=1]=128|n>>>6&63,s[e+=1]=128|63&n;continue}}n<=127?s[e+=1]=0|n:n<=2047?(s[e+=1]=192|n>>>6,s[e+=1]=128|63&n):(s[e+=1]=224|n>>>12,s[e+=1]=128|n>>>6&63,s[e+=1]=128|63&n)}return s.subarray(0,e+1)}};class it{constructor(t){this.size=t,this.offset=0,this.checkpointOffset=0,this.data=new Uint8Array(t)}checkpoint(){this.checkpointOffset=this.offset}isEmpty(){return 0===this.offset}boolean(t){return this.data[this.offset++]=+t,this.offset<=this.size}uint(t){for((t<0||t>Number.MAX_SAFE_INTEGER)&&(t=0);t>=128;)this.data[this.offset++]=t%256|128,t=Math.floor(t/128);return this.data[this.offset++]=t,this.offset<=this.size}int(t){return t=Math.round(t),this.uint(t>=0?2*t:-2*t-1)}string(t){const i=tt.encode(t),s=i.byteLength;return!(!this.uint(s)||this.offset+s>this.size)&&(this.data.set(i,this.offset),this.offset+=s,!0)}reset(){this.offset=0,this.checkpointOffset=0}flush(){const t=this.data.slice(0,this.checkpointOffset);return this.reset(),t}}class st{constructor(t,i,s){this.pageNo=t,this.timestamp=i,this.onBatch=s,this.nextIndex=0,this.beaconSize=2e5,this.writer=new it(this.beaconSize),this.isEmpty=!0,this.beaconSizeLimit=1e6,this.prepare()}prepare(){this.writer.isEmpty()&&new s(this.pageNo,this.nextIndex,this.timestamp).encode(this.writer)}write(t){const i=t.encode(this.writer);return i&&(this.isEmpty=!1,this.writer.checkpoint(),this.nextIndex++),i}setBeaconSizeLimit(t){this.beaconSizeLimit=t}writeMessage(t){for(t instanceof e&&(this.timestamp=t.timestamp);!this.write(t);){if(this.finaliseBatch(),this.beaconSize===this.beaconSizeLimit)return console.warn("OpenReplay: beacon size overflow. Skipping large message."),this.writer.reset(),this.prepare(),void(this.isEmpty=!0);this.beaconSize=Math.min(2*this.beaconSize,this.beaconSizeLimit),this.writer=new it(this.beaconSize),this.prepare(),this.isEmpty=!0}}finaliseBatch(){this.isEmpty||(this.onBatch(this.writer.flush()),this.prepare(),this.isEmpty=!0)}clean(){this.writer.reset()}}var et;
1!function(t){t[t.NotActive=0]="NotActive",t[t.Starting=1]="Starting",t[t.Stopping=2]="Stopping",t[t.Active=3]="Active"}(et||(et={}));let nt=null,rt=null;function ht(){rt&&rt.finaliseBatch()}function ot(){et.Stopping,null!==ut&&(clearInterval(ut),ut=null),rt&&(rt.clean(),rt=null),nt&&(nt.clean(),nt=null),et.NotActive}function ct(){self.postMessage("restart"),ot()}et.NotActive;let at,ut=null;self.onmessage=({data:t})=>{if(null!=t){if("stop"===t)return ht(),void ot();if(Array.isArray(t)){if(!rt)throw new Error("WebWorker: writer not initialised. Service Should be Started.");const s=rt;t.forEach(t=>{const e=new(i.get(t._id));Object.assign(e,t),e instanceof H&&(e.hidden?at=setTimeout(()=>ct(),18e5):clearTimeout(at)),s.writeMessage(e)})}else{if("start"===t.type)return et.Starting,nt=new Z(t.ingestPoint,()=>{ct()},()=>{self.postMessage("failed"),ot()},t.connAttemptCount,t.connAttemptGap),rt=new st(t.pageNo,t.timestamp,t=>nt&&nt.push(t)),null===ut&&(ut=setInterval(ht,1e4)),et.Active;if("auth"===t.type){if(!nt)throw new Error("WebWorker: sender not initialised. Received auth.");if(!rt)throw new Error("WebWorker: writer not initialised. Received auth.");return nt.authorise(t.token),void(t.beaconSizeLimit&&rt.setBeaconSizeLimit(t.beaconSizeLimit))}}}else ht()};'],{type:"text/javascript"}))),this.worker.onerror=t=>{this._debug("webworker_error",t)},this.worker.onmessage=({data:t})=>{"failed"===t?(this.stop(!1),this._debug("worker_failed",{})):"restart"===t&&(this.stop(!1),this.start({forceNew:!0}))};let alertWorker=()=>{this.worker&&this.worker.postMessage(null)};this.attachEventListener(window,"beforeunload",alertWorker,!1),this.attachEventListener(document.body,"mouseleave",alertWorker,!1,!1),this.attachEventListener(document,"visibilitychange",alertWorker,!1)}catch(t){this._debug("worker_start",t)}}_debug(t,e){null!==this.options.__debug_report_edp&&fetch(this.options.__debug_report_edp,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:t,error:`${e}`})}),this.debug.error("OpenReplay error: ",t,e)}send(t,e=!1){this.activityState!==i.NotActive&&(this.messages.push(t),this.activityState===i.Active&&e&&this.commit())}commit(){this.worker&&this.messages.length&&(this.messages.unshift(new r.Timestamp((0,o.timestamp)())),this.worker.postMessage(this.messages),this.commitCallbacks.forEach(t=>t(this.messages)),this.messages.length=0)}safe(t){let e=this;return function(...s){try{t.apply(this,s)}catch(t){e._debug("safe_fn_call",t)}}}attachCommitCallback(t){this.commitCallbacks.push(t)}attachStartCallback(t){this.startCallbacks.push(t)}attachStopCallback(t){this.stopCallbacks.push(t)}attachEventListener(t,e,s,i=!0,n=!0){i&&(s=this.safe(s)),this.attachStartCallback(()=>t.addEventListener(e,s,n)),this.attachStopCallback(()=>t.removeEventListener(e,s,n))}checkRequiredVersion(t){let e=t.split(/[.-]/),s=this.version.split(/[.-]/);for(let t=0;t<3;t++){if(isNaN(Number(s[t]))||isNaN(Number(e[t])))return!1;if(Number(s[t])>Number(e[t]))break;if(Number(s[t])<Number(e[t]))return!1}return!0}getStartInfo(){return{userUUID:this.localStorage.getItem(this.options.local_uuid_key),projectKey:this.projectKey,revID:this.revID,timestamp:(0,o.timestamp)(),trackerVersion:this.version,isSnippet:this.options.__is_snippet}}getSessionInfo(){return Object.assign(Object.assign({},this.session.getInfo()),this.getStartInfo())}getSessionToken(){let t=this.sessionStorage.getItem(this.options.session_token_key);if(null!==t)return t}getSessionID(){return this.session.getInfo().sessionID||void 0}getSessionURL(){let{projectID:t,sessionID:e}=this.session.getInfo();if(!t||!e){this.debug.error("OpenReplay error: Unable to build session URL");return}return this.options.ingestPoint.replace(/ingest$/,`${t}/session/${e}`)}getHost(){return new URL(this.options.ingestPoint).hostname}getProjectKey(){return this.projectKey}getBaseHref(){var t,e;return"string"==typeof this.options.resourceBaseHref?this.options.resourceBaseHref:(this.options.resourceBaseHref,document.baseURI)?document.baseURI:(null===(e=null===(t=document.head)||void 0===t?void 0:t.getElementsByTagName("base")[0])||void 0===e?void 0:e.getAttribute("href"))||location.origin+location.pathname}resolveResourceURL(t){let e=new URL(this.getBaseHref());return e.pathname+="/"+new URL(t).pathname,e.pathname.replace(/\/+/g,"/"),e.toString()}isServiceURL(t){return t.startsWith(this.options.ingestPoint)}active(){return this.activityState===i.Active}resetNextPageSession(t){t?this.sessionStorage.setItem(this.options.session_reset_key,"t"):this.sessionStorage.removeItem(this.options.session_reset_key)}_start(t){if(!this.worker)return Promise.resolve(UnsuccessfulStart("No worker found: perhaps, CSP is not set."));if(this.activityState!==i.NotActive)return Promise.resolve(UnsuccessfulStart("Open
1Replay: trying to call `start()` on the instance that has been started already."));this.activityState=i.Starting;let e=0,s=this.sessionStorage.getItem(this.options.session_pageno_key);null!=s&&(e=parseInt(s),e++),this.sessionStorage.setItem(this.options.session_pageno_key,e.toString());let n=this.getStartInfo(),r={type:"start",pageNo:e,ingestPoint:this.options.ingestPoint,timestamp:n.timestamp,connAttemptCount:this.options.connAttemptCount,connAttemptGap:this.options.connAttemptGap};this.worker.postMessage(r),this.session.update({metadata:t.metadata||this.session.getInfo().metadata,userID:t.userID});let o=this.sessionStorage.getItem(this.options.session_reset_key);return this.sessionStorage.removeItem(this.options.session_reset_key),window.fetch(this.options.ingestPoint+"/v1/web/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({},n),{userID:this.session.getInfo().userID,token:this.sessionStorage.getItem(this.options.session_token_key),deviceMemory:p.deviceMemory,jsHeapSizeLimit:p.jsHeapSizeLimit,reset:t.forceNew||null!==o}))}).then(t=>200===t.status?t.json():t.text().then(e=>e===m?Promise.reject(m):Promise.reject(`Server error: ${t.status}. ${e}`))).then(t=>{if(!this.worker)return Promise.reject("no worker found after start request (this might not happen)");let{token:e,userUUID:s,sessionID:n,beaconSizeLimit:r}=t;if("string"!=typeof e||"string"!=typeof s||"number"!=typeof r&&void 0!==r)return Promise.reject(`Incorrect server response: ${JSON.stringify(t)}`);this.sessionStorage.setItem(this.options.session_token_key,e),this.localStorage.setItem(this.options.local_uuid_key,s),this.session.update({sessionID:n}),this.worker.postMessage({type:"auth",token:e,beaconSizeLimit:r}),this.activityState=i.Active;let o={sessionToken:e,userUUID:s,sessionID:n};return this.startCallbacks.forEach(t=>t(o)),this.observer.observe(),this.ticker.start(),this.notify.log("OpenReplay tracking started."),"function"==typeof this.options.onStart&&this.options.onStart(o),SuccessfulStart(o)}).catch(t=>(this.sessionStorage.removeItem(this.options.session_token_key),this.stop(),t===m)?UnsuccessfulStart(m):(this.notify.log("OpenReplay was unable to start. ",t),this._debug("session_start",t),UnsuccessfulStart(":(")))}start(t={}){return document.hidden?new Promise(e=>{let onVisibilityChange=()=>{document.hidden||(document.removeEventListener("visibilitychange",onVisibilityChange),e(this._start(t)))};document.addEventListener("visibilitychange",onVisibilityChange)}):this._start(t)}stop(t=!1,e=!1){if(this.activityState!==i.NotActive)try{this.sanitizer.clear(),this.observer.disconnect(),this.nodes.clear(),this.ticker.stop(),this.stopCallbacks.forEach(t=>t()),t&&this.session.reset(),this.notify.log("OpenReplay tracking stopped."),this.worker&&!e&&this.worker.postMessage("stop")}finally{this.activityState=i.NotActive}}restart(){this.stop(!1,!0),this.start({forceNew:!1})}}},93179:function(t,e){"use strict";function IsCustomLevel(t){return"object"==typeof t}Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,e.LogLevel={Verbose:5,Log:4,Warnings:3,Errors:2,Silent:0},e.default=class{constructor(t=e.LogLevel.Silent){this.options=!0===t?{level:e.LogLevel.Verbose}:"number"==typeof t?{level:t}:t}log(...t){(IsCustomLevel(this.options.level)?this.options.level.log:this.options.level>=e.LogLevel.Log)&&console.log(...t)}warn(...t){(IsCustomLevel(this.options.level)?this.options.level.warn:this.options.level>=e.LogLevel.Warnings)&&console.warn(...t)}error(...t){(IsCustomLevel(this.options.level)?this.options.level.error:this.options.level>=e.LogLevel.Errors)&&console.error(...t)}}},2313:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t){this.node_id=t,this.nodes=[],this.nodeCallbacks=[],this.elementListeners=new Map}attachNodeCallback(t){this.nodeCallbacks.push(t)}attachElementListener(t,e,s){let i=this.getID(e);if(void 0===i)return;e.addEventListener(t,s);let n=this.elementListeners.get(i);if(void 0===n){n=[],this.elementListeners.set(i,n);return}n.push([t,s])}registerNode(t){let e=t[this.node_id],s=void 0===e;return s&&(e=this.nodes.length,this.nodes[e]=t,t[this.node_id]=e),[e,s]}unregisterNode(t){let e=t[this.node_id];if(void 0!==e){delete t[this.node_id],delete this.nodes[e];let s=this.elementListeners.get(e);
1void 0!==s&&(this.elementListeners.delete(e),s.forEach(e=>t.removeEventListener(e[0],e[1])))}return e}cleanTree(){for(let t=0;t<this.nodes.length;t++){let e=this.nodes[t];e&&!document.contains(e)&&this.unregisterNode(e)}}callNodeCallbacks(t,e){this.nodeCallbacks.forEach(s=>s(t,e))}getID(t){return t[this.node_id]}getNode(t){return this.nodes[t]}clear(){for(let t=0;t<this.nodes.length;t++){let e=this.nodes[t];void 0!==e&&this.unregisterNode(e)}this.nodes.length=0}}},78948:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(72554),n=s(1595);let IFrameObserver=class IFrameObserver extends i.default{observe(t){let e=t.contentDocument,s=this.app.nodes.getID(t);e&&void 0!==s&&this.observeRoot(e,t=>{if(void 0===t){console.log("OpenReplay: Iframe document not bound");return}this.app.send((0,n.CreateIFrameDocument)(s,t))})}};e.default=IFrameObserver},72554:function(t,e,s){"use strict";var i,n;Object.defineProperty(e,"__esModule",{value:!0});let r=s(1595),o=s(28189);function isIgnored(t){if((0,o.isTextNode)(t))return!1;if(!(0,o.isElementNode)(t))return!0;let e=t.tagName.toUpperCase();if("LINK"===e){let e=t.getAttribute("rel"),s=t.getAttribute("as");return!((null==e?void 0:e.includes("stylesheet"))||"style"===s||"font"===s)}return"SCRIPT"===e||"NOSCRIPT"===e||"META"===e||"TITLE"===e||"BASE"===e}function isObservable(t){return!!(0,o.isRootNode)(t)||!isIgnored(t)}(n=i||(i={}))[n.New=0]="New",n[n.Removed=1]="Removed",n[n.Changed=2]="Changed",e.default=class{constructor(t,e=!1){this.app=t,this.isTopContext=e,this.commited=[],this.recents=new Map,this.indexes=[],this.attributesMap=new Map,this.textSet=new Set,this.observer=new MutationObserver(this.app.safe(t=>{for(let e of t){let t=e.target,s=e.type;if(!isObservable(t))continue;if("childList"===s){for(let t=0;t<e.removedNodes.length;t++)isObservable(e.removedNodes[t])&&this.bindNode(e.removedNodes[t]);for(let t=0;t<e.addedNodes.length;t++)this.bindTree(e.addedNodes[t]);continue}let n=this.app.nodes.getID(t);if(void 0!==n){if(this.recents.has(n)||this.recents.set(n,i.Changed),"attributes"===s){let t=e.attributeName;if(null===t)continue;let s=this.attributesMap.get(n);void 0===s&&this.attributesMap.set(n,s=new Set),s.add(t);continue}if("characterData"===s){this.textSet.add(n);continue}}}this.commitNodes()}))}clear(){this.commited.length=0,this.recents.clear(),this.indexes.length=1,this.attributesMap.clear(),this.textSet.clear()}sendNodeAttribute(t,e,s,i){if((0,o.isSVGElement)(e)){"xlink:"===s.substr(0,6)&&(s=s.substr(6)),null===i?this.app.send(new r.RemoveNodeAttribute(t,s)):"href"===s?(i.length>1e5&&(i=""),this.app.send(new r.SetNodeAttributeURLBased(t,s,i,this.app.getBaseHref()))):this.app.send(new r.SetNodeAttribute(t,s,i));return}if(!("src"===s||"srcset"===s||"integrity"===s||"crossorigin"===s||"autocomplete"===s||"on"===s.substr(0,2)||"value"===s&&(0,o.hasTag)(e,"INPUT")&&"button"!==e.type&&"reset"!==e.type&&"submit"!==e.type)){if(null===i){this.app.send(new r.RemoveNodeAttribute(t,s));return}if("style"===s||"href"===s&&(0,o.hasTag)(e,"LINK")){this.app.send(new r.SetNodeAttributeURLBased(t,s,i,this.app.getBaseHref()));return}("href"===s||i.length>1e5)&&(i=""),this.app.send(new r.SetNodeAttribute(t,s,i))}}sendNodeData(t,e,s){if((0,o.hasTag)(e,"STYLE")||(0,o.hasTag)(e,"style")){this.app.send(new r.SetCSSDataURLBased(t,s,this.app.getBaseHref()));return}s=this.app.sanitizer.sanitize(t,s),this.app.send(new r.SetNodeData(t,s))}bindNode(t){let[e,s]=this.app.nodes.registerNode(t);s?this.recents.set(e,i.New):this.recents.get(e)!==i.New&&this.recents.set(e,i.Removed)}bindTree(t){if(!isObservable(t))return;this.bindNode(t);let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_TEXT,{acceptNode:t=>isIgnored(t)||void 0!==this.app.nodes.getID(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},!1);for(;e.nextNode();)this.bindNode(e.currentNode)}unbindTree(t){let e=this.app.nodes.unregisterNode(t);if(void 0!==e&&this.recents.get(e)===i.Removed){this.app.send((0,r.RemoveNode)(e));let s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_TEXT,{acceptNode:t=>isIgnored(t)||void 0===this.app.nodes.getID(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},!1);for(;s.nextNode();)this.app.nodes.unregisterNode(s.currentNode)}}_commitNode(t,e){let s;if((0,o.isRootNode)(e))return!0;let n=e.parentNode;if(!(0,o.hasTag)(e,"HTML")||!this.isTopContext){if(null===n||void 0===(s=this.app.nodes.getID(n))||!this.commitNode(s))return this.unbindTree(e),!1;if(this.app.sanitizer.handleNode(t,s,e),this.app.sanitizer.isMaskedContainer(s))return!1}let a=e.previousSibling;for(;null!==a;){let e=this.app.nodes.getID(a);if(void 0!==e){this.commitNode(e),this.indexes[t]=this.indexes[e]+1;break}a=a.previousSibling}null===a&&(this.indexes[t]=0);let c=this.recents.get(t),u=c===i.New,h=this.indexes[t];if(void 0===h)throw"commitNode: missing node index";if(u){if((0,o.isElementNode)(e)){let i=e;if(void 0!==s){if(this.app.sanitizer.isMaskedContainer(t)){let t=i.clientWidth,s=i.clientHeight;(i=e.cloneNode()).style.width=t+"px",i.style.height=s+"px"}this.app.send(new r.CreateElementNode(t,s,h,i.tagName,(0,o.isSVGElement)(e)))}for(let e=0;e<i.attributes.length;e++){let s=i.attributes[e];this.sendNodeAttribute(t,i,s.nodeName,s.value)}}else(0,o.isTextNode)(e)&&(this.app.send(new r.CreateTextNode(t,s,h)),this.sendNodeData(t,n,e.data));return!0}c===i.Removed&&void 0!==s&&this.app.send(new r.MoveNode(t,s,h));let l=this.attributesMap.get(t);if(void 0!==l){if(!(0,o.isElementNode)(e))throw"commitNode: node is not an element";for(let s of l)this.sendNodeAttribute(t,e,s,e.getAttribute(s))}if(this.textSet.has(t)){if(!(0,o.isTextNode)(e))throw"commitNode: node is not a text";this.sendNodeData(t,n,e.data)}return!0}commitNode(t){let e=this.app.nodes.getNode(t);if(void 0===e)return!1;let s=this.commited[t];return void 0!==s?s:this.commited[t]=this._commitNode(t,e)}commitNodes(t=!1){let e;
1this.recents.forEach((s,n)=>{this.commitNode(n),s===i.New&&(e=this.app.nodes.getNode(n))&&this.app.nodes.callNodeCallbacks(e,t)}),this.clear()}observeRoot(t,e,s=t){this.observer.observe(t,{childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),this.bindTree(s),e(this.app.nodes.getID(t)),this.commitNodes(!0)}disconnect(){this.observer.disconnect(),this.clear()}}},6380:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(72554),n=s(1595);let ShadowRootObserver=class ShadowRootObserver extends i.default{observe(t){let e=t.shadowRoot,s=this.app.nodes.getID(t);e&&void 0!==s&&this.observeRoot(e,t=>{if(void 0===t){console.log("OpenReplay: Shadow Root was not bound");return}this.app.send((0,n.CreateIFrameDocument)(s,t))})}};e.default=ShadowRootObserver},87952:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(72554),n=s(28189),r=s(78948),o=s(6380),a=s(1595),c=s(78752),u=c.IN_BROWSER?Element.prototype.attachShadow:()=>new ShadowRoot;let TopObserver=class TopObserver extends i.default{constructor(t,e){super(t,!0),this.iframeObservers=[],this.shadowRootObservers=[],this.options=Object.assign({captureIFrames:!0},e),this.app.nodes.attachNodeCallback(t=>{(0,n.hasTag)(t,"IFRAME")&&(this.options.captureIFrames&&!(0,c.hasOpenreplayAttribute)(t,"obscured")||(0,c.hasOpenreplayAttribute)(t,"capture"))&&this.handleIframe(t)}),this.app.nodes.attachNodeCallback(t=>{(0,n.isElementNode)(t)&&null!==t.shadowRoot&&this.handleShadowRoot(t.shadowRoot)})}handleIframe(t){let e=null,s=this.app.safe(()=>{let s=this.app.nodes.getID(t);if(void 0===s||t.contentDocument===e||!(e=t.contentDocument)||!t.contentWindow)return;let i=new r.default(this.app);this.iframeObservers.push(i),i.observe(t)});t.addEventListener("load",s),s()}handleShadowRoot(t){let e=new o.default(this.app);this.shadowRootObservers.push(e),e.observe(t.host)}observe(){let t=this;Element.prototype.attachShadow=function(){let e=u.apply(this,arguments);return t.handleShadowRoot(e),e},this.observeRoot(window.document,()=>{this.app.send(new a.CreateDocument)},window.document.documentElement)}disconnect(){Element.prototype.attachShadow=u,this.iframeObservers.forEach(t=>t.disconnect()),this.iframeObservers=[],this.shadowRootObservers.forEach(t=>t.disconnect()),this.shadowRootObservers=[],super.disconnect()}};e.default=TopObserver},96786:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(78752),n=s(28189);e.default=class{constructor(t,e){this.app=t,this.masked=new Set,this.maskedContainers=new Set,this.options=Object.assign({obscureTextEmails:!0,obscureTextNumbers:!1},e)}handleNode(t,e,s){(this.masked.has(e)||(0,n.isElementNode)(s)&&(0,i.hasOpenreplayAttribute)(s,"masked"))&&this.masked.add(t),(this.maskedContainers.has(e)||(0,n.isElementNode)(s)&&(0,i.hasOpenreplayAttribute)(s,"htmlmasked"))&&this.maskedContainers.add(t)}sanitize(t,e){return this.masked.has(t)?e.trim().replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g,"█"):(this.options.obscureTextNumbers&&(e=e.replace(/\d/g,"0")),this.options.obscureTextEmails&&(e=e.replace(/([^\s]+)@([^\s]+)\.([^\s]+)/g,(...t)=>(0,i.stars)(t[1])+"@"+(0,i.stars)(t[2])+"."+(0,i.stars)(t[3]))),e)}isMasked(t){return this.masked.has(t)}isMaskedContainer(t){return this.maskedContainers.has(t)}getInnerTextSecure(t){let e=this.app.nodes.getID(t);return e?this.sanitize(e,t.innerText):""}clear(){this.masked.clear(),this.maskedContainers.clear()}}},46673:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t,e){this.app=t,this.options=e,this.metadata={},this.userID=null,this.callbacks=[],this.timestamp=0}attachUpdateCallback(t){this.callbacks.push(t)}handleUpdate(t){null==t.userID&&delete t.userID,null==t.sessionID&&delete t.sessionID,this.callbacks.forEach(e=>e(t))}update(t){void 0!==t.userID&&(this.userID=t.userID),void 0!==t.metadata&&Object.entries(t.metadata).forEach(([t,e])=>this.metadata[t]=e),void 0!==t.sessionID&&(this.sessionID=t.sessionID),void 0!==t.timestamp&&(this.timestamp=t.timestamp),void 0!==t.projectID&&(this.projectID=t.projectID),this.handleUpdate(t)}setMetadata(t,e){this.metadata[t]=e,this.handleUpdate({metadata:{[t]:e}})}setUserID(t){this.userID=t,this.handleUpdate({userID:t})}getInfo(){return{sessionID:this.sessionID,metadata:this.metadata,userID:this.userID,timestamp:this.timestamp,projectID:this.projectID}}reset(){this.app.sessionStorage.removeItem(this.options.session_token_key),this.metadata={},this.userID=null,this.sessionID=void 0,this.timestamp=0}}},73832:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t){this.app=t,this.timer=null,this.callbacks=[]}attach(t,e=0,s=!0,i){var n;let r;i&&(t=t.bind(i)),s&&(t=this.app.safe(t)),this.callbacks.unshift(e?(n=t,r=0,()=>{r++>=e&&(r=0,n())}):t)}start(){null===this.timer&&(this.timer=setInterval(()=>this.callbacks.forEach(t=>{t&&t()}),30))}stop(){null!==this.timer&&(clearInterval(this.timer),this.timer=null)}}},1595:function(t,e){"use strict";function bindNew(t){function _Class(...e){return new t(...e)}return _Class.prototype=t.prototype,_Class}Object.defineProperty(e,"__esModule",{value:!0}),e.MouseClick=e.CSSInsertRuleURLBased=e.PageClose=e.CustomIssue=e.TechnicalInfo=e.SetCSSDataURLBased=e.SetNodeAttributeURLBased=e.LongTask=e.SetPageVisibility=e.ConnectionInformation=e.ResourceTiming=e.PerformanceTrack=e.GraphQL=e.NgRx=e.MobX=e.Vuex=e.Redux=e.StateAction=e.OTable=e.Profiler=e.Fetch=e.CSSDeleteRule=e.CSSInsertRule=e.Metadata=e.UserAnonymousID=e.UserID=e.RawCustomEvent=e.JSException=e.PageRenderTiming=e.PageLoadTiming=e.ConsoleLog=e.MouseMove=e.SetInputChecked=e.SetInputValue=e.SetInputTarget=e.SetNodeScroll=e.SetNodeData=e.RemoveNodeAttribute=e.SetNodeAttribute=e.RemoveNode=e.MoveNode=e.CreateTextNode=e.CreateElementNode=e.CreateDocument=e.SetViewportScroll=e.SetViewportSize=e.SetPageLocation=e.Timestamp=e.BatchMeta=e.classes=void 0,e.CreateIFrameDocument=void 0,e.classes=new Map,e.BatchMeta=bindNew(class{constructor(t,e,s){this.pageNo=t,this.firstIndex=e,this.timestamp=s,this._id=80}encode(t){return t.uint(80)&&t.uint(this.pageNo)&&t.uint(this.firstIndex)&&t.int(this.timestamp)}}),e.classes.set(80,e.BatchMeta),e.Timestamp=bindNew(class{constructor(t){this.timestamp=t,this._id=0}encode(t){return t.uint(0)&&t.uint(this.timestamp)}}),e.classes.set(0,e.Timestamp),e.SetPageLocation=bindNew(class{constructor(t,e,s){this.url=t,this.referrer=e,this.navigationStart=s,this._id=4}encode(t){return t.uint(4)&&t.string(this.url)&&t.string(this.referrer)&&t.uint(this.navigationStart)}}),e.classes.set(4,e.SetPageLocation),e.SetViewportSize=bindNew(class{constructor(t,e){this.width=t,this.height=e,this._id=5}encode(t){return t.uint(5)&&t.uint(this.width)&&t.uint(this.height)}}),e.classes.set(5,e.SetViewportSize),e.SetViewportScroll=bindNew(class{constructor(t,e){this.x=t,this.y=e,this._id=6}encode(t){return t.uint(6)&&t.int(this.x)&&t.int(this.y)}}),e.classes.set(6,e.SetViewportScroll),e.CreateDocument=bindNew(class{constructor(){this._id=7}encode(t){return t.uint(7)}}),e.classes.set(7,e.CreateDocument),e.CreateElementNode=bindNew(class{constructor(t,e,s,i,n){this.id=t,this.parentID=e,this.index=s,this.tag=i,this.svg=n,this._id=8}encode(t){return t.uint(8)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)&&t.string(this.tag)&&t.boolean(this.svg)}}),e.classes.set(8,e.CreateElementNode),e.CreateTextNode=bindNew(class{constructor(t,e,s){this.id=t,this.parentID=e,this.index=s,this._id=9}encode(t){return t.uint(9)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}}),e.classes.set(9,e.CreateTextNode),e.MoveNode=bindNew(class{constructor(t,e,s){this.id=t,this.parentID=e,this.index=s,this._id=10}encode(t){return t.uint(10)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}}),e.classes.set(10,e.MoveNode),e.RemoveNode=bindNew(class{constructor(t){this.id=t,this._id=11}encode(t){return t.uint(11)&&t.uint(this.id)}}),e.classes.set(11,e.RemoveNode),e.SetNodeAttribute=bindNew(class{constructor(t,e,s){this.id=t,this.name=e,this.value=s,this._id=12}encode(t){return t.uint(12)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)}}),e.classes.set(12,e.SetNodeAttribute),e.RemoveNodeAttribute=bindNew(class{constructor(t,e){this.id=t,this.name=e,this._id=13}encode(t){return t.uint(13)&&t.uint(this.id)&&t.string(this.name)}}),e.classes.set(13,e.RemoveNodeAttribute),e.SetNodeData=bindNew(class{constructor(t,e){this.id=t,this.data=e,this._id=14}encode(t){return t.uint(14)&&t.uint(this.id)&&t.string(this.data)}}),e.classes.set(14,e.SetNodeData),e.SetNodeScroll=bindNew(class{constructor(t,e,s){this.id=t,this.x=e,this.y=s,this._id=16}
1encode(t){return t.uint(16)&&t.uint(this.id)&&t.int(this.x)&&t.int(this.y)}}),e.classes.set(16,e.SetNodeScroll),e.SetInputTarget=bindNew(class{constructor(t,e){this.id=t,this.label=e,this._id=17}encode(t){return t.uint(17)&&t.uint(this.id)&&t.string(this.label)}}),e.classes.set(17,e.SetInputTarget),e.SetInputValue=bindNew(class{constructor(t,e,s){this.id=t,this.value=e,this.mask=s,this._id=18}encode(t){return t.uint(18)&&t.uint(this.id)&&t.string(this.value)&&t.int(this.mask)}}),e.classes.set(18,e.SetInputValue),e.SetInputChecked=bindNew(class{constructor(t,e){this.id=t,this.checked=e,this._id=19}encode(t){return t.uint(19)&&t.uint(this.id)&&t.boolean(this.checked)}}),e.classes.set(19,e.SetInputChecked),e.MouseMove=bindNew(class{constructor(t,e){this.x=t,this.y=e,this._id=20}encode(t){return t.uint(20)&&t.uint(this.x)&&t.uint(this.y)}}),e.classes.set(20,e.MouseMove),e.ConsoleLog=bindNew(class{constructor(t,e){this.level=t,this.value=e,this._id=22}encode(t){return t.uint(22)&&t.string(this.level)&&t.string(this.value)}}),e.classes.set(22,e.ConsoleLog),e.PageLoadTiming=bindNew(class{constructor(t,e,s,i,n,r,o,a,c){this.requestStart=t,this.responseStart=e,this.responseEnd=s,this.domContentLoadedEventStart=i,this.domContentLoadedEventEnd=n,this.loadEventStart=r,this.loadEventEnd=o,this.firstPaint=a,this.firstContentfulPaint=c,this._id=23}encode(t){return t.uint(23)&&t.uint(this.requestStart)&&t.uint(this.responseStart)&&t.uint(this.responseEnd)&&t.uint(this.domContentLoadedEventStart)&&t.uint(this.domContentLoadedEventEnd)&&t.uint(this.loadEventStart)&&t.uint(this.loadEventEnd)&&t.uint(this.firstPaint)&&t.uint(this.firstContentfulPaint)}}),e.classes.set(23,e.PageLoadTiming),e.PageRenderTiming=bindNew(class{constructor(t,e,s){this.speedIndex=t,this.visuallyComplete=e,this.timeToInteractive=s,this._id=24}encode(t){return t.uint(24)&&t.uint(this.speedIndex)&&t.uint(this.visuallyComplete)&&t.uint(this.timeToInteractive)}}),e.classes.set(24,e.PageRenderTiming),e.JSException=bindNew(class{constructor(t,e,s){this.name=t,this.message=e,this.payload=s,this._id=25}encode(t){return t.uint(25)&&t.string(this.name)&&t.string(this.message)&&t.string(this.payload)}}),e.classes.set(25,e.JSException),e.RawCustomEvent=bindNew(class{constructor(t,e){this.name=t,this.payload=e,this._id=27}encode(t){return t.uint(27)&&t.string(this.name)&&t.string(this.payload)}}),e.classes.set(27,e.RawCustomEvent),e.UserID=bindNew(class{constructor(t){this.id=t,this._id=28}encode(t){return t.uint(28)&&t.string(this.id)}}),e.classes.set(28,e.UserID),e.UserAnonymousID=bindNew(class{constructor(t){this.id=t,this._id=29}encode(t){return t.uint(29)&&t.string(this.id)}}),e.classes.set(29,e.UserAnonymousID),e.Metadata=bindNew(class{constructor(t,e){this.key=t,this.value=e,this._id=30}encode(t){return t.uint(30)&&t.string(this.key)&&t.string(this.value)}}),e.classes.set(30,e.Metadata),e.CSSInsertRule=bindNew(class{constructor(t,e,s){this.id=t,this.rule=e,this.index=s,this._id=37}encode(t){return t.uint(37)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)}}),e.classes.set(37,e.CSSInsertRule),e.CSSDeleteRule=bindNew(class{constructor(t,e){this.id=t,this.index=e,this._id=38}encode(t){return t.uint(38)&&t.uint(this.id)&&t.uint(this.index)}}),e.classes.set(38,e.CSSDeleteRule),e.Fetch=bindNew(class{constructor(t,e,s,i,n,r,o){this.method=t,this.url=e,this.request=s,this.response=i,this.status=n,this.timestamp=r,this.duration=o,this._id=39}encode(t){return t.uint(39)&&t.string(this.method)&&t.string(this.url)&&t.string(this.request)&&t.string(this.response)&&t.uint(this.status)&&t.uint(this.timestamp)&&t.uint(this.duration)}}),e.classes.set(39,e.Fetch),e.Profiler=bindNew(class{constructor(t,e,s,i){this.name=t,this.duration=e,this.args=s,this.result=i,this._id=40}encode(t){return t.uint(40)&&t.string(this.name)&&t.uint(this.duration)&&t.string(this.args)&&t.string(this.result)}}),e.classes.set(40,e.Profiler),e.OTable=bindNew(class{constructor(t,e){this.key=t,this.value=e,this._id=41}encode(t){return t.uint(41)&&t.string(this.key)&&t.string(this.value)}}),e.classes.set(41,e.OTable),e.StateAction=bindNew(class{constructor(t){this.type=t,this._id=42}
1encode(t){return t.uint(42)&&t.string(this.type)}}),e.classes.set(42,e.StateAction),e.Redux=bindNew(class{constructor(t,e,s){this.action=t,this.state=e,this.duration=s,this._id=44}encode(t){return t.uint(44)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}}),e.classes.set(44,e.Redux),e.Vuex=bindNew(class{constructor(t,e){this.mutation=t,this.state=e,this._id=45}encode(t){return t.uint(45)&&t.string(this.mutation)&&t.string(this.state)}}),e.classes.set(45,e.Vuex),e.MobX=bindNew(class{constructor(t,e){this.type=t,this.payload=e,this._id=46}encode(t){return t.uint(46)&&t.string(this.type)&&t.string(this.payload)}}),e.classes.set(46,e.MobX),e.NgRx=bindNew(class{constructor(t,e,s){this.action=t,this.state=e,this.duration=s,this._id=47}encode(t){return t.uint(47)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}}),e.classes.set(47,e.NgRx),e.GraphQL=bindNew(class{constructor(t,e,s,i){this.operationKind=t,this.operationName=e,this.variables=s,this.response=i,this._id=48}encode(t){return t.uint(48)&&t.string(this.operationKind)&&t.string(this.operationName)&&t.string(this.variables)&&t.string(this.response)}}),e.classes.set(48,e.GraphQL),e.PerformanceTrack=bindNew(class{constructor(t,e,s,i){this.frames=t,this.ticks=e,this.totalJSHeapSize=s,this.usedJSHeapSize=i,this._id=49}encode(t){return t.uint(49)&&t.int(this.frames)&&t.int(this.ticks)&&t.uint(this.totalJSHeapSize)&&t.uint(this.usedJSHeapSize)}}),e.classes.set(49,e.PerformanceTrack),e.ResourceTiming=bindNew(class{constructor(t,e,s,i,n,r,o,a){this.timestamp=t,this.duration=e,this.ttfb=s,this.headerSize=i,this.encodedBodySize=n,this.decodedBodySize=r,this.url=o,this.initiator=a,this._id=53}encode(t){return t.uint(53)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.ttfb)&&t.uint(this.headerSize)&&t.uint(this.encodedBodySize)&&t.uint(this.decodedBodySize)&&t.string(this.url)&&t.string(this.initiator)}}),e.classes.set(53,e.ResourceTiming),e.ConnectionInformation=bindNew(class{constructor(t,e){this.downlink=t,this.type=e,this._id=54}encode(t){return t.uint(54)&&t.uint(this.downlink)&&t.string(this.type)}}),e.classes.set(54,e.ConnectionInformation),e.SetPageVisibility=bindNew(class{constructor(t){this.hidden=t,this._id=55}encode(t){return t.uint(55)&&t.boolean(this.hidden)}}),e.classes.set(55,e.SetPageVisibility),e.LongTask=bindNew(class{constructor(t,e,s,i,n,r,o){this.timestamp=t,this.duration=e,this.context=s,this.containerType=i,this.containerSrc=n,this.containerId=r,this.containerName=o,this._id=59}encode(t){return t.uint(59)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.context)&&t.uint(this.containerType)&&t.string(this.containerSrc)&&t.string(this.containerId)&&t.string(this.containerName)}}),e.classes.set(59,e.LongTask),e.SetNodeAttributeURLBased=bindNew(class{constructor(t,e,s,i){this.id=t,this.name=e,this.value=s,this.baseURL=i,this._id=60}encode(t){return t.uint(60)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)&&t.string(this.baseURL)}}),e.classes.set(60,e.SetNodeAttributeURLBased),e.SetCSSDataURLBased=bindNew(class{constructor(t,e,s){this.id=t,this.data=e,this.baseURL=s,this._id=61}encode(t){return t.uint(61)&&t.uint(this.id)&&t.string(this.data)&&t.string(this.baseURL)}}),e.classes.set(61,e.SetCSSDataURLBased),e.TechnicalInfo=bindNew(class{constructor(t,e){this.type=t,this.value=e,this._id=63}encode(t){return t.uint(63)&&t.string(this.type)&&t.string(this.value)}}),e.classes.set(63,e.TechnicalInfo),e.CustomIssue=bindNew(class{constructor(t,e){this.name=t,this.payload=e,this._id=64}encode(t){return t.uint(64)&&t.string(this.name)&&t.string(this.payload)}}),e.classes.set(64,e.CustomIssue),e.PageClose=bindNew(class{constructor(){this._id=65}encode(t){return t.uint(65)}}),e.classes.set(65,e.PageClose),e.CSSInsertRuleURLBased=bindNew(class{constructor(t,e,s,i){this.id=t,this.rule=e,this.index=s,this.baseURL=i,this._id=67}encode(t){return t.uint(67)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)&&t.string(this.baseURL)}}),e.classes.set(67,e.CSSInsertRuleURLBased),e.MouseClick=bindNew(class{constructor(t,e,s,i){this.id=t,this.hesitationTime=e,this.label=s,this.selector=i,this._id=69}
1encode(t){return t.uint(69)&&t.uint(this.id)&&t.uint(this.hesitationTime)&&t.string(this.label)&&t.string(this.selector)}}),e.classes.set(69,e.MouseClick),e.CreateIFrameDocument=bindNew(class{constructor(t,e){this.frameID=t,this.id=e,this._id=70}encode(t){return t.uint(70)&&t.uint(this.frameID)&&t.uint(this.id)}}),e.classes.set(70,e.CreateIFrameDocument)},67476:function(t,e,s){"use strict";let i=s(25834);s(25834);let n=s(1595),r=(s(1595),s(89108)),o=s(93224),a=s(5646),c=s(95371),u=s(79395),h=s(50239),l=s(52313),d=s(43790),p=s(63418),m=s(12301),f=s(87995),g=s(78752),b="/installation/setup-or";e.ZP=class{constructor(t){if(this.options=t,this.app=null,this.handleError=t=>{if(null!==this.app){if(t instanceof Error)this.app.send((0,a.getExceptionMessage)(t,[]));else if(t instanceof ErrorEvent||"PromiseRejectionEvent"in window&&t instanceof PromiseRejectionEvent){let e=(0,a.getExceptionMessageFromEvent)(t);null!=e&&this.app.send(e)}}},!g.IN_BROWSER||!function(t){if(null==t)return console.error(`OpenReplay: invalid options argument type. Please, check documentation on ${g.DOCS_HOST}${b}`),!1;if("string"!=typeof t.projectKey){if("number"!=typeof t.projectKey){if("number"!=typeof t.projectID)return console.error(`OpenReplay: projectKey is missing or wrong type (string is expected). Please, check ${g.DOCS_HOST}${b} for more information.`),!1;t.projectKey=t.projectID.toString(),(0,g.deprecationWarn)("`projectID` option","`projectKey` option",b)}else console.warn("OpenReplay: projectKey is expected to have a string type."),t.projectKey=t.projectKey.toString()}return"string"!=typeof t.sessionToken&&null!=t.sessionToken&&console.warn(`OpenReplay: invalid options argument type. Please, check documentation on ${g.DOCS_HOST}${b}`),!0}(t))return;if(window.__OPENREPLAY__){console.error("OpenReplay: one tracker instance has been initialised already");return}if(!t.__DISABLE_SECURE_MODE&&"https:"!==location.protocol){console.error("OpenReplay: Your website must be publicly accessible and running on SSL in order for OpenReplay to properly capture and replay the user session. You can disable this check by setting `__DISABLE_SECURE_MODE` option to `true` if you are testing in localhost. Keep in mind, that asset files on a local machine are not available to the outside world. This might affect tracking if you use css files.");return}let e=t.respectDoNotTrack&&("1"==navigator.doNotTrack||"1"==window.doNotTrack),s=this.app=!e&&"Map"in window&&"Set"in window&&"MutationObserver"in window&&"performance"in window&&"timing"in performance&&"startsWith"in String.prototype&&"Blob"in window&&"Worker"in window?new i.default(t.projectKey,t.sessionToken,t):null;if(null!==s){if((0,m.default)(s),(0,f.default)(s),(0,r.default)(s),(0,o.default)(s,t),(0,a.default)(s,t),(0,c.default)(s),(0,u.default)(s,t),(0,h.default)(s),(0,l.default)(s,t),(0,d.default)(s,t),(0,p.default)(s),window.__OPENREPLAY__=this,t.autoResetOnWindowOpen){let t=window.open;s.attachStartCallback(()=>{window.open=function(...e){s.resetNextPageSession(!0),t.call(window,...e),s.resetNextPageSession(!1)}}),s.attachStopCallback(()=>{window.open=t})}}else{console.log("OpenReplay: browser doesn't support API required for tracking or doNotTrack is set to 1.");let s=new XMLHttpRequest,n=t.ingestPoint||i.DEFAULT_INGEST_POINT;s.open("POST",n+"/v1/web/not-started"),s.send(JSON.stringify({trackerVersion:"3.6.6",projectKey:t.projectKey,doNotTrack:e}))}}use(t){return t(this.app,this.options)}isActive(){return null!==this.app&&this.app.active()}start(t){return g.IN_BROWSER?null===this.app?Promise.reject("Browser doesn't support required api, or doNotTrack is active."):this.app.start(t):(console.error(`OpenReplay: you are trying to start Tracker on a node.js environment. If you want to use OpenReplay with SSR, please, use componentDidMount or useEffect API for placing the \`tracker.start()\` line. Check documentation on ${g.DOCS_HOST}${b}`),Promise.reject("Trying to start not in browser."))}stop(){null!==this.app&&this.app.stop(!0)}getSessionToken(){return null===this.app?null:this.app.getSessionToken()}getSessionID(){return null===this.app?null:this.app.getSessionID()}sessionID(){return(0,g.deprecationWarn)("'sessionID' method","'getSessionID' method","/"),this.get
1SessionID()}getSessionURL(){if(null!==this.app)return this.app.getSessionURL()}setUserID(t){"string"==typeof t&&null!==this.app&&this.app.session.setUserID(t)}userID(t){(0,g.deprecationWarn)("'userID' method","'setUserID' method","/"),this.setUserID(t)}setUserAnonymousID(t){"string"==typeof t&&null!==this.app&&this.app.send(new n.UserAnonymousID(t))}userAnonymousID(t){(0,g.deprecationWarn)("'userAnonymousID' method","'setUserAnonymousID' method","/"),this.setUserAnonymousID(t)}setMetadata(t,e){"string"==typeof t&&"string"==typeof e&&null!==this.app&&this.app.session.setMetadata(t,e)}metadata(t,e){(0,g.deprecationWarn)("'metadata' method","'setMetadata' method","/"),this.setMetadata(t,e)}event(t,e,s=!1){if("string"==typeof t&&null!==this.app){if(s)return this.issue(t,e);try{e=JSON.stringify(e)}catch(t){return}this.app.send(new n.RawCustomEvent(t,e))}}issue(t,e){if("string"==typeof t&&null!==this.app){try{e=JSON.stringify(e)}catch(t){return}this.app.send(new n.CustomIssue(t,e))}}}},89108:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(1595);e.default=function(t){let e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(void 0===e)return;let sendConnectionInformation=()=>t.send(new i.ConnectionInformation(Math.round(1e3*e.downlink),e.type||"unknown"));sendConnectionInformation(),e.addEventListener("change",sendConnectionInformation)}},93224:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(28189),n=s(78752),r=s(1595),o=n.IN_BROWSER&&"InstallTrigger"in window?t=>t.message+"\n"+t.stack:t=>t.stack||t.message;function printString(t){return void 0===t?"undefined":null===t?"null":t instanceof Error?o(t):Array.isArray(t)?`Array(${t.length})`:String(t)}function printObject(t){if(void 0===t)return"undefined";if(null===t)return"null";if(t instanceof Error)return o(t);if(Array.isArray(t)){let e=t.length,s=t.slice(0,10).map(printString).join(", ");return`Array(${e})[${s}]`}if("object"==typeof t){let e=[],s=0;for(let i in t){if(10==++s)break;let n=t[i];e.push(i+": "+printString(n))}return"{"+e.join(", ")+"}"}return t.toString()}let a=["log","info","warn","error","debug","assert"];e.default=function(t,e){let s;let n=Object.assign({consoleMethods:a,consoleThrottling:30},e);if(!Array.isArray(n.consoleMethods)||0===n.consoleMethods.length)return;let o=t.safe((e,s)=>t.send(new r.ConsoleLog(e,("string"==typeof s[0]&&s.unshift(s.shift().replace(/%(o|s|f|d|i)/g,(t,e)=>{let i=s.shift();if(void 0===i)return t;switch(e){case"o":return printObject(i);case"s":return printString(i);case"f":return"number"!=typeof i?"NaN":i.toString();case"d":case"i":return"number"!=typeof i?"NaN":Math.floor(i).toString();default:return t}})),s.map(printObject).join(" "))))),reset=()=>{s=0};t.attachStartCallback(reset),t.ticker.attach(reset,33,!1);let patchConsole=t=>n.consoleMethods.forEach(e=>{if(-1===a.indexOf(e)){t.error(`OpenReplay: unsupported console method "${e}"`);return}let i=t[e];t[e]=function(...t){i.apply(this,t),s++>n.consoleThrottling||o(e,t)}});patchConsole(window.console),t.nodes.attachNodeCallback(t.safe(e=>{if((0,i.hasTag)(e,"IFRAME")){let s=e.contentWindow;s&&patchConsole(s.console),t.attachEventListener(e,"load",()=>{e.contentWindow!==s&&patchConsole((s=e.contentWindow).console)})}}))}},87995:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(1595),n=s(28189);e.default=function(t){if(null===t)return;if(!window.CSSStyleSheet){t.send(new i.TechnicalInfo("no_stylesheet_prototype_in_window",""));return}let e=t.safe((e,s,n)=>{let r="string"==typeof n?e=>t.send(new i.CSSInsertRuleURLBased(e,n,s,t.getBaseHref())):e=>t.send(new i.CSSDeleteRule(e,s));if(null==e.ownerNode)throw Error("Owner Node not found");let o=t.nodes.getID(e.ownerNode);void 0!==o&&r(o)}),{insertRule:s,deleteRule:r}=CSSStyleSheet.prototype;CSSStyleSheet.prototype.insertRule=function(t,i=0){return e(this,i,t),s.call(this,t,i)},CSSStyleSheet.prototype.deleteRule=function(t){return e(this,t),r.call(this,t)},t.nodes.attachNodeCallback(t=>{if(!(0,n.hasTag)(t,"STYLE")||!t.sheet||null!==t.textContent&&t.textContent.trim().length>0)return;let s=t.sheet.cssRules;for(let i=0;i<s.length;
1i++)e(t.sheet,i,s[i].cssText)})}},5646:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getExceptionMessageFromEvent=e.getExceptionMessage=void 0;let i=s(1595),n=s(79180);function getDefaultStack(t){return[{columnNumber:t.colno,lineNumber:t.lineno,fileName:t.filename,functionName:"",source:""}]}function getExceptionMessage(t,e){let s=e;try{s=n.default.parse(t)}catch(t){}return new i.JSException(t.name,t.message,JSON.stringify(s))}function getExceptionMessageFromEvent(t){if(t instanceof ErrorEvent){if(t.error instanceof Error)return getExceptionMessage(t.error,getDefaultStack(t));{let[e,s]=t.message.split(":");return s||(e="Error",s=t.message),new i.JSException(e,s,JSON.stringify(getDefaultStack(t)))}}if("PromiseRejectionEvent"in window&&t instanceof PromiseRejectionEvent){if(t.reason instanceof Error)return getExceptionMessage(t.reason,[]);{let e;try{e=JSON.stringify(t.reason)}catch(s){e=String(t.reason)}return new i.JSException("Unhandled Promise Rejection",e,"[]")}}return null}e.getExceptionMessage=getExceptionMessage,e.getExceptionMessageFromEvent=getExceptionMessageFromEvent,e.default=function(t,e){let s=Object.assign({captureExceptions:!0},e);if(s.captureExceptions){let handler=e=>{let s=getExceptionMessageFromEvent(e);null!=s&&t.send(s)};t.attachEventListener(window,"unhandledrejection",t=>handler(t)),t.attachEventListener(window,"error",t=>handler(t))}}},95371:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(78752),n=s(1595),r=s(28189);function resolveURL(t,e=document.location){return(t=t.trim()).startsWith("/")?e.origin+t:t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")?t:e.origin+e.pathname+t}e.default=function(t){let e=t.safe(function(){let e=t.nodes.getID(this);if(void 0===e)return;let{src:s,complete:r,naturalWidth:o,naturalHeight:a,srcset:c}=this;if(!r)return;let u=resolveURL(s||"");if(0===o&&0===a)(0,i.isURL)(u)&&t.send(new n.ResourceTiming((0,i.timestamp)(),0,0,0,0,0,u,"img"));else if(u.length>=1e5||t.sanitizer.isMasked(e))!function(e,s){t.send(new n.SetNodeAttribute(e,"src","https://static.openreplay.com/tracker/placeholder.jpeg"));let{width:i,height:r}=s.getBoundingClientRect();s.hasAttribute("width")||t.send(new n.SetNodeAttribute(e,"width",String(i))),s.hasAttribute("height")||t.send(new n.SetNodeAttribute(e,"height",String(r)))}(e,this);else if(t.send(new n.SetNodeAttribute(e,"src",u)),c){let s=c.split(",").map(t=>resolveURL(t)).join(",");t.send(new n.SetNodeAttribute(e,"srcset",s))}}),s=new MutationObserver(e=>{for(let s of e)if("attributes"===s.type){let e=s.target,i=t.nodes.getID(e);if(void 0===i)return;if("src"===s.attributeName){let s=e.src;t.send(new n.SetNodeAttributeURLBased(i,"src",s,t.getBaseHref()))}if("srcset"===s.attributeName){let s=e.srcset;t.send(new n.SetNodeAttribute(i,"srcset",s))}}});t.nodes.attachNodeCallback(i=>{(0,r.hasTag)(i,"IMG")&&(t.nodes.attachElementListener("error",i,e),t.nodes.attachElementListener("load",i,e),e.call(i),s.observe(i,{attributes:!0,attributeFilter:["src","srcset"]}))})}},79395:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getInputLabel=void 0;let i=s(78752),n=s(28189),r=s(1595),o=["text","password","email","search","number","range","date"];function isTextEditable(t){return!!(0,n.hasTag)(t,"TEXTAREA")||!!(0,n.hasTag)(t,"INPUT")&&o.includes(t.type)}function isCheckable(t){if(!(0,n.hasTag)(t,"INPUT"))return!1;let e=t.type;return"checkbox"===e||"radio"===e}let a=i.IN_BROWSER&&"labels"in HTMLInputElement.prototype?t=>{let e=t;for(;null!==(e=e.parentNode);)if((0,n.hasTag)(e,"LABEL"))return e;let s=t.labels;if(null!==s&&1===s.length)return s[0]}:t=>{let e=t;for(;null!==(e=e.parentNode);)if((0,n.hasTag)(e,"LABEL"))return e;let s=t.id;if(s){let t=document.querySelectorAll('label[for="'+s+'"]');if(null!==t&&1===t.length)return t[0]}};function getInputLabel(t){let e=(0,i.getLabelAttribute)(t);if(null===e){let s=a(t);e=s&&s.innerText||t.placeholder||t.name||t.id||t.className||t.type}return(0,i.normSpaces)(e).slice(0,100)}e.getInputLabel=getInputLabel,e.default=function(t,e){let s=Object.assign({obscureInputNumbers:!0,obscureInputEmails:!0,defaultInputMode:0,obscureInputDates:!1},e);function sendInputValue(e,n){let o=n.value,a=s.defaultInputMode;"password"===n.type||(0,i.hasOpenreplayAttribute)(n,"hidden")?a=2:((0,i.hasOpenreplayAttribute)(n,"obscured")||0===a&&(s.obscureInputNumbers&&"date"!==n.type&&/\d\d\d\d/.test(o)||s.obscureInputDates&&"date"===n.type||s.obscureInputEmails&&("email"===n.type||~o.indexOf("@"))))&&(a=1);let c=0;switch(a){case 2:c=-1,o="";break;case 1:c=o.length,o=""}t.send(new r.SetInputValue(e,o,c))}let o=new Map,a=new Map,c=new Set;t.attachStopCallback(()=>{o.clear(),a.clear(),c.clear()}),t.ticker.attach(()=>{o.forEach((e,s)=>{let i=t.nodes.getNode(s);if(i){if(!isTextEditable(i)){o.delete(s);return}
1e!==i.value&&(o.set(s,i.value),c.has(s)||(c.add(s),function(e,s){let i=getInputLabel(s);""!==i&&t.send(new r.SetInputTarget(e,i))}(s,i)),sendInputValue(s,i))}}),a.forEach((e,s)=>{let i=t.nodes.getNode(s);if(i){if(!isCheckable(i)){a.delete(s);return}e!==i.checked&&(a.set(s,i.checked),t.send(new r.SetInputChecked(s,i.checked)))}})}),t.ticker.attach(Set.prototype.clear,100,!1,c),t.nodes.attachNodeCallback(t.safe(e=>{let s=t.nodes.getID(e);if(void 0!==s){if((0,n.hasTag)(e,"SELECT")&&(sendInputValue(s,e),t.attachEventListener(e,"change",()=>{sendInputValue(s,e)})),isTextEditable(e)){o.set(s,e.value),sendInputValue(s,e);return}if(isCheckable(e)){a.set(s,e.checked),t.send(new r.SetInputChecked(s,e.checked));return}}}))}},50239:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(28189),n=s(78752),r=s(1595),o=s(79395);function isClickable(t){let e=t.tagName.toUpperCase();return"BUTTON"===e||"A"===e||"LI"===e||"SELECT"===e||null!=t.onclick||"button"===t.getAttribute("role")}function getTarget(t){return t instanceof Element?function(t){let e=t;for(;null!==e&&e!==document.documentElement;){if((0,n.hasOpenreplayAttribute)(e,"masked"))return null;e=e.parentElement}if((0,i.isSVGElement)(t)){let e=t.ownerSVGElement;for(;null!==e;)t=e,e=e.ownerSVGElement}for(e=t;null!==e&&e!==document.documentElement;){let t=e.tagName.toUpperCase();if("LABEL"===t)return null;if("INPUT"===t||isClickable(e)||null!==(0,n.getLabelAttribute)(e))return e;e=e.parentElement}return t===document.documentElement?null:t}(t):null}e.default=function(t){let e=-1,s=-1,a=!1,c=null,u=0;t.attachStopCallback(()=>{e=-1,s=-1,a=!1,c=null});let sendMouseMove=()=>{a&&(t.send(new r.MouseMove(e,s)),a=!1)},h={};t.attachEventListener(document.documentElement,"mouseover",t=>{let e=getTarget(t.target);e!==c&&(c=e,u=performance.now())}),t.attachEventListener(document,"mousemove",t=>{e=t.clientX,s=t.clientY,a=!0},!1),t.attachEventListener(document,"click",e=>{let s=getTarget(e.target);if(!e.clientX&&!e.clientY||null===s)return;let a=t.nodes.getID(s);void 0!==a&&(sendMouseMove(),t.send(new r.MouseClick(a,c===s?Math.round(performance.now()-u):0,function(e){let s=(0,n.getLabelAttribute)(e);if(null!==s)return s;if((0,i.hasTag)(e,"INPUT"))return(0,o.getInputLabel)(e);if(isClickable(e)){let s="";return e instanceof HTMLElement&&(s=t.sanitizer.getInnerTextSecure(e)),s=s||e.id||e.className,(0,n.normSpaces)(s).slice(0,100)}return""}(s),h[a]=h[a]||function(t){let e=t,s=null;do{if(e.id)return`#${e.id}`+(s?` > ${s}`:"");if(s=e.className.split(" ").map(t=>t.trim()).filter(t=>""!==t).reduce((t,e)=>`${t}.${e}`,e.tagName.toLowerCase())+(s?` > ${s}`:""),e===document.body)break;e=e.parentElement}while(e!==document.body&&null!==e);return s}(s)),!0)),c=null}),t.ticker.attach(sendMouseMove,10)}},43790:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsHeapSizeLimit=e.deviceMemory=void 0;let i=s(78752),n=s(1595),r=i.IN_BROWSER&&"performance"in window&&"memory"in performance?performance:{memory:{}};e.deviceMemory=i.IN_BROWSER?1024*(navigator.deviceMemory||0):0,e.jsHeapSizeLimit=r.memory.jsHeapSizeLimit||0,e.default=function(t,e){let s,i;let o=Object.assign({capturePerformance:!0},e);if(!o.capturePerformance)return;let nextFrame=()=>{void 0!==s&&-1!==s&&(s++,requestAnimationFrame(nextFrame))};t.ticker.attach(()=>{void 0!==i&&-1!==i&&i++},0,!1);let sendPerformanceTrack=()=>{void 0!==s&&void 0!==i&&(t.send(new n.PerformanceTrack(s,i,r.memory.totalJSHeapSize||0,r.memory.usedJSHeapSize||0)),i=s=document.hidden?-1:0)};t.attachStartCallback(()=>{i=s=-1,sendPerformanceTrack(),nextFrame()}),t.attachStopCallback(()=>{i=s=void 0}),t.ticker.attach(sendPerformanceTrack,40,!1),void 0!==document.hidden&&t.attachEventListener(document,"visibilitychange",sendPerformanceTrack,!1,!1)}},63418:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(1595),n=s(28189);e.default=function(t){let e=!1,s=new Map,r=t.safe(()=>t.send(new i.SetViewportScroll(window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body&&document.body.scrollLeft||0,window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop||0))),o=t.safe((e,s)=>{let n=t.nodes.getID(s);void 0!==n&&t.send(new i.SetNodeScroll(n,e[0],e[1]))});t.attachStartCallback(r),t.attachStopCallback(()=>{e=!1,s.clear()}),t.nodes.attachNodeCallback((t,e)=>{e&&(0,n.isElementNode)(t)&&t.scrollLeft+t.scrollTop>0&&s.set(t,[t.scrollLeft,t.scrollTop])}),t.attachEventListener(window,"scroll",t=>{let i=t.target;if(i===document){e=!0;return}i instanceof Element&&s.set(i,[i.scrollLeft,i.scrollTop])}),t.ticker.attach(()=>
1{e&&(r(),e=!1),s.forEach(o),s.clear()},5,!1)}},52313:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(28189),n=s(78752),r=s(1595);e.default=function(t,e){let s;let o=Object.assign({captureResourceTimings:!0,capturePageLoadTimings:!0,capturePageRenderTimings:!0},e);if("PerformanceObserver"in window||(o.captureResourceTimings=!1),!o.captureResourceTimings)return;let a={};function resourceTiming(e){e.duration<0||!(0,n.isURL)(e.name)||t.isServiceURL(e.name)||(null!==a&&(a[e.name]=e.startTime+e.duration),t.send(new r.ResourceTiming(e.startTime+performance.timing.navigationStart,e.duration,e.responseStart&&e.startTime?e.responseStart-e.startTime:0,e.transferSize>e.encodedBodySize?e.transferSize-e.encodedBodySize:0,e.encodedBodySize||0,e.decodedBodySize||0,e.name,e.initiatorType)))}let c=new PerformanceObserver(t=>t.getEntries().forEach(resourceTiming));t.attachStartCallback(function({sessionID:t}){t!==s&&(performance.getEntriesByType("resource").forEach(resourceTiming),s=t),c.observe({entryTypes:["resource"]})}),t.attachStopCallback(function(){c.disconnect()});let u=0,h=0;if(o.capturePageLoadTimings){let e=!1;t.ticker.attach(()=>{if(!e&&((0===u||0===h)&&performance.getEntriesByType("paint").forEach(t=>{let{name:e,startTime:s}=t;switch(e){case"first-paint":u=s;break;case"first-contentful-paint":h=s}}),performance.timing.loadEventEnd||performance.now()>3e4)){e=!0;let{navigationStart:s,requestStart:i,responseStart:n,responseEnd:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d}=performance.timing;t.send(new r.PageLoadTiming(i-s||0,n-s||0,o-s||0,a-s||0,c-s||0,l-s||0,d-s||0,u,h))}},30)}if(o.capturePageRenderTimings){let e=0,s=0,n=0,o=null,c=!1;t.ticker.attach(()=>{if(c)return;let l=performance.now();if(null!==a&&l-(e=Math.max.apply(null,Object.keys(a).map(t=>a[t])))>1e3&&(o=function(t){let e=[],s=document.getElementsByTagName("*"),n=/url\(("[^"]*"|'[^']*'|[^)]*)\)/i;for(let r=0;r<s.length;r++){let o=s[r],a="";if((0,i.hasTag)(o,"IMG")&&(a=o.currentSrc||o.src),!a){let t=getComputedStyle(o).getPropertyValue("background-image");if(t){let e=n.exec(t);null!==e&&((a=e[1]).startsWith('"')||a.startsWith("'"))&&(a=a.substr(1,a.length-2))}}if(!a)continue;let c="data:image"===a.substr(0,10)?0:t[a];if(void 0===c)continue;let u=o.getBoundingClientRect(),h=Math.max(u.top,0),l=Math.max(u.left,0),d=Math.min(u.bottom,window.innerHeight||document.documentElement&&document.documentElement.clientHeight||0),p=Math.min(u.right,window.innerWidth||document.documentElement&&document.documentElement.clientWidth||0);if(d<=h||p<=l)continue;let m=(d-h)*(p-l);e.push({time:c,area:m})}return e}(a),a=null),null!==n&&(l-n>50&&(s=l),n=l-s>5e3?null:l),null!==o&&null===n||l>3e4){c=!0,a=null;let i=null===o?0:function(t,e){let s=Math.max(document.documentElement&&document.documentElement.clientWidth||0,window.innerWidth||0)*Math.max(document.documentElement&&document.documentElement.clientHeight||0,window.innerHeight||0)/10,i=s*t;for(let n=0;n<e.length;n++){let{time:r,area:o}=e[n];s+=o,i+=o*(r>t?r:t)}return 0===s?0:i/s}(h||u,o),l=null===n?Math.max(s,h,performance.timing.domContentLoadedEventEnd-performance.timing.navigationStart||0):0;t.send(new r.PageRenderTiming(i,h>e?h:e,l))}})}}},12301:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let i=s(1595);e.default=function(t){let e,s,n;let r=performance.timing.navigationStart,o=t.safe(()=>{let{URL:s}=document;s!==e&&(e=s,t.send(new i.SetPageLocation(e,document.referrer,r)),r=0)}),a=t.safe(()=>{let{innerWidth:e,innerHeight:r}=window;(e!==s||r!==n)&&(s=e,n=r,t.send(new i.SetViewportSize(s,n)))}),c=void 0===document.hidden?Function.prototype:t.safe(()=>t.send(new i.SetPageVisibility(document.hidden)));t.attachStartCallback(()=>{e="",s=n=-1,o(),a(),c()}),void 0!==document.hidden&&t.attachEventListener(document,"visibilitychange",c,!1,!1),t.ticker.attach(o,1,!1),t.ticker.attach(a,5,!1)}},78752:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOpenreplayAttribute=e.getLabelAttribute=e.deprecationWarn=e.DOCS_HOST=e.IN_BROWSER=e.isURL=e.n
1ormSpaces=e.stars=e.timestamp=void 0,e.timestamp=function(){return Math.round(performance.now())+performance.timing.navigationStart},e.stars="repeat"in String.prototype?t=>"*".repeat(t.length):t=>t.replace(/./g,"*"),e.normSpaces=function(t){return t.trim().replace(/\s+/g," ")},e.isURL=function(t){return t.startsWith("https://")||t.startsWith("http://")},e.IN_BROWSER="undefined"!=typeof window,e.DOCS_HOST="https://docs.openreplay.com";let s={};function deprecationWarn(t,i,n="/"){s[t]||(console.warn(`OpenReplay: ${t} is deprecated. ${i?`Please, use ${i} instead.`:""} Visit ${e.DOCS_HOST}${n} for more information.`),s[t]=!0)}e.deprecationWarn=deprecationWarn,e.getLabelAttribute=function(t){let e=t.getAttribute("data-openreplay-label");return null!==e||null!==(e=t.getAttribute("data-asayer-label"))&&deprecationWarn('"data-asayer-label" attribute','"data-openreplay-label" attribute',"/"),e},e.hasOpenreplayAttribute=function(t,e){let s=`data-openreplay-${e}`;if(t.hasAttribute(s))return!0;let i=`data-asayer-${e}`;return!!t.hasAttribute(i)&&(deprecationWarn(`"${i}" attribute`,`"${s}" attribute`,"/installation/sanitize-data"),!0)}}}]);

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.