//!Portions of this code are licensed under the following license: //! * @overview es6-promise - a tiny implementation of Promises/A+. //! * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) //! * @license Licensed under MIT license //! * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE //! * @version 4.1.0+f9a5575b !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="",n(n.s=24)}([function(e,t,n){"use strict";var r,i=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){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=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]e.length)&&e.substring(e.length-t.length)==t},t.forIn=function(e,t){for(var n in e)u.windex.objectHasOwnProp(e,n)&&t(e[n],n,e)},t.forInAsync=function(e,t){return i(this,void 0,a.FSPromise,function(){var n,r,i,s;return o(this,function(o){switch(o.label){case 0:for(r in n=[],e)n.push(r);i=0,o.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=s.uaIsIE?function(e){var t=e.nextSibling;return t&&e.parentNode&&t===e.parentNode.firstChild?null:t}:function(e){return e.nextSibling};t.forEachNextSibling=s.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 d(e){return u.windex.objectValues(e||{})}function l(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function f(e,t){return e?(e=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),function(){try{return e.apply(t||this,arguments)}catch(e){c.logIfDebug("Unexpected error: "+e)}}):function(){}}function p(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=s.uaIsIE?function(e){var t=e.previousSibling;return t&&e.parentNode&&t===e.parentNode.lastChild?null:t}:function(e){return e.previousSibling},t._native_values=d,t._js_values=l,t.values=u.windex.objectValues?d:l,t.$entry=f,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=u.windex.jsonStringify(e)}catch(e){t=p(e)}finally{n&&(Array.prototype.toJSON=n),r&&(String.prototype.toJSON=r)}return t},t.jsonErrorString=p,t.doctypeString=function(e){var t=e.doctype;if(!t)return"";var n=""},t.parseJson=function(e){return u.windex.jsonParse(e)},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)},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 _=function(){function e(e,t){this.target=e,this.propertyName=t,this._before=function(){},this._afterSync=function(){},this._afterAsync=function(){},this.on=!1,this.attached=!1,this["native"]=e[t]}return e.prototype.before=function(e){return this._before=f(e),this},e.prototype.afterSync=function(e){return this._afterSync=f(e),this},e.prototype.afterAsync=function(e){var t=this;return this._afterAsync=f(function(e){u.windex.setWindowTimeout(window,function(){t._afterAsync(e)},0)}),this},e.prototype.disable=function(){this.on=!1,this.target[this.propertyName]==this.shim&&(this.target[this.propertyName]=this["native"],this.attached=!1)},e.prototype.enable=function(){if(this.on=!0,this.attached)return!0;this.shim||(this.shim=this.makeShim());try{this.target[this.propertyName]=this.shim}catch(e){return!1}return this.attached=!0,!0},e.prototype.makeShim=function(){var e=this;return function(){var t={that:this,args:arguments};e.on&&e._before(t);var n=e["native"].apply(this,arguments);return e.on&&(e._afterSync(t),e._afterAsync(t)),n}},e}(),g={};t.activateHook=function(e,t){if(!e||"function"!=typeof e[t])return null;var n;g[t]=g[t]||[];for(var r=0;r=5&&(s=decodeURIComponent(a[3]),t.BAD_APP_IDS.indexOf(s)>=0&&(c.logIfDebug("ignoring invalid app key \""+s+"\" from cookie."),s="")))}var u=n.indexOf(":");return-1!=u&&(r=n.slice(u+1),n=n.slice(0,u)),{Host:i,OrgId:o,UserId:n,SessionId:r,AppKey:s}},t.getCookies=function(e){for(var t={},n=e.cookie.split(";"),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 d.sendToBugsnag(r,"error"),e}},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)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(4),a=n(6),u=n(3),c=function(){function e(){this._due=0,this._id=e.nextId++}return e._rearm=function(){e.checkedAlready=!1,e.lastCheck=0},e.checkForBrokenSchedulers=function(){if(u.windex.requestWindowAnimationFrame&&!e.checkedAlready){var t=Date.now();if(!(t-e.lastCheck<100)){e.lastCheck=t,e.checkedAlready=!0;var n=[];return o.forIn(e.registry,function(e){var r=e.maybeForceTick(t);r&&n.push(r)}),a.FSPromise.all(n).then(function(){u.windex.requestWindowAnimationFrame(window,function(){return e.checkedAlready=!1})})}}},e.stopAll=function(){o.forIn(this.registry,function(e){return e.stop()})},e.prototype.setTick=function(e){this._tick=e},e.prototype.doTick=function(){try{this.unregister(),this._tick()}catch(e){s.FsBugSnag.sendToBugsnag(e,"error")}},e.prototype.stop=function(){this.cancel(),delete e.registry[this._id]},e.prototype.register=function(t){this._due=Date.now()+100+1.5*t,e.registry[this._id]=this},e.prototype.unregister=function(){delete e.registry[this._id]},e.prototype.maybeForceTick=function(e){var t=this;if(e>this._due)return a.FSPromise.resolve().then(function(){t.doTick()})["catch"](function(){})},e.registry={},e.nextId=0,e.checkedAlready=!1,e.lastCheck=0,e}();t.Scheduler=c;var h=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=u.windex.setWindowInterval(window,function(){return t.doTick()},this._interval),this.register(this._interval))},t.prototype.cancel=function(){-1!=this._handle&&(u.windex.clearWindowInterval(window,this._handle),this._handle=-1,this.setTick(function(){}))},t}(c);t.RealTicker=h;var d=function(e){function t(t,n,r){void 0===n&&(n=0);for(var i=[],o=3;o0&&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)}u.assert(n.length<1e4,"clearIds is fast")}function v(e,t){if(!o.uaIsEdge||"output"!=a.tagName(e)){var n=e;if(n.attributes&&n.attributes.length>0)for(var r=0;rt.MaxTextSizeBytes?(u.FsBugSnag.sendToBugsnag("Ignoring huge text node with length ["+r+"]","warning"),""):n}t.fixAttrName=S,t.safeTextContent=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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.isSafari=function(){return /^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),i=new(function(){function e(){var e=r.theDummyDoc(),t=e.getElementById("urlresolver-base");t||((t=e.createElement("base")).id="urlresolver-base",e.head.appendChild(t));var n=e.getElementById("urlresolver-parser");n||((n=e.createElement("a")).id="urlresolver-parser",e.head.appendChild(n)),this.base=t,this.parser=n}return e.prototype.parseUrl=function(e,t){this.base.setAttribute("href",e),this.parser.setAttribute("href",t);var n=document.createElement("a");return n.href=this.parser.href,n},e.prototype.resolveUrl=function(e,t){return this.parseUrl(e,t).href},e.prototype.resolveToDocument=function(e,t){var n=o(e);return null==n?t:this.resolveUrl(n,t)},e.prototype.scrubUrl=function(e){var t=this.parseUrl("",e);return t.hash.indexOf("access_token")>=0&&(t.hash="#(redacted)"),t.href},e}());function o(e){var t=e.document,n=e.location.href;if("string"==typeof t.baseURI)n=t.baseURI;else{var r=t.getElementsByTagName("base")[0];r&&r.href&&(n=r.href)}return"about:blank"==n&&e.parent!=e?o(e.parent):n}t.parseUrl=function(e,t){return i.parseUrl(e,t)},t.resolveUrl=function(e,t){return i.resolveUrl(e,t)},t.resolveUrlToDocument=function(e,t){return i.resolveToDocument(e,t)},t.scrubUrl=function(e){return i.scrubUrl(e)},t.baseUri=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MutationProcessingInterval=250,t.CurveSamplingInterval=142,t.UploadInterval=5e3,t.HeartbeatInitial=4e3,t.HeartbeatMax=256e3,t.PageInactivityTimeout=18e5,t.BackoffMax=3e5,t.ScrollSampleInterval=t.MutationProcessingInterval/5,t.InactivityThreshold=4e3,t.MaxPayloadLength=16384},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=n(0),o=n(27),s=n(1),a=n(16),u=n(28),c=n(38),h=n(40),d=n(42),l=n(13),f=n(5),p=n(4),_=n(44),g=n(15);function v(e){var t=r.fsid(e)+" ";return e.id&&(t+="#"+e.id),t+="[src="+e.src+"]"}t.FS_REQUEST_FRAME_ID="RequestFrameId",t.FS_GREET_CHILD_FRAME="GreetFrame",t.FS_SET_FRAME_ID_CMD="SetFrameId",t.FS_IFRAME_EVENTS="EvtBundle",t.FS_SHUTDOWN_FRAME="ShutdownFrame",t.FS_RESTART_FRAME="RestartFrame",t.FS_SET_CONSENT="SetConsent",t.FS_INIT_MOBILE_CMD="InitFrameMobile",t.defaultInjector=function(e,t,n,r,i,o){var u=v(e);s.logIfDebug("Injecting into Frame "+u);try{if(function(e){return e.id==e.name&&m.test(e.id)}(e))return void s.logIfDebug("Blacklisted iframe: "+u);if(function(e){return function(e){return!!e.src&&"about:blank"!=e.src&&e.src.indexOf("javascript:")<0}(e)&&e.src!=e.contentWindow.location.href&&"loading"==e.contentDocument.readyState}(e))return void s.logIfDebug("Frame not yet loaded: "+u);var c=e.contentWindow,h=e.contentDocument;if(!c||!h)return void s.logIfDebug("Missing contentWindow or contentDocument: "+u);if(c[a.Namespace(c)])return void s.logIfDebug("FS already defined in Frame contentWindow: "+u+". Ignoring.");c._fs_org=t,c._fs_script=r,c._fs_rec_host=i,c._fs_app_host=o,c._fs_debug=s.isDebug(),c._fs_run_in_iframe=!0;var d=h.createElement("script");d.async=!0,d.src=n+"//"+r,"testdrive"==t&&(d.src+="?allowMoo=true"),h.head.appendChild(d)}catch(e){s.logIfDebug("iFrame no injecty. Probably not same origin.")}};var y,m=/^fb\d{18}$/;!function(e){e[e.NoInfoYet=1]="NoInfoYet",e[e.Enabled=2]="Enabled",e[e.Disabled=3]="Disabled"}(y=t.GetCurrentSessionEnabledState||(t.GetCurrentSessionEnabledState={}));var E=function(){function e(e,t,n,r){var i=this;this._ctx=e,this._transport=n,this._injector=r,this._iFrames=[],this._pendingChildFrameIdInits=[],this._listeners=new o.DomListeners,this._getCurrentSessionEnabled=y.NoInfoYet,this._resourceUploadingEnabled=!1,this._tickerTasks=[],this._watcher=new d.Watcher,this._queue=new h.EventQueue(e,this._transport,function(e){for(var t=i._eventWatcher.bundleEvents(e),n=void 0;n=i._tickerTasks.pop();)n();return t},t),this._eventWatcher=new u.EventWatcher(e,this._queue,this._watcher,this._listeners,function(e){i.onFrameCreated(e)},function(e){i.beforeFrameRemoved(e)},new _.ResourceUploader(e,this._queue,new g.HttpResourceProtocol(e))),this._consoleWatcher=new c.ConsoleWatcher(e,this._queue,this._listeners),this._scheme=e.options.scheme,this._script=e.options.script,this._recHost=e.options.recHost,this._appHost=e.options.appHost,this._orgId=e.options.orgId,this._wnd=e.window}return e.prototype.start=function(e,t){var n=this;this._onFullyStarted=t,this.addDefaultWatches(),"onpagehide"in this._wnd?this._listeners.add(this._wnd,"pagehide",!1,function(e){n.onUnload("pagehide")}):this._listeners.add(this._wnd,"unload",!1,function(e){n.onUnload("unload")}),this._listeners.add(this._wnd,"message",!1,function(e){if("string"==typeof e.data){var t=e.source;n.postMessageReceived(t,w(e.data))}});var r=this._wnd.Document?this._wnd.Document.prototype:this._wnd.document;this._docCloseHook=i.activateHook(r,"close"),this._docCloseHook&&this._docCloseHook.afterAsync(function(){n._listeners.refresh()})},e.prototype.queue=function(){return this._queue},e.prototype.eventWatcher=function(){return this._eventWatcher},e.prototype.console=function(){return this._consoleWatcher},e.prototype.onDomLoad=function(){this._eventWatcher.onDomLoad()},e.prototype.onLoad=function(){this._eventWatcher.onLoad()},e.prototype.shutdown=function(e){this._eventWatcher.shutdown(e),this._consoleWatcher.disable(),this._listeners.clear(),this._docCloseHook&&this._docCloseHook.disable(),this.tellAllFramesTo([t.FS_SHUTDOWN_FRAME])},e.prototype.tellAllFramesTo=function(e){for(var t=0;t0){for(var e=0;e0&&this._transport.enqueueEvents(i,r);break;case t.FS_REQUEST_FRAME_ID:var a=this.iFrameWndToFsId(e);e&&a?(s.logIfDebug("Responding to FID request for frame "+a),this.sendFrameIdToInnerFrame(e,a)):s.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();S(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;t0&&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(){return 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";Object.defineProperty(t,"__esModule",{value:!0}),t.Node_ELEMENT_NODE=1,t.Node_ATTRIBUTE_NODE=2,t.Node_TEXT_NODE=3,t.Node_CDATA_SECTION_NODE=4,t.Node_ENTITY_REFERENCE_NODE=5,t.Node_ENTITY_NODE=6,t.Node_PROCESSING_INSTRUCTION_NODE=7,t.Node_COMMENT_NODE=8,t.Node_DOCUMENT_NODE=9,t.Node_DOCUMENT_TYPE_NODE=10,t.Node_DOCUMENT_FRAGMENT_NODE=11,t.Node_NOTATION_NODE=12,t.XHR_UNSENT=0,t.XHR_OPENED=1,t.XHR_HEADERS_RECEIVED=2,t.XHR_LOADING=3,t.XHR_DONE=4,t.XHR_STATUS_ABORTED=0},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.theDummyDoc=function(){return r||(r=function(){var e=document.implementation.createHTMLDocument("");return e.head||e.documentElement.appendChild(e.createElement("head")),e.body||e.documentElement.appendChild(e.createElement("body")),e}()),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorFatal=function(e){return e>=400||202==e||206==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(7);t.HighlightTypeFsId="fsidentity",t.HighlightTypeNewUid="newuid",t.UID_COOKIE="fs_uid";var o=function(){function e(e){void 0===e&&(e=document),this._doc=e,this._cookies={}}return e.prototype.initFromCookies=function(e,n){this._cookies=r.getCookies(this._doc),this._cookie=r.parseIdentityCookie(this._cookies[t.UID_COOKIE]),this._cookie.Host.replace(/^www\./,"")==e.replace(/^www\./,"")&&this._cookie.OrgId==n||(this._cookie={Host:e,OrgId:n,UserId:"",SessionId:"",AppKey:""})},e.prototype.initFromParsedCookie=function(e){this._cookie=e},e.prototype.clear=function(){var e=this.host(),t=this.orgId();this._cookie={Host:e,OrgId:t,UserId:"",SessionId:"",AppKey:""},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.appKey=function(){return this._cookie.AppKey},e.prototype.cookieData=function(){return this._cookie},e.prototype.cookies=function(){return this._cookies},e.prototype.setCookie=function(e,t){var n=e+"="+t;this._domain?n+="; domain=."+encodeURIComponent(this._domain):n+="; domain=",n+="; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",this._doc.cookie=n},e.prototype.setIds=function(e,t,n,o){(r.isLocalhost(t)||r.isIP(t))&&(t="");var s=i._fs_cookie_domain(e);"string"==typeof s&&(t=s),this._domain=t,this._cookie.UserId=n,this._cookie.SessionId=o,this.write()},e.prototype.clearAppId=function(){return!!this._cookie.AppKey&&(this._cookie.AppKey="",this.write(),!0)},e.prototype.setAppId=function(e){this._cookie.AppKey=e,this.write()},e.prototype.encode=function(){var e=this._cookie.Host+"`"+this._cookie.OrgId+"`"+this._cookie.UserId+":"+this._cookie.SessionId;return this._cookie.AppKey&&(e+="`"+encodeURIComponent(this._cookie.AppKey)+"`"),e},e.prototype.write=function(){null!=this._domain&&this.setCookie(t.UID_COOKIE,this.encode())},e}();t.Identity=o},function(e,t,n){e.exports=n(25)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(4),o=n(7);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";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){e.done?i(e.value):new n(function(t){t(e.value)}).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=c.transformValidateAppId(u[1].uid)[0]);var d=this.vars.api(u[0],u[1],h),l=d.events,f=d.reidentify,p=d.recStatus,_=d.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=p._fs_transport(this.wnd);return p._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&&l._native_matchesSelector?!!function e(t){if(t==top||p._fs_is_outer_script(t)||p._fs_run_in_iframe(t)||p._fs_transport(t))return!0;try{return t.parent.document,e(t.parent)}catch(e){return!1}}(this.wnd)||(f.logIfDebug("Fullstory recording for this page is NOT allowed within an iFrame."),!1):(f.logIfDebug("missing required browser features"),!1)},e.prototype.hailMary=function(){var e=this;if(this.identity){var t=p._fs_replay_flags(this.wnd);f.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.removeChild(n)};var r=v.getDocumentClientArea(this.wnd.document),i=r[0],o=r[1],s=l.tryGetScreenDims(this.wnd),a=s[0],u=s[1];n.src="//"+this.recHost+"/rec/page?OrgId="+this.orgId+"&UserId="+this.identity.userId()+"&Url="+encodeURIComponent(y.scrubUrl(this.wnd.location.href))+"&Base="+encodeURIComponent(y.scrubUrl(y.baseUri(this.wnd)))+"&Width="+i+"&Height="+o+"&ScreenWidth="+a+"&ScreenHeight="+u+"&Referrer="+encodeURIComponent(document.referrer)+"&Doctype="+encodeURIComponent(l.doctypeString(document))+"&CompiledTimestamp="+_.CompiledTimestamp+"&Fallback=true"+(t?"&ReplayFlags="+t:""),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",function(e){t()}),n||this.wnd.addEventListener("load",function(e){t(),r()})},e}();t.Conductor=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);function i(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 o(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 s=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",function(){},t)}catch(e){}}return e.prototype.add=function(e,n,o,s,a){void 0===a&&(a=!1);var u={target:e,type:n,fn:function(e){try{if(!a&&!1===e.isTrusted&&"message"!=n&&!e[t._trustEventOverride])return;s(e)}catch(e){r.logIfDebug("Error in event listener: "+e)}},options:o?this._yesCapture:this._noCapture,index:this._listeners.length};return this._listeners.push(u),i(e,n,u.fn,u.options),u},e.prototype.remove=function(e){e.target&&(o(e.target,e.type,e.fn,e.options),e.target=null,e.fn=void 0)},e.prototype.clear=function(){for(var e=0;et.right)return!1;if(e.bottomt.bottom)return!1;return!0}(b(a.left+u.pageLeft,a.top+u.pageTop,a.width,a.height),b(u.pageLeft,u.pageTop,u.width,u.height));m.assert(c,"Element not inside the layout viewport")}this._queue.enqueue(l.EVENT_CLICK,[n,e.clientX,e.clientY,r,i,o,s])}},e.prototype.addDblClick=function(e){var t=e.target,n=d.fsid(t);n&&this._queue.enqueue(l.EVENT_DBL_CLICK,[n])},e.prototype.addFormSubmit=function(e){var t=e.target,n=d.fsid(t);n&&this._queue.enqueue(l.EVENT_FORM_SUBMIT,[n])},e.prototype.addFocus=function(e){var t=e.target,n=d.fsid(t);n&&this._queue.enqueue(l.EVENT_FOCUS,[n])},e.prototype.addBlur=function(e){var t=e.target,n=d.fsid(t);n&&this._queue.enqueue(l.EVENT_BLUR,[n])},e.prototype.addChange=function(e){this._inputWatcher.onChange(e.target)},e.prototype.addChangeElem=function(e){var t=d.fsidIfNotBlocked(e);t&&this._queue.enqueue(l.EVENT_VALUECHANGE,[t,o.valueOfInputishElem(e)])},e.prototype.addSelection=function(){try{var e=this.selectionArgs()}catch(e){return}for(var t=!1,n=0;n<4;n++)if(this._curSelection[n]!==e[n]){t=!0;break}t&&(this._curSelection=e,this._queue.enqueue(l.EVENT_SELECT,e))},e.prototype.selectionArgs=function(){if(!this._wnd.getSelection)return[];var e=this._wnd.getSelection();if(!e)return[];if("None"==e.type)return[];if("Caret"==e.type){var t=d.fsid(e.anchorNode);return t?[t,e.anchorOffset]:[]}if(!e.anchorNode||!e.focusNode)return[];var n=S(e.anchorNode,e.anchorOffset),r=n[0],i=n[1],o=S(e.focusNode,e.focusOffset),s=o[0],a=o[1],u=Boolean(r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING),c=u?[r,s]:[s,r],l=c[0],f=c[1],p=u?[i,a]:[a,i],_=p[0],g=p[1];for(d.fsid(l)||(_=0);l&&!d.fsid(l)&&l!=f;)l=h.nextSibling(l)||l.parentNode;for(d.fsid(f)||(g=0);f&&!d.fsid(f)&&f!=l;)f=h.previousSibling(f)||f.parentNode;if(l==f&&_==g)return[];var v=d.fsid(l),y=d.fsid(f);return l&&f&&v&&y?[v,_,y,g,u]:[]},e}();function S(e,t){if(!e.firstChild)return[e,t];e=e.firstChild;for(var n=0;n-1?[n]:"srcset"!=t||"img"!=i&&"source"!=i?[]:null!=n.match(/^\s*$/)?[]:h.map(n.split(","),function(e){return h.trim(e).split(/\s+/)[0]})}function b(e,t,n,r){return{left:e,top:t,right:e+n,bottom:t+r,width:n,height:r}}function I(e){return e.width<=0||e.height<=0}t.getResourceUrls=T},function(e,t,n){"use strict";function r(e){return{pageLeft:e.pageLeft,pageTop:e.pageTop,width:e.width,height:e.height}}Object.defineProperty(t,"__esModule",{value:!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";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)for(var _=0;_0&&(a[f]=d.target);break;case"characterData":var v=i.safeTextContent(d.target);d.oldValue!=v&&(i.isBlocked(d.target)||(r[f]=v));break;case"attributes":var y=d.target,m=this._watcher.isWatched(y);if(m&&m!=c.WatchKindWatch&&!i.isBlocked(y)){u(y);break}var E=p(d.attributeNamespace)+(d.attributeName||""),S=i.fixAttrName(E);if(y.hasAttribute(E)){var w=d.target.getAttribute(E);d.oldValue!=w&&(w=this.rewriteAttr(d.target,S,w||""),this._attrVisitor(d.target,S,w||""),null!==w&&(n[f+"\t"+S]=w))}else n[f+"\t"+S]=null;}}catch(e){}for(var T=0,b=this._toRefresh;T0&&t.push({When:e,Kind:d.EVENT_MUT_INSERT,Args:[a,u,this._lz.encode(h)]});for(var l=0,f=c;l0){var o=t[t.length-1];if(o.Kind==d.EVENT_MUT_REMOVE)return void o.Args.push(r)}t.push({When:e,Kind:d.EVENT_MUT_REMOVE,Args:[r]})},e.prototype.rewriteAttr=function(e,t,n){return i.isBlocked(e)?i.rewriteBlockedAttribute(e,t,n):n},e.prototype.setUpIEWorkarounds=function(){var t=this;if(h.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({},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(e){i&&i.apply(this,arguments)}}}))}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){return e.cssText=e.cssText});this._setPropertyThrottle.open(),this._setPropertyHook=s.activateHook(CSSStyleDeclaration.prototype,"setProperty"),this._setPropertyHook&&this._setPropertyHook.afterSync(function(){o(this)}),this._removePropertyHook=s.activateHook(CSSStyleDeclaration.prototype,"removeProperty"),this._removePropertyHook&&this._removePropertyHook.afterSync(function(){o(this)})},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;t1?s.push([o.idx,a]):s.push(o.idx):s.push(i)}for(n=1;n.2)&&(this.addPerfEvent(r.PerfEntryMemory,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=performance.getEntries(),t=function(e){return e.name+":"+e.entryType+":"+e.startTime+":"+e.duration};e.sort(function(e,n){return e.startTime==n.startTime?t(e).localeCompare(t(n)):e.startTime-n.startTime});for(var n=0,r=0;n=0&&this._reqWhitelist[n],i=typeof t;if("string"==i)return v(t,r);if("object"==i){var o=i.constructor;switch(o){case String:case Object:default:return y(t,r);case Blob:return E(t,r);case ArrayBuffer:return m(t,r);case Document:case FormData:case URLSearchParams:case ReadableStream:return[-1,r?""+o.name:void 0];}}return[-1,r?"[unknown]":void 0]},e.prototype.responseBody=function(e,t){var n=this.findWhitelistIndexFor(e),r=n>=0&&this._rspWhitelist[n];if(t.responseType){var o=t.response;switch(o||i.logIfDebug("Maybe response type was different that expected."),t.responseType){case"text":return S(t.responseText,r);case"json":return w(o,r);case"arraybuffer":return b(o,r);case"blob":return I(o,r);case"document":return T(t.responseText,r);}}return S(t.responseText,r)},e}();function v(e,t){return[e.length,C(e,t)]}function y(e,t){var n=void 0;return!1!==t&&(n=u.whitelistedJson(e,c.MaxPayloadLength,t)),[N(e),n]}function m(e,t){var n=void 0;return t&&(n="[ArrayBuffer]"),[e.byteLength,n]}function E(e,t){var n=void 0;return t&&(n="[Blob]"),[e.size,n]}function S(e,t){return[e?e.length:-1,C(e,t)]}function w(e,t){return[e?N(e):-1,u.whitelistedJson(e,c.MaxPayloadLength,t)]}function T(e,t){return[e?e.length:-1,t?"[Document]":void 0]}function b(e,t){return[e?e.byteLength:-1,t?"[ArrayBuffer]":void 0]}function I(e,t){return[e?e.size:-1,t?"[Blob]":void 0]}function N(e){try{return h.windex.jsonStringify(e).length}catch(e){}return 0}function O(e){return e._fs}function C(e,t){if(0!=t)try{return u.whitelistedJson(h.windex.jsonParse(e),c.MaxPayloadLength,t)}catch(n){return 1==t?e.slice(0,c.MaxPayloadLength):void 0}}function R(e,t){switch(e){default:case a.AjaxBodyElide:return!1;case a.AjaxBodyRecord:return!0;case a.AjaxBodyWhitelist:try{return o.parseFieldPatterns(t)}catch(e){return i.logIfDebug("error parsing field whitelist ("+t+": "+e),!1}}}function k(e){var t=[];return e.split(d).forEach(function(e){var n=e.indexOf(":");-1!=n?t.push([e.slice(0,n).trim(),e.slice(n+1,e.length).trim()]):t.push([e.trim(),null])}),t}function A(e,t){var n="";return e.forEach(function(e){e[0]=e[0].toLowerCase();var r=t(e);n+=e[0]+(r?": "+e[1]:"")+d}),n}t.AjaxWatcher=g,t._reqBodyString=v,t._reqBodyObject=y,t._reqBodyArrayBuffer=m,t._reqBodyBlob=E,t._rspBodyText=S,t._rspBodyObject=w,t._rspBodyDocument=T,t._rspBodyArrayBuffer=b,t._rspBodyBlob=I,t.parseHeaders=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(3),o=r.parseFieldPatterns("**");t.whitelistedJson=function(e,t,n){var r;if(0!=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],h=!0,d=!1,l=function(e){o[e.id]=e,h=!1,e.term&&(d=!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((h||!r&&!d)&&(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";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),s=n(5),a=n(2),u=n(8),c=n(20),h=n(37),d=n(4),l=function(){function e(t,n){var r=this;this.ctx=t,this.queue=n,this.hooks=[];var i=e;this.throttle=new s.Throttle(i.ThrottleMax,i.ThrottleInterval,function(){return setTimeout(function(){r.queue.enqueue(a.EVENT_FAIL_THROTTLED,[a.ThrottledStyleSheetHooks]),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){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))}},e.prototype.snapshot=function(e,t){void 0===t&&(t=0);var n=u.fsid(e);if(n){var i=h.sheetRules(h.elemSheet(e));if(i)for(var o=t;oe.MaxRuleBytes&&(o.logIfDebug("CSSRule too large, inserting dummy instead: "+n.length),n="dummy {}");var s=[i,n];"number"==typeof r&&s.push(r),this.queue.enqueue(a.EVENT_CSSRULE_INSERT,s)}},e.prototype.addDelete=function(e,t){var n=u.fsid(e.ownerNode);n&&"number"==typeof t&&this.queue.enqueue(a.EVENT_CSSRULE_DELETE,[n,t])},e.prototype.stop=function(){this.throttle.close();for(var e=0,t=this.hooks;e5e5)){var n=h.sheetRules(h.elemSheet(e));if(n){if(n.length>0&&/^\s*$/.test(t))return 0;var r=c.theDummyDoc(),i=r.importNode(e,!0);r.head.appendChild(i);var o=h.sheetRules(h.elemSheet(i));if(r.head.removeChild(i),o)return n.length>o.length?o.length:void 0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elemSheet=function(e){return e?e.sheet:void 0},t.sheetRules=function(e){return e?e.cssRules||e.rules:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(0),o=n(39),s=n(8),a=n(14),u=n(9),c=n(3),h=function(){function e(e,t,n){this._queue=t,this._enabled=!1,this._overflow=!1,this._total=0,this._hooks=[],this._wnd=e.window,this._listeners=n.createChild(),this.maxLogsPerPage="P2C"==e.options.orgId||"ESHFX"==e.options.orgId?3e3:r.MAX_LOGS_PER_PAGE}return e.prototype._overflowMsg=function(){return"\"[received more than "+this.maxLogsPerPage+" messages]\""},e.prototype.enable=function(){var e=this;if(this._listeners.add(this._wnd,"error",!0,function(t){return e.addError(t)}),this._listeners.add(this._wnd,"unhandledrejection",!0,function(t){e.addLog("error",["Uncaught (in promise)",t.reason])},!0),!this._enabled)if(this._enabled=!0,this._queue.enqueue(r.EVENT_REC_FEAT_SUPPORTED,[r.RecFeatureConsole,!0]),this._wnd.console)for(var t=function(t){var r=i.activateHook(n._wnd.console,t);if(!r)return"continue";r.before(function(n){var r=n.args;return e.addLog(t,r)}),n._hooks.push(r)},n=this,o=0,s=["log","info","warn","error"];ot)throw"break";if("object"==typeof r)return r})}catch(e){return"break"!=e}return!1}(e,t/4)};return function e(t,n,r,o){if(n<1)return 0;var h=t&&t.constructor==Date?l(t):function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&e.nodeType>0&&"string"==typeof e.nodeName}(t)?function(e){if(!s.fsidIfNotBlocked(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!==h)return void 0===(h=c.windex.jsonStringify(h))?0:("\""==h[0]&&(h=f(h,n,"...\"")),h.length<=n?(o.tokens.push(h),h.length):0);if(o.cyclic){o.opath.splice(r);var d=o.opath.lastIndexOf(t);if(d>-1){var p="";return p="\""+f(p,n-2)+"\"",o.tokens.push(p),p.length}o.opath.push(t)}var _=n;var g=function(e){return _>=e.length&&(_-=e.length,o.tokens.push(e),!0)};var v=function(e){var t=o.tokens[o.tokens.length-1];","==t?o.tokens[o.tokens.length-1]=e:g(e)};if(_<2)return 0;if(i.isArray(t)){g("[");for(var y=0;y0;y++){var m=e(t[y],_-1,r+1,o);if(_-=m,0==m&&!g("null"))break;g(",")}v("]")}else{g("{");for(var E=i.keys(t),y=0;y0;y++){var S=E[y],w=t[S];if(!g("\""+S+"\":"))break;var m=e(w,_-1,r+1,o);if(0==m){o.tokens.pop();break}_-=m,g(",")}v("}")}return n==1/0?1:n-_}(e,t,0,n),n.tokens.join("")}catch(e){return i.jsonErrorString(e)}}t.ConsoleWatcher=h,t.stringifyLogMessage=d;var l=function(e){return isNaN(e)?"Invalid Date":e.toUTCString()},f=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";Object.defineProperty(t,"__esModule",{value:!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()),r=t.join(" "),i=["eval",""].indexOf(n[0])>-1?"":n[0];return s(r,i,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()),r=t.join("@");return s(r,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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41),i=n(2),o=n(5),s=n(11),a=function(){function e(e,t,n,i){void 0===n&&(n=function(){return[]}),void 0===i&&(i=o.RealTicker),this._ctx=e,this._transport=t,this._gatherExternalEvents=n,this._tickerFactory=i,this._recordingDisabled=!1,this._lastWhen=-1,this._gotUnload=!1,this._eventQueue=[],this._sampleCurvesTicker=new this._tickerFactory(s.CurveSamplingInterval),this._processMutationsTicker=new this._tickerFactory(s.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,t){this.enqueueAt(this._ctx.time.now(),e,t),o.Scheduler.checkForBrokenSchedulers()},e.prototype.enqueueAt=function(e,t,n){this._recordingDisabled||(e<=this._lastWhen&&(e=this._lastWhen+1),this._lastWhen=e,this._eventQueue.push({When:e,Kind:t,Args:n}))},e.prototype.enqueueFirst=function(e,t){this._eventQueue.length>0?this._eventQueue.unshift({When:this._eventQueue[0].When,Kind:e,Args:t}):this.enqueue(e,t)},e.prototype.addUnload=function(e){this._gotUnload||(this._gotUnload=!0,this.enqueue(i.EVENT_UNLOAD,[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.prequeue=function(e,t){this._recordingDisabled||this._eventQueue.unshift({When:0,Kind:e,Args:t})},e.prototype.appendToQueue=function(e){this._eventQueue=this._eventQueue.concat(e)},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;r2&&p[2]&&f[0].Args.push(p[2])}for(l in u){u[_=parseInt(l)].finish(r.EVENT_SCROLL_LAYOUT_CURVE,[n,_])}for(l in c){c[_=parseInt(l)].finish(r.EVENT_SCROLL_VISUAL_OFFSET_CURVE,[n,_])}for(l in a){var _;a[_=parseInt(l)].finish(r.EVENT_TOUCHMOVE_CURVE,[n,_])}return t&&t.finish(r.EVENT_RESIZE_VISUAL_CURVE,[n]),o},e}();t.EventProcessor=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(43),o=n(13),s=n(4),a=function(){function e(){this._consent=!1,this._hasWatched=!1,this._rules=Object.create?Object.create(null):{},this._rules[o.WatchKindBlocked]=[],this._rules[o.WatchKindBlockedConsent]=[],this._rules[o.WatchKindWatch]=[]}return e.prototype.isWatched=function(e){this._hasWatched=!0;for(var t=0,n=this._consent?[o.WatchKindBlocked,o.WatchKindWatch]:[o.WatchKindBlockedConsent,o.WatchKindBlocked,o.WatchKindWatch];t0&&";"!=o.charAt(o.length-1)&&(o+=";"),0==r&&0==i||(o+="width:"+r+"px;height:"+i+"px;"),o},e}();t.Watcher=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";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){e.done?i(e.value):new n(function(t){t(e.value)}).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]f)return c.FsBugSnag.sendToBugsnag("Size of blob resource "+e+" exceeds limit of "+f,"warning"),void n(null);(function(e){var t=a.createFSPromise(),n=t.resolve,r=t.promise,i=new FileReader;return i.readAsArrayBuffer(e),i.onload=function(){n(i.result)},i.onerror=function(e){c.FsBugSnag.sendToBugsnag(e,"error"),n(null)},r})(t).then(function(e){n(e?{buffer:e,blob:t,contentType:t.type}:null)})},i.send(),r}(e)];case 1:return(t=i.sent())?[4,l.hash128NonBlocking(this.ctx.time,t.buffer)]:[2,null];case 2:return n=i.sent().hash,r={hash:n,url:e,blob:t.blob,contentType:t.contentType},this.byUrl[r.url]=r,this.queue.enqueue(h.EVENT_SYS_RESOURCEHASH,["url",e,r.hash]),[2,r];}})})},e}();t.ResourceUploader=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.createFSPromise=function(){var e,t;return{promise:new r.FSPromise(function(n,r){e=n,t=r}),resolve:e,reject:t}}},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){e.done?i(e.value):new n(function(t){t(e.value)}).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]c?[4,a.wait(h)]:[3,3]:[3,5];case 2:i.sent(),r=e.now(),i.label=3;case 3:d=new Uint8Array(t,s,Math.min(o-s,u)),n.write(d),i.label=4;case 4:return s+=u,[3,1];case 5:return[2,{hash:n.sum(),hasher:n}];}})})}},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)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){void 0===e&&(e=4),this.hashCount=e,this.idx=0,this.hashMask=e-1,this.reset()}return e.prototype.reset=function(){this.idx=0,this.hash=[];for(var e=0;e>>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),u=window.btoa||c;function c(e){for(var t,n,r=String(e),i=0,o=s,u=[];r.charAt(0|i)||(o="=",i%1);u.push(o.charAt(63&t>>8-i%1*8))){if((n=r.charCodeAt(i+=.75))>255)throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|n}return u.join("")}t._jsbtoa=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)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=n(5),a=n(7),u=n(18),c=n(0),h=n(1),d=n(2),l=n(10),f=n(17),p=n(49),_=function(e){function t(t,n,r,i,u){void 0===r&&(r=new p.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("transport")}),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("_fs_shutdown"),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.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),h=s[0],p=s[1],_=c.tryGetScreenDims(this._wnd),g=_[0],v=_[1],y="";t||(y=this._identity.userId());var m={OrgId:this._orgId,UserId:y,Url:l.scrubUrl(location.href),Base:l.scrubUrl(l.baseUri(this._wnd)),Width:h,Height:p,ScreenWidth:g,ScreenHeight:v,Referrer:this._doc.referrer,Doctype:c.doctypeString(this._doc),CompiledTimestamp:f.CompiledTimestamp};r&&(m.AppId=r),o&&(m.ReplayFlags=o),this._protocol.page(m,function(e){i.handleResponse(e),i.handleIdentity(e.CookieDomain,e.UserIntId,e.SessionIntId,e.PageIntId,e.EmbedToken),i.handleIntegrationScript(e.IntegrationScript),i._queue.enqueueFirst(d.EVENT_SET_FRAME_BASE,[l.scrubUrl(l.baseUri(i._wnd)),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.prototype.handleIdentity=function(e,t,n,r,i){var o=this._identity;o.setIds(this._wnd,e,t,n),this._embedToken=i,h.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("because /rec/page said so"),h.logIfDebug("Disabling FS."),this._recordingDisabled=!0,this.fireFsReady()},t.prototype.fireFsReady=function(){var e=a._fs_ready(this._wnd);if(e)try{this._recordingDisabled?e(!0):e()}catch(e){h.logIfDebug("exception in _fs_ready(): "+e)}},t}(o.AbstractRecorder);t.TopRecorder=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(50),o=n(5),s=n(22),a=n(15),u=n(11),c=n(4),h=n(1),d=function(){function e(e,t,n,s){void 0===t&&(t=new a.HttpProtocol(e)),void 0===n&&(n=o.RealTicker),void 0===s&&(s=o.RealTimeout);var c=this;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._lastUserEvent=0,this._finished=!1,this._scheme=e.options.scheme,this._identity=e.recording.identity,this._lastBundleTime=e.time.wallTime(),this._uploadTicker=new this._tickerFactory(u.UploadInterval),this._swanSong=new i.SwanSong(e,this._protocol,this._identity,s),this._heartbeatTimeout=new s(function(){c._outgoingEventQueue.push({Kind:r.EVENT_HEARTBEAT,When:c._ctx.time.now(),Args:[]}),c._heartbeatInterval*=2,c._heartbeatInterval>u.HeartbeatMax&&(c._heartbeatInterval=u.HeartbeatMax),c._heartbeatTimeout.start(c._heartbeatInterval)}),this._hibernationTimeout=new s(function(){c._ctx.time.now()-c._lastUserEvent<=2*u.PageInactivityTimeout&&(c._outgoingEventQueue.push({Kind:r.EVENT_UNLOAD,When:c._ctx.time.now(),Args:["hibernation"]}),c.singSwanSong()),c.stopPipeline(),c._hibernating=!0},u.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(t,this._identity.orgId(),this._identity.userId(),this._identity.sessionId(),this._pageId,this._serverPageStart,this._serverBundleTime,null):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(!(tu.UploadInterval&&e.maybeSendNextBundle()},function(t){if(h.logIfDebug("Failed to send events."),s.isErrorFatal(t))return 206==t&&c.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 r=this._protocol.bundle(e,this._identity.orgId(),this._identity.userId(),this._identity.sessionId(),this._pageId,this._serverPageStart,this._serverBundleTime,null,t,n);if(r>this._largePageSize&&this._bundleSeq>16){var i="splitting large page of size: "+r;h.logIfDebug(i),c.FsBugSnag.sendToBugsnag(new Error(i),"info"),this._ctx.recording.splitPage("size")}},e}();t.NetworkEventTransport=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(0),o=n(22),s=n(1),a=function(){function e(e,t,n,i){void 0===i&&(i=r.RealTimeout),this._ctx=e,this._protocol=t,this._identity=n,this._timeoutFactory=i,this._recover()}return e.prototype.sing=function(t,n,r,o,a){s.logIfDebug("Saving "+n.length+" bundles in swan-song.");var u={OrgId:this._identity.orgId(),UserId:this._identity.userId(),SessionId:this._identity.sessionId(),PageId:t,Bundles:n,PageStartTime:this._ctx.time.startTime(),LastBundleTime:r,ServerPageStart:o,ServerBundleTime:a},c=i.stringify(u);if(!(c.length>2e6))try{localStorage[e.localStorageKey]=c}catch(e){}},e.prototype._recover=function(){try{if(e.localStorageKey in localStorage){var t=localStorage[e.localStorageKey];delete localStorage[e.localStorageKey];var n=i.parseJson(t);if(!(n.Bundles&&n.UserId&&n.SessionId&&n.PageId))return void s.logIfDebug("Malformed swan song found. Ignoring it.");n.OrgId||(n.OrgId=this._identity.orgId()),n.Bundles.length>0&&(s.logIfDebug("Sending "+n.Bundles.length+" bundles as prior page swan song"),this.sendSwanSongBundles(n.OrgId,n.UserId,n.SessionId,n.PageId,n.Bundles,n.ServerPageStart,n.ServerBundleTime,n.LastBundleTime))}}catch(e){s.logIfDebug("Error recovering swan-song: "+e)}},e.prototype.sendSwanSongBundles=function(e,t,n,r,a,u,c,h,d){var l=this;void 0===d&&(d=0);var f=null;i.isArray(a)&&0!==a.length&&void 0!==a[0]&&(1==a.length&&(f=this._ctx.time.wallTime()-(h||0)),this._protocol.bundle(a[0],e,t,n,r,u,c,f,function(i){s.logIfDebug("Sent "+a[0].Evts.length+" trailing events from last session as Seq "+a[0].Seq),a.shift(),a.length>0?l.sendSwanSongBundles(e,t,n,r,a,u,i.BundleTime,h):s.logIfDebug("Done with prior page swan song")},function(i){o.isErrorFatal(i)?s.logIfDebug("Fatal error while sending events, giving up"):(s.logIfDebug("Failed to send events from last session, will retry while on this page"),l._lastSwanSongRetryTimeout=new l._timeoutFactory(l.sendSwanSongBundles,l._protocol.exponentialBackoffMs(d,!0),l,e,t,n,r,a,u,c,h,d+1).start())}))},e.localStorageKey="singSwanSong",e}();t.SwanSong=a},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)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=n(5),a=n(0),u=n(1),c=n(2),h=n(10),d=n(52),l=n(7),f=function(e){function t(t,n,r,i,a){void 0===n&&(n=new d.PostMessagePoster),void 0===r&&(r=new d.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("detached iframe"))})},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],h=n[5],d=n[6],f=n[7],p=n[8];this.setFrameIdFromOutside(r,i,s,c,h,d,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 from within frame: "+location.href),this._messagePoster.postMessage(this._wnd.parent,o.FS_REQUEST_FRAME_ID,[])):u.logIfDebug("Orphaned window. Location href = "+location.href):u.logIfDebug("For some reason the outer window attempted to request a frameId"))},t.prototype.setFrameIdFromOutside=function(e,t,n,r,i,o,s,d){e?this._frameId?this._frameId!=e?(u.logIfDebug("Updating frame id from "+this._frameId+" to "+e),this._ctx.recording.splitPage("stale iframe")):u.logIfDebug("frame Id is already set to "+this._frameId):(u.logIfDebug("FrameId received within frame "+location.href+": "+e),this._scheme=r,this._script=i,this._appHost=o,this._orgId=s,this._frameId=e,this._parentIds=t,this.handleResponse(d),this._queue.enqueueFirst(c.EVENT_SET_FRAME_BASE,[h.scrubUrl(h.baseUri(this._wnd)),a.doctypeString(this._wnd.document)]),this._queue.rebaseIframe(n),this._ctx.time.setStartTime(n),this._queue.startPipeline(this._pageId,d.PageStart,e,t),this.flushPendingChildFrameInits(),this.fullyStarted()):u.logIfDebug("Outer page gave us a bogus frame Id! Iframe: "+location.href)},t}(o.AbstractRecorder);t.InnerRecorder=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(7),o=n(0),s=function(){function e(e,t){void 0===t&&(t=new a),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(){}return e.prototype.postMessage=function(e,t,n,r){var s;try{s=i._fs_transport(e)}catch(e){}s?s.send(t,o.stringify(n)):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";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(2),s=n(23),a=n(0),u=n(1),c=n(3);!function(e){e.rec="rec",e.user="user",e.account="account",e.consent="consent",e.customEvent="event"}(r=t.ApiType||(t.ApiType={})),function(e){e.user="user",e.account="acct",e.event="evt"}(i=t.VarScope||(t.VarScope={}));var h={acctId:"str",displayName:"str",website:"str"},d={uid:"str",displayName:"str",email:"str"},l={str:f,bool:p,real:_,"int":g,date:v,strs:y(f),bools:y(p),reals:y(_),ints:y(g),dates:y(v),objs:y(m),obj:m};function f(e){return"string"==typeof e}function p(e){return"boolean"==typeof e}function _(e){return"number"==typeof e}function g(e){return"number"==typeof e&&e-Math.floor(e)==0}function v(e){return!!e&&(e.constructor===Date?!isNaN(e):("number"==typeof e||"string"==typeof e)&&!isNaN(new Date(e)))}function y(e){return function(t){if(!(t instanceof Array))return!1;for(var n=0;n (unsupported)"});for(var _=e,g=[],v=0;v<_.length;v++){var y=s(_[v]);y&&g.push(y)}g.length>0&&(o.PayloadToSend[d]=g)}}else{var y=s(e);if(y){var m=a.hasSuffix(r,"_obj")?d:d.substring(0,d.length-"_obj".length);o.PayloadToSend[m]=y}}}});return o}(e,t,n),d=this.eventsForValidationErrors(e,h.ValidationErrors),f=e==i.event;if(!h.IsEmpty||f){var p=[e,a.stringify(h.PayloadToSend)],_=o.EVENT_SYS_SETVAR;f&&(_=o.EVENT_SYS_CUSTOM,p[0]=s),r&&"fs"!=r&&p.push(r),d.push({When:0,Kind:_,Args:p})}return d},e.prototype.eventsForValidationErrors=function(e,t){if(e==i.event)return[];for(var n=[],r=0,s=t;r=0)return u.logIfDebug("blocking FS.identify API call; uid value ("+e+") is illegal"),[void 0,s.HighlightTypeFsId];var r=void 0;return t&&t._cookie.AppKey&&t._cookie.AppKey!=n&&(u.logIfDebug("user re-identified; existing uid ("+t._cookie.AppKey+") does not match provided uid ("+n+")"),r=s.HighlightTypeNewUid),[n,r]}function T(e){return!!l[e]}t.Vars=S,t.transformValidateAppId=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(1),o=n(4),s=n(6),a=n(3);function u(e,t){try{var n={done:t,jsonParse:e.JSON.parse,jsonStringify:e.JSON.stringify,arrayShift:a.unbind(e.Array.prototype.shift),arrayIsArray:e.Array.isArray,objectToString:a.unbind(e.Object.prototype.toString),objectKeys:e.Object.keys,objectValues:e.Object.values,objectHasOwnProp:a.unbind(e.Object.prototype.hasOwnProperty),matchMedia:e.matchMedia?a.unbind(e.matchMedia):null,setWindowTimeout:a.unbind(e.setTimeout),setWindowInterval:a.unbind(e.setInterval),clearWindowTimeout:a.unbind(e.clearTimeout),clearWindowInterval:a.unbind(e.clearInterval),requestWindowAnimationFrame:"function"==typeof e.requestAnimationFrame?a.unbind(e.requestAnimationFrame):null}}catch(e){return}return n}t.initWindex=function(e){try{if(r.uaIsIE||r.uaIsEdge||function(e){var t=[function(){throw new Error("")},Function.prototype.toString].map(function(e){try{return void e.call(null)}catch(e){return e.stack||""}}),n=t[0],r=t[1];if(!n||!r)return!1;for(var i="\n".charCodeAt(0),o=Math.min(n.length,r.length),s=1,a=s;a