@cloudcare/browser-rum 2.2.15 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/recorderApi.js +161 -0
- package/cjs/boot/rum.entry.js +6 -1
- package/cjs/boot/rum.js +15 -5
- package/cjs/boot/rumPublicApi.js +8 -4
- package/cjs/boot/startRecording.js +55 -0
- package/cjs/constants.js +52 -0
- package/cjs/domain/assembly.js +1 -7
- package/cjs/domain/configuration.js +3 -2
- package/cjs/domain/contexts/foregroundContexts.js +138 -0
- package/cjs/domain/contexts/internalContext.js +1 -1
- package/cjs/domain/contexts/urlContexts.js +9 -2
- package/cjs/domain/domMutationCollection.js +4 -5
- package/cjs/domain/initViewportObservable.js +52 -0
- package/cjs/domain/locationChangeObservable.js +12 -26
- package/cjs/domain/performanceCollection.js +2 -13
- package/cjs/domain/replay/record/elementsScrollPositions.js +27 -0
- package/cjs/domain/replay/record/index.js +41 -0
- package/cjs/domain/replay/record/mutationBatch.js +58 -0
- package/cjs/domain/replay/record/mutationObserver.js +383 -0
- package/cjs/domain/replay/record/observers.js +473 -0
- package/cjs/domain/replay/record/privacy.js +256 -0
- package/cjs/domain/replay/record/record.js +174 -0
- package/cjs/domain/replay/record/serializationUtils.js +137 -0
- package/cjs/domain/replay/record/serialize.js +488 -0
- package/cjs/domain/replay/record/shadowRootsController.js +61 -0
- package/cjs/domain/replay/record/utils.js +53 -0
- package/cjs/domain/replay/record/viewports.js +104 -0
- package/cjs/domain/replay/replayStats.js +83 -0
- package/cjs/domain/replay/segmentCollection/buildReplayPayload.js +43 -0
- package/cjs/domain/replay/segmentCollection/deflateWorker.js +4399 -0
- package/cjs/domain/replay/segmentCollection/index.js +33 -0
- package/cjs/domain/replay/segmentCollection/segment.js +101 -0
- package/cjs/domain/replay/segmentCollection/segmentCollection.js +179 -0
- package/cjs/domain/replay/segmentCollection/startDeflateWorker.js +126 -0
- package/cjs/domain/requestCollection.js +35 -17
- package/cjs/domain/rumEventsCollection/actions/actionCollection.js +12 -4
- package/cjs/domain/rumEventsCollection/actions/clickChain.js +3 -3
- package/cjs/domain/rumEventsCollection/actions/computeFrustration.js +6 -5
- package/cjs/domain/rumEventsCollection/actions/getActionNameFromElement.js +8 -6
- package/cjs/domain/rumEventsCollection/actions/getSelectorsFromElement.js +111 -75
- package/cjs/domain/rumEventsCollection/actions/listenActionEvents.js +22 -28
- package/cjs/domain/rumEventsCollection/actions/trackClickActions.js +94 -54
- package/cjs/domain/rumEventsCollection/error/errorCollection.js +13 -5
- package/cjs/domain/rumEventsCollection/view/trackViewEventCounts.js +45 -0
- package/cjs/domain/rumEventsCollection/view/trackViewMetrics.js +1 -19
- package/cjs/domain/rumEventsCollection/view/trackViews.js +21 -18
- package/cjs/domain/rumEventsCollection/view/viewCollection.js +12 -9
- package/cjs/domain/rumSessionManager.js +6 -3
- package/cjs/domain/tracing/getDocumentTraceId.js +2 -10
- package/cjs/domain/trackEventCounts.js +10 -2
- package/cjs/domain/waitPageActivityEnd.js +5 -1
- package/cjs/transport/startRumBatch.js +5 -7
- package/cjs/types/index.js +18 -0
- package/cjs/types/sessionReplayConstants.js +56 -0
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/recorderApi.js +149 -0
- package/esm/boot/rum.entry.js +4 -1
- package/esm/boot/rum.js +15 -6
- package/esm/boot/rumPublicApi.js +8 -4
- package/esm/boot/startRecording.js +44 -0
- package/esm/constants.js +31 -0
- package/esm/domain/assembly.js +1 -7
- package/esm/domain/configuration.js +4 -3
- package/esm/domain/contexts/foregroundContexts.js +122 -0
- package/esm/domain/contexts/internalContext.js +1 -1
- package/esm/domain/contexts/urlContexts.js +10 -3
- package/esm/domain/domMutationCollection.js +5 -6
- package/esm/domain/initViewportObservable.js +39 -0
- package/esm/domain/locationChangeObservable.js +13 -27
- package/esm/domain/performanceCollection.js +1 -12
- package/esm/domain/replay/record/elementsScrollPositions.js +20 -0
- package/esm/domain/replay/record/index.js +3 -0
- package/esm/domain/replay/record/mutationBatch.js +35 -0
- package/esm/domain/replay/record/mutationObserver.js +331 -0
- package/esm/domain/replay/record/observers.js +457 -0
- package/esm/domain/replay/record/privacy.js +233 -0
- package/esm/domain/replay/record/record.js +158 -0
- package/esm/domain/replay/record/serializationUtils.js +107 -0
- package/esm/domain/replay/record/serialize.js +461 -0
- package/esm/domain/replay/record/shadowRootsController.js +49 -0
- package/esm/domain/replay/record/utils.js +38 -0
- package/esm/domain/replay/record/viewports.js +87 -0
- package/esm/domain/replay/replayStats.js +64 -0
- package/esm/domain/replay/segmentCollection/buildReplayPayload.js +31 -0
- package/esm/domain/replay/segmentCollection/deflateWorker.js +4390 -0
- package/esm/domain/replay/segmentCollection/index.js +3 -0
- package/esm/domain/replay/segmentCollection/segment.js +84 -0
- package/esm/domain/replay/segmentCollection/segmentCollection.js +158 -0
- package/esm/domain/replay/segmentCollection/startDeflateWorker.js +113 -0
- package/esm/domain/requestCollection.js +36 -18
- package/esm/domain/rumEventsCollection/actions/actionCollection.js +12 -4
- package/esm/domain/rumEventsCollection/actions/clickChain.js +3 -3
- package/esm/domain/rumEventsCollection/actions/computeFrustration.js +6 -5
- package/esm/domain/rumEventsCollection/actions/getActionNameFromElement.js +6 -6
- package/esm/domain/rumEventsCollection/actions/getSelectorsFromElement.js +105 -74
- package/esm/domain/rumEventsCollection/actions/listenActionEvents.js +22 -28
- package/esm/domain/rumEventsCollection/actions/trackClickActions.js +99 -59
- package/esm/domain/rumEventsCollection/error/errorCollection.js +13 -5
- package/esm/domain/rumEventsCollection/view/trackViewEventCounts.js +33 -0
- package/esm/domain/rumEventsCollection/view/trackViewMetrics.js +1 -18
- package/esm/domain/rumEventsCollection/view/trackViews.js +21 -19
- package/esm/domain/rumEventsCollection/view/viewCollection.js +12 -9
- package/esm/domain/rumSessionManager.js +6 -3
- package/esm/domain/tracing/getDocumentTraceId.js +1 -9
- package/esm/domain/trackEventCounts.js +10 -2
- package/esm/domain/waitPageActivityEnd.js +5 -1
- package/esm/transport/startRumBatch.js +5 -7
- package/esm/types/index.js +1 -0
- package/esm/types/sessionReplayConstants.js +45 -0
- package/package.json +3 -3
- package/src/boot/recorderApi.js +166 -0
- package/src/boot/rum.entry.js +4 -1
- package/src/boot/rum.js +38 -10
- package/src/boot/rumPublicApi.js +13 -3
- package/src/boot/startRecording.js +77 -0
- package/src/constants.js +37 -0
- package/src/domain/assembly.js +1 -6
- package/src/domain/configuration.js +10 -2
- package/src/domain/contexts/foregroundContexts.js +140 -0
- package/src/domain/contexts/internalContext.js +10 -4
- package/src/domain/contexts/urlContexts.js +29 -15
- package/src/domain/domMutationCollection.js +14 -6
- package/src/domain/initViewportObservable.js +46 -0
- package/src/domain/locationChangeObservable.js +17 -25
- package/src/domain/performanceCollection.js +42 -42
- package/src/domain/replay/record/elementsScrollPositions.js +22 -0
- package/src/domain/replay/record/index.js +7 -0
- package/src/domain/replay/record/mutationBatch.js +38 -0
- package/src/domain/replay/record/mutationObserver.js +393 -0
- package/src/domain/replay/record/observers.js +562 -0
- package/src/domain/replay/record/privacy.js +304 -0
- package/src/domain/replay/record/record.js +158 -0
- package/src/domain/replay/record/serializationUtils.js +134 -0
- package/src/domain/replay/record/serialize.js +497 -0
- package/src/domain/replay/record/shadowRootsController.js +58 -0
- package/src/domain/replay/record/utils.js +44 -0
- package/src/domain/replay/record/viewports.js +89 -0
- package/src/domain/replay/replayStats.js +67 -0
- package/src/domain/replay/segmentCollection/buildReplayPayload.js +34 -0
- package/src/domain/replay/segmentCollection/deflateWorker.js +4577 -0
- package/src/domain/replay/segmentCollection/index.js +6 -0
- package/src/domain/replay/segmentCollection/segment.js +87 -0
- package/src/domain/replay/segmentCollection/segmentCollection.js +205 -0
- package/src/domain/replay/segmentCollection/startDeflateWorker.js +101 -0
- package/src/domain/requestCollection.js +64 -28
- package/src/domain/rumEventsCollection/actions/actionCollection.js +11 -4
- package/src/domain/rumEventsCollection/actions/clickChain.js +3 -3
- package/src/domain/rumEventsCollection/actions/computeFrustration.js +7 -4
- package/src/domain/rumEventsCollection/actions/getActionNameFromElement.js +9 -6
- package/src/domain/rumEventsCollection/actions/getSelectorsFromElement.js +130 -108
- package/src/domain/rumEventsCollection/actions/listenActionEvents.js +26 -27
- package/src/domain/rumEventsCollection/actions/trackClickActions.js +162 -92
- package/src/domain/rumEventsCollection/error/errorCollection.js +11 -5
- package/src/domain/rumEventsCollection/view/trackViewEventCounts.js +38 -0
- package/src/domain/rumEventsCollection/view/trackViewMetrics.js +1 -19
- package/src/domain/rumEventsCollection/view/trackViews.js +98 -68
- package/src/domain/rumEventsCollection/view/viewCollection.js +15 -7
- package/src/domain/rumSessionManager.js +33 -19
- package/src/domain/tracing/getDocumentTraceId.js +6 -9
- package/src/domain/trackEventCounts.js +10 -4
- package/src/domain/waitPageActivityEnd.js +4 -1
- package/src/transport/startRumBatch.js +29 -24
- package/src/types/index.js +1 -0
- package/src/types/sessionReplayConstants.js +49 -0
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e=Array.prototype,t=Function.prototype,n=Object.prototype,r=e.slice,i=n.toString,o=n.hasOwnProperty,a=(t.bind,e.forEach),u=(e.indexOf,Array.isArray),s=function(e,t,n){if(null===e)return!1;if(a&&e.forEach===a)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&false===t.call(n,e[r],r,e))return!1}else for(var u in e)if(o.call(e,u)&&false===t.call(n,e[u],u,e))return!1};function c(e){return s(r.call(arguments,1),(function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function f(e){return c({},e)}var d=function(e){return s(r.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},l=function(e){return s(r.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(_(t[n])&&_(e[n])?d(e[n],t[n]):e[n]=t[n])})),e},p=u||function(e){return"[object Array]"===i.call(e)},v=function(e){if(!e)return!1;try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},h=function(e){return e?e.toArray?e.toArray():p(e)?r.call(e):(t=e)&&o.call(t,"callee")?r.call(e):m(e):[];var t},m=function(e){var t=[];return null===e||s(e,(function(e){t[t.length]=e})),t},g=function(e,t,n){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)if(o.call(e,i)){var a=e[i];t.call(n,a,i,e)&&r.push(a)}return r},y=function(e,t,n){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)if(o.call(e,i)){var a=e[i];r.push(t.call(n,a,i,e))}return r},b=function(e,t,n){if(e.some)return e.some(t);for(var r=!1,i=0;i<e.length;i++)if(o.call(e,i)){var a=e[i];if(t.call(n,a,i,e)){r=!0;break}}return r},_=function(e){return null!==e&&"[object Object]"===i.call(e)},w=function(e){if(_(e)){for(var t in e)if(o.call(e,t))return!1;return!0}return!1},S=function(e){var t=[];return s(e,(function(e,n){t.push([n,e])})),t},x=function(e){return"[object String]"===i.call(e)},T=function(e){return"[object Boolean]"===i.call(e)},C=function(e){return"[object Number]"===i.call(e)&&/[\d\.]+/.test(String(e))},E=function e(t){var n=t;try{n=e(t)}catch(e){n=t}return n},O=(Date.now,function(e,t,n){var r,i,o,a,u=0;n||(n={});var s=function(){u=!1===n.leading?0:(new Date).getTime(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){o=arguments;var c=(new Date).getTime();u||!1!==n.leading||(u=c);var f=t-(c-u);return i=this,f<=0||f>t?(r&&(clearTimeout(r),r=null),u=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(r),u=0,r=null},c}),k=function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})));var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,s=0,c="",f=[];if(!(e=String(e)))return e;e=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),u=null;a<128?n++:u=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==u&&(n>t&&(o+=e.substring(t,n)),o+=u,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o}(e);do{t=(o=e.charCodeAt(u++)<<16|e.charCodeAt(u++)<<8|e.charCodeAt(u++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,f[s++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(u<e.length);switch(c=f.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function I(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,I)}function R(e){var t="";return e&&(t=e.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),t||"/"}var A=function(e){var t=function(e){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==e&&this._parse(e)};return t.prototype.setUrl=function(e){this._parse(e)},t.prototype._initValues=function(){for(var e in this._fields)this._values[e]=""},t.prototype.addQueryString=function(e){if("object"!=typeof e)return!1;var t=this._values.QueryString||"";for(var n in e)t=new RegExp(n+"[^&]+").test(t)?t.replace(new RegExp(n+"[^&]+"),n+"="+e[n]):"&"===t.slice(-1)?t+n+"="+e[n]:""===t?n+"="+e[n]:t+"&"+n+"="+e[n];this._values.QueryString=t},t.prototype.getParse=function(){return this._values},t.prototype.getUrl=function(){var e="";return e+=this._values.Origin,e+=this._values.Path,e+=this._values.QueryString?"?"+this._values.QueryString:""},t.prototype._parse=function(e){this._initValues();var t=this._regex.exec(e);if(!t)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==t[this._fields[n]]&&(this._values[n]=t[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new t(e)};var M=function(e){var t={},n=e.split("?")[1]||"";return n&&(t=B("?"+n)),t},B=function(e){for(var t=function(e){return E(e)},n={},r=(e=e||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),u=r[i].substring(o+1);a=t(a),u=t(u),n[a]=u}}return n};function U(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o<t.length;++o)i[o]=U(i[o],t[o],n);return i}var a;i="object"==(null===(a=e)?"null":Array.isArray(a)?"array":typeof a)?e:{};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(i[u]=U(i[u],t[u],n));return i}}function L(e){return U(void 0,e)}function $(e){return e?String(e).substr(0,1)+String(e).substr(1).replace(/\d*/g,"x"):e}function P(e,t,n){if(null==e)return JSON.stringify(e);var r=[!1,void 0];D(e)&&(r=[!0,e.toJSON],delete e.toJSON);var i,o,a=[!1,void 0];"object"==typeof e&&D(i=Object.getPrototypeOf(e))&&(a=[!0,i.toJSON],delete i.toJSON);try{o=JSON.stringify(e,void 0,n)}catch(e){o="<error: unable to serialize object>"}finally{r[0]&&(e.toJSON=r[1]),a[0]&&(i.toJSON=a[1])}return o}function D(e){return"object"==typeof e&&null!==e&&e.hasOwnProperty("toJSON")}function F(){}var N,q=1e3,V=6e4;function j(e){return 0!==e&&100*Math.random()<=e}function Q(e,t){return+e.toFixed(t)}function W(e){return"number"!=typeof e?e:Q(1e6*e,0)}function G(e){return C(e)?Q(1e6*e,0):e}function H(e){return e-re()}function X(e){return Math.round(re()+e)}function z(){return performance.now()}function K(){return{relative:z(),timeStamp:J()}}function J(){return Y()}function Y(){return(new Date).getTime()}function Z(e,t){return t-e}function ee(){return{relative:0,timeStamp:re()}}function te(e){return{relative:e,timeStamp:ne(e)}}function ne(e){var t=Y()-performance.now();return t>re()?Math.round(t+e):X(e)}function re(){return void 0===N&&(N=performance.timing.navigationStart),N}function ie(e,t){for(var n=t.split(".");n.length;){var r=n.shift();if(!(e&&r in e&&o.call(e,r)))return;e=e[r]}return e}function oe(e,t){var n=e.charCodeAt(t-1);return n>=55296&&n<=56319?e.slice(0,t+1):e.slice(0,t)}function ae(e,t,n,r){return ue(e,[t],n,r)}function ue(e,t,n,r){var i=r&&r.once?function(e){o(),n(e)}:n;r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture,s(t,(function(t){e.addEventListener(t,i,r)}));var o=function(){s(t,(function(t){e.removeEventListener(t,i,r)}))};return{stop:o}}function se(e,t){return-1!==e.indexOf(t)}function ce(){var e={};return{get:function(){return e},add:function(t,n){x(t)?e[t]=n:console.error("key 需要传递字符串类型")},remove:function(t){delete e[t]},set:function(t){_(t)?e=t:console.error("content 需要传递对象类型数据")},getContext:function(){return L(e)},setContext:function(t){e=L(t)},setContextProperty:function(t,n){e[t]=L(n)},removeContextProperty:function(t){delete e[t]},clearContext:function(){e={}}}}function fe(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n,e))return r}}function de(e){return C(e)&&e>=0&&e<=100}function le(e){if(e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return e.protocol+"//"+t}function pe(e){var t={};return s(e,(function(e,n){var r;t[(r=n,r.replace(/[A-Z]/g,(function(e,t){return(0!==t?"_":"")+e.toLowerCase()})).replace(/-/g,"_"))]=ve(e)})),t}function ve(e){return p(e)?y(e,(function(e){return ve(e)})):"object"==typeof e&&null!==e?pe(e):e}function he(e){if("object"==typeof e&&e)e=P(e);else if(!x(e))return e;return String(e).replace(/[\s=,"]/g,(function(e){return"\\"+e}))}function me(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\\]*"/g,'"').replace(/"/g,'\\"')+'"'}function ge(e){return"object"==typeof e&&e?me(P(e)):x(e)?me(e):e}function ye(e,t){return null!=e?e:t}var be=function(){this.buffer=[]};be.prototype={add:function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},drain:function(){s(this.buffer,(function(e){e()})),this.buffer.length=0}};var _e=be,we=1/0;function Se(e){this.expireDelay=e,this.entries=[];var t=this;this.clearOldContextsInterval=setInterval((function(){t.clearOldContexts()}),6e4)}Se.prototype.add=function(e,t){var n=this,r={context:e,startTime:t,endTime:we,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.entries.unshift(r),r},Se.prototype.find=function(e){void 0===e&&(e=we);for(var t=0;t<this.entries.length;t++){var n=this.entries[t];if(n.startTime<=e){if(e<=n.endTime)return n.context;break}}},Se.prototype.closeActive=function(e){var t=this.entries[0];t&&t.endTime===we&&t.close(e)},Se.prototype.findAll=function(e){void 0===e&&(e=we);var t=g(this.entries,(function(t){return t.startTime<=e&&e<=t.endTime}));return y(t,(function(e){return e.context}))},Se.prototype.reset=function(){this.entries=[]},Se.prototype.stop=function(){clearInterval(this.clearOldContextsInterval)},Se.prototype.clearOldContexts=function(){for(var e=z()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()};var xe={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Te=function e(t){var n=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(xe,t)||(t=xe.log),e[t].apply(e,n)};Te.debug=console.debug.bind(console),Te.log=console.log.bind(console),Te.info=console.info.bind(console),Te.warn=console.warn.bind(console),Te.error=console.error.bind(console);var Ce={navigator:void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Ee={getMatchMap:function(e){return{Trident:e.indexOf("Trident")>-1||e.indexOf("NET CLR")>-1,Presto:e.indexOf("Presto")>-1,WebKit:e.indexOf("AppleWebKit")>-1,Gecko:e.indexOf("Gecko/")>-1,Safari:e.indexOf("Safari")>-1,Chrome:e.indexOf("Chrome")>-1||e.indexOf("CriOS")>-1,IE:e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1,Edge:e.indexOf("Edge")>-1,Firefox:e.indexOf("Firefox")>-1||e.indexOf("FxiOS")>-1,"Firefox Focus":e.indexOf("Focus")>-1,Chromium:e.indexOf("Chromium")>-1,Opera:e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,Vivaldi:e.indexOf("Vivaldi")>-1,Yandex:e.indexOf("YaBrowser")>-1,Arora:e.indexOf("Arora")>-1,Lunascape:e.indexOf("Lunascape")>-1,QupZilla:e.indexOf("QupZilla")>-1,"Coc Coc":e.indexOf("coc_coc_browser")>-1,Kindle:e.indexOf("Kindle")>-1||e.indexOf("Silk/")>-1,Iceweasel:e.indexOf("Iceweasel")>-1,Konqueror:e.indexOf("Konqueror")>-1,Iceape:e.indexOf("Iceape")>-1,SeaMonkey:e.indexOf("SeaMonkey")>-1,Epiphany:e.indexOf("Epiphany")>-1,360:e.indexOf("QihooBrowser")>-1||e.indexOf("QHBrowser")>-1,"360EE":e.indexOf("360EE")>-1,"360SE":e.indexOf("360SE")>-1,UC:e.indexOf("UC")>-1||e.indexOf(" UBrowser")>-1,QQBrowser:e.indexOf("QQBrowser")>-1,QQ:e.indexOf("QQ/")>-1,Baidu:e.indexOf("Baidu")>-1||e.indexOf("BIDUBrowser")>-1,Maxthon:e.indexOf("Maxthon")>-1,Sogou:e.indexOf("MetaSr")>-1||e.indexOf("Sogou")>-1,LBBROWSER:e.indexOf("LBBROWSER")>-1,"2345Explorer":e.indexOf("2345Explorer")>-1,TheWorld:e.indexOf("TheWorld")>-1,XiaoMi:e.indexOf("MiuiBrowser")>-1,Quark:e.indexOf("Quark")>-1,Qiyu:e.indexOf("Qiyu")>-1,Wechat:e.indexOf("MicroMessenger")>-1,Taobao:e.indexOf("AliApp(TB")>-1,Alipay:e.indexOf("AliApp(AP")>-1,Weibo:e.indexOf("Weibo")>-1,Douban:e.indexOf("com.douban.frodo")>-1,Suning:e.indexOf("SNEBUY-APP")>-1,iQiYi:e.indexOf("IqiyiApp")>-1,Windows:e.indexOf("Windows")>-1,Linux:e.indexOf("Linux")>-1||e.indexOf("X11")>-1,"Mac OS":e.indexOf("Macintosh")>-1,Android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,Ubuntu:e.indexOf("Ubuntu")>-1,FreeBSD:e.indexOf("FreeBSD")>-1,Debian:e.indexOf("Debian")>-1,"Windows Phone":e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,BlackBerry:e.indexOf("BlackBerry")>-1||e.indexOf("RIM")>-1,MeeGo:e.indexOf("MeeGo")>-1,Symbian:e.indexOf("Symbian")>-1,iOS:e.indexOf("like Mac OS X")>-1,"Chrome OS":e.indexOf("CrOS")>-1,WebOS:e.indexOf("hpwOS")>-1,Mobile:e.indexOf("Mobi")>-1||e.indexOf("iPh")>-1||e.indexOf("480")>-1,Tablet:e.indexOf("Tablet")>-1||e.indexOf("Nexus 7")>-1,iPad:e.indexOf("iPad")>-1}},matchInfoMap:function(e){var t=Ce.navigator.userAgent||{},n=Ee.getMatchMap(t);for(var r in Ce.infoMap)for(var i=0;i<Ce.infoMap[r].length;i++){var o=Ce.infoMap[r][i];n[o]&&(e[r]=o)}},getOS:function(){return Ee.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var e=this,t=Ce.navigator.userAgent||{};e.osVersion="",e.osMajor="";var n={Windows:function(){var e=t.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[e]||e},Android:function(){return t.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return t.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return t.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return t.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return t.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return t.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[e.os]&&(e.osVersion=n[e.os](),e.osVersion===t&&(e.osVersion="")),e.osVersion&&(e.osMajor=e.osVersion.split(".").length&&e.osVersion.split(".")[0]),{version:e.osVersion,osMajor:e.osMajor}},getOrientationStatu:function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"},getDeviceType:function(){var e=this;return e.device="PC",Ee.matchInfoMap(e),e.device},getNetwork:function(){return navigator&&navigator.connection&&navigator.connection.effectiveType},getLanguage:function(){var e;return this.language=((e=(Ce.navigator.browserLanguage||Ce.navigator.language).split("-"))[1]&&(e[1]=e[1].toUpperCase()),e.join("_")),this.language},getBrowserInfo:function(){var e=this;Ee.matchInfoMap(e);var t=Ce.navigator.userAgent||{},n=function(e,t){var n=Ce.navigator.mimeTypes;for(var r in n)if(n[r][e]==t)return!0;return!1},r=Ee.getMatchMap(t),i=!1;if(window.chrome){var o=t.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(t.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Ce.navigator&&void 0===Ce.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return t.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return t.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return t.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return t.replace(/^.*Edge\/([\d.]+).*$/,"$1")},Firefox:function(){return t.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return t.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return t.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return t.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return t.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return t.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return t.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return t.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return t.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return t.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return t.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return t.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return t.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return t.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return t.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return t.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return t.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[t.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[t.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return t.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return t.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return t.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return t.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return t.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return t.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var e="";t.indexOf("LieBaoFast")>-1&&(e=t.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=t.replace(/^.*Chrome\/([\d]+).*$/,"$1");return e||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return t.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return t.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return t.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return t.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return t.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return t.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return t.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return t.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return t.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return t.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return t.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return t.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return t.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return e.browserVersion="",e.browserMajor="",a[e.browser]&&(e.browserVersion=a[e.browser](),e.browserVersion==t&&(e.browserVersion="")),"Chrome"==e.browser&&t.match(/\S+Browser/)&&(e.browser=t.match(/\S+Browser/)[0],e.version=t.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==e.browser&&(e.version>"75"?e.engine="Blink":e.engine="EdgeHTML"),("Chrome"==e.browser&&parseInt(e.browserVersion)>27||r.Chrome&&"WebKit"==e.engine&&parseInt(e.browserVersion)>27||"Opera"==e.browser&&parseInt(e.version)>12||"Yandex"==e.browser)&&(e.engine="Blink"),e.browserVersion&&(e.browserMajor=e.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:e.browser,browserVersion:e.browserVersion,engine:e.engine,browserMajor:e.browserMajor}},getGeoPostion:function(e){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(t){e(t)}),(function(e){Te.warn(e)}))}},Oe={os:Ee.getOS(),osVersion:Ee.getOSVersion().version,osVersionMajor:Ee.getOSVersion().osMajor,browser:Ee.getBrowserInfo().browser,browserVersion:Ee.getBrowserInfo().browserVersion,browserVersionMajor:Ee.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Ee.getNetwork(),divice:Ee.getDeviceType()},ke="beforeunload",Ie="click",Re="keydown",Ae="load",Me="popstate",Be="scroll",Ue="touchstart",Le="visibilitychange",$e="DOMContentLoaded",Pe="pointerdown",De="pointerup",Fe="pointercancel",Ne="hashchange",qe="pagehide",Ve="mousedown",je="input",Qe="securitypolicyviolation",We="selectionchange",Ge="document",He="xhr",Xe="beacon",ze="fetch",Ke="css",Je="js",Ye="image",Ze="font",et="media",tt="other",nt="click",rt="custom",it="rage_click",ot="error_click",at="dead_click",ut={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},st="initial_load",ct="route_change",ft={FETCH:ze,XHR:He},dt="ddtrace",lt="zipkin",pt="zipkin_single_header",vt="w3c_traceparent",ht="skywalking_v3",mt="jaeger",gt="handled",yt="unhandled";function bt(e,t,n){var r=e[t],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return e[t]=o,{stop:function(){e[t]===o?e[t]=r:i=r}}}function _t(e,t,n){return bt(e,t,(function(e){return function(){var t;return n&&n.before&&n.before.apply(this,arguments),"function"==typeof e&&(t=e.apply(this,arguments)),n&&n.after&&n.after.apply(this,arguments),t}}))}var wt="?";function St(e){var t=[],n=Rt(e,"stack");return n&&s(n.split("\n"),(function(e){var n=function(e){var t=Tt.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=Ct.exec(t[2]);r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||wt,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=Et.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:wt,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=Ot.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||wt,line:+t[3],url:t[2]}}(e)||function(e){var t=kt.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=It.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||wt,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=wt),t.push(n))})),{message:Rt(e,"message"),name:Rt(e,"name"),stack:t}}var xt="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Tt=new RegExp("^\\s*at (.*?) ?\\("+xt+"(?::(\\d+))?"+"(?::(\\d+))?\\)?\\s*$","i"),Ct=new RegExp("\\((\\S*)(?::(\\d+))(?::(\\d+))\\)");var Et=new RegExp("^\\s*at ?"+xt+"(?::(\\d+))?"+"(?::(\\d+))??\\s*$","i");var Ot=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var kt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,It=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Rt(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var At=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Mt(e){var t=function(e){return _t(window,"onerror",{before:function(t,n,r,i,o){var a;if(o)a=St(o),e(a,o);else{var u,s={url:n,column:i,line:r},c=t;if("[object String]"==={}.toString.call(t)){var f=At.exec(c);f&&(u=f[1],c=f[2])}e(a={name:u,message:"string"==typeof c?c:void 0,stack:[s]},t)}}})}(e),n=function(e){return _t(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=St(n);e(r,n)}})}(e);return{stop:function(){t.stop(),n.stop()}}}var Bt={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ut(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,u=e.handling;return t&&(void 0!==t.message||n instanceof Error)?{startClocks:i,source:a,handling:u,originalError:n,message:t.message||"Empty message",stack:$t(t),handlingStack:r,type:t.name,causes:Dt(n,a)}:{startClocks:i,source:a,handling:u,originalError:n,message:o+" "+P(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:t&&t.name}}function Lt(){var e=new Error;if(!e.stack)try{throw e}catch(e){}var t=St(e);return t.stack=t.stack.slice(2),$t(t)}function $t(e){var t=Pt(e);return s(e.stack,(function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"("+e.args.join(", ")+")":"",i=e.line?":"+e.line:"",o=e.line&&e.column?":"+e.column:"";t+="\n at "+n+r+" @ "+e.url+i+o})),t}function Pt(e){return(e.name||"Error")+": "+e.message}function Dt(e,t){for(var n=e,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=St(n.cause);r.push({message:n.cause.message,source:t,type:i&&i.name,stack:i&&$t(i)}),n=n.cause}return r.length?r:void 0}var Ft=function(e){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=e};Ft.prototype={subscribe:function(e){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e);var t=this;return{unsubscribe:function(){t.observers=g(t.observers,(function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},notify:function(e){s(this.observers,(function(t){t(e)}))}};var Nt=Ft;function qt(){var e=[].slice.call(arguments),t=new Nt((function(){var n=y(e,(function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return s(n,(function(e){return e.unsubscribe()}))}}));return t}var Vt={};function jt(e){var t=y(e,(function(e){return Vt[e]||(Vt[e]=function(e){var t=new Nt((function(){var n=console[e];return console[e]=function(){var r=[].slice.call(arguments);n.apply(console,arguments);var i=Lt();t.notify(Qt(r,e,i))},function(){console[e]=n}}));return t}(e)),Vt[e]}));return qt.apply(this,t)}function Qt(e,t,n){var r,i=y(e,(function(e){return function(e){if("string"==typeof e)return e;if(e instanceof Error)return Pt(St(e));return P(e,0,2)}(e)})).join(" ");if(t===xe.error){var o=fe(e,(function(e){return e instanceof Error}));r=o?$t(St(o)):void 0,i="console error: "+i}return{api:t,message:i,stack:r,handlingStack:n}}var Wt="intervention",Gt="csp_violation";function Ht(e){var t,n=[];se(e,Gt)&&n.push(t=new Nt((function(){return ae(document,Qe,(function(e){t.notify(function(e){var t=Gt,n="'"+e.blockedURI+"' blocked by '"+e.effectiveDirective+"' directive";return{type:Gt,subtype:e.effectiveDirective,message:t+": "+n,stack:Xt(e.effectiveDirective,n+' of the policy "'+oe(e.originalPolicy,100)+'"',e.sourceFile,e.lineNumber,e.columnNumber)}}(e))})).stop})));var r=g(e,(function(e){return e!==Gt}));return r.length&&n.push(function(e){var t=new Nt((function(){if(window.ReportingObserver){var n=function(e){s(e,(function(e){t.notify(function(e){var t=e.body,n=e.type;return{type:n,subtype:t.id,message:n+": "+t.message,stack:Xt(t.id,t.message,t.sourceFile,t.lineNumber,t.columnNumber)}}(e))}))},r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}));return t}(r)),qt.apply(this,n)}function Xt(e,t,n,r,i){return n&&$t({name:e,message:t,stack:[{func:"?",url:n,line:r,column:i}]})}var zt=function(){this._events=[],this.pendingEvents=[]};zt.prototype={emit:function(e){var t=[].slice.call(arguments,1);s(this._events,(function(n){if(n.type!==e)return!1;n.callback.apply(n.context,t)}))},on:function(e,t,n){"function"==typeof t&&this._events.push({type:e,callback:t,context:n||this})}};new zt;var Kt,Jt="PERFORMANCE_ENTRIES_COLLECTED",Yt="AUTO_ACTION_COMPLETED",Zt="VIEW_CREATED",en="VIEW_UPDATED",tn="VIEW_ENDED",nn="SESSION_RENEWED",rn="SESSION_EXPIRED",on="BEFORE_UNLOAD",an="REQUEST_STARTED",un="REQUEST_COMPLETED",sn="RAW_RUM_EVENT_COLLECTED",cn="RUM_EVENT_COLLECTED",fn="RAW_ERROR_COLLECTED";function dn(){this.callbacks=[]}function ln(e,t,n){var r=l({},e),i=n(r);return s(t,(function(t){var n=pn(e,t),i=pn(r,t);"string"==typeof n&&"string"==typeof i&&function(e,t,n){for(var r=e,i=t.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!vn(r,a))return;o!==i.length-1?r=r[a]:r[a]=n}}(e,t,i)})),i}function pn(e,t){for(var n=e,r=t.split("."),i=0;i<r.length;i++){var o=r[i];if(!vn(n,o))return;n=n[o]}return n}function vn(e,t){return"object"==typeof e&&null!==e&&t in e}function hn(e,t,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&setTimeout((function(){r=0}),V),(r+=1)<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:"Reached max number of "+e+"s by minute: "+t,source:Bt.AGENT,startClocks:K()})}finally{i=!1}}return!0}}}function mn(e){return yn(e,le(window.location)).href}function gn(e){return le(yn(e))}function yn(e,t){if(function(){if(void 0!==Kt)return Kt;try{var e=new URL("http://test/path");return Kt="http://test/path"===e.href}catch(e){Kt=!1}return Kt}())return void 0!==t?new URL(e,t):new URL(e);if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: "+e);var n=document,r=n.createElement("a");if(void 0!==t){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,n.head.appendChild(i),n.body.appendChild(r)}return r.href=e,r}dn.prototype={notify:function(e,t){var n=this.callbacks[e];n&&s(n,(function(e){e(t)}))},subscribe:function(e,t){this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t);var n=this;return{unsubscribe:function(){n.callbacks[e]=g(n.callbacks[e],(function(e){return e!==t}))}}}};var bn=navigator.userAgent.toLowerCase(),_n=function(){return/iphone os/.test(bn)};var wn;function Sn(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",u=r&&r.domain?";domain="+r.domain:"",s=r&&r.secure?";secure":"";document.cookie=e+"="+t+";"+o+";path=/;samesite="+a+u+s}function xn(e){return function(e,t){var n=e.match("(?:^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,e)}var Tn,Cn,En=/^\s+|\s+$/g;function On(e){return e.replace(En,"")}function kn(e){return e.lastIndexOf("/")===e.length-1?On(e)+"v1/write/logging":On(e)+"/v1/write/logging"}function In(e){var t,n;if(void 0===e.sampleRate||de(e.sampleRate))return c({beforeSend:e.beforeSend&&(t=e.beforeSend,n="beforeSend threw an error:",function(){var e=[].slice.call(arguments);try{return t.apply(this,e)}catch(e){Te.error(n,e)}}),cookieOptions:Rn(e),sampleRate:ye(e.sampleRate,100),service:e.service,version:e.version,env:e.env,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120},function(e){var t=function(e){return!1};"isIntakeUrl"in e&&v(e.isIntakeUrl)&&T(e.isIntakeUrl())&&(t=e.isIntakeUrl);var n,r=function(e){return!1};return"isServerError"in e&&v(e.isServerError)&&T(e.isServerError())&&(r=e.isServerError),{datakitUrl:(n=e.datakitUrl||e.datakitOrigin,n.lastIndexOf("/")===n.length-1?On(n)+"v1/write/rum":On(n)+"/v1/write/rum"),logsEndpoint:kn(e.datakitOrigin),isIntakeUrl:t,isServerError:r}}(e));Te.error("Sample Rate should be a number between 0 and 100")}function Rn(e){var t={};return t.secure=function(e){return!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie}(e),t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===wn){for(var e="dd_site_test_".concat(I()),t=window.location.hostname.split("."),n=t.pop();t.length&&!xn(e);)n=t.pop()+"."+n,Sn(e,"test",q,{domain:n});wn=n}return wn}()),t}function An(){var e;return Tn||(e=new Nt((function(){if(window.fetch){var t=bt(window,"fetch",(function(t){return function(n,r){var i,o=function(e,t,n){var r=n&&n.method||"object"==typeof t&&t.method||"GET",i=mn("object"==typeof t&&t.url||t),o=K(),a={state:"start",init:n,input:t,method:r,startClocks:o,url:i};return e.notify(a),a}(e,n,r);return o?(i=t.call(this,o.input,o.init),function(e,t,n){var r=function(t){var r=n;r.state="complete",r.duration=Z(r.startClocks.timeStamp,J()),"stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r)):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1,e.notify(r))};t.then(r,r)}(e,i,o)):i=t.call(this,n,r),i}}));return t.stop}})),Tn=e),Tn}var Mn={};function Bn(){var e;return Cn||(e=new Nt((function(){var t=_t(XMLHttpRequest.prototype,"open",{before:Un}),n=_t(XMLHttpRequest.prototype,"send",{before:function(){Ln.call(this,e)}}),r=_t(XMLHttpRequest.prototype,"abort",{before:Pn});return function(){t.stop(),n.stop(),r.stop()}})),Cn=e),Cn}function Un(e,t){var n=this._DATAFLUX_REQUEST_UUID||I();this._DATAFLUX_REQUEST_UUID=n,Mn[n]={state:"open",method:e,url:mn(String(t))}}function Ln(e){var t=Mn[this._DATAFLUX_REQUEST_UUID];if(t){var n=t;n.state="start",n.startTime=z(),n.startClocks=K(),n.isAborted=!1,n.xhr=this;var r=!1,i=_t(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}),o=function o(){if(this.removeEventListener("loadend",o),i.stop(),!r){r=!0;var a=t;a.state="complete",a.duration=Z(n.startClocks.timeStamp,J()),a.status=this.status,e.notify(f(a)),$n.call(this)}};this.addEventListener("loadend",o),e.notify(n)}}function $n(){delete Mn[this._DATAFLUX_REQUEST_UUID],delete this._DATAFLUX_REQUEST_UUID}function Pn(){var e=Mn[this._DATAFLUX_REQUEST_UUID];e&&(e.isAborted=!0)}var Dn={action_id:"action.id",sdk_name:"_dd.sdk_name",sdk_version:"_dd.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group",view_url_query:"view.url_query"},Fn={view:{type:ut.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",is_active:"view.is_active"},fields:{view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",cumulative_layout_shift:"view.cumulative_layout_shift",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_meaningful_paint:"view.largest_contentful_paint",first_paint_time:"view.fpt",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent"}},resource:{type:ut.RESOURCE,tags:{trace_id:"_dd.trace_id",span_id:"_dd.span_id",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:ut.ERROR,tags:{error_id:"error.id",trace_id:"_dd.trace_id",span_id:"_dd.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"]}},long_task:{type:ut.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ut.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count"}},browser_log:{type:ut.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"]}}};var Nn,qn=144e5,Vn=9e5,jn=/^([a-z]+)=([a-z0-9-]+)$/,Qn="&",Wn="_dataflux_s",Gn=[];function Hn(e,t){if(void 0===t&&(t=0),Nn||(Nn=e),e===Nn)if(t>=100)Kn();else{var n,r=Yn();if(Xn()){if(r.lock)return void zn(e,t);if(n=I(),r.lock=n,Jn(r,e.options),(r=Yn()).lock!==n)return void zn(e,t)}var i=e.process(r);if(Xn()&&(r=Yn()).lock!==n)zn(e,t);else{if(i&&function(e,t){if(Zn(e))return void function(e){Sn(Wn,"",0,e)}(t);e.expire=String(Y()+Vn),Jn(e,t)}(i,e.options),Xn()&&(!i||!Zn(i))){if((r=Yn()).lock!==n)return void zn(e,t);delete r.lock,Jn(r,e.options),i=r}e.after&&e.after(i||r),Kn()}}else Gn.push(e)}function Xn(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function zn(e,t){setTimeout((function(){Hn(e,t+1)}),10)}function Kn(){Nn=void 0;var e=Gn.shift();e&&Hn(e)}function Jn(e,t){Sn(Wn,function(e){return y(S(e),(function(e){return e[0]+"="+e[1]})).join(Qn)}(e),Vn,t)}function Yn(){var e=xn(Wn),t={};return function(e){return void 0!==e&&(-1!==e.indexOf(Qn)||jn.test(e))}(e)&&s(e.split(Qn),(function(e){var n=jn.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}})),t}function Zn(e){return w(e)}function er(e,t,n){var r=new Nt,i=new Nt,o=setInterval((function(){Hn({options:e,process:function(e){return c(e)?void 0:{}},after:u})}),1e3),a=function(){var e=Yn();if(c(e))return e;return{}}();function u(e){return c(e)||(e={}),s()&&(!function(e){return a.id!==e.id||a[t]!==e[t]}(e)?a=e:(a={},i.notify())),e}function s(){return void 0!==a[t]}function c(e){return(void 0===e.created||Y()-Number(e.created)<qn)&&(void 0===e.expire||Y()<Number(e.expire))}return{expandOrRenewSession:O((function(){var i;Hn({options:e,process:function(e){var r=u(e);return i=function(e){var r=n(e[t]),i=r.trackingType,o=r.isTracked;e[t]=i,o&&!e.id&&(e.id=I(),e.created=String(Y()));return o}(r),r},after:function(e){i&&!s()&&function(e){a=e,r.notify()}(e),a=e}})}),1e3),expandSession:function(){Hn({options:e,process:function(e){return s()?u(e):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,stop:function(){clearInterval(o)}}}var tr=[],nr=function(e,t,n){var r=er(e,t,n);tr.push((function(){return r.stop()}));var i,o=new Se(144e5);function a(){return{id:r.getSession().id,trackingType:r.getSession()[t]}}return tr.push((function(){return o.stop()})),r.renewObservable.subscribe((function(){o.add(a(),z())})),r.expireObservable.subscribe((function(){o.closeActive(z())})),r.expandOrRenewSession(),o.add(a(),ee().relative),i=ue(window,[Ie,Ue,Re,Be],(function(){return r.expandOrRenewSession()}),{capture:!0,passive:!0}),tr.push(i.stop),function(e){var t=function(){"visible"===document.visibilityState&&e()},n=ae(document,Le,t);tr.push(n.stop);var r=setInterval(t,6e4);tr.push((function(){clearInterval(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(e){return o.find(e)},renewObservable:r.renewObservable,expireObservable:r.expireObservable}};var rr=3145728,ir="UP",or="FAILURE_DETECTED",ar="DOWN",ur="AFTER_SUCCESS",sr="AFTER_RESUME";function cr(e,t,n,r){t.transportStatus===ir&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?dr(e,t,n,{onSuccess:function(){return lr(ur,t,n,r)},onFailure:function(){t.queuedPayloads.enqueue(e),fr(t,n,r)}}):t.queuedPayloads.enqueue(e)}function fr(e,t,n){e.transportStatus===ar&&setTimeout((function(){dr(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,lr(sr,e,t,n)},onFailure:function(){e.currentBackoffTime=Math.min(256e3,2*e.currentBackoffTime),fr(e,t,n)}})}),e.currentBackoffTime)}function dr(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return 0!==e.status&&e.status<500}(n)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?or:ar,t.lastFailureStatus=n.status,o()):(t.transportStatus=ir,i())}))}function lr(e,t,n,r){e===ur&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(r({message:"Reached max events size queued for upload: 3MiB",source:Bt.AGENT,startClocks:K()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=pr();i.size()>0;)cr(i.dequeue(),t,n,r)}function pr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=rr}}}function vr(e){return e?e+(-1===e.indexOf("?")?"?":"&")+"precision=ms":e}function hr(e,t,n){var r={transportStatus:ir,lastFailureStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:pr(),queueFullReported:!1},i=function(n,r){return function(e,t,n,r){var i=n.data,o=n.bytesCount,a=vr(e);(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}})()&&o<t?fetch(a,{method:"POST",body:i,keepalive:!0}).then((function(e){"function"==typeof r&&r({status:e.status})}),(function(){mr(a,i,r)})):mr(a,i,r)}(e,t,n,r)};return{send:function(e){cr(e,r,i,n)},sendOnExit:function(n){!function(e,t,n){var r=n.data,i=n.bytesCount,o=vr(e);if(navigator.sendBeacon&&i<t)try{if(navigator.sendBeacon(o,r))return}catch(e){}mr(o,r)}(e,t,n)}}}function mr(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(t),r.addEventListener("loadend",(function(){"function"==typeof n&&n({status:r.status})}))}var gr=/[^\u0000-\u007F]/,yr="custom_keys",br=function(e){if(!e||!e.type)return{rowStr:"",rowData:void 0};var t={tags:{},fields:{}},n=!1,r="";return s(Fn,(function(i,o){if(i.type===e.type){r+=o+",",t.measurement=o;var a=[],u=d({},Dn,i.tags),c=["date","type",yr];s(u,(function(n,r){var i=ie(e,n);c.push(r),(i||C(i))&&(t.tags[r]=function(e){return x(e)?e:P(e)}(i),a.push(he(r)+"="+he(i)))}));var f=[];if(s(i.fields,(function(n,r){if(p(n)&&2===n.length){n[0];var i=n[1],o=ie(e,i);c.push(r),(o||C(o))&&(t.fields[r]=o,f.push(he(r)+"="+ge(o)))}else if(x(n)){o=ie(e,n);c.push(r),(o||C(o))&&(t.fields[r]=o,f.push(he(r)+"="+ge(o)))}})),e.tags&&_(e.tags)&&!w(e.tags)){var l=[];s(e.tags,(function(e,n){c.indexOf(n)>-1||(c.push(n),(e||C(e))&&(l.push(n),t.fields[n]=e,f.push(he(n)+"="+ge(e))))})),l.length&&(t.fields.custom_keys=ge(l),f.push(he(yr)+"="+ge(l)))}e.type===ut.LOGGER&&s(e,(function(e,n){-1===c.indexOf(n)&&(C(e)||x(e)||T(e))&&(t.fields[n]=e,f.push(he(n)+"="+ge(e)))})),a.length&&(r+=a.join(",")),f.length&&(r+=" ",r+=f.join(","),n=!0),r=r+" "+e.date,t.time=G(e.date)}})),{rowStr:n?r:"",rowData:n?t:void 0}},_r=function(e,t,n,r,i,o){this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,this.request=e,this.batchMessagesLimit=t,this.batchBytesLimit=n,this.messageBytesLimit=r,this.flushTimeout=i,this.beforeUnloadCallback="function"==typeof o?o:F,this.setupFlushOnExit(),this.flushPeriodically()};_r.prototype.add=function(e){this.addOrUpdate(e)},_r.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},_r.prototype.flush=function(e){if("function"!=typeof e&&(e=this.request.send),0!==this.bufferMessagesCount){var t=this.pushOnlyBuffer.concat(m(this.upsertBuffer)),n=this.bufferBytesCount;this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,t.length>0&&e({data:t.join("\n"),bytesCount:n})}},_r.prototype.flushOnExit=function(){this.flush(this.request.sendOnExit)},_r.prototype.computeBytesCount=function(e){return gr.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length},_r.prototype.addOrUpdate=function(e,t){var n=this.process(e),r=n.processedMessage,i=n.messageBytesCount;i>=this.messageBytesLimit?Te.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(t)&&this.remove(t),this.willReachedBytesLimitWith(i)&&this.flush(),this.push(r,i,t),this.isFull()&&this.flush())},_r.prototype.process=function(e){var t=br(e).rowStr;return{processedMessage:t,messageBytesCount:this.computeBytesCount(t)}},_r.prototype.push=function(e,t,n){this.bufferMessagesCount>0&&(this.bufferBytesCount+=1),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.bufferBytesCount+=t,this.bufferMessagesCount+=1},_r.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.computeBytesCount(t);this.bufferBytesCount-=n,this.bufferMessagesCount-=1,this.bufferMessagesCount>0&&(this.bufferBytesCount-=1)},_r.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},_r.prototype.willReachedBytesLimitWith=function(e){return this.bufferBytesCount+e+1>=this.batchBytesLimit},_r.prototype.isFull=function(){return this.bufferMessagesCount===this.batchMessagesLimit||this.bufferBytesCount>=this.batchBytesLimit},_r.prototype.flushPeriodically=function(){var e=this;setTimeout((function(){e.flush(),e.flushPeriodically()}),this.flushTimeout)},_r.prototype.setupFlushOnExit=function(){var e=this;navigator.sendBeacon&&(ae(window,ke,this.beforeUnloadCallback),ae(document,Le,(function(){"hidden"===document.visibilityState&&e.flushOnExit()})),ae(window,ke,(function(){return e.flushOnExit()})))};var wr=_r;var Sr="0",xr="1",Tr="2";function Cr(e,t){var n=nr(e.cookieOptions,"rum",(function(t){return function(e,t){var n;n=function(e){return e===Sr||e===xr||e===Tr}(t)?t:j(e.sampleRate)?j(e.sessionReplaySampleRate)?xr:Tr:Sr;return{trackingType:n,isTracked:Er(n)}}(e,t)}));return n.expireObservable.subscribe((function(){t.notify(rn)})),n.renewObservable.subscribe((function(){t.notify(nn)})),{findTrackedSession:function(e){var t=n.findActiveSession(e);if(t&&Er(t.trackingType))return{id:t.id}}}}function Er(e){return e===Tr||e===xr}var Or="_dataflulx_usr_id",kr="initial_document",Ir=[[Ge,function(e){return kr===e}],[He,function(e){return"xmlhttprequest"===e}],[ze,function(e){return"fetch"===e}],[Xe,function(e){return"beacon"===e}],[Ke,function(e,t){return null!==t.match(/\.css$/i)}],[Je,function(e,t){return null!==t.match(/\.js$/i)}],[Ye,function(e,t){return se(["image","img","icon"],e)||null!==t.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Ze,function(e,t){return null!==t.match(/\.(woff|eot|woff2|ttf)$/i)}],[et,function(e,t){return se(["audio","video"],e)||null!==t.match(/\.(mp3|mp4)$/i)}]];function Rr(e){var t=e.name;if(!function(e){try{return!!yn(e)}catch(e){return!1}}(t))return tt;var n=function(e){var t=yn(e).pathname;return"/"===t[0]?t:"/"+t}(t),r=tt;return s(Ir,(function(t){var i=t[0];if((0,t[1])(e.initiatorType,n))return r=i,!1})),r}function Ar(){for(var e=h(arguments),t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}var Mr=/[^\u0000-\u007F]/;function Br(e,t){return n=e,(Mr.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>t;var n}function Ur(e){var t=Lr(e);if(t){var n=t.startTime,r=t.fetchStart,i=t.redirectStart,o=t.redirectEnd,a=t.domainLookupStart,u=t.domainLookupEnd,s=t.connectStart,c=t.secureConnectionStart,f=t.connectEnd,d=t.requestStart,l=t.responseStart,p=t.responseEnd,v={firstbyte:W(l-a),trans:W(p-l),ttfb:W(l-d),downloadTime:Pr(n,l,p),firstByteTime:Pr(n,d,l)};return f!==r&&(v.tcp=W(f-s),v.connectTime=Pr(n,s,f),Ar(s,c,f)&&(v.ssl=W(f-c),v.sslTime=Pr(n,c,f))),u!==r&&(v.dns=W(u-a),v.dnsTime=Pr(n,a,u)),$r(e)&&(v.redirect=W(o-i),v.redirectTime=Pr(n,i,o)),v}}function Lr(e){if(Ar(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd)){if(!$r(e))return e;var t=e.redirectStart,n=e.redirectEnd;if(t<e.startTime&&(t=e.startTime),n<e.startTime&&(n=e.fetchStart),Ar(e.startTime,t,n,e.fetchStart))return d({},e,{redirectEnd:n,redirectStart:t})}}function $r(e){return e.fetchStart!==e.startTime}function Pr(e,t,n){return{duration:W(n-t),start:W(t-e)}}function Dr(e){if(e.startTime<e.responseStart)return e.decodedBodySize}function Fr(e,t){return t&&!function(e,t){var n=[t.datakitUrl];return t.logsEndpoint&&n.push(t.logsEndpoint),b(n,(function(t){return 0===e.indexOf(t)}))||t.isIntakeUrl(e)}(t,e)}function Nr(){return void 0!==window.performance&&"getEntries"in performance}function qr(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&se(PerformanceObserver.supportedEntryTypes,e)}function Vr(e,t){var n;if(n=function(n){Wr(e,t,[n])},jr("interactive",(function(){var e,t={entryType:"resource",initiatorType:kr,traceId:""};if(qr("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];e=d(r.toJSON(),t)}else{var i=Qr();e=d(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},t)}n(e)})),Nr()){var r=performance.getEntries();setTimeout((function(){Wr(e,t,r)}))}if(window.PerformanceObserver){var i=function(n){Wr(e,t,n.getEntries())},o=["resource","navigation","longtask","paint"],a=["largest-contentful-paint","first-input","layout-shift"];try{s(a,(function(e){new PerformanceObserver(i).observe({type:e,buffered:!0})}))}catch(e){s(a,(function(e){o.push(e)}))}new PerformanceObserver(i).observe({entryTypes:o}),Nr()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}qr("navigation")||function(e){function t(){e(d(Qr(),{entryType:"navigation"}))}jr("complete",(function(){setTimeout(t)}))}((function(n){Wr(e,t,[n])})),qr("first-input")||function(e){var t=Y(),n=!1,r=ue(window,[Ie,Ve,Re,Ue,Pe],(function(e){if(e.cancelable){var t={entryType:"first-input",processingStart:z(),startTime:e.timeStamp};e.type===Pe?i(t):o(t)}}),{passive:!0,capture:!0}).stop;function i(e){ue(window,[De,Fe],(function(t){t.type===De&&o(e)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<Y()-t&&e(i)}}}((function(n){return Wr(e,t,[n])}))}function jr(e,t){document.readyState===e||"complete"===document.readyState?t():ae(window,"complete"===e?Ae:$e,t,{once:!0})}function Qr(){var e={},t=performance.timing;for(var n in t)C(t[n])&&(e[n]=0===t[n]?0:H(t[n]));return e}function Wr(e,t,n){var r=g(n,(function(e){return"resource"===e.entryType||"navigation"===e.entryType||"paint"===e.entryType||"longtask"===e.entryType||"largest-contentful-paint"===e.entryType||"first-input"===e.entryType||"layout-shift"===e.entryType})),i=g(r,(function(e){return!function(e){return"navigation"===e.entryType&&e.loadEventEnd<=0}(e)&&!function(e,t){return"resource"===t.entryType&&!Fr(e,t.name)}(t,e)}));i.length&&e.notify(Jt,i)}function Gr(){var e=function(){var e,t=window;if(t.Zone){var n=t.Zone.__symbol__;if(!(e=t[n("MutationObserver")])&&t.MutationObserver){var r=new t.MutationObserver(F)[n("originalInstance")];e=r&&r.constructor}}e||(e=t.MutationObserver);return e}(),t=new Nt((function(){if(e){var n=new e((function(){return t.notify()}));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return t}function Hr(e){var t=f(e),n=new Nt((function(){var e=function(e){var t=history.pushState;history.pushState=function(){t.apply(this,arguments),e()};var n=history.replaceState;history.replaceState=function(){n.apply(this,arguments),e()};var r=ae(window,Me,e).stop;return{stop:function(){r(),history.pushState=t,history.replaceState=n}}}(r),t=ae(window,Ne,r);return function(){e.stop(),t.stop()}}));function r(){if(t.href!==e.href){var r=f(e);n.notify({newLocation:r,oldLocation:t}),t=r}}return n}function Xr(e,t){void 0===t&&(t=F);var n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},r=e.subscribe(cn,(function(e){switch(e.type){case ut.ERROR:n.errorCount+=1,t(n);break;case ut.ACTION:e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),n.actionCount+=1,t(n);break;case ut.LONG_TASK:n.longTaskCount+=1,t(n);break;case ut.RESOURCE:n.resourceCount+=1,t(n)}}));return{stop:function(){r.unsubscribe()},eventCounts:n}}function zr(e,t,n,r,i){var o=function(e,t,n){var r=new Nt((function(){var i,o=[],a=0;return o.push(t.subscribe(u),e.subscribe(Jt,(function(e){b(e,(function(e){return"resource"===e.entryType&&!Kr(n,e.name)}))&&u()})),e.subscribe(an,(function(e){Kr(n,e.url)||(void 0===i&&(i=e.requestIndex),a+=1,u())})),e.subscribe(un,(function(e){Kr(n,e.url)||void 0===i||e.requestIndex<i||(a-=1,u())}))),_t(window,"open",{before:u}),function(){s(o,(function(e){e.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}));return r}(e,t,n);return function(e,t,n){var r,i=!1,o=setTimeout((function(){c({hadActivity:!1})}),100),a=n&&setTimeout((function(){return c({hadActivity:!0,end:J()})}),n),u=e.subscribe((function(e){var t=e.isBusy;clearTimeout(o),clearTimeout(r);var n=J();t||(r=setTimeout((function(){c({hadActivity:!0,end:n})}),100))})),s=function(){i=!0,clearTimeout(o),clearTimeout(r),clearTimeout(a),u.unsubscribe()};function c(e){i||(s(),t(e))}return{stop:s}}(o,r,i)}function Kr(e,t){return n=e.excludedActivityUrls,r=t,b(n,(function(e){return e===r||e instanceof RegExp&&e.test(r)}));var n,r}var Jr=q,Yr="WaitingForMoreClicks",Zr="WaitingForClicksToStop",ei="Finalized";function ti(e,t){var n,r=[],i=Yr;function a(e){e.stopObservable.subscribe(u),r.push(e),clearTimeout(n),n=setTimeout(s,1e3)}function u(){i===Zr&&function(e,t,n){if(e.every)return e.every(t);for(var r=!0,i=0;i<e.length;i++)if(o.call(e,i)){var a=e[i];if(!t.call(n,a,i,e)){r=!1;break}}return r}(r,(function(e){return e.isStopped()}))&&(i=ei,t(r))}function s(){clearTimeout(n),i===Yr&&(i=Zr,u())}return a(e),{tryAppend:function(e){return i===Yr&&(r.length>0&&(t=r[r.length-1].event,n=e.event,!(t.target===n.target&&(o=t,u=n,Math.sqrt(Math.pow(o.clientX-u.clientX,2)+Math.pow(o.clientY-u.clientY,2))<=100)&&t.timeStamp-n.timeStamp<=Jr))?(s(),!1):(a(e),!0));var t,n,o,u},stop:function(){s()}}}var ni="data-guance-action-name";function ri(e,t){return ii(e,ni)||t&&ii(e,t)||ci(e,t,ui)||ci(e,t,si)||""}function ii(e,t){var n;if(function(){void 0===ai&&(ai="closest"in HTMLElement.prototype);return ai}())n=e.closest("["+t+"]");else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=r.parentElement}if(n)return di(fi(n.getAttribute(t).trim()))}var oi,ai,ui=[function(e,t){if(function(){void 0===oi&&(oi="labels"in HTMLInputElement.prototype);return oi}()){if("labels"in e&&e.labels&&e.labels.length>0)return li(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&fe(e.ownerDocument.querySelectorAll("label"),(function(t){return t.htmlFor===e.id}));return n&&li(n,t)}},function(e){if("INPUT"===e.nodeName){var t=e,n=t.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return t.value}},function(e,t){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return li(e,t)},function(e){return e.getAttribute("aria-label")},function(e,t){var n=e.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=y(n,(function(t){return function(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}(e,t)})),n=g(n,(function(e){return Boolean(e)})),(n=y(n,(function(e){return li(e)}))).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e){if("options"in e&&e.options.length>0)return li(e.options[0])}],si=[function(e,t){return li(e,t)}];function ci(e,t,n){for(var r=e,i=0;i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,t);if("string"==typeof a){var u=a.trim();if(u)return di(fi(u))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function fi(e){return e.replace(/\s+/g," ")}function di(e){return e.length>100?oe(e,100)+" [...]":e}function li(e,t){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,r=function(t){for(var r=e.querySelectorAll(t),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Boolean(document.documentMode)&&r("script, style"),r("[data-guance-action-name]"),t&&r("["+t+"]"),n}return e.textContent}}function pi(){var e=window.getSelection();return!e||e.isCollapsed}function vi(e){return e.target instanceof Element}function hi(e,t){if(function(e){if(b(e,(function(e){return e.getUserActivity().selection})))return!1;for(var t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=q)return!0;return!1}(e))return t.addFrustration(it),e.some(mi)&&t.addFrustration(at),t.hasError&&t.addFrustration(ot),{isRage:!0};var n=b(e,(function(e){return e.getUserActivity().selection}));return s(e,(function(e){e.hasError&&e.addFrustration(ot),mi(e)&&!n&&e.addFrustration(at)})),{isRage:!1}}function mi(e){return!e.hasPageActivity&&!e.getUserActivity().input&&(t=e.event.target,n='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,canvas,a[href],a[href] *',!(t.matches?t.matches(n):t.msMatchesSelector&&t.msMatchesSelector(n)));var t,n}function gi(e,t,n){var r,i=new Se(3e5),o=new Nt;e.subscribe(nn,(function(){i.reset()})),e.subscribe(on,g),e.subscribe(tn,g);var a,u,c,f,d,l,p,v,h=(a={onPointerDown:function(e){return function(e,t){return n=t,r=e.actionNameAttribute,{type:"click",target:i,position:o,name:ri(n.target,r)};var n,r,i,o}(n,e)},onClick:function(r,a,u){return function(e,t,n,r,i,o,a,u,s){var c=wi(t,r,s,a,u);e.trackFrustrations&&o(c);var f=zr(t,n,e,(function(t){t.hadActivity&&t.end<c.startClocks.timeStamp?c.discard():(c.stop(t.hadActivity?t.end:void 0),e.trackFrustrations||(t.hadActivity?c.validate():c.discard()))}),1e4),d=t.subscribe(tn,(function(e){c.stop(e.endClocks.timeStamp)})),l=i.subscribe((function(){c.stop()}));c.stopObservable.subscribe((function(){d.unsubscribe(),f.stop(),l.unsubscribe()}))}(n,e,t,i,o,b,r,a,u)}},f=a.onClick,d=a.onPointerDown,l=!1,p=!1,v=[ae(window,Pe,(function(e){l=!1,u=pi(),vi(e)&&(c=d(e))}),{capture:!0}),ae(window,We,(function(){u&&pi()||(l=!0)}),{capture:!0}),ae(window,Ie,(function(e){if(vi(e)&&c){var t={selection:l,input:p};p||setTimeout((function(){t.input=p})),f(c,e,(function(){return t})),c=void 0}}),{capture:!0}),ae(window,je,(function(){p=!0}),{capture:!0})],{stop:function(){s(v,(function(e){return e.stop()}))}}),m=h.stop;return{stop:function(){g(),o.notify(),m()},actionContexts:{findActionId:function(e){return n.trackFrustrations?i.findAll(e):i.find(e)}}};function g(){r&&r.stop()}function b(e){if(!r||!r.tryAppend(e)){var t=e.clone();r=ti(e,(function(e){!function(e,t){hi(e,t).isRage?(s(e,(function(e){e.discard()})),t.stop(J()),t.validate(y(e,(function(e){return e.event})))):(t.discard(),s(e,(function(e){e.validate()})))}(e,t)}))}}}var yi="ONGOING",bi="STOPPED",_i="FINALIZED";function wi(e,t,n,r,i){var o,a=I(),u=K(),s=t.add(a,u.relative),f=Xr(e),d=yi,l=[],p=new Nt;function v(e){d===yi&&(d=bi,(o=e)?s.close(H(o)):s.remove(),f.stop(),p.notify())}return{event:i,stop:v,startClocks:u,stopObservable:p,hasError:f.eventCounts.errorCount>0,hasPageActivity:void 0!==o,getUserActivity:n,addFrustration:function(e){l.push(e)},isStopped:function(){return d===bi||d===_i},clone:function(){return wi(e,t,n,r,i)},validate:function(t){if(v(),d===bi){var n=f.eventCounts,s=n.resourceCount,p=n.errorCount,h=n.longTaskCount,m=c({type:nt,duration:o&&Z(u.timeStamp,o),startClocks:u,id:a,frustrationTypes:l,counts:{resourceCount:s,errorCount:p,longTaskCount:h},events:ye(t,[i]),event:i},r);e.notify(Yt,m),d=_i}},discard:function(){v(),d=_i}}}function Si(e){var t=xi(e)?{action:{error:{count:e.counts.errorCount},id:e.id,loadingTime:G(e.duration),frustration:{type:e.frustrationTypes},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:{action:{loadingTime:0}};return{customerContext:xi(e)?void 0:e.context,rawRumEvent:l({action:{id:I(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:ut.ACTION},t),startTime:e.startClocks.relative,domainContext:xi(e)?{event:e.event,events:e.events}:{}}}function xi(e){return e.type!==rt}function Ti(e,t,n){var r=function(e,t,n){var r=i(e.datakitUrl,(function(){t.notify(on)}));function i(t,r){return new wr(hr(t,e.batchBytesLimit,n),e.batchMessagesLimit,e.batchBytesLimit,e.messageBytesLimit,e.flushTimeout,r)}return{add:function(e){r.add(e)},upsert:function(e,t){r.upsert(e,t)}}}(e,t,n);t.subscribe(cn,(function(e){e.type===ut.VIEW?r.upsert(e,e.view.id):r.add(e)}))}var Ci="synthetics",Ei="user",Oi=["view.url","view.referrer","action.target.name","error.message","error.stack","error.resource.url","resource.url"],ki=Oi.concat(["tags"]);function Ii(e,t,n,r,i,o,a,u,s){var c={};c[ut.ERROR]=hn(ut.ERROR,e.eventRateLimiterThreshold,s),c[ut.ACTION]=hn(ut.ACTION,e.eventRateLimiterThreshold,s),t.subscribe(sn,(function(s){var f,d=s.startTime,p=s.rawRumEvent,v=s.savedCommonContext,h=s.customerContext,m=s.domainContext,g=i.findView(d),y=o.findUrl(d),b=n.findTrackedSession(p.type!==ut.VIEW?d:void 0);if(b&&g&&y){var _=a.findActionId(d),S=v||u(),x={_dd:{sdkName:e.sdkName,sdkVersion:e.sdkVersion,drift:Math.round(Y()-(re()+performance.now()))},terminal:{type:"web"},application:{id:e.applicationId},device:Oe,env:e.env||"",service:g.service||e.service||"browser",version:g.version||e.version||"",source:"browser",date:J(),user:{id:r.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Ei:Ci,id:b.id},view:{id:g.id,name:g.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(f=p,-1!==[ut.ERROR,ut.RESOURCE,ut.LONG_TASK].indexOf(f.type)&&_?{id:_}:void 0)},T=pe(l(x,g,p)),C=l({},S.context,h);w(C)||(T.tags=C),"has_replay"in T.session||(T.session.has_replay=S.hasReplay),w(S.user)||(T.user=l({is_signin:"T"},S.user)),function(e,t,n,r){if(t){var i=ln(e,e.type===ut.VIEW?Oi:ki,(function(e){return t(e,r)}));if(!1===i&&e.type!==ut.VIEW)return!1;!1===i&&Te.warn("Can't dismiss view events using beforeSend!")}var o=!1;n[e.type]&&(o=n[e.type].isLimitReached());return!o}(T,e.beforeSend,c,m)&&(w(T.tags)&&delete T.tags,t.notify(cn,T))}}))}var Ri;function Ai(e){var t=new Nt;return function(e){var t=jt([xe.error]).subscribe((function(t){e.notify({startClocks:K(),message:t.message,stack:t.stack,source:Bt.CONSOLE,handling:gt,handlingStack:t.handlingStack})}))}(t),function(e){Mt((function(t,n){e.notify(Ut({stackTrace:t,originalError:n,startClocks:K(),nonErrorPrefix:"Uncaught",source:Bt.SOURCE,handling:yt}))}))}(t),function(e){var t=Ht([Gt,Wt]).subscribe((function(t){e.notify({startClocks:K(),message:t.message,stack:t.stack,type:t.subtype,source:Bt.REPORT,handling:yt})}))}(t),t.subscribe((function(t){e.notify(fn,{error:t})})),function(e){return e.subscribe(fn,(function(t){e.notify(sn,c({customerContext:t.customerContext,savedCommonContext:t.savedCommonContext},function(e){return{rawRumEvent:{date:e.startClocks.timeStamp,error:{id:I(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser"},type:ut.ERROR},startTime:e.startClocks.relative,domainContext:{error:e.originalError}}}(t.error)))})),{addError:function(t,n){var r=t.error,i=Ut({stackTrace:r instanceof Error?St(r):void 0,originalError:r,handlingStack:t.handlingStack,startClocks:t.startClocks,nonErrorPrefix:"Provided",source:Bt.CUSTOM,handling:gt});e.notify(fn,{customerContext:t.context,savedCommonContext:n,error:i})}}}(e)}function Mi(e){if(void 0===e&&(e=window),!Ri)if("hidden"===document.visibilityState)Ri={timeStamp:0};else{Ri={timeStamp:1/0};var t=ue(e,[qe,Le],(function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||(Ri.timeStamp=e.timeStamp,t())}),{capture:!0}).stop}return Ri}var Bi=6e5;function Ui(e,t){var n={};function r(e){n=d(n,e),t(n)}var i=function(e,t){return{stop:e.subscribe(Jt,(function(e){for(var n=0;n<e.length;n++){var r=e[n];"navigation"===r.entryType&&t({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart})}})).unsubscribe}}(e,r),o=i.stop,a=function(e,t){var n=Mi();return{stop:e.subscribe(Jt,(function(e){var r=fe(e,(function(e){return"paint"===e.entryType&&"first-contentful-paint"===e.name&&e.startTime<n.timeStamp&&e.startTime<Bi}));r&&t(r.startTime)})).unsubscribe}}(e,(function(e){r({firstContentfulPaint:e})})),u=a.stop,s=function(e,t,n){var r=Mi(),i=1/0,o=ue(t,[Pe,Re],(function(e){i=e.timeStamp}),{capture:!0,once:!0}).stop,a=e.subscribe(Jt,(function(e){var t=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(t(r,n,e))return r}}(e,(function(e){return"largest-contentful-paint"===e.entryType&&e.startTime<i&&e.startTime<r.timeStamp&&e.startTime<Bi}));t&&n(t.startTime)})).unsubscribe;return{stop:function(){o(),a()}}}(e,window,(function(e){r({largestContentfulPaint:e})})),c=s.stop,f=function(e,t){var n=Mi();return{stop:e.subscribe(Jt,(function(e){var r=fe(e,(function(e){return"first-input"===e.entryType&&e.startTime<n.timeStamp}));if(r){var i=Z(r.startTime,r.processingStart);t({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}})).unsubscribe}}(e,(function(e){r({firstInputDelay:e.firstInputDelay,firstInputTime:e.firstInputTime})})),l=f.stop;return{stop:function(){o(),u(),c(),l()}}}function Li(e,t,n,r,i,o){var a,u={eventCounts:{errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0}},s=Xr(e,(function(e){u.eventCounts=e,r()})).stop,c=function(e,t,n,r,i,o){var a=r===st,u=!0,s=[];function c(){!u&&!a&&s.length>0&&o(Math.max.apply(Math,s))}return{setLoadEvent:function(e){a&&(a=!1,s.push(e),c())},stop:zr(e,t,n,(function(e){u&&(u=!1,e.hadActivity&&s.push(Z(i.timeStamp,e.end)),c())})).stop}}(e,t,n,i,o,(function(e){u.loadingTime=e,r()})),f=c.setLoadEvent,d=c.stop;if(qr("layout-shift")){u.cumulativeLayoutShift=0;var l=function(e,t){var n=0,r=function(){var e,t,n=0;return{update:function(r){void 0===e||r.startTime-t>=q||r.startTime-e>=5e3?(e=t=r.startTime,n=r.value):(n+=r.value,t=r.startTime)},value:function(){return n}}}();return{stop:e.subscribe(Jt,(function(e){for(var i=0;i<e.length;i++){var o=e[i];"layout-shift"!==o.entryType||o.hadRecentInput||(r.update(o),r.value()>n&&(n=r.value(),t(Q(n,4))))}})).unsubscribe}}(e,(function(e){u.cumulativeLayoutShift=e,r()}));a=l.stop}else a=F;return{stop:function(){s(),d(),a()},setLoadEvent:f,viewMetrics:u}}function $i(e,t,n,r,i,o,a){var u,s=function(i){var o=Pi(t,n,r,e,st,ee(),i),a=Ui(t,(function(e){o.updateTimings(e),o.scheduleUpdate()}));return{initialView:o,stop:a.stop}}(a),c=s.stop,f=s.initialView,d=function(){t.subscribe(nn,(function(){f.end(),f=l(void 0,{name:f.name,service:f.service,version:f.version})})),t.subscribe(on,(function(){f.end(),f.triggerUpdate()}));var e=window.setInterval((function(){f.triggerUpdate()}),3e5);return{stop:function(){clearInterval(e)}}}().stop;function l(i,o){return Pi(t,n,r,e,ct,i,o)}return o&&(u=function(e){return e.subscribe((function(e){var t,n,r,i,o=e.oldLocation,a=e.newLocation;if(n=a,(t=o).pathname!==n.pathname||(r=n.hash,i=r.substr(1),!document.getElementById(i)&&Di(n.hash)!==Di(t.hash)))return f.end(),f.triggerUpdate(),void(f=l())}))}(i)),{addTiming:function(e,t){void 0===t&&(t=J()),f.addTiming(e,t),f.scheduleUpdate()},startView:function(e,t){f.end(t),f.triggerUpdate(),f=l(t,e)},stop:function(){u&&u.unsubscribe(),c(),d(),f.end()}}}function Pi(e,t,n,r,i,o,a){void 0===o&&(o=K());var u,s,d,l,p=I(),v={},h={},m=0,g=f(r);a&&(s=a.name,d=a.service,l=a.version),e.notify(Zt,{id:p,name:s,startClocks:o,service:d,version:l});var y=O(T,3e3,{leading:!1}),b=y.cancel,_=Li(e,t,n,y,i,o),w=_.setLoadEvent,S=_.stop,x=_.viewMetrics;function T(){m+=1;var t=void 0===u?J():u.timeStamp;e.notify(en,c({customTimings:h,documentVersion:m,id:p,name:s,service:d,version:l,loadingType:i,location:g,startClocks:o,timings:v,duration:Z(o.timeStamp,t),isActive:void 0===u},x))}return T(),{name:s,service:d,version:l,scheduleUpdate:y,end:function(t){void 0===t&&(t=K()),u=t,e.notify(tn,{endClocks:u}),S()},triggerUpdate:function(){b(),T()},updateTimings:function(e){v=e,void 0!==e.loadEvent&&w(e.loadEvent)},addTiming:function(e,t){var n=function(e){return e<31536e6}(t)?t:Z(o.timeStamp,t);h[function(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");t!==e&&console.warn("Invalid timing name: "+e+", sanitized to: "+t);return t}(e)]=n}}}function Di(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Fi(e,t,n,r,i,o){return e.subscribe(en,(function(t){e.notify(sn,function(e){var t={_dd:{document_version:e.documentVersion},date:e.startClocks.timeStamp,type:ut.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:e.cumulativeLayoutShift,first_byte:G(e.timings.firstByte),dom_complete:G(e.timings.domComplete),dom_content_loaded:G(e.timings.domContentLoaded),dom_interactive:G(e.timings.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:G(e.timings.firstContentfulPaint),first_input_delay:G(e.timings.firstInputDelay),first_input_time:G(e.timings.firstInputTime),is_active:e.isActive,name:e.name,largest_contentful_paint:G(e.timings.largestContentfulPaint),load_event:G(e.timings.loadEvent),loading_time:qi(G(e.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:G(e.duration)}};w(e.customTimings)||(t.view.custom_timings=(n=e.customTimings,r=G,i={},s(n,(function(e,t){i[t]=r(e)})),i));var n,r,i;return{rawRumEvent:t=l(t,{view:Ni(e.timings)}),startTime:e.startClocks.relative,domainContext:{location:e.location}}}(t))})),$i(n,e,r,t,i,!t.trackViewsManually,o)}function Ni(e){var t=Lr(e);if(t){var n=t.fetchStart,r=t.responseEnd,i=t.domInteractive,o=t.domContentLoaded,a=t.domComplete,u=t.loadEventEnd,s=t.loadEventStart,c=t.domContentLoadedEventEnd,f={fmp:G(t.largestContentfulPaint)};if(r!==n){f.fpt=G(r-n);var d=parseInt((r-n)/1e3);f.apdexLevel=d>9?9:d}return i!==n&&(f.tti=G(i-n)),o!==n&&(f.dom_ready=G(o-n)),u!==n&&(f.load=G(u-n)),s!==c&&(f.resource_load_time=G(s-c)),a!==i&&(f.dom=G(a-i)),f}}function qi(e){return C(e)&&e<0?void 0:e}function Vi(){this.buffer=new Uint8Array(8),ji().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function ji(){return window.crypto||window.msCrypto}function Qi(e){this._spanId=(new Vi).toDecimalString(),this._traceId=(new Vi).toDecimalString(),this._traceSampled=e}function Wi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Gi(e,t,n){this._spanId=Wi(),this._traceId=Wi(),this._applicationId=e.applicationId,this._env=e.env,this._version=e.version,this._urlParse=A(t).getParse(),this._traceSampled=n}function Hi(){for(var e="",t=0;t<16;t+=1){e+="0123456789abcdef"[Math.floor(16*Math.random())]}return e}function Xi(e,t){var n=Hi();e.traceId128Bit?this._traceId=Hi()+n:this._traceId=n,this._spanId=n,this._traceSampled=t}function zi(){for(var e="",t=0;t<16;t+=1){e+="0123456789abcdef"[Math.floor(16*Math.random())]}return e}function Ki(e,t){var n=zi();this._traceId=zi()+n,this._spanId=n,this._traceSampled=t}function Ji(){for(var e="",t=0;t<16;t+=1){e+="0123456789abcdef"[Math.floor(16*Math.random())]}return e}function Yi(e,t){var n=Ji();e.traceId128Bit?this._traceId=Ji()+n:this._traceId=n,this._spanId=n,this._traceSampled=t}function Zi(){for(var e="",t=0;t<16;t+=1){e+="0123456789abcdef"[Math.floor(16*Math.random())]}return e}function eo(e,t){var n=Zi();this._traceId=Zi()+n,this._spanId=n,this._traceSampled=t}function to(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function no(e,t,n,r){if(function(e,t){var n=gn(t),r=!1;return s(e.allowedTracingOrigins,(function(e){if(n===e||e instanceof RegExp&&e.test(n))return r=!0,!1})),r}(e,t.url)&&e.traceType&&n.findTrackedSession()){var i,o=!C(e.tracingSampleRate)||j(e.tracingSampleRate);switch(e.traceType){case dt:i=new Qi(o);break;case ht:i=new Gi(e,t.url,o);break;case lt:i=new Yi(e,o);break;case mt:i=new Xi(e,o);break;case vt:i=new eo(e,o);break;case pt:i=new Ki(e,o)}i&&i.isTracingSupported()&&(t.traceId=i.getTraceId(),t.spanId=i.getSpanId(),t.traceSampled=o,r(i.makeTracingHeaders()))}}Vi.prototype={toString:function(e){for(var t=this.readInt32(0),n=this.readInt32(4),r="";;){var i=t%e*4294967296+n;if(t=Math.floor(t/e),n=Math.floor(i/e),r=(i%e).toString(e)+r,!t&&!n)break}return r},toDecimalString:function(){return this.toString(10)},readInt32:function(e){return 16777216*this.buffer[e]+(this.buffer[e+1]<<16)+(this.buffer[e+2]<<8)+this.buffer[e+3]}},Qi.prototype={isTracingSupported:function(){return void 0!==ji()},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},Gi.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var e=String(k(this._traceId)),t=String(k(this._spanId)),n=String(k(this._applicationId+"_rum_"+this.env)),r=String(k(this._version)),i=String(k(window.location.href)),o=String(k(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+e+"-"+t+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(e){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Xi.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getUberTraceId:function(){return this._traceId+":"+this._spanId+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Ki.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getB3Str:function(){return this._traceId+"-"+this._spanId+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Yi.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},eo.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getTraceParent:function(){return"00-"+this._traceId+"-"+this._spanId+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){return{traceparent:this.getTraceParent()}}};let ro=1;function io(e,t,n){var r=function(e,t){return{clearTracingIfNeeded:to,traceFetch:function(n){return no(e,n,t,(function(e){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=f(n.init);var t=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(e,n){t.push([n,e])})):p(n.init.headers)?s(n.init.headers,(function(e){t.push(e)})):n.init.headers&&s(n.init.headers,(function(e,n){t.push([n,e])}));var r={};s(t.concat(S(e)),(function(e){r[e[0]]=e[1]})),n.init.headers=r}else n.input=new Request(n.input),s(e,(function(e,t){n.input.headers.append(t,e)}))}))},traceXhr:function(n,r){return no(e,n,t,(function(e){s(e,(function(e,t){r.setRequestHeader(t,e)}))}))}}}(t,n);!function(e,t,n){var r=Bn().subscribe((function(r){var i=r;if(Fr(t,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=oo(),e.notify(an,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),e.notify(un,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ft.XHR,url:i.url,xhr:i.xhr})}}))}(e,t,r),function(e,t,n){var r=An().subscribe((function(r){var i=r;if(Fr(t,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=oo(),e.notify(an,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),e.notify(un,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ft.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}}))}(e,t,r)}function oo(){var e=ro;return ro+=1,e}function ao(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var n,r=y(t,(function(e){return e.toJSON()}));return r=g(r,Lr),1===(r=g(r,(function(t){return n=t,r=e.startClocks.relative,i=uo({startTime:e.startClocks.relative,duration:e.duration}),o=1,n.startTime>=r-o&&uo(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&uo((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function uo(e){return e.startTime+e.duration}function so(e,t){e.subscribe(un,(function(t){e.notify(sn,function(e){var t=e.type===ft.XHR?He:ze,n=ao(e),r=n?te(n.startTime):e.startClocks,i=n?fo(n):void 0,o=function(e){if(!(e.traceSampled&&e.traceId&&e.spanId))return;return{_dd:{spanId:e.spanId,traceId:e.traceId},resource:{id:I()}}}(e),a=A(e.url).getParse(),u=l({date:r.timeStamp,resource:{id:I,type:t,duration:W(e.duration),method:e.method,status:e.status,statusGroup:$(e.status),url:e.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:R(a.Path),urlQuery:P(M(e.url))},type:ut.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:n&&lo(n),xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error}}}(t))})),e.subscribe(Jt,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||Br(i.name,t.resourceUrlLimit)||e.notify(sn,co(i))}var o}))}function co(e){var t=Rr(e),n=fo(e),r=function(e){return e.traceId?{_dd:{traceId:e.traceId}}:void 0}(e),i=A(e.name).getParse(),o="";!function(e){return e.encodedBodySize>0&&e.transferSize>0&&e.transferSize<e.encodedBodySize||null}(e)?function(e){return!(e.transferSize>0)&&(e.decodedBodySize>0||e.duration<30)}(e)&&(o=200):o=304;var a=te(e.startTime),u=l({date:a.timeStamp,resource:{id:I(),type:t,url:e.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:R(i.Path),urlQuery:P(M(e.name)),method:"GET",status:o,statusGroup:$(o)},type:ut.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:u,domainContext:{performanceEntry:lo(e)}}}function fo(e){return{resource:l({},{duration:(t=e,0===t.duration&&t.startTime<t.responseEnd?W(t.responseEnd-t.startTime):W(t.duration)),size:Dr(e)},Ur(e))};var t}function lo(e){return"function"==typeof PerformanceEntry&&e instanceof PerformanceEntry&&e.toJSON(),e}var po={sdkVersion:"2.2.15",sdkName:"df_web_rum_sdk"};var vo,ho,mo,go,yo=function(e){var t,n,r=!1,i=ce(),o=ce(),a=new _e,u=function(e,t){void 0===t&&(t=J()),a.add((function(){return u(e,t)}))},s=function(e,t){void 0===t&&(t=K()),a.add((function(){return s(e,t)}))},f=function(e,t){void 0===t&&(t={context:i.getContext(),user:o.getContext()}),a.add((function(){return f(e,t)}))},l=function(e,t){void 0===t&&(t={context:i.getContext(),user:o.getContext()}),a.add((function(){return l(e,t)}))},v=function(){},h=function(){};function m(t,n){var r=e(t,(function(){return{user:o.getContext(),context:i.getContext()}}),n);s=r.startView,f=r.addAction,l=r.addError,u=r.addTiming,v=r.getInternalContext,a.drain()}return t={init:function(e){if(function(e){return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(I()),n="test";return Sn(t,n,q,e),xn(t)===n}catch(e){return console.error(e),!1}}(Rn(e))?"file:"!==window.location.protocol||(Te.error("Execution is not allowed in the current context."),!1):(Te.warn("Cookies are not authorized, we will not send any data."),!1)}(e)&&function(e){return!r||(e.silentMultipleInit||Te.error("DATAFLUX_RUM is already initialized."),!1)}(e)){var t=function(e){if(e.applicationId){if(!e.datakitUrl&&!e.datakitOrigin)return Te.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===e.sessionReplaySampleRate||de(e.sessionReplaySampleRate))if(void 0===e.allowedTracingOrigins||p(e.allowedTracingOrigins))if(void 0===e.allowedDDTracingOrigins||p(e.allowedDDTracingOrigins))if(void 0===e.tracingSampleRate||de(e.tracingSampleRate))if(void 0===e.excludedActivityUrls||p(e.excludedActivityUrls)){var t=In(e);if(t){var n=!!e.trackFrustrations;return c({applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:ye(e.sessionReplaySampleRate,100),tracingSampleRate:e.tracingSampleRate,allowedTracingOrigins:ye(e.allowedTracingOrigins||e.allowedDDTracingOrigins,[]),excludedActivityUrls:ye(e.excludedActivityUrls,[]),trackInteractions:!!e.trackInteractions||n,trackFrustrations:n,trackViewsManually:!!e.trackViewsManually,traceType:ye(e.traceType,dt),traceId128Bit:!!e.traceId128Bit,isJsBirdge:!!e.isJsBirdge},t,po)}}else Te.error("Excluded Activity Urls should be an array");else Te.error("Tracing Sample Rate should be a number between 0 and 100");else Te.error("Allowed Tracing Origins should be an array");else Te.error("Allowed Tracing Origins should be an array");else Te.error("Premium Sample Rate should be a number between 0 and 100")}else Te.error("Application ID is not configured, no RUM data will be collected.")}(e);if(t){if(t.trackViewsManually){var n=a;a=new _e,s=function(e){m(t,e)},n.drain()}else m(t);h=function(){return L(e)},r=!0}}},addRumGlobalContext:i.add,setGlobalContextProperty:i.setContextProperty,removeRumGlobalContext:i.remove,removeGlobalContextProperty:i.removeContextProperty,getRumGlobalContext:i.get,getGlobalContext:i.getContext,setRumGlobalContext:i.set,setGlobalContext:i.setContext,clearGlobalContext:i.clearContext,getInitConfiguration:function(){return h()},getInternalContext:function(e){return v(e)},addDebugSession:function(e){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(e,t){f({name:e,context:L(t),startClocks:K(),type:rt})},addError:function(e,t){var n=Lt();l({error:e,handlingStack:n,context:L(t),startClocks:K()})},addTiming:function(e,t){u(e,t)},setUser:function(e){"object"==typeof e&&e?o.setContext(g(e)):Te.error("Unsupported user:",e)},getUser:o.getContext,setUserProperty:function(e,t){var n={};n[e]=t;var r=g(n)[e];o.setContextProperty(e,r)},removeUserProperty:o.removeContextProperty,removeUser:o.clearContext,clearUser:o.clearContext,startView:function(e){s("object"==typeof e?e:{name:e})}},n=d({},t,{onReady:function(e){e()}}),Object.defineProperty(n,"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),n;function g(e){var t=c(e,{});return"id"in t&&(t.id=String(t.id)),"name"in t&&(t.name=String(t.name)),"email"in t&&(t.email=String(t.email)),t}}((function(e,t,n){var r=new dn,i=function(e){r.notify(fn,{error:e})};Ti(e,r,i);var o=Cr(e,r),a=function(e){var t=xn(Or);return t||(t=I(),Sn(Or,t,5184e6,e.cookieOptions)),{getId:function(){return t}}}(e),u=Gr(),s=Hr(location),c=function(e,t,n,r,i,o,a,u,s){var c=function(e){var t=new Se(144e5);return e.subscribe(Zt,(function(e){t.add(function(e){return{service:e.service,version:e.version,id:e.id,name:e.name}}(e),e.startClocks.relative)})),e.subscribe(tn,(function(e){t.closeActive(e.endClocks.relative)})),e.subscribe(nn,(function(){t.reset()})),{findView:function(e){return t.find(e)},stop:function(){t.stop()}}}(t),f=function(e,t,n){var r,i=new Se(144e5);e.subscribe(tn,(function(e){i.closeActive(e.endClocks.relative)})),e.subscribe(Zt,(function(e){var t=n.href;i.add(a({url:t,location:n,referrer:r||document.referrer}),e.startClocks.relative),r=t}));var o=t.subscribe((function(e){var t=i.find();if(t){var n=z();i.closeActive(n),i.add(a({url:e.newLocation.href,location:e.newLocation,referrer:t.referrer}),n)}}));function a(e){return{url:e.url,referrer:e.referrer,host:e.location.host,path:e.location.pathname,pathGroup:R(e.location.pathname),urlQuery:P(M(e.location.href))}}return{findUrl:function(e){return i.find(e)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,e),l=function(e,t,n){e.subscribe(Yt,(function(t){e.notify(sn,Si(t))}));var r={findActionId:F};return n.trackInteractions&&(r=gi(e,t,n).actionContexts),{actionContexts:r,addAction:function(t,n){e.notify(sn,d({savedCommonContext:n},Si(t)))}}}(t,a,n),p=l.actionContexts;return Ii(n,t,r,i,c,f,p,u,s),{viewContexts:c,urlContexts:f,addAction:l.addAction,actionContexts:p,stop:function(){c.stop()}}}(location,r,e,o,a,s,u,t,i),f=c.viewContexts,l=c.urlContexts,p=c.actionContexts;!function(e,t){e.subscribe(Jt,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!t.findTrackedSession(i.startTime))break;var o=te(i.startTime),a={date:o.timeStamp,long_task:{id:I(),duration:G(i.duration)},type:ut.LONG_TASK};e.notify(sn,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(r,o),so(r,e);var v=Fi(r,e,location,u,s,n),h=v.addTiming,m=v.startView,g=Ai(r).addError;io(r,e,o),Vr(r,e);var y=function(e,t,n,r,i){return{get:function(o){var a=n.findView(o),u=i.findUrl(o),s=t.findTrackedSession(o);if(s&&a&&u){var c=r.findActionId(o);return{application:{id:e},session:{id:s.id},userAction:c?{id:c}:void 0,view:{id:a.id,name:a.name,url:u.url,referrer:u.referrer,host:u.host,path:u.pathname,pathGroup:u.pathGroup,urlQuery:u.urlQuery}}}}}}(e.applicationId,o,f,p,l);return{addAction:c.addAction,addError:g,addTiming:h,configuration:e,lifeCycle:r,viewContexts:f,session:o,startView:m,getInternalContext:y.get}}));vo=function(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}(),mo=yo,go=vo[ho="DATAFLUX_RUM"],vo[ho]=mo,go&&go.q&&s(go.q,(function(e){e()}))}();
|
|
1
|
+
!function(){"use strict";var t="beforeunload",e="click",n="dblclick",r="keydown",i="load",o="popstate",a="scroll",s="touchstart",u="touchend",c="touchmove",d="visibilitychange",f="freeze",l="DOMContentLoaded",p="pointerdown",h="pointerup",v="pointercancel",m="hashchange",g="pagehide",_="mousedown",y="mousemove",b="focus",w="blur",S="contextmenu",E="resize",x="change",T="input",k="play",C="pause",O="securitypolicyviolation",I="selectionchange",A="document",R="xhr",L="beacon",N="fetch",M="css",U="js",D="image",P="font",B="media",z="other",$="click",F="custom",V="rage_click",H="error_click",q="dead_click",j={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},W="initial_load",G="route_change",Z={FETCH:N,XHR:R},Q="ddtrace",X="zipkin",K="zipkin_single_header",Y="w3c_traceparent",J="skywalking_v3",tt="jaeger",et="handled",nt="unhandled";function rt(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var it=Array.prototype,ot=Function.prototype,at=Object.prototype,st=it.slice,ut=at.toString,ct=at.hasOwnProperty,dt=(ot.bind,it.forEach),ft=(it.indexOf,Array.isArray),lt=function(t,e,n){if(null===t)return!1;if(dt&&t.forEach===dt)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&false===e.call(n,t[r],r,t))return!1}else for(var o in t)if(ct.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function pt(t){return lt(st.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function ht(t){return pt({},t)}var vt=function(t){return lt(st.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},mt=function(t){return lt(st.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(xt(e[n])&&xt(t[n])?vt(t[n],e[n]):t[n]=e[n])})),t},gt=ft||function(t){return"[object Array]"===ut.call(t)},_t=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},yt=function(t){return t?t.toArray?t.toArray():gt(t)?st.call(t):(e=t)&&ct.call(e,"callee")?st.call(t):bt(t):[];var e},bt=function(t){var e=[];return null===t||lt(t,(function(t){e[e.length]=t})),e},wt=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(ct.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},St=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(ct.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},Et=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(ct.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},xt=function(t){return null!==t&&"[object Object]"===ut.call(t)},Tt=function(t){if(xt(t)){for(var e in t)if(ct.call(t,e))return!1;return!0}return!1},kt=function(t){var e=[];return lt(t,(function(t,n){e.push([n,t])})),e},Ct=function(t){return"[object String]"===ut.call(t)},Ot=function(t){return"[object Boolean]"===ut.call(t)},It=function(t){return"[object Number]"===ut.call(t)&&/[\d\.]+/.test(String(t))},At=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},Rt=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=setTimeout((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){clearTimeout(i),s=!1,r=void 0}}}),Lt=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",d=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,d[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=d.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function Nt(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,Nt)}function Mt(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Ut=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!=typeof t)return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Dt=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=Pt("?"+n)),e},Pt=function(t){for(var e=function(t){return At(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function Bt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=Bt(i[o],e[o],n);return i}var a;i="object"==(null===(a=t)?"null":Array.isArray(a)?"array":typeof a)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Bt(i[s],e[s],n));return i}}function zt(t){return Bt(void 0,t)}function $t(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function Ft(t,e,n){if(null==t)return JSON.stringify(t);var r=[!1,void 0];Vt(t)&&(r=[!0,t.toJSON],delete t.toJSON);var i,o,a=[!1,void 0];"object"==typeof t&&Vt(i=Object.getPrototypeOf(t))&&(a=[!0,i.toJSON],delete i.toJSON);try{o=JSON.stringify(t,void 0,n)}catch(t){o="<error: unable to serialize object>"}finally{r[0]&&(t.toJSON=r[1]),a[0]&&(i.toJSON=a[1])}return o}function Vt(t){return"object"==typeof t&&null!==t&&t.hasOwnProperty("toJSON")}function Ht(){}var qt,jt=1e3,Wt=6e4;function Gt(t){return 0!==t&&100*Math.random()<=t}function Zt(t,e){return+t.toFixed(e)}function Qt(t){return"number"!=typeof t?t:Zt(1e6*t,0)}function Xt(t){return It(t)?Zt(1e6*t,0):t}function Kt(t){return t-se()}function Yt(t){return Math.round(se()+t)}function Jt(){return performance.now()}function te(){return{relative:Jt(),timeStamp:ee()}}function ee(){return ne()}function ne(){return(new Date).getTime()}function re(t,e){return e-t}function ie(){return{relative:0,timeStamp:se()}}function oe(t){return{relative:t,timeStamp:ae(t)}}function ae(t){var e=ne()-performance.now();return e>se()?Math.round(e+t):Yt(t)}function se(){return void 0===qt&&(qt=performance.timing.navigationStart),qt}function ue(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&ct.call(t,r)))return;t=t[r]}return t}function ce(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function de(t,e,n,r){return fe(t,[e],n,r)}function fe(t,e,n,r){var i=r&&r.once?function(t){a(),n(t)}:n;r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=rt(t,"addEventListener");lt(e,(function(e){o.call(t,e,i,r)}));var a=function(){var n=rt(t,"removeEventListener");lt(e,(function(e){n.call(t,e,i,r)}))};return{stop:a}}function le(t,e){return-1!==t.indexOf(e)}function pe(){var t={};return{get:function(){return t},add:function(e,n){Ct(e)?t[e]=n:console.error("key 需要传递字符串类型")},remove:function(e){delete t[e]},set:function(e){xt(e)?t=e:console.error("content 需要传递对象类型数据")},getContext:function(){return zt(t)},setContext:function(e){t=zt(e)},setContextProperty:function(e,n){t[e]=zt(n)},removeContextProperty:function(e){delete t[e]},clearContext:function(){t={}}}}function he(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function ve(t){return It(t)&&t>=0&&t<=100}function me(t){if(t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function ge(t){var e={};return lt(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=_e(t)})),e}function _e(t){return gt(t)?St(t,(function(t){return _e(t)})):"object"==typeof t&&null!==t?ge(t):t}function ye(t){if("object"==typeof t&&t)t=Ft(t);else if(!Ct(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function be(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\\]*"/g,'"').replace(/"/g,'\\"')+'"'}function we(t){return"object"==typeof t&&t?be(Ft(t)):Ct(t)?be(t):t}function Se(t,e){return null!=t?t:e}function Ee(t,e){document.readyState===t||"complete"===document.readyState?e():de(window,"complete"===t?i:l,e,{once:!0})}function xe(t,e){return Et((r=[],null===(n=t)||lt(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Te(t){var e=t.substr(1);return!!document.getElementById(e)}function ke(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Ce=function(){this.buffer=[]};Ce.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){lt(this.buffer,(function(t){t()})),this.buffer.length=0}};var Oe=Ce,Ie=1/0;function Ae(t){this.expireDelay=t,this.entries=[];var e=this;this.clearOldContextsInterval=setInterval((function(){e.clearOldContexts()}),6e4)}Ae.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:Ie,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.entries.unshift(r),r},Ae.prototype.find=function(t){void 0===t&&(t=Ie);for(var e=0;e<this.entries.length;e++){var n=this.entries[e];if(n.startTime<=t){if(t<=n.endTime)return n.context;break}}},Ae.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===Ie&&e.close(t)},Ae.prototype.findAll=function(t){void 0===t&&(t=Ie);var e=wt(this.entries,(function(e){return e.startTime<=t&&t<=e.endTime}));return St(e,(function(t){return t.context}))},Ae.prototype.reset=function(){this.entries=[]},Ae.prototype.stop=function(){clearInterval(this.clearOldContextsInterval)},Ae.prototype.clearOldContexts=function(){for(var t=Jt()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Re={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Le=function t(e){var n=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(Re,e)||(e=Re.log),t[e].apply(t,n)};Le.debug=console.debug.bind(console),Le.log=console.log.bind(console),Le.info=console.info.bind(console),Le.warn=console.warn.bind(console),Le.error=console.error.bind(console);var Ne={navigator:void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Me={getMatchMap:function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}},matchInfoMap:function(t){var e=Ne.navigator.userAgent||{},n=Me.getMatchMap(e);for(var r in Ne.infoMap)for(var i=0;i<Ne.infoMap[r].length;i++){var o=Ne.infoMap[r][i];n[o]&&(t[r]=o)}},getOS:function(){return Me.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var t=this,e=Ne.navigator.userAgent||{};t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}},getOrientationStatu:function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"},getDeviceType:function(){var t=this;return t.device="PC",Me.matchInfoMap(t),t.device},getNetwork:function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e},getLanguage:function(){var t;return this.language=((t=(Ne.navigator.browserLanguage||Ne.navigator.language).split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language},getBrowserInfo:function(){var t=this;Me.matchInfoMap(t);var e=Ne.navigator.userAgent||{},n=function(t,e){var n=Ne.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Me.getMatchMap(e),i=!1;if(window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Ne.navigator&&void 0===Ne.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}},getGeoPostion:function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){Le.warn(t)}))}},Ue={os:Me.getOS(),osVersion:Me.getOSVersion().version,osVersionMajor:Me.getOSVersion().osMajor,browser:Me.getBrowserInfo().browser,browserVersion:Me.getBrowserInfo().browserVersion,browserVersionMajor:Me.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Me.getNetwork(),divice:Me.getDeviceType()};function De(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function Pe(t,e,n){return De(t,e,(function(t){return function(){var e;return n&&n.before&&n.before.apply(this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&n.after.apply(this,arguments),e}}))}function Be(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Ht};var i=rt(window,"setTimeout"),o=function(t,e){i((function(){n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a?Object.defineProperty(t,e,r):o=Ht}}}var ze="?";function $e(t){var e=[],n=Ze(t,"stack");return n&<(n.split("\n"),(function(t){var n=function(t){var e=Ve.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=He.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||ze,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=qe.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:ze,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=je.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ze,line:+e[3],url:e[2]}}(t)||function(t){var e=We.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ge.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||ze,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=ze),e.push(n))})),{message:Ze(t,"message"),name:Ze(t,"name"),stack:e}}var Fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Ve=new RegExp("^\\s*at (.*?) ?\\("+Fe+"(?::(\\d+))?"+"(?::(\\d+))?\\)?\\s*$","i"),He=new RegExp("\\((\\S*)(?::(\\d+))(?::(\\d+))\\)");var qe=new RegExp("^\\s*at ?"+Fe+"(?::(\\d+))?"+"(?::(\\d+))??\\s*$","i");var je=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var We=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ze(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Qe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Xe(t){var e=function(t){return Pe(window,"onerror",{before:function(e,n,r,i,o){var a;if(o)a=$e(o),t(a,o);else{var s,u={url:n,column:i,line:r},c=e;if("[object String]"==={}.toString.call(e)){var d=Qe.exec(c);d&&(s=d[1],c=d[2])}t(a={name:s,message:"string"==typeof c?c:void 0,stack:[u]},e)}}})}(t),n=function(t){return Pe(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=$e(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}var Ke={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ye(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling;return e&&(void 0!==e.message||n instanceof Error)?{startClocks:i,source:a,handling:s,originalError:n,message:e.message||"Empty message",stack:tn(e),handlingStack:r,type:e.name,causes:nn(n,a)}:{startClocks:i,source:a,handling:s,originalError:n,message:o+" "+Ft(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function Je(){var t=new Error;if(!t.stack)try{throw t}catch(t){}var e=$e(t);return e.stack=e.stack.slice(2),tn(e)}function tn(t){var e=en(t);return lt(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function en(t){return(t.name||"Error")+": "+t.message}function nn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=$e(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&tn(i)}),n=n.cause}return r.length?r:void 0}var rn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};rn.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=wt(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){lt(this.observers,(function(e){e(t)}))}};var on=rn;function an(){var t=[].slice.call(arguments),e=new on((function(){var n=St(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return lt(n,(function(t){return t.unsubscribe()}))}}));return e}var sn={};function un(t){var e=St(t,(function(t){return sn[t]||(sn[t]=function(t){var e=new on((function(){var n=console[t];return console[t]=function(){var r=[].slice.call(arguments);n.apply(console,arguments);var i=Je();e.notify(cn(r,t,i))},function(){console[t]=n}}));return e}(t)),sn[t]}));return an.apply(this,e)}function cn(t,e,n){var r,i=St(t,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return en($e(t));return Ft(t,0,2)}(t)})).join(" ");if(e===Re.error){var o=he(t,(function(t){return t instanceof Error}));r=o?tn($e(o)):void 0,i="console error: "+i}return{api:e,message:i,stack:r,handlingStack:n}}var dn="intervention",fn="csp_violation";function ln(t){var e,n=[];le(t,fn)&&n.push(e=new on((function(){return de(document,O,(function(t){e.notify(function(t){var e=fn,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:fn,subtype:t.effectiveDirective,message:e+": "+n,stack:pn(t.effectiveDirective,n+' of the policy "'+ce(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(t))})).stop})));var r=wt(t,(function(t){return t!==fn}));return r.length&&n.push(function(t){var e=new on((function(){if(window.ReportingObserver){var n=function(t){lt(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return{type:n,subtype:e.id,message:n+": "+e.message,stack:pn(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)}}(t))}))},r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}));return e}(r)),an.apply(this,n)}function pn(t,e,n,r,i){return n&&tn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var hn=function(){this._events=[],this.pendingEvents=[]};hn.prototype={emit:function(t){var e=[].slice.call(arguments,1);lt(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new hn;var vn,mn="PERFORMANCE_ENTRIES_COLLECTED",gn="AUTO_ACTION_COMPLETED",_n="VIEW_CREATED",yn="VIEW_UPDATED",bn="VIEW_ENDED",wn="SESSION_RENEWED",Sn="SESSION_EXPIRED",En="PAGE_EXITED",xn="REQUEST_STARTED",Tn="REQUEST_COMPLETED",kn="RAW_RUM_EVENT_COLLECTED",Cn="RUM_EVENT_COLLECTED",On="RAW_ERROR_COLLECTED";function In(){this.callbacks={}}function An(t,e,n){var r=mt({},t),i=n(r);return lt(e,(function(e){var n=Rn(t,e),i=Rn(r,e);"string"==typeof n&&"string"==typeof i&&function(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Ln(r,a))return;o!==i.length-1?r=r[a]:r[a]=n}}(t,e,i)})),i}function Rn(t,e){for(var n=t,r=e.split("."),i=0;i<r.length;i++){var o=r[i];if(!Ln(n,o))return;n=n[o]}return n}function Ln(t,e){return"object"==typeof t&&null!==t&&e in t}function Nn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&setTimeout((function(){r=0}),Wt),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:Ke.AGENT,startClocks:te()})}finally{i=!1}}return!0}}}function Mn(t){return Dn(t,me(window.location)).href}function Un(t){return me(Dn(t))}function Dn(t,e){if(function(){if(void 0!==vn)return vn;try{var t=new URL("http://test/path");return vn="http://test/path"===t.href}catch(t){vn=!1}return vn}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}In.prototype={notify:function(t,e){var n=this.callbacks[t];n&<(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=wt(n.callbacks[t],(function(t){return t!==e}))}}}};var Pn=navigator.userAgent.toLowerCase(),Bn=function(){return/iphone os/.test(Pn)};var zn;function $n(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"";document.cookie=t+"="+e+";"+o+";path=/;samesite="+a+s+u}function Fn(t){return function(t,e){var n=t.match("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,t)}var Vn=/^\s+|\s+$/g;function Hn(t){return t.replace(Vn,"")}function qn(t){return t.lastIndexOf("/")===t.length-1?Hn(t)+"v1/write/logging":Hn(t)+"/v1/write/logging"}function jn(t){return t.lastIndexOf("/")===t.length-1?Hn(t)+"v1/write/rum/replay":Hn(t)+"/v1/write/rum/replay"}var Wn,Gn,Zn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Qn(t){var e,n;if(void 0===t.sampleRate||ve(t.sampleRate))return pt({beforeSend:t.beforeSend&&(e=t.beforeSend,n="beforeSend threw an error:",function(){var t=[].slice.call(arguments);try{return e.apply(this,t)}catch(t){Le.error(n,t)}}),cookieOptions:Xn(t),sampleRate:Se(t.sampleRate,100),service:t.service,version:t.version,env:t.env,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&_t(t.isIntakeUrl)&&Ot(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n,r=function(t){return!1};return"isServerError"in t&&_t(t.isServerError)&&Ot(t.isServerError())&&(r=t.isServerError),{datakitUrl:(n=t.datakitUrl||t.datakitOrigin,n.lastIndexOf("/")===n.length-1?Hn(n)+"v1/write/rum":Hn(n)+"/v1/write/rum"),logsEndpoint:qn(t.datakitOrigin),sessionReplayEndPoint:jn(t.datakitOrigin),isIntakeUrl:e,isServerError:r}}(t));Le.error("Sample Rate should be a number between 0 and 100")}function Xn(t){var e={};return e.secure=function(t){return!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie}(t),e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===zn){for(var t="dd_site_test_".concat(Nt()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Fn(t);)n=e.pop()+"."+n,$n(t,"test",jt,{domain:n});zn=n}return zn}()),e}function Kn(){var t;return Wn||(t=new on((function(){if(window.fetch){var e=De(window,"fetch",(function(e){return function(n,r){var i,o=function(t,e,n){var r=n&&n.method||"object"==typeof e&&e.method||"GET",i=Mn("object"==typeof e&&e.url||e),o=te(),a={state:"start",init:n,input:e,method:r,startClocks:o,url:i};return t.notify(a),a}(t,n,r);return o?(i=e.call(this,o.input,o.init),function(t,e,n){var r=function(e){var r=n;r.state="resolve","stack"in e||e instanceof Error?(r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e):"status"in e&&(r.response=e,r.responseType=e.type,r.status=e.status,r.isAborted=!1),t.notify(r)};e.then(r,r)}(t,i,o)):i=e.call(this,n,r),i}}));return e.stop}})),Wn=t),Wn}var Yn={};function Jn(){var t;return Gn||(t=new on((function(){var e=Pe(XMLHttpRequest.prototype,"open",{before:tr}),n=Pe(XMLHttpRequest.prototype,"send",{before:function(){er.call(this,t)}}),r=Pe(XMLHttpRequest.prototype,"abort",{before:rr});return function(){e.stop(),n.stop(),r.stop()}})),Gn=t),Gn}function tr(t,e){var n=this._DATAFLUX_REQUEST_UUID||Nt();this._DATAFLUX_REQUEST_UUID=n,Yn[n]={state:"open",method:t,url:Mn(String(e))}}function er(t){var e=Yn[this._DATAFLUX_REQUEST_UUID];if(e){var n=e;n.state="start",n.startTime=Jt(),n.startClocks=te(),n.isAborted=!1,n.xhr=this;var r=!1,i=Pe(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}),o=function o(){if(this.removeEventListener("loadend",o),i.stop(),!r){r=!0;var a=e;a.state="complete",a.duration=re(n.startClocks.timeStamp,ee()),a.status=this.status,t.notify(ht(a)),nr.call(this)}};this.addEventListener("loadend",o),t.notify(n)}}function nr(){delete Yn[this._DATAFLUX_REQUEST_UUID],delete this._DATAFLUX_REQUEST_UUID}function rr(){var t=Yn[this._DATAFLUX_REQUEST_UUID];t&&(t.isAborted=!0)}var ir={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function or(t){return t.nodeType===Node.ELEMENT_NODE}function ar(t){return or(t)&&Boolean(t.shadowRoot)}function sr(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&or(e.host)}function ur(t){return sr(t)?t.host:t.parentNode}var cr={sdk_name:"_dd.sdk_name",sdk_version:"_dd.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",session_has_replay:"session.has_replay",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group",view_url_query:"view.url_query"},dr={action_id:"action.id",view_in_foreground:"view.in_foreground"},fr={view:{type:j.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",is_active:"view.is_active"},fields:{session_replay_stats:"_dd.replay_stats",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",cumulative_layout_shift:"view.cumulative_layout_shift",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_meaningful_paint:"view.largest_contentful_paint",first_paint_time:"view.fpt",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",in_foreground_periods:"view.in_foreground_periods",frustration_count:"view.frustration.count"}},resource:{type:j.RESOURCE,tags:{trace_id:"_dd.trace_id",span_id:"_dd.span_id",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:j.ERROR,tags:{error_id:"error.id",trace_id:"_dd.trace_id",span_id:"_dd.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"]}},long_task:{type:j.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:j.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count"}},browser_log:{type:j.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"]}}};var lr,pr=144e5,hr=9e5,vr=/^([a-z]+)=([a-z0-9-]+)$/,mr="&",gr="_dataflux_s",_r=[];function yr(t,e){if(void 0===e&&(e=0),lr||(lr=t),t===lr)if(e>=100)Sr();else{var n,r=xr();if(br()){if(r.lock)return void wr(t,e);if(n=Nt(),r.lock=n,Er(r,t.options),(r=xr()).lock!==n)return void wr(t,e)}var i=t.process(r);if(br()&&(r=xr()).lock!==n)wr(t,e);else{if(i&&function(t,e){if(Tr(t))return void function(t){$n(gr,"",0,t)}(e);t.expire=String(ne()+hr),Er(t,e)}(i,t.options),br()&&(!i||!Tr(i))){if((r=xr()).lock!==n)return void wr(t,e);delete r.lock,Er(r,t.options),i=r}t.after&&t.after(i||r),Sr()}}else _r.push(t)}function br(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function wr(t,e){setTimeout((function(){yr(t,e+1)}),10)}function Sr(){lr=void 0;var t=_r.shift();t&&yr(t)}function Er(t,e){$n(gr,function(t){return St(kt(t),(function(t){return t[0]+"="+t[1]})).join(mr)}(t),hr,e)}function xr(){var t=Fn(gr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(mr)||vr.test(t))}(t)&<(t.split(mr),(function(t){var n=vr.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function Tr(t){return Tt(t)}function kr(t,e,n){var r=new on,i=new on,o=setInterval((function(){yr({options:t,process:function(t){return c(t)?void 0:{}},after:s})}),1e3),a=function(){var t=xr();if(c(t))return t;return{}}();function s(t){return c(t)||(t={}),u()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function u(){return void 0!==a[e]}function c(t){return(void 0===t.created||ne()-Number(t.created)<pr)&&(void 0===t.expire||ne()<Number(t.expire))}return{expandOrRenewSession:Rt((function(){var i;yr({options:t,process:function(t){var r=s(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=Nt(),t.created=String(ne()));return o}(r),r},after:function(t){i&&!u()&&function(t){a=t,r.notify()}(t),a=t}})}),1e3).throttled,expandSession:function(){yr({options:t,process:function(t){return u()?s(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,stop:function(){clearInterval(o)}}}var Cr=[],Or=function(t,n,i){var o=kr(t,n,i);Cr.push((function(){return o.stop()}));var u,c=new Ae(144e5);function f(){return{id:o.getSession().id,trackingType:o.getSession()[n]}}return Cr.push((function(){return c.stop()})),o.renewObservable.subscribe((function(){c.add(f(),Jt())})),o.expireObservable.subscribe((function(){c.closeActive(Jt())})),o.expandOrRenewSession(),c.add(f(),ie().relative),u=fe(window,[e,s,r,a],(function(){return o.expandOrRenewSession()}),{capture:!0,passive:!0}),Cr.push(u.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=de(document,d,e);Cr.push(n.stop);var r=setInterval(e,6e4);Cr.push((function(){clearInterval(r)}))}((function(){return o.expandSession()})),{findActiveSession:function(t){return c.find(t)},renewObservable:o.renewObservable,expireObservable:o.expireObservable}};var Ir=3145728,Ar=0,Rr=1,Lr=2,Nr=0,Mr=1;function Ur(t,e,n,r){e.transportStatus===Ar&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Pr(t,e,n,{onSuccess:function(){return Br(Nr,e,n,r)},onFailure:function(){e.queuedPayloads.enqueue(t),Dr(e,n,r)}}):e.queuedPayloads.enqueue(t)}function Dr(t,e,n){t.transportStatus===Lr&&setTimeout((function(){Pr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,Br(Mr,t,e,n)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Dr(t,e,n)}})}),t.currentBackoffTime)}function Pr(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=Ar,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Rr:Lr,e.lastFailureStatus=n.status,o())}))}function Br(t,e,n,r){t===Nr&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(r({message:"Reached max events size queued for upload: 3MiB",source:Ke.AGENT,startClocks:te()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=zr();i.size()>0;)Ur(i.dequeue(),e,n,r)}function zr(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Ir}}}function $r(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function Fr(t,e,n){var r={transportStatus:Ar,lastFailureStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:zr(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=$r(t);(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&o<e?fetch(a,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}),(function(){Vr(a,i,r)})):Vr(a,i,r)}(t,e,n,r)};return{send:function(t){Ur(t,r,i,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=$r(t);if(navigator.sendBeacon&&i<e)try{if(navigator.sendBeacon(o,r))return}catch(t){}Vr(o,r)}(t,e,n)}}}function Vr(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),r.send(e),r.addEventListener("loadend",(function(){"function"==typeof n&&n({status:r.status})}))}var Hr=/[^\u0000-\u007F]/,qr="custom_keys",jr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return lt(fr,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=vt({},cr,i.tags),u=["date","type",qr];lt(s,(function(n,r){var i=ue(t,n);u.push(r),(i||It(i))&&(e.tags[r]=function(t){return Ct(t)?t:Ft(t)}(i),a.push(ye(r)+"="+ye(i)))}));var c=[],d=vt({},dr,i.fields);if(lt(d,(function(n,r){if(gt(n)&&2===n.length){n[0];var i=n[1],o=ue(t,i);u.push(r),(o||It(o))&&(e.fields[r]=o,c.push(ye(r)+"="+we(o)))}else if(Ct(n)){o=ue(t,n);u.push(r),(o||It(o))&&(e.fields[r]=o,c.push(ye(r)+"="+we(o)))}})),t.tags&&xt(t.tags)&&!Tt(t.tags)){var f=[];lt(t.tags,(function(t,n){u.indexOf(n)>-1||(u.push(n),(t||It(t))&&(f.push(n),e.fields[n]=t,c.push(ye(n)+"="+we(t))))})),f.length&&(e.fields.custom_keys=we(f),c.push(ye(qr)+"="+we(f)))}t.type===j.LOGGER&<(t,(function(t,n){-1===u.indexOf(n)&&(It(t)||Ct(t)||Ot(t))&&(e.fields[n]=t,c.push(ye(n)+"="+we(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=Xt(t.date)}})),{rowStr:n?r:"",rowData:n?e:void 0}},Wr=function(t,e,n,r,i,o){this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,this.request=t,this.batchMessagesLimit=e,this.batchBytesLimit=n,this.messageBytesLimit=r,this.flushTimeout=i;var a=this;o.subscribe((function(){a.flush(a.request.sendOnExit)})),this.flushPeriodically()};Wr.prototype.add=function(t){this.addOrUpdate(t)},Wr.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Wr.prototype.flush=function(t){if("function"!=typeof t&&(t=this.request.send),0!==this.bufferMessagesCount){var e=this.pushOnlyBuffer.concat(bt(this.upsertBuffer)),n=this.bufferBytesCount;this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesCount=0,this.bufferMessagesCount=0,e.length>0&&t({data:e.join("\n"),bytesCount:n})}},Wr.prototype.flushOnExit=function(){this.flush(this.request.sendOnExit)},Wr.prototype.computeBytesCount=function(t){return Hr.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length},Wr.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,i=n.messageBytesCount;i>=this.messageBytesLimit?Le.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.willReachedBytesLimitWith(i)&&this.flush(),this.push(r,i,e),this.isFull()&&this.flush())},Wr.prototype.process=function(t){var e=jr(t).rowStr;return{processedMessage:e,messageBytesCount:this.computeBytesCount(e)}},Wr.prototype.push=function(t,e,n){this.bufferMessagesCount>0&&(this.bufferBytesCount+=1),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.bufferBytesCount+=e,this.bufferMessagesCount+=1},Wr.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.computeBytesCount(e);this.bufferBytesCount-=n,this.bufferMessagesCount-=1,this.bufferMessagesCount>0&&(this.bufferBytesCount-=1)},Wr.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},Wr.prototype.willReachedBytesLimitWith=function(t){return this.bufferBytesCount+t+1>=this.batchBytesLimit},Wr.prototype.isFull=function(){return this.bufferMessagesCount===this.batchMessagesLimit||this.bufferBytesCount>=this.batchBytesLimit},Wr.prototype.flushPeriodically=function(){var t=this;setTimeout((function(){t.flush(),t.flushPeriodically()}),this.flushTimeout)};var Gr=Wr;var Zr=1,Qr=2,Xr="0",Kr="1",Yr="2";function Jr(t,e){var n=Or(t.cookieOptions,"rum",(function(e){return function(t,e){var n;n=function(t){return t===Xr||t===Kr||t===Yr}(e)?e:Gt(t.sampleRate)?Gt(t.sessionReplaySampleRate)?Kr:Yr:Xr;return{trackingType:n,isTracked:ti(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Sn)})),n.renewObservable.subscribe((function(){e.notify(wn)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&ti(e.trackingType)){var r=e.trackingType===Kr?Qr:Zr;return{id:e.id,plan:r,sessionReplayAllowed:r===Qr}}}}}function ti(t){return t===Yr||t===Kr}var ei="_dataflulx_usr_id",ni="initial_document",ri=[[A,function(t){return ni===t}],[R,function(t){return"xmlhttprequest"===t}],[N,function(t){return"fetch"===t}],[L,function(t){return"beacon"===t}],[M,function(t,e){return null!==e.match(/\.css$/i)}],[U,function(t,e){return null!==e.match(/\.js$/i)}],[D,function(t,e){return le(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[P,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[B,function(t,e){return le(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function ii(t){var e=t.name;if(!function(t){try{return!!Dn(t)}catch(t){return!1}}(e))return z;var n=function(t){var e=Dn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=z;return lt(ri,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function oi(){for(var t=yt(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var ai=/[^\u0000-\u007F]/;function si(t,e){return n=t,(ai.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ui(t){var e=ci(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,d=e.connectEnd,f=e.requestStart,l=e.responseStart,p=e.responseEnd,h={firstbyte:Qt(l-a),trans:Qt(p-l),ttfb:Qt(l-f),downloadTime:fi(n,l,p),firstByteTime:fi(n,f,l)};return d!==r&&(h.tcp=Qt(d-u),h.connectTime=fi(n,u,d),oi(u,c,d)&&(h.ssl=Qt(d-c),h.sslTime=fi(n,c,d))),s!==r&&(h.dns=Qt(s-a),h.dnsTime=fi(n,a,s)),di(t)&&(h.redirect=Qt(o-i),h.redirectTime=fi(n,i,o)),h}}function ci(t){if(oi(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!di(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),oi(t.startTime,e,n,t.fetchStart))return vt({},t,{redirectEnd:n,redirectStart:e})}}function di(t){return t.fetchStart!==t.startTime}function fi(t,e,n){return{duration:Qt(n-e),start:Qt(e-t)}}function li(t){if(t.startTime<t.responseStart)return t.decodedBodySize}function pi(t,e){return e&&!function(t,e){var n=[e.datakitUrl];return e.logsEndpoint&&n.push(e.logsEndpoint),Et(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function hi(){return void 0!==window.performance&&"getEntries"in performance}function vi(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&le(PerformanceObserver.supportedEntryTypes,t)}function mi(t,n){var i;if(i=function(e){_i(t,n,[e])},Ee("interactive",(function(){var t,e={entryType:"resource",initiatorType:ni,traceId:""};if(vi("navigation")&&performance.getEntriesByType("navigation").length>0){var n=performance.getEntriesByType("navigation")[0];t=vt(n.toJSON(),e)}else{var r=gi();t=vt(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},e)}i(t)})),hi()){var o=performance.getEntries();setTimeout((function(){_i(t,n,o)}))}if(window.PerformanceObserver){var a=function(e){_i(t,n,e.getEntries())},u=["resource","navigation","longtask","paint"],c=["largest-contentful-paint","first-input","layout-shift"];try{lt(c,(function(t){new PerformanceObserver(a).observe({type:t,buffered:!0})}))}catch(t){lt(c,(function(t){u.push(t)}))}new PerformanceObserver(a).observe({entryTypes:u}),hi()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}vi("navigation")||function(t){function e(){t(vt(gi(),{entryType:"navigation"}))}Ee("complete",(function(){setTimeout(e)}))}((function(e){_i(t,n,[e])})),vi("first-input")||function(t){var n=ne(),i=!1,o=fe(window,[e,_,r,s,p],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:Jt(),startTime:t.timeStamp};t.type===p?a(e):u(e)}}),{passive:!0,capture:!0}).stop;function a(t){fe(window,[h,v],(function(e){e.type===h&&u(t)}),{once:!0})}function u(e){if(!i){i=!0,o();var r=e.processingStart-e.startTime;r>=0&&r<ne()-n&&t(e)}}}((function(e){return _i(t,n,[e])}))}function gi(){var t={},e=performance.timing;for(var n in e)It(e[n])&&(t[n]=0===e[n]?0:Kt(e[n]));return t}function _i(t,e,n){var r=wt(n,(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType})),i=wt(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!pi(t,e.name)}(e,t)}));i.length&&t.notify(mn,i)}function yi(){var t,e=window;if(e.Zone&&(t=rt(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=rt(new e.MutationObserver(Ht),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function bi(t){var e=ht(t),n=new on((function(){var t,e,n,i,a=(t=r,e=Pe(history,"pushState",{after:t}),n=Pe(history,"replaceState",{after:t}),i=de(window,o,t),{stop:function(){e.stop(),n.stop(),i.stop()}}),s=de(window,m,r);return function(){a.stop(),s.stop()}}));function r(){if(e.href!==t.href){var r=ht(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}function wi(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=Ht);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Cn,(function(t){if(t.type!==j.VIEW&&n(t))switch(t.type){case j.ERROR:i.errorCount+=1,r(i);break;case j.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r(i);break;case j.LONG_TASK:i.longTaskCount+=1,r(i);break;case j.RESOURCE:i.resourceCount+=1,r(i)}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Si=100;function Ei(t,e,n,r,i){var o=function(t,e,n){var r=new on((function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(mn,(function(t){Et(t,(function(t){return"resource"===t.entryType&&!xi(n,t.name)}))&&u()})),t.subscribe(xn,(function(t){xi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Tn,(function(t){xi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Pe(window,"open",{before:u}).stop;return function(){s(),lt(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}));return r}(t,e,n);return function(t,e,n){var r,i=!1,o=setTimeout((function(){c({hadActivity:!1})}),100),a=n&&setTimeout((function(){return c({hadActivity:!0,end:ee()})}),n),s=t.subscribe((function(t){var e=t.isBusy;clearTimeout(o),clearTimeout(r);var n=ee();e||(r=setTimeout((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,clearTimeout(o),clearTimeout(r),clearTimeout(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function xi(t,e){return n=t.excludedActivityUrls,r=e,Et(n,(function(t){return t===r||t instanceof RegExp&&t.test(r)}));var n,r}var Ti=jt,ki=0,Ci=1,Oi=2;function Ii(t,e){var n,r=[],i=ki;function o(t){t.stopObservable.subscribe(a),r.push(t),clearTimeout(n),n=setTimeout(s,1e3)}function a(){i===Ci&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(ct.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=Oi,e(r))}function s(){clearTimeout(n),i===ki&&(i=Ci,a())}return o(t),{tryAppend:function(t){return i===ki&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=Ti))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ai="data-guance-action-name";function Ri(t,e){return Li(t,Ai)||e&&Li(t,e)||Pi(t,e,Ui)||Pi(t,e,Di)||""}function Li(t,e){var n;if(function(){void 0===Mi&&(Mi="closest"in HTMLElement.prototype);return Mi}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return zi(Bi(n.getAttribute(e).trim()))}var Ni,Mi,Ui=[function(t,e){if(function(){void 0===Ni&&(Ni="labels"in HTMLInputElement.prototype);return Ni}()){if("labels"in t&&t.labels&&t.labels.length>0)return $i(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&he(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&$i(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return $i(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=St(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=wt(n,(function(t){return Boolean(t)})),(n=St(n,(function(t){return $i(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return $i(t.options[0],e)}],Di=[function(t,e){return $i(t,e)}];function Pi(t,e,n){for(var r=t,i=0;i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return zi(Bi(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Bi(t){return t.replace(/\s+/g," ")}function zi(t){return t.length>100?ce(t,100)+" [...]":t}function $i(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Boolean(document.documentMode)&&r("script, style"),r("[data-guance-action-name]"),e&&r("["+e+"]"),n}return t.textContent}}function Fi(){var t=window.getSelection();return!t||t.isCollapsed}function Vi(t){return t.target instanceof Element&&!1!==t.isPrimary}function Hi(t,e){if(function(t){if(Et(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=jt)return!0;return!1}(t))return e.addFrustration(V),Et(t,qi)&&e.addFrustration(q),e.hasError()&&e.addFrustration(H),{isRage:!0};var n=Et(t,(function(t){return t.getUserActivity().selection}));return lt(t,(function(t){t.hasError()&&t.addFrustration(H),qi(t)&&!n&&t.addFrustration(q)})),{isRage:!1}}function qi(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *',!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}function ji(t,e,n){var r,i=new Ae(3e5),o=new on;t.subscribe(wn,(function(){i.reset()})),t.subscribe(bn,v);var a,s,u,c,d,f=(a={onPointerDown:function(r){return function(t,e,n,r,i){if(t.trackFrustrations||!r.find()){var o,a,s,u,c=(o=i,a=t.actionNameAttribute,{type:$,target:s,position:u,name:Ri(o.target,a)});if(t.trackFrustrations||c.name){var d=!1;return Ei(e,n,t,(function(t){d=t.hadActivity}),Si),{clickActionBase:c,hadActivityOnPointerDown:function(){return d}}}}}(n,t,e,i,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var d=Qi(e,r,u,a,s);t.trackFrustrations&&o(d);var f=Ei(e,n,t,(function(e){e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():(e.hadActivity?d.stop(e.end):c()?d.stop(d.startClocks.timeStamp):d.stop(),t.trackFrustrations||(e.hadActivity?d.validate():d.discard()))}),1e4).stop,l=e.subscribe(bn,(function(t){d.stop(t.endClocks.timeStamp)})),p=i.subscribe((function(){d.stop()}));d.stopObservable.subscribe((function(){l.unsubscribe(),f(),p.unsubscribe()}))}(n,t,e,i,o,m,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},d=[de(window,p,(function(t){Vi(t)&&(s=Fi(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),de(window,I,(function(){s&&Fi()||(c.selection=!0)}),{capture:!0}),de(window,h,(function(t){if(Vi(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),de(window,T,(function(){c.input=!0}),{capture:!0})],{stop:function(){lt(d,(function(t){return t.stop()}))}}),l=f.stop;return{stop:function(){v(),o.notify(),l()},actionContexts:{findActionId:function(t){return n.trackFrustrations?i.findAll(t):i.find(t)}}};function v(){r&&r.stop()}function m(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ii(t,(function(t){!function(t,e){Hi(t,e).isRage?(lt(t,(function(t){t.discard()})),e.stop(ee()),e.validate(St(t,(function(t){return t.event})))):(e.discard(),lt(t,(function(t){t.validate()})))}(t,e)}))}}}var Wi=0,Gi=1,Zi=2;function Qi(t,e,n,r,i){var o,a=Nt(),s=te(),u=e.add(a,s.relative),c=wi({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(gt(t.action.id)?le(t.action.id,a):t.action.id===a)}}),d=Wi,f=[],l=new on;function p(t){d===Wi&&(d=Gi,(o=t)?u.close(Kt(o)):u.remove(),c.stop(),l.notify())}return{event:i,stop:p,stopObservable:l,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return d===Gi||d===Zi},clone:function(){return Qi(t,e,n,r,i)},validate:function(e){if(p(),d===Gi){var n=c.eventCounts,u=n.resourceCount,l=n.errorCount,h=n.longTaskCount,v=pt({type:$,duration:o&&re(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:l,longTaskCount:h},events:Se(e,[i]),event:i},r);t.notify(gn,v),d=Zi}},discard:function(){p(),d=Zi}}}function Xi(t,e){var n=Ki(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Xt(t.duration),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}},r=Ki(t)?void 0:t.context,i=mt({action:{id:Nt(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:j.ACTION},n),o=e.isInForegroundAt(t.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:Ki(t)?{event:t.event,events:t.events}:{}}}function Ki(t){return t.type!==F}function Yi(t,e,n,r){var i=function(t,e,n){var r=i(t.datakitUrl);function i(r,i){return new Gr(Fr(r,t.batchBytesLimit,e),t.batchMessagesLimit,t.batchBytesLimit,t.messageBytesLimit,t.flushTimeout,n)}return{add:function(t){r.add(t)},upsert:function(t,e){r.upsert(t,e)}}}(t,n,r);e.subscribe(Cn,(function(t){t.type===j.VIEW?i.upsert(t,t.view.id):i.add(t)}))}var Ji="synthetics",to="user",eo=["view.url","view.referrer","action.target.name","error.message","error.stack","error.resource.url","resource.url"],no=eo.concat(["tags"]);function ro(t,e,n,r,i,o,a,s,u){var c={};c[j.ERROR]=Nn(j.ERROR,t.eventRateLimiterThreshold,u),c[j.ACTION]=Nn(j.ACTION,t.eventRateLimiterThreshold,u),e.subscribe(kn,(function(u){var d,f=u.startTime,l=u.rawRumEvent,p=u.savedCommonContext,h=u.customerContext,v=u.domainContext,m=i.findView(f),g=o.findUrl(f),_=n.findTrackedSession(l.type!==j.VIEW?f:void 0);if(_&&m&&g){var y=a.findActionId(f),b=p||s(),w={_dd:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(ne()-(se()+performance.now()))},terminal:{type:"web"},application:{id:t.applicationId},device:Ue,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:ee(),user:{id:r.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?to:Ji,id:_.id},view:{id:m.id,name:m.name,url:g.url,referrer:g.referrer,host:g.host,path:g.path,pathGroup:g.pathGroup,urlQuery:g.urlQuery},action:(d=l,-1!==[j.ERROR,j.RESOURCE,j.LONG_TASK].indexOf(d.type)&&y?{id:y}:void 0)},S=ge(mt(w,m,l)),E=mt({},b.context,h);Tt(E)||(S.tags=E),"has_replay"in S.session||(S.session.has_replay=b.hasReplay),Tt(b.user)||(S.user=mt({is_signin:"T"},b.user)),function(t,e,n,r){if(e){var i=An(t,t.type===j.VIEW?eo:no,(function(t){return e(t,r)}));if(!1===i&&t.type!==j.VIEW)return!1;!1===i&&Le.warn("Can't dismiss view events using beforeSend!")}var o=!1;n[t.type]&&(o=n[t.type].isLimitReached());return!o}(S,t.beforeSend,c,v)&&(Tt(S.tags)&&delete S.tags,e.notify(Cn,S))}}))}var io=[];function oo(){document.hasFocus()&&ao();var t,e,n=(t=ao,de(window,b,(function(e){e.isTrusted&&t()}))),r=(e=so,de(window,w,(function(t){t.isTrusted&&e()})));return{isInForegroundAt:uo,selectInForegroundPeriodsFor:co,stop:function(){io=[],n.stop(),r.stop()}}}function ao(){if(!(io.length>2500)){var t=io[io.length-1],e=Jt();void 0!==t&&void 0===t.end||io.push({start:e})}}function so(){if(0!==io.length){var t=io[io.length-1],e=Jt();void 0===t.end&&(t.end=e)}}function uo(t){for(var e=io.length-1;e>=0;e--){var n=io[e];if(void 0!==n.end&&t>n.end)break;if(t>n.start&&(void 0===n.end||t<n.end))return!0}return!1}function co(t,e){for(var n=t+e,r=[],i=Math.max(0,io.length-500),o=io.length-1;o>=i;o--){var a=io[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=re(t,s),c=re(s,void 0===a.end||n<a.end?n:a.end);r.unshift({start:Xt(u),duration:Xt(c)})}}return r}var fo;function lo(t,e){var n=new on;return function(t){var e=un([Re.error]).subscribe((function(e){t.notify({startClocks:te(),message:e.message,stack:e.stack,source:Ke.CONSOLE,handling:et,handlingStack:e.handlingStack})}))}(n),function(t){Xe((function(e,n){t.notify(Ye({stackTrace:e,originalError:n,startClocks:te(),nonErrorPrefix:"Uncaught",source:Ke.SOURCE,handling:nt}))}))}(n),function(t){var e=ln([fn,dn]).subscribe((function(e){t.notify({startClocks:te(),message:e.message,stack:e.stack,type:e.subtype,source:Ke.REPORT,handling:nt})}))}(n),n.subscribe((function(e){t.notify(On,{error:e})})),function(t,e){return t.subscribe(On,(function(n){t.notify(kn,pt({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:Nt(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:j.ERROR},r=e.isInForegroundAt(t.startClocks.relative);r&&(n.view={in_foreground:r});return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=Ye({stackTrace:r instanceof Error?$e(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:"Provided",source:Ke.CUSTOM,handling:et});t.notify(On,{customerContext:e.context,savedCommonContext:n,error:i})}}}(t,e)}function po(t){if(void 0===t&&(t=window),!fo)if("hidden"===document.visibilityState)fo={timeStamp:0};else{fo={timeStamp:1/0};var e=fe(t,[g,d],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(fo.timeStamp=t.timeStamp,e())}),{capture:!0}).stop}return fo}var ho=6e5;function vo(t,e){var n={};function i(t){n=vt(n,t),e(n)}var o=function(t,e){return{stop:t.subscribe(mn,(function(t){for(var n=0;n<t.length;n++){var r=t[n];"navigation"===r.entryType&&e({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart})}})).unsubscribe}}(t,i),a=o.stop,s=function(t,e){var n=po();return{stop:t.subscribe(mn,(function(t){var r=he(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<ho}));r&&e(r.startTime)})).unsubscribe}}(t,(function(t){i({firstContentfulPaint:t})})),u=s.stop,c=function(t,e,n){var i=po(),o=1/0,a=fe(e,[p,r],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=t.subscribe(mn,(function(t){var e=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<i.timeStamp&&t.startTime<ho}));e&&n(e.startTime)})).unsubscribe;return{stop:function(){a(),s()}}}(t,window,(function(t){i({largestContentfulPaint:t})})),d=c.stop,f=function(t,e){var n=po();return{stop:t.subscribe(mn,(function(t){var r=he(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.timeStamp}));if(r){var i=re(r.startTime,r.processingStart);e({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}})).unsubscribe}}(t,(function(t){i({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})),l=f.stop;return{stop:function(){a(),u(),d(),l()}}}function mo(t,e,n,r,i,o){var a,s={},u=function(t,e,n,r,i,o){var a=r===W,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:Ei(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(re(i.timeStamp,t.end)),c())})).stop}}(t,e,n,i,o,(function(t){s.loadingTime=t,r()})),c=u.setLoadEvent,d=u.stop;if(vi("layout-shift")){s.cumulativeLayoutShift=0;var f=function(t,e){var n=0,r=function(){var t,e,n=0;return{update:function(r){void 0===t||r.startTime-e>=jt||r.startTime-t>=5e3?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}();return{stop:t.subscribe(mn,(function(t){for(var i=0;i<t.length;i++){var o=t[i];"layout-shift"!==o.entryType||o.hadRecentInput||(r.update(o),r.value()>n&&(n=r.value(),e(Zt(n,4))))}})).unsubscribe}}(t,(function(t){s.cumulativeLayoutShift=t,r()}));a=f.stop}else a=Ht;return{stop:function(){d(),a()},setLoadEvent:c,viewMetrics:s}}function go(t,e,n,r,i,o,a){var s,u=function(i){var o=_o(e,n,r,t,W,ie(),i),a=vo(e,(function(t){o.updateTimings(t),o.scheduleUpdate()}));return{initialView:o,stop:a.stop}}(a),c=u.stop,d=u.initialView,f=function(){e.subscribe(wn,(function(){d.end(),d=l(void 0,{name:d.name,service:d.service,version:d.version})})),e.subscribe(En,(function(t){t.reason!==ir.UNLOADING&&t.reason!==ir.PAGEHIDE||(d.end(),d.triggerUpdate())}));var t=window.setInterval((function(){d.triggerUpdate()}),3e5);return{stop:function(){clearInterval(t)}}}().stop;function l(i,o){return _o(e,n,r,t,G,i,o)}return o&&(s=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!Te(n.hash)&&ke(n.hash)!==ke(e.hash))return d.end(),d.triggerUpdate(),void(d=l())}))}(i)),{addTiming:function(t,e){void 0===e&&(e=ee()),d.addTiming(t,e),d.scheduleUpdate()},startView:function(t,e){d.end(e),d.triggerUpdate(),d=l(e,t)},stop:function(){s&&s.unsubscribe(),c(),f(),d.end()}}}function _o(t,e,n,r,i,o,a){void 0===o&&(o=te());var s,u,c,d,f=Nt(),l={},p={},h=0,v=ht(r);a&&(u=a.name,c=a.service,d=a.version),t.notify(_n,{id:f,name:u,startClocks:o,service:c,version:d});var m=Rt(T,3e3,{leading:!1}),g=m.throttled,_=m.cancel,y=mo(t,e,n,g,i,o),b=y.setLoadEvent,w=y.stop,S=y.viewMetrics,E=function(t,e,n){var r=wi({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){setTimeout(r.stop,3e5)},eventCounts:r.eventCounts}}(t,f,g),x=(E.scheduleStop,E.eventCounts);function T(){h+=1;var e=void 0===s?ee():s.timeStamp;t.notify(yn,pt({customTimings:p,documentVersion:h,id:f,name:u,service:c,version:d,loadingType:i,location:v,startClocks:o,timings:l,duration:re(o.timeStamp,e),isActive:void 0===s,eventCounts:x},S))}return T(),{name:u,service:c,version:d,scheduleUpdate:g,end:function(e){void 0===e&&(e=te()),s=e,t.notify(bn,{endClocks:s}),w()},triggerUpdate:function(){_(),T()},updateTimings:function(t){l=t,void 0!==t.loadEvent&&b(t.loadEvent)},addTiming:function(t,e){var n=function(t){return t<31536e6}(e)?e:re(o.timeStamp,e);p[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n}}}function yo(t,e,n,r,i,o,a,s){return t.subscribe(yn,(function(e){t.notify(kn,function(t,e,n){var r=n.getReplayStats(t.id),i={_dd:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:j.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:Xt(t.timings.firstByte),dom_complete:Xt(t.timings.domComplete),dom_content_loaded:Xt(t.timings.domContentLoaded),dom_interactive:Xt(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:Xt(t.timings.firstContentfulPaint),first_input_delay:Xt(t.timings.firstInputDelay),first_input_time:Xt(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:Xt(t.timings.largestContentfulPaint),load_event:Xt(t.timings.loadEvent),loading_time:wo(Xt(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:Xt(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},session:{has_replay:!!r||void 0}};Tt(t.customTimings)||(i.view.custom_timings=(o=t.customTimings,a=Xt,s={},lt(o,(function(t,e){s[e]=a(t)})),s));var o,a,s;return{rawRumEvent:i=mt(i,{view:bo(t.timings)}),startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a))})),go(n,t,r,e,i,!e.trackViewsManually,s)}function bo(t){var e=ci(t);if(e){var n=e.fetchStart,r=e.responseEnd,i=e.domInteractive,o=e.domContentLoaded,a=e.domComplete,s=e.loadEventEnd,u=e.loadEventStart,c=e.domContentLoadedEventEnd,d={fmp:Xt(e.largestContentfulPaint)};if(r!==n){d.fpt=Xt(r-n);var f=parseInt((r-n)/1e3);d.apdexLevel=f>9?9:f}return i!==n&&(d.tti=Xt(i-n)),o!==n&&(d.dom_ready=Xt(o-n)),s!==n&&(d.load=Xt(s-n)),u!==c&&(d.resource_load_time=Xt(u-c)),a!==i&&(d.dom=Xt(a-i)),d}}function wo(t){return It(t)&&t<0?void 0:t}function So(){this.buffer=new Uint8Array(8),Eo().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Eo(){return window.crypto||window.msCrypto}function xo(t){this._spanId=(new So).toDecimalString(),this._traceId=(new So).toDecimalString(),this._traceSampled=t}function To(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function ko(t,e,n){this._spanId=To(),this._traceId=To(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Ut(e).getParse(),this._traceSampled=n}function Co(){for(var t="",e=0;e<16;e+=1){t+="0123456789abcdef"[Math.floor(16*Math.random())]}return t}function Oo(t,e){var n=Co();t.traceId128Bit?this._traceId=Co()+n:this._traceId=n,this._spanId=n,this._traceSampled=e}function Io(){for(var t="",e=0;e<16;e+=1){t+="0123456789abcdef"[Math.floor(16*Math.random())]}return t}function Ao(t,e){var n=Io();this._traceId=Io()+n,this._spanId=n,this._traceSampled=e}function Ro(){for(var t="",e=0;e<16;e+=1){t+="0123456789abcdef"[Math.floor(16*Math.random())]}return t}function Lo(t,e){var n=Ro();t.traceId128Bit?this._traceId=Ro()+n:this._traceId=n,this._spanId=n,this._traceSampled=e}function No(){for(var t="",e=0;e<16;e+=1){t+="0123456789abcdef"[Math.floor(16*Math.random())]}return t}function Mo(t,e){var n=No();this._traceId=No()+n,this._spanId=n,this._traceSampled=e}function Uo(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Do(t,e,n,r){if(function(t,e){var n=Un(e),r=!1;return lt(t.allowedTracingOrigins,(function(t){if(n===t||t instanceof RegExp&&t.test(n))return r=!0,!1})),r}(t,e.url)&&t.traceType&&n.findTrackedSession()){var i,o=!It(t.tracingSampleRate)||Gt(t.tracingSampleRate);switch(t.traceType){case Q:i=new xo(o);break;case J:i=new ko(t,e.url,o);break;case X:i=new Lo(t,o);break;case tt:i=new Oo(t,o);break;case Y:i=new Mo(t,o);break;case K:i=new Ao(t,o)}i&&i.isTracingSupported()&&(e.traceId=i.getTraceId(),e.spanId=i.getSpanId(),e.traceSampled=o,r(i.makeTracingHeaders()))}}So.prototype={toString:function(t){for(var e=this.readInt32(0),n=this.readInt32(4),r="";;){var i=e%t*4294967296+n;if(e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r,!e&&!n)break}return r},toDecimalString:function(){return this.toString(10)},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},xo.prototype={isTracingSupported:function(){return void 0!==Eo()},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},ko.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(Lt(this._traceId)),e=String(Lt(this._spanId)),n=String(Lt(this._applicationId+"_rum_"+this.env)),r=String(Lt(this._version)),i=String(Lt(window.location.href)),o=String(Lt(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Oo.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getUberTraceId:function(){return this._traceId+":"+this._spanId+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Ao.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getB3Str:function(){return this._traceId+"-"+this._spanId+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Lo.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Mo.prototype={isTracingSupported:function(){return!0},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getTraceParent:function(){return"00-"+this._traceId+"-"+this._spanId+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){return{traceparent:this.getTraceParent()}}};var Po=1;function Bo(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Uo,traceFetch:function(n){return Do(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=ht(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):gt(n.init.headers)?lt(n.init.headers,(function(t){e.push(t)})):n.init.headers&<(n.init.headers,(function(t,n){e.push([n,t])}));var r={};lt(e.concat(kt(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),lt(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Do(t,n,e,(function(t){lt(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Jn().subscribe((function(r){var i=r;if(pi(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=zo(),t.notify(xn,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Tn,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:Z.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Kn().subscribe((function(r){var i=r;if(pi(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=zo(),t.notify(xn,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(Ht),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;lt(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())}),(function(t){e(t)}))}()}(n.body,(function(){e(re(t.startClocks.timeStamp,ee()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(re(t.startClocks.timeStamp,ee()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Tn,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:Z.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function zo(){var t=Po;return Po+=1,t}function $o(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n,r=St(e,(function(t){return t.toJSON()}));return r=wt(r,ci),1===(r=wt(r,(function(e){return n=e,r=t.startClocks.relative,i=Fo({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Fo(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&Fo((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function Fo(t){return t.startTime+t.duration}function Vo(t,e){t.subscribe(Tn,(function(e){t.notify(kn,function(t){var e=t.type===Z.XHR?R:N,n=$o(t),r=n?oe(n.startTime):t.startClocks,i=n?qo(n):void 0,o=function(t){if(!(t.traceSampled&&t.traceId&&t.spanId))return;return{_dd:{spanId:t.spanId,traceId:t.traceId},resource:{id:Nt()}}}(t),a=Ut(t.url).getParse(),s=mt({date:r.timeStamp,resource:{id:Nt,type:e,duration:Qt(t.duration),method:t.method,status:t.status,statusGroup:$t(t.status),url:t.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:Mt(a.Path),urlQuery:Ft(Dt(t.url))},type:j.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:s,domainContext:{performanceEntry:n&&jo(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(mn,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||si(i.name,e.resourceUrlLimit)||t.notify(kn,Ho(i))}var o}))}function Ho(t){var e=ii(t),n=qo(t),r=function(t){return t.traceId?{_dd:{traceId:t.traceId}}:void 0}(t),i=Ut(t.name).getParse(),o="";!function(t){return t.encodedBodySize>0&&t.transferSize>0&&t.transferSize<t.encodedBodySize||null}(t)?function(t){return!(t.transferSize>0)&&(t.decodedBodySize>0||t.duration<30)}(t)&&(o=200):o=304;var a=oe(t.startTime),s=mt({date:a.timeStamp,resource:{id:Nt(),type:e,url:t.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:Mt(i.Path),urlQuery:Ft(Dt(t.name)),method:"GET",status:o,statusGroup:$t(o)},type:j.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:s,domainContext:{performanceEntry:jo(t)}}}function qo(t){return{resource:mt({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?Qt(e.responseEnd-e.startTime):Qt(e.duration)),size:li(t)},ui(t))};var e}function jo(t){return"function"==typeof PerformanceEntry&&t instanceof PerformanceEntry&&t.toJSON(),t}var Wo,Go={sdkVersion:"3.0.0",sdkName:"df_web_rum_sdk"};function Zo(){var t;return Wo||(t=new on((function(){var e=Rt((function(){t.notify(Qo())}),200).throttled;return de(window,E,e,{capture:!0,passive:!0}).stop})),Wo=t),Wo}function Qo(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Xo=2,Ko=3,Yo=4,Jo=6,ta=7,ea=8,na=9,ra=0,ia=1,oa=2,aa=3,sa=4,ua=11,ca=0,da=1,fa=2,la=3,pa=4,ha=5,va=6,ma=7,ga=8,_a=0,ya=1,ba=2,wa=3,Sa=4,Ea=5,xa=6,Ta=7,ka=9,Ca=0,Oa=1,Ia=[Ai,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"];var Aa={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Zn.ALLOW,MASK:Zn.MASK,MASK_USER_INPUT:Zn.MASK_USER_INPUT},Ra="data-gc-privacy",La="hidden",Na="***",Ma={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Ua(t,e){var n=ur(t),r=n?Ua(n,e):e;return Da(Pa(t),r)}function Da(t,e){switch(e){case Aa.HIDDEN:case Aa.IGNORE:return e}switch(t){case Aa.ALLOW:case Aa.MASK:case Aa.MASK_USER_INPUT:case Aa.HIDDEN:case Aa.IGNORE:return t;default:return e}}function Pa(t){if(or(t)){var e=t.getAttribute(Ra);if("BASE"===t.tagName)return Aa.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Aa.MASK;if("hidden"===n.type)return Aa.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Aa.MASK}return e===La||t.classList.contains("gc-privacy-hidden")?Aa.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?Aa.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?Aa.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?Aa.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Aa.IGNORE:void 0}}function Ba(t,e){switch(e){case Aa.MASK:case Aa.HIDDEN:case Aa.IGNORE:return!0;case Aa.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?za(t.parentNode):za(t);default:return!1}}function za(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Ma[e.tagName]}function $a(t,e,n){var r=t.parentElement?.tagName,i=t.textContent||"";if(!e||i.trim()){var o="STYLE"===r||void 0;if("SCRIPT"===r)i=Na;else if(n===Aa.HIDDEN)i=Na;else if(Ba(t,n)&&!o)if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?Na:i.replace(/\S/g,"x");return i}}var Fa=new WeakMap;function Va(t){return Fa.has(t)}function Ha(t){return Fa.get(t)}function qa(t,e){var n=t.tagName,r=t.value;if(Ba(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return Na}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var ja=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Wa=/^[A-Za-z]+:|^\/\//,Ga=/^data:.*,/i;function Za(t,e){return t.replace(ja,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Wa.test(s)||Ga.test(s))return t;var u=n||i||"";return`url(${u}${function(t,e){try{return Dn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Qa(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}var Xa=0,Ka=1,Ya=2;function Ja(t,e,n){return ts(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function ts(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:ra,childNodes:es(t,e),adoptedStyleSheets:Qa(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=[];t.childNodes.length&&(n=es(t,e));var r=sr(t);r&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:ua,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?Qa(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:ia,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=os(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Da(Pa(t),e.parentNodePrivacyLevel);var o;if(i===Aa.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:oa,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[Ra]:La},childNodes:[],isSVG:r}}if(i===Aa.IGNORE)return;var c=function(t,e,n){if(e===Aa.HIDDEN)return{};for(var r={},i=os(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=ns(t,e,s,n.configuration);null!==u&&(r[s]=u)}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=qa(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===Aa.ALLOW){var d=t;d.selected&&(r.selected=d.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(l=as(f))&&f&&(r._cssText=l)}if("style"===i&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var l;(l=as(t.sheet))&&(r._cssText=l)}var p=t;"input"!==i||"radio"!==p.type&&"checkbox"!==p.type||(e===Aa.ALLOW?r.checked=!!p.checked:Ba(p,e)&&delete r.checked);if("audio"===i||"video"===i){var h=t;r.rr_mediaState=h.paused?"paused":"played"}let v,m;var g=n.serializationContext;switch(g.status){case Xa:v=Math.round(t.scrollTop),m=Math.round(t.scrollLeft),(v||m)&&g.elementsScrollPositions.set(t,{scrollTop:v,scrollLeft:m});break;case Ka:g.elementsScrollPositions.has(t)&&({scrollTop:v,scrollLeft:m}=g.elementsScrollPositions.get(t))}m&&(r.rr_scrollLeft=m);v&&(r.rr_scrollTop=v);return r}(t,i,e),d=[];if(t.childNodes.length){d=es(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:pt({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}if(ar(t)){var f=ts(t.shadowRoot,e);null!==f&&d.push(f)}return{type:oa,tagName:n,attributes:c,childNodes:d,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=t.parentElement?.tagName,r=$a(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!r)return;return{type:aa,textContent:r,isStyle:"STYLE"===n||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:sa,textContent:""}}var n}(t,e);if(!n)return null;var r=Ha(t)||rs++,i=n;return i.id=r,function(t,e){Fa.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function es(t,e){var n=[];return t.childNodes.forEach((function(t){var r=ts(t,e);r&&n.push(r)})),n}function ns(t,e,n,r){if(e===Aa.HIDDEN)return null;var i,o=t.getAttribute(n);if(e===Aa.MASK&&n!==Ra&&!Ia.includes(n)&&n!==r.actionNameAttribute){var a=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Na}if(!("IMG"!==a&&"SOURCE"!==a||"src"!==n&&"srcset"!==n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===a&&"href"===n)return Na;if(o&&(i="data-",n.slice(0,i.length)===i))return Na}return o&&"string"==typeof o&&o.length>1e5&&"data:"===o.slice(0,5)?"data:truncated":o}var rs=1;var is=/[^a-z1-6-_]/;function os(t){var e=t.toLowerCase().trim();return is.test(e)?"div":e}function as(t){try{var e=t.rules||t.cssRules;return e?Za(Array.from(e,ss).join(""),t.href):null}catch(t){return null}}function ss(t){return function(t){return"styleSheet"in t}(t)?as(t.styleSheet)||"":t.cssText}function us(t){return Boolean(t.changedTouches)}function cs(t,e){return{data:pt({source:t},e),type:Ko,timestamp:ee()}}function ds(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function fs(t){var e=Ht,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback){var n=window.requestIdleCallback(t,e);return function(){return window.cancelIdleCallback(n)}}return n=window.requestAnimationFrame(t),function(){return window.cancelAnimationFrame(n)}}(r,{timeout:100})),n.push(...t)},flush:r,stop:function(){e()}}}function ls(t,e,n,r){var i=yi();if(!i)return{stop:Ht,flush:Ht};var o=fs((function(i){!function(t,e,n,r,i){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){ps(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!Va(e)&&!sr(e))return!1;e=ur(e)}return!0}(t.target)&&Ua(t.target,n.defaultPrivacyLevel)!==Aa.HIDDEN})),a=function(t,e,n){var r=new Set,i=new Map;for(var o of t)o.addedNodes.forEach((function(t){r.add(t)})),o.removedNodes.forEach((function(t){r.has(t)||i.set(t,o.target),r.delete(t)}));var a=Array.from(r);s=a,s.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var s;var u=new Set,c=[];for(var d of a)if(!v(d)){var f=Ua(d.parentNode,e.defaultPrivacyLevel);if(f!==Aa.HIDDEN&&f!==Aa.IGNORE){var l=ts(d,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:Ya,shadowRootsController:n},configuration:e});if(l){var p=ur(d);c.push({nextId:m(d),parentId:Ha(p),node:l})}}}var h=[];return i.forEach((function(t,e){Va(e)&&h.push({parentId:Ha(t),id:Ha(e)})})),{adds:c,removes:h,hasBeenSerialized:v};function v(t){return Va(t)&&u.has(Ha(t))}function m(t){for(var e=t.nextSibling;e;){if(Va(e))return Ha(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r),s=a.adds,u=a.removes,c=a.hasBeenSerialized,d=function(t,e){var n=[],r=new Set,i=t.filter((function(t){return!r.has(t.target)&&(r.add(t.target),!0)}));for(var o of i){if(o.target.textContent!==o.oldValue){var a=Ua(ur(o.target),e.defaultPrivacyLevel);a!==Aa.HIDDEN&&a!==Aa.IGNORE&&n.push({id:Ha(o.target),value:$a(o.target,!1,a)??null})}}return n}(o.filter((function(t){return"characterData"===t.type&&!c(t.target)})),n),f=function(t,e){var n=[],r=new Map,i=t.filter((function(t){var e=r.get(t.target);return!e?.has(t.attributeName)&&(e?e.add(t.attributeName):r.set(t.target,new Set([t.attributeName])),!0)})),o=new Map;for(var a of i){if(a.target.getAttribute(a.attributeName)!==a.oldValue){var s,u=Ua(a.target,e.defaultPrivacyLevel),c=ns(a.target,u,a.attributeName,e);if("value"===a.attributeName){var d=qa(a.target,u);if(void 0===d)continue;s=d}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:Ha(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(o.filter((function(t){"attributes"===t.type&&c(t.target)})),n);if(!(d.length||f.length||u.length||s.length))return;e({adds:s,removes:u,texts:d,attributes:f})}(i.concat(a.takeRecords()),t,e,n,r)})),a=new i(o.addMutations);return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function ps(t,e){var n;ar(t)&&e(t.shadowRoot),(n=t,ar(n)?n.shadowRoot.childNodes:n.childNodes).forEach((function(t){ps(t,e)}))}var hs=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},vs=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 ms(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function gs(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var _s=new WeakMap;let ys=1;function bs(t){return _s.has(t)||_s.set(t,ys++),_s.get(t)}function ws(t){var e,n,r,i,o,s,u,d,f=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,ls(e,n,r,document)),l=function(t){var e=Rt((function(e){var n=Ts(e);if(Va(n)){var r=Es(e);if(!r)return;var i={id:Ha(n),timeOffset:0,x:r.x,y:r.y};t([i],us(e)?va:da)}}),50,{trailing:!1});return fe(document,[y,c],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),p=function(t,e){var n=function(n){var r=Ts(n);if(Ua(r,e)!==Aa.HIDDEN&&Va(r)){var i,o=Ha(r),a=Ss[n.type];if(a!==xa&&a!==Ea){var s=Es(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=pt({id:bs(n)},cs(fa,i));t(u)}};return fe(document,Object.keys(Ss),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),h=function(t,e,n){var r=Rt((function(r){var i=Ts(r);if(i&&Ua(i,e)!==Aa.HIDDEN&&Va(i)){var o=Ha(i),a=i===document?{scrollTop:gs(),scrollLeft:ms()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100);return de(document,a,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),v=function(t){return Zo().subscribe(t).unsubscribe}(t.viewportResizeCb),m=xs(t.inputCb,t.configuration.defaultPrivacyLevel),g=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,fe(document,[k,C],(function(t){var e=Ts(t);e&&Ua(e,o)!==Aa.HIDDEN&&Va(e)&&i({id:Ha(e),type:t.type===k?Ca:Oa})}),{capture:!0,passive:!0}).stop),_=function(t){function e(t,e){t&&Va(t.ownerNode)&&e(Ha(t.ownerNode))}var n=[Pe(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),Pe(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,(function(e){return t({id:e,removes:[{index:n}]})}))}})];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(Pe(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=ds(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),Pe(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=ds(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),S=(s=t.focusCb,fe(window,[b,w],(function(){s({has_focus:document.hasFocus()})})).stop),x=function(t){if(!window.visualViewport)return Ht;var e=Rt((function(){t(vs())}),200,{trailing:!1}),n=fe(window.visualViewport,[E,a],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),T=(u=t.lifeCycle,d=t.frustrationCb,u.subscribe(kn,(function(t){t.rawRumEvent.type===j.ACTION&&t.rawRumEvent.action.type===$&&t.rawRumEvent.action.frustration?.type?.length&&"events"in t.domainContext&&t.domainContext.events?.length&&d({timestamp:t.rawRumEvent.date,type:na,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return bs(t)}))}})})).unsubscribe);return{flush:function(){f.flush()},stop:function(){f.stop(),l(),p(),h(),v(),m(),g(),_(),S(),x(),T()}}}var Ss={[h]:_a,[_]:ya,[e]:ba,[S]:wa,[n]:Sa,[b]:Ea,[w]:xa,[s]:Ta,[u]:ka};function Es(t){var e=us(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=hs(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function xs(t,e,n){var r=n&&n.domEvents||[T,x],i=n&&n.target||document,o=new WeakMap;function a(t){var n=Ua(t,e);if(n===Aa.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(Ba(t,n))return;i={isChecked:t.checked}}else{var o=qa(t,n);if(void 0===o)return;i={text:o}}s(t,i);var a,u,c=t.name;"radio"===r&&c&&t.checked&&(a=document.querySelectorAll(`input[type="radio"][name="${c}"]`),u=function(e){e!==t&&s(e,{isChecked:!1})},Array.prototype.forEach.call(a,u))}function s(e,n){if(Va(e)){var r=o.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(e,n),t(pt({id:Ha(e)},n)))}}var u=fe(i,r,(function(t){var e=Ts(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&a(e)}),{capture:!0,passive:!0}),c=[Be(HTMLInputElement.prototype,"value",a),Be(HTMLInputElement.prototype,"checked",a),Be(HTMLSelectElement.prototype,"value",a),Be(HTMLTextAreaElement.prototype,"value",a),Be(HTMLSelectElement.prototype,"selectedIndex",a)];return function(){c.forEach((function(t){t.stop()})),u.stop()}}function Ts(t){return!0===t.composed&&ar(t.target)?t.composedPath()[0]:t.target}function ks(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(cs(ca,t))},o=function(t){e(cs(ha,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=ls(n,t,o,e),s=a.flush,u=a.stop,c=xs(r,t.defaultPrivacyLevel,{target:e,domEvents:[x]});i.set(e,{flush:s,stop:function(){u(),c()}})},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=ee()),void 0===i&&(i={status:Xa,elementsScrollPositions:r,shadowRootsController:a});var o=Qo(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Yo,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Jo,timestamp:n}),e({data:{node:Ja(document,t.configuration,i),initialOffset:{left:ms(),top:gs()}},type:Xo,timestamp:n}),window.visualViewport&&e({data:vs(),type:ea,timestamp:n})};s();var u=ws({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(cs(ma,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(cs(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(cs(la,t))},styleSheetCb:function(t){e(cs(ga,t))},viewportResizeCb:function(t){e(cs(pa,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Jo,timestamp:ee()})},visualViewportResizeCb:function(t){e({data:t,type:ea,timestamp:ee()})},shadowRootsController:a}),c=u.stop,d=u.flush;function f(){a.flush(),d()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Ka,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Cs(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Os(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n.toString()),{data:r,bytesCount:t.byteLength}}function Os(t,e,n){void 0===n&&(n=""),lt(kt(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?Os(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Is;function As(t){return Ns(t).segments_count}function Rs(t){Ns(t).records_count+=1}function Ls(t){return Is&&Is.get(t)}function Ns(t){var e;return Is||(Is=new Map),Is.has(t)?e=Is.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Is.set(t,e),Is.size>10&&function(){if(!Is)return;if(Is.keys)Is.delete(Is.keys().next().value);else{var t=!0;Is.forEach((function(e,n){t&&(Is.delete(n),t=!1)}))}}()),e}var Ms=0;function Us(t,e,n,r,i,o){this.worker=t,this.id=Ms++;var a=e.view.id;this.metadata=pt({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===Xo,index_in_view:As(a),source:"browser"},e),function(t){Ns(t).segments_count+=1}(a),Rs(a);var s=this,u=function(e){var n=e.data;"errored"!==n.type&&"initialized"!==n.type&&(n.id===s.id?(!function(t,e){Ns(t).segments_total_raw_size+=e}(a,n.additionalBytesCount),"flushed"===n.type?(o(n.result,n.rawBytesCount),t.removeEventListener("message",u)):i(n.compressedBytesCount)):n.id>s.id&&t.removeEventListener("message",u))};t.addEventListener("message",u),this.worker.postMessage({data:'{"records":['+JSON.stringify(r),id:this.id,action:"write"})}Us.prototype.addRecord=function(t){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,Rs(this.metadata.view.id),this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===Xo),this.worker.postMessage({data:","+JSON.stringify(t),id:this.id,action:"write"})},Us.prototype.flush=function(t){this.worker.postMessage({data:"],"+JSON.stringify(this.metadata).slice(1)+"\n",id:this.id,action:"flush"}),this.flushReason=t};var Ds=6e4;function Ps(t,e,n,r,i,o){return function(t,e,n,r){var i={status:Bs,nextSegmentCreationReason:"init"},o=t.subscribe(_n,(function(){s("view_change")})).unsubscribe,a=t.subscribe(En,(function(t){s(t.reason)})).unsubscribe;function s(t){i.status===zs&&(i.segment.flush(t),clearTimeout(i.expirationTimeoutId)),i="stop"!==t?{status:Bs,nextSegmentCreationReason:t}:{status:$s}}function u(t,o){var a=e();if(a){var u=new Us(r,a,t,o,(function(t){!u.flushReason&&t>Ds&&s("segment_bytes_limit")}),(function(t,e){var r,i=Cs(t,u.metadata,e);r=u.flushReason,le(bt(ir),r)?n.sendOnExit(i):n.send(i)}));i={status:zs,segment:u,expirationTimeoutId:setTimeout((function(){s("segment_duration_limit")}),3e4)}}}return{addRecord:function(t){switch(i.status){case Bs:u(i.nextSegmentCreationReason,t);break;case zs:i.segment.addRecord(t)}},stop:function(){s("stop"),o(),a()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o)}var Bs=0,zs=1,$s=2;let Fs;function Vs(){return Fs||(Fs=URL.createObjectURL(new Blob([`(${Hs})(self)`]))),new Worker(Fs)}function Hs(){function t(t){return function(){try{return t.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(e){self.postMessage({type:"errored",error:`${t}`})}}}}t((function(){const{Deflate:e,constants:n,string2buf:r}=function(){var t=4,e=0,n=1,r=2;function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,a=1,s=2,u=3,c=258,d=29,f=256,l=f+1+d,p=30,h=19,v=2*l+1,m=15,g=16,_=7,y=256,b=16,w=17,S=18,E=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),x=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),T=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=512,O=new Array(2*(l+2));i(O);var I=new Array(2*p);i(I);var A=new Array(C);i(A);var R=new Array(c-u+1);i(R);var L=new Array(d);i(L);var N,M,U,D=new Array(p);function P(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function B(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}i(D);var z=function(t){return t<256?A[t]:A[256+(t>>>7)]},$=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},F=function(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},V=function(t,e,n){F(t,n[2*e],n[2*e+1])},H=function(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},q=function(t){16===t.bi_valid?($(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},j=function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,g=0;for(o=0;o<=m;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<v;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>h&&(o=h,g++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=l[r-p]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(d[2*r+1]+a)));if(0!==g){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,g-=2}while(g>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},W=function(t,e,n){var r,i,o=new Array(m+1),a=0;for(r=1;r<=m;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(o[s]++,s))}},G=function(){var t,e,n,r,i,o=new Array(m+1);for(n=0,r=0;r<d-1;r++)for(L[r]=n,t=0;t<1<<E[r];t++)R[n++]=r;for(R[n-1]=r,i=0,r=0;r<16;r++)for(D[r]=i,t=0;t<1<<x[r];t++)A[i++]=r;for(i>>=7;r<p;r++)for(D[r]=i<<7,t=0;t<1<<x[r]-7;t++)A[256+i++]=r;for(e=0;e<=m;e++)o[e]=0;for(t=0;t<=143;)O[2*t+1]=8,t++,o[8]++;for(;t<=255;)O[2*t+1]=9,t++,o[9]++;for(;t<=279;)O[2*t+1]=7,t++,o[7]++;for(;t<=287;)O[2*t+1]=8,t++,o[8]++;for(W(O,l+1,o),t=0;t<p;t++)I[2*t+1]=5,I[2*t]=H(t,5);N=new P(O,E,f+1,l,m),M=new P(I,x,0,p,m),U=new P(new Array(0),T,0,h,_)},Z=function(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<p;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},Q=function(t){t.bi_valid>8?$(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},X=function(t,e,n,r){Q(t),r&&($(t,n),$(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},K=function(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},Y=function(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},J=function(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?V(t,i,e):(o=R[i],V(t,o+f+1,e),0!==(a=E[o])&&(i-=L[o],F(t,i,a)),r--,o=z(r),V(t,o,n),0!==(a=x[o])&&(r-=D[o],F(t,r,a)))}while(s<t.last_lit);V(t,y,e)},tt=function(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=v,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Y(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Y(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Y(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],j(t,e),W(o,c,t.bl_count)},et=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*b]++):s<=10?t.bl_tree[2*w]++:t.bl_tree[2*S]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},nt=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{V(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(V(t,i,t.bl_tree),s--),V(t,b,t.bl_tree),F(t,s-3,2)):s<=10?(V(t,w,t.bl_tree),F(t,s-3,3)):(V(t,S,t.bl_tree),F(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},rt=function(t){var e;for(et(t,t.dyn_ltree,t.l_desc.max_code),et(t,t.dyn_dtree,t.d_desc.max_code),tt(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},it=function(t,e,n,r){var i;for(F(t,e-257,5),F(t,n-1,5),F(t,r-4,4),i=0;i<r;i++)F(t,t.bl_tree[2*k[i]+1],3);nt(t,t.dyn_ltree,e-1),nt(t,t.dyn_dtree,n-1)},ot=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return e;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return n;for(r=32;r<f;r++)if(0!==t.dyn_ltree[2*r])return n;return e},at=!1,st=function(t,e,n,r){F(t,(o<<1)+(r?1:0),3),X(t,e,n,!0)},ut=function(e,n,i,o){var u,c,d=0;e.level>0?(e.strm.data_type===r&&(e.strm.data_type=ot(e)),tt(e,e.l_desc),tt(e,e.d_desc),d=rt(e),u=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=u&&(u=c)):u=c=i+5,i+4<=u&&-1!==n?st(e,n,i,o):e.strategy===t||c===u?(F(e,(a<<1)+(o?1:0),3),J(e,O,I)):(F(e,(s<<1)+(o?1:0),3),it(e,e.l_desc.max_code+1,e.d_desc.max_code+1,d+1),J(e,e.dyn_ltree,e.dyn_dtree)),Z(e),o&&Q(e)},ct={_tr_init:function(t){at||(G(),at=!0),t.l_desc=new B(t.dyn_ltree,N),t.d_desc=new B(t.dyn_dtree,M),t.bl_desc=new B(t.bl_tree,U),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:st,_tr_flush_block:ut,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(R[n]+f+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){F(t,a<<1,3),V(t,y,O),q(t)}},dt=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ft=new Uint32Array(function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),lt=function(t,e,n,r){var i=ft,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},pt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ht={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},vt=ct._tr_init,mt=ct._tr_stored_block,gt=ct._tr_flush_block,_t=ct._tr_tally,yt=ct._tr_align,bt=ht.Z_NO_FLUSH,wt=ht.Z_PARTIAL_FLUSH,St=ht.Z_FULL_FLUSH,Et=ht.Z_FINISH,xt=ht.Z_BLOCK,Tt=ht.Z_OK,kt=ht.Z_STREAM_END,Ct=ht.Z_STREAM_ERROR,Ot=ht.Z_DATA_ERROR,It=ht.Z_BUF_ERROR,At=ht.Z_DEFAULT_COMPRESSION,Rt=ht.Z_FILTERED,Lt=ht.Z_HUFFMAN_ONLY,Nt=ht.Z_RLE,Mt=ht.Z_FIXED,Ut=ht.Z_DEFAULT_STRATEGY,Dt=ht.Z_UNKNOWN,Pt=ht.Z_DEFLATED,Bt=9,zt=15,$t=8,Ft=286,Vt=30,Ht=19,qt=2*Ft+1,jt=15,Wt=3,Gt=258,Zt=Gt+Wt+1,Qt=32,Xt=42,Kt=69,Yt=73,Jt=91,te=103,ee=113,ne=666,re=1,ie=2,oe=3,ae=4,se=3,ue=function(t,e){return t.msg=pt[e],e},ce=function(t){return(t<<1)-(t>4?9:0)},de=function(t){for(var e=t.length;--e>=0;)t[e]=0},fe=function(t,e,n){return(e<<t.hash_shift^n)&t.hash_mask},le=function(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},pe=function(t,e){gt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,le(t.strm)},he=function(t,e){t.pending_buf[t.pending++]=e},ve=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},me=function(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=dt(t.adler,e,i,n):2===t.state.wrap&&(t.adler=lt(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},ge=function(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Zt?t.strstart-(t.w_size-Zt):0,c=t.window,d=t.w_mask,f=t.prev,l=t.strstart+Gt,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<l);if(r=Gt-(l-o),o=l-Gt,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=f[e&d])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},_e=function(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-Zt)){t.window.set(t.window.subarray(a,a+a),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=me(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=Wt)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=fe(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=fe(t,t.ins_h,t.window[o+Wt-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<Wt)););}while(t.lookahead<Zt&&0!==t.strm.avail_in)},ye=function(t,e){for(var n,r;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===bt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Zt&&(t.match_length=ge(t,n)),t.match_length>=Wt)if(r=_t(t,t.strstart-t.match_start,t.match_length-Wt),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Wt){t.match_length--;do{t.strstart++,t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=fe(t,t.ins_h,t.window[t.strstart+1]);else r=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},be=function(t,e){for(var n,r,i;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===bt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=Wt-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Zt&&(t.match_length=ge(t,n),t.match_length<=5&&(t.strategy===Rt||t.match_length===Wt&&t.strstart-t.match_start>4096)&&(t.match_length=Wt-1)),t.prev_length>=Wt&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-Wt,r=_t(t,t.strstart-1-t.prev_match,t.prev_length-Wt),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=Wt-1,t.strstart++,r&&(pe(t,!1),0===t.strm.avail_out))return re}else if(t.match_available){if((r=_t(t,0,t.window[t.strstart-1]))&&pe(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return re}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=_t(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},we=function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Gt){if(_e(t),t.lookahead<=Gt&&e===bt)return re;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=Wt&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Gt;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Gt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=Wt?(n=_t(t,1,t.match_length-Wt),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},Se=function(t,e){for(var n;;){if(0===t.lookahead&&(_e(t),0===t.lookahead)){if(e===bt)return re;break}if(t.match_length=0,n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie};function Ee(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var xe=[new Ee(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_e(t),0===t.lookahead&&e===bt)return re;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,pe(t,!1),0===t.strm.avail_out))return re;if(t.strstart-t.block_start>=t.w_size-Zt&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):(t.strstart>t.block_start&&(pe(t,!1),t.strm.avail_out),re)})),new Ee(4,4,8,4,ye),new Ee(4,5,16,8,ye),new Ee(4,6,32,32,ye),new Ee(4,4,16,16,be),new Ee(8,16,32,32,be),new Ee(8,16,128,128,be),new Ee(8,32,128,256,be),new Ee(32,128,258,1024,be),new Ee(32,258,258,4096,be)],Te=function(t){t.window_size=2*t.w_size,de(t.head),t.max_lazy_match=xe[t.level].max_lazy,t.good_match=xe[t.level].good_length,t.nice_match=xe[t.level].nice_length,t.max_chain_length=xe[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Wt-1,t.match_available=0,t.ins_h=0};function ke(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Pt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*qt),this.dyn_dtree=new Uint16Array(2*(2*Vt+1)),this.bl_tree=new Uint16Array(2*(2*Ht+1)),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(jt+1),this.heap=new Uint16Array(2*Ft+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ft+1),de(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ce=function(t){if(!t||!t.state)return ue(t,Ct);t.total_in=t.total_out=0,t.data_type=Dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?Xt:ee,t.adler=2===e.wrap?0:1,e.last_flush=bt,vt(e),Tt},Oe=function(t){var e=Ce(t);return e===Tt&&Te(t.state),e},Ie=function(t,e,n,r,i,o){if(!t)return Ct;var a=1;if(e===At&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Bt||n!==Pt||r<8||r>15||e<0||e>9||o<0||o>Mt)return ue(t,Ct);8===r&&(r=9);var s=new ke;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Wt-1)/Wt),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,Oe(t)},Ae=function(t,e){var n=e.length;if(!t||!t.state)return Ct;var r=t.state,i=r.wrap;if(2===i||1===i&&r.status!==Xt||r.lookahead)return Ct;if(1===i&&(t.adler=dt(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(de(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(e.subarray(n-r.w_size,n),0),e=o,n=r.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,_e(r);r.lookahead>=Wt;){var c=r.strstart,d=r.lookahead-(Wt-1);do{r.ins_h=fe(r,r.ins_h,r.window[c+Wt-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++}while(--d);r.strstart=c,r.lookahead=Wt-1,_e(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Wt-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=i,Tt},Re={deflateInit:function(t,e){return Ie(t,e,Pt,zt,$t,Ut)},deflateInit2:Ie,deflateReset:Oe,deflateResetKeep:Ce,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?Ct:(t.state.gzhead=e,Tt):Ct},deflate:function(t,e){var n,r;if(!t||!t.state||e>xt||e<0)return t?ue(t,Ct):Ct;var i=t.state;if(!t.output||!t.input&&0!==t.avail_in||i.status===ne&&e!==Et)return ue(t,0===t.avail_out?It:Ct);i.strm=t;var o=i.last_flush;if(i.last_flush=e,i.status===Xt)if(2===i.wrap)t.adler=0,he(i,31),he(i,139),he(i,8),i.gzhead?(he(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),he(i,255&i.gzhead.time),he(i,i.gzhead.time>>8&255),he(i,i.gzhead.time>>16&255),he(i,i.gzhead.time>>24&255),he(i,9===i.level?2:i.strategy>=Lt||i.level<2?4:0),he(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(he(i,255&i.gzhead.extra.length),he(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=lt(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Kt):(he(i,0),he(i,0),he(i,0),he(i,0),he(i,0),he(i,9===i.level?2:i.strategy>=Lt||i.level<2?4:0),he(i,se),i.status=ee);else{var a=Pt+(i.w_bits-8<<4)<<8;a|=(i.strategy>=Lt||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=Qt),a+=31-a%31,i.status=ee,ve(i,a),0!==i.strstart&&(ve(i,t.adler>>>16),ve(i,65535&t.adler)),t.adler=1}if(i.status===Kt)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending!==i.pending_buf_size));)he(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Yt)}else i.status=Yt;if(i.status===Yt)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=Jt)}else i.status=Jt;if(i.status===Jt)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=te)}else i.status=te;if(i.status===te&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&le(t),i.pending+2<=i.pending_buf_size&&(he(i,255&t.adler),he(i,t.adler>>8&255),t.adler=0,i.status=ee)):i.status=ee),0!==i.pending){if(le(t),0===t.avail_out)return i.last_flush=-1,Tt}else if(0===t.avail_in&&ce(e)<=ce(o)&&e!==Et)return ue(t,It);if(i.status===ne&&0!==t.avail_in)return ue(t,It);if(0!==t.avail_in||0!==i.lookahead||e!==bt&&i.status!==ne){var s=i.strategy===Lt?Se(i,e):i.strategy===Nt?we(i,e):xe[i.level].func(i,e);if(s!==oe&&s!==ae||(i.status=ne),s===re||s===oe)return 0===t.avail_out&&(i.last_flush=-1),Tt;if(s===ie&&(e===wt?yt(i):e!==xt&&(mt(i,0,0,!1),e===St&&(de(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),le(t),0===t.avail_out))return i.last_flush=-1,Tt}return e!==Et?Tt:i.wrap<=0?kt:(2===i.wrap?(he(i,255&t.adler),he(i,t.adler>>8&255),he(i,t.adler>>16&255),he(i,t.adler>>24&255),he(i,255&t.total_in),he(i,t.total_in>>8&255),he(i,t.total_in>>16&255),he(i,t.total_in>>24&255)):(ve(i,t.adler>>>16),ve(i,65535&t.adler)),le(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Tt:kt)},deflateEnd:function(t){if(!t||!t.state)return Ct;var e=t.state.status;return e!==Xt&&e!==Kt&&e!==Yt&&e!==Jt&&e!==te&&e!==ee&&e!==ne?ue(t,Ct):(t.state=null,e===ee?ue(t,Ot):Tt)},deflateSetDictionary:Ae,deflateInfo:"pako deflate (from Nodeca project)"};function Le(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i}for(var Ne=new Uint8Array(256),Me=0;Me<256;Me++)Ne[Me]=Me>=252?6:Me>=248?5:Me>=240?4:Me>=224?3:Me>=192?2:1;function Ue(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}Ne[254]=Ne[254]=1;var De=Ue,Pe=Object.prototype.toString,Be=ht.Z_NO_FLUSH,ze=ht.Z_SYNC_FLUSH,$e=ht.Z_FULL_FLUSH,Fe=ht.Z_FINISH,Ve=ht.Z_OK,He=ht.Z_STREAM_END,qe=ht.Z_DEFAULT_COMPRESSION,je=ht.Z_DEFAULT_STRATEGY,We=ht.Z_DEFLATED;function Ge(){this.options={level:qe,method:We,chunkSize:16384,windowBits:15,memLevel:8,strategy:je};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new De,this.strm.avail_out=0;var e=Re.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Ve)throw new Error(pt[e]);if(t.header&&Re.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="[object ArrayBuffer]"===Pe.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Re.deflateSetDictionary(this.strm,n))!==Ve)throw new Error(pt[e]);this._dict_set=!0}}function Ze(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}return Ge.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Fe:Be,"[object ArrayBuffer]"===Pe.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===ze||r===$e)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Re.deflate(i,r))===He)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Re.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ve;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Ge.prototype.onData=function(t){this.chunks.push(t)},Ge.prototype.onEnd=function(t){t===Ve&&(this.result=Le(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},{Deflate:Ge,constants:ht,string2buf:Ze}}();let i=new e,o=0;function a(t){const e=r(t);return i.push(e,n.Z_SYNC_FLUSH),o+=e.length,e.length}self.addEventListener("message",t((t=>{const r=t.data;switch(r.action){case"init":self.postMessage({type:"initialized"});break;case"write":{const t=a(r.data);self.postMessage({type:"wrote",id:r.id,compressedBytesCount:i.chunks.reduce(((t,e)=>t+e.length),0),additionalBytesCount:t});break}case"flush":{const t=r.data?a(r.data):0;i.push("",n.Z_FINISH),self.postMessage({type:"flushed",id:r.id,result:i.result,additionalBytesCount:t,rawBytesCount:o}),i=new e,o=0;break}}})))}))()}var qs=0,js=1,Ws=2,Gs=3,Zs={status:qs};function Qs(t,e){switch(void 0===e&&(e=Vs),Zs.status){case qs:Zs={status:js,callbacks:[t]},function(t){void 0===t&&(t=Vs);try{var e=t();e.addEventListener("error",Xs),e.addEventListener("message",(function(t){var n=t.data;"errored"===n.type?Xs(n.error):"initialized"===n.type&&function(t){Zs.status===js&&(lt(Zs.callbacks,(function(e){e(t)})),Zs={status:Gs,worker:t})}(e)})),e.postMessage({action:"init"})}catch(t){Xs(t)}}(e);break;case js:Zs.callbacks.push(t);break;case Ws:t();break;case Gs:t(Zs.worker)}}function Xs(t){Zs.status===js&&(Le.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),(t instanceof Event||t instanceof Error&&le(t.message,"Content Security Policy"))&&Le.error("Please make sure CSP is correctly configured !!!"),lt(Zs.callbacks,(function(t){t()})),Zs={status:Ws})}var Ks=0,Ys=1,Js=2,tu=3;var eu,nu,ru,iu,ou=function(t,e){if(void 0===e&&(e=Qs),"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||!("forEach"in NodeList.prototype))return{start:Ht,stop:Ht,getReplayStats:function(){},onRumStart:Ht,isRecording:function(){return!1}};var n={status:Ks},r=function(){n={status:Ys}},i=function(){n={status:Ks}};return{start:function(){r()},stop:function(){i()},getReplayStats:Ls,onRumStart:function(o,a,s,u){o.subscribe(Sn,(function(){n.status!==Js&&n.status!==tu||(i(),n={status:Ys})})),o.subscribe(wn,(function(){n.status===Ys&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?n.status!==Js&&n.status!==tu&&(n={status:Js},Ee("interactive",(function(){n.status===Js&&e((function(e){if(n.status===Js)if(e){var r=t(o,a,s,u,e);n={status:tu,stopRecording:r.stop}}else n={status:Ks}}))}))):n={status:Ys}},i=function(){n.status!==Ks&&(n.status===tu&&n.stopRecording(),n={status:Ks})},n.status===Ys&&r()},isRecording:function(){return n.status===tu}}}((function(t,e,n,r,i,o){var a=o||Fr(e.sessionReplayEndPoint,Ds,(function(e){t.notify(On,{error:e})})),s=Ps(t,e,n,r,a,i),u=s.addRecord,c=s.stop,d=ks({emit:u,configuration:e,lifeCycle:t}),f=d.stop,l=d.takeSubsequentFullSnapshot,p=d.flushMutations,h=t.subscribe(bn,(function(){p(),u({timestamp:ee(),type:ta})})),v=t.subscribe(_n,(function(t){l(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),au=function(t,e){var n,r,i=!1,o=pe(),a=pe(),s=new Oe,u=function(t,e){void 0===e&&(e=ee()),s.add((function(){return u(t,e)}))},c=function(t,e){void 0===e&&(e=te()),s.add((function(){return c(t,e)}))},d=function(t,e){void 0===e&&(e={context:o.getContext(),user:a.getContext()}),s.add((function(){return d(t,e)}))},f=function(t,e){void 0===e&&(e={context:o.getContext(),user:a.getContext()}),s.add((function(){return f(t,e)}))},l=function(){},p=function(){};function h(n,r){var i=t(n,(function(){return{user:a.getContext(),context:o.getContext(),hasReplay:!!e.isRecording()||void 0}}),e,r);c=i.startView,d=i.addAction,f=i.addError,u=i.addTiming,l=i.getInternalContext,s.drain(),e.onRumStart(i.lifeCycle,n,i.session,i.viewContexts)}return n={init:function(t){if(function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(Nt()),n="test";return $n(e,n,jt,t),Fn(e)===n}catch(t){return console.error(t),!1}}(Xn(t))?"file:"!==window.location.protocol||(Le.error("Execution is not allowed in the current context."),!1):(Le.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!i||(t.silentMultipleInit||Le.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var e=function(t){if(t.applicationId){if(!t.datakitUrl&&!t.datakitOrigin)return Le.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===t.sessionReplaySampleRate||ve(t.sessionReplaySampleRate))if(void 0===t.allowedTracingOrigins||gt(t.allowedTracingOrigins))if(void 0===t.allowedDDTracingOrigins||gt(t.allowedDDTracingOrigins))if(void 0===t.tracingSampleRate||ve(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||gt(t.excludedActivityUrls)){var e=Qn(t);if(e){var n=!!t.trackFrustrations;return pt({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Se(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingOrigins:Se(t.allowedTracingOrigins||t.allowedDDTracingOrigins,[]),excludedActivityUrls:Se(t.excludedActivityUrls,[]),trackInteractions:!!t.trackInteractions||n,trackFrustrations:n,trackViewsManually:!!t.trackViewsManually,traceType:Se(t.traceType,Q),traceId128Bit:!!t.traceId128Bit,isJsBirdge:!!t.isJsBirdge,defaultPrivacyLevel:xe(Zn,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Zn.MASK_USER_INPUT},e,Go)}}else Le.error("Excluded Activity Urls should be an array");else Le.error("Tracing Sample Rate should be a number between 0 and 100");else Le.error("Allowed Tracing Origins should be an array");else Le.error("Allowed Tracing Origins should be an array");else Le.error("Premium Sample Rate should be a number between 0 and 100")}else Le.error("Application ID is not configured, no RUM data will be collected.")}(t);if(e){if(e.trackViewsManually){var n=s;s=new Oe,c=function(t){h(e,t)},n.drain()}else h(e);p=function(){return zt(t)},i=!0}}},addRumGlobalContext:o.add,setGlobalContextProperty:o.setContextProperty,removeRumGlobalContext:o.remove,removeGlobalContextProperty:o.removeContextProperty,getRumGlobalContext:o.get,getGlobalContext:o.getContext,setRumGlobalContext:o.set,setGlobalContext:o.setContext,clearGlobalContext:o.clearContext,getInitConfiguration:function(){return p()},getInternalContext:function(t){return l(t)},addDebugSession:function(t){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(t,e){d({name:t,context:zt(e),startClocks:te(),type:F})},addError:function(t,e){var n=Je();f({error:t,handlingStack:n,context:zt(e),startClocks:te()})},addTiming:function(t,e){u(t,e)},setUser:function(t){"object"==typeof t&&t?a.setContext(v(t)):Le.error("Unsupported user:",t)},getUser:a.getContext,setUserProperty:function(t,e){var n={};n[t]=e;var r=v(n)[t];a.setContextProperty(t,r)},removeUserProperty:a.removeContextProperty,removeUser:a.clearContext,clearUser:a.clearContext,startView:function(t){c("object"==typeof t?t:{name:t})},startSessionReplayRecording:e.start,stopSessionReplayRecording:e.stop},r=vt({},n,{onReady:function(t){t()}}),Object.defineProperty(r,"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),r;function v(t){var e=pt(t,{});return"id"in e&&(e.id=String(e.id)),"name"in e&&(e.name=String(e.name)),"email"in e&&(e.email=String(e.email)),e}}((function(e,n,r,i){var o,a=new In,s=function(t){a.notify(On,{error:t})},u=o=new on((function(){var e=fe(document,[d,f,g],(function(t){t.type===d&&"hidden"===document.visibilityState?o.notify({reason:ir.HIDDEN}):t.type===f&&o.notify({reason:ir.FROZEN})}),{capture:!0}),n=de(window,t,(function(){o.notify({reason:ir.UNLOADING})}));return function(){e.stop(),n.stop()}}));u.subscribe((function(t){a.notify(En,t)})),Yi(e,a,s,u);var c=Jr(e,a),l=function(t){var e=Fn(ei);return e||(e=Nt(),$n(ei,e,5184e6,t.cookieOptions)),{getId:function(){return e}}}(e),p=function(){var t=yi(),e=new on((function(){if(t){var n=new t((function(){return e.notify()}));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return e}(),h=bi(location),v=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Ae(144e5);return t.subscribe(_n,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(bn,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(wn,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(e),d=function(t,e,n){var r,i=new Ae(144e5);t.subscribe(bn,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(_n,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=Jt();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return"/"===e&&n&&!Te(n)&&(e="/"+ke(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:Mt(e),urlQuery:Ft(Dt(t.location.href))}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(e,o,t),f=oo(),l=function(t,e,n,r){t.subscribe(gn,(function(e){t.notify(kn,Xi(e,r))}));var i={findActionId:Ht};return n.trackInteractions&&(i=ji(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(kn,vt({savedCommonContext:n},Xi(e,r)))}}}(e,a,n,f),p=l.actionContexts;return ro(n,e,r,i,c,d,p,s,u),{viewContexts:c,urlContexts:d,foregroundContexts:f,addAction:l.addAction,actionContexts:p,stop:function(){c.stop(),f.stop()}}}(location,a,e,c,l,h,p,n,s),m=v.viewContexts,_=v.urlContexts,y=v.actionContexts,b=v.foregroundContexts;!function(t,e){t.subscribe(mn,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!e.findTrackedSession(i.startTime))break;var o=oe(i.startTime),a={date:o.timeStamp,long_task:{id:Nt(),duration:Xt(i.duration)},type:j.LONG_TASK};t.notify(kn,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(a,c),Vo(a,e);var w=yo(a,e,location,p,h,b,r,i),S=w.addTiming,E=w.startView,x=lo(a,b).addError;Bo(a,e,c),mi(a,e);var T=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c}:void 0,view:{id:a.id,name:a.name,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(e.applicationId,c,m,y,_);return{addAction:v.addAction,addError:x,addTiming:S,configuration:e,lifeCycle:a,viewContexts:m,session:c,startView:E,getInternalContext:T.get}}),ou);eu=function(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}(),ru=au,iu=eu[nu="DATAFLUX_RUM"],eu[nu]=ru,iu&&iu.q&<(iu.q,(function(t){t()}))}();
|