!function(){"use strict";function u(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function a(c){return function(){var e=this,i=arguments;return new Promise(function(t,n){var r=c.apply(e,i);function o(e){u(r,t,n,o,a,"next",e)}function a(e){u(r,t,n,o,a,"throw",e)}o(void 0)})}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var o=t,a=0;a>>0;if(0==a)return!1;for(var i=0|t,c=Math.max(0<=i?i:a-Math.abs(i),0);c>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function h(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function p(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=f(e,[4283543511,3981806797]),e=m(e,[0,e[0]>>>1]),e=f(e,[3301882366,444984403]),e=m(e,[0,e[0]>>>1])}function c(e,t){t=t||0;for(var n=(e=e||"").length%16,r=e.length-n,o=[0,t],a=[0,t],i=[0,0],c=[0,0],u=[2277735313,289559509],s=[1291169091,658871167],l=0;l>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function s(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;nt.name?1:e.name=n.components.length)r(o.data);else{var t=n.components[a];if(n.excludes[t.key])i(!1);else{if(!e&&t.pauseBefore)return--a,void setTimeout(function(){i(!0)},1);try{t.getData(function(e){o.addPreprocessedComponent(t.key,e),i(!1)},n)}catch(e){o.addPreprocessedComponent(t.key,String(e)),i(!1)}}}};i(!1)},r.getPromise=function(n){return new Promise(function(e,t){r.get(n,e)})},r.getV18=function(a,i){return null==i&&(i=a,a={}),r.get(a,function(e){for(var t=[],n=0;n clientAuth[RES]"))},n.send(JSON.stringify(r)),G.timeEnd("start -> clientAuth[REQ]")}));case 4:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"stop",value:(t=a(regeneratorRuntime.mark(function e(){var r=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=0=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function S(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||0i;(n||r)&&v(!0)}};try{var y=[];y.push(R("DOMContentLoaded",function(){C(J({type:b.DomContentLoaded,data:{}}))}));var w=function(){v(),y.push(q({mutationCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.Mutation},e)}))},mousemoveCb:function(e,t){return C(J({type:b.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.MouseInteraction},e)}))},scrollCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.Scroll},e)}))},viewportResizeCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.ViewportResize},e)}))},inputCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.Input},e)}))},mediaInteractionCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return C(J({type:b.IncrementalSnapshot,data:T({source:L.StyleSheetRule},e)}))},blockClass:u,ignoreClass:r,maskAllInputs:f,inlineStylesheet:l,mousemoveWait:m},h))};return"interactive"===document.readyState||"complete"===document.readyState?w():y.push(R("load",function(){C(J({type:b.Load,data:{}})),w()},window)),function(){y.forEach(function(e){return e()})}}catch(e){console.warn(e)}}return y.addCustomEvent=function(e,t){if(!C)throw new Error("please add custom event after start recording");C(J({type:b.Custom,data:{tag:e,payload:t}}))},y}(),Y=0,Z=1,q=2,J=new(function(){function e(){i(this,e),this.events=[],this.saveInterval=0,this.saveBeforeUnload=!1,this.stopRecordingEvents=function(){}}return c(e,[{key:"start",value:function(){var r=this;return G.time("start -> recorder created"),this.stopRecordingEvents=K({emit:function(e){var t,n;4==e.type&&(e.user_agent=encodeURIComponent(navigator.userAgent.replace('"',"")),e.sizes=(t=document.body,n=document.documentElement,{window_inner_width:window.innerWidth,window_inner_height:window.innerHeight,window_outer_width:window.outerWidth,window_outer_height:window.outerHeight,window_screen_width:window.screen.width,window_screen_height:window.screen.height,body_scroll_width:t.scrollWidth,body_scroll_height:t.scrollHeight,body_offset_width:t.offsetWidth,body_offset_height:t.offsetHeight,html_client_width:n.clientWidth,html_client_height:n.clientHeight,html_scroll_width:n.scrollWidth,html_scroll_height:n.scrollHeight,html_offset_width:n.offsetWidth,html_offset_height:n.offsetHeight}),e.meta={recorder_version:"1.0.5"},e.startTime=performance.timing.connectStart),r.events.push(e),G.timeEnd("start -> first recorded event")}}),G.timeEnd("start -> recorder created"),this.stopRecordingEvents}},{key:"stop",value:function(e){var t,n,r=0 first save sent"),fetch("https://monitor.clickcease.com/V2/recorder/entry2",{method:"POST",headers:{"Content-Type":"application/json"},body:e}).then(function(){G.timeEnd("start -> after first save")})}},{key:"startSaving",value:function(){var e=this;I(N)?M(P):(M(P),M(N)),null==(this.save()||{}).stopReason&&(this.saveInterval=setInterval(function(){return e.save()},3e3))}},{key:"hasInvalidGUIDS",get:function(){return!O(I(N))||!O(I(P))}},{key:"recordingTimeElapsed",get:function(){var e=+sessionStorage.getItem(F);return isNaN(e)||!e?0:e},set:function(e){return sessionStorage.setItem(F,e)}},{key:"isReachedMaxTime",get:function(){return 6e4 found, Please remove one of them."):(window.ccinstalled=!0,G.log("Debug mode."),G.time("start -> first save sent"),G.time("start -> clientAuth[REQ]"),G.time("start -> clientAuth[RES]"),G.time("start -> after first save"),G.time("start -> first recorded event"),G.time("start -> CHEQ response"),function(){var e="[object SafariRemoteNotification]"===(!window.safari||safari.pushNotification).toString();return 0