//!Portions of this code are licensed under the following license: //! For license information please see fs.js.LICENSE !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/s",n(n.s=37)}([function(e,t,n){"use strict";var r;t.__esModule=!0,function(e){e.MUT_INSERT=2,e.MUT_REMOVE=3,e.MUT_ATTR=4,e.MUT_TEXT=6,e.MOUSEMOVE=8,e.MOUSEMOVE_CURVE=9,e.SCROLL_LAYOUT=10,e.SCROLL_LAYOUT_CURVE=11,e.MOUSEDOWN=12,e.MOUSEUP=13,e.KEYDOWN=14,e.KEYUP=15,e.CLICK=16,e.FOCUS=17,e.VALUECHANGE=18,e.RESIZE_LAYOUT=19,e.DOMLOADED=20,e.LOAD=21,e.PLACEHOLDER_SIZE=22,e.UNLOAD=23,e.BLUR=24,e.SET_FRAME_BASE=25,e.TOUCHSTART=32,e.TOUCHEND=33,e.TOUCHCANCEL=34,e.TOUCHMOVE=35,e.TOUCHMOVE_CURVE=36,e.NAVIGATE=37,e.PLAY=38,e.PAUSE=39,e.RESIZE_VISUAL=40,e.RESIZE_VISUAL_CURVE=41,e.LOG=48,e.ERROR=49,e.DBL_CLICK=50,e.FORM_SUBMIT=51,e.WINDOW_FOCUS=52,e.WINDOW_BLUR=53,e.HEARTBEAT=54,e.WATCHED_ELEM=56,e.PERF_ENTRY=57,e.REC_FEAT_SUPPORTED=58,e.SELECT=59,e.CSSRULE_INSERT=60,e.CSSRULE_DELETE=61,e.FAIL_THROTTLED=62,e.AJAX_REQUEST=63,e.SCROLL_VISUAL_OFFSET=64,e.SCROLL_VISUAL_OFFSET_CURVE=65,e.MEDIA_QUERY_CHANGE=66,e.RESOURCE_TIMING_BUFFER_FULL=67,e.MUT_SHADOW=68,e.DISABLE_STYLESHEET=69,e.FULLSCREEN=70,e.FULLSCREEN_ERROR=71,e.ADOPTED_STYLESHEETS=72,e.CUSTOM_ELEMENT_DEFINED=73,e.SYS_SETVAR=8193,e.SYS_RESOURCEHASH=8195,e.SYS_SETCONSENT=8196,e.SYS_CUSTOM=8197,e.SYS_REPORTCONSENT=8198}(r=t.RawEventKind||(t.RawEventKind={})),function(e){e.Unknown=0,e.Api=1,e.FsShutdownFrame=2,e.Hibernation=3,e.Reidentify=4,e.SettingsBlocked=5,e.Size=6,e.Unload=7}(t.UnloadReason||(t.UnloadReason={})),function(e){e.Timing=0,e.Navigation=1,e.Resource=2,e.Paint=3,e.Mark=4,e.Measure=5,e.Memory=6}(t.PerfEntryType||(t.PerfEntryType={})),function(e){e.Performance=0,e.PerformanceEntries=1,e.PerformanceMemory=2,e.Console=3,e.Ajax=4,e.PerformanceObserver=5,e.AjaxFetch=6}(t.RecFeature||(t.RecFeature={})),function(e){e.Node=1,e.Sheet=2}(t.SheetOwner||(t.SheetOwner={})),function(e){e.StyleSheetHooks=0,e.SetPropertyHooks=1}(t.ThrottledTask||(t.ThrottledTask={})),function(e){e.User="user",e.Account="acct",e.Event="evt"}(t.VarScope||(t.VarScope={})),t.isUserActionEvent=function(e){switch(e){case r.MOUSEDOWN:case r.MOUSEMOVE:case r.MOUSEMOVE_CURVE:case r.MOUSEUP:case r.KEYDOWN:case r.KEYUP:case r.TOUCHSTART:case r.TOUCHEND:case r.TOUCHMOVE:case r.TOUCHMOVE_CURVE:case r.TOUCHCANCEL:case r.CLICK:case r.SCROLL_LAYOUT:case r.SCROLL_LAYOUT_CURVE:case r.SCROLL_VISUAL_OFFSET:case r.SCROLL_VISUAL_OFFSET_CURVE:case r.NAVIGATE:return!0;}return!1},function(e){e.Elide=0,e.Record=1,e.Whitelist=2}(t.AjaxBodyPolicy||(t.AjaxBodyPolicy={})),function(e){e.Unset=0,e.Exclude=1,e.Block=2,e.Record=3}(t.BlockType||(t.BlockType={})),function(e){e.MaxLogsPerPage=1024,e.MutationProcessingInterval=250,e.CurveSamplingInterval=142,e.DefaultBundleUploadInterval=5e3,e.HeartbeatInitial=4e3,e.HeartbeatMax=256200,e.PageInactivityTimeout=18e5,e.BackoffMax=3e5,e.ScrollSampleInterval=e.MutationProcessingInterval/5,e.InactivityThreshold=4e3,e.MaxPayloadLength=16384}(t.Constants||(t.Constants={})),t.SwanSongLocalStorageKey="_fs_swan_song",t.UidLocalStorageKey="_fs_uid"},function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.length)&&e.substring(e.length-t.length)==t},t.forIn=function(e,t){for(var n in e)d.windex.objectHasOwnProp(e,n)&&t(e[n],n,e)},t.forInAsync=function(e,t){return o(this,void 0,c.FSPromise,function(){var n,r,i,o;return s(this,function(s){switch(s.label){case 0:for(r in n=[],e)n.push(r);i=0,s.label=1;case 1:return it)return!1;return n==t},t.hasMoreThanNKeys=function(e,t){var n=0;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n>t)return!0;return!1};t.nextSibling=u.uaIsIE?function(e){var t=e.nextSibling;return t&&e.parentNode&&t===e.parentNode.firstChild?null:t}:function(e){return e.nextSibling};t.forEachNextSibling=u.uaIsIE?function(e,t){if(e){var n=e.parentNode?e.parentNode.firstChild:null;do{t(e),e=e.nextSibling}while(e&&e!=n)}}:function(e,t){for(;e;e=e.nextSibling)t(e)};function p(e,t){if(!e)return l.doNothing;var n=function(e){try{var t=window;return t.Zone&&t.Zone.root&&"function"==typeof t.Zone.root.wrap?t.Zone.root.wrap(e):e}catch(t){return e}}(e);return t&&(n=n.bind(t)),l.guard(n,function(e){h.logIfDebug("Unexpected error: "+e)})}function _(e){var t="Internal error: unable to determine what JSON error was";try{t=(t=""+e).replace(/[^a-zA-Z0-9\.\:\!\, ]/g,"_")}catch(e){}return"\""+t+"\""}t.previousSibling=u.uaIsIE?function(e){var t=e.previousSibling;return t&&e.parentNode&&t===e.parentNode.lastChild?null:t}:function(e){return e.previousSibling},t.values=function(e){if(d.windex.objectValues)return d.windex.objectValues(e||{});var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.$entry=p,t.stringify=function(e){var t,n=Array.prototype.toJSON,r=String.prototype.toJSON;n&&(Array.prototype.toJSON=void 0),r&&(String.prototype.toJSON=void 0);try{t=d.windex.jsonStringify(e)}catch(e){t=_(e)}finally{n&&(Array.prototype.toJSON=n),r&&(String.prototype.toJSON=r)}return t},t.jsonErrorString=_,t.doctypeString=function(e){var t=e.doctype;if(!t)return"";var n=""},t.parseJson=function(e){return d.windex.jsonParse(e)},t.tryGetScreenDims=function(e){var t=0,n=0;return null==e.screen?[t,n]:(t=parseInt(String(e.screen.width)),n=parseInt(String(e.screen.height)),[t=isNaN(t)?0:t,n=isNaN(n)?0:n])};var g=function(){function e(e,t){this.target=e,this.propertyName=t,this._before=l.doNothing,this._afterSync=l.doNothing,this._afterAsync=l.doNothing,this.on=!1}return e.prototype.before=function(e){return this._before=p(e),this},e.prototype.afterSync=function(e){return this._afterSync=p(e),this},e.prototype.afterAsync=function(e){var t=this;return this._afterAsync=p(function(e){d.windex.setWindowTimeout(window,l.guard(function(){t._afterAsync(e)}),0)}),this},e.prototype.disable=function(){if(this.on=!1,this.shim){var e=this.shim,t=e.override,n=e["native"];this.target[this.propertyName]===t&&(this.target[this.propertyName]=n,this.shim=void 0)}},e.prototype.enable=function(){if(this.on=!0,this.shim)return!0;this.shim=this.makeShim();try{this.target[this.propertyName]=this.shim.override}catch(e){return!1}return!0},e.prototype.makeShim=function(){var e=this,t=this.target[this.propertyName];return{"native":t,override:function(){var n={that:this,args:arguments,result:null};e.on&&e._before(n);var r=t.apply(this,arguments);return e.on&&(n.result=r,e._afterSync(n),e._afterAsync(n)),r}}},e}(),v={};t.activateHook=function(e,t){if(!e||"function"!=typeof e[t])return null;var n;v[t]=v[t]||[];for(var r=0;r\n";var n=[];try{for(var r=arguments.callee.caller.caller;r&&n.lengthn)return!1;var r=new Error("Assertion failed: "+t);return p.sendToBugsnag(r,"error"),e}},function(e,t,n){"use strict";t.__esModule=!0;var r=!1;function i(){return r}t.initDebug=function(e){r=e},t.isDebug=i,t.logIfDebug=function(e){i()&&window.console&&console.log(e)}},function(e,t,n){"use strict";t.__esModule=!0,n(19);var r=n(8),i=n(3),o=n(2),s=n(9);function a(e,t){try{return{done:t,jsonParse:e.JSON.parse,jsonStringify:e.JSON.stringify,arrayShift:u(e.Array.prototype.shift),arrayIsArray:e.Array.isArray,objectToString:u(e.Object.prototype.toString),objectKeys:e.Object.keys,objectValues:e.Object.values||null,objectHasOwnProp:u(e.Object.prototype.hasOwnProperty),matchMedia:c(e.matchMedia),setWindowTimeout:u(e.setTimeout),setWindowInterval:u(e.setInterval),clearWindowTimeout:u(e.clearTimeout),clearWindowInterval:u(e.clearInterval),requestWindowAnimationFrame:c(e.requestAnimationFrame),requestWindowIdleCallback:c(e.requestIdleCallback)}}catch(e){return}}function u(e){return function(t){for(var n=[],r=1;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this._due)return c.FSPromise.resolve().then(this._wrappedTick)["catch"](function(){})},e.registry={},e.nextId=0,e.checkedAlready=!1,e.lastCheck=0,e}();t.Scheduler=l;var f=function(e){function t(t){var n=e.call(this)||this;return n._interval=t,n._handle=-1,n}return i(t,e),t.prototype.start=function(e){var t=this;-1==this._handle&&(this.setTick(function(){e(),t.register(t._interval)}),this._handle=d.windex.setWindowInterval(window,this._wrappedTick,this._interval),this.register(this._interval))},t.prototype.cancel=function(){-1!=this._handle&&(d.windex.clearWindowInterval(window,this._handle),this._handle=-1,this.setTick(function(){}))},t}(l);t.RealTicker=f;var p=function(e){function t(t,n,r){void 0===n&&(n=0);for(var i=[],o=3;ot&&(this._skew=e-t,this._reportTimeSkew("timekeeper set with future ts"))},e.prototype._reportTimeSkew=function(e){this._reported++<=2&&u.FsBugSnag.sendToBugsnag(e,"error",{skew:this._skew,startTime:this._startTime,wallTime:this.wallTime()})},e}();t.Timekeeper=v},function(e,t,n){"use strict";t.__esModule=!0;var r=n(15),i=n(2);t._mirrors={};var o=1;function s(e){var t=a(e);return!!t&&t.watchKind==r.WatchKind.Exclude}function a(e){return e?t._mirrors[e._fs]:null}function u(e){try{return e&&e._fs||0}catch(e){return 0}}function c(e,n){e.parent&&(n.unobserveSubtree(e.node),e.parent.child==e&&(e.parent.child=e.next),e.parent.lastChild==e&&(e.parent.lastChild=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent=e.prev=e.next=null,delete t._mirrors[e.id],e.node._fs==e.id&&(e.node._fs=0),e.id=0,e.child&&d(e.child))}function d(e){for(var n=[e];n.length>0&&n.length<1e4;){var r=n.pop();delete t._mirrors[r.id],r.node._fs==r.id&&(r.node._fs=0),r.id=0,r.next&&n.push(r.next),r.child&&n.push(r.child)}i.assert(n.length<1e4,"clearIds is fast")}t.tryTokenize=function(e){var t=o;try{return e(),!0}catch(e){return o=t,!1}},t.clearMirrors=function(){t._mirrors={},o=1},t.newMirror=function(e){var n={id:o++,node:e};return t._mirrors[n.id]=n,e._fs=n.id,n},t.isWatched=function(e){var t=a(e);return!!t&&void 0!==t.watchKind},t.isExcluded=s,t.isMasked=function(e){var t=a(e);return!!t&&!!t.mask},t.watchKind=function(e){var t=a(e);return t?t.watchKind:void 0},t.mirrorFor=a,t.fsid=u,t.fsidIfNotExcluded=function(e){return s(e)?0:u(e)},t.insertMirror=function(e,t,n,r){c(t,r),t.parent=e,t.next=n,n&&(t.prev=n.prev,n.prev=t),null==t.next?(t.prev=e.lastChild,e.lastChild=t):t.next.prev=t,null==t.prev?e.child=t:t.prev.next=t},t.removeMirror=c,t.clearIds=d},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var i=n(49),o=n(14),s=n(13),a=n(6),u=n(0),c=n(2),d=n(29),h=r(n(51)),l="(redacted)";function f(e,t,n){switch(n.source){case"dom":switch(r=n.type){case"frame":case"iframe":return _(e,t);default:return p(e,t);}case"event":switch(r=n.type){case u.RawEventKind.AJAX_REQUEST:case u.RawEventKind.NAVIGATE:return p(e,t);case u.RawEventKind.SET_FRAME_BASE:return _(e,t);default:return i.assertExhaustive(r);}case"log":return _(e,t);case"page":var r;switch(r=n.type){case"base":return _(e,t);case"referrer":case"url":return p(e,t);default:return i.assertExhaustive(r);}case"perfEntry":switch(n.type){case"frame":case"iframe":case"navigation":return _(e,t);default:return p(e,t);}default:return i.assertExhaustive(n);}}function p(e,t){return v(e,t,function(e){if(!(e in y)){var t=["password","token","^jwt$"];switch("4K3FQ"!==e&&"NQ829"!==e&&t.push("^code$"),e){case"2FVM4":t.push("^e$","^eref$","^fn$");break;case"35500":t.push("share_token","password-reset-key");break;case"1HWDJ":t.push("email_id","invite","join");break;case"J82WF":t=[".*"];break;case"8MM83":t=["^creditCard"];break;case"PAN8Z":t.push("code","hash","ol","aeh");}y[e]=new RegExp(t.join("|"),"i")}return y[e]}(t))}function _(e,t){return v(e,t,m)}function g(e,t,n,r){var i=new RegExp("(\\/"+t+"\\/).*$","i");n==r&&e.pathname.indexOf(t)>=0&&(e.pathname=e.pathname.replace(i,"$1"+l))}function v(e,t,n){var r=s.parseUrl("",e);return r.hash.indexOf("access_token")>=0&&(r.hash="#"+l),g(r,"reset_password",t,"AGQFM"),g(r,"reset-password",t,"95NJ7"),r.search.length>0&&(r.search=function(e,t){return e.split("?").map(function(e){return function(e,t){return e.replace("?","").split("&").map(function(e){return e.split("=")}).map(function(e){var n=e[0],r=e[1],i=e.slice(2);return t.test(n)&&void 0!==r?[n,l].concat(i):[n,r].concat(i)}).map(function(e){var t=e[0],n=e[1],r=e.slice(2);return void 0===n?t:[t,n].concat(r).join("=")}).join("&")}(e,t)}).join("?")}(r.search,n)),r.href.substring(0,2048)}t.MaxTextSizeBytes=16e6,t.setMaxTextSizeBytes=function(e){t.MaxTextSizeBytes=e},t.scrubTextNode=function(e,n){var r=e.textContent;if(!r)return"";if(!n&&!(n=a.mirrorFor(e)))return"";var i=r.length;return i>t.MaxTextSizeBytes?(c.FsBugSnag.sendToBugsnag("Ignoring huge text node","warning",{length:i}),""):e.parentNode&&"style"==o.tagName(e.parentNode)?r:n.mask?d.maskText(r):r},t.scrubAttrName=function(e){return h["default"][e]||e.toLowerCase()},t.scrubAttrValue=function(e,t,n,r){var i=o.tagName(t);switch(i){case"frame":case"iframe":switch(n){case"src":r=f(r,e,{source:"dom",type:i});break;case"srcdoc":return null;}}if(a.isExcluded(t))switch(n){case"alt":case"checked":case"data":case"placeholder":case"src":case"srcset":case"href":case"title":case"value":return null;}else if(a.isMasked(t))switch(n){case"checked":case"data":return null;case"alt":case"placeholder":case"title":case"value":return d.maskText(r);}return r},t.scrubUrl=f;var y={};var m=new RegExp(".*","i")},function(e,t,n){"use strict";t.__esModule=!0;var r=navigator.userAgent;t.uaIsIE=r.indexOf("MSIE ")>-1||r.indexOf("Trident/")>-1,t.uaIsIE11=t.uaIsIE&&r.indexOf("rv:11")>-1,t.uaIsEdge=r.indexOf("Edge/")>-1,t.uaIsSafari=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent),t.uaPrefixedPropety=function(e,t){for(var n=0===t.indexOf("on")?function(e){return"on"+e+t.slice(2)}:function(e){return""+e+t.charAt(0).toUpperCase()+t.slice(1)},r=0,i=[function(){return t},function(){return n("webkit")},function(){return n("moz")},function(){return n("ms")}];r0){for(var e=0;e0&&this._transport.enqueueEvents(i,r);break;case t.FS_REQUEST_FRAME_ID:if(!e)return void a.logIfDebug("No MessageEvent.source, iframe may have unloaded.");var s=this.iFrameWndToFsId(e);s?(a.logIfDebug("Responding to FID request for frame "+s),this.sendFrameIdToInnerFrame(e,s)):a.logIfDebug("No FrameId found. Hoping to send one later.");}},e.prototype.sendFrameIdToInnerFrame=function(e,n){var r=this,i=function(){var i=[];0!=r._frameId&&(i=r._parentIds?r._parentIds.concat(r._frameId):[r._frameId]);var o=r._ctx.time.startTime();R(e,[t.FS_SET_FRAME_ID_CMD,n,i,o,r._scheme,r._script,r._appHost,r._orgId,r._pageRsp])};null==this._frameId?this._pendingChildFrameIdInits.push(i):i()},e.prototype.iFrameWndToFsId=function(e){for(var t=0;td&&(u=d);var h=i.split(/[#,]/);if(h.length<3&&(h=i.split("`")).length<3)return null;var l=h[0],f=h[1],p=h[2],_=h[3],g="";void 0!==_&&(g=decodeURIComponent(_),(t.BAD_APP_IDS.indexOf(g)>=0||o.indexOf(g)>=0)&&(r.logIfDebug("Ignoring invalid app key \""+g+"\" from cookie."),g=""));var v=p.split(":");return{expirationAbsTimeSeconds:u,host:l,orgId:f,userId:v[0],sessionId:v[1]||"",appKeyHash:g}},t.getCookies=function(e){for(var t={},n=e.cookie.split(";"),r=0;r0&&t.height>0)return this.width=t.width,void(this.height=t.height);r=this.computeLayoutViewportSizeFromMediaQueries(e),this.width=r[0],this.height=r[1]}}return e.prototype.computeLayoutViewportSizeFromMediaQueries=function(e){var t=this.findMediaValue(e,"width",this.clientWidth,this.clientWidth+128);void 0===t&&(t=this.tryToGet(e,"innerWidth")),void 0===t&&(t=this.clientWidth);var n=this.findMediaValue(e,"height",this.clientHeight,this.clientHeight+128);return void 0===n&&(n=this.tryToGet(e,"innerHeight")),void 0===n&&(n=this.clientHeight),[t,n]},e.prototype.findMediaValue=function(e,t,n,i){if(r.windex.matchMedia){var o=r.windex.matchMedia(e,"(min-"+t+": "+n+"px)");if(null!=o){if(o.matches&&r.windex.matchMedia(e,"(max-"+t+": "+n+"px)").matches)return n;for(;n<=i;){var s=Math.floor((n+i)/2);if(r.windex.matchMedia(e,"(min-"+t+": "+s+"px)").matches){if(r.windex.matchMedia(e,"(max-"+t+": "+s+"px)").matches)return s;n=s+1}else i=s-1}}}},e.prototype.tryToGet=function(e,t){try{return e[t]}catch(e){return}},e}();function s(e,t){return new o(e,t)}t.getLayoutViewport=s;var a=function(e,t){this.offsetLeft=0,this.offsetTop=0,this.pageLeft=0,this.pageTop=0,this.width=0,this.height=0,this.scale=0;var n=e.document;if(n.body){var r="BackCompat"==n.compatMode;"pageXOffset"in e?(this.pageLeft=e.pageXOffset,this.pageTop=e.pageYOffset):n.scrollingElement?(this.pageLeft=n.scrollingElement.scrollLeft,this.pageTop=n.scrollingElement.scrollTop):r?(this.pageLeft=n.body.scrollLeft,this.pageTop=n.body.scrollTop):n.documentElement&&(n.documentElement.scrollLeft>0||n.documentElement.scrollTop>0)?(this.pageLeft=n.documentElement.scrollLeft,this.pageTop=n.documentElement.scrollTop):(this.pageLeft=n.body.scrollLeft||0,this.pageTop=n.body.scrollTop||0),this.offsetLeft=this.pageLeft-t.pageLeft,this.offsetTop=this.pageTop-t.pageTop;try{var i=e.innerWidth,o=e.innerHeight}catch(e){return}if(0!=i&&0!=o){this.scale=t.width/i,this.scale<1&&(this.scale=1);var s=t.width-t.clientWidth,a=t.height-t.clientHeight;this.width=i-s/this.scale,this.height=o-a/this.scale}}};t.getVisualViewport=function(e,t){return"visualViewport"in e?e.visualViewport:(void 0===t&&(t=s(e)),new a(e,t))}},function(e,t,n){"use strict";t.__esModule=!0;var r={};var i="__default";t.theDummyDoc=function(e){void 0===e&&(e=i);var t=r[e];return t||(t=function(){var e=document.implementation.createHTMLDocument("");return e.head||e.documentElement.appendChild(e.createElement("head")),e.body||e.documentElement.appendChild(e.createElement("body")),e}(),e!==i&&(t.open(),t.write(e),t.close()),r[e]=t),t}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3),i=n(31),o=n(13),s=n(0),a=n(32),u=n(4),c=n(11),d=n(58),h=n(59),l=n(7);t.CRLF="\r\n";var f=["a-im","accept","accept-charset","accept-encoding","accept-language","accept-datetime","access-control-request-method,","access-control-request-headers","cache-control","connection","content-length","content-md5","content-type","date","expect","forwarded","from","host","if-match","if-modified-since","if-none-match","if-range","if-unmodified-since","max-forwards","origin","pragma","range","referer","te","user-agent","upgrade","via","warning"],p=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","permanent","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-frame-options"],_={BM7A6:["x-b3-traceid"],KD87S:["transactionid"],NHYJM:["x-att-conversationid"],GBNRN:["x-trace-id"]},g={"thefullstory.com":["x-cloud-trace-context"],TN1:["x-cloud-trace-context"],KD87S:["transactionid"],PPE96:["x-b3-traceid"],HWT6H:["x-b3-traceid"],PPEY7:["x-b3-traceid"],PPK3W:["x-b3-traceid"],NHYJM:["x-att-conversationid"],GBNRN:["x-trace-id"]},v=function(){function e(e,t){this._ctx=e,this._queue=t,this._enabled=!1,this._tracker=new y(e,t),this._xhr=new h.AjaxWatcherXHR(this._tracker),this._fetch=new d.AjaxWatcherFetch(this._tracker)}return e.prototype.isEnabled=function(){return this._enabled},e.prototype.enable=function(e){this._enabled||(this._enabled=!0,this._queue.enqueue({Kind:s.RawEventKind.REC_FEAT_SUPPORTED,Args:[s.RecFeature.Ajax,!0,s.RecFeature.AjaxFetch,!!e]}),this._xhr.enable(this._ctx.window),e&&this._fetch.enable(this._ctx.window))},e.prototype.disable=function(){this._enabled&&(this._enabled=!1,this._xhr.disable(),this._fetch.disable())},e.prototype.tick=function(e){this._tracker.tick(e)},e.prototype.setWatches=function(e){this._tracker.setWatches(e)},e}();t.AjaxWatcher=v;var y=function(){function e(e,t){this._ctx=e,this._queue=t,this._reqHeaderWhitelist={},this._rspHeaderWhitelist={},this._pendingReqs={},this._events=[],this._curId=1,this.addHeaderWhitelist(f,p),this.addHeaderWhitelist(_[e.options.orgId],g[e.options.orgId])}return e.prototype.getReqWhitelist=function(e){var t=this.findWhitelistIndexFor(e);return t>=0&&this._reqWhitelist[t]},e.prototype.getRspWhitelist=function(e){var t=this.findWhitelistIndexFor(e);return t>=0&&this._rspWhitelist[t]},e.prototype.isHeaderInWhitelist=function(e){return e in this._reqHeaderWhitelist},e.prototype.pushEvent=function(e){this._events.push(e)},e.prototype.setWatches=function(e){var t=this,n=[];this._reqWhitelist=[],this._rspWhitelist=[],e.forEach(function(e){n.push(e.URLRegex),t._reqWhitelist.push(k(e.RecordReq,e.ReqWhitelist)),t._rspWhitelist.push(k(e.RecordRsp,e.RspWhitelist))}),this._reqBodyRegex=new RegExp("("+n.join(")|(")+")")},e.prototype.addHeaderWhitelist=function(e,t){var n=this;e&&e.forEach(function(e){return n._reqHeaderWhitelist[e]=!0}),t&&t.forEach(function(e){return n._rspHeaderWhitelist[e]=!0})},e.prototype.tick=function(e){if(e){for(var t=0;t>>0).toString(16)).slice(-8);return e},e}();t._FSNV=o,t.hashString32Blocking=function(e){var t=new o(1);return t.writeAscii(e),t.sumAsHex()};var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);function u(e){for(var t=String(e),n=[],r=0,i=0,o=0,u=s;t.charAt(0|o)||(u="=",o%1);n.push(u.charAt(63&r>>8-o%1*8))){if((i=t.charCodeAt(o+=.75))>255)throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return n.join("")}t._jsbtoa=u},function(e,t,n){"use strict";t.__esModule=!0;var r="_fs_loaded",i="_fs_namespace";function o(e){return e}t.getGlobalsOn=o;var s,a="FS";function u(e){return e[r]}t.getNamespace=function(e){if(s)return s;var t=u(e);return t?(s=t,t):(t=o(e)[i])?(s=t,t):s=a},t.isLoaded=u,t.setLoaded=function(e,t){e[r]=t,t in e||(e[t]={})}},function(e,t,n){"use strict";t.__esModule=!0,t.domainFromHost=function(e){var t=e,n=t.indexOf(":");return n>=0&&(t=t.slice(0,n)),t},t.isLocalhost=function(e){return"localhost"==e||"127.0.0.1"==e},t.isIP=function(e){return!!e.match(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/g)}},function(e,t,n){"use strict";t.__esModule=!0;t.urlValueDelims=[["url\\(\\s*\"","\"\\s*\\)"],["url\\(\\s*'","'\\s*\\)"],["url\\(\\s*","\\s*\\)"]];var r=[["@import\\s+\"","\""],["@import\\s+'","'"]].concat(t.urlValueDelims),i=/(?:[^\\](?:\\\\)*)/.source;t.urlPattern=".*?"+i,t.CSS_URL=new RegExp(r.map(function(e){var n=e[0],r=e[1];return"("+n+")("+t.urlPattern+")("+r+")"}).join("|"),"g"),t.replaceCssUrls=function(e,n){return e.replace(t.CSS_URL,function(e){for(var t=[],r=1;r()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,t.IMAGE_FILENAME=/\.(jpe?g|png|svg|gif|bmp)$/,t.WATCH_RULE_COMMENT=/^\s*\/\//,t.DATA_URI=/^data:([^;,]*)[;,]/i,t.SKETCHY_CONTENT_TYPES=/(application|script|text\/js|text\/html)/i,t.WHITELISTED_CONTENT_TYPES=/(^application\/octet-stream)|(^font\/)|(^application\/[a-z_.-]*font)/i,t.SKETCHY_URI_SCHEMES=/javascript:|file:/i},function(e,t,n){"use strict";t.__esModule=!0;var r=new RegExp("[^\\s]"),i=new RegExp("[\\s]*$"),o=" ",s="*",a="repeat"in String.prototype?function(e,t){return e.repeat(t)}:function(e,t){for(var n="",r=0;r=2?parseInt(t[1]):0,r=t.length>=3?parseInt(t[2]):0,i=a(o,n),c=t[0].split(":"),d=0;d-1}t.__esModule=!0,t.isNativeNode=function(e){return r(e.constructor)},t.isNativeFunction=r},function(e,t,n){"use strict";t.__esModule=!0,t.parseFieldPatterns=function(e){var t=0,n={id:t++,edges:{}};return e.split("\n").forEach(function(e){if(""!=(e=e.trim())){if(0==e.indexOf("/")||e.lastIndexOf("/")==e.length-1)throw new Error("Leading and trailing slashes are not supported");var r=n,i=e.split("/");i.forEach(function(e,n){if(""===(e=e.trim()))throw new Error("Empty elements are not allowed");if("**"!=e&&"*"!=e&&-1!=e.indexOf("*"))throw new Error("Embedded wildcards are not supported");var o=null;"**"==e?(r.loop=!0,o=r):e in r.edges&&(o=r.edges[e]),o||(o={id:t++,edges:{}},r.edges[e]=o),n==i.length-1&&(o.term=!0),r=o})}}),n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(31),i=n(4),o=r.parseFieldPatterns("**");t.whitelistedJson=function(e,t,n){var r;if(n){r=1==n?o:n;try{var s=0,a=[1],u=[],c={};return c[r.id]=r,u.push(c),i.windex.jsonStringify(e,function(e,n){var r=n&&"object"==typeof n;if(""==e&&1==a.length)return a[0]--,r&&a.push(i.windex.objectKeys(n).length),n;var o={},c=u[u.length-1],d=!0,h=!1,l=function(e){o[e.id]=e,d=!1,e.term&&(h=!0)};for(var f in c){var p=c[f];e in p.edges&&l(p.edges[e]),"*"in p.edges&&l(p.edges["*"]),p.loop&&l(p)}for((d||!r&&!h)&&(n=null),s+=e.length+2,(s+=r?2:null===n?4:n.toString().length)>=t&&(n=void 0),a[a.length-1]--,n&&r&&(a.push(i.windex.objectKeys(n).length),u.push(o));a[a.length-1]<=0;)a.pop(),u.pop();return n})}catch(e){}return"[error serializing "+e.constructor.name+"]"}}},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t0&&"string"==typeof e.nodeName}(t)?function(e){if(!d.fsidIfNotExcluded(e))return e.toString();if(e.tagName){var t=a.tagName(e),n=u.uaIsEdge&&"output"==t?{}:e.attributes;return"<"+t+(n&&n.type?" type=\""+n.type.value+"\"":"")+(e.id?" id=\""+e.id+"\"":"")+(e.className?" class=\""+e.className+"\"":"")+">"+(e.firstChild?"...":"")+""}var r="";return e.data&&e.data.substring&&(r=" "+e.data.substring(0,50)+(e.data.length>50?"...":"")),e.nodeName+r}(t):void 0===t?"undefined":"object"!=typeof t||null==t?t:t instanceof Error?t.stack||t.name+": "+t.message:void 0;if(void 0!==s)return void 0===(s=c.windex.jsonStringify(s))?0:("\""==s[0]&&(s=_(s,n,"...\"")),s.length<=n?(i.tokens.push(s),s.length):0);if(i.cyclic){i.opath.splice(r);var h=i.opath.lastIndexOf(t);if(h>-1){var l="";return l="\""+_(l,n-2)+"\"",i.tokens.push(l),l.length}i.opath.push(t)}var f=n,g=function(e){return f>=e.length&&(f-=e.length,i.tokens.push(e),!0)},v=function(e){","==i.tokens[i.tokens.length-1]?i.tokens[i.tokens.length-1]=e:g(e)};if(f<2)return 0;if(o.isArray(t)){g("[");for(var y=0;y0;y++){var m=e(t[y],f-1,r+1,i);if(f-=m,0==m&&!g("null"))break;g(",")}v("]")}else{g("{");var w=o.keys(t);for(y=0;y0;y++){var S=w[y],b=t[S];if(!g("\""+S+"\":"))break;if(0==(m=e(b,f-1,r+1,i))){i.tokens.pop();break}f-=m,g(",")}v("}")}return n==1/0?1:n-f}(e,t,0,n),n.tokens.join("")}catch(e){return o.jsonErrorString(e)}}function f(e,t){var n=0;try{c.windex.jsonStringify(e,function(e,r){if(n++>t)throw"break";if("object"==typeof r)return r})}catch(e){return"break"!=e}return!1}t.ConsoleWatcher=h,t.stringifyLogMessage=l;var p=function(e){return isNaN(e)?"Invalid Date":e.toUTCString()},_=function(e,t,n){return void 0===n&&(n="..."),e.length<=t?e:e.length<=n.length||t<=n.length?e.substring(0,t):e.substring(0,t-n.length)+n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9),i=n(17),o=n(4);t.createFSPromise=function(){var e,t;return{promise:new r.FSPromise(function(n,r){e=n,t=r}),resolve:e,reject:t}},t.wait=function(e){return new r.FSPromise(function(t){o.windex.setWindowTimeout(window,i.guard(t),e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.isErrorFatal=function(e){return e>=400||202==e||206==e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(27),i=n(21),o=n(10),s=n(0),a=n(25),u=n(11);t.HighlightTypeFsId="fsidentity",t.HighlightTypeNewUid="newuid",t.UID_COOKIE="fs_uid";var c=function(){function e(e){void 0===e&&(e=document),this._doc=e,this._cookies={}}return e.prototype.initFromCookies=function(e,n){this._cookies=i.getCookies(this._doc);var r=this._cookies[t.UID_COOKIE];if(!r)try{r=localStorage[s.UidLocalStorageKey]}catch(e){}var o=i.parseIdentityCookie(r);o&&o.host.replace(/^www\./,"")==e.replace(/^www\./,"")&&o.orgId==n?this._cookie=o:this._cookie={expirationAbsTimeSeconds:i.freshCookieExpirationTimeSeconds(),host:e,orgId:n,userId:"",sessionId:"",appKeyHash:""}},e.prototype.initFromParsedCookie=function(e){this._cookie=e},e.prototype.clear=function(){this._cookie.userId=this._cookie.sessionId=this._cookie.appKeyHash="",this._cookie.expirationAbsTimeSeconds=i.freshCookieExpirationTimeSeconds(),this._write()},e.prototype.host=function(){return this._cookie.host},e.prototype.orgId=function(){return this._cookie.orgId},e.prototype.userId=function(){return this._cookie.userId},e.prototype.sessionId=function(){return this._cookie.sessionId},e.prototype.appKeyHash=function(){return this._cookie.appKeyHash},e.prototype.cookieData=function(){return this._cookie},e.prototype.cookies=function(){return this._cookies},e.prototype.setCookie=function(e,t,n){void 0===n&&(n=new Date(u.now()+6048e5).toUTCString());var r=e+"="+t;this._domain?r+="; domain=."+encodeURIComponent(this._domain):r+="; domain=",r+="; Expires="+n+"; path=/; SameSite=Strict","https:"===location.protocol&&(r+="; Secure"),this._doc.cookie=r},e.prototype.setIds=function(e,t,n,i){(r.isLocalhost(t)||r.isIP(t))&&(t="");var s=o._fs_cookie_domain(e);"string"==typeof s&&(t=s),this._domain=t,this._cookie.userId=n,this._cookie.sessionId=i,this._write()},e.prototype.clearAppId=function(){return!!this._cookie.appKeyHash&&(this._cookie.appKeyHash="",this._write(),!0)},e.prototype.setAppId=function(e){this._cookie.appKeyHash=a.hashString32Blocking(e),this._write()},e.prototype.encode=function(){var e=this._cookie.host+"#"+this._cookie.orgId+"#"+this._cookie.userId+":"+this._cookie.sessionId;return this._cookie.appKeyHash&&(e+="#"+encodeURIComponent(this._cookie.appKeyHash)+"#"),e+="/"+this._cookie.expirationAbsTimeSeconds},e.prototype._write=function(){if(null!=this._domain){var e=this.encode(),n=new Date(1e3*this._cookie.expirationAbsTimeSeconds).toUTCString();this.setCookie(t.UID_COOKIE,e,n);try{localStorage[s.UidLocalStorageKey]=e}catch(e){}}},e}();t.Identity=c},function(e,t,n){"use strict";t.__esModule=!0,n(38).main()},function(e,t,n){"use strict";t.__esModule=!0,n(39);var r=n(40),i=n(2),o=n(10);t.main=function(){try{new r.Conductor().init()}catch(e){i.FsBugSnag.sendToBugsnag(e,"error"),o._fs_debug(window)&&window.console&&console.log&&console.log("Failed to initialize FullStory.")}}},function(e,t,n){"use strict";t.__esModule=!0},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2?u[2]:null;"user"==u[0]&&u[1]&&u[1].uid&&(t=d.transformValidateAppId(u[1].uid)[0]);var h=this.vars.api(u[0],u[1],c),l=h.events,f=h.reidentify,p=h.recStatus,_=h.consent;p&&(i="shutdown"===p),f&&(o=[],n=!0),void 0!==_&&(r=_),o.push.apply(o,l)}return{events:o,reidentify:n,consent:r,appId:t,defer:i}},e.prototype.inFrame=function(){if("boolean"==typeof this._inFrame)return this._inFrame;var e=_._fs_transport(this.wnd);return _._fs_is_outer_script(this.wnd)?this._inFrame=!1:this.wnd!=top?this._inFrame=!0:e?e.init&&e.init(this.orgId)&&(this._inFrame=!0):this._inFrame=!1,this._inFrame},e.prototype.canRecord=function(e){return(this.wnd.MutationObserver||this.wnd.MutationEvent)&&this.wnd.postMessage&&f._native_matchesSelector?!!function e(t){if(t==top||_._fs_is_outer_script(t)||_._fs_run_in_iframe(t)||_._fs_transport(t))return!0;try{return t.parent.document,e(t.parent)}catch(e){return!1}}(this.wnd)||(p.logIfDebug("FullStory recording for this page is NOT allowed within an iFrame."),!1):(p.logIfDebug("missing required browser features"),!1)},e.prototype.hailMary=function(){var e=this;if(this.identity){var t=_._fs_replay_flags(this.wnd);p.logIfDebug("Unable to record playback stream.");var n=document.createElement("script");this.wnd.__fs_startResponse=function(t){t&&e.identity.setIds(e.wnd,t.CookieDomain,t.UserIntId,t.SessionIntId),document.head&&document.head.removeChild(n)};var r=y.getDocumentClientArea(this.wnd.document),i=r[0],o=r[1],s=f.tryGetScreenDims(this.wnd),a=s[0],u=s[1],c=T.scrubUrl(m.baseUri(this.wnd),this.orgId,{source:"page",type:"base"}),d=T.scrubUrl(document.referrer,this.orgId,{source:"page",type:"referrer"}),h=T.scrubUrl(this.wnd.location.href,this.orgId,{source:"page",type:"url"});n.src="//"+this.recHost+"/rec/page?OrgId="+this.orgId+"&UserId="+this.identity.userId()+"&Url="+encodeURIComponent(h)+"&Base="+encodeURIComponent(c)+"&Width="+i+"&Height="+o+"&ScreenWidth="+a+"&ScreenHeight="+u+"&Referrer="+encodeURIComponent(d)+"&Doctype="+encodeURIComponent(f.doctypeString(document))+"&CompiledTimestamp=1578432808&Fallback=true"+(t?"&ReplayFlags="+t:""),document.head&&document.head.appendChild(n)}},e.prototype.hookLoadEvents=function(){var e=this,t=function(){e.domDoneLoaded||(e.domDoneLoaded=!0,e.recorder&&e.recorder.onDomLoad())},n=!1,r=function(){n||(n=!0,e.recorder&&e.recorder.onLoad())};switch(document.readyState){case"interactive":document.attachEvent||t();break;case"complete":t(),r();}this.domDoneLoaded||document.addEventListener("DOMContentLoaded",o.FsBugSnag.wrap(t)),n||this.wnd.addEventListener("load",o.FsBugSnag.wrap(function(e){t(),r()}))},e}();t.Conductor=R},function(e,t,n){"use strict";t.__esModule=!0;var r=n(26);t.getBrowserApi=function(e){return e[r.getNamespace(e)]},t.getGlobalsOnNS=function(e,t){return r.getGlobalsOn(t)}},function(e){e.exports=[{Selector:"object:not([type^=\"image/\"])",Consent:!1,Type:1},{Selector:"embed:not([type^=\"image/\"])",Consent:!1,Type:1},{Selector:"canvas",Consent:!1,Type:1},{Selector:"noscript",Consent:!1,Type:1},{Selector:".fs-hide",Consent:!1,Type:1},{Selector:".fs-exclude",Consent:!1,Type:1},{Selector:".fs-exclude-without-consent",Consent:!0,Type:1},{Selector:".fs-mask",Consent:!1,Type:2},{Selector:".fs-mask-without-consent",Consent:!0,Type:2},{Selector:".fs-unmask",Consent:!1,Type:3},{Selector:".fs-unmask-with-consent",Consent:!0,Type:3},{Selector:".fs-block",Consent:!1,Type:1},{Selector:".fs-record-with-consent",Consent:!0,Type:1}]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3),i=n(2),o=n(17);function s(e,t,n,i){void 0!==n&&("function"==typeof e.addEventListener?e.addEventListener(t,n,i):"function"==typeof e.addListener?e.addListener(n):r.logIfDebug("Target of "+t+" doesn't seem to support listeners"))}function a(e,t,n,i){void 0!==n&&("function"==typeof e.removeEventListener?e.removeEventListener(t,n,i):"function"==typeof e.removeListener?e.removeListener(n):r.logIfDebug("Target of "+t+" doesn't seem to support listeners"))}t._trustEventOverride="_fs_trust_event";var u=function(){function e(){var e=this;this._listeners=[],this._children=[],this._yesCapture=!0,this._noCapture=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e._yesCapture={capture:!0,passive:!0},e._noCapture={capture:!1,passive:!0}}});window.addEventListener("test",o.doNothing,t)}catch(e){}}return e.prototype.add=function(e,t,n,r,i){return void 0===i&&(i=!1),this.addCustom(e,t,n,r,i)},e.prototype.addCustom=function(e,n,r,o,a){void 0===a&&(a=!1);var u={target:e,type:n,fn:i.FsBugSnag.wrap(function(e){(a||!1!==e.isTrusted||"message"==n||e[t._trustEventOverride])&&o(e)}),options:r?this._yesCapture:this._noCapture,index:this._listeners.length};return this._listeners.push(u),s(e,n,u.fn,u.options),u},e.prototype.remove=function(e){e.target&&(a(e.target,e.type,e.fn,e.options),e.target=null,e.fn=void 0)},e.prototype.clear=function(){for(var e=0;e-1&&this._customElementWatcher.onCustomNodeVisited(t);}if("scrollLeft"in t&&"scrollTop"in t){var u=t;this._ctx.measurer.requestMeasureTask(function(){0==u.scrollLeft&&0==u.scrollTop||r.addScroll(u)})}},e.prototype.isPrivacyClear=function(e){var t=A(e);return!!w.fsid(t)&&!w.isExcluded(t)},e.prototype.addMouseMove=function(e){var t=w.fsid(A(e));this._queue.enqueue({Kind:p.RawEventKind.MOUSEMOVE,Args:t?[e.clientX,e.clientY,t]:[e.clientX,e.clientY]})},e.prototype.addMouseDown=function(e){this._queue.enqueue({Kind:p.RawEventKind.MOUSEDOWN,Args:[e.clientX,e.clientY]})},e.prototype.addMouseUp=function(e){this._queue.enqueue({Kind:p.RawEventKind.MOUSEUP,Args:[e.clientX,e.clientY]})},e.prototype.addTouchEvent=function(e,t){if(void 0!==e.changedTouches)for(var n=0;n-1)return[n];if("srcset"==t&&("img"==i||"source"==i))return null!=n.match(/^\s*$/)?[]:f.map(n.split(","),function(e){return f.trim(e).split(/\s+/)[0]});var s=e;if("style"==t&&s.style){var a=s.style.backgroundImage;if(!a)return[];if(a.length>300)return[];var u=[],c=void 0;for(o.SIMPLE_CSS_URL.lastIndex=0;c=o.SIMPLE_CSS_URL.exec(a);){var d=c[1];d&&u.push(d.trim())}return u}return[]}function x(e){for(var t=e.activeElement;t&&t.shadowRoot;){var n=t.shadowRoot.activeElement;if(!n)return t;t=n}return t}function A(e){if(e.composed&&e.target){var t=e.target;if(t.nodeType==S.Node_ELEMENT_NODE&&t.shadowRoot){var n=e.composedPath();if(n.length>0)return n[0]}}return e.target}t.getResourceUrls=C},function(e,t,n){"use strict";function r(e){return{pageLeft:e.pageLeft,pageTop:e.pageTop,width:e.width,height:e.height}}t.__esModule=!0,t.sameViewportPos=function(e,t){return t&&e.pageLeft==t.pageLeft&&e.pageTop==t.pageTop},t.sameVisualViewportOffset=function(e,t){return t&&e.offsetLeft==t.offsetLeft&&e.offsetTop==t.offsetTop},t.sameViewportSize=function(e,t){return t&&e.width==t.width&&e.height==t.height},t.sameLayoutViewportSize=function(e,t){return t&&e.width==t.width&&e.height==t.height&&e.clientWidth==t.clientWidth&&e.clientHeight==t.clientHeight},t.createVisualViewportLike=function(e){var t=r(e);return t.offsetLeft=e.offsetLeft,t.offsetTop=e.offsetTop,t},t.createLayoutViewportLike=function(e){var t=r(e);return t.clientWidth=e.clientWidth,t.clientHeight=e.clientHeight,t}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),i=n(1),o=n(14),s=n(6),a=function(){function e(e,n){this._onchange=e,this._checkElem=n,this._fallback=!1,this._elems={},this.values={},this.radios={},t._globalInputWatcher=this}return e.prototype.hookEvents=function(){(function(){var e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!e||!e.set)return!1;u||(i.shimProp(HTMLInputElement,"value",f),i.shimProp(HTMLInputElement,"checked",f),i.shimProp(HTMLSelectElement,"value",f),i.shimProp(HTMLTextAreaElement,"value",f),i.shimProp(HTMLSelectElement,"selectedIndex",f),i.shimProp(HTMLOptionElement,"selected",f),u=!0);return!0})()||(this._fallback=!0)},e.prototype.addInput=function(e){var t=s.fsid(e);if(this._elems[t]=e,_(e)){var n=l(e);e.checked&&(this.radios[n]=t)}else this.values[t]=p(e);(function(e){switch(e.type){case"checkbox":case"radio":return e.checked!=e.hasAttribute("checked");default:return(e.value||"")!=function(e){if("select"!=o.tagName(e))return e.getAttribute("value")||"";var t=e,n=t.querySelector("option[selected]")||t.querySelector("option");if(!n)return"";return n.value||""}(e);}})(e)&&this._onchange(e)},e.prototype.diffValue=function(e,t){var n=s.fsid(e);if(_(e)){var r=l(e);return this.radios[r]==n!=("true"==t)}return this.values[n]!=t},e.prototype.onChange=function(e,t){void 0===t&&(t=p(e));var n=s.fsid(e);if((e=this._elems[n])&&this.diffValue(e,t))if(this._onchange(e),_(e)){var r=l(e);"false"==t&&this.radios[r]==n?delete this.radios[r]:this.radios[r]=n}else this.values[n]=t},e.prototype.tick=function(){for(var e in this._elems){var t=this._elems[e];if(this._checkElem(t)){if(this._fallback){var n=p(t);if(t&&this.diffValue(t,n))if(this._onchange(t),_(t)){var r=l(t);this.radios[r]=+e}else this.values[e]=n}}else delete this._elems[e],delete this.values[e],_(t)&&delete this.radios[l(t)]}},e.prototype.shutdown=function(){t._globalInputWatcher=null},e.prototype._usingFallback=function(){return this._fallback},e.prototype._trackingElem=function(e){return!!this._elems[e]},e}();t.InputWatcher=a;var u=!1;var c,d={};function h(){try{if(t._globalInputWatcher)for(var e in d){var n=d[e],r=n[0],i=n[1];t._globalInputWatcher.onChange(r,i)}}finally{c=null,d={}}}function l(e){if(!e)return"";for(var t=e;t&&"form"!=o.tagName(t);)t=t.parentElement;return(t&&"form"==o.tagName(t)?s.fsid(t):0)+":"+e.name}function f(e,n){var i=function e(t,n){if(void 0===n&&(n=2),n<=0)return t;var r=o.tagName(t);return"option"!=r&&"optgroup"!=r||!t.parentElement?t:e(t.parentElement,n-1)}(e),a=s.fsid(i);a&&t._globalInputWatcher&&t._globalInputWatcher.diffValue(i,""+n)&&(d[a]=[i,""+n],c||(c=new r.RealTimeout(h)).start())}function p(e){switch(e.type){case"checkbox":case"radio":return""+e.checked;default:var t=e.value;return t||(t=""),""+t;}}function _(e){return e&&"radio"==e.type}t.valueOfInputishElem=p},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0||this._toRefresh.length>0){var n={},r={};for(var i in this.processRecords(e,t,r,n),r){var o=i.split("\t");t.push({Kind:h.RawEventKind.MUT_ATTR,When:e,Args:[parseInt(o[0]),o[1],r[i]]})}for(var i in n)t.push({Kind:h.RawEventKind.MUT_TEXT,When:e,Args:[parseInt(i),n[i]]})}var s=this._newShadowContainers;this._newShadowContainers=[];for(var a=0;a0)for(var f=0;f0&&(s[h]=d.target);break;case"characterData":_.isExcluded(d.target)||d.oldValue!=d.target.textContent&&(r[h]=p.scrubTextNode(d.target));break;case"attributes":var v=d.target,y=this._watcher.isWatched(v);if(y&&y!=c.WatchKind.Watch&&!_.isExcluded(v)){a(v);break}var m=S(d.attributeNamespace)+(d.attributeName||""),w=p.scrubAttrName(m);if(v.hasAttribute(m)){var b=d.target.getAttribute(m);d.oldValue!=b&&(b=p.scrubAttrValue(this._ctx.options.orgId,d.target,w,b||""),this._attrVisitor(d.target,w,b||""),null!==b&&(n[h+"\t"+w]=b))}else n[h+"\t"+w]=null;}}catch(e){}for(var E=0,T=this._toRefresh;E0&&t.push({When:e,Kind:h.RawEventKind.MUT_SHADOW,Args:[i,this._compress?this._lz.encode(o):o]})},e.prototype.genInsert=function(e,t,n,r,i){var o=_.fsid(n)||-1,s=_.fsid(i)||-1,a=this.genDocStream(e,n,r,i);a.length>0&&t.push({When:e,Kind:h.RawEventKind.MUT_INSERT,Args:[o,s,this._compress?this._lz.encode(a):a]})},e.prototype.genDocStream=function(e,t,n,r){var i=this;if(t&&_.isExcluded(t))return[];for(var o=[],s=this._encoder.tokenizeNode(t,r,n,function(t){if(t.nodeType==v.Node_ELEMENT_NODE){var n=t;n.shadowRoot&&m.isNativeNode(n.shadowRoot)&&i.observe(n.shadowRoot)}i._nodeVisitor(e,t,o)},function(e,t,n){i._attrVisitor(e,t,n)}),a=0,u=o;a0){var i=t[t.length-1];if(i.Kind==h.RawEventKind.MUT_REMOVE)return void i.Args.push(r)}t.push({When:e,Kind:h.RawEventKind.MUT_REMOVE,Args:[r]})},e.prototype.setUpIEWorkarounds=function(){var t=this;if(d.uaIsIE11){var n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),i=n&&n.set;if(!n||!i)throw new Error("Missing textContent setter -- not safe to record mutations.");Object.defineProperty(Element.prototype,"textContent",r(r({},n),{set:function(e){try{for(var t=void 0;t=this.firstChild;)this.removeChild(t);if(null===e||""==e)return;var n=(this.ownerDocument||document).createTextNode(e);this.appendChild(n)}catch(t){i&&i.call(this,e)}}}))}this._setPropertyThrottle=new u.Throttle(e.ThrottleMax,e.ThrottleInterval,function(){return new u.RealTimeout(function(){t._setPropertyWasThrottled=!0,t.tearDownIEWorkarounds()}).start()});var o=this._setPropertyThrottle.guard(function(e){e.cssText=e.cssText});this._setPropertyThrottle.open(),this._setPropertyHook=s.activateHook(CSSStyleDeclaration.prototype,"setProperty"),this._setPropertyHook&&this._setPropertyHook.afterSync(function(e){o(e.that)}),this._removePropertyHook=s.activateHook(CSSStyleDeclaration.prototype,"removeProperty"),this._removePropertyHook&&this._removePropertyHook.afterSync(function(e){o(e.that)})},e.prototype.tearDownIEWorkarounds=function(){this._setPropertyThrottle&&this._setPropertyThrottle.close(),this._setPropertyHook&&this._setPropertyHook.disable(),this._removePropertyHook&&this._removePropertyHook.disable()},e.prototype.updateConsent=function(){for(var e=this._watcher.allConsentSensitiveElements(this._root),t=0;t0)for(var s=0;s0},t.assertExhaustive=function(e,t){throw void 0===t&&(t="Reached unexpected case in exhaustive switch"),new Error(t)},t.pick=function(e){for(var t=[],n=1;n1?s.push([o.idx,a]):s.push(o.idx):s.push(i)}for(n=1;n>>0)+u++ +"__"}).prototype={set:function(e,t){var n=e[this.name];n&&n[0]===e?n[1]=t:a(e,this.name,{value:[e,t],writable:!0})},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0}},s)),d=window.setImmediate||window.msSetImmediate;if(!d){var h=[],l=String(Math.random());window.addEventListener("message",function(e){if(e.data===l){var t=h;h=[],t.forEach(function(e){e()})}}),d=function(e){for(var t=[],n=1;n0){var i=T(n[r-1],e);if(i)return void(n[r-1]=i)}else t=this.observer,p.push(t),f||(f=!0,d(_));n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this.handleEventBound,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this.handleEventBound,!0),t.childList&&e.addEventListener("DOMNodeInserted",this.handleEventBound,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this.handleEventBound,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this.handleEventBound,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this.handleEventBound,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this.handleEventBound,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this.handleEventBound,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=c.get(e);t||c.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=c.get(e),n=0;n300&&(e=e.slice(0,300),this._queue.enqueue({Kind:r.RawEventKind.RESOURCE_TIMING_BUFFER_FULL,Args:[]})),this._observedBatches.push(e),this.tick(!0)},e.prototype.observe=function(){var e=this;if(!this._observer&&this._getEntriesSupported&&window.PerformanceObserver){this._observedBatches.push(performance.getEntries()),this._observer=new window.PerformanceObserver(function(t){var n=t.getEntries();e._observedBatches.push(n)});var t=["navigation","resource","measure","mark"];window.PerformancePaintTiming&&t.push("paint"),this._observer.observe({entryTypes:t})}},e.prototype.checkMemory=function(){if(this._memorySupported&&!this._ctx.recording.inFrame){var e=performance.memory;if(e){var t=e.usedJSHeapSize-this._lastUsedJSHeapSize;(0==this._lastUsedJSHeapSize||Math.abs(t/this._lastUsedJSHeapSize)>.2)&&(this.addPerfEvent(r.PerfEntryType.Memory,e,c),this._lastUsedJSHeapSize=e.usedJSHeapSize)}}},e.prototype.recordEntry=function(e){switch(e.entryType){case"navigation":this.recordNavigation(e);break;case"resource":this.recordResource(e);break;case"paint":this.recordPaint(e);break;case"measure":this.recordMeasure(e);break;case"mark":this.recordMark(e);}},e.prototype.checkForNewEntries=function(){if(this._perfSupported&&this._getEntriesSupported){var e=this._observedBatches;this._observedBatches=[];for(var t=0,n=e;t-1;n&&a?t.clone().text().then(o.FsBugSnag.wrap(function(i){var o=s._rspBodyText(i,n),a=o[0],u=o[1];r.onComplete(e,t,a,u)}))["catch"](o.FsBugSnag.wrap(function(n){r.onComplete(e,t,-1,void 0)})):r.onComplete(e,t,-1,void 0)}))["catch"](o.FsBugSnag.wrap(function(t){r.onComplete(e,t,-1,void 0)}))},e.prototype.onComplete=function(e,t,n,r){var i=this,o=-1,s="";if("headers"in t){o=t.status;s=this.serializeFetchHeaders(t.headers,function(e){return i._requestTracker.isHeaderInWhitelist(e[0])})}return this._requestTracker.onComplete(e,s,o,n,r)},e.prototype.serializeFetchHeaders=function(e,t){var n="";return e.forEach(function(e,r){r=r.toLowerCase();var i=t([r,e]);n+=r+(i?": "+e:"")+s.CRLF}),n},e}();t.AjaxWatcherFetch=a},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1),i=n(2),o=n(3),s=n(32),a=n(0),u=n(24),c=n(12),d=function(){function e(e){this._requestTracker=e}return e.prototype.disable=function(){this._xhrOpenHook&&(this._xhrOpenHook.disable(),this._xhrOpenHook=null),this._xhrSetHeaderHook&&(this._xhrSetHeaderHook.disable(),this._xhrSetHeaderHook=null)},e.prototype.enable=function(e){var t,n,o=this,s=(null===(n=null===(t=c.getBrowserApi(e))||void 0===t?void 0:t._w)||void 0===n?void 0:n.XMLHttpRequest)||e.XMLHttpRequest;if(s){var a=s.prototype;this._xhrOpenHook=r.activateHook(a,"open"),this._xhrOpenHook&&this._xhrOpenHook.before(function(e){var t=e.args[0],n=e.args[1];o._requestTracker.addPendingReq(e.that,t,n),e.that.addEventListener("load",i.FsBugSnag.wrap(function(t){o.onComplete(e.that)})),e.that.addEventListener("error",i.FsBugSnag.wrap(function(t){o.onComplete(e.that)}))}),this._xhrSendHook=r.activateHook(a,"send"),this._xhrSendHook&&this._xhrSendHook.before(function(e){var t=e.args[0];o._requestTracker.addRequestBody(e.that,t)}),this._xhrSetHeaderHook=r.activateHook(a,"setRequestHeader"),this._xhrSetHeaderHook&&this._xhrSetHeaderHook.before(function(e){var t=e.args[0],n=e.args[1];o._requestTracker.addHeader(e.that,t,n)})}},e.prototype.onComplete=function(e){var t=this,n=this.responseBody(e),r=n[0],i=n[1],o=e.getAllResponseHeaders(),s=u.serializeHeaders(u.parseHeaders(o),function(e){return t._requestTracker.isHeaderInWhitelist(e[0])});return this._requestTracker.onComplete(e,s,e.status,r,i)},e.prototype.responseBody=function(e){var t=this._requestTracker.pendingReq(e);if(!t)return[-1,void 0];var n=this._requestTracker.getRspWhitelist(t.url);if(e.responseType){var r=e.response;switch(r||o.logIfDebug("Maybe response type was different that expected."),e.responseType){case"text":return u._rspBodyText(e.responseText,n);case"json":return function(e,t){if(!e)return[-1,void 0];return[u.bodyLength(e),s.whitelistedJson(e,a.Constants.MaxPayloadLength,t)]}(r,n);case"arraybuffer":return function(e,t){return[e?e.byteLength:-1,t?"[ArrayBuffer]":void 0]}(r,n);case"blob":return function(e,t){return[e?e.size:-1,t?"[Blob]":void 0]}(r,n);case"document":return function(e,t){return[-1,t?"[Document]":void 0]}(0,n);}}return u._rspBodyText(e.responseText,n)},e}();t.AjaxWatcherXHR=d},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(1),o=n(3),s=n(5),a=n(0),u=n(23),c=n(61),d=n(8),h=n(2),l=n(62),f=n(6),p=function(){function e(t,n){var r=this;this.ctx=t,this.queue=n,this.hooks=[],this.removeShims=[],this.nextSheetId=1;var i=e;this.throttle=new s.Throttle(i.ThrottleMax,i.ThrottleInterval,function(){return setTimeout(function(){r.queue.enqueue({Kind:a.RawEventKind.FAIL_THROTTLED,Args:[a.ThrottledTask.StyleSheetHooks]}),r.stop()})}),this.addInsert=this.throttle.guard(this.addInsert),this.addDelete=this.throttle.guard(this.addDelete)}return e.prototype.start=function(){var e=this;this.throttle.open();var t=this.ctx.window;if(t.CSSStyleSheet&&t.StyleSheet){var n,r=t.CSSStyleSheet.prototype;(n=i.activateHook(r,"insertRule"))&&(n.afterSync(function(t){e.addInsert(t.that,t.args[0],t.args[1])}),this.hooks.push(n)),(n=i.activateHook(r,"deleteRule"))&&(n.afterSync(function(t){e.addDelete(t.that,t.args[0])}),this.hooks.push(n)),this.removeShims.push(i.shimProp(t.StyleSheet,"disabled",function(t,n){return e.onDisableSheet(t,n)}),i.shimProp(t.Document,"adoptedStyleSheets",function(t,n){return e.onSetAdoptedStyleSheets(t)}),i.shimProp(t.ShadowRoot,"adoptedStyleSheets",function(t,n){return e.onSetAdoptedStyleSheets(t)}))}},e.prototype.onSetAdoptedStyleSheets=function(e){if(f.fsid(e)){var t=e.adoptedStyleSheets;if(t){for(var n=[],r=0,i=t;re.MaxRuleBytes&&(o.logIfDebug("CSSRule too large, inserting dummy instead: "+n.length),n="dummy {}"),this.withEventQueueForSheet(t,function(e){return e.enqueue({Kind:a.RawEventKind.CSSRULE_INSERT,Args:"number"==typeof r?[i,[n],r]:[i,[n]]})}))},e.prototype.addDelete=function(e,t){var n=y(e,a.SheetOwner.Node);n&&this.withEventQueueForSheet(e,function(e){return e.enqueue({Kind:a.RawEventKind.CSSRULE_DELETE,Args:[n,t]})})},e.prototype.onDisableSheet=function(e,t){var n=y(e,a.SheetOwner.Node);n&&this.withEventQueueForSheet(e,function(e){return e.enqueue({Kind:a.RawEventKind.DISABLE_STYLESHEET,Args:[n,!!t]})})},e.prototype.withEventQueueForSheet=function(e,t){e.ownerNode?l.withEventQueueFor(this.ctx,e.ownerNode,t):t(this.queue)},e.prototype.stop=function(){this.throttle.close();for(var e=0,t=this.hooks;e5e5)){var n=c.sheetRules(c.elemSheet(e));if(n){if(n.length>0&&v.test(t))return 0;var r,i=u.theDummyDoc();d.uaIsIE?(r=i.createElement("style")).textContent=e.textContent:r=i.importNode(e,!0),i.head.appendChild(r);var o=c.sheetRules(c.elemSheet(r));if(i.head.removeChild(r),o)return n.length>o.length?o.length:void 0}}}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(23);t.elemSheet=function(e){return e?e.sheet:void 0},t.sheetRules=function(e){try{return e?e.cssRules||e.rules:void 0}catch(e){return}},t.getCssPropertyValue=function(e,t){var n=function(e,t){var n=e;if("function"==typeof n.getPropertyCSSValue){var o=n.getPropertyCSSValue(t);if(null!=o){var s;switch(o.cssValueType){case 1:s=o;break;case 2:if(1!==o.length)return;var a=o.item(0);if(null==a)return;if(1!==a.cssValueType)return;s=a;break;default:return;}if(19===s.primitiveType){var u=i.theDummyDoc();r||(r=u.createElement("div"));var c=s.cssText;try{r.style.cssText=t+": \""+c+"\";";var d=r.style.getPropertyCSSValue(t);if(null==d)return;if(c!==d.cssText)return}catch(e){return}finally{r.style.cssText=""}return"\""+c+"\""}}}}(e,t);return void 0!==n?n:e.getPropertyValue(t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(12),i=n(2),o="EventQueue not defined for 'withEventQueueFor', likely caused by holding ref to callback";t.withEventQueueFor=function(e,t,n){var a=s(t)||e.window,u=r.getBrowserApi(a);u&&"function"==typeof u._withEventQueue&&u._withEventQueue(e.recording.pageSignature(),function(e){n({enqueue:function(t){i.assert(null!=e,o)&&e.enqueue(t)},enqueueFirst:function(t){i.assert(null!=e,o)&&e.enqueueFirst(t)}}),e=null})};var s=function(e){var t=e.ownerDocument;return t&&t.defaultView}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=n(2),o=n(8),s=n(6),a=function(){function e(e,t,n){this._ctx=e,this._q=t,this._listeners=n.createChild()}return e.prototype.start=function(){var e=this,t=this._ctx.window.document;this._listeners.addCustom(t,this.getFullscreenChangeEvent(),!0,function(t){e.onFullscreenChange(t)}),this._listeners.addCustom(t,this.getFullscreenErrorEvent(),!0,function(t){e.onFullscreenError(t)})},e.prototype.stop=function(){this._listeners&&this._listeners.clear()},e.prototype.onFullscreenChange=function(e){var t=this.getFullscreenElement();if(t){var n=s.fsid(t);i.assert(null==this._previousFullscreenFSID,"Error: Received fullscreen signal but we think we are already in fullscreen?"),this._q.enqueue({Kind:r.RawEventKind.FULLSCREEN,Args:[n,!0]}),this._previousFullscreenFSID=n}else i.assert(null!=this._previousFullscreenFSID,"Error: Received fullscreen exit signal but have no previous fullscreen event?"),this._q.enqueue({Kind:r.RawEventKind.FULLSCREEN,Args:[this._previousFullscreenFSID,!1]}),this._previousFullscreenFSID=void 0},e.prototype.onFullscreenError=function(e){this._q.enqueue({Kind:r.RawEventKind.FULLSCREEN_ERROR,Args:[]})},e.prototype.getFullscreenElement=function(){var e=this._ctx.window.document;return e[o.uaPrefixedPropety(e,"fullscreenElement")]},e.prototype.getFullscreenChangeEvent=function(){var e=this._ctx.window.document;return o.uaPrefixedPropety(e,"onfullscreenchange").slice(2)},e.prototype.getFullscreenErrorEvent=function(){var e=this._ctx.window.document;return o.uaPrefixedPropety(e,"onfullscreenerror").slice(2)},e}();t["default"]=a},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=function(){function e(e,t){this._queue=t,this._registry=null,this._checkedNodeTags={};var n=e.window;this._registry=n.customElements&&n.customElements.get&&n.customElements.whenDefined&&n.customElements}return e.prototype.onCustomNodeVisited=function(e){var t=this;if(this._registry){var n=e.nodeName.toLowerCase();if(!this._checkedNodeTags.hasOwnProperty(n)){var r=!!this._registry.get(n);this._checkedNodeTags[n]=r,this._registry.whenDefined(n).then(function(){return t._enqueue(n)})}}},e.prototype._enqueue=function(e){this._queue.enqueue({Kind:r.RawEventKind.CUSTOM_ELEMENT_DEFINED,Args:[e]})},e}();t.CustomElementWatcher=i},function(e,t,n){"use strict";t.__esModule=!0;var r=/^\s*at .*(\S+\:\d+|native|())/m,i=/^(eval@)?(\[native code\])?$/;function o(e){if(!e||"string"!=typeof e.stack)return[];var t=e;return t.stack.match(r)?t.stack.split("\n").filter(function(e){return!!e.match(r)}).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/\(native code\)/,"").split(/\s+/).slice(1),n=a(t.pop());return s(t.join(" "),["eval",""].indexOf(n[0])>-1?"":n[0],n[1],n[2])}):function(e){return e.split("\n").filter(function(e){return!e.match(i)}).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[e,"",-1,-1];var t=e.split("@"),n=a(t.pop());return s(t.join("@"),n[0],n[1],n[2])})}(t.stack)}function s(e,t,n,r){return[e||"",t||"",parseInt(n||"-1"),parseInt(r||"-1")]}function a(e){if(!e||-1===e.indexOf(":"))return["","",""];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return t?[t[1]||"",t[2]||"",t[3]||""]:["","",""]}t.genStackTrace=function(){try{throw new Error}catch(e){return o(e).slice(1)}},t.stackTraceFromError=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(67),i=n(0),o=n(5),s=function(){function e(e,t,n,s){void 0===n&&(n=function(){return[]}),void 0===s&&(s=o.RealTicker),this._ctx=e,this._transport=t,this._gatherExternalEvents=n,this._tickerFactory=s,this._recordingDisabled=!1,this._lastWhen=-1,this._gotUnload=!1,this._eventQueue=[],this._sampleCurvesTicker=new this._tickerFactory(i.Constants.CurveSamplingInterval),this._processMutationsTicker=new this._tickerFactory(i.Constants.MutationProcessingInterval),this._processor=new r.EventProcessor(e)}return e.prototype.startPipeline=function(e,t,n,r){var i=this;void 0===n&&(n=0),void 0===r&&(r=[]),this._recordingDisabled||this._pipelineStarted||(this._pipelineStarted=!0,this._frameId=n,this._parentIds=r,this.processEvents(),this._processMutationsTicker.start(function(){i.processEvents()}),this._sampleCurvesTicker.start(function(){i.processEvents(!0)}),this._transport.startPipeline(e,t))},e.prototype.enqueue=function(e){this.enqueueAt(this._ctx.time.now(),e),o.Scheduler.checkForBrokenSchedulers()},e.prototype.enqueueAt=function(e,t){if(!this._recordingDisabled){e<=this._lastWhen&&(e=this._lastWhen+1),this._lastWhen=e;var n=t;n.When=e,this._eventQueue.push(n)}},e.prototype.enqueueFirst=function(e){if(this._eventQueue.length>0){var t=e;t.When=this._eventQueue[0].When,this._eventQueue.unshift(t)}else this.enqueue(e)},e.prototype.addUnload=function(e){this._gotUnload||(this._gotUnload=!0,this.enqueue({Kind:i.RawEventKind.UNLOAD,Args:[e]}),this.singSwanSong())},e.prototype.shutdown=function(e){this._flush(),this.addUnload(e),this._flush(),this._recordingDisabled=!0,this.stopPipeline()},e.prototype._flush=function(){this.processEvents(),this._transport.flush()},e.prototype.singSwanSong=function(){this._recordingDisabled||(this.processEvents(),this._transport.singSwanSong())},e.prototype.rebaseIframe=function(e){for(var t=0,n=this._eventQueue.length;t0,r=0;r0){var f=l[l.length-1].Args[2];if(f)l[0].Args[9]=f}}for(var p in u){u[_=parseInt(p)].finish(r.RawEventKind.SCROLL_LAYOUT_CURVE,[n,_])}for(var p in c){c[_=parseInt(p)].finish(r.RawEventKind.SCROLL_VISUAL_OFFSET_CURVE,[n,_])}for(var p in a){var _;a[_=parseInt(p)].finish(r.RawEventKind.TOUCHMOVE_CURVE,[n,_])}return t&&t.finish(r.RawEventKind.RESIZE_VISUAL_CURVE,[n]),o},e}();t.EventProcessor=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]_){var i=p.scrubUrl(e,t,{source:"log",type:"bugsnag"});return d.FsBugSnag.sendToBugsnag("Size of blob resource exceeds limit","warning",{url:i,MaxResourceSizeBytes:_}),void r(null)}(function(e){var t=u.createFSPromise(),n=t.resolve,r=t.promise,i=new FileReader;return i.readAsArrayBuffer(e),i.onload=function(){n(i.result)},i.onerror=function(e){d.FsBugSnag.sendToBugsnag(e,"error"),n(null)},r})(n).then(function(e){r(e?{buffer:e,blob:n,contentType:n.type}:null)})},o.send(),i)}function y(e,t){var n=s.parseUrl(s.baseUri(e),t);switch(n.protocol){case"blob:":return!0;case"http:":case"https:":switch(n.hostname){case"localhost":case"127.0.0.1":case"[::1]":return e.location.protocol===n.protocol&&e.location.host===n.host;default:return!1;}default:return!1;}}t.ResourceUploader=g,t.shouldUpload=y},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]u?[4,t(c)]:[3,3]:[3,5];case 2:i.sent(),r=e.now(),i.label=3;case 3:h=new Uint8Array(n,s,Math.min(o-s,a)),d.write(h),i.label=4;case 4:return s+=a,[3,1];case 5:return[2,{hash:d.sum(),hasher:d}];}})})}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0;var o=n(18),s=n(5),a=n(10),u=n(22),c=n(1),d=n(3),h=n(0),l=n(13),f=n(71),p=n(7),_=function(e){function t(t,n,r,i,u){void 0===r&&(r=new f.NetworkEventTransport(t,n)),void 0===i&&(i=s.RealTicker),void 0===u&&(u=o.defaultInjector);var c=e.call(this,t,i,r,u)||this;return c._protocol=n,c._domLoaded=!1,c._recordingDisabled=!1,c._integrationScriptFetched=!1,r.onShutdown(function(){return c.shutdown(h.UnloadReason.SettingsBlocked)}),c._doc=c._wnd.document,c._frameId=0,c._identity=t.recording.identity,c._getCurrentSessionEnabled=o.GetCurrentSessionEnabledState.NoInfoYet,a.set_fs_shutdown(c._wnd,function(e){if(c._eventWatcher.shutdown(h.UnloadReason.Api),e){var t=c._doc.getElementById(e);t&&t.setAttribute("_fs_embed_token",c._embedToken)}}),c}return i(t,e),t.prototype.onDomLoad=function(){var t=this;e.prototype.onDomLoad.call(this),this._domLoaded=!0,this.injectIntegrationScript(function(){t.fireFsReady(t._recordingDisabled)})},t.prototype.start=function(t,n,r){var i=this;e.prototype.start.call(this,t,n);var o=a._fs_replay_flags(this._wnd),s=u.getDocumentClientArea(this._doc),d=s[0],f=s[1],_=c.tryGetScreenDims(this._wnd),g=_[0],v=_[1],y="";t||(y=this._identity.userId());var m=p.scrubUrl(l.baseUri(this._wnd),this._orgId,{source:"page",type:"base"}),w=p.scrubUrl(this._doc.referrer,this._orgId,{source:"page",type:"referrer"}),S=p.scrubUrl(this._wnd.location.href,this._orgId,{source:"page",type:"url"}),b={OrgId:this._orgId,UserId:y,Url:S,Base:m,Width:d,Height:f,ScreenWidth:g,ScreenHeight:v,Referrer:w,Doctype:c.doctypeString(this._doc),CompiledTimestamp:1578432808};r&&(b.AppId=r),o&&(b.ReplayFlags=o),this._protocol.page(b,function(e){i.handleResponse(e),i.handleIdentity(e.CookieDomain,e.UserIntId,e.SessionIntId,e.PageIntId,e.EmbedToken),i.handleIntegrationScript(e.IntegrationScript);var t=!!e.Consented;i._queue.enqueueFirst({Kind:h.RawEventKind.SYS_REPORTCONSENT,Args:[t]}),i._queue.enqueueFirst({Kind:h.RawEventKind.SET_FRAME_BASE,Args:[p.scrubUrl(l.baseUri(i._wnd),i._orgId,{source:"event",type:h.RawEventKind.SET_FRAME_BASE}),c.doctypeString(i._doc)]}),i._queue.startPipeline(e.PageIntId,e.PageStart),i.fullyStarted()},function(e){i.disableBecauseRecPageSaidSo()})},t.prototype.handleIntegrationScript=function(e){var t=this;this._integrationScriptFetched=!0,this._integrationScript=e,this.injectIntegrationScript(function(){t.fireFsReady(t._recordingDisabled)})},t.prototype.handleIdentity=function(e,t,n,r,i){var o=this._identity;o.setIds(this._wnd,e,t,n),this._embedToken=i,d.logIfDebug("/User,"+o.userId()+"/Session,"+o.sessionId()+"/Page,"+r)},t.prototype.injectIntegrationScript=function(e){if(this._domLoaded&&this._integrationScriptFetched)if(this._integrationScript){var t=this._doc.createElement("script");a._fs_csp(this._wnd)?(t.addEventListener("load",e),t.addEventListener("error",e),t.async=!0,t.src=this._scheme+"//"+this._recHost+"/rec/integrations?OrgId="+this._orgId,this._doc.head.appendChild(t)):(t.text=this._integrationScript,this._doc.head.appendChild(t),e())}else e()},t.prototype.disableBecauseRecPageSaidSo=function(){this.shutdown(h.UnloadReason.SettingsBlocked),d.logIfDebug("Disabling FS."),this._recordingDisabled=!0,this.fireFsReady(this._recordingDisabled)},t}(o.AbstractRecorder);t.TopRecorder=_},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=n(72),o=n(5),s=n(35),a=n(20),u=n(2),c=n(3),d=function(){function e(e,t,n,s){var u=this;void 0===t&&(t=new a.HttpProtocol(e)),void 0===n&&(n=o.RealTicker),void 0===s&&(s=o.RealTimeout),this._ctx=e,this._protocol=t,this._tickerFactory=n,this._backoffRetries=0,this._backoffTime=0,this._bundleSeq=1,this._lastPostTime=0,this._serverBundleTime=0,this._largePageSize=16e6,this._outgoingEventQueue=[],this._bundleQueue=[],this._hibernating=!1,this._heartbeatInterval=0,this._lastUserActivity=this._ctx.time.wallTime(),this._finished=!1,this._scheme=e.options.scheme,this._identity=e.recording.identity,this._lastBundleTime=e.time.wallTime(),this._swanSong=new i.SwanSong(e,this._protocol,this._identity,s),this._heartbeatTimeout=new s(function(){var e=Math.floor(u._ctx.time.wallTime()-u._lastUserActivity);u._outgoingEventQueue.push({When:u._ctx.time.now(),Kind:r.RawEventKind.HEARTBEAT,Args:[e]}),u._heartbeatInterval*=2,u._heartbeatInterval>r.Constants.HeartbeatMax&&(u._heartbeatInterval=r.Constants.HeartbeatMax),u._heartbeatTimeout.start(u._heartbeatInterval)}),this._hibernationTimeout=new s(function(){Math.floor(u._ctx.time.wallTime()-u._lastUserActivity)<=2*r.Constants.PageInactivityTimeout&&(u._outgoingEventQueue.push({When:u._ctx.time.now(),Kind:r.RawEventKind.UNLOAD,Args:[r.UnloadReason.Hibernation]}),u.singSwanSong()),u.stopPipeline(),u._hibernating=!0},r.Constants.PageInactivityTimeout)}return e.prototype.onShutdown=function(e){this._onShutdown=e},e.prototype.scheme=function(){return this._scheme},e.prototype.enqueueEvents=function(e,t){if(this._hibernating){if(this._finished)return;for(var n=0,i=t;n0&&this.enqueueNextBundle(!0),this._bundleQueue.length>0||this._pendingBundle)){var e=this._bundleQueue.concat();this._pendingBundle&&e.unshift(this._pendingBundle),this._swanSong.sing(this._pageId,e,this._lastBundleTime,this._serverPageStart,this._serverBundleTime)}},e.prototype.enqueueAndSendBundle=function(){this._pendingBundle?this._pendingBundleFailed&&this._sendPendingBundle():0!=this._outgoingEventQueue.length?this.enqueueNextBundle():this.maybeSendNextBundle()},e.prototype.enqueueNextBundle=function(e){void 0===e&&(e=!1);var t={When:this._outgoingEventQueue[0].When,Seq:this._bundleSeq++,Evts:this._outgoingEventQueue};this._outgoingEventQueue=[],this._bundleQueue.push(t),e?this._protocol.bundleBeacon({bundle:t,deltaT:null,orgId:this._identity.orgId(),pageId:this._pageId,serverBundleTime:this._serverBundleTime,serverPageStart:this._serverPageStart,sessionId:this._identity.sessionId(),userId:this._identity.userId(),win:function(){},lose:function(){}}):this.maybeSendNextBundle()},e.prototype.maybeSendNextBundle=function(){this._pageId&&this._serverPageStart&&!this._pendingBundle&&0!=this._bundleQueue.length&&(this._pendingBundle=this._bundleQueue.shift(),this._sendPendingBundle())},e.prototype._sendPendingBundle=function(){var e=this,t=this._ctx.time.wallTime();if(!(te._ctx.recording.bundleUploadInterval()&&e.maybeSendNextBundle()},function(t){if(c.logIfDebug("Failed to send events."),s.isErrorFatal(t))return 206==t&&u.FsBugSnag.sendToBugsnag("Failed to send bundle, probably because of its large size","error"),void(e._onShutdown&&e._onShutdown());e._pendingBundleFailed=!0,e._backoffTime=e._lastPostTime+e._protocol.exponentialBackoffMs(e._backoffRetries++,!1)}))}},e.prototype.sendBundle=function(e,t,n){var i=Math.floor(this._ctx.time.wallTime()-this._lastUserActivity),o=this._protocol.bundle({bundle:e,deltaT:null,lastUserActivity:i,orgId:this._identity.orgId(),pageId:this._pageId,serverBundleTime:this._serverBundleTime,serverPageStart:this._serverPageStart,sessionId:this._identity.sessionId(),userId:this._identity.userId(),win:t,lose:n});o>this._largePageSize&&this._bundleSeq>16&&(c.logIfDebug("splitting large page: "+o),this._ctx.recording.splitPage(r.UnloadReason.Size))},e}();t.NetworkEventTransport=d},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=n(5),o=n(1),s=n(35),a=n(3),u=function(){function e(e,t,n,r){void 0===r&&(r=i.RealTimeout),this._ctx=e,this._protocol=t,this._identity=n,this._timeoutFactory=r,this._recover()}return e.prototype.sing=function(e,t,n,i,s){a.logIfDebug("Saving "+t.length+" bundles in swan-song.");var u={OrgId:this._identity.orgId(),UserId:this._identity.userId(),SessionId:this._identity.sessionId(),PageId:e,Bundles:t,PageStartTime:this._ctx.time.startTime(),LastBundleTime:n,ServerPageStart:i,ServerBundleTime:s},c=o.stringify(u);if(!(c.length>2e6))try{localStorage[r.SwanSongLocalStorageKey]=c}catch(e){}},e.prototype._recover=function(){try{if(r.SwanSongLocalStorageKey in localStorage){var e=localStorage[r.SwanSongLocalStorageKey]||localStorage.singSwanSong;delete localStorage[r.SwanSongLocalStorageKey],delete localStorage.singSwanSong;var t=o.parseJson(e);if(!(t.Bundles&&t.UserId&&t.SessionId&&t.PageId))return void a.logIfDebug("Malformed swan song found. Ignoring it.");t.OrgId||(t.OrgId=this._identity.orgId()),t.Bundles.length>0&&(a.logIfDebug("Sending "+t.Bundles.length+" bundles as prior page swan song"),this.sendSwanSongBundles(t.OrgId,t.UserId,t.SessionId,t.PageId,t.Bundles,t.ServerPageStart,t.ServerBundleTime,t.LastBundleTime))}}catch(e){a.logIfDebug("Error recovering swan-song: "+e)}},e.prototype.sendSwanSongBundles=function(e,t,n,r,i,u,c,d,h){var l=this;void 0===h&&(h=0);var f=null;if(o.isArray(i)&&0!==i.length&&void 0!==i[0]){1==i.length&&(f=this._ctx.time.wallTime()-(d||0));this._protocol.bundle({bundle:i[0],deltaT:f,orgId:e,pageId:r,serverBundleTime:c,serverPageStart:u,sessionId:n,userId:t,win:function(o){a.logIfDebug("Sent "+i[0].Evts.length+" trailing events from last session as Seq "+i[0].Seq),i.shift(),i.length>0?l.sendSwanSongBundles(e,t,n,r,i,u,o.BundleTime,d):a.logIfDebug("Done with prior page swan song")},lose:function(o){s.isErrorFatal(o)?a.logIfDebug("Fatal error while sending events, giving up"):(a.logIfDebug("Failed to send events from last session, will retry while on this page"),l._lastSwanSongRetryTimeout=new l._timeoutFactory(l.sendSwanSongBundles,l._protocol.exponentialBackoffMs(h,!0),l,e,t,n,r,i,u,c,d,h+1).start())}})}},e}();t.SwanSong=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0;var o=n(18),s=n(5),a=n(1),u=n(3),c=n(0),d=n(13),h=n(74),l=n(10),f=n(7),p=function(e){function t(t,n,r,i,a){void 0===n&&(n=new h.PostMessagePoster(t.window)),void 0===r&&(r=new h.PostMessageEventTransport(t.window)),void 0===i&&(i=s.RealTicker),void 0===a&&(a=o.defaultInjector);var u=e.call(this,t,i,r,a)||this;return u._messagePoster=n,u}return i(t,e),t.prototype.start=function(t,n){var r=this;e.prototype.start.call(this,t,n),this.sendRequestForFrameId(),this._listeners.add(this._wnd,"load",!1,function(){r._eventWatcher.recordingIsDetached()&&(u.logIfDebug("Recording wrong document. Restarting recording in iframe."),r._ctx.recording.splitPage(c.UnloadReason.FsShutdownFrame))})},t.prototype.postMessageReceived=function(t,n){if(e.prototype.postMessageReceived.call(this,t,n),t==this._wnd.parent||t==this._wnd)switch(n[0]){case o.FS_GREET_CHILD_FRAME:this.sendRequestForFrameId();break;case o.FS_SET_FRAME_ID_CMD:try{var r=n[1],i=n[2],s=n[3],c=n[4],d=n[5],h=n[6],f=n[7],p=n[8];this.setFrameIdFromOutside(r,i,s,c,d,h,f,p)}catch(e){u.logIfDebug("Failed to parse frameId from message: "+a.stringify(n))}break;case o.FS_SET_CONSENT:var _=n[1];this.setConsent(_);break;case o.FS_INIT_MOBILE_CMD:try{var g=JSON.parse(n[1]),v=g.StartTime;if(n.length>2){var y=n[2];if(y.hasOwnProperty("ProtocolVersion"))y.ProtocolVersion>=20180723&&y.hasOwnProperty("OuterStartTime")&&(v=y.OuterStartTime)}var m=g.Host;this.setFrameIdFromOutside(-1,[],v,"https:",l.defaultScript(m),l.defaultAppHost(m),g.OrgId,g.PageResponse)}catch(e){u.logIfDebug("Failed to initialize mobile web recording from message: "+a.stringify(n))}}},t.prototype.sendRequestForFrameId=function(){this._frameId||(0!=this._frameId?this._wnd.parent?(u.logIfDebug("Asking for a frame ID."),this._messagePoster.postMessage(this._wnd.parent,o.FS_REQUEST_FRAME_ID,[])):u.logIfDebug("Orphaned window."):u.logIfDebug("For some reason the outer window attempted to request a frameId"))},t.prototype.setFrameIdFromOutside=function(e,t,n,r,i,o,s,h){e?this._frameId?this._frameId!=e?(u.logIfDebug("Updating frame id from "+this._frameId+" to "+e),this._ctx.recording.splitPage(c.UnloadReason.FsShutdownFrame)):u.logIfDebug("frame Id is already set to "+this._frameId):(u.logIfDebug("FrameId received within frame "+f.scrubUrl(location.href,s,{source:"log",type:"debug"})+": "+e),this._scheme=r,this._script=i,this._appHost=o,this._orgId=s,this._frameId=e,this._parentIds=t,this.handleResponse(h),this.fireFsReady(),this._queue.enqueueFirst({Kind:c.RawEventKind.SET_FRAME_BASE,Args:[f.scrubUrl(d.baseUri(this._wnd),s,{source:"event",type:c.RawEventKind.SET_FRAME_BASE}),a.doctypeString(this._wnd.document)]}),this._queue.rebaseIframe(n),this._ctx.time.setStartTime(n),this._queue.startPipeline(this._pageId,h.PageStart,e,t),this.flushPendingChildFrameInits(),this.fullyStarted()):u.logIfDebug("Outer page gave us a bogus frame Id! Iframe: "+f.scrubUrl(location.href,s,{source:"log",type:"debug"}))},t}(o.AbstractRecorder);t.InnerRecorder=p},function(e,t,n){"use strict";t.__esModule=!0;var r=n(18),i=n(10),o=n(1),s=function(){function e(e,t){void 0===t&&(t=new a(e)),this._wnd=e,this._messagePoster=t}return e.prototype.enqueueEvents=function(e,t){this._messagePoster.postMessage(this._wnd.parent,r.FS_IFRAME_EVENTS,t,e)},e.prototype.startPipeline=function(e,t){},e.prototype.stopPipeline=function(){},e.prototype.flush=function(){},e.prototype.singSwanSong=function(){},e.prototype.onShutdown=function(e){},e}();t.PostMessageEventTransport=s;var a=function(){function e(e){this.wnd=e}return e.prototype.postMessage=function(e,t,n,r){var s=i._fs_transport(this.wnd);if(s)try{s.send(t,o.stringify(n),r)}catch(e){s.send(t,o.stringify(n))}else e.postMessage(u(t,n,r),"*")},e}();function u(e,t,n){var r=[e,t];return n&&r.push(n),o.stringify({__fs:r})}t.PostMessagePoster=a,t.formatPostMessageData=u},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(0),o=n(36),s=n(1),a=n(21),u=n(3),c=n(4),d=n(33),h=n(25);!function(e){e.rec="rec",e.user="user",e.account="account",e.consent="consent",e.customEvent="event",e.log="log"}(r=t.ApiType||(t.ApiType={}));var l={acctId:"str",displayName:"str",website:"str"},f={uid:"str",displayName:"str",email:"str"},p={str:_,bool:g,real:v,"int":y,date:m,strs:w(_),bools:w(g),reals:w(v),ints:w(y),dates:w(m),objs:w(S),obj:S};function _(e){return"string"==typeof e}function g(e){return"boolean"==typeof e}function v(e){return"number"==typeof e}function y(e){return"number"==typeof e&&e-Math.floor(e)==0}function m(e){return!!e&&(e.constructor===Date?!isNaN(e):("number"==typeof e||"string"==typeof e)&&!isNaN(new Date(e)))}function w(e){return function(t){if(!(t instanceof Array))return!1;for(var n=0;n (unsupported)"});for(var f=e,_=[],g=0;g0&&(o.PayloadToSend[h]=_)}}else{var v=a(e),y=s.hasSuffix(r,"_obj")?h:h.substring(0,h.length-"_obj".length);o.PayloadToSend[y]=v}}else o.PayloadToSend[r]=T("",e)}),o}(e,t,n),d=[],h=e==i.VarScope.Event,l=s.stringify(a.PayloadToSend),f=!!r&&"fs"!==r;return h?d.push({When:0,Kind:i.RawEventKind.SYS_CUSTOM,Args:f?[o,l,r]:[o,l]}):d.push({When:0,Kind:i.RawEventKind.SYS_SETVAR,Args:f?[e,l,r]:[e,l]}),d},e}();function T(e,t){return"str"==e&&null!=t&&(t=t.trim()),null==t||"date"!=e&&t.constructor!=Date||(t=function(e){var t,n=e.constructor===Date?e:new Date(e);try{t=n.toISOString()}catch(e){t=null}return t}(t)),t}function I(e,t){if("number"==typeof e&&Math.floor(e)==e&&(u.logIfDebug("Expected appId of type 'string' instead got value: "+e+" of type: "+typeof e),e=""+e),"string"!=typeof e)return u.logIfDebug("blocking FS.identify API call; uid value ("+e+") must be a string"),[void 0,o.HighlightTypeFsId];var n=e.trim();if(a.BAD_APP_IDS.indexOf(n.toLowerCase())>=0)return u.logIfDebug("blocking FS.identify API call; uid value ("+n+") is illegal"),[void 0,o.HighlightTypeFsId];var r=h.hashString32Blocking(n),i=void 0;return t&&t._cookie.appKeyHash&&t._cookie.appKeyHash!==r&&t._cookie.appKeyHash!==n&&(u.logIfDebug("user re-identified; existing uid hash ("+t._cookie.appKeyHash+") does not match provided uid ("+n+")"),i=o.HighlightTypeNewUid),[n,i]}function k(e){return!!p[e]}t.Vars=E,t.transformValidateAppId=I},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=n(1),o=n(20),s=n(4),a=n(3),u=n(2);t.cmdReqPage=1,t.cmdReqBundle=2,t.cmdRspError=3,t.cmdRspPage=4,t.cmdRspBundle=5;var c=function(){function e(e,t){void 0===t&&(t=function(e){return new WebSocket(e)}),this._newSock=t,this._connecting=!1,this._connected=!1,this._queue={},this._seq=1,this._wnd=e.window,this._scheme=e.options.scheme,this._host=e.options.recHost}return e.isSupported=function(){return"WebSocket"in window},e.prototype.page=function(e,n,r){this.request({Cmd:t.cmdReqPage,Page:e},function(e){return n(e.Page)},r)},e.prototype.bundle=function(e){var n=e.deltaT,r=e.serverPageStart,i=e.serverBundleTime;return this.request({Cmd:t.cmdReqBundle,Bundle:{OrgId:e.orgId,UserId:e.userId,SessionId:e.sessionId,PageId:e.pageId,Seq:e.bundle.Seq,DeltaT:null===n?void 0:n,PageStart:null==r?void 0:r,PrevBundleTime:null==i?void 0:i,Bundle:e.bundle}},function(t){return e.win(t.Bundle)},e.lose)},e.prototype.bundleBeacon=function(e){return o.bundleBeacon(this._scheme,this._host,e)},e.prototype.exponentialBackoffMs=function(e,t){var n=Math.min(r.Constants.BackoffMax,5e3*Math.pow(2,e));return t?n+.25*Math.random()*n:n},e.prototype.request=function(e,t,n){e.Seq=this._seq++;var r=i.stringify(e);return this._queue[e.Seq]={payload:r,win:t,lose:n},this.maybeConnect(),r.length},e.prototype.handleMessage=function(e){var n;try{n=i.parseJson(e)}catch(e){return void a.logIfDebug("socket: error parsing frame: "+e.toString())}var r=this._queue[n.Seq];delete this._queue[n.Seq],r?n.Cmd==t.cmdRspError?(a.logIfDebug(n.Fail.Error),r.lose(n.Fail.Status)):r.win(n):a.logIfDebug("socket: mismatched request seq "+n.Seq+"; ignoring")},e.prototype.drainQueue=function(){if(this._connected)for(var e in this._queue){var t=this._queue[e];t.sent||(this._sock.send(t.payload),t.sent=!0)}else a.logIfDebug("socket: attempt to drain queue when disconnected.")},e.prototype.reconnect=function(){var e=this;if(!this._connected){for(var t in this._queue)this._queue[t].sent=!1;var n=0;s.windex.setWindowTimeout(this._wnd,u.FsBugSnag.wrap(function(){return e.maybeConnect()}),this.exponentialBackoffMs(n++,!0))}},e.prototype.maybeConnect=function(){var e=this;if(this._connected)this.drainQueue();else if(!this._connecting){this._connecting=!0;var t=("https:"==this._scheme?"wss:":"ws:")+"//"+this._host+"/rec/sock";this._sock=this._newSock(t),this._sock.onopen=function(t){e._connecting=!1,e._connected=!0,e.drainQueue()},this._sock.onmessage=function(t){e.handleMessage(t.data),e.drainQueue()},this._sock.onclose=function(t){a.logIfDebug("socket: closed; reconnecting"),e._connecting=e._connected=!1,e.reconnect()},this._sock.onerror=function(t){a.logIfDebug("socket: error; reconnecting"),e._connecting=e._connected=!1,e.reconnect()}}},e}();t.SockProtocol=c},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,n(19);var o=n(2),s=n(4),a=function(){function e(){var e=this;this.measurementTasks=null,this.performingMeasurements=!1,this.recursionDepth=0,this.performMeasurements=o.FsBugSnag.wrap(function(){if(e.performingMeasurements)o.FsBugSnag.sendToBugsnag("performMeasurements() already in progress","error");else{e.performingMeasurements=!0;try{if(!e.measurementTasks)return;for(var t=0;t16)o.FsBugSnag.sendToBugsnag("Too much synchronous recursion in requestMeasureTask","error");else{var n=this.performingMeasurements?this.recursionDepth:0,r=o.FsBugSnag.wrap(function(){var r=t.recursionDepth;t.recursionDepth=n+1;try{e()}finally{t.recursionDepth=r}});this.measurementTasks?this.measurementTasks.push(r):(this.measurementTasks=[r],this.schedule())}},e}();t.MeasureScheduler=a;var u=function(e){function t(t,n){var r=e.call(this)||this;return r.wnd=t,r.ResizeObserver=n,r}return i(t,e),t.prototype.schedule=function(){var e=this,t=this.ResizeObserver,n=this.wnd.document,r=n.body||n.documentElement||n.head,i=new t(function(){i.unobserve(r),e.performMeasurements()});i.observe(r)},t}(a),c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.wnd=t,i.requestWindowAnimationFrame=n,i.onRAF=o.FsBugSnag.wrap(function(){i.ch.port2.postMessage(void 0)}),i.ch=new r,i}return i(t,e),t.prototype.schedule=function(){this.ch.port1.onmessage=this.performMeasurements,this.requestWindowAnimationFrame(this.wnd,this.onRAF)},t}(a),d=function(e){function t(t){var n=e.call(this)||this;return n.wnd=t,n}return i(t,e),t.prototype.schedule=function(){s.windex.setWindowTimeout(this.wnd,this.performMeasurements,0)},t}(a)}]); //# sourceMappingURL=fs.js.map