@cloudcare/browser-rum 3.0.26 → 3.0.27
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/domain/replay/record/serializationUtils.js +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/domain/replay/record/serializationUtils.js +1 -1
- package/package.json +2 -2
- package/src/domain/replay/record/serializationUtils.js +1 -1
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=function e(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(t,n)||(n=t.log),e[n].apply(e,r)};function n(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}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==r(t)&&(t="object"===("undefined"==typeof self?"undefined":r(self))?self:"object"===("undefined"==typeof window?"undefined":r(window))?window:{}),t}function o(t,e){return n(i(),"setTimeout")(t,e)}function a(t){n(i(),"clearTimeout")(t)}function s(t,e){return n(window,"setInterval")(t,e)}function u(t){n(window,"clearInterval")(t)}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}e.debug=console.debug.bind(console),e.log=console.log.bind(console),e.info=console.info.bind(console),e.warn=console.warn.bind(console),e.error=console.error.bind(console);var l=Array.prototype,f=(Function.prototype,Object.prototype),d=l.slice,p=f.toString,h=f.hasOwnProperty,v=l.forEach,_=Array.isArray,g=function(t,e,n){if(null===t)return!1;if(v&&t.forEach===v)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(h.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function m(t){return g(d.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function y(t){return m({},t)}var E=function(t){return g(d.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},b=function(t){return g(d.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(L(e[n])&&L(t[n])?E(t[n],e[n]):t[n]=e[n])})),t},w=_||function(t){return"[object Array]"===p.call(t)},S=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},T=function(t){return t?t.toArray?t.toArray():w(t)?d.call(t):(e=t)&&h.call(e,"callee")?d.call(t):C(t):[];var e},C=function(t){var e=[];return null===t||g(t,(function(t){e[e.length]=t})),e},O=function(t){var e=[];return null===t||g(t,(function(t,n){e[e.length]=n})),e},I=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},R=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},A=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},x=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},k=function(t,n,r){return void 0===r&&(r=!1),A(t,(function(t){try{if("function"==typeof t)return t(n);if(t instanceof RegExp)return t.test(n);if("string"==typeof t)return r?At(n,t):t===n}catch(t){e.error(t)}}))},N=function(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},L=function(t){return null!==t&&"[object Object]"===p.call(t)},D=function(t){if(L(t)){for(var e in t)if(h.call(t,e))return!1;return!0}return!1},U=function(t){var e=[];return g(t,(function(t,n){e.push([n,t])})),e},M=function(t){return"[object String]"===p.call(t)},P=function(t){return"[object Boolean]"===p.call(t)},B=function(t){return"[object Number]"===p.call(t)&&/[\d\.]+/.test(String(t))},F=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},H=(Date.now,function(t,e,n){var r,i,s=!n||void 0===n.leading||n.leading,u=!n||void 0===n.trailing||n.trailing,c=!1,l=this;return{throttled:function(){c?r=arguments:(s?t.apply(l,arguments):r=arguments,c=!0,i=o((function(){u&&r&&t.apply(l,r),c=!1,r=void 0}),e))},cancel:function(){a(i),c=!1,r=void 0}}}),z=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="",l=[];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,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function W(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,W)}function V(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var $=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"!==c(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 j=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=G("?"+n)),e},G=function(t){for(var e=function(t){return F(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 K(t){return null===t?"null":Array.isArray(t)?"array":c(t)}function q(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"!==c(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]=q(i[o],e[o],n);return i}i="object"===K(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=q(i[a],e[a],n));return i}}function Z(t){return q(void 0,t)}function Y(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function Q(){}var X,J=1e3,tt=60*J,et=60*tt,nt=365*(24*et);function rt(t){return 0!==t&&100*Math.random()<=t}function it(t,e){return+t.toFixed(e)}function ot(t){return"number"!=typeof t?t:it(1e6*t,0)}function at(t){return B(t)?it(1e6*t,0):t}function st(t){return t-mt()}function ut(t){return Math.round(mt()+t)}function ct(){return performance.now()}function lt(){return{relative:ct(),timeStamp:ft()}}function ft(){return dt()}function dt(){return(new Date).getTime()}function pt(t,e){return e-t}function ht(){return{relative:0,timeStamp:mt()}}function vt(t){return{relative:t,timeStamp:gt(t)}}function _t(t,e){return t+e}function gt(t){var e=dt()-performance.now();return e>mt()?Math.round(e+t):ut(t)}function mt(){return void 0===X&&(X=performance.timing.navigationStart),X}function yt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&h.call(t,r)))return;t=t[r]}return t}function Et(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function bt(t){var e=K(t);return"string"===e||"function"===e||t instanceof RegExp}function wt(t,e){return-1!==t.indexOf(e)}function St(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Tt(t){return B(t)&&t>=0&&t<=100}function Ct(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ot(t){var e={};return g(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=It(t)})),e}function It(t){return w(t)?R(t,(function(t){return It(t)})):"object"===c(t)&&null!==t?Ot(t):t}function Rt(t,e){return null!=t?t:e}function At(t,e){return t.slice(0,e.length)===e}function xt(t){var e=t.substr(1);return!!document.getElementById(e)}function kt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Nt=function(){this.buffer=[]};Nt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){g(this.buffer,(function(t){t()})),this.buffer.length=0}};var Lt=Nt,Dt=1/0,Ut=tt;function Mt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=s((function(){n.clearOldContexts()}),Ut)}Mt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:Dt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},Mt.prototype.find=function(t){void 0===t&&(t=Dt);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}}},Mt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===Dt&&e.close(t)},Mt.prototype.findAll=function(t,e){void 0===e&&(e=0);var n=_t(t,e);void 0===t&&(t=Dt);var r=I(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return R(r,(function(t){return t.context}))},Mt.prototype.reset=function(){this.entries=[]},Mt.prototype.stop=function(){u(this.clearOldContextsInterval)},Mt.prototype.clearOldContexts=function(){for(var t=ct()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Pt={navigator:"undefined"!=typeof window&&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"]}},Bt={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||t.indexOf("Edg")>-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=Pt.navigator.userAgent||"",n=Bt.getMatchMap(e);for(var r in Pt.infoMap)for(var i=0;i<Pt.infoMap[r].length;i++){var o=Pt.infoMap[r][i];n[o]&&(t[r]=o)}},getOS:function(){return Bt.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var t=this,e=Pt.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",Bt.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=(Pt.navigator.browserLanguage||Pt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language},getBrowserInfo:function(){var t=this;Bt.matchInfoMap(t);var e=Pt.navigator.userAgent||"",n=function(t,e){var n=Pt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Bt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&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")||Pt.navigator&&void 0===Pt.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){e.warn(t)}))}},Ft={};"undefined"!=typeof window&&(Ft={os:Bt.getOS(),osVersion:Bt.getOSVersion().version,osVersionMajor:Bt.getOSVersion().osMajor,browser:Bt.getBrowserInfo().browser,browserVersion:Bt.getBrowserInfo().browserVersion,browserVersionMajor:Bt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Bt.getNetwork(),divice:Bt.getDeviceType()});var Ht=Ft,zt={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange"},Wt={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},Vt={CLICK:"click",CUSTOM:"custom"},$t={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},jt={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Gt={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},Kt={FETCH:Wt.FETCH,XHR:Wt.XHR},qt={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},Zt={HANDLED:"handled",UNHANDLED:"unhandled"};function Yt(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 Qt(t,e,n){return Yt(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 Xt(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Q};var i=function(t,e){o((function(){n(t,e)}),0)},a=function(t){r.set.call(this,t),i(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):i=Q}}}function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function te(t,e,n){if("object"!==Jt(t)||null===t)return JSON.stringify(t);var r=ee(Object.prototype),i=ee(Array.prototype),o=ee(Object.getPrototypeOf(t)),a=ee(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ee(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):Q}function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}var re="?";function ie(t){var e=[],n=pe(t,"stack");return n&&g(n.split("\n"),(function(t){var n=function(t){var e=se.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=ue.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]||re,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=ce.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:re,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=le.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||re,line:+e[3],url:e[2]}}(t)||function(t){var e=fe.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=de.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]||re,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=re),e.push(n))})),{message:pe(t,"message"),name:pe(t,"name"),stack:e}}var oe="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",ae="(?::(\\d+))",se=new RegExp("^\\s*at (.*?) ?\\("+oe+ae+"?"+ae+"?\\)?\\s*$","i"),ue=new RegExp("\\((\\S*)"+ae+ae+"\\)");var ce=new RegExp("^\\s*at ?"+oe+ae+"?"+ae+"??\\s*$","i");var le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var fe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,de=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function pe(t,e){if("object"===ne(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var he=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ve(t){var e=function(t){return Qt(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=ie(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=he.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Rt(o,e))}})}(t),n=function(t){return Qt(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=ie(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}var _e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function ge(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:ye(e),handlingStack:r,type:e.name,causes:be(n,a)}:{startClocks:i,source:a,handling:s,originalError:n,message:o+" "+te(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function me(){var t=new Error;if(!t.stack)try{throw t}catch(t){}var e=ie(t);return e.stack=e.stack.slice(2),ye(e)}function ye(t){var e=Ee(t);return g(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 Ee(t){return(t.name||"Error")+": "+t.message}function be(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=ie(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&ye(i)}),n=n.cause}return r.length?r:void 0}function we(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Se(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Te=1024,Ce=1024*Te,Oe=/[^\u0000-\u007F]/;function Ie(t){return Oe.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}var Re=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Re.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=I(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){g(this.observers,(function(e){e(t)}))}};var Ae=Re;function xe(){var t=[].slice.call(arguments),e=new Ae((function(){var n=R(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return g(n,(function(t){return t.unsubscribe()}))}}));return e}var ke={};function Ne(e){var n=R(e,(function(e){return ke[e]||(ke[e]=function(e){var n=new Ae((function(){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=me();n.notify(function(e,n,r){var i,o=R(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ee(ie(t));return te(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=St(e,(function(t){return t instanceof Error}));i=a?ye(ie(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}(i,e,o))},function(){console[e]=r}}));return n}(e)),ke[e]}));return xe.apply(this,n)}function Le(t,e,n,r){return De(t,[e],n,r)}function De(t,e,r,i){var o=i&&i.once?function(t){s(),r(t)}:r;i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var a=n(t,"addEventListener");g(e,(function(e){a.call(t,e,o,i)}));var s=function(){var r=n(t,"removeEventListener");g(e,(function(e){r.call(t,e,o,i)}))};return{stop:s}}var Ue={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Me(t){var e,n=[];wt(t,Ue.cspViolation)&&n.push(e=new Ae((function(){var t=function(t){e.notify(function(t){var e=Ue.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:Ue.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:Pe(t.effectiveDirective,n+' of the policy "'+Et(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(t))};return Le(document,zt.SECURITY_POLICY_VIOLATION,t).stop})));var r=I(t,(function(t){return t!==Ue.cspViolation}));return r.length&&n.push(function(t){var e=new Ae((function(){if(window.ReportingObserver){var n=function(t){g(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:Pe(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)),xe.apply(this,n)}function Pe(t,e,n,r,i){return n&&ye({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}var Fe=220*Te,He="$",ze=3;function We(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Be(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Be(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function Ve(t,n,r){e.warn("The data provided has been "+n+" as it is over the limit of "+t+" characters:",r)}var $e=function(){this._events=[],this.pendingEvents=[]};$e.prototype={emit:function(t){var e=[].slice.call(arguments,1);g(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 $e;var je,Ge={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function Ke(){this.callbacks={}}function qe(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ze(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ye(t,e,n){var r=Z(t),i=n(r);return g(U(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=qe(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!Je(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=K(o);a===i?Qe(t,n,function(t,e){void 0===e&&(e=Fe);var n=ee(Object.prototype),r=ee(Array.prototype),i=[],o=new WeakMap,a=We(t,He,void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=We(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Ve(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=We(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+ze,c=1),s>e){Ve(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Ve(e,"discarded",t)}(o)):"object"!==i||"undefined"!==a&&"null"!==a||Qe(t,n,{})})),i}function Qe(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Xe(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Xe(t){return"object"===K(t)}function Je(t,e){return Xe(t)&&Object.prototype.hasOwnProperty.call(t,e)}function tn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&o((function(){r=0}),tt),(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:_e.AGENT,startClocks:lt()})}finally{i=!1}}return!0}}}function en(t){return rn(t,Ct(window.location)).href}function nn(t){return Ct(rn(t))}function rn(t,e){if(function(){if(void 0!==je)return je;try{var t=new URL("http://test/path");return je="http://test/path"===t.href}catch(t){je=!1}return je}())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}Ke.prototype={notify:function(t,e){var n=this.callbacks[t];n&&g(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]=I(n.callbacks[t],(function(t){return t!==e}))}}}};var on=navigator.userAgent.toLowerCase(),an=function(){return/iphone os/.test(on)};var sn,un=J;function cn(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 ln(t){return function(t,e){var n=t.match("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,t)}var fn=/^\s+|\s+$/g,dn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function pn(t,e){var n=dn[e];return n?(0===t.indexOf("/")&&(t=location.origin+hn(t)),t.lastIndexOf("/")===t.length-1?hn(t)+"v1/write"+n:hn(t)+"/v1/write"+n):""}function hn(t){return t.replace(fn,"")}var vn,_n,gn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function mn(t){if(void 0===t.sampleRate||Tt(t.sampleRate)){if(void 0===t.sessionSampleRate||Tt(t.sessionSampleRate)){var n,r,i=t.sessionSampleRate||t.sampleRate;return m({beforeSend:t.beforeSend&&(n=t.beforeSend,r="beforeSend threw an error:",function(){var t=[].slice.call(arguments);try{return n.apply(this,t)}catch(t){e.error(r,t)}}),cookieOptions:yn(t),sessionSampleRate:Rt(i,100),service:t.service,version:t.version,env:t.env,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*Te,eventRateLimiterThreshold:3e3,flushTimeout:30*J,batchMessagesLimit:50,messageBytesLimit:256*Te,resourceUrlLimit:5*Te},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&S(t.isIntakeUrl)&&P(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&S(t.isServerError)&&P(t.isServerError())&&(n=t.isServerError),{datakitUrl:pn(t.datakitUrl||t.datakitOrigin,"rum"),logsEndpoint:pn(t.datakitOrigin,"log"),sessionReplayEndPoint:pn(t.datakitOrigin,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}e.error("Sample Rate should be a number between 0 and 100")}else e.error("Sample Rate should be a number between 0 and 100")}function yn(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===sn){for(var t="dd_site_test_".concat(W()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ln(t);)n=e.pop()+"."+n,cn(t,"test",J,{domain:n});sn=n}return sn}()),e}function En(){var t;return vn||(t=new Ae((function(){if(window.fetch){var e=Yt(window,"fetch",(function(e){return function(n,r){var i,o=function(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:en(String(e)),o=lt(),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;if(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;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}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}})),vn=t),vn}var bn={},wn="_DATAFLUX_REQUEST_UUID";function Sn(){var t;return _n||(t=new Ae((function(){var e=Qt(XMLHttpRequest.prototype,"open",{before:Tn}),n=Qt(XMLHttpRequest.prototype,"send",{before:function(){Cn.call(this,t)}}),r=Qt(XMLHttpRequest.prototype,"abort",{before:In});return function(){e.stop(),n.stop(),r.stop()}})),_n=t),_n}function Tn(t,e){var n=this[wn]||W();this[wn]=n,bn[n]={state:"open",method:t,url:en(String(e))}}function Cn(t){var e=bn[this[wn]];if(e){var n=e;n.state="start",n.startTime=ct(),n.startClocks=lt(),n.isAborted=!1,n.xhr=this;var r=!1,i=Qt(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=pt(n.startClocks.timeStamp,ft()),o.status=this.status,t.notify(y(o)),On.call(this)}},a=Le(this,"loadend",o).stop;t.notify(n)}}function On(){delete bn[this[wn]],delete this[wn]}function In(){var t=bn[this[wn]];t&&(t.isAborted=!0)}var Rn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function An(t){return wt(C(Rn),t)}function xn(t){return t.nodeType===Node.ELEMENT_NODE}function kn(t){return xn(t)&&Boolean(t.shadowRoot)}function Nn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&xn(e.host)}function Ln(t){return Nn(t)?t.host:t.parentNode}function Dn(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?zt.LOAD:zt.DOM_CONTENT_LOADED;Le(window,n,e,{once:!0})}}var Un,Mn={sdk_name:"_gc.sdk_name",sdk_version:"_gc.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"},Pn={action_id:"action.id",view_in_foreground:"view.in_foreground"},Bn={view:{type:jt.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level"},fields:{is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",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",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",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_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",first_byte:"view.first_byte",in_foreground_periods:"view.in_foreground_periods",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:jt.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.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_encode_size:"resource.encode_size",resource_render_blocking_status:"resource.render_blocking_status",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:jt.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.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:jt.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:jt.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",action_target:"_gc.action.target",action_position:"_gc.action.position"}},browser_log:{type:jt.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"]}}},Fn=4*et,Hn=15*tt,zn=/^([a-z]+)=([a-z0-9-]+)$/,Wn="&",Vn="_dataflux_s",$n=10,jn=100,Gn=[];function Kn(t,e){if(void 0===e&&(e=0),Un||(Un=t),t===Un)if(e>=jn)Yn();else{var n,r=Xn();if(qn()){if(r.lock)return void Zn(t,e);if(n=W(),r.lock=n,Qn(r,t.options),(r=Xn()).lock!==n)return void Zn(t,e)}var i=t.process(r);if(qn()&&(r=Xn()).lock!==n)Zn(t,e);else{if(i&&function(t,e){if(Jn(t))return void function(t){cn(Vn,"",0,t)}(e);t.expire=String(dt()+Hn),Qn(t,e)}(i,t.options),qn()&&(!i||!Jn(i))){if((r=Xn()).lock!==n)return void Zn(t,e);delete r.lock,Qn(r,t.options),i=r}t.after&&t.after(i||r),Yn()}}else Gn.push(t)}function qn(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function Zn(t,e){o((function(){Kn(t,e+1)}),$n)}function Yn(){Un=void 0;var t=Gn.shift();t&&Kn(t)}function Qn(t,e){cn(Vn,function(t){return R(U(t),(function(t){return t[0]+"="+t[1]})).join(Wn)}(t),Hn,e)}function Xn(){var t=ln(Vn),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(Wn)||zn.test(t))}(t)&&g(t.split(Wn),(function(t){var n=zn.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function Jn(t){return D(t)}function tr(t,e,n){var r=new Ae,i=new Ae,o=s((function(){Kn({options:t,process:function(t){return f(t)?void 0:{}},after:c})}),un),a=function(){var t=Xn();if(f(t))return t;return{}}();function c(t){return f(t)||(t={}),l()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function l(){return void 0!==a[e]}function f(t){return(void 0===t.created||dt()-Number(t.created)<Fn)&&(void 0===t.expire||dt()<Number(t.expire))}return{expandOrRenewSession:H((function(){var i;Kn({options:t,process:function(t){var r=c(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=W(),t.created=String(dt()));return o}(r),r},after:function(t){i&&!l()&&function(t){a=t,r.notify()}(t),a=t}})}),un).throttled,expandSession:function(){Kn({options:t,process:function(t){return l()?c(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){deleteSessionCookie(t),c({})},stop:function(){u(o)}}}var er=tt,nr=Fn,rr=[],ir=function(t,e,n){var r=tr(t,e,n);rr.push((function(){return r.stop()}));var i,o,a=new Mt(nr);function c(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return rr.push((function(){return a.stop()})),r.renewObservable.subscribe((function(){a.add(c(),ct())})),r.expireObservable.subscribe((function(){a.closeActive(ct())})),r.expandOrRenewSession(),a.add(c(),ht().relative),i=function(){return r.expandOrRenewSession()},o=De(window,[zt.CLICK,zt.TOUCH_START,zt.KEY_DOWN,zt.SCROLL],i,{capture:!0,passive:!0}),rr.push(o.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=Le(document,zt.VISIBILITY_CHANGE,e);rr.push(n.stop);var r=s(e,er);rr.push((function(){u(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return a.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var or=80*Te,ar=32,sr=3*Ce,ur=256*J,cr=J,lr={UP:0,FAILURE_DETECTED:1,DOWN:2},fr={AFTER_SUCCESS:0,AFTER_RESUME:1};function dr(t,e,n,r,i){e.transportStatus===lr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?hr(t,e,n,{onSuccess:function(){return vr(fr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),pr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function pr(t,e,n,r){t.transportStatus===lr.DOWN&&o((function(){hr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=cr,vr(fr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(ur,2*t.currentBackoffTime),pr(t,e,n,r)}})}),t.currentBackoffTime)}function hr(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=lr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?lr.FAILURE_DETECTED:lr.DOWN,e.lastFailureStatus=n.status,o())}))}function vr(t,e,n,r,i){t===fr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+sr/Ce+"MiB",source:_e.AGENT,startClocks:lt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=_r();o.size()>0;)dr(o.dequeue(),e,n,r,i)}function _r(){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>=sr}}}function gr(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function mr(t,e,n){var r={transportStatus:lr.UP,lastFailureStatus:0,currentBackoffTime:cr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=or&&this.ongoingRequestCount<ar},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:_r(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=gr(t),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;s?fetch(a,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}),(function(){yr(a,i,r)})):yr(a,i,r)}(t,e,n,r)};return{send:function(e){dr(e,r,i,t,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=gr(t),a=!!navigator.sendBeacon&&i<e;if(a)try{if(navigator.sendBeacon(o,r))return}catch(t){}yr(o,r)}(t,e,n)}}}function yr(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),Le(r,"loadend",(function(){"function"==typeof n&&n({status:r.status})}),{once:!0}),r.send(e)}function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function br(t){if("object"===Er(t)&&t)t=te(t);else if(!M(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function wr(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Sr(t){return"object"===Er(t)&&t?wr(te(t)):M(t)?wr(t):t}var Tr="custom_keys",Cr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return g(Bn,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=E({},Mn,i.tags),u=["date","type",Tr];g(s,(function(n,r){var i=yt(t,n);u.push(r),(i||B(i))&&(e.tags[r]=function(t){return M(t)?t:te(t)}(i),a.push(br(r)+"="+br(i)))}));var c=[],l=E({},Pn,i.fields);if(g(l,(function(n,r){if(w(n)&&2===n.length){var i=n[1],o=yt(t,i);u.push(r),null!=o&&(e.fields[r]=o,c.push(br(r)+"="+Sr(o)))}else if(M(n)){o=yt(t,n);u.push(r),null!=o&&(e.fields[r]=o,c.push(br(r)+"="+Sr(o)))}})),t.tags&&L(t.tags)&&!D(t.tags)){var f=[];g(t.tags,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=t,c.push(br(n)+"="+Sr(t))))})),f.length&&(e.fields[Tr]=Sr(f),c.push(br(Tr)+"="+Sr(f)))}t.type===jt.LOGGER&&g(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=t,c.push(br(n)+"="+Sr(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=at(t.date)}})),{rowStr:n?r:"",rowData:n?e:void 0}},Or=function(t,e,n){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n;var r=this;this.flushController.flushObservable.subscribe((function(t){r.flush(t)}))};Or.prototype.add=function(t){this.addOrUpdate(t)},Or.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Or.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(C(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};An(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Or.prototype.addOrUpdate=function(t,n){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?e.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(n)&&this.remove(n),this.push(i,o,n))},Or.prototype.process=function(t){var e=Cr(t).rowStr;return{processedMessage:e,messageBytesCount:Ie(e)}},Or.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Or.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Ie(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Or.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var Ir=Or;function Rr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,s=t.sessionExpireObservable,u=new Ae;i.subscribe((function(t){return d(t.reason)})),s.subscribe((function(){return d("session_expire")}));var c,l=0,f=0;function d(t){if(0!==f){var e=f,n=l;f=0,l=0,p(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){a(c),c=void 0}return{flushObservable:u,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){l+t>=n&&d("bytes_limit"),f+=1,l+=t,void 0===c&&(c=o((function(){d("duration_limit")}),r))},notifyAfterAddMessage:function(){f>=e?d("messages_limit"):l>=n&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&p()}}}function Ar(){var t=i().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function xr(){return!!Ar()}var kr=3*Te,Nr="user",Lr="global context";var Dr=200;function Ur(t,n){void 0===n&&(n=Ie);var r,i={},o=!1,a=H((function(i){r=n(te(i)),o||(o=function(t,n){return t>kr&&(e.warn("The "+n+"data is over "+kr/Te+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),Dr).throttled;return{getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,a(i)},remove:function(t){delete i[t],a(i)},set:function(t){a(i=t)},getContext:function(){return Z(i)},setContext:function(t){i=Z(t),a(i)},setContextProperty:function(t,e){i[t]=Z(e),a(i)},removeContextProperty:function(t){delete i[t],a(i)},clearContext:function(){i={},r=0}}}function Mr(t){var e=m({},t);return g(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var Pr="rum",Br={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Fr={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function Hr(t,e){var n=ir(t.cookieOptions,Pr,(function(e){return function(t,e){var n;n=function(t){return t===Fr.NOT_TRACKED||t===Fr.TRACKED_WITH_SESSION_REPLAY||t===Fr.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:rt(t.sessionSampleRate)?rt(t.sessionReplaySampleRate)?Fr.TRACKED_WITH_SESSION_REPLAY:Fr.TRACKED_WITHOUT_SESSION_REPLAY:Fr.NOT_TRACKED;return{trackingType:n,isTracked:zr(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Ge.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(Ge.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&zr(e.trackingType)){var r=e.trackingType===Fr.TRACKED_WITH_SESSION_REPLAY?Br.WITH_SESSION_REPLAY:Br.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Br.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function zr(t){return t===Fr.TRACKED_WITHOUT_SESSION_REPLAY||t===Fr.TRACKED_WITH_SESSION_REPLAY}var Wr="_dataflulx_usr_id",Vr=1440*et,$r="initial_document",jr=[[Wt.DOCUMENT,function(t){return $r===t}],[Wt.XHR,function(t){return"xmlhttprequest"===t}],[Wt.FETCH,function(t){return"fetch"===t}],[Wt.BEACON,function(t){return"beacon"===t}],[Wt.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[Wt.JS,function(t,e){return null!==e.match(/\.js$/i)}],[Wt.IMAGE,function(t,e){return wt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Wt.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[Wt.MEDIA,function(t,e){return wt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Gr(t){var e=t.name;if(!function(t){try{return!!rn(t)}catch(t){return!1}}(e))return Wt.OTHER;var n=function(t){var e=rn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=Wt.OTHER;return g(jr,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Kr(){for(var t=T(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var qr=/[^\u0000-\u007F]/;function Zr(t,e){return n=t,(qr.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Yr(t){var e=Qr(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,l=e.connectEnd,f=e.requestStart,d=e.responseStart,p=e.responseEnd,h={firstbyte:ot(d-a),trans:ot(p-d),downloadTime:Jr(n,d,p),firstByteTime:Jr(n,f,d)};return d>0&&d<=ct()&&(h.ttfb=ot(d-f)),l!==r&&(h.tcp=ot(l-u),h.connectTime=Jr(n,u,l),Kr(u,c,l)&&(h.ssl=ot(l-c),h.sslTime=Jr(n,c,l))),s!==r&&(h.dns=ot(s-a),h.dnsTime=Jr(n,a,s)),Xr(t)&&(h.redirect=ot(o-i),h.redirectTime=Jr(n,i,o)),t.renderBlockingStatus&&(h.renderBlockingStatus=t.renderBlockingStatus),h}}function Qr(t){if(Kr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Xr(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Kr(t.startTime,e,n,t.fetchStart))return E({},t,{redirectEnd:n,redirectStart:e})}}function Xr(t){return t.fetchStart!==t.startTime}function Jr(t,e,n){return{duration:ot(n-e),start:ot(e-t)}}function ti(t){if(t.startTime<t.responseStart)return{size:t.decodedBodySize,encodeSize:t.encodedBodySize}}function ei(t,e){return e&&!function(t,e){var n=[e.datakitUrl];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),A(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function ni(){return void 0!==window.performance&&"getEntries"in performance}function ri(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&wt(PerformanceObserver.supportedEntryTypes,t)}function ii(t,e){var n;if(n=function(n){ai(t,e,[n])},Dn("interactive",(function(){var t,e={entryType:"resource",initiatorType:$r,traceId:""};if(ri("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=E(r.toJSON(),e)}else{var i=oi();t=E(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),ni()){var r=performance.getEntries();o((function(){ai(t,e,r)}))}if(window.PerformanceObserver){var i=function(n){ai(t,e,n.getEntries())},a=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift"];try{g(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0})}))}catch(t){g(s,(function(t){a.push(t)}))}new PerformanceObserver(i).observe({entryTypes:a}),ni()&&"addEventListener"in performance&&Le(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}ri("navigation")||function(t){function e(){t(E(oi(),{entryType:"navigation"}))}Dn("complete",(function(){o(e)}))}((function(n){ai(t,e,[n])})),ri("first-input")||function(t){var e=dt(),n=!1,r=De(window,[zt.CLICK,zt.MOUSE_DOWN,zt.KEY_DOWN,zt.TOUCH_START,zt.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ct(),startTime:t.timeStamp};t.type===zt.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){De(window,[zt.POINTER_UP,zt.POINTER_CANCEL],(function(e){e.type===zt.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<dt()-e&&t(i)}}}((function(n){return ai(t,e,[n])}))}function oi(){var t={},e=performance.timing;for(var n in e)B(e[n])&&(t[n]=0===e[n]?0:st(e[n]));return t}function ai(t,e,n){var r=I(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=I(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!ei(t,e.name)}(e,t)}));i.length&&t.notify(Ge.PERFORMANCE_ENTRIES_COLLECTED,i)}function si(){var t,e=window;if(e.Zone&&(t=n(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=n(new e.MutationObserver(Q),"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}function ui(t){var e=y(t),n=new Ae((function(){var t,e,n,i,o,a=(t=r,e=Qt(history,"pushState",{after:t}),n=Qt(history,"replaceState",{after:t}),i=Le(window,zt.POP_STATE,t),{stop:function(){e.stop(),n.stop(),i.stop()}}),s=(o=r,Le(window,zt.HASH_CHANGE,o));return function(){a.stop(),s.stop()}}));function r(){if(e.href!==t.href){var r=y(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}function ci(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=Q);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){if(t.type!==jt.VIEW&&n(t))switch(t.type){case jt.ERROR:i.errorCount+=1,r(i);break;case jt.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r(i);break;case jt.LONG_TASK:i.longTaskCount+=1,r(i);break;case jt.RESOURCE:i.resourceCount+=1,r(i)}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var li=100,fi=100;function di(t,e,n,r,i){var s=function(t,e,n){var r=new Ae((function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){A(t,(function(t){return"resource"===t.entryType&&!pi(n,t.name)}))&&u()})),t.subscribe(Ge.REQUEST_STARTED,(function(t){pi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Ge.REQUEST_COMPLETED,(function(t){pi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Qt(window,"open",{before:u}).stop;return function(){s(),g(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,s=o((function(){f({hadActivity:!1})}),li),u=void 0!==n?o((function(){return f({hadActivity:!0,end:ft()})}),n):void 0,c=t.subscribe((function(t){var e=t.isBusy;a(s),a(r);var n=ft();e||(r=o((function(){f({hadActivity:!0,end:n})}),fi))})),l=function(){i=!0,a(s),a(r),a(u),c.unsubscribe()};function f(t){i||(l(),e(t))}return{stop:l}}(s,r,i)}function pi(t,e){return k(t.excludedActivityUrls,e)}var hi=J,vi=100,_i={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function gi(t,e){var n,r=[],i=_i.WaitingForMoreClicks;function s(t){t.stopObservable.subscribe(u),r.push(t),a(n),n=o(c,hi)}function u(){i===_i.WaitingForClicksToStop&&x(r,(function(t){return t.isStopped()}))&&(i=_i.Finalized,e(r))}function c(){a(n),i===_i.WaitingForMoreClicks&&(i=_i.WaitingForClicksToStop,u())}return s(t),{tryAppend:function(t){return i===_i.WaitingForMoreClicks&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(o=e,a=n,Math.sqrt(Math.pow(o.clientX-a.clientX,2)+Math.pow(o.clientY-a.clientY,2))<=vi)&&e.timeStamp-n.timeStamp<=hi))?(c(),!1):(s(t),!0));var e,n,o,a},stop:function(){c()}}}var mi="data-guance-action-name";function yi(t,e){return Ei(t,mi)||e&&Ei(t,e)||Oi(t,e,Si)||Oi(t,e,Ti)||""}function Ei(t,e){var n;if(function(){void 0===wi&&(wi="closest"in HTMLElement.prototype);return wi}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Ri(Ii(n.getAttribute(e).trim()))}var bi,wi,Si=[function(t,e){if(function(){void 0===bi&&(bi="labels"in HTMLInputElement.prototype);return bi}()){if("labels"in t&&t.labels&&t.labels.length>0)return Ai(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&St(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Ai(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 Ai(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=R(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=I(n,(function(t){return Boolean(t)})),(n=R(n,(function(t){return Ai(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 Ai(t.options[0],e)}],Ti=[function(t,e){return Ai(t,e)}],Ci=10;function Oi(t,e,n){for(var r=t,i=0;i<=Ci&&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 Ri(Ii(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Ii(t){return t.replace(/\s+/g," ")}function Ri(t){return t.length>100?Et(t,100)+" [...]":t}function Ai(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("["+mi+"]"),e&&r("["+e+"]"),n}return t.textContent}}var xi,ki=[mi,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ni=[Mi,function(t){if(t.id&&!Ui(t.id))return"#"+N(t.id)}],Li=[Mi,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!Ui(n))return t.tagName+"."+N(n)}},function(t){return t.tagName}];function Di(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=Bi(r,Ni,Fi,e,n);if(i)return i;n=Bi(r,Li,Hi,e,n)||zi(Pi(r),n),r=r.parentElement}return n}function Ui(t){return/[0-9]/.test(t)}function Mi(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ki.length;n++){var r;if(r=i(ki[n]))return r}function i(e){if(t.hasAttribute(e))return t.tagName+"["+e+'="'+N(t.getAttribute(e))+'"]'}}function Pi(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=t.tagName;return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Bi(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=zi(a,i);if(n(t,s))return s}}}function Fi(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function Hi(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===xi)try{document.querySelector(":scope"),xi=!0}catch{xi=!1}return xi}()?zi(":scope",e):e).length}function zi(t,e){return e?t+">"+e:t}function Wi(){var t=window.getSelection();return!t||t.isCollapsed}function Vi(t){return t.target instanceof Element&&!1!==t.isPrimary}var $i=3;function ji(t,e){if(function(t){if(A(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-($i-1);e+=1)if(t[e+$i-1].event.timeStamp-t[e].event.timeStamp<=J)return!0;return!1}(t))return e.addFrustration($t.RAGE_CLICK),A(t,Ki)&&e.addFrustration($t.DEAD_CLICK),e.hasError()&&e.addFrustration($t.ERROR_CLICK),{isRage:!0};var n=A(t,(function(t){return t.getUserActivity().selection}));return g(t,(function(t){t.hasError()&&t.addFrustration($t.ERROR_CLICK),Ki(t)&&!n&&t.addFrustration($t.DEAD_CLICK)})),{isRage:!1}}var Gi='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] *';function Ki(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n=Gi,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var qi=10*J,Zi=5*tt;function Yi(t,e,n){var r,i=new Mt(Zi),o=new Ae;t.subscribe(Ge.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(Ge.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r,i){if(t.trackFrustrations||!r.find()){var o,a,s,u=(o=i,a=t.actionNameAttribute,s=o.target.getBoundingClientRect(),{type:Vt.CLICK,target:{width:Math.round(s.width),height:Math.round(s.height),selector:Di(o.target,a)},position:{x:Math.round(o.clientX-s.left),y:Math.round(o.clientY-s.top)},name:yi(o.target,a)});if(t.trackFrustrations||u.name){var c=!1;return di(e,n,t,(function(t){c=t.hadActivity}),li),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}}}(n,t,e,i,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Xi(e,r,u,a,s);t.trackFrustrations&&o(l);var f=di(e,n,t,(function(e){e.hadActivity&&e.end<l.startClocks.timeStamp?l.discard():(e.hadActivity?l.stop(e.end):c()?l.stop(l.startClocks.timeStamp):l.stop(),t.trackFrustrations||(e.hadActivity?l.validate():l.discard()))}),qi),d=f.stop,p=e.subscribe(Ge.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},l=[Le(window,zt.POINTER_DOWN,(function(t){Vi(t)&&(s=Wi(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),Le(window,zt.SELECTION_CHANGE,(function(){s&&Wi()||(c.selection=!0)}),{capture:!0}),Le(window,zt.POINTER_UP,(function(t){if(Vi(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),Le(window,zt.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){g(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){return i.find(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=gi(t,(function(t){!function(t,e){var n=ji(t,e),r=n.isRage;r?(g(t,(function(t){t.discard()})),e.stop(ft()),e.validate(R(t,(function(t){return t.event})))):(e.discard(),g(t,(function(t){t.validate()})))}(t,e)}))}}}var Qi={ONGOING:0,STOPPED:1,FINALIZED:2};function Xi(t,e,n,r,i){var o,a=W(),s=lt(),u=e.add(a,s.relative),c=ci({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(w(t.action.id)?wt(t.action.id,a):t.action.id===a)}}),l=Qi.ONGOING,f=[],d=new Ae;function p(t){l===Qi.ONGOING&&(o=t,l=Qi.STOPPED,o?u.close(st(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,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 l===Qi.STOPPED||l===Qi.FINALIZED},clone:function(){return Xi(t,e,n,r,i)},validate:function(e){if(p(),l===Qi.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=m({type:Vt.CLICK,duration:o&&pt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Rt(e,[i]),event:i},r);t.notify(Ge.AUTO_ACTION_COMPLETED,v),l=Qi.FINALIZED}},discard:function(){p(),l=Qi.FINALIZED}}}function Ji(t,e){var n=to(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:at(t.duration),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}},r=to(t)?void 0:t.context,i=b({action:{id:W(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:jt.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:to(t)?{event:t.event,events:t.events}:{}}}function to(t){return t.type!==Vt.CUSTOM}function eo(t,e,n,r,i){var o=function(t,e,n,r){var i=a(t.datakitUrl),o=i.batch;function a(i){var o=Rr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new Ir(mr(i,t.batchBytesLimit,e),o,t.messageBytesLimit),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,n,r,i);e.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){t.type===jt.VIEW?o.upsert(t,t.view.id):o.add(t)}))}var no={SYNTHETICS:"synthetics",USER:"user"},ro={"view.url":"string","view.referrer":"string"},io={tags:"object","_gc.trace_id":"string","_gc.span_id":"string"},oo={};function ao(t,n,r,i,o,a,s,u,c){oo[jt.VIEW]=ro,oo[jt.ERROR]=m({"error.message":"string","error.stack":"string","error.resource.url":"string"},io,ro),oo[jt.RESOURCE]=m({"resource.url":"string"},io,ro),oo[jt.ACTION]=m({"action.target.name":"string"},io,ro),oo[jt.LONG_TASK]=m({},io,ro);var l={};l[jt.ERROR]=tn(jt.ERROR,t.eventRateLimiterThreshold,c),l[jt.ACTION]=tn(jt.ACTION,t.eventRateLimiterThreshold,c),n.subscribe(Ge.RAW_RUM_EVENT_COLLECTED,(function(c){var f,d=c.startTime,p=c.rawRumEvent,h=c.savedCommonContext,v=c.customerContext,_=c.domainContext,g=o.findView(d),m=a.findUrl(d),y=r.findTrackedSession(p.type!==jt.VIEW?d:void 0);if(y&&g&&m){var E=s.findActionId(d),w=h||u(),S={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(dt()-(mt()+performance.now()))},terminal:{type:"web"},application:{id:t.applicationId},device:Ht,env:t.env||"",service:g.service||t.service||"browser",version:g.version||t.version||"",source:"browser",date:ft(),user:{id:i.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?no.USER:no.SYNTHETICS,id:y.id},view:{id:g.id,name:g.name,url:m.url,referrer:m.referrer,host:m.host,path:m.path,pathGroup:m.pathGroup,urlQuery:m.urlQuery},action:(f=p,-1!==[jt.ERROR,jt.RESOURCE,jt.LONG_TASK].indexOf(f.type)&&E?{id:E}:void 0)},T=Ot(b(S,g,p)),C=b({},w.context,v);D(C)||(T.tags=C),"has_replay"in T.session||(T.session.has_replay=w.hasReplay),D(w.user)||(T.user=b({is_signin:"T"},w.user)),function(t,n,r,i){if(n){var o=Ye(t,oo[t.type],(function(t){return n(t,r)}));if(!1===o&&t.type!==jt.VIEW)return!1;!1===o&&e.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(T,t.beforeSend,_,l)&&(D(T.tags)&&delete T.tags,n.notify(Ge.RUM_EVENT_COLLECTED,T))}}))}var so=500,uo=2500,co=[];function lo(){document.hasFocus()&&fo();var t,e,n=(t=fo,Le(window,zt.FOCUS,(function(e){e.isTrusted&&t()}))),r=(e=po,Le(window,zt.BLUR,(function(t){t.isTrusted&&e()})));return{isInForegroundAt:ho,selectInForegroundPeriodsFor:vo,stop:function(){co=[],n.stop(),r.stop()}}}function fo(){if(!(co.length>uo)){var t=co[co.length-1],e=ct();void 0!==t&&void 0===t.end||co.push({start:e})}}function po(){if(0!==co.length){var t=co[co.length-1],e=ct();void 0===t.end&&(t.end=e)}}function ho(t){for(var e=co.length-1;e>=0;e--){var n=co[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 vo(t,e){for(var n=_t(t,e),r=[],i=Math.max(0,co.length-so),o=co.length-1;o>=i;o--){var a=co[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=pt(t,s),c=pt(s,void 0===a.end||n<a.end?n:a.end);r.unshift({start:at(u),duration:at(c)})}}return r}var _o=Fn;var go,mo=Fn;function yo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Eo(e,n){var r=new Ae;return function(e){var n=Ne([t.error]).subscribe((function(t){e.notify({startClocks:lt(),message:t.message,stack:t.stack,source:_e.CONSOLE,handling:Zt.HANDLED,handlingStack:t.handlingStack})}))}(r),function(t){ve((function(e,n){t.notify(ge({stackTrace:e,originalError:n,startClocks:lt(),nonErrorPrefix:"Uncaught",source:_e.SOURCE,handling:Zt.UNHANDLED}))}))}(r),function(t){var e=Me([Ue.cspViolation,Ue.intervention]).subscribe((function(e){t.notify({startClocks:lt(),message:e.message,stack:e.stack,type:e.subtype,source:_e.REPORT,handling:Zt.UNHANDLED})}))}(r),r.subscribe((function(t){e.notify(Ge.RAW_ERROR_COLLECTED,{error:t})})),function(t,e){return t.subscribe(Ge.RAW_ERROR_COLLECTED,(function(n){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,m({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:W(),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:jt.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=ge({stackTrace:r instanceof Error?ie(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:"Provided",source:_e.CUSTOM,handling:Zt.HANDLED});t.notify(Ge.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,n)}function bo(t){if(void 0===t&&(t=window),!go)if("hidden"===document.visibilityState)go={timeStamp:0};else{go={timeStamp:1/0};var e=De(t,[zt.PAGE_HIDE,zt.VISIBILITY_CHANGE],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(go.timeStamp=t.timeStamp,e())}),{capture:!0}).stop}return go}var wo=10*tt;const So=5*tt;function To(t,e,n){var r={},i={};function a(t,e){r=E(r,t),e&&(i=E(i,e)),n()}var s=function(t,e){var n=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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,firstByte:r.responseStart>=0&&r.responseStart<=ct()?r.responseStart:void 0})}}));return{stop:n.unsubscribe}}(t,(function(t){e(t.loadEvent),a(t)})),u=s.stop,c=function(t,e){var n=bo(),r=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=St(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<wo}));r&&e(r.startTime)}));return{stop:r.unsubscribe}}(t,(function(t){a({firstContentfulPaint:t})})),l=c.stop,f=function(t,e,n){var r=bo(),i=1/0,o=De(e,[zt.POINTER_DOWN,zt.KEY_DOWN],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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<i&&t.startTime<r.timeStamp&&t.startTime<wo}));e&&n(e.startTime,e.element)})),s=a.unsubscribe;return{stop:function(){o(),s()}}}(t,window,(function(t,e){a({largestContentfulPaint:t},e?{largestContentfulPaint:Di(e)}:void 0)})),d=f.stop,p=function(t,e){var n=bo(),r=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=St(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.timeStamp}));if(r){var i=pt(r.startTime,r.processingStart);e({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}}));return{stop:r.unsubscribe}}(t,(function(t){a({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})),h=p.stop;function v(){u(),l(),d(),h()}return{stop:v,timings:r,timingsElementSelector:i,scheduleStop:function(){o(v,So)}}}function Co(t,e,n,r,i,o){var a,s={},u=function(t,e,n,r,i,o){var a=r===Gt.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=di(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(pt(i.timeStamp,t.end)),c())}));return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:l.stop}}(t,e,n,i,o,(function(t){s.loadingTime=t,r()})),c=u.setLoadEvent,l=u.stop;if(ri("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>=J||r.startTime-t>=5*J?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}(),i=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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(it(n,4))))}}));return{stop:i.unsubscribe}}(t,(function(t){s.cumulativeLayoutShift=t,r()}));a=f.stop}else a=Q;return{stop:function(){l(),a()},setLoadEvent:c,viewMetrics:s}}var Oo=5*tt;var Io=3e3,Ro=5*tt;function Ao(t,e,n,r,i,a,c){function l(i,a,c){return function(t,e,n,r,i,a,c){void 0===a&&(a=lt());var l,f,d,p,h=W(),v={},_=0,g=y(r),E=!0;c&&(f=c.name,d=c.service,p=c.version);t.notify(Ge.VIEW_CREATED,{id:h,name:f,startClocks:a,service:d,version:p});var b=H(M,Io,{leading:!1}),w=b.throttled,S=b.cancel,T=Co(t,e,n,w,i,a),C=T.setLoadEvent,O=T.stop,I=T.viewMetrics,R=i===Gt.INITIAL_LOAD?To(t,C,w):{scheduleStop:Q,timings:{},timingsElementSelector:{}},A=R.scheduleStop,x=R.timings,k=R.timingsElementSelector,N=function(t,e,n){var r=ci({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){o(r.stop,Oo)},eventCounts:r.eventCounts}}(t,h,w),L=N.scheduleStop,D=N.eventCounts,U=s(M,Ro);function M(){S(),_+=1;var e=void 0===l?ft():l.timeStamp;t.notify(Ge.VIEW_UPDATED,m({customTimings:v,documentVersion:_,id:h,name:f,service:d,version:p,loadingType:i,location:g,startClocks:a,timings:x,timingsElementSelector:k,duration:pt(a.timeStamp,e),isActive:void 0===l,sessionIsActive:E,eventCounts:D},I))}return M(),{name:f,service:d,version:p,scheduleUpdate:w,end:function(e){l||(l=Rt(e&&e.endClocks,lt()),E=Rt(e&&e.sessionIsActive,!0),t.notify(Ge.VIEW_ENDED,{endClocks:l}),u(U),O(),A(),L(),M())},addTiming:function(t,e){if(!l){var n=function(t){return t<nt}(e)?e:pt(a.timeStamp,e);v[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,w()}}}}(e,n,r,t,i,a,c)}var f,d=l(Gt.INITIAL_LOAD,ht(),c);return e.subscribe(Ge.SESSION_RENEWED,(function(){l(Gt.ROUTE_CHANGE,void 0,{name:d.name,service:d.service,version:d.version})})),e.subscribe(Ge.SESSION_EXPIRED,(function(){d.end({sessionIsActive:!1})})),e.subscribe(Ge.PAGE_EXITED,(function(t){t.reason!==Rn.UNLOADING&&t.reason!==Rn.PAGEHIDE||d.end()})),a&&(f=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!xt(n.hash)&&kt(n.hash)!==kt(e.hash))return d.end(),void(d=l(Gt.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=ft()),d.addTiming(t,e)},startView:function(t,e){d.end({endClocks:e}),d=l(Gt.ROUTE_CHANGE,e,t)},stop:function(){f&&f.unsubscribe(),d.end()}}}function xo(t,e,n,r,i,o,a,s){return t.subscribe(Ge.VIEW_UPDATED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,function(t,e,n){var r=n.getReplayStats(t.id),i={_gc:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:jt.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:at(t.timings.firstByte),dom_complete:at(t.timings.domComplete),dom_content_loaded:at(t.timings.domContentLoaded),dom_interactive:at(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:at(t.timings.firstContentfulPaint),first_input_delay:at(t.timings.firstInputDelay),first_input_time:at(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:at(t.timings.largestContentfulPaint),largest_contentful_paint_element_selector:t.timingsElementSelector.largestContentfulPaint,load_event:at(t.timings.loadEvent),loading_time:No(at(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:at(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},session:{has_replay:!!r||void 0,is_active:!!t.sessionIsActive&&void 0}};D(t.customTimings)||(i.view.custom_timings=(o=t.customTimings,a=at,s={},g(o,(function(t,e){s[e]=a(t)})),s));var o,a,s;return i=b(i,{view:ko(t.timings)}),{rawRumEvent:i,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a))})),Ao(n,t,r,e,i,!e.trackViewsManually,s)}function ko(t){var e=Qr(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,l={};if(r!==n){l.fpt=at(r-n);var f=parseInt((r-n)/1e3);l.apdexLevel=f>9?9:f}return i!==n&&(l.tti=at(i-n)),o!==n&&(l.dom_ready=at(o-n)),s!==n&&(l.load=at(s-n)),u!==c&&(l.resource_load_time=at(u-c)),a!==i&&(l.dom=at(a-i)),l}}function No(t){return B(t)&&t<0?void 0:t}function Lo(){this.buffer=new Uint8Array(8),Do().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Do(){return window.crypto||window.msCrypto}function Uo(t){this._spanId=new Lo,this._traceId=new Lo,this._traceSampled=t}function Mo(){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 Po(t,e,n){this._spanId=Mo(),this._traceId=Mo(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=$(e).getParse(),this._traceSampled=n}function Bo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Fo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e}function Ho(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function zo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=t,this.isHexTraceId=e}function Wo(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Vo(t,e,n,r){if(n.findTrackedSession()){var i=St(t.allowedTracingUrls,(function(t){return k([t.match],e.url,!0)}));if(i){var o,a=!B(t.tracingSampleRate)||rt(t.tracingSampleRate);switch(i.traceType){case qt.DDTRACE:o=new Uo(a);break;case qt.SKYWALKING_V3:o=new Po(t,e.url,a);break;case qt.ZIPKIN_MULTI_HEADER:o=new Ho(t,a);break;case qt.JAEGER:o=new Bo(t,a);break;case qt.W3C_TRACEPARENT:o=new zo(a);break;case qt.W3C_TRACEPARENT_64:o=new zo(a,!0);break;case qt.ZIPKIN_SINGLE_HEADER:o=new Fo(t,a)}o&&o.isTracingSupported()&&(e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a,r(o.makeTracingHeaders()))}}}Lo.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Uo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this._traceId.toDecimalString()},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()}}},Po.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(z(this._traceId)),e=String(z(this._spanId)),n=String(z(this._applicationId+"_rum_"+this.env)),r=String(z(this._version)),i=String(z(window.location.href)),o=String(z(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Bo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Fo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Ho.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},zo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?m(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var $o=1;function jo(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Wo,traceFetch:function(n){return Vo(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=y(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):w(n.init.headers)?g(n.init.headers,(function(t){e.push(t)})):n.init.headers&&g(n.init.headers,(function(t,n){e.push([n,t])}));var r={};g(e.concat(U(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),g(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Vo(t,n,e,(function(t){g(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Sn().subscribe((function(r){var i=r;if(ei(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Go(),t.notify(Ge.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Ge.REQUEST_COMPLETED,{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:Kt.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=En().subscribe((function(r){var i=r;if(ei(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Go(),t.notify(Ge.REQUEST_STARTED,{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(Q),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;g(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(pt(t.startClocks.timeStamp,ft()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(pt(t.startClocks.timeStamp,ft()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Ge.REQUEST_COMPLETED,{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:Kt.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function Go(){var t=$o;return $o+=1,t}function Ko(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n,r=R(e,(function(t){return t.toJSON()}));return r=I(r,Qr),1===(r=I(r,(function(e){return n=e,r=t.startClocks.relative,i=qo({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&qo(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&qo((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function qo(t){return t.startTime+t.duration}function Zo(t,e){t.subscribe(Ge.REQUEST_COMPLETED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,function(t){var e=t.type===Kt.XHR?Wt.XHR:Wt.FETCH,n=Ko(t),r=n?vt(n.startTime):t.startClocks,i=n?Qo(n):void 0,o=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:W()}}}(t),a=$(t.url).getParse(),s=b({date:r.timeStamp,resource:{id:W,type:e,duration:ot(t.duration),method:t.method,status:t.status,statusGroup:Y(t.status),url:t.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:V(a.Path),urlQuery:te(j(t.url))},type:jt.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:s,domainContext:{performanceEntry:n&&Xo(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||Zr(i.name,e.resourceUrlLimit)||t.notify(Ge.RAW_RUM_EVENT_COLLECTED,Yo(i))}var o}))}function Yo(t){var e=Gr(t),n=Qo(t),r=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),i=$(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=vt(t.startTime),s=b({date:a.timeStamp,resource:{id:W(),type:e,url:t.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:V(i.Path),urlQuery:te(j(t.name)),method:"GET",status:o,statusGroup:Y(o)},type:jt.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:s,domainContext:{performanceEntry:Xo(t)}}}function Qo(t){return{resource:b({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?ot(e.responseEnd-e.startTime):ot(e.duration))},ti(t),Yr(t))};var e}function Xo(t){return"function"==typeof PerformanceEntry&&t instanceof PerformanceEntry&&t.toJSON(),t}var Jo,ta={sdkVersion:"3.0.26",sdkName:"df_web_rum_sdk"};function ea(t){if(t.applicationId){if(!t.datakitUrl&&!t.datakitOrigin)return e.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===t.sessionReplaySampleRate||Tt(t.sessionReplaySampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&e.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!w(t.allowedTracingUrls))return void e.error("Allowed Tracing URLs should be an array");var n=[];return g(t.allowedTracingUrls,(function(r){var i;bt(r)?n.push({match:r,traceType:Rt(t.traceType,qt.DDTRACE)}):"object"===K(i=r)&&bt(i.match)&&M(i.traceType)?n.push(r):e.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),n}if(void 0!==t.allowedTracingOrigins){if(!w(t.allowedTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedTracingOrigins,(function(e){var r=na(e,Rt(t.traceType,qt.DDTRACE));r&&n.push(r)})),n}if(void 0!==t.allowedDDTracingOrigins){if(!w(t.allowedDDTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedDDTracingOrigins,(function(e){var r=na(e,Rt(t.traceType,qt.DDTRACE));r&&n.push(r)})),n}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Tt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||w(t.excludedActivityUrls)){var r=mn(t);if(r){var i,o,a=!!Rt(t.trackUserInteractions,t.trackInteractions),s=!!t.trackFrustrations;return m({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Rt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,excludedActivityUrls:Rt(t.excludedActivityUrls,[]),trackUserInteractions:a||s,trackFrustrations:s,trackViewsManually:!!t.trackViewsManually,traceType:Rt(t.traceType,qt.DDTRACE),traceId128Bit:!!t.traceId128Bit,isJsBirdge:!!t.isJsBirdge,defaultPrivacyLevel:(i=gn,o=t.defaultPrivacyLevel,A(O(i),(function(t){return i[t]===o}))?t.defaultPrivacyLevel:gn.MASK_USER_INPUT)},r,ta)}}else e.error("Excluded Activity Urls should be an array");else e.error("Tracing Sample Rate should be a number between 0 and 100")}else e.error("Premium Sample Rate should be a number between 0 and 100")}else e.error("Application ID is not configured, no RUM data will be collected.")}function na(t,n){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(nn(e))}:"function"==typeof t&&(r=function(e){return t(nn(e))}),void 0!==r)return{match:r,traceType:n};e.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function ra(){var t;return Jo||(t=new Ae((function(){var e=H((function(){t.notify(ia())}),200).throttled;return Le(window,zt.RESIZE,e,{capture:!0,passive:!0}).stop})),Jo=t),Jo}function ia(){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 oa={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},aa={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},sa={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},ua={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ca={Play:0,Pause:1},la={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:gn.ALLOW,MASK:gn.MASK,MASK_USER_INPUT:gn.MASK_USER_INPUT},fa="data-gc-privacy",da="allow",pa="mask",ha="mask-user-input",va="hidden",_a="gc-privacy-allow",ga="gc-privacy-mask",ma="gc-privacy-mask-user-input",ya="gc-privacy-hidden",Ea="***",ba="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",wa={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Sa=1e5;function Ta(t,e){var n=Ln(t),r=n?Ta(n,e):e;return Ca(Oa(t),r)}function Ca(t,e){switch(e){case la.HIDDEN:case la.IGNORE:return e}switch(t){case la.ALLOW:case la.MASK:case la.MASK_USER_INPUT:case la.HIDDEN:case la.IGNORE:return t;default:return e}}function Oa(t){if(xn(t)){var e=t.getAttribute(fa);if("BASE"===t.tagName)return la.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return la.MASK;if("hidden"===n.type)return la.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return la.MASK}return e===va||t.classList.contains(ya)?la.HIDDEN:e===pa||t.classList.contains(ga)?la.MASK:e===ha||t.classList.contains(ma)?la.MASK_USER_INPUT:e===da||t.classList.contains(_a)?la.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)?la.IGNORE:void 0}}function Ia(t,e){switch(e){case la.MASK:case la.HIDDEN:case la.IGNORE:return!0;case la.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?Ra(t.parentNode):Ra(t);default:return!1}}function Ra(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!!wa[e.tagName]}var Aa=function(t){return t.replace(/\S/g,"x")};function xa(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n,a="STYLE"===r||void 0;if("SCRIPT"===r)i=Ea;else if(o===la.HIDDEN)i=Ea;else if(Ia(t,o)&&!a)if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?Ea:Aa(i);return i}}var ka=new WeakMap;function Na(t){return ka.has(t)}function La(t){return ka.get(t)}function Da(t,e){var n=t.tagName,r=t.value;if(Ia(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return Ea}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ua=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Ma=/^[A-Za-z]+:|^\/\//,Pa=/^data:.*,/i;function Ba(t,e){return t.replace(Ua,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Ma.test(s)||Pa.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):`url(${u}${function(t,e){try{return rn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Fa(t){if(t.includes(":")){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}function Ha(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?Fa(rule.cssText):""})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function za(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Wa=/^[^ \t\n\r\u000c]+/,Va=/^[, \t\n\r\u000c]+/;var $a={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function ja(t,e,n){return Ga(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Ga(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:aa.Document,childNodes:Ka(t,e),adoptedStyleSheets:Ha(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=[];t.childNodes.length&&(n=Ka(t,e));var r=Nn(t);r&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:aa.DocumentFragment,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?Ha(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:aa.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Qa(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Ca(Oa(t),e.parentNodePrivacyLevel);var o;if(i===la.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:aa.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[fa]:va},childNodes:[],isSVG:r}}if(i===la.IGNORE)return;var c=function(t,e,n){if(e===la.HIDDEN)return{};for(var r={},i=Qa(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=qa(t,e,s,n.configuration);null!==u&&(r[s]=ts(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Da(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===la.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=Xa(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var d;(d=Xa(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===la.ALLOW?r.checked=!!v.checked:Ia(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case $a.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case $a.SUBSEQUENT_FULL_SNAPSHOT:g.elementsScrollPositions.has(t)&&({scrollTop:p,scrollLeft:h}=g.elementsScrollPositions.get(t))}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(t.childNodes.length){l=Ka(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:m({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}if(kn(t)){var f=Ga(t.shadowRoot,e);null!==f&&l.push(f)}return{type:aa.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=t.parentElement&&t.parentElement.tagName,r=xa(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!r)return;return{type:aa.Text,textContent:r,isStyle:"STYLE"===n||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:aa.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=La(t)||Za++,i=n;return i.id=r,function(t,e){ka.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ka(t,e){var n=[];return t.childNodes.forEach((function(t){var r=Ga(t,e);r&&n.push(r)})),n}function qa(t,e,n,r){if(e===la.HIDDEN)return null;var i=t.getAttribute(n);if(e===la.MASK&&n!==fa&&!ki.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ea}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return ba;if("A"===o&&"href"===n)return Ea;if(i&&At(n,"data-"))return Ea}return i&&"string"==typeof i&&i.length>Sa&&"data:"===i.slice(0,5)?"data:truncated":i}var Za=1;var Ya=/[^a-z1-6-_]/;function Qa(t){var e=t.toLowerCase().trim();return Ya.test(e)?"div":e}function Xa(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Ba(((n=Array.from(e,Ja).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ja(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=Xa(t.styleSheet)||e}catch{}return Fa(e)}function ts(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?za(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(Va),!(n>=e.length);){var o=r(Wa);if(","===o.slice(-1))o=za(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=za(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Ba(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?za(t,r):r:za(t,r):r;var i}function es(t){return Boolean(t.changedTouches)}function ns(t,e){return{data:m({source:t},e),type:oa.IncrementalSnapshot,timestamp:ft()}}function rs(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}}var is=100;function os(t){var e=Q,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:is})),n.push(...t)},flush:r,stop:function(){e()}}}function as(t,e,n,r){var i=si();if(!i)return{stop:Q,flush:Q};var o=os((function(i){!function(t,e,n,r,i){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){ss(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!Na(e)&&!Nn(e))return!1;e=Ln(e)}return!0}(t.target)&&Ta(t.target,n.defaultPrivacyLevel)!==la.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 l of a)if(!v(l)){var f=Ta(l.parentNode,e.defaultPrivacyLevel);if(f!==la.HIDDEN&&f!==la.IGNORE){var d=Ga(l,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:$a.MUTATION,shadowRootsController:n},configuration:e});if(d){var p=Ln(l);c.push({nextId:_(l),parentId:La(p),node:d})}}}var h=[];return i.forEach((function(t,e){Na(e)&&h.push({parentId:La(t),id:La(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return Na(t)&&u.has(La(t))}function _(t){for(var e=t.nextSibling;e;){if(Na(e))return La(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Na(t)&&c.has(La(t))}var f=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=Ta(Ln(o.target),e.defaultPrivacyLevel);a!==la.HIDDEN&&a!==la.IGNORE&&n.push({id:La(o.target),value:Rt(xa(o.target,!1,a))})}}return n}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n),d=function(t,e){var n=[],r=new Map,i=t.filter((function(t){var e=r.get(t.target);return(!e||!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=Ta(a.target,e.defaultPrivacyLevel),c=qa(a.target,u,a.attributeName,e);if("value"===a.attributeName){var l=Da(a.target,u);if(void 0===l)continue;s=l}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:La(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(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 ss(t,e){var n;kn(t)&&e(t.shadowRoot),(n=t,kn(n)?n.shadowRoot.childNodes:n.childNodes).forEach((function(t){ss(t,e)}))}var us=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},cs=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 ls(){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 fs(){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 ds=50,ps=100,hs=200,vs=new WeakMap;let _s=1;function gs(t){return vs.has(t)||vs.set(t,_s++),vs.get(t)}function ms(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,as(e,n,r,document)),f=function(t){var e=H((function(e){var n=ws(e);if(Na(n)){var r=Es(e);if(!r)return;var i={id:La(n),timeOffset:0,x:r.x,y:r.y};t([i],es(e)?sa.TouchMove:sa.MouseMove)}}),ds,{trailing:!1});return De(document,[zt.MOUSE_MOVE,zt.TOUCH_MOVE],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=ws(n);if(Ta(r,e)!==la.HIDDEN&&Na(r)){var i,o=La(r),a=ys[n.type];if(a!==ua.Blur&&a!==ua.Focus){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=m({id:gs(n)},ns(sa.MouseInteraction,i));t(u)}};return De(document,Object.keys(ys),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=H((function(r){var i=ws(r);if(i&&Ta(i,e)!==la.HIDDEN&&Na(i)){var o=La(i),a=i===document?{scrollTop:fs(),scrollLeft:ls()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),ps);return Le(document,zt.SCROLL,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return ra().subscribe(t).unsubscribe}(t.viewportResizeCb),v=bs(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=ws(t);e&&Ta(e,o)!==la.HIDDEN&&Na(e)&&i({id:La(e),type:t.type===zt.PLAY?ca.Play:ca.Pause})},De(document,[zt.PLAY,zt.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Na(t.ownerNode)&&e(La(t.ownerNode))}var n=[Qt(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),Qt(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(Qt(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=rs(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),Qt(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=rs(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),y=(s=t.focusCb,De(window,[zt.FOCUS,zt.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),E=function(t){if(!window.visualViewport)return Q;var e=H((function(){t(cs())}),hs,{trailing:!1}),n=De(window.visualViewport,[zt.RESIZE,zt.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),b=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(Ge.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===jt.ACTION&&t.rawRumEvent.action.type===Vt.CLICK&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&c({timestamp:t.rawRumEvent.date,type:oa.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return gs(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),y(),E(),b()}}}var ys={[zt.POINTER_UP]:ua.MouseUp,[zt.MOUSE_DOWN]:ua.MouseDown,[zt.CLICK]:ua.Click,[zt.CONTEXT_MENU]:ua.ContextMenu,[zt.DBL_CLICK]:ua.DblClick,[zt.FOCUS]:ua.Focus,[zt.BLUR]:ua.Blur,[zt.TOUCH_START]:ua.TouchStart,[zt.TOUCH_END]:ua.TouchEnd};function Es(t){var e=es(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=us(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function bs(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=De(n,o?[zt.CHANGE]:[zt.INPUT,zt.CHANGE],(function(t){var e=ws(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=Q;else{const t=[Xt(HTMLInputElement.prototype,"value",u),Xt(HTMLInputElement.prototype,"checked",u),Xt(HTMLSelectElement.prototype,"value",u),Xt(HTMLTextAreaElement.prototype,"value",u),Xt(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=Ta(t,e);if(n===la.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(Ia(t,n))return;i={isChecked:t.checked}}else{var o=Da(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll(`input[type="radio"][name="${u}"]`),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(Na(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(m({id:La(e)},n)))}}}function ws(t){return!0===t.composed&&kn(t.target)?t.composedPath()[0]:t.target}var Ss=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=as(n,t,o,e),s=a.flush,u=a.stop,c=bs(r,t.defaultPrivacyLevel,e);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};function Ts(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(ns(sa.Mutation,t))},o=function(t){e(ns(sa.Input,t))},a=Ss(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=ft()),void 0===i&&(i={status:$a.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=ia(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:oa.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:oa.Focus,timestamp:n}),e({data:{node:ja(document,t.configuration,i),initialOffset:{left:ls(),top:fs()}},type:oa.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:cs(),type:oa.VisualViewport,timestamp:n})};s();var u=ms({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(ns(sa.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(ns(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(ns(sa.Scroll,t))},styleSheetCb:function(t){e(ns(sa.StyleSheetRule,t))},viewportResizeCb:function(t){e(ns(sa.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:oa.Focus,timestamp:ft()})},visualViewportResizeCb:function(t){e({data:t,type:oa.VisualViewport,timestamp:ft()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:$a.SUBSEQUENT_FULL_SNAPSHOT,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=""),g(U(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,Rs=10;function As(t){return Ns(t).segments_count}function xs(t){Ns(t).records_count+=1}function ks(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>Rs&&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 Ls=0;function Ds(t,e,n,r,i,o){this.worker=t,this.pendingWriteCount=0,this.id=Ls++;var a=e.view.id;this.metadata=m({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===oa.FullSnapshot,index_in_view:As(a),source:"browser"},e),function(t){Ns(t).segments_count+=1}(a),xs(a);var s=0,u=0,c=[],l=this,f=Le(t,"message",(function(t){var e=t.data;"wrote"===e.type&&(e.id===l.id?(l.pendingWriteCount-=1,function(t,e){Ns(t).segments_total_raw_size+=e}(a,e.additionalBytesCount),s+=e.additionalBytesCount,u+=e.result.length,c.push(e.result),l.flushReason&&0===l.pendingWriteCount?(c.push(e.trailer),o(function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=we(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(c),s),d()):i(u)):e.id>l.id&&d())})),d=f.stop;this.write('{"records":['+JSON.stringify(r))}Ds.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,xs(this.metadata.view.id),this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===oa.FullSnapshot),this.write(","+JSON.stringify(t))},Ds.prototype.flush=function(t){this.write("],"+JSON.stringify(this.metadata).slice(1)+"\n"),this.worker.postMessage({action:"reset",streamId:1}),this.flushReason=t},Ds.prototype.write=function(t){this.pendingWriteCount+=1,this.worker.postMessage({data:t,id:this.id,streamId:1,action:"write"})};var Us=30*J,Ms=6e4;function Ps(t,e,n,r,i,s){return function(t,e,n,r){var i={status:Bs.WaitingForInitialRecord,nextSegmentCreationReason:"init"},s=t.subscribe(Ge.VIEW_CREATED,(function(){f("view_change")})),u=s.unsubscribe,c=t.subscribe(Ge.PAGE_EXITED,(function(t){f(t.reason)})),l=c.unsubscribe;function f(t){i.status===Bs.SegmentPending&&(i.segment.flush(t),a(i.expirationTimeoutId)),i="stop"!==t?{status:Bs.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Bs.Stopped}}function d(t,a){var s=e();if(s){var u=new Ds(r,s,t,a,(function(t){!u.flushReason&&t>Ms&&f("segment_bytes_limit")}),(function(t,e){var r=Cs(t,u.metadata,e);An(u.flushReason)?n.sendOnExit(r):n.send(r)}));i={status:Bs.SegmentPending,segment:u,expirationTimeoutId:o((function(){f("segment_duration_limit")}),Us)}}}return{addRecord:function(t){switch(i.status){case Bs.WaitingForInitialRecord:d(i.nextSegmentCreationReason,t);break;case Bs.SegmentPending:i.segment.addRecord(t)}},stop:function(){f("stop"),u(),l()}}}(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,s)}var Bs={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};const Fs='!function(){"use strict";function t(t,a){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,_=!0,h=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=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]),l=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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(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)}(t)}},H=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},Y=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},P={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"},j={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},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=$(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=2,t.strstart++,n&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Tt=[new Ft(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ut(t),0===t.lookahead&&e===J)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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 Ot=function(t){if(!t||!t.state)return mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+pt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=function(){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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};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 Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Gt:Kt,"[object ArrayBuffer]"===Yt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.0.26"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();';var Hs;function zs(){return Hs||(Hs=URL.createObjectURL(new Blob([Fs]))),new Worker(Hs)}var Ws={Nil:0,Loading:1,Error:2,Initialized:3},Vs={status:Ws.Nil};function $s(t,e){switch(void 0===e&&(e=zs),Vs.status){case Ws.Nil:Vs={status:Ws.Loading,callbacks:[t]},function(t){void 0===t&&(t=zs);try{var e=t();return Le(e,"error",js),Le(e,"message",(function(t){var n=t.data;"errored"===n.type?js(n.error,n.streamId):"initialized"===n.type&&function(t,e){Vs.status===Ws.Loading&&(g(Vs.callbacks,(function(e){e(t)})),Vs={status:Ws.Initialized,worker:t,version:e})}(e,n.version)})),e.postMessage({action:"init"}),e}catch(t){js(t)}}(e);break;case Ws.Loading:Vs.callbacks.push(t);break;case Ws.Error:t();break;case Ws.Initialized:t(Vs.worker)}}function js(t,n){var r;Vs.status===Ws.Loading&&(e.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),(t instanceof Event||t instanceof Error&&(wt(r=t.message,"Content Security Policy")||wt(r,"requires 'TrustedScriptURL'")))&&e.error("Please make sure CSP is correctly configured !!!"),g(Vs.callbacks,(function(t){t()})),Vs={status:Ws.Error})}var Gs=0,Ks=1,qs=2,Zs=3;var Ys,Qs,Xs,Js,tu=function(t,e){if(void 0===e&&(e=$s),xr()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:Q,stop:Q,getReplayStats:function(){},onRumStart:Q,isRecording:function(){return!1}};var n={status:Gs},r=function(){n={status:Ks}},i=function(){n={status:Gs}};return{start:function(){r()},stop:function(){i()},getReplayStats:ks,onRumStart:function(o,a,s,u){o.subscribe(Ge.SESSION_EXPIRED,(function(){n.status!==qs&&n.status!==Zs||(i(),n={status:Ks})})),o.subscribe(Ge.SESSION_RENEWED,(function(){n.status===Ks&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?n.status!==qs&&n.status!==Zs&&(n={status:qs},Dn("interactive",(function(){n.status===qs&&e((function(e){if(n.status===qs)if(e){var r=t(o,a,s,u,e);n={status:Zs,stopRecording:r.stop}}else n={status:Gs}}))}))):n={status:Ks}},i=function(){n.status!==Gs&&(n.status===Zs&&n.stopRecording(),n={status:Gs})},n.status===Ks&&r()},isRecording:function(){return n.status===Zs}}}((function(t,e,n,r,i,o){var a=o||mr(e.sessionReplayEndPoint,Ms,(function(e){t.notify(Ge.RAW_ERROR_COLLECTED,{error:e})})),s=Ps(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Ts({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(Ge.VIEW_ENDED,(function(){p(),u({timestamp:ft(),type:oa.ViewEnd})})),v=t.subscribe(Ge.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),eu=function(t,n){var r,i=!1,o=Ur(Lr),a=Ur(Nr),s=function(){},u=function(){},c=function(){},l=new Lt,f=function(t,e){void 0===e&&(e=ft()),l.add((function(){return f(t,e)}))},d=function(t,e){void 0===e&&(e=lt()),l.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=yo(o,a,n)),l.add((function(){return p(t,e)}))},h=function(t,e){void 0===e&&(e=yo(o,a,n)),l.add((function(){return h(t,e)}))};function v(e,r){var i=t(e,n,o,a,r);d=i.startView,p=i.addAction,h=i.addError,f=i.addTiming,s=i.getInternalContext,c=i.stopSession,l.drain(),n.onRumStart(i.lifeCycle,e,i.session,i.viewContexts)}return r={init:function(t){if(u=function(){return Z(t)},xr()&&(t=function(t){return m({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(W()),n="test";return cn(e,n,J,t),ln(e)===n}catch(t){return!1}}(yn(t))?"file:"!==window.location.protocol||(e.error("Execution is not allowed in the current context."),!1):(e.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!i||(t.silentMultipleInit||e.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var n=ea(t);if(n){if(n.trackViewsManually){var r=l;l=new Lt,d=function(t){v(n,t)},r.drain()}else v(n);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 u()},getInternalContext:function(t){return s(t)},addDebugSession:function(t){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(t,e){p({name:t,context:Z(e),startClocks:lt(),type:Vt.CUSTOM})},addError:function(t,e){var n=me();h({error:t,handlingStack:n,context:Z(e),startClocks:lt()})},addTiming:function(t,e){f(t,e)},setUser:function(t){(function(t){var n="object"===K(t);return n||e.error("Unsupported user:",t),n})(t)&&a.setContext(Mr(t))},getUser:a.getContext,setUserProperty:function(t,e){var n={};n[t]=e;var r=Mr(n)[t];a.setContextProperty(t,r)},removeUserProperty:a.removeContextProperty,removeUser:a.clearContext,clearUser:a.clearContext,startView:function(t){d("object"==typeof t?t:{name:t})},stopSession:function(){c()},startSessionReplayRecording:n.start,stopSessionReplayRecording:n.stop},E({},r,{onReady:function(t){t()}})}((function(t,e,n,r,i){var o,a=new Ke,s=function(t){a.notify(Ge.RAW_ERROR_COLLECTED,{error:t})},u=o=new Ae((function(){var t=De(document,[zt.VISIBILITY_CHANGE,zt.FREEZE,zt.PAGE_HIDE],(function(t){t.type===zt.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?o.notify({reason:Rn.HIDDEN}):t.type===zt.FREEZE&&o.notify({reason:Rn.FROZEN})}),{capture:!0}),e=Le(window,zt.BEFORE_UNLOAD,(function(){o.notify({reason:Rn.UNLOADING})}));return function(){t.stop(),e.stop()}}));u.subscribe((function(t){a.notify(Ge.PAGE_EXITED,t)}));var c=xr()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Br.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:Q,expireObservable:new Ae}}():Hr(t,a);if(xr())!function(t){var e=Ar();t.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){var n=Cr(t).rowData;e.send("rum",n)}))}(a);else eo(t,a,s,u,c.expireObservable);var l=function(t){var e=ln(Wr);return e||(e=W(),cn(Wr,e,Vr,t.cookieOptions)),{getId:function(){return e}}}(t),f=function(){var t=si(),e=new Ae((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}(),d=ui(location),p=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Mt(mo);return t.subscribe(Ge.VIEW_CREATED,(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(Ge.VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Ge.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new Mt(_o);t.subscribe(Ge.VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(Ge.VIEW_CREATED,(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=ct();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&&!xt(n)&&(e="/"+kt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:V(e),urlQuery:te(j(t.location.href))}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=lo(),d=function(t,e,n,r){t.subscribe(Ge.AUTO_ACTION_COMPLETED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,Ji(e,r))}));var i={findActionId:Q};return n.trackUserInteractions&&(i=Yi(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,E({savedCommonContext:n},Ji(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction;return ao(e,t,r,i,c,l,p,s,u),{viewContexts:c,urlContexts:l,foregroundContexts:f,addAction:h,actionContexts:p,stop:function(){c.stop(),f.stop()}}}(a,t,location,c,l,d,f,(function(){return yo(n,r,e)}),s),h=p.viewContexts,v=p.urlContexts,_=p.actionContexts,g=p.foregroundContexts,m=p.addAction;!function(t,e){t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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=vt(i.startTime),a={date:o.timeStamp,long_task:{id:W(),duration:at(i.duration)},type:jt.LONG_TASK};t.notify(Ge.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(a,c),Zo(a,t);var y=xo(a,t,location,f,d,g,e,i),b=y.addTiming,w=y.startView,S=Eo(a,g).addError;jo(a,t,c),ii(a,t);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}}}}}}(t.applicationId,c,h,_,v);return{addAction:m,addError:S,addTiming:b,configuration:t,lifeCycle:a,viewContexts:h,session:c,startView:w,stopSession:function(){c.expire()},getInternalContext:T.get}}),tu);Ys=i(),Xs=eu,Js=Ys[Qs="DATAFLUX_RUM"],Ys[Qs]=Xs,Js&&Js.q&&g(Js.q,(function(t){t()}))}();
|
|
1
|
+
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=function e(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(t,n)||(n=t.log),e[n].apply(e,r)};function n(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}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==r(t)&&(t="object"===("undefined"==typeof self?"undefined":r(self))?self:"object"===("undefined"==typeof window?"undefined":r(window))?window:{}),t}function o(t,e){return n(i(),"setTimeout")(t,e)}function a(t){n(i(),"clearTimeout")(t)}function s(t,e){return n(window,"setInterval")(t,e)}function u(t){n(window,"clearInterval")(t)}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}e.debug=console.debug.bind(console),e.log=console.log.bind(console),e.info=console.info.bind(console),e.warn=console.warn.bind(console),e.error=console.error.bind(console);var l=Array.prototype,f=(Function.prototype,Object.prototype),d=l.slice,p=f.toString,h=f.hasOwnProperty,v=l.forEach,_=Array.isArray,g=function(t,e,n){if(null===t)return!1;if(v&&t.forEach===v)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(h.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function m(t){return g(d.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function y(t){return m({},t)}var E=function(t){return g(d.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},b=function(t){return g(d.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(L(e[n])&&L(t[n])?E(t[n],e[n]):t[n]=e[n])})),t},w=_||function(t){return"[object Array]"===p.call(t)},S=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},T=function(t){return t?t.toArray?t.toArray():w(t)?d.call(t):(e=t)&&h.call(e,"callee")?d.call(t):C(t):[];var e},C=function(t){var e=[];return null===t||g(t,(function(t){e[e.length]=t})),e},O=function(t){var e=[];return null===t||g(t,(function(t,n){e[e.length]=n})),e},I=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},R=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},A=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},x=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(h.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},k=function(t,n,r){return void 0===r&&(r=!1),A(t,(function(t){try{if("function"==typeof t)return t(n);if(t instanceof RegExp)return t.test(n);if("string"==typeof t)return r?At(n,t):t===n}catch(t){e.error(t)}}))},N=function(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},L=function(t){return null!==t&&"[object Object]"===p.call(t)},D=function(t){if(L(t)){for(var e in t)if(h.call(t,e))return!1;return!0}return!1},U=function(t){var e=[];return g(t,(function(t,n){e.push([n,t])})),e},M=function(t){return"[object String]"===p.call(t)},P=function(t){return"[object Boolean]"===p.call(t)},B=function(t){return"[object Number]"===p.call(t)&&/[\d\.]+/.test(String(t))},F=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},H=(Date.now,function(t,e,n){var r,i,s=!n||void 0===n.leading||n.leading,u=!n||void 0===n.trailing||n.trailing,c=!1,l=this;return{throttled:function(){c?r=arguments:(s?t.apply(l,arguments):r=arguments,c=!0,i=o((function(){u&&r&&t.apply(l,r),c=!1,r=void 0}),e))},cancel:function(){a(i),c=!1,r=void 0}}}),z=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="",l=[];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,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function W(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,W)}function V(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var $=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"!==c(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 j=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=G("?"+n)),e},G=function(t){for(var e=function(t){return F(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 K(t){return null===t?"null":Array.isArray(t)?"array":c(t)}function q(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"!==c(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]=q(i[o],e[o],n);return i}i="object"===K(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=q(i[a],e[a],n));return i}}function Z(t){return q(void 0,t)}function Y(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function Q(){}var X,J=1e3,tt=60*J,et=60*tt,nt=365*(24*et);function rt(t){return 0!==t&&100*Math.random()<=t}function it(t,e){return+t.toFixed(e)}function ot(t){return"number"!=typeof t?t:it(1e6*t,0)}function at(t){return B(t)?it(1e6*t,0):t}function st(t){return t-mt()}function ut(t){return Math.round(mt()+t)}function ct(){return performance.now()}function lt(){return{relative:ct(),timeStamp:ft()}}function ft(){return dt()}function dt(){return(new Date).getTime()}function pt(t,e){return e-t}function ht(){return{relative:0,timeStamp:mt()}}function vt(t){return{relative:t,timeStamp:gt(t)}}function _t(t,e){return t+e}function gt(t){var e=dt()-performance.now();return e>mt()?Math.round(e+t):ut(t)}function mt(){return void 0===X&&(X=performance.timing.navigationStart),X}function yt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&h.call(t,r)))return;t=t[r]}return t}function Et(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function bt(t){var e=K(t);return"string"===e||"function"===e||t instanceof RegExp}function wt(t,e){return-1!==t.indexOf(e)}function St(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Tt(t){return B(t)&&t>=0&&t<=100}function Ct(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ot(t){var e={};return g(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=It(t)})),e}function It(t){return w(t)?R(t,(function(t){return It(t)})):"object"===c(t)&&null!==t?Ot(t):t}function Rt(t,e){return null!=t?t:e}function At(t,e){return t.slice(0,e.length)===e}function xt(t){var e=t.substr(1);return!!document.getElementById(e)}function kt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Nt=function(){this.buffer=[]};Nt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){g(this.buffer,(function(t){t()})),this.buffer.length=0}};var Lt=Nt,Dt=1/0,Ut=tt;function Mt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=s((function(){n.clearOldContexts()}),Ut)}Mt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:Dt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},Mt.prototype.find=function(t){void 0===t&&(t=Dt);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}}},Mt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===Dt&&e.close(t)},Mt.prototype.findAll=function(t,e){void 0===e&&(e=0);var n=_t(t,e);void 0===t&&(t=Dt);var r=I(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return R(r,(function(t){return t.context}))},Mt.prototype.reset=function(){this.entries=[]},Mt.prototype.stop=function(){u(this.clearOldContextsInterval)},Mt.prototype.clearOldContexts=function(){for(var t=ct()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Pt={navigator:"undefined"!=typeof window&&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"]}},Bt={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||t.indexOf("Edg")>-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=Pt.navigator.userAgent||"",n=Bt.getMatchMap(e);for(var r in Pt.infoMap)for(var i=0;i<Pt.infoMap[r].length;i++){var o=Pt.infoMap[r][i];n[o]&&(t[r]=o)}},getOS:function(){return Bt.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var t=this,e=Pt.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",Bt.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=(Pt.navigator.browserLanguage||Pt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language},getBrowserInfo:function(){var t=this;Bt.matchInfoMap(t);var e=Pt.navigator.userAgent||"",n=function(t,e){var n=Pt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Bt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&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")||Pt.navigator&&void 0===Pt.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){e.warn(t)}))}},Ft={};"undefined"!=typeof window&&(Ft={os:Bt.getOS(),osVersion:Bt.getOSVersion().version,osVersionMajor:Bt.getOSVersion().osMajor,browser:Bt.getBrowserInfo().browser,browserVersion:Bt.getBrowserInfo().browserVersion,browserVersionMajor:Bt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Bt.getNetwork(),divice:Bt.getDeviceType()});var Ht=Ft,zt={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange"},Wt={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},Vt={CLICK:"click",CUSTOM:"custom"},$t={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},jt={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Gt={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},Kt={FETCH:Wt.FETCH,XHR:Wt.XHR},qt={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},Zt={HANDLED:"handled",UNHANDLED:"unhandled"};function Yt(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 Qt(t,e,n){return Yt(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 Xt(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Q};var i=function(t,e){o((function(){n(t,e)}),0)},a=function(t){r.set.call(this,t),i(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):i=Q}}}function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function te(t,e,n){if("object"!==Jt(t)||null===t)return JSON.stringify(t);var r=ee(Object.prototype),i=ee(Array.prototype),o=ee(Object.getPrototypeOf(t)),a=ee(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ee(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):Q}function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}var re="?";function ie(t){var e=[],n=pe(t,"stack");return n&&g(n.split("\n"),(function(t){var n=function(t){var e=se.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=ue.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]||re,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=ce.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:re,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=le.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||re,line:+e[3],url:e[2]}}(t)||function(t){var e=fe.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=de.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]||re,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=re),e.push(n))})),{message:pe(t,"message"),name:pe(t,"name"),stack:e}}var oe="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",ae="(?::(\\d+))",se=new RegExp("^\\s*at (.*?) ?\\("+oe+ae+"?"+ae+"?\\)?\\s*$","i"),ue=new RegExp("\\((\\S*)"+ae+ae+"\\)");var ce=new RegExp("^\\s*at ?"+oe+ae+"?"+ae+"??\\s*$","i");var le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var fe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,de=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function pe(t,e){if("object"===ne(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var he=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ve(t){var e=function(t){return Qt(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=ie(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=he.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Rt(o,e))}})}(t),n=function(t){return Qt(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=ie(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}var _e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function ge(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:ye(e),handlingStack:r,type:e.name,causes:be(n,a)}:{startClocks:i,source:a,handling:s,originalError:n,message:o+" "+te(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function me(){var t=new Error;if(!t.stack)try{throw t}catch(t){}var e=ie(t);return e.stack=e.stack.slice(2),ye(e)}function ye(t){var e=Ee(t);return g(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 Ee(t){return(t.name||"Error")+": "+t.message}function be(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=ie(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&ye(i)}),n=n.cause}return r.length?r:void 0}function we(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Se(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Te=1024,Ce=1024*Te,Oe=/[^\u0000-\u007F]/;function Ie(t){return Oe.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}var Re=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Re.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=I(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){g(this.observers,(function(e){e(t)}))}};var Ae=Re;function xe(){var t=[].slice.call(arguments),e=new Ae((function(){var n=R(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return g(n,(function(t){return t.unsubscribe()}))}}));return e}var ke={};function Ne(e){var n=R(e,(function(e){return ke[e]||(ke[e]=function(e){var n=new Ae((function(){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=me();n.notify(function(e,n,r){var i,o=R(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ee(ie(t));return te(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=St(e,(function(t){return t instanceof Error}));i=a?ye(ie(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}(i,e,o))},function(){console[e]=r}}));return n}(e)),ke[e]}));return xe.apply(this,n)}function Le(t,e,n,r){return De(t,[e],n,r)}function De(t,e,r,i){var o=i&&i.once?function(t){s(),r(t)}:r;i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var a=n(t,"addEventListener");g(e,(function(e){a.call(t,e,o,i)}));var s=function(){var r=n(t,"removeEventListener");g(e,(function(e){r.call(t,e,o,i)}))};return{stop:s}}var Ue={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Me(t){var e,n=[];wt(t,Ue.cspViolation)&&n.push(e=new Ae((function(){var t=function(t){e.notify(function(t){var e=Ue.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:Ue.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:Pe(t.effectiveDirective,n+' of the policy "'+Et(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(t))};return Le(document,zt.SECURITY_POLICY_VIOLATION,t).stop})));var r=I(t,(function(t){return t!==Ue.cspViolation}));return r.length&&n.push(function(t){var e=new Ae((function(){if(window.ReportingObserver){var n=function(t){g(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:Pe(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)),xe.apply(this,n)}function Pe(t,e,n,r,i){return n&&ye({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}var Fe=220*Te,He="$",ze=3;function We(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Be(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Be(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function Ve(t,n,r){e.warn("The data provided has been "+n+" as it is over the limit of "+t+" characters:",r)}var $e=function(){this._events=[],this.pendingEvents=[]};$e.prototype={emit:function(t){var e=[].slice.call(arguments,1);g(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 $e;var je,Ge={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function Ke(){this.callbacks={}}function qe(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ze(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ye(t,e,n){var r=Z(t),i=n(r);return g(U(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=qe(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!Je(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=K(o);a===i?Qe(t,n,function(t,e){void 0===e&&(e=Fe);var n=ee(Object.prototype),r=ee(Array.prototype),i=[],o=new WeakMap,a=We(t,He,void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=We(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Ve(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=We(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+ze,c=1),s>e){Ve(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Ve(e,"discarded",t)}(o)):"object"!==i||"undefined"!==a&&"null"!==a||Qe(t,n,{})})),i}function Qe(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Xe(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Xe(t){return"object"===K(t)}function Je(t,e){return Xe(t)&&Object.prototype.hasOwnProperty.call(t,e)}function tn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&o((function(){r=0}),tt),(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:_e.AGENT,startClocks:lt()})}finally{i=!1}}return!0}}}function en(t){return rn(t,Ct(window.location)).href}function nn(t){return Ct(rn(t))}function rn(t,e){if(function(){if(void 0!==je)return je;try{var t=new URL("http://test/path");return je="http://test/path"===t.href}catch(t){je=!1}return je}())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}Ke.prototype={notify:function(t,e){var n=this.callbacks[t];n&&g(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]=I(n.callbacks[t],(function(t){return t!==e}))}}}};var on=navigator.userAgent.toLowerCase(),an=function(){return/iphone os/.test(on)};var sn,un=J;function cn(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 ln(t){return function(t,e){var n=t.match("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,t)}var fn=/^\s+|\s+$/g,dn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function pn(t,e){var n=dn[e];return n?(0===t.indexOf("/")&&(t=location.origin+hn(t)),t.lastIndexOf("/")===t.length-1?hn(t)+"v1/write"+n:hn(t)+"/v1/write"+n):""}function hn(t){return t.replace(fn,"")}var vn,_n,gn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function mn(t){if(void 0===t.sampleRate||Tt(t.sampleRate)){if(void 0===t.sessionSampleRate||Tt(t.sessionSampleRate)){var n,r,i=t.sessionSampleRate||t.sampleRate;return m({beforeSend:t.beforeSend&&(n=t.beforeSend,r="beforeSend threw an error:",function(){var t=[].slice.call(arguments);try{return n.apply(this,t)}catch(t){e.error(r,t)}}),cookieOptions:yn(t),sessionSampleRate:Rt(i,100),service:t.service,version:t.version,env:t.env,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*Te,eventRateLimiterThreshold:3e3,flushTimeout:30*J,batchMessagesLimit:50,messageBytesLimit:256*Te,resourceUrlLimit:5*Te},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&S(t.isIntakeUrl)&&P(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&S(t.isServerError)&&P(t.isServerError())&&(n=t.isServerError),{datakitUrl:pn(t.datakitUrl||t.datakitOrigin,"rum"),logsEndpoint:pn(t.datakitOrigin,"log"),sessionReplayEndPoint:pn(t.datakitOrigin,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}e.error("Sample Rate should be a number between 0 and 100")}else e.error("Sample Rate should be a number between 0 and 100")}function yn(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===sn){for(var t="dd_site_test_".concat(W()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ln(t);)n=e.pop()+"."+n,cn(t,"test",J,{domain:n});sn=n}return sn}()),e}function En(){var t;return vn||(t=new Ae((function(){if(window.fetch){var e=Yt(window,"fetch",(function(e){return function(n,r){var i,o=function(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:en(String(e)),o=lt(),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;if(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;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}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}})),vn=t),vn}var bn={},wn="_DATAFLUX_REQUEST_UUID";function Sn(){var t;return _n||(t=new Ae((function(){var e=Qt(XMLHttpRequest.prototype,"open",{before:Tn}),n=Qt(XMLHttpRequest.prototype,"send",{before:function(){Cn.call(this,t)}}),r=Qt(XMLHttpRequest.prototype,"abort",{before:In});return function(){e.stop(),n.stop(),r.stop()}})),_n=t),_n}function Tn(t,e){var n=this[wn]||W();this[wn]=n,bn[n]={state:"open",method:t,url:en(String(e))}}function Cn(t){var e=bn[this[wn]];if(e){var n=e;n.state="start",n.startTime=ct(),n.startClocks=lt(),n.isAborted=!1,n.xhr=this;var r=!1,i=Qt(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=pt(n.startClocks.timeStamp,ft()),o.status=this.status,t.notify(y(o)),On.call(this)}},a=Le(this,"loadend",o).stop;t.notify(n)}}function On(){delete bn[this[wn]],delete this[wn]}function In(){var t=bn[this[wn]];t&&(t.isAborted=!0)}var Rn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function An(t){return wt(C(Rn),t)}function xn(t){return t.nodeType===Node.ELEMENT_NODE}function kn(t){return xn(t)&&Boolean(t.shadowRoot)}function Nn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&xn(e.host)}function Ln(t){return Nn(t)?t.host:t.parentNode}function Dn(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?zt.LOAD:zt.DOM_CONTENT_LOADED;Le(window,n,e,{once:!0})}}var Un,Mn={sdk_name:"_gc.sdk_name",sdk_version:"_gc.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"},Pn={action_id:"action.id",view_in_foreground:"view.in_foreground"},Bn={view:{type:jt.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level"},fields:{is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",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",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",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_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",first_byte:"view.first_byte",in_foreground_periods:"view.in_foreground_periods",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:jt.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.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_encode_size:"resource.encode_size",resource_render_blocking_status:"resource.render_blocking_status",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:jt.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.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:jt.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:jt.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",action_target:"_gc.action.target",action_position:"_gc.action.position"}},browser_log:{type:jt.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"]}}},Fn=4*et,Hn=15*tt,zn=/^([a-z]+)=([a-z0-9-]+)$/,Wn="&",Vn="_dataflux_s",$n=10,jn=100,Gn=[];function Kn(t,e){if(void 0===e&&(e=0),Un||(Un=t),t===Un)if(e>=jn)Yn();else{var n,r=Xn();if(qn()){if(r.lock)return void Zn(t,e);if(n=W(),r.lock=n,Qn(r,t.options),(r=Xn()).lock!==n)return void Zn(t,e)}var i=t.process(r);if(qn()&&(r=Xn()).lock!==n)Zn(t,e);else{if(i&&function(t,e){if(Jn(t))return void function(t){cn(Vn,"",0,t)}(e);t.expire=String(dt()+Hn),Qn(t,e)}(i,t.options),qn()&&(!i||!Jn(i))){if((r=Xn()).lock!==n)return void Zn(t,e);delete r.lock,Qn(r,t.options),i=r}t.after&&t.after(i||r),Yn()}}else Gn.push(t)}function qn(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function Zn(t,e){o((function(){Kn(t,e+1)}),$n)}function Yn(){Un=void 0;var t=Gn.shift();t&&Kn(t)}function Qn(t,e){cn(Vn,function(t){return R(U(t),(function(t){return t[0]+"="+t[1]})).join(Wn)}(t),Hn,e)}function Xn(){var t=ln(Vn),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(Wn)||zn.test(t))}(t)&&g(t.split(Wn),(function(t){var n=zn.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function Jn(t){return D(t)}function tr(t,e,n){var r=new Ae,i=new Ae,o=s((function(){Kn({options:t,process:function(t){return f(t)?void 0:{}},after:c})}),un),a=function(){var t=Xn();if(f(t))return t;return{}}();function c(t){return f(t)||(t={}),l()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function l(){return void 0!==a[e]}function f(t){return(void 0===t.created||dt()-Number(t.created)<Fn)&&(void 0===t.expire||dt()<Number(t.expire))}return{expandOrRenewSession:H((function(){var i;Kn({options:t,process:function(t){var r=c(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=W(),t.created=String(dt()));return o}(r),r},after:function(t){i&&!l()&&function(t){a=t,r.notify()}(t),a=t}})}),un).throttled,expandSession:function(){Kn({options:t,process:function(t){return l()?c(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){deleteSessionCookie(t),c({})},stop:function(){u(o)}}}var er=tt,nr=Fn,rr=[],ir=function(t,e,n){var r=tr(t,e,n);rr.push((function(){return r.stop()}));var i,o,a=new Mt(nr);function c(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return rr.push((function(){return a.stop()})),r.renewObservable.subscribe((function(){a.add(c(),ct())})),r.expireObservable.subscribe((function(){a.closeActive(ct())})),r.expandOrRenewSession(),a.add(c(),ht().relative),i=function(){return r.expandOrRenewSession()},o=De(window,[zt.CLICK,zt.TOUCH_START,zt.KEY_DOWN,zt.SCROLL],i,{capture:!0,passive:!0}),rr.push(o.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=Le(document,zt.VISIBILITY_CHANGE,e);rr.push(n.stop);var r=s(e,er);rr.push((function(){u(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return a.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var or=80*Te,ar=32,sr=3*Ce,ur=256*J,cr=J,lr={UP:0,FAILURE_DETECTED:1,DOWN:2},fr={AFTER_SUCCESS:0,AFTER_RESUME:1};function dr(t,e,n,r,i){e.transportStatus===lr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?hr(t,e,n,{onSuccess:function(){return vr(fr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),pr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function pr(t,e,n,r){t.transportStatus===lr.DOWN&&o((function(){hr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=cr,vr(fr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(ur,2*t.currentBackoffTime),pr(t,e,n,r)}})}),t.currentBackoffTime)}function hr(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=lr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?lr.FAILURE_DETECTED:lr.DOWN,e.lastFailureStatus=n.status,o())}))}function vr(t,e,n,r,i){t===fr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+sr/Ce+"MiB",source:_e.AGENT,startClocks:lt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=_r();o.size()>0;)dr(o.dequeue(),e,n,r,i)}function _r(){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>=sr}}}function gr(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function mr(t,e,n){var r={transportStatus:lr.UP,lastFailureStatus:0,currentBackoffTime:cr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=or&&this.ongoingRequestCount<ar},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:_r(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=gr(t),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;s?fetch(a,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}),(function(){yr(a,i,r)})):yr(a,i,r)}(t,e,n,r)};return{send:function(e){dr(e,r,i,t,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=gr(t),a=!!navigator.sendBeacon&&i<e;if(a)try{if(navigator.sendBeacon(o,r))return}catch(t){}yr(o,r)}(t,e,n)}}}function yr(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),Le(r,"loadend",(function(){"function"==typeof n&&n({status:r.status})}),{once:!0}),r.send(e)}function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function br(t){if("object"===Er(t)&&t)t=te(t);else if(!M(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function wr(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Sr(t){return"object"===Er(t)&&t?wr(te(t)):M(t)?wr(t):t}var Tr="custom_keys",Cr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return g(Bn,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=E({},Mn,i.tags),u=["date","type",Tr];g(s,(function(n,r){var i=yt(t,n);u.push(r),(i||B(i))&&(e.tags[r]=function(t){return M(t)?t:te(t)}(i),a.push(br(r)+"="+br(i)))}));var c=[],l=E({},Pn,i.fields);if(g(l,(function(n,r){if(w(n)&&2===n.length){var i=n[1],o=yt(t,i);u.push(r),null!=o&&(e.fields[r]=o,c.push(br(r)+"="+Sr(o)))}else if(M(n)){o=yt(t,n);u.push(r),null!=o&&(e.fields[r]=o,c.push(br(r)+"="+Sr(o)))}})),t.tags&&L(t.tags)&&!D(t.tags)){var f=[];g(t.tags,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=t,c.push(br(n)+"="+Sr(t))))})),f.length&&(e.fields[Tr]=Sr(f),c.push(br(Tr)+"="+Sr(f)))}t.type===jt.LOGGER&&g(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=t,c.push(br(n)+"="+Sr(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=at(t.date)}})),{rowStr:n?r:"",rowData:n?e:void 0}},Or=function(t,e,n){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n;var r=this;this.flushController.flushObservable.subscribe((function(t){r.flush(t)}))};Or.prototype.add=function(t){this.addOrUpdate(t)},Or.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Or.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(C(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};An(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Or.prototype.addOrUpdate=function(t,n){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?e.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(n)&&this.remove(n),this.push(i,o,n))},Or.prototype.process=function(t){var e=Cr(t).rowStr;return{processedMessage:e,messageBytesCount:Ie(e)}},Or.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Or.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Ie(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Or.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var Ir=Or;function Rr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,s=t.sessionExpireObservable,u=new Ae;i.subscribe((function(t){return d(t.reason)})),s.subscribe((function(){return d("session_expire")}));var c,l=0,f=0;function d(t){if(0!==f){var e=f,n=l;f=0,l=0,p(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){a(c),c=void 0}return{flushObservable:u,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){l+t>=n&&d("bytes_limit"),f+=1,l+=t,void 0===c&&(c=o((function(){d("duration_limit")}),r))},notifyAfterAddMessage:function(){f>=e?d("messages_limit"):l>=n&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&p()}}}function Ar(){var t=i().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function xr(){return!!Ar()}var kr=3*Te,Nr="user",Lr="global context";var Dr=200;function Ur(t,n){void 0===n&&(n=Ie);var r,i={},o=!1,a=H((function(i){r=n(te(i)),o||(o=function(t,n){return t>kr&&(e.warn("The "+n+"data is over "+kr/Te+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),Dr).throttled;return{getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,a(i)},remove:function(t){delete i[t],a(i)},set:function(t){a(i=t)},getContext:function(){return Z(i)},setContext:function(t){i=Z(t),a(i)},setContextProperty:function(t,e){i[t]=Z(e),a(i)},removeContextProperty:function(t){delete i[t],a(i)},clearContext:function(){i={},r=0}}}function Mr(t){var e=m({},t);return g(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var Pr="rum",Br={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Fr={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function Hr(t,e){var n=ir(t.cookieOptions,Pr,(function(e){return function(t,e){var n;n=function(t){return t===Fr.NOT_TRACKED||t===Fr.TRACKED_WITH_SESSION_REPLAY||t===Fr.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:rt(t.sessionSampleRate)?rt(t.sessionReplaySampleRate)?Fr.TRACKED_WITH_SESSION_REPLAY:Fr.TRACKED_WITHOUT_SESSION_REPLAY:Fr.NOT_TRACKED;return{trackingType:n,isTracked:zr(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Ge.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(Ge.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&zr(e.trackingType)){var r=e.trackingType===Fr.TRACKED_WITH_SESSION_REPLAY?Br.WITH_SESSION_REPLAY:Br.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Br.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function zr(t){return t===Fr.TRACKED_WITHOUT_SESSION_REPLAY||t===Fr.TRACKED_WITH_SESSION_REPLAY}var Wr="_dataflulx_usr_id",Vr=1440*et,$r="initial_document",jr=[[Wt.DOCUMENT,function(t){return $r===t}],[Wt.XHR,function(t){return"xmlhttprequest"===t}],[Wt.FETCH,function(t){return"fetch"===t}],[Wt.BEACON,function(t){return"beacon"===t}],[Wt.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[Wt.JS,function(t,e){return null!==e.match(/\.js$/i)}],[Wt.IMAGE,function(t,e){return wt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Wt.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[Wt.MEDIA,function(t,e){return wt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Gr(t){var e=t.name;if(!function(t){try{return!!rn(t)}catch(t){return!1}}(e))return Wt.OTHER;var n=function(t){var e=rn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=Wt.OTHER;return g(jr,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Kr(){for(var t=T(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var qr=/[^\u0000-\u007F]/;function Zr(t,e){return n=t,(qr.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Yr(t){var e=Qr(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,l=e.connectEnd,f=e.requestStart,d=e.responseStart,p=e.responseEnd,h={firstbyte:ot(d-a),trans:ot(p-d),downloadTime:Jr(n,d,p),firstByteTime:Jr(n,f,d)};return d>0&&d<=ct()&&(h.ttfb=ot(d-f)),l!==r&&(h.tcp=ot(l-u),h.connectTime=Jr(n,u,l),Kr(u,c,l)&&(h.ssl=ot(l-c),h.sslTime=Jr(n,c,l))),s!==r&&(h.dns=ot(s-a),h.dnsTime=Jr(n,a,s)),Xr(t)&&(h.redirect=ot(o-i),h.redirectTime=Jr(n,i,o)),t.renderBlockingStatus&&(h.renderBlockingStatus=t.renderBlockingStatus),h}}function Qr(t){if(Kr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Xr(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Kr(t.startTime,e,n,t.fetchStart))return E({},t,{redirectEnd:n,redirectStart:e})}}function Xr(t){return t.fetchStart!==t.startTime}function Jr(t,e,n){return{duration:ot(n-e),start:ot(e-t)}}function ti(t){if(t.startTime<t.responseStart)return{size:t.decodedBodySize,encodeSize:t.encodedBodySize}}function ei(t,e){return e&&!function(t,e){var n=[e.datakitUrl];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),A(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function ni(){return void 0!==window.performance&&"getEntries"in performance}function ri(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&wt(PerformanceObserver.supportedEntryTypes,t)}function ii(t,e){var n;if(n=function(n){ai(t,e,[n])},Dn("interactive",(function(){var t,e={entryType:"resource",initiatorType:$r,traceId:""};if(ri("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=E(r.toJSON(),e)}else{var i=oi();t=E(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),ni()){var r=performance.getEntries();o((function(){ai(t,e,r)}))}if(window.PerformanceObserver){var i=function(n){ai(t,e,n.getEntries())},a=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift"];try{g(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0})}))}catch(t){g(s,(function(t){a.push(t)}))}new PerformanceObserver(i).observe({entryTypes:a}),ni()&&"addEventListener"in performance&&Le(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}ri("navigation")||function(t){function e(){t(E(oi(),{entryType:"navigation"}))}Dn("complete",(function(){o(e)}))}((function(n){ai(t,e,[n])})),ri("first-input")||function(t){var e=dt(),n=!1,r=De(window,[zt.CLICK,zt.MOUSE_DOWN,zt.KEY_DOWN,zt.TOUCH_START,zt.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ct(),startTime:t.timeStamp};t.type===zt.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){De(window,[zt.POINTER_UP,zt.POINTER_CANCEL],(function(e){e.type===zt.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<dt()-e&&t(i)}}}((function(n){return ai(t,e,[n])}))}function oi(){var t={},e=performance.timing;for(var n in e)B(e[n])&&(t[n]=0===e[n]?0:st(e[n]));return t}function ai(t,e,n){var r=I(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=I(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!ei(t,e.name)}(e,t)}));i.length&&t.notify(Ge.PERFORMANCE_ENTRIES_COLLECTED,i)}function si(){var t,e=window;if(e.Zone&&(t=n(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=n(new e.MutationObserver(Q),"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}function ui(t){var e=y(t),n=new Ae((function(){var t,e,n,i,o,a=(t=r,e=Qt(history,"pushState",{after:t}),n=Qt(history,"replaceState",{after:t}),i=Le(window,zt.POP_STATE,t),{stop:function(){e.stop(),n.stop(),i.stop()}}),s=(o=r,Le(window,zt.HASH_CHANGE,o));return function(){a.stop(),s.stop()}}));function r(){if(e.href!==t.href){var r=y(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}function ci(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=Q);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){if(t.type!==jt.VIEW&&n(t))switch(t.type){case jt.ERROR:i.errorCount+=1,r(i);break;case jt.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r(i);break;case jt.LONG_TASK:i.longTaskCount+=1,r(i);break;case jt.RESOURCE:i.resourceCount+=1,r(i)}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var li=100,fi=100;function di(t,e,n,r,i){var s=function(t,e,n){var r=new Ae((function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){A(t,(function(t){return"resource"===t.entryType&&!pi(n,t.name)}))&&u()})),t.subscribe(Ge.REQUEST_STARTED,(function(t){pi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Ge.REQUEST_COMPLETED,(function(t){pi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Qt(window,"open",{before:u}).stop;return function(){s(),g(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,s=o((function(){f({hadActivity:!1})}),li),u=void 0!==n?o((function(){return f({hadActivity:!0,end:ft()})}),n):void 0,c=t.subscribe((function(t){var e=t.isBusy;a(s),a(r);var n=ft();e||(r=o((function(){f({hadActivity:!0,end:n})}),fi))})),l=function(){i=!0,a(s),a(r),a(u),c.unsubscribe()};function f(t){i||(l(),e(t))}return{stop:l}}(s,r,i)}function pi(t,e){return k(t.excludedActivityUrls,e)}var hi=J,vi=100,_i={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function gi(t,e){var n,r=[],i=_i.WaitingForMoreClicks;function s(t){t.stopObservable.subscribe(u),r.push(t),a(n),n=o(c,hi)}function u(){i===_i.WaitingForClicksToStop&&x(r,(function(t){return t.isStopped()}))&&(i=_i.Finalized,e(r))}function c(){a(n),i===_i.WaitingForMoreClicks&&(i=_i.WaitingForClicksToStop,u())}return s(t),{tryAppend:function(t){return i===_i.WaitingForMoreClicks&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(o=e,a=n,Math.sqrt(Math.pow(o.clientX-a.clientX,2)+Math.pow(o.clientY-a.clientY,2))<=vi)&&e.timeStamp-n.timeStamp<=hi))?(c(),!1):(s(t),!0));var e,n,o,a},stop:function(){c()}}}var mi="data-guance-action-name";function yi(t,e){return Ei(t,mi)||e&&Ei(t,e)||Oi(t,e,Si)||Oi(t,e,Ti)||""}function Ei(t,e){var n;if(function(){void 0===wi&&(wi="closest"in HTMLElement.prototype);return wi}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Ri(Ii(n.getAttribute(e).trim()))}var bi,wi,Si=[function(t,e){if(function(){void 0===bi&&(bi="labels"in HTMLInputElement.prototype);return bi}()){if("labels"in t&&t.labels&&t.labels.length>0)return Ai(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&St(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Ai(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 Ai(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=R(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=I(n,(function(t){return Boolean(t)})),(n=R(n,(function(t){return Ai(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 Ai(t.options[0],e)}],Ti=[function(t,e){return Ai(t,e)}],Ci=10;function Oi(t,e,n){for(var r=t,i=0;i<=Ci&&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 Ri(Ii(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Ii(t){return t.replace(/\s+/g," ")}function Ri(t){return t.length>100?Et(t,100)+" [...]":t}function Ai(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("["+mi+"]"),e&&r("["+e+"]"),n}return t.textContent}}var xi,ki=[mi,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ni=[Mi,function(t){if(t.id&&!Ui(t.id))return"#"+N(t.id)}],Li=[Mi,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!Ui(n))return t.tagName+"."+N(n)}},function(t){return t.tagName}];function Di(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=Bi(r,Ni,Fi,e,n);if(i)return i;n=Bi(r,Li,Hi,e,n)||zi(Pi(r),n),r=r.parentElement}return n}function Ui(t){return/[0-9]/.test(t)}function Mi(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ki.length;n++){var r;if(r=i(ki[n]))return r}function i(e){if(t.hasAttribute(e))return t.tagName+"["+e+'="'+N(t.getAttribute(e))+'"]'}}function Pi(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=t.tagName;return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Bi(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=zi(a,i);if(n(t,s))return s}}}function Fi(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function Hi(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===xi)try{document.querySelector(":scope"),xi=!0}catch{xi=!1}return xi}()?zi(":scope",e):e).length}function zi(t,e){return e?t+">"+e:t}function Wi(){var t=window.getSelection();return!t||t.isCollapsed}function Vi(t){return t.target instanceof Element&&!1!==t.isPrimary}var $i=3;function ji(t,e){if(function(t){if(A(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-($i-1);e+=1)if(t[e+$i-1].event.timeStamp-t[e].event.timeStamp<=J)return!0;return!1}(t))return e.addFrustration($t.RAGE_CLICK),A(t,Ki)&&e.addFrustration($t.DEAD_CLICK),e.hasError()&&e.addFrustration($t.ERROR_CLICK),{isRage:!0};var n=A(t,(function(t){return t.getUserActivity().selection}));return g(t,(function(t){t.hasError()&&t.addFrustration($t.ERROR_CLICK),Ki(t)&&!n&&t.addFrustration($t.DEAD_CLICK)})),{isRage:!1}}var Gi='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] *';function Ki(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n=Gi,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var qi=10*J,Zi=5*tt;function Yi(t,e,n){var r,i=new Mt(Zi),o=new Ae;t.subscribe(Ge.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(Ge.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r,i){if(t.trackFrustrations||!r.find()){var o,a,s,u=(o=i,a=t.actionNameAttribute,s=o.target.getBoundingClientRect(),{type:Vt.CLICK,target:{width:Math.round(s.width),height:Math.round(s.height),selector:Di(o.target,a)},position:{x:Math.round(o.clientX-s.left),y:Math.round(o.clientY-s.top)},name:yi(o.target,a)});if(t.trackFrustrations||u.name){var c=!1;return di(e,n,t,(function(t){c=t.hadActivity}),li),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}}}(n,t,e,i,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Xi(e,r,u,a,s);t.trackFrustrations&&o(l);var f=di(e,n,t,(function(e){e.hadActivity&&e.end<l.startClocks.timeStamp?l.discard():(e.hadActivity?l.stop(e.end):c()?l.stop(l.startClocks.timeStamp):l.stop(),t.trackFrustrations||(e.hadActivity?l.validate():l.discard()))}),qi),d=f.stop,p=e.subscribe(Ge.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},l=[Le(window,zt.POINTER_DOWN,(function(t){Vi(t)&&(s=Wi(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),Le(window,zt.SELECTION_CHANGE,(function(){s&&Wi()||(c.selection=!0)}),{capture:!0}),Le(window,zt.POINTER_UP,(function(t){if(Vi(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),Le(window,zt.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){g(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){return i.find(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=gi(t,(function(t){!function(t,e){var n=ji(t,e),r=n.isRage;r?(g(t,(function(t){t.discard()})),e.stop(ft()),e.validate(R(t,(function(t){return t.event})))):(e.discard(),g(t,(function(t){t.validate()})))}(t,e)}))}}}var Qi={ONGOING:0,STOPPED:1,FINALIZED:2};function Xi(t,e,n,r,i){var o,a=W(),s=lt(),u=e.add(a,s.relative),c=ci({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(w(t.action.id)?wt(t.action.id,a):t.action.id===a)}}),l=Qi.ONGOING,f=[],d=new Ae;function p(t){l===Qi.ONGOING&&(o=t,l=Qi.STOPPED,o?u.close(st(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,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 l===Qi.STOPPED||l===Qi.FINALIZED},clone:function(){return Xi(t,e,n,r,i)},validate:function(e){if(p(),l===Qi.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=m({type:Vt.CLICK,duration:o&&pt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Rt(e,[i]),event:i},r);t.notify(Ge.AUTO_ACTION_COMPLETED,v),l=Qi.FINALIZED}},discard:function(){p(),l=Qi.FINALIZED}}}function Ji(t,e){var n=to(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:at(t.duration),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}},r=to(t)?void 0:t.context,i=b({action:{id:W(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:jt.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:to(t)?{event:t.event,events:t.events}:{}}}function to(t){return t.type!==Vt.CUSTOM}function eo(t,e,n,r,i){var o=function(t,e,n,r){var i=a(t.datakitUrl),o=i.batch;function a(i){var o=Rr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new Ir(mr(i,t.batchBytesLimit,e),o,t.messageBytesLimit),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,n,r,i);e.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){t.type===jt.VIEW?o.upsert(t,t.view.id):o.add(t)}))}var no={SYNTHETICS:"synthetics",USER:"user"},ro={"view.url":"string","view.referrer":"string"},io={tags:"object","_gc.trace_id":"string","_gc.span_id":"string"},oo={};function ao(t,n,r,i,o,a,s,u,c){oo[jt.VIEW]=ro,oo[jt.ERROR]=m({"error.message":"string","error.stack":"string","error.resource.url":"string"},io,ro),oo[jt.RESOURCE]=m({"resource.url":"string"},io,ro),oo[jt.ACTION]=m({"action.target.name":"string"},io,ro),oo[jt.LONG_TASK]=m({},io,ro);var l={};l[jt.ERROR]=tn(jt.ERROR,t.eventRateLimiterThreshold,c),l[jt.ACTION]=tn(jt.ACTION,t.eventRateLimiterThreshold,c),n.subscribe(Ge.RAW_RUM_EVENT_COLLECTED,(function(c){var f,d=c.startTime,p=c.rawRumEvent,h=c.savedCommonContext,v=c.customerContext,_=c.domainContext,g=o.findView(d),m=a.findUrl(d),y=r.findTrackedSession(p.type!==jt.VIEW?d:void 0);if(y&&g&&m){var E=s.findActionId(d),w=h||u(),S={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(dt()-(mt()+performance.now()))},terminal:{type:"web"},application:{id:t.applicationId},device:Ht,env:t.env||"",service:g.service||t.service||"browser",version:g.version||t.version||"",source:"browser",date:ft(),user:{id:i.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?no.USER:no.SYNTHETICS,id:y.id},view:{id:g.id,name:g.name,url:m.url,referrer:m.referrer,host:m.host,path:m.path,pathGroup:m.pathGroup,urlQuery:m.urlQuery},action:(f=p,-1!==[jt.ERROR,jt.RESOURCE,jt.LONG_TASK].indexOf(f.type)&&E?{id:E}:void 0)},T=Ot(b(S,g,p)),C=b({},w.context,v);D(C)||(T.tags=C),"has_replay"in T.session||(T.session.has_replay=w.hasReplay),D(w.user)||(T.user=b({is_signin:"T"},w.user)),function(t,n,r,i){if(n){var o=Ye(t,oo[t.type],(function(t){return n(t,r)}));if(!1===o&&t.type!==jt.VIEW)return!1;!1===o&&e.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(T,t.beforeSend,_,l)&&(D(T.tags)&&delete T.tags,n.notify(Ge.RUM_EVENT_COLLECTED,T))}}))}var so=500,uo=2500,co=[];function lo(){document.hasFocus()&&fo();var t,e,n=(t=fo,Le(window,zt.FOCUS,(function(e){e.isTrusted&&t()}))),r=(e=po,Le(window,zt.BLUR,(function(t){t.isTrusted&&e()})));return{isInForegroundAt:ho,selectInForegroundPeriodsFor:vo,stop:function(){co=[],n.stop(),r.stop()}}}function fo(){if(!(co.length>uo)){var t=co[co.length-1],e=ct();void 0!==t&&void 0===t.end||co.push({start:e})}}function po(){if(0!==co.length){var t=co[co.length-1],e=ct();void 0===t.end&&(t.end=e)}}function ho(t){for(var e=co.length-1;e>=0;e--){var n=co[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 vo(t,e){for(var n=_t(t,e),r=[],i=Math.max(0,co.length-so),o=co.length-1;o>=i;o--){var a=co[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=pt(t,s),c=pt(s,void 0===a.end||n<a.end?n:a.end);r.unshift({start:at(u),duration:at(c)})}}return r}var _o=Fn;var go,mo=Fn;function yo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Eo(e,n){var r=new Ae;return function(e){var n=Ne([t.error]).subscribe((function(t){e.notify({startClocks:lt(),message:t.message,stack:t.stack,source:_e.CONSOLE,handling:Zt.HANDLED,handlingStack:t.handlingStack})}))}(r),function(t){ve((function(e,n){t.notify(ge({stackTrace:e,originalError:n,startClocks:lt(),nonErrorPrefix:"Uncaught",source:_e.SOURCE,handling:Zt.UNHANDLED}))}))}(r),function(t){var e=Me([Ue.cspViolation,Ue.intervention]).subscribe((function(e){t.notify({startClocks:lt(),message:e.message,stack:e.stack,type:e.subtype,source:_e.REPORT,handling:Zt.UNHANDLED})}))}(r),r.subscribe((function(t){e.notify(Ge.RAW_ERROR_COLLECTED,{error:t})})),function(t,e){return t.subscribe(Ge.RAW_ERROR_COLLECTED,(function(n){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,m({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:W(),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:jt.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=ge({stackTrace:r instanceof Error?ie(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:"Provided",source:_e.CUSTOM,handling:Zt.HANDLED});t.notify(Ge.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,n)}function bo(t){if(void 0===t&&(t=window),!go)if("hidden"===document.visibilityState)go={timeStamp:0};else{go={timeStamp:1/0};var e=De(t,[zt.PAGE_HIDE,zt.VISIBILITY_CHANGE],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(go.timeStamp=t.timeStamp,e())}),{capture:!0}).stop}return go}var wo=10*tt;const So=5*tt;function To(t,e,n){var r={},i={};function a(t,e){r=E(r,t),e&&(i=E(i,e)),n()}var s=function(t,e){var n=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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,firstByte:r.responseStart>=0&&r.responseStart<=ct()?r.responseStart:void 0})}}));return{stop:n.unsubscribe}}(t,(function(t){e(t.loadEvent),a(t)})),u=s.stop,c=function(t,e){var n=bo(),r=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=St(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<wo}));r&&e(r.startTime)}));return{stop:r.unsubscribe}}(t,(function(t){a({firstContentfulPaint:t})})),l=c.stop,f=function(t,e,n){var r=bo(),i=1/0,o=De(e,[zt.POINTER_DOWN,zt.KEY_DOWN],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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<i&&t.startTime<r.timeStamp&&t.startTime<wo}));e&&n(e.startTime,e.element)})),s=a.unsubscribe;return{stop:function(){o(),s()}}}(t,window,(function(t,e){a({largestContentfulPaint:t},e?{largestContentfulPaint:Di(e)}:void 0)})),d=f.stop,p=function(t,e){var n=bo(),r=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=St(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.timeStamp}));if(r){var i=pt(r.startTime,r.processingStart);e({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}}));return{stop:r.unsubscribe}}(t,(function(t){a({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})),h=p.stop;function v(){u(),l(),d(),h()}return{stop:v,timings:r,timingsElementSelector:i,scheduleStop:function(){o(v,So)}}}function Co(t,e,n,r,i,o){var a,s={},u=function(t,e,n,r,i,o){var a=r===Gt.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=di(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(pt(i.timeStamp,t.end)),c())}));return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:l.stop}}(t,e,n,i,o,(function(t){s.loadingTime=t,r()})),c=u.setLoadEvent,l=u.stop;if(ri("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>=J||r.startTime-t>=5*J?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}(),i=t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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(it(n,4))))}}));return{stop:i.unsubscribe}}(t,(function(t){s.cumulativeLayoutShift=t,r()}));a=f.stop}else a=Q;return{stop:function(){l(),a()},setLoadEvent:c,viewMetrics:s}}var Oo=5*tt;var Io=3e3,Ro=5*tt;function Ao(t,e,n,r,i,a,c){function l(i,a,c){return function(t,e,n,r,i,a,c){void 0===a&&(a=lt());var l,f,d,p,h=W(),v={},_=0,g=y(r),E=!0;c&&(f=c.name,d=c.service,p=c.version);t.notify(Ge.VIEW_CREATED,{id:h,name:f,startClocks:a,service:d,version:p});var b=H(M,Io,{leading:!1}),w=b.throttled,S=b.cancel,T=Co(t,e,n,w,i,a),C=T.setLoadEvent,O=T.stop,I=T.viewMetrics,R=i===Gt.INITIAL_LOAD?To(t,C,w):{scheduleStop:Q,timings:{},timingsElementSelector:{}},A=R.scheduleStop,x=R.timings,k=R.timingsElementSelector,N=function(t,e,n){var r=ci({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){o(r.stop,Oo)},eventCounts:r.eventCounts}}(t,h,w),L=N.scheduleStop,D=N.eventCounts,U=s(M,Ro);function M(){S(),_+=1;var e=void 0===l?ft():l.timeStamp;t.notify(Ge.VIEW_UPDATED,m({customTimings:v,documentVersion:_,id:h,name:f,service:d,version:p,loadingType:i,location:g,startClocks:a,timings:x,timingsElementSelector:k,duration:pt(a.timeStamp,e),isActive:void 0===l,sessionIsActive:E,eventCounts:D},I))}return M(),{name:f,service:d,version:p,scheduleUpdate:w,end:function(e){l||(l=Rt(e&&e.endClocks,lt()),E=Rt(e&&e.sessionIsActive,!0),t.notify(Ge.VIEW_ENDED,{endClocks:l}),u(U),O(),A(),L(),M())},addTiming:function(t,e){if(!l){var n=function(t){return t<nt}(e)?e:pt(a.timeStamp,e);v[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,w()}}}}(e,n,r,t,i,a,c)}var f,d=l(Gt.INITIAL_LOAD,ht(),c);return e.subscribe(Ge.SESSION_RENEWED,(function(){l(Gt.ROUTE_CHANGE,void 0,{name:d.name,service:d.service,version:d.version})})),e.subscribe(Ge.SESSION_EXPIRED,(function(){d.end({sessionIsActive:!1})})),e.subscribe(Ge.PAGE_EXITED,(function(t){t.reason!==Rn.UNLOADING&&t.reason!==Rn.PAGEHIDE||d.end()})),a&&(f=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!xt(n.hash)&&kt(n.hash)!==kt(e.hash))return d.end(),void(d=l(Gt.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=ft()),d.addTiming(t,e)},startView:function(t,e){d.end({endClocks:e}),d=l(Gt.ROUTE_CHANGE,e,t)},stop:function(){f&&f.unsubscribe(),d.end()}}}function xo(t,e,n,r,i,o,a,s){return t.subscribe(Ge.VIEW_UPDATED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,function(t,e,n){var r=n.getReplayStats(t.id),i={_gc:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:jt.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:at(t.timings.firstByte),dom_complete:at(t.timings.domComplete),dom_content_loaded:at(t.timings.domContentLoaded),dom_interactive:at(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:at(t.timings.firstContentfulPaint),first_input_delay:at(t.timings.firstInputDelay),first_input_time:at(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:at(t.timings.largestContentfulPaint),largest_contentful_paint_element_selector:t.timingsElementSelector.largestContentfulPaint,load_event:at(t.timings.loadEvent),loading_time:No(at(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:at(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},session:{has_replay:!!r||void 0,is_active:!!t.sessionIsActive&&void 0}};D(t.customTimings)||(i.view.custom_timings=(o=t.customTimings,a=at,s={},g(o,(function(t,e){s[e]=a(t)})),s));var o,a,s;return i=b(i,{view:ko(t.timings)}),{rawRumEvent:i,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a))})),Ao(n,t,r,e,i,!e.trackViewsManually,s)}function ko(t){var e=Qr(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,l={};if(r!==n){l.fpt=at(r-n);var f=parseInt((r-n)/1e3);l.apdexLevel=f>9?9:f}return i!==n&&(l.tti=at(i-n)),o!==n&&(l.dom_ready=at(o-n)),s!==n&&(l.load=at(s-n)),u!==c&&(l.resource_load_time=at(u-c)),a!==i&&(l.dom=at(a-i)),l}}function No(t){return B(t)&&t<0?void 0:t}function Lo(){this.buffer=new Uint8Array(8),Do().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Do(){return window.crypto||window.msCrypto}function Uo(t){this._spanId=new Lo,this._traceId=new Lo,this._traceSampled=t}function Mo(){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 Po(t,e,n){this._spanId=Mo(),this._traceId=Mo(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=$(e).getParse(),this._traceSampled=n}function Bo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Fo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e}function Ho(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function zo(t,e){this._traceId=new Lo,this._spanId=new Lo,this._traceSampled=t,this.isHexTraceId=e}function Wo(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Vo(t,e,n,r){if(n.findTrackedSession()){var i=St(t.allowedTracingUrls,(function(t){return k([t.match],e.url,!0)}));if(i){var o,a=!B(t.tracingSampleRate)||rt(t.tracingSampleRate);switch(i.traceType){case qt.DDTRACE:o=new Uo(a);break;case qt.SKYWALKING_V3:o=new Po(t,e.url,a);break;case qt.ZIPKIN_MULTI_HEADER:o=new Ho(t,a);break;case qt.JAEGER:o=new Bo(t,a);break;case qt.W3C_TRACEPARENT:o=new zo(a);break;case qt.W3C_TRACEPARENT_64:o=new zo(a,!0);break;case qt.ZIPKIN_SINGLE_HEADER:o=new Fo(t,a)}o&&o.isTracingSupported()&&(e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a,r(o.makeTracingHeaders()))}}}Lo.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Uo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this._traceId.toDecimalString()},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()}}},Po.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(z(this._traceId)),e=String(z(this._spanId)),n=String(z(this._applicationId+"_rum_"+this.env)),r=String(z(this._version)),i=String(z(window.location.href)),o=String(z(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Bo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Fo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Ho.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},zo.prototype={isTracingSupported:function(){return void 0!==Do()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?m(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var $o=1;function jo(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Wo,traceFetch:function(n){return Vo(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=y(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):w(n.init.headers)?g(n.init.headers,(function(t){e.push(t)})):n.init.headers&&g(n.init.headers,(function(t,n){e.push([n,t])}));var r={};g(e.concat(U(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),g(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Vo(t,n,e,(function(t){g(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Sn().subscribe((function(r){var i=r;if(ei(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Go(),t.notify(Ge.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Ge.REQUEST_COMPLETED,{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:Kt.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=En().subscribe((function(r){var i=r;if(ei(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Go(),t.notify(Ge.REQUEST_STARTED,{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(Q),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;g(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(pt(t.startClocks.timeStamp,ft()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(pt(t.startClocks.timeStamp,ft()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Ge.REQUEST_COMPLETED,{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:Kt.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function Go(){var t=$o;return $o+=1,t}function Ko(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n,r=R(e,(function(t){return t.toJSON()}));return r=I(r,Qr),1===(r=I(r,(function(e){return n=e,r=t.startClocks.relative,i=qo({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&qo(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&qo((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function qo(t){return t.startTime+t.duration}function Zo(t,e){t.subscribe(Ge.REQUEST_COMPLETED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,function(t){var e=t.type===Kt.XHR?Wt.XHR:Wt.FETCH,n=Ko(t),r=n?vt(n.startTime):t.startClocks,i=n?Qo(n):void 0,o=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:W()}}}(t),a=$(t.url).getParse(),s=b({date:r.timeStamp,resource:{id:W,type:e,duration:ot(t.duration),method:t.method,status:t.status,statusGroup:Y(t.status),url:t.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:V(a.Path),urlQuery:te(j(t.url))},type:jt.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:s,domainContext:{performanceEntry:n&&Xo(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||Zr(i.name,e.resourceUrlLimit)||t.notify(Ge.RAW_RUM_EVENT_COLLECTED,Yo(i))}var o}))}function Yo(t){var e=Gr(t),n=Qo(t),r=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),i=$(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=vt(t.startTime),s=b({date:a.timeStamp,resource:{id:W(),type:e,url:t.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:V(i.Path),urlQuery:te(j(t.name)),method:"GET",status:o,statusGroup:Y(o)},type:jt.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:s,domainContext:{performanceEntry:Xo(t)}}}function Qo(t){return{resource:b({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?ot(e.responseEnd-e.startTime):ot(e.duration))},ti(t),Yr(t))};var e}function Xo(t){return"function"==typeof PerformanceEntry&&t instanceof PerformanceEntry&&t.toJSON(),t}var Jo,ta={sdkVersion:"3.0.27",sdkName:"df_web_rum_sdk"};function ea(t){if(t.applicationId){if(!t.datakitUrl&&!t.datakitOrigin)return e.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===t.sessionReplaySampleRate||Tt(t.sessionReplaySampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&e.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!w(t.allowedTracingUrls))return void e.error("Allowed Tracing URLs should be an array");var n=[];return g(t.allowedTracingUrls,(function(r){var i;bt(r)?n.push({match:r,traceType:Rt(t.traceType,qt.DDTRACE)}):"object"===K(i=r)&&bt(i.match)&&M(i.traceType)?n.push(r):e.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),n}if(void 0!==t.allowedTracingOrigins){if(!w(t.allowedTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedTracingOrigins,(function(e){var r=na(e,Rt(t.traceType,qt.DDTRACE));r&&n.push(r)})),n}if(void 0!==t.allowedDDTracingOrigins){if(!w(t.allowedDDTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedDDTracingOrigins,(function(e){var r=na(e,Rt(t.traceType,qt.DDTRACE));r&&n.push(r)})),n}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Tt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||w(t.excludedActivityUrls)){var r=mn(t);if(r){var i,o,a=!!Rt(t.trackUserInteractions,t.trackInteractions),s=!!t.trackFrustrations;return m({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Rt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,excludedActivityUrls:Rt(t.excludedActivityUrls,[]),trackUserInteractions:a||s,trackFrustrations:s,trackViewsManually:!!t.trackViewsManually,traceType:Rt(t.traceType,qt.DDTRACE),traceId128Bit:!!t.traceId128Bit,isJsBirdge:!!t.isJsBirdge,defaultPrivacyLevel:(i=gn,o=t.defaultPrivacyLevel,A(O(i),(function(t){return i[t]===o}))?t.defaultPrivacyLevel:gn.MASK_USER_INPUT)},r,ta)}}else e.error("Excluded Activity Urls should be an array");else e.error("Tracing Sample Rate should be a number between 0 and 100")}else e.error("Premium Sample Rate should be a number between 0 and 100")}else e.error("Application ID is not configured, no RUM data will be collected.")}function na(t,n){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(nn(e))}:"function"==typeof t&&(r=function(e){return t(nn(e))}),void 0!==r)return{match:r,traceType:n};e.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function ra(){var t;return Jo||(t=new Ae((function(){var e=H((function(){t.notify(ia())}),200).throttled;return Le(window,zt.RESIZE,e,{capture:!0,passive:!0}).stop})),Jo=t),Jo}function ia(){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 oa={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},aa={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},sa={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},ua={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ca={Play:0,Pause:1},la={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:gn.ALLOW,MASK:gn.MASK,MASK_USER_INPUT:gn.MASK_USER_INPUT},fa="data-gc-privacy",da="allow",pa="mask",ha="mask-user-input",va="hidden",_a="gc-privacy-allow",ga="gc-privacy-mask",ma="gc-privacy-mask-user-input",ya="gc-privacy-hidden",Ea="***",ba="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",wa={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Sa=1e5;function Ta(t,e){var n=Ln(t),r=n?Ta(n,e):e;return Ca(Oa(t),r)}function Ca(t,e){switch(e){case la.HIDDEN:case la.IGNORE:return e}switch(t){case la.ALLOW:case la.MASK:case la.MASK_USER_INPUT:case la.HIDDEN:case la.IGNORE:return t;default:return e}}function Oa(t){if(xn(t)){var e=t.getAttribute(fa);if("BASE"===t.tagName)return la.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return la.MASK;if("hidden"===n.type)return la.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return la.MASK}return e===va||t.classList.contains(ya)?la.HIDDEN:e===pa||t.classList.contains(ga)?la.MASK:e===ha||t.classList.contains(ma)?la.MASK_USER_INPUT:e===da||t.classList.contains(_a)?la.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)?la.IGNORE:void 0}}function Ia(t,e){switch(e){case la.MASK:case la.HIDDEN:case la.IGNORE:return!0;case la.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?Ra(t.parentNode):Ra(t);default:return!1}}function Ra(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!!wa[e.tagName]}var Aa=function(t){return t.replace(/\S/g,"x")};function xa(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n,a="STYLE"===r||void 0;if("SCRIPT"===r)i=Ea;else if(o===la.HIDDEN)i=Ea;else if(Ia(t,o)&&!a)if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?Ea:Aa(i);return i}}var ka=new WeakMap;function Na(t){return ka.has(t)}function La(t){return ka.get(t)}function Da(t,e){var n=t.tagName,r=t.value;if(Ia(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return Ea}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ua=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Ma=/^[A-Za-z]+:|^\/\//,Pa=/^data:.*,/i;function Ba(t,e){return t.replace(Ua,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Ma.test(s)||Pa.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):`url(${u}${function(t,e){try{return rn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Fa(t){if(t.includes(":")){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}function Ha(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?Fa(t.cssText):""})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function za(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Wa=/^[^ \t\n\r\u000c]+/,Va=/^[, \t\n\r\u000c]+/;var $a={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function ja(t,e,n){return Ga(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Ga(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:aa.Document,childNodes:Ka(t,e),adoptedStyleSheets:Ha(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=[];t.childNodes.length&&(n=Ka(t,e));var r=Nn(t);r&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:aa.DocumentFragment,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?Ha(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:aa.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Qa(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Ca(Oa(t),e.parentNodePrivacyLevel);var o;if(i===la.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:aa.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[fa]:va},childNodes:[],isSVG:r}}if(i===la.IGNORE)return;var c=function(t,e,n){if(e===la.HIDDEN)return{};for(var r={},i=Qa(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=qa(t,e,s,n.configuration);null!==u&&(r[s]=ts(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Da(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===la.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=Xa(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var d;(d=Xa(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===la.ALLOW?r.checked=!!v.checked:Ia(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case $a.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case $a.SUBSEQUENT_FULL_SNAPSHOT:g.elementsScrollPositions.has(t)&&({scrollTop:p,scrollLeft:h}=g.elementsScrollPositions.get(t))}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(t.childNodes.length){l=Ka(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:m({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}if(kn(t)){var f=Ga(t.shadowRoot,e);null!==f&&l.push(f)}return{type:aa.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=t.parentElement&&t.parentElement.tagName,r=xa(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!r)return;return{type:aa.Text,textContent:r,isStyle:"STYLE"===n||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:aa.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=La(t)||Za++,i=n;return i.id=r,function(t,e){ka.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ka(t,e){var n=[];return t.childNodes.forEach((function(t){var r=Ga(t,e);r&&n.push(r)})),n}function qa(t,e,n,r){if(e===la.HIDDEN)return null;var i=t.getAttribute(n);if(e===la.MASK&&n!==fa&&!ki.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ea}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return ba;if("A"===o&&"href"===n)return Ea;if(i&&At(n,"data-"))return Ea}return i&&"string"==typeof i&&i.length>Sa&&"data:"===i.slice(0,5)?"data:truncated":i}var Za=1;var Ya=/[^a-z1-6-_]/;function Qa(t){var e=t.toLowerCase().trim();return Ya.test(e)?"div":e}function Xa(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Ba(((n=Array.from(e,Ja).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ja(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=Xa(t.styleSheet)||e}catch{}return Fa(e)}function ts(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?za(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(Va),!(n>=e.length);){var o=r(Wa);if(","===o.slice(-1))o=za(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=za(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Ba(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?za(t,r):r:za(t,r):r;var i}function es(t){return Boolean(t.changedTouches)}function ns(t,e){return{data:m({source:t},e),type:oa.IncrementalSnapshot,timestamp:ft()}}function rs(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}}var is=100;function os(t){var e=Q,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:is})),n.push(...t)},flush:r,stop:function(){e()}}}function as(t,e,n,r){var i=si();if(!i)return{stop:Q,flush:Q};var o=os((function(i){!function(t,e,n,r,i){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){ss(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!Na(e)&&!Nn(e))return!1;e=Ln(e)}return!0}(t.target)&&Ta(t.target,n.defaultPrivacyLevel)!==la.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 l of a)if(!v(l)){var f=Ta(l.parentNode,e.defaultPrivacyLevel);if(f!==la.HIDDEN&&f!==la.IGNORE){var d=Ga(l,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:$a.MUTATION,shadowRootsController:n},configuration:e});if(d){var p=Ln(l);c.push({nextId:_(l),parentId:La(p),node:d})}}}var h=[];return i.forEach((function(t,e){Na(e)&&h.push({parentId:La(t),id:La(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return Na(t)&&u.has(La(t))}function _(t){for(var e=t.nextSibling;e;){if(Na(e))return La(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Na(t)&&c.has(La(t))}var f=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=Ta(Ln(o.target),e.defaultPrivacyLevel);a!==la.HIDDEN&&a!==la.IGNORE&&n.push({id:La(o.target),value:Rt(xa(o.target,!1,a))})}}return n}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n),d=function(t,e){var n=[],r=new Map,i=t.filter((function(t){var e=r.get(t.target);return(!e||!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=Ta(a.target,e.defaultPrivacyLevel),c=qa(a.target,u,a.attributeName,e);if("value"===a.attributeName){var l=Da(a.target,u);if(void 0===l)continue;s=l}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:La(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(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 ss(t,e){var n;kn(t)&&e(t.shadowRoot),(n=t,kn(n)?n.shadowRoot.childNodes:n.childNodes).forEach((function(t){ss(t,e)}))}var us=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},cs=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 ls(){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 fs(){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 ds=50,ps=100,hs=200,vs=new WeakMap;let _s=1;function gs(t){return vs.has(t)||vs.set(t,_s++),vs.get(t)}function ms(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,as(e,n,r,document)),f=function(t){var e=H((function(e){var n=ws(e);if(Na(n)){var r=Es(e);if(!r)return;var i={id:La(n),timeOffset:0,x:r.x,y:r.y};t([i],es(e)?sa.TouchMove:sa.MouseMove)}}),ds,{trailing:!1});return De(document,[zt.MOUSE_MOVE,zt.TOUCH_MOVE],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=ws(n);if(Ta(r,e)!==la.HIDDEN&&Na(r)){var i,o=La(r),a=ys[n.type];if(a!==ua.Blur&&a!==ua.Focus){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=m({id:gs(n)},ns(sa.MouseInteraction,i));t(u)}};return De(document,Object.keys(ys),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=H((function(r){var i=ws(r);if(i&&Ta(i,e)!==la.HIDDEN&&Na(i)){var o=La(i),a=i===document?{scrollTop:fs(),scrollLeft:ls()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),ps);return Le(document,zt.SCROLL,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return ra().subscribe(t).unsubscribe}(t.viewportResizeCb),v=bs(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=ws(t);e&&Ta(e,o)!==la.HIDDEN&&Na(e)&&i({id:La(e),type:t.type===zt.PLAY?ca.Play:ca.Pause})},De(document,[zt.PLAY,zt.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Na(t.ownerNode)&&e(La(t.ownerNode))}var n=[Qt(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),Qt(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(Qt(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=rs(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),Qt(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=rs(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),y=(s=t.focusCb,De(window,[zt.FOCUS,zt.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),E=function(t){if(!window.visualViewport)return Q;var e=H((function(){t(cs())}),hs,{trailing:!1}),n=De(window.visualViewport,[zt.RESIZE,zt.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),b=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(Ge.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===jt.ACTION&&t.rawRumEvent.action.type===Vt.CLICK&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&c({timestamp:t.rawRumEvent.date,type:oa.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return gs(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),y(),E(),b()}}}var ys={[zt.POINTER_UP]:ua.MouseUp,[zt.MOUSE_DOWN]:ua.MouseDown,[zt.CLICK]:ua.Click,[zt.CONTEXT_MENU]:ua.ContextMenu,[zt.DBL_CLICK]:ua.DblClick,[zt.FOCUS]:ua.Focus,[zt.BLUR]:ua.Blur,[zt.TOUCH_START]:ua.TouchStart,[zt.TOUCH_END]:ua.TouchEnd};function Es(t){var e=es(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=us(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function bs(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=De(n,o?[zt.CHANGE]:[zt.INPUT,zt.CHANGE],(function(t){var e=ws(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=Q;else{const t=[Xt(HTMLInputElement.prototype,"value",u),Xt(HTMLInputElement.prototype,"checked",u),Xt(HTMLSelectElement.prototype,"value",u),Xt(HTMLTextAreaElement.prototype,"value",u),Xt(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=Ta(t,e);if(n===la.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(Ia(t,n))return;i={isChecked:t.checked}}else{var o=Da(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll(`input[type="radio"][name="${u}"]`),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(Na(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(m({id:La(e)},n)))}}}function ws(t){return!0===t.composed&&kn(t.target)?t.composedPath()[0]:t.target}var Ss=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=as(n,t,o,e),s=a.flush,u=a.stop,c=bs(r,t.defaultPrivacyLevel,e);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};function Ts(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(ns(sa.Mutation,t))},o=function(t){e(ns(sa.Input,t))},a=Ss(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=ft()),void 0===i&&(i={status:$a.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=ia(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:oa.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:oa.Focus,timestamp:n}),e({data:{node:ja(document,t.configuration,i),initialOffset:{left:ls(),top:fs()}},type:oa.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:cs(),type:oa.VisualViewport,timestamp:n})};s();var u=ms({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(ns(sa.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(ns(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(ns(sa.Scroll,t))},styleSheetCb:function(t){e(ns(sa.StyleSheetRule,t))},viewportResizeCb:function(t){e(ns(sa.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:oa.Focus,timestamp:ft()})},visualViewportResizeCb:function(t){e({data:t,type:oa.VisualViewport,timestamp:ft()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:$a.SUBSEQUENT_FULL_SNAPSHOT,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=""),g(U(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,Rs=10;function As(t){return Ns(t).segments_count}function xs(t){Ns(t).records_count+=1}function ks(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>Rs&&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 Ls=0;function Ds(t,e,n,r,i,o){this.worker=t,this.pendingWriteCount=0,this.id=Ls++;var a=e.view.id;this.metadata=m({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===oa.FullSnapshot,index_in_view:As(a),source:"browser"},e),function(t){Ns(t).segments_count+=1}(a),xs(a);var s=0,u=0,c=[],l=this,f=Le(t,"message",(function(t){var e=t.data;"wrote"===e.type&&(e.id===l.id?(l.pendingWriteCount-=1,function(t,e){Ns(t).segments_total_raw_size+=e}(a,e.additionalBytesCount),s+=e.additionalBytesCount,u+=e.result.length,c.push(e.result),l.flushReason&&0===l.pendingWriteCount?(c.push(e.trailer),o(function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=we(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(c),s),d()):i(u)):e.id>l.id&&d())})),d=f.stop;this.write('{"records":['+JSON.stringify(r))}Ds.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,xs(this.metadata.view.id),this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===oa.FullSnapshot),this.write(","+JSON.stringify(t))},Ds.prototype.flush=function(t){this.write("],"+JSON.stringify(this.metadata).slice(1)+"\n"),this.worker.postMessage({action:"reset",streamId:1}),this.flushReason=t},Ds.prototype.write=function(t){this.pendingWriteCount+=1,this.worker.postMessage({data:t,id:this.id,streamId:1,action:"write"})};var Us=30*J,Ms=6e4;function Ps(t,e,n,r,i,s){return function(t,e,n,r){var i={status:Bs.WaitingForInitialRecord,nextSegmentCreationReason:"init"},s=t.subscribe(Ge.VIEW_CREATED,(function(){f("view_change")})),u=s.unsubscribe,c=t.subscribe(Ge.PAGE_EXITED,(function(t){f(t.reason)})),l=c.unsubscribe;function f(t){i.status===Bs.SegmentPending&&(i.segment.flush(t),a(i.expirationTimeoutId)),i="stop"!==t?{status:Bs.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Bs.Stopped}}function d(t,a){var s=e();if(s){var u=new Ds(r,s,t,a,(function(t){!u.flushReason&&t>Ms&&f("segment_bytes_limit")}),(function(t,e){var r=Cs(t,u.metadata,e);An(u.flushReason)?n.sendOnExit(r):n.send(r)}));i={status:Bs.SegmentPending,segment:u,expirationTimeoutId:o((function(){f("segment_duration_limit")}),Us)}}}return{addRecord:function(t){switch(i.status){case Bs.WaitingForInitialRecord:d(i.nextSegmentCreationReason,t);break;case Bs.SegmentPending:i.segment.addRecord(t)}},stop:function(){f("stop"),u(),l()}}}(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,s)}var Bs={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};const Fs='!function(){"use strict";function t(t,a){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,_=!0,h=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=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]),l=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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(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)}(t)}},H=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},Y=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},P={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"},j={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},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=$(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=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=2,t.strstart++,n&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Tt=[new Ft(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ut(t),0===t.lookahead&&e===J)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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 Ot=function(t){if(!t||!t.state)return mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+pt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=function(){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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};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 Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Gt:Kt,"[object ArrayBuffer]"===Yt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.0.27"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();';var Hs;function zs(){return Hs||(Hs=URL.createObjectURL(new Blob([Fs]))),new Worker(Hs)}var Ws={Nil:0,Loading:1,Error:2,Initialized:3},Vs={status:Ws.Nil};function $s(t,e){switch(void 0===e&&(e=zs),Vs.status){case Ws.Nil:Vs={status:Ws.Loading,callbacks:[t]},function(t){void 0===t&&(t=zs);try{var e=t();return Le(e,"error",js),Le(e,"message",(function(t){var n=t.data;"errored"===n.type?js(n.error,n.streamId):"initialized"===n.type&&function(t,e){Vs.status===Ws.Loading&&(g(Vs.callbacks,(function(e){e(t)})),Vs={status:Ws.Initialized,worker:t,version:e})}(e,n.version)})),e.postMessage({action:"init"}),e}catch(t){js(t)}}(e);break;case Ws.Loading:Vs.callbacks.push(t);break;case Ws.Error:t();break;case Ws.Initialized:t(Vs.worker)}}function js(t,n){var r;Vs.status===Ws.Loading&&(e.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),(t instanceof Event||t instanceof Error&&(wt(r=t.message,"Content Security Policy")||wt(r,"requires 'TrustedScriptURL'")))&&e.error("Please make sure CSP is correctly configured !!!"),g(Vs.callbacks,(function(t){t()})),Vs={status:Ws.Error})}var Gs=0,Ks=1,qs=2,Zs=3;var Ys,Qs,Xs,Js,tu=function(t,e){if(void 0===e&&(e=$s),xr()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:Q,stop:Q,getReplayStats:function(){},onRumStart:Q,isRecording:function(){return!1}};var n={status:Gs},r=function(){n={status:Ks}},i=function(){n={status:Gs}};return{start:function(){r()},stop:function(){i()},getReplayStats:ks,onRumStart:function(o,a,s,u){o.subscribe(Ge.SESSION_EXPIRED,(function(){n.status!==qs&&n.status!==Zs||(i(),n={status:Ks})})),o.subscribe(Ge.SESSION_RENEWED,(function(){n.status===Ks&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?n.status!==qs&&n.status!==Zs&&(n={status:qs},Dn("interactive",(function(){n.status===qs&&e((function(e){if(n.status===qs)if(e){var r=t(o,a,s,u,e);n={status:Zs,stopRecording:r.stop}}else n={status:Gs}}))}))):n={status:Ks}},i=function(){n.status!==Gs&&(n.status===Zs&&n.stopRecording(),n={status:Gs})},n.status===Ks&&r()},isRecording:function(){return n.status===Zs}}}((function(t,e,n,r,i,o){var a=o||mr(e.sessionReplayEndPoint,Ms,(function(e){t.notify(Ge.RAW_ERROR_COLLECTED,{error:e})})),s=Ps(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Ts({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(Ge.VIEW_ENDED,(function(){p(),u({timestamp:ft(),type:oa.ViewEnd})})),v=t.subscribe(Ge.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),eu=function(t,n){var r,i=!1,o=Ur(Lr),a=Ur(Nr),s=function(){},u=function(){},c=function(){},l=new Lt,f=function(t,e){void 0===e&&(e=ft()),l.add((function(){return f(t,e)}))},d=function(t,e){void 0===e&&(e=lt()),l.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=yo(o,a,n)),l.add((function(){return p(t,e)}))},h=function(t,e){void 0===e&&(e=yo(o,a,n)),l.add((function(){return h(t,e)}))};function v(e,r){var i=t(e,n,o,a,r);d=i.startView,p=i.addAction,h=i.addError,f=i.addTiming,s=i.getInternalContext,c=i.stopSession,l.drain(),n.onRumStart(i.lifeCycle,e,i.session,i.viewContexts)}return r={init:function(t){if(u=function(){return Z(t)},xr()&&(t=function(t){return m({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(W()),n="test";return cn(e,n,J,t),ln(e)===n}catch(t){return!1}}(yn(t))?"file:"!==window.location.protocol||(e.error("Execution is not allowed in the current context."),!1):(e.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!i||(t.silentMultipleInit||e.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var n=ea(t);if(n){if(n.trackViewsManually){var r=l;l=new Lt,d=function(t){v(n,t)},r.drain()}else v(n);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 u()},getInternalContext:function(t){return s(t)},addDebugSession:function(t){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(t,e){p({name:t,context:Z(e),startClocks:lt(),type:Vt.CUSTOM})},addError:function(t,e){var n=me();h({error:t,handlingStack:n,context:Z(e),startClocks:lt()})},addTiming:function(t,e){f(t,e)},setUser:function(t){(function(t){var n="object"===K(t);return n||e.error("Unsupported user:",t),n})(t)&&a.setContext(Mr(t))},getUser:a.getContext,setUserProperty:function(t,e){var n={};n[t]=e;var r=Mr(n)[t];a.setContextProperty(t,r)},removeUserProperty:a.removeContextProperty,removeUser:a.clearContext,clearUser:a.clearContext,startView:function(t){d("object"==typeof t?t:{name:t})},stopSession:function(){c()},startSessionReplayRecording:n.start,stopSessionReplayRecording:n.stop},E({},r,{onReady:function(t){t()}})}((function(t,e,n,r,i){var o,a=new Ke,s=function(t){a.notify(Ge.RAW_ERROR_COLLECTED,{error:t})},u=o=new Ae((function(){var t=De(document,[zt.VISIBILITY_CHANGE,zt.FREEZE,zt.PAGE_HIDE],(function(t){t.type===zt.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?o.notify({reason:Rn.HIDDEN}):t.type===zt.FREEZE&&o.notify({reason:Rn.FROZEN})}),{capture:!0}),e=Le(window,zt.BEFORE_UNLOAD,(function(){o.notify({reason:Rn.UNLOADING})}));return function(){t.stop(),e.stop()}}));u.subscribe((function(t){a.notify(Ge.PAGE_EXITED,t)}));var c=xr()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Br.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:Q,expireObservable:new Ae}}():Hr(t,a);if(xr())!function(t){var e=Ar();t.subscribe(Ge.RUM_EVENT_COLLECTED,(function(t){var n=Cr(t).rowData;e.send("rum",n)}))}(a);else eo(t,a,s,u,c.expireObservable);var l=function(t){var e=ln(Wr);return e||(e=W(),cn(Wr,e,Vr,t.cookieOptions)),{getId:function(){return e}}}(t),f=function(){var t=si(),e=new Ae((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}(),d=ui(location),p=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Mt(mo);return t.subscribe(Ge.VIEW_CREATED,(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(Ge.VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Ge.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new Mt(_o);t.subscribe(Ge.VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(Ge.VIEW_CREATED,(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=ct();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&&!xt(n)&&(e="/"+kt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:V(e),urlQuery:te(j(t.location.href))}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=lo(),d=function(t,e,n,r){t.subscribe(Ge.AUTO_ACTION_COMPLETED,(function(e){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,Ji(e,r))}));var i={findActionId:Q};return n.trackUserInteractions&&(i=Yi(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Ge.RAW_RUM_EVENT_COLLECTED,E({savedCommonContext:n},Ji(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction;return ao(e,t,r,i,c,l,p,s,u),{viewContexts:c,urlContexts:l,foregroundContexts:f,addAction:h,actionContexts:p,stop:function(){c.stop(),f.stop()}}}(a,t,location,c,l,d,f,(function(){return yo(n,r,e)}),s),h=p.viewContexts,v=p.urlContexts,_=p.actionContexts,g=p.foregroundContexts,m=p.addAction;!function(t,e){t.subscribe(Ge.PERFORMANCE_ENTRIES_COLLECTED,(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=vt(i.startTime),a={date:o.timeStamp,long_task:{id:W(),duration:at(i.duration)},type:jt.LONG_TASK};t.notify(Ge.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(a,c),Zo(a,t);var y=xo(a,t,location,f,d,g,e,i),b=y.addTiming,w=y.startView,S=Eo(a,g).addError;jo(a,t,c),ii(a,t);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}}}}}}(t.applicationId,c,h,_,v);return{addAction:m,addError:S,addTiming:b,configuration:t,lifeCycle:a,viewContexts:h,session:c,startView:w,stopSession:function(){c.expire()},getInternalContext:T.get}}),tu);Ys=i(),Xs=eu,Js=Ys[Qs="DATAFLUX_RUM"],Ys[Qs]=Xs,Js&&Js.q&&g(Js.q,(function(t){t()}))}();
|
package/cjs/boot/buildEnv.js
CHANGED
|
@@ -157,7 +157,7 @@ function serializeStyleSheets(cssStyleSheets) {
|
|
|
157
157
|
return cssStyleSheets.map(function (cssStyleSheet) {
|
|
158
158
|
var rules = cssStyleSheet.cssRules || cssStyleSheet.rules;
|
|
159
159
|
var cssRules = Array.from(rules, function (cssRule) {
|
|
160
|
-
return cssRule.cssText ? validateStringifiedCssRule(
|
|
160
|
+
return cssRule.cssText ? validateStringifiedCssRule(cssRule.cssText) : '';
|
|
161
161
|
});
|
|
162
162
|
var styleSheet = {
|
|
163
163
|
cssRules: cssRules,
|
package/esm/boot/buildEnv.js
CHANGED
|
@@ -124,7 +124,7 @@ export function serializeStyleSheets(cssStyleSheets) {
|
|
|
124
124
|
return cssStyleSheets.map(function (cssStyleSheet) {
|
|
125
125
|
var rules = cssStyleSheet.cssRules || cssStyleSheet.rules;
|
|
126
126
|
var cssRules = Array.from(rules, function (cssRule) {
|
|
127
|
-
return cssRule.cssText ? validateStringifiedCssRule(
|
|
127
|
+
return cssRule.cssText ? validateStringifiedCssRule(cssRule.cssText) : '';
|
|
128
128
|
});
|
|
129
129
|
var styleSheet = {
|
|
130
130
|
cssRules: cssRules,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/browser-rum",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.27",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"homepage": "https://github.com/CloudCare/dataflux-rum-sdk-javascript/blob/master/packages/rum/README.md",
|
|
32
32
|
"description": "DataFlux RUM Web 端数据指标监控",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "543b182ff3ea18094554c20440313bf4fd2c7e7f"
|
|
34
34
|
}
|
|
@@ -141,7 +141,7 @@ export function serializeStyleSheets(cssStyleSheets) {
|
|
|
141
141
|
return cssStyleSheets.map(function (cssStyleSheet) {
|
|
142
142
|
var rules = cssStyleSheet.cssRules || cssStyleSheet.rules
|
|
143
143
|
var cssRules = Array.from(rules, function (cssRule) {
|
|
144
|
-
return cssRule.cssText ? validateStringifiedCssRule(
|
|
144
|
+
return cssRule.cssText ? validateStringifiedCssRule(cssRule.cssText) : ''
|
|
145
145
|
})
|
|
146
146
|
|
|
147
147
|
var styleSheet = {
|