(window.webpackJsonp=window.webpackJsonp||[]).push([[295],{104:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return l}));var r=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},o=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function c(){var t=window.visualViewport;return t?t.width*t.scale:window.innerWidth||0}function d(){var t=window.visualViewport;return t?t.height*t.scale:window.innerHeight||0}function f(){var t=window.visualViewport;return t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0}function l(){var t=window.visualViewport;return t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0}},132:function(t,e,n){"use strict";function r(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);return Object.defineProperty(t,e,{set:function(t){var e=this;setTimeout((function(){n.set.call(e,t)}),0),r&&r.set&&r.set.call(this,t)}}),function(){Object.defineProperty(t,e,r||{})}}function o(t){return Boolean(t.changedTouches)}function c(t,e){Array.prototype.forEach.call(t,e)}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c}))},140:function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return w})),n.d(e,"a",(function(){return y}));var r=n(73),o=n(14),c=n(76),d=n(47),f=n(45),l=n(132);function h(t,e){return v(t,{document:t,parentNodePrivacyLevel:e})}function v(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:d.d.Document,childNodes:m(t,e)}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:d.d.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(element,t){var e,n=E(element.tagName),l=(v=element,"svg"===v.tagName||v instanceof SVGElement||void 0),h=Object(c.e)(Object(c.c)(element),t.parentNodePrivacyLevel);var v;if(h===o.d.HIDDEN){var w=element.getBoundingClientRect(),O=w.width,T=w.height;return{type:d.d.Element,tagName:n,attributes:(e={rr_width:O+"px",rr_height:T+"px"},e[o.e]=o.g,e),childNodes:[],isSVG:l}}if(h===o.d.IGNORE)return;var N=function(element,t){if(t===o.d.HIDDEN)return{};for(var e={},n=E(element.tagName),r=element.ownerDocument,i=0;i<element.attributes.length;i+=1){var d=element.attributes.item(i).name,l=y(element,t,d);null!==l&&(e[d]=l)}if(element.value&&("textarea"===n||"select"===n||"option"===n||"input"===n)){var h=Object(f.a)(element,t);void 0!==h&&(e.value=h)}if("option"===n&&t===o.d.ALLOW){var v=element;v.selected&&(e.selected=v.selected)}if("link"===n){var w=Array.from(r.styleSheets).find((function(s){return s.href===element.href}));(m=S(w))&&w&&(delete e.rel,delete e.href,e._cssText=m)}if("style"===n&&element.sheet&&!(element.innerText||element.textContent||"").trim().length){var m;(m=S(element.sheet))&&(e._cssText=m)}var O=element;"input"!==n||"radio"!==O.type&&"checkbox"!==O.type||(t===o.d.ALLOW?e.checked=!!O.checked:Object(c.f)(O,t)&&(e.checked=o.b));if("audio"===n||"video"===n){var T=element;e.rr_mediaState=T.paused?"paused":"played"}element.scrollLeft&&(e.rr_scrollLeft=Math.round(element.scrollLeft));element.scrollTop&&(e.rr_scrollTop=Math.round(element.scrollTop));return e}(element,h),_=[];if(element.childNodes.length){_=m(element,t.parentNodePrivacyLevel===h&&t.ignoreWhiteSpace===("head"===n)?t:Object(r.a)(Object(r.a)({},t),{parentNodePrivacyLevel:h,ignoreWhiteSpace:"head"===n}))}return{type:d.d.Element,tagName:n,attributes:N,childNodes:_,isSVG:l}}(t,e);case t.TEXT_NODE:return function(t,e){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.tagName,o=Object(c.d)(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!o)return;return{type:d.d.Text,textContent:o,isStyle:"STYLE"===r||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:d.d.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var l=Object(f.b)(t)||O++,h=n;return h.id=l,Object(f.e)(t,l),e.serializedNodeIds&&e.serializedNodeIds.add(l),h}function w(element){if("SCRIPT"===element.nodeName)return!0;if("LINK"===element.nodeName)return"preload"===(e=r("rel"))&&"script"===r("as")||"shortcut icon"===e||"icon"===e;if("META"===element.nodeName){var t=r("name"),e=r("rel"),n=r("property");return/^msapplication-tile(image|color)$/.test(t)||"application-name"===t||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===t||"description"===t||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(t)||"pinterest"===t||"robots"===t||"googlebot"===t||"bingbot"===t||element.hasAttribute("http-equiv")||"author"===t||"generator"===t||"framework"===t||"publisher"===t||"progid"===t||/^article:/.test(n)||/^product:/.test(n)||"google-site-verification"===t||"yandex-verification"===t||"csrf-token"===t||"p:domain_verify"===t||"verify-v1"===t||"verification"===t||"shopify-checkout-api-token"===t}function r(t){return(element.getAttribute(t)||"").toLowerCase()}return!1}function m(t,e){var n=[];return Object(l.a)(t.childNodes,(function(t){var r=v(t,e);r&&n.push(r)})),n}function y(element,t,e){if(t===o.d.HIDDEN)return null;var n=element.getAttribute(e);if(t===o.d.MASK){var r=element.tagName;switch(e){case"title":case"alt":return o.b}if(!("IMG"!==r&&"SOURCE"!==r||"src"!==e&&"srcset"!==e))return o.a;if("A"===r&&"href"===e)return o.b;if(n&&0===e.indexOf("data-")&&e!==o.e)return o.b}return n&&"string"==typeof n&&n.length>c.a&&"data:"===n.slice(0,5)?"data:truncated":n}var O=1;var T=/[^a-z1-6-_]/;function E(t){var e=t.toLowerCase().trim();return T.test(e)?"div":e}function S(s){try{var t=s.rules||s.cssRules;return t?Array.from(t).map(N).join(""):null}catch(t){return null}}function N(t){return function(t){return"styleSheet"in t}(t)?S(t.styleSheet)||"":t.cssText}},210:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return l}));var r,o=10;function c(t){h(t).segments_count+=1}function d(t){h(t).records_count+=1}function f(t,e){h(t).segments_total_raw_size+=e}function l(t){return null==r?void 0:r.get(t)}function h(t){var e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>o&&function(){if(!r)return;if(r.keys)r.delete(r.keys().next().value);else{var t=!0;r.forEach((function(e,n){t&&(r.delete(n),t=!1)}))}}()),e}},302:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return d}));var r=n(1012),o=n(4),c=6e4;function d(t,data,meta,e,n){var o=new FormData;o.append("segment",new Blob([data],{type:"application/octet-stream"}),meta.session.id+"-"+meta.start),f(meta,(function(t,e){return o.append(t,e)})),o.append("raw_segment_size",e.toString()),new r.a(t,c).send(o,data.byteLength,n)}function f(input,t,e){void 0===e&&(e=""),Object(o.B)(input).forEach((function(n){var r=n[0],o=n[1];"object"==typeof o&&null!==o?f(o,t,""+e+r+"."):t(""+e+r,String(o))}))}},381:function(t,e,n){"use strict";n.d(e,"b",(function(){return O})),n.d(e,"a",(function(){return N}));var r=n(4),o=n(36),c=n(102),d=n(302),f=n(73),l=n(77),h=n(210),v=0,w=function(){function t(t,e,n,r,c,d){var f=this;this.worker=t,this.context=e,this.creationReason=n,this.isFlushed=!1,this.id=v++,this.start=r.timestamp,this.end=r.timestamp,this.recordsCount=1,this.hasFullSnapshot=r.type===l.a.FullSnapshot;var w=this.context.view.id;h.b(w),h.a(w);var m=Object(o.d)((function(e){var data=e.data;"errored"!==data.type&&"initialized"!==data.type&&(data.id===f.id?(h.c(w,data.additionalRawSize),"flushed"===data.type?(d(data.result,data.rawSize),t.removeEventListener("message",m)):c(data.compressedSize)):data.id>f.id&&(t.removeEventListener("message",m),Object(o.b)("Segment did not receive a 'flush' response before being replaced.")))}));t.addEventListener("message",m),this.worker.postMessage({data:'{"records":['+JSON.stringify(r),id:this.id,action:"write"})}return t.prototype.addRecord=function(t){this.end=t.timestamp,this.recordsCount+=1,h.a(this.context.view.id),this.hasFullSnapshot||(this.hasFullSnapshot=t.type===l.a.FullSnapshot),this.worker.postMessage({data:","+JSON.stringify(t),id:this.id,action:"write"})},t.prototype.flush=function(t){this.worker.postMessage({data:"],"+JSON.stringify(this.meta).slice(1)+"\n",id:this.id,action:"flush"}),this.isFlushed=!0,this.flushReason=t},Object.defineProperty(t.prototype,"meta",{get:function(){return Object(f.a)({creation_reason:this.creationReason,end:this.end,has_full_snapshot:this.hasFullSnapshot,records_count:this.recordsCount,start:this.start},this.context)},enumerable:!1,configurable:!0}),t}(),m=3e4,y=d.a;function O(t,e,n,d,f,l){return function(t,e,n,d,f){void 0===f&&(f=window);var l={status:0,nextSegmentCreationReason:"init"},h=t.subscribe(c.a.VIEW_CREATED,(function(){T("view_change")})).unsubscribe,v=t.subscribe(c.a.BEFORE_UNLOAD,(function(){T("before_unload")})).unsubscribe,O=Object(r.h)(f,"visibilitychange",(function(){"hidden"===document.visibilityState&&T("visibility_hidden")}),{capture:!0}).stop;function T(t){1===l.status&&(l.segment.flush(t||"sdk_stopped"),clearTimeout(l.expirationTimeoutId)),l=t?{status:0,nextSegmentCreationReason:t}:{status:2}}function E(t,r){var c=e();if(c){var f=new w(d,c,t,r,(function(t){!f.isFlushed&&t>y&&T("max_size")}),(function(data,t){n(data,f.meta,t,f.flushReason)}));l={status:1,segment:f,expirationTimeoutId:setTimeout(Object(o.d)((function(){T("max_duration")})),m)}}}return{addRecord:function(t){switch(l.status){case 0:E(l.nextSegmentCreationReason,t);break;case 1:l.segment.addRecord(t)}},stop:function(){T(),h(),v(),O()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(!r||!o)return;return{application:{id:t},session:{id:r.id},view:{id:o.view.id}}}(e,n,d)}),f,l)}var T=n(72),E=n(560),S={status:0};function N(t,e){switch(void 0===e&&(e=E.a),S.status){case 0:S={status:1,callbacks:[t]},function(t){void 0===t&&(t=E.a);try{var e=t();return e.addEventListener("error",Object(o.d)(_)),e.addEventListener("message",Object(o.d)((function(t){var n,data=t.data;"errored"===data.type?_(data.error):"initialized"===data.type&&(n=e,1===S.status&&(S.callbacks.forEach((function(t){return t(n)})),S={status:3,worker:n}))}))),e.postMessage({action:"init"}),e}catch(t){_(t)}}(e);break;case 1:S.callbacks.push(t);break;case 2:t();break;case 3:t(S.worker)}}function _(t){1===S.status?(T.a.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&Object(r.u)(t.message,"Content Security Policy")?T.a.error("Please make sure CSP is correctly configured https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy"):Object(o.a)(t),S.callbacks.forEach((function(t){return t()})),S={status:2}):Object(o.a)(t)}},45:function(t,e,n){"use strict";n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return v}));var r=n(14),o=n(76),c=new WeakMap;function d(t){return c.has(t)}function f(t){for(var e=t;e;){if(!d(e))return!1;e=e.parentNode}return!0}function l(t){return c.get(t)}function h(t,e){c.set(t,e)}function v(element,t){var e=element.tagName,n=element.value;if(Object(o.f)(element,t)){var c=element.type;if("INPUT"===e&&("button"===c||"submit"===c||"reset"===c))return n;if(!n||"OPTION"===e)return;return r.b}return"OPTION"===e||"SELECT"===e?element.value:"INPUT"===e||"TEXTAREA"===e?n:void 0}},47:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return o})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule"}(r||(r={}));var o,c={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},d={Play:0,Pause:1};!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(o||(o={}))},73:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},r.apply(this,arguments)}},77:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n(346);var r={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8}},969:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(391),o=n(4),c=n(102),d=n(984),f=n(985),l=Object(f.a)(d.a),h=Object(c.c)(c.d,l);Object(r.b)(Object(o.q)(),"DD_RUM",h)}}]);