@cloudcare/browser-rum 3.2.25 → 3.2.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.
Files changed (31) hide show
  1. package/bundle/dataflux-rum.js +1 -1
  2. package/cjs/boot/buildEnv.js +1 -1
  3. package/cjs/domain/deflate/deflateWorker.js +1 -1
  4. package/cjs/domain/rumEventsCollection/view/trackFirstHidden.js +4 -2
  5. package/cjs/domain/rumEventsCollection/view/trackFirstHidden.js.map +1 -1
  6. package/cjs/domain/rumEventsCollection/view/trackInitialViewTimings.js +2 -2
  7. package/cjs/domain/rumEventsCollection/view/trackInitialViewTimings.js.map +1 -1
  8. package/cjs/domain/rumEventsCollection/view/trackLoadingTime.js +2 -2
  9. package/cjs/domain/rumEventsCollection/view/trackLoadingTime.js.map +1 -1
  10. package/cjs/domain/rumEventsCollection/view/trackViews.js +1 -1
  11. package/cjs/domain/rumEventsCollection/view/trackViews.js.map +1 -1
  12. package/cjs/domain/tracing/zipkinMultiTracer.js +2 -2
  13. package/cjs/domain/tracing/zipkinMultiTracer.js.map +1 -1
  14. package/esm/boot/buildEnv.js +1 -1
  15. package/esm/domain/deflate/deflateWorker.js +1 -1
  16. package/esm/domain/rumEventsCollection/view/trackFirstHidden.js +4 -2
  17. package/esm/domain/rumEventsCollection/view/trackFirstHidden.js.map +1 -1
  18. package/esm/domain/rumEventsCollection/view/trackInitialViewTimings.js +2 -2
  19. package/esm/domain/rumEventsCollection/view/trackInitialViewTimings.js.map +1 -1
  20. package/esm/domain/rumEventsCollection/view/trackLoadingTime.js +2 -2
  21. package/esm/domain/rumEventsCollection/view/trackLoadingTime.js.map +1 -1
  22. package/esm/domain/rumEventsCollection/view/trackViews.js +1 -1
  23. package/esm/domain/rumEventsCollection/view/trackViews.js.map +1 -1
  24. package/esm/domain/tracing/zipkinMultiTracer.js +2 -2
  25. package/esm/domain/tracing/zipkinMultiTracer.js.map +1 -1
  26. package/package.json +4 -4
  27. package/src/domain/rumEventsCollection/view/trackFirstHidden.js +3 -2
  28. package/src/domain/rumEventsCollection/view/trackInitialViewTimings.js +2 -1
  29. package/src/domain/rumEventsCollection/view/trackLoadingTime.js +2 -2
  30. package/src/domain/rumEventsCollection/view/trackViews.js +6 -1
  31. package/src/domain/tracing/zipkinMultiTracer.js +2 -2
@@ -1 +1 @@
1
- !function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){if(l(t),r)try{r(t)}catch(t){l(t)}}}function l(){var t=[].slice.call(arguments);a&&o.error.apply(null,["[MONITOR]"].concat(t))}function f(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function d(t){return d="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},d(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":d(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"!==d(t)&&(t="object"===("undefined"==typeof self?"undefined":d(self))?self:"object"===("undefined"==typeof window?"undefined":d(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function m(t){v(p(),"clearTimeout")(t)}function g(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function _(t){return _="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},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,E=w.hasOwnProperty,k=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(E.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&E.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},B=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",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}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(E.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=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 X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=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"!==_(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 Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(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 et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(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"!==_(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]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-Et()}function vt(t){return Math.round(Et()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:Et()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>Et()?Math.round(e+t):vt(t)}function Et(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&E.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Gt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Qt(t){return G(t)&&t<0?void 0:t}function Kt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0,Jt=null,Yt=new Set;function Zt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function i(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return Jt&&(Jt=g((function(){return i()}),6e4)),Yt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Wt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Yt.delete(i),0===Yt.size&&Jt&&(y(Jt),Jt=null)}}}var te={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"]}},ee={getMatchMap:u((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:u((function(t){var e=te.navigator.userAgent||"",n=ee.getMatchMap(e);for(var r in te.infoMap)for(var i=0;i<te.infoMap[r].length;i++){var o=te.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return ee.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=te.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:u((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:u((function(){var t=this;return t.device="PC",ee.matchInfoMap(t),t.device})),getNetwork:u((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:u((function(){var t;return this.language=((t=(te.navigator.browserLanguage||te.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})),getBrowserInfo:u((function(){var t=this;ee.matchInfoMap(t);var e=te.navigator.userAgent||"",n=function(t,e){var n=te.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=ee.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")||te.navigator&&te.navigator.connection&&void 0===te.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:u((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},ne={};"undefined"!=typeof window&&(ne={os:ee.getOS(),osVersion:ee.getOSVersion().version,osVersionMajor:ee.getOSVersion().osMajor,browser:ee.getBrowserInfo().browser,browserVersion:ee.getBrowserInfo().browserVersion,browserVersionMajor:ee.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:ee.getNetwork(),device:ee.getDeviceType(),timeZone:ee.getTimeZone()});var re=ne,ie="beforeunload",oe="click",ae="dblclick",se="keydown",ue="load",ce="popstate",le="scroll",fe="touchstart",de="touchend",pe="touchmove",ve="visibilitychange",he="pageshow",me="freeze",ge="resume",ye="DOMContentLoaded",_e="pointerdown",be="pointerup",we="pointercancel",Se="hashchange",xe="pagehide",Ee="mousedown",ke="mousemove",Te="focus",Ce="blur",Oe="contextmenu",Ie="resize",Ae="change",Re="input",Pe="play",Ne="pause",Me="securitypolicyviolation",Le="selectionchange",De="storage",Ue="document",Be="xhr",ze="beacon",Ve="fetch",je="css",$e="js",He="image",Fe="font",We="media",qe="other",Ge="click",Qe="custom",Ke="rage_click",Xe="error_click",Je="dead_click",Ye={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ze="long-task",tn="long-animation-frame",en="initial_load",nn="route_change",rn={FETCH:Ve,XHR:Be},on="ddtrace",an="zipkin",sn="zipkin_single_header",un="w3c_traceparent",cn="w3c_traceparent_64bit",ln="skywalking_v3",fn="jaeger",dn="handled",pn="unhandled",vn="Uncaught",hn="Provided";function mn(t){return mn="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},mn(t)}function gn(t,e,n){if("object"!==mn(t)||null===t)return JSON.stringify(t);var r=yn(Object.prototype),i=yn(Array.prototype),o=yn(Object.getPrototypeOf(t)),a=yn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function yn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function _n(t){return _n="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},_n(t)}var bn="?";function wn(t){var e=[],n=An(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=En.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=kn.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]||bn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:bn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||bn,line:+e[3],url:e[2]}}(t)||function(t){var e=On.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=In.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]||bn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=bn),e.push(n))})),{message:An(t,"message"),name:An(t,"name"),stack:e}}var Sn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",xn="(?::(\\d+))",En=new RegExp("^\\s*at (.*?) ?\\("+Sn+xn+"?"+xn+"?\\)?\\s*$","i"),kn=new RegExp("\\((\\S*)"+xn+xn+"\\)");var Tn=new RegExp("^\\s*at ?"+Sn+xn+"?"+xn+"??\\s*$","i");var Cn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var On=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,In=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function An(t,e){if("object"===_n(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Rn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Pn(t){var e=function(t){return Qn(window,"onerror",(function(e){var n,r=e.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=wn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Rn.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(i);n={name:l.name,message:l.message,stack:[c]}}t(n,$t(u,i))}))}(t),n=function(t){return Qn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=wn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Nn=1024,Mn=/[^\u0000-\u007F]/;function Ln(t){return Mn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Dn(t){return Dn="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},Dn(t)}function Un(t,e){void 0===e&&(e=225280);var n=yn(Object.prototype),r=yn(Array.prototype),i=[],o=new WeakMap,a=Bn(t,"$",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=Bn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Vn(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=Bn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){Vn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Vn(e,"discarded",t)}function Bn(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"!==Dn(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Dn(t))return"[Symbol] "+t.description||0;return t}(o);var a=zn(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 zn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?zn(n.currentTarget):null,target:n.target?zn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function Vn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var jn="No stack, consider using an instance of Error",$n={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Hn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+gn(Un(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Wn(e):jn,f=u?Gn(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function Fn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=wn(e);n.stack=n.stack.slice(2),t=Wn(n)})),t}function Wn(t){var e=qn(t);return O(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 qn(t){return(t.name||"Error")+": "+t.message}function Gn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=wn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Wn(i)}),n=n.cause}return r.length?r:void 0}function Qn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?Fn():void 0}]);var r=o.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Kn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var Xn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Xn.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var Jn=Xn;function Yn(){var t=[].slice.call(arguments);return new Jn((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var Zn={};function tr(e){var n=B(e,(function(e){return Zn[e]||(Zn[e]=function(e){return new Jn((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Fn();c((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return qn(wn(t));return gn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Wn(wn(a)):void 0,causes:a?Gn(a,"console"):void 0,startClocks:mt(),message:o,source:$n.CONSOLE,handling:dn,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),Zn[e]}));return Yn.apply(this,n)}function er(t,e,n,r){return nr(t,[e],n,r)}function nr(t,e,n,r){var i=u(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,a=v(o,"addEventListener");O(e,(function(e){a.call(t,e,i,r)}));var s=function(){var n=v(o,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var rr="intervention",ir="csp_violation";function or(t,e){var n=[];It(e,ir)&&n.push(new Jn((function(t){return er(document,Me,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return ar({type:t.effectiveDirective,message:ir+": "+e,originalError:t,csp:{disposition:t.disposition},stack:sr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==ir}));return r.length&&n.push(function(t){return new Jn((function(e){if(window.ReportingObserver){var n=u((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return ar({type:e.id,message:n+": "+e.message,originalError:t,stack:sr(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()}}}))}(r)),Yn.apply(this,n)}function ar(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function sr(t,e,n,r,i){return n&&Wn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var ur=function(){this._events=[],this.pendingEvents=[]};ur.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(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 ur;var cr,lr="AUTO_ACTION_COMPLETED",fr="BEFORE_VIEW_CREATED",dr="VIEW_CREATED",pr="VIEW_UPDATED",vr="BEFORE_VIEW_UPDATED",hr="VIEW_ENDED",mr="AFTER_VIEW_ENDED",gr="SESSION_RENEWED",yr="SESSION_EXPIRED",_r="PAGE_EXITED",br="REQUEST_STARTED",wr="REQUEST_COMPLETED",Sr="RAW_RUM_EVENT_COLLECTED",xr="RUM_EVENT_COLLECTED",Er="RAW_ERROR_COLLECTED";function kr(){this.callbacks={}}function Tr(t){return Rr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ir(t)||Or()}function Cr(t,e){return Rr(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Ir(t,e)||Or()}function Or(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ir(t,e){if(t){if("string"==typeof t)return Ar(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ar(t,e):void 0}}function Ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Rr(t){if(Array.isArray(t))return t}function Pr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Cr(e,2),i=n[0],o=n[1];return Nr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Nr(t,e,n,r){var i=Tr(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Mr(t)&&Mr(e))return a.length>0?Nr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Un(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Nr(t,e[n],a,r)}))}function Mr(t){return"object"===et(t)}function Lr(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(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:$n.AGENT,startClocks:mt()})}finally{i=!1}}return!0}}}function Dr(t){return Br(t,zt(window.location)).href}function Ur(t){return zt(Br(t))}function Br(t,e){if(function(){if(void 0!==cr)return cr;try{var t=new URL("http://test/path");return cr="http://test/path"===t.href}catch(t){cr=!1}return cr}())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}kr.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(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]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var zr=navigator.userAgent.toLowerCase(),Vr=function(){return/iphone os/.test(zr)};function jr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,$r-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var $r=50;var Hr,Fr=/^\s+|\s+$/g,Wr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function qr(t,e){var n=Wr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Gr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Gr(r)+"v1/write"+n:Gr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Gr(t){return t.replace(Fr,"")}function Qr(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function Kr(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":"",c=r&&r.partitioned?";partitioned":"";document.cookie=Qr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Xr(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Qr(t,e))}function Jr(t,e){Kr(t,"",0,e)}var Yr=144e5,Zr=9e5,ti="_gc_s";function ei(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ni(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ni(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ri=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ii="&";function oi(t){return H(t)}function ai(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<Yr)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function si(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function ui(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ii)||ri.test(t))}(t)&&t.split(ii).forEach((function(t){var n=ri.exec(t);if(null!==n){var r=ei(n,3),i=r[1],o=r[2];e[i]=o}})),e}function ci(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Hr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Xr(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Kr(t,"test",st,{domain:n});Jr(t,{domain:n}),Hr=n}return Hr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Kr(e,n,ut,t);var r=Xr(e,t)===n;return Jr(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function li(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Kr(ti,si(t),Zr,e)}),retrieveSession:fi(t),expireSession:function(){return function(t){Kr(ti,si({isExpired:"1"}),Yr,t)}(t)}}}function fi(t){return function(){return ui(Xr(ti,t))}}function di(t){localStorage.setItem(ti,si(t))}function pi(){return ui(localStorage.getItem(ti))}function vi(){di({isExpired:"1"})}var hi,mi=[];function gi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(hi||(hi=t),t===hi)if(r&&n>=100)_i(e);else{var u,c=s();if(r){if(c.lock)return void yi(t,e,n);if(u=X(),a(c.session),(c=s()).lock!==u)return void yi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)yi(t,e,n);else{if(l&&(ai(l)?o():(l.expire=String(yt()+Zr),r?a(l):i(l))),r&&(!l||!ai(l))){if((c=s()).lock!==u)return void yi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),_i(e)}}else mi.push(t)}function yi(t,e,n){h((function(){gi(t,e,n+1)}),10)}function _i(t){hi=void 0;var e=mi.shift();e&&gi(e,t)}var bi=st;function wi(t){var e=ci(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function Si(t,e,n){var r,i=new Jn,o=new Jn,a=new Jn,s="Cookie"===t.type?li(t.cookieOptions):{isLockEnabled:!1,persistSession:di,retrieveSession:pi,expireSession:vi},u=s.expireSession,c=g((function(){gi({process:function(t){return ai(t)?{isExpired:"1"}:void 0},after:p},s)}),bi);v();var l=Q((function(){gi({process:function(t){if(!oi(t)){var r=p(t);return function(t){if(oi(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){oi(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),bi),f=l.throttled,d=l.cancel;function p(t){return ai(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){gi({process:function(t){if(oi(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){gi({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){gi({process:function(e){return I({},e,t)},after:p},s)}}}var xi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Ei(t){if(void 0===t.sampleRate||Pt(t.sampleRate))if(void 0===t.sessionSampleRate||Pt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Pt(t.telemetrySampleRate)){var e=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:wi(t),sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:qr(t,"rum"),logsEndpoint:qr(t,"log"),sessionReplayEndPoint:qr(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}o.error("Telemetry Sample Rate should be a number between 0 and 100")}else o.error("Sample Rate should be a number between 0 and 100");else o.error("Sample Rate should be a number between 0 and 100")}function ki(t){return ki="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},ki(t)}function Ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ci(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ti(Object(n),!0).forEach((function(e){Oi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oi(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ki(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ki(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ii(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ai(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ri(t,e){!function(t,e){var n=new XMLHttpRequest;er(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),Li()})),er(n,"error",(function(){e({}),Li()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Gr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Gr(e)+"v1/env_variable":Gr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return Ci(Ci({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=Ii(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,Mi))}(t,n))}))}var Pi,Ni,Mi={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function Li(){o.error("Error fetching the remote configuration.")}function Di(){return Pi||(Pi=new Jn((function(t){if(window.fetch){var e=Qn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:Dr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:c,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),Pi}var Ui=new WeakMap;function Bi(){return Ni||(Ni=new Jn((function(t){var e=Qn(XMLHttpRequest.prototype,"open",zi),n=Qn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=Ui.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Qn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=er(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Qn(XMLHttpRequest.prototype,"abort",Vi);return function(){e.stop(),n.stop(),r.stop()}}))),Ni}function zi(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];Ui.set(e,{state:"open",method:String(n).toUpperCase(),url:Dr(String(r))})}function Vi(t){var e=t.target,n=Ui.get(e);n&&(n.isAborted=!0)}var ji={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function $i(t){return It(D(ji),t)}function Hi(t){return t.nodeType===Node.ELEMENT_NODE}function Fi(t){return Hi(t)&&Boolean(t.shadowRoot)}function Wi(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Hi(e.host)}function qi(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Fi(t)&&e(t.shadowRoot)}function Gi(t){return Wi(t)?t.host:t.parentNode}function Qi(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):er(window,"complete"===t?ue:ye,e,{once:!0})}function Ki(){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 Xi(){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 Ji={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",time_zone:"device.time_zone",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.name",view_path_group:"view.path_group"},Yi={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},Zi={view:{type:Ye.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",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",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",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_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",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",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Ye.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_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:Ye.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"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:Ye.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:Ye.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"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Ye.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"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},to=ut,eo=Yr,no=[];function ro(t,e,n){var r=new Jn,i=new Jn,o=Si(t.sessionStoreStrategyType,e,n);no.push((function(){return o.stop()}));var a,s=Zt({expireDelay:eo});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return no.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=nr(window,[oe,fe,se,le],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,no.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=er(document,ve,e).stop;no.push(n);var r=g(e,to);no.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=er(window,ge,t,{capture:!0}).stop;no.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var io=3145728,oo=st,ao=0,so=1,uo=2,co=0,lo=1;function fo(t,e,n,r,i){e.transportStatus===ao&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?vo(t,e,n,{onSuccess:function(){return ho(co,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),po(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function po(t,e,n,r){t.transportStatus===uo&&h((function(){vo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=oo,ho(lo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),po(t,e,n,r)}})}),t.currentBackoffTime)}function vo(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,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=ao,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?so:uo,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function ho(t,e,n,r,i){t===co&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 3MiB",source:$n.AGENT,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=mo();o.size()>0;)fo(o.dequeue(),e,n,r,i)}function mo(){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>=io}}}function go(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var yo="log",_o="configuration",bo="usage",wo="debug",So="error",xo=["https://static.guance.com","http://localhost","<anonymous>"],Eo="browser-rum-sdk",ko=Kt(),To=function(t){ko.add((function(){To(t)}))};function Co(t,e){var n,i=new Jn,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return To=function(r){var u=gn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.25",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:go()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Io,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Oo(t,e){l(t,e),To(I({type:yo,message:t,status:wo},e))}function Io(t,e){To(I({type:yo,status:So},function(t){if(t instanceof Error){var e=wn(t);return{error:{kind:e.name,stack:Wn(Ro(e))},message:e.message}}return{error:{stack:jn},message:vn+" "+gn(t)}}(t),e))}function Ao(t){To({type:bo,usage:t})}function Ro(t){return t.stack=t.stack.filter((function(t){return!t.url||xo.some((function(e){return Ft(t.url,e)}))})),t}function Po(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function No(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:ao,currentBackoffTime:oo,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:mo(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Po(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var c={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(c.headers={"Content-Type":n.type}),fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),u((function(){Lo(a,n,r)})))}else Lo(a,n,r)}(t,e,n,r)};return{send:function(e){fo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Po(t,n.encoding),a=!!navigator.sendBeacon&&i<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(o,s))return}catch(t){!function(t){Mo||(Mo=!0,Io(t))}(t)}Lo(o,n)}(t,e,n)}}}var Mo=!1;function Lo(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),er(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Do(t){return Do="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},Do(t)}function Uo(t){if("object"===Do(t)&&t)t=gn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Bo(t,e){return"object"===Do(t)&&t?t=gn(t):e&&(t=""+t),t}function zo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Vo(t){return"object"===Do(t)&&t?zo(gn(t)):W(t)?zo(t):t}var jo="custom_keys",$o=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(Zi,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ji,i.tags),u=["date","type",jo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Bo(i,!0),a.push(Uo(r)+"="+Uo(i)))}));var c=[],l=R({},Yi,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=Bo(o),c.push(Uo(r)+"="+Vo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=Bo(o),c.push(Uo(r)+"="+Vo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Bo(t),c.push(Uo(n)+"="+Vo(t))))})),f.length&&(e.fields[jo]=Bo(f),c.push(Uo(jo)+"="+Vo(f)))}t.type===Ye.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Bo(t),c.push(Uo(n)+"="+Vo(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function Ho(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=$i(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(Fo(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Ln(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(Fo(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return i?gn($o(t).rowData):$o(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function Fo(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function Wo(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new Jn((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){m(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function qo(){return p().FTWebViewJavascriptBridge}function Go(){var t=qo();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var Qo="records";function Ko(t){var e=Go();return!!e&&e.getCapabilities().includes(t)}function Xo(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=qo();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=Go();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function Jo(t){return Jo="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},Jo(t)}function Yo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Zo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ea(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Jo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function na(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ta(Object(n),!0).forEach((function(e){ea(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=Yo(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function ra(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new Jn,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Un(na(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Un(na(ea({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),na(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ia="user",oa="global context",aa="view",sa="_gc_s",ua=[];function ca(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?sa+"_"+e+"_"+n+"_"+t.storeContextsKey:sa+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return ua.push(er(window,De,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var la=0,fa=1,da=2;function pa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:da,e=new Map,n=!1;function r(){if(!n&&t!==la){var r=t===da?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Nn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=va((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,va(r)),e.get(t)},setCompressionStatus:function(e){t===la&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function va(t){var e=0,n=Q((function(n){e=Ln(gn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function ha(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Ln(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function ma(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function ga(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function ya(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}ga.prototype.add=function(t){return this.map.set(t,1),this},ga.prototype.delete=function(t){return this.map.delete(t)},ga.prototype.has=function(t){return this.map.has(t)};var _a=1,ba=2,wa=3,Sa="0",xa="1",Ea="2",ka="3",Ta="4",Ca="5",Oa="6";function Ia(t,e){var n=ro(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===Sa||t===Ca||t===Oa||t===Ta||t===Ea||t===ka||t===xa}(e)?u||s?s&&c?n=xa:s&&l?n=ka:!s||c||l?u&&c?n=Ta:u&&l?n=Oa:!u||c||l||(n=Ca):n=Ea:n=Sa:n=e;return{trackingType:n,isTracked:Aa(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(yr)})),n.renewObservable.subscribe((function(){e.notify(gr)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Aa(e.trackingType)){var r=e.trackingType===Ca||e.trackingType===Ta||e.trackingType===Oa,i=_a;return e.trackingType===xa||e.trackingType===Ta?i=ba:e.trackingType!==Oa&&e.trackingType!==ka||(i=wa),{id:e.id,plan:i,errorSessionReplayAllowed:i===wa,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===ba||i===wa}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function Aa(t){return t!==Sa}var Ra="_gc_usr_id";var Pa=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=Xr(Ra,t);return e||(e=X(),Kr(Ra,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Ra);return t||(t=X(),localStorage.setItem(Ra,t)),t}(),{getId:function(){return e}}};function Na(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Ma(t){var e=A(t);return new Jn((function(n){var r,i,o,a,s=(r=c,i=Qn(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=Qn(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=er(window,ce,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=er(window,Se,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}var La="initial_document",Da=[[Ue,function(t){return La===t}],[Be,function(t){return"xmlhttprequest"===t}],[Ve,function(t){return"fetch"===t}],[ze,function(t){return"beacon"===t}],[je,function(t,e){return null!==e.match(/\.css$/i)}],[$e,function(t,e){return null!==e.match(/\.js$/i)}],[He,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Fe,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[We,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ua(t){var e=t.name;if(!function(t){try{return!!Br(t)}catch(t){return!1}}(e))return qe;var n=function(t){var e=Br(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=qe;return O(Da,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Ba(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function za(t){return""===t.deliveryType?"other":t.deliveryType}function Va(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var ja=/[^\u0000-\u007F]/;function $a(t,e){return n=t,(ja.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Ha(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function Fa(t){if(qa(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:Qa(e,f,d),firstByteTime:Qa(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=Qa(e,s,c),Ba(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=Qa(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=Qa(e,o,a)),Ga(t)&&(p.redirect=ft(i-r),p.redirectTime=Qa(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function Wa(t){return t.duration>=0}function qa(t){var e=Ba(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Ga(t)||Ba(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Ga(t){return t.redirectEnd>t.startTime}function Qa(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function Ka(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function Xa(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var Ja=/data:(.+)?(;base64)?,/g;function Ya(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function Za(t){return t.match(Ja)[0]+"[...]"}function ts(t,e){var n=yt(),r=!1,i=nr(window,[oe,Ee,se,fe,_e],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===_e?function(t){nr(window,[be,we],(function(e){e.type===be&&o(t)}),{once:!0})}(e):o(e)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<yt()-n&&e(t)}}}var es,ns="event",rs="first-input",is="largest-contentful-paint",os="layout-shift",as="longtask",ss="long-animation-frame",us="navigation",cs="paint",ls="resource",fs="visibility-state";function ds(t,e){return new Jn((function(n){if(window.PerformanceObserver){var r,i,o=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==ls||Xa(t,e.name)&&Wa(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([ls,us,as,cs],e.type)){e.buffered&&(r=h((function(){o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!es&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(es=er(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!ps(rs)&&e.type===rs){var c=ts(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function ps(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function vs(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(xr,(function(t){if(t.type!==Ye.VIEW&&n(t))switch(t.type){case Ye.ERROR:i.errorCount+=1,r();break;case Ye.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Ye.LONG_TASK:i.longTaskCount+=1,r();break;case Ye.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var hs=100;function ms(t,e,n,r,i){var o=function(t,e,n){return new Jn((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),ds(n,{type:ls}).subscribe((function(t){z(t,(function(t){return!gs(n,t.name)}))&&u()})),t.subscribe(br,(function(t){gs(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(wr,(function(t){gs(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Qn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function gs(t,e){return V(t.excludedActivityUrls,e)}var ys=st,_s=0,bs=1,ws=2;function Ss(t,e){var n,r=[],i=_s;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,ys)}function a(){i===bs&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=ws,e(r))}function s(){m(n),i===_s&&(i=bs,a())}return o(t),{tryAppend:function(t){return i===_s&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=ys))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var xs="data-guance-action-name";function Es(t,e){return ks(t,xs)||e&&ks(t,e)||Rs(t,e,Os)||Rs(t,e,Is)||""}function ks(t,e){var n;if(function(){void 0===Cs&&(Cs="closest"in HTMLElement.prototype);return Cs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Ns(Ps(n.getAttribute(e).trim()))}var Ts,Cs,Os=[function(t,e){if(function(){void 0===Ts&&(Ts="labels"in HTMLInputElement.prototype);return Ts}()){if("labels"in t&&t.labels&&t.labels.length>0)return Ms(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Ms(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 Ms(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=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return Ms(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 Ms(t.options[0],e)}],Is=[function(t,e){return Ms(t,e)}],As=10;function Rs(t,e,n){for(var r=t,i=0;i<=As&&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 Ns(Ps(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Ps(t){return t.replace(/\s+/g," ")}function Ns(t){return t.length>100?Ct(t,100)+" [...]":t}function Ms(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 Bt()===Mt&&r("script, style"),r("["+xs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Ls,Ds=[xs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Us=[js,function(t){if(t.id&&!Vs(t.id))return"#"+j(t.id)}],Bs=[js,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(!Vs(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function zs(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=Hs(r,Us,Fs,e,n);if(i)return i;n=Hs(r,Bs,Ws,e,n)||qs($s(r),n),r=r.parentElement}return n}}function Vs(t){return/[0-9]/.test(t)}function js(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Ds.length;n++){var r;if(r=i(Ds[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function $s(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=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Hs(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return qs(a,i)}}function Fs(t,e,n){return 1===t.ownerDocument.querySelectorAll(qs(e,n)).length}function Ws(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===Ls)try{document.querySelector(":scope"),Ls=!0}catch(t){Ls=!1}return Ls}()?qs("".concat(e,":scope"),n):qs(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function qs(t,e){return e?t+">"+e:t}function Gs(){var t=window.getSelection();return!t||t.isCollapsed}function Qs(t){return t.target instanceof Element&&!1!==t.isPrimary}function Ks(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Ke),z(t,Js)&&e.addFrustration(Je),e.hasError()&&e.addFrustration(Xe),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Xe),Js(t)&&!n&&t.addFrustration(Je)})),{isRage:!1}}var Xs='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 Js(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Xs,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Ys=1e4,Zs=new Map;function tu(t,e){Zs.set(t,e),Zs.forEach((function(t,e){_t(e,ht())>1e4&&Zs.delete(e)}))}function eu(t,e,n){var r,i=new Zt({expireDelay:3e5}),o=new Jn;t.subscribe(gr,(function(){i.reset()})),t.subscribe(hr,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),(s=zs(i.target,o))&&tu(i.timeStamp,s),{type:Ge,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:Es(i.target,o)}),c=!1;return ms(e,n,t,(function(t){c=t.hadActivity}),hs),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=ru(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&tu(s.timeStamp,f);var d=ms(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),Ys),p=d.stop,v=e.subscribe(hr,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,i,o,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[er(window,_e,(function(t){Qs(t)&&(s=Gs(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),er(window,Le,(function(){s&&Gs()||(c.selection=!0)}),{capture:!0}),er(window,be,(function(t){if(Qs(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),er(window,le,(function(){c.scroll=!0}),{capture:!0,passive:!0}),er(window,Re,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ss(t,(function(t){!function(t,e){var n=Ks(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var nu={ONGOING:0,STOPPED:1,FINALIZED:2};function ru(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=vs({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=nu.ONGOING,f=[],d=new Jn;function p(t){l===nu.ONGOING&&(o=t,l=nu.STOPPED,o?u.close(pt(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===nu.STOPPED||l===nu.FINALIZED},clone:function(){return ru(t,e,n,r,i)},validate:function(e){if(p(),l===nu.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:Ge,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(lr,h),l=nu.FINALIZED}},discard:function(){p(),l=nu.FINALIZED}}}var iu=Yr,ou="active",au="passive",su="hidden",uu="frozen",cu="terminated";function lu(t){void 0===t&&(t=500);var e,n=Zt({expireDelay:iu,maxEntries:4e3});ps(fs)&&performance.getEntriesByType(fs).forEach((function(t){i("hidden"===t.name?su:ou,t.startTime)}));i(fu(),ht());var r=nr(window,[he,Te,Ce,ve,ge,me,xe],(function(t){i(function(t){if(t.type===me)return uu;if(t.type===xe)return t.persisted?uu:cu;return fu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:dt(_t(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function fu(){return"hidden"===document.visibilityState?su:document.hasFocus()?ou:au}function du(t,e){var n=pu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Qt(dt(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}};return{customerContext:pu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Ye.ACTION,view:{in_foreground:e.wasInPageStateAt(ou,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:pu(t)?{event:t.event,events:t.events}:{}}}function pu(t){return t.type!==Qe}var vu=1,hu=2;function mu(t,e){var n,r=0,i=[],o=0,a=[],s=er(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),Oo("Worker responses received out of order."))}})).stop;function u(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return I(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}function gu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=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]),h=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]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(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 m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(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)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;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},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=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]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=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===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,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(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&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<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[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=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(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)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,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},N=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}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={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"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=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))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=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-kt)){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,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),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=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(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<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(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-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(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=Et(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=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(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-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||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=et(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=Et(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&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(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=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(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 Kt=[new Rt(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(Lt(t),0===t.lookahead&&e===nt)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,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){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=mt,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),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(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),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(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 Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[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},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(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)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||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=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(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,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(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,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)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+yt;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=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(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,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(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=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=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},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};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 Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.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?Zt:Wt,"[object ArrayBuffer]"===Vt.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===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;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},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(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,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.2.25"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(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}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var yu=0,_u=1,bu=2,wu=3,Su={status:yu};function xu(t,e,n,r){switch(void 0===r&&(r=gu),Su.status===yu&&function(t,e,n){void 0===n&&(n=gu);try{var r=n(t),i=er(r,"error",(function(n){ku(t,e,n)})),a=er(r,"message",(function(t){var e,n=t.data;"errored"===n.type?ku(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Su.status===_u&&(Su={status:wu,worker:Su.worker,version:e,stop:Su.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Su.status===_u&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Su.initializationFailureCallbacks.forEach((function(t){t()})),Su={status:bu})}(e)}),1e4),Su={status:_u,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){ku(t,e,n)}}(t,e,r),Su.status){case _u:return Su.initializationFailureCallbacks.push(n),Su.worker;case wu:return Su.worker}}function Eu(){return Su.status}function ku(t,e,n,r){if(Su.status===_u){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Io(n);Su.status===_u&&Su.initializationFailureCallbacks.forEach((function(t){t()})),Su={status:bu}}else Io(n,{worker_version:Su.status===wu&&Su.version,stream_id:r});var a}function Tu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=Ho);var a=function(t,e){return o({encoder:e.encoder,request:No(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:Wo({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(hu)},r,i,o);return e.subscribe(xr,(function(t){t.type===Ye.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Cu(t){return Cu="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},Cu(t)}function Ou(t){var e=function(t,e){if("object"!=Cu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Cu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Cu(e)?e:e+""}function Iu(t,e,n){return(e=Ou(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Au(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ru(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Au(Object(n),!0).forEach((function(e){Iu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Au(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Pu,Nu="synthetics",Mu="user",Lu={"view.url":"string","view.referrer":"string"},Du={context:"object"},Uu={service:"string",version:"string"},Bu={};function zu(t,e,n,r,i,a,s,u,c,l){Bu[Ye.VIEW]=Ru(Ru({},Du),Lu),Bu[Ye.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Du,Lu,Uu),Bu[Ye.RESOURCE]=I({"resource.url":"string"},Du,Lu,Uu),Bu[Ye.ACTION]=I({"action.target.name":"string"},Du,Lu,Uu),Bu[Ye.LONG_TASK]=I({},Du,Lu);var f={};f[Ye.ERROR]=Lr(Ye.ERROR,t.eventRateLimiterThreshold,l),f[Ye.ACTION]=Lr(Ye.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Sr,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Et()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:re,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Mu:Nu,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(d=v,-1!==[Ye.ERROR,Ye.RESOURCE,Ye.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Vt(P(E,y,v)),T=P({},x.context,y.context,m);H(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&b.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=b.errorSessionReplayAllowed,k.session.sampled_for_error_session=b.isErrorSession,k.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(k.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Pr(t,Bu[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Ye.VIEW)return!1;!1===i&&o.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(k,t.beforeSend,g,f)&&(H(k.context)&&delete k.context,e.notify(xr,k))}}))}function Vu(){return Pu||(Pu=new Jn((function(t){var e=Q((function(){t.notify(ju())}),200).throttled;return er(window,Ie,e,{capture:!0,passive:!0}).stop}))),Pu}function ju(){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 $u=Yr;var Hu=Yr;function Fu(e,n,r,i){var o=new Jn;!function(e){var n=tr([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Pn((function(e,n){t.notify(Hn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:vn,source:$n.SOURCE,handling:pn}))}))}(o),function(t,e){var n=or(0,[rr]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:$n.REPORT,handling:pn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(gr,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Er,{error:t})})),function(t,e){return t.subscribe(Er,(function(n){t.notify(Sr,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),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:Ye.ERROR,view:{in_foreground:e.wasInPageStateAt(ou,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=Hn({stackTrace:r instanceof Error?wn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:hn,source:$n.CUSTOM,handling:dn});t.notify(Er,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function Wu(){if(ps(us)){var t=performance.getEntriesByType(us)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:us,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function qu(t,e,n){return void 0===n&&(n=Wu),function(t){var e,n=Qi("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function Gu(t){if(void 0===t&&(t=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(ps(fs)){var e=performance.getEntriesByType(fs).find((function(t){return"hidden"===t.name}));if(e)return{getTimeStamp:function(){return e.startTime},stop:ot}}var n=1/0,r=nr(t,[xe,ve],(function(t){t.type!==xe&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop;return{getTimeStamp:function(){return n},stop:function(){r()}}}function Qu(t,e,n){var r={},i=qu(0,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})),o=Gu(),a=i.stop,s=function(t,e,n){return{stop:ds(t,{type:cs,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===cs&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,o,(function(t){r.firstContentfulPaint=t,n()})),u=s.stop,c=function(t,e,n,r){var i=1/0,o=nr(n,[_e,se],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=ds(t,{type:is,buffered:!0}).subscribe((function(n){var o,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===is&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=zs(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})),l=c.stop,f=function(t,e,n){var r=ds(t,{type:rs,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===rs&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&Hi(i.target)&&(o=zs(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})),d=f.stop;return{stop:function(){a(),u(),l(),d(),o.stop()},initialViewMetrics:r}}var Ku=st;function Xu(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=Ku);return new Jn((function(t){function n(){var e,n,r,i;t.notify((e=Xi(),n=ju().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(u(r.throttled));i&&o.observe(i);var a=er(window,le,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Ju(t,e,n){if(!nc())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=ec||i.startTime-t>=5*tc?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=ds(t,{type:os,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=Yu(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&zs(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Yu(t){if(t){var e=At(t,(function(t){return!!t.node&&Hi(t.node)}));return e&&e.node}}var Zu,tc=5e3,ec=st;function nc(){return ps(os)&&"WeakRef"in window}var rc=0,ic=1/0,oc=0;var ac=function(){return Zu?rc:window.performance.interactionCount||0};function sc(t,e,n){if(!(ps("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||Zu||(Zu=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ic=Math.min(ic,e.interactionId),oc=Math.max(oc,e.interactionId),rc=(oc-ic)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===en?0:ac(),n={stopped:!1};function r(){return ac()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),u=p.startTime,d=Zs.get(u),Zs.delete(u),!(r=d)&&p.target&&Hi(p.target)&&(r=zs(p.target,t.actionNameAttribute)))}var p=ds(t,{type:rs,buffered:!0}).subscribe(d),v=ds(t,{type:ns,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function uc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===en,s=!0,u=[],c=Gu();function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()&&o(t)}}var f=ms(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=Xu(0,o,(function(t){a.scroll=t})).stop,f=Ju(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=sc(n,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var cc,lc=3e5,fc=3e5;function dc(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new Jn,v={},m=0,_=A(r),b=ra(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(fr,S),t.notify(dr,S);var x=Q(H,3e3,{leading:!1}),E=x.throttled,k=x.cancel,T=uc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===en?Qu(n,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=vs({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,lc),V=t.subscribe(_r,(function(t){t.reason===ji.UNLOADING&&H()}));function j(){t.notify(vr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),E()}function H(){k(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(pr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(hr,{endClocks:s}),t.notify(mr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),fc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.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,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(en,bt(),a);return e.subscribe(gr,(function(){l=u(nn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(yr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!qt(n.hash)&&Gt(n.hash)!==Gt(e.hash))return l.end(),void(l=u(nn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(nn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function pc(t,e,n,r,i,o,a,s){return t.subscribe(pr,(function(n){t.notify(Sr,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:Ye.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Qt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:vc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),dc(n,t,r,e,i,!e.trackViewsManually,s)}function vc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&i>e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&o>r&&(c.dom=dt(o-r)),c}}function hc(){this.buffer=new Uint8Array(8),mc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function mc(){return window.crypto||window.msCrypto}function gc(t,e){if(this._spanId=new hc,this._traceId=new hc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function yc(){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 _c(t,e,n){if(this._spanId=yc(),this._traceId=yc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function bc(t,e){if(this._traceId=new hc,this._spanId=new hc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function wc(t,e){if(this._traceId=new hc,this._spanId=new hc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Sc(t,e){if(this._traceId=new hc,this._spanId=new hc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function xc(t,e,n){if(this._traceId=new hc,this._spanId=new hc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Ec(t,e){return 100===e||0!==e&&(cc&&t===cc.sessionId?cc.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),cc={sessionId:t,decision:n},n));var n}function kc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Tc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a=Ec(i.id,t.tracingSampleRate);if(a){var s;switch(o.traceType){case on:s=new gc(t,a);break;case ln:s=new _c(t,e.url,a);break;case an:s=new Sc(t,a);break;case fn:s=new bc(t,a);break;case un:s=new xc(t,a);break;case cn:s=new xc(t,a,!0);break;case sn:s=new wc(t,a)}if(s&&s.isTracingSupported()){e.traceId=s.getTraceId(),e.spanId=s.getSpanId(),e.traceSampled=a;var u=s.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}}hc.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:function(){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]}},gc.prototype={isTracingSupported:function(){return void 0!==mc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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()}}},_c.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},bc.prototype={isTracingSupported:function(){return void 0!==mc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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()}}},wc.prototype={isTracingSupported:function(){return void 0!==mc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Sc.prototype={isTracingSupported:function(){return void 0!==mc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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"}}},xc.prototype={isTracingSupported:function(){return void 0!==mc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Cc=1;function Oc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:kc,traceFetch:function(n){return Tc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Tc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Bi().subscribe((function(r){var i=r;if(Xa(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Ic(),t.notify(br,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(wr,{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:rn.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=Di().subscribe((function(r){var i=r;if(Xa(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Ic(),t.notify(br,{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(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(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(u((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(wr,{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:rn.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Ic(){var t=Cc;return Cc+=1,t}var Ac=new ga;function Rc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!Ac.has(t)}));n=U(n,(function(t){return Wa(t)&&qa(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Pc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Pc(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?(Ac.add(r),r.toJSON()):void 0}}}function Pc(t){return St(t.startTime,t.duration)}function Nc(t,e){Qi("interactive",(function(){var t=I(Wu().toJSON(),{entryType:ls,initiatorType:La,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function Mc(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){jr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Nc),t.subscribe(wr,(function(t){a((function(){return function(t,e){var n=Rc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===rn.XHR?Be:Ve,a=n?Dc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(uu,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:Ya(t.url)?Za(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&za(n),protocol:n&&Va(n)},type:Ye.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=ds(e,{type:ls,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||$a(t.name,e.resourceUrlLimit)||a((function(){return Lc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(Sr,n)}))}return i(e,(function(t){a((function(){return Lc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Lc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Ua(t),a=Dc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:za(t),protocol:Va(t)},type:Ye.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Dc(t){return{resource:P({},{duration:Ha(t)},Ka(t),Fa(t))}}var Uc={sdkVersion:"3.2.25",sdkName:"df_web_rum_sdk"};function Bc(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,on)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=zc(n,$t(t.traceType,on));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=zc(n,$t(t.traceType,on));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Ei(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:$t(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&f(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&f(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,on),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(xi,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:xi.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,Uc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function zc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Ur(e))}:"function"==typeof t&&(n=function(e){return t(Ur(e))}),void 0!==n)return{match:n,traceType:e};o.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Vc(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Kt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=Xo();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=Go())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){To({type:_o,configuration:t})}(rt(t)),s)ya("DATAFLUX_RUM",t);else{var n=Bc(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,Di().subscribe(ot),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||Xr("guance-synthetics-injects-rum"))||(t.remoteConfiguration?Ri(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var jc=2,$c=3,Hc=4,Fc=6,Wc=7,qc=8,Gc=9,Qc=0,Kc=1,Xc=2,Jc=3,Yc=4,Zc=11,tl=0,el=1,nl=2,rl=3,il=4,ol=5,al=6,sl=7,ul=8,cl=0,ll=1,fl=2,dl=3,pl=4,vl=5,hl=6,ml=7,gl=9,yl=0,_l=1,bl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:xi.ALLOW,MASK:xi.MASK,MASK_USER_INPUT:xi.MASK_USER_INPUT},wl="data-gc-privacy",Sl="hidden",xl="***",El={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function kl(t,e,n){if(n&&n.has(t))return n.get(t);var r=Gi(t),i=r?kl(r,e):e,o=Tl(Cl(t),i);return n&&n.set(t,o),o}function Tl(t,e){switch(e){case bl.HIDDEN:case bl.IGNORE:return e}switch(t){case bl.ALLOW:case bl.MASK:case bl.MASK_USER_INPUT:case bl.HIDDEN:case bl.IGNORE:return t;default:return e}}function Cl(t){if(Hi(t)){var e=t.getAttribute(wl);if("BASE"===t.tagName)return bl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return bl.MASK;if("hidden"===n.type)return bl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return bl.MASK}return e===Sl||t.classList.contains("gc-privacy-hidden")?bl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?bl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?bl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?bl.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)?bl.IGNORE:void 0}}function Ol(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case bl.MASK:case bl.HIDDEN:case bl.IGNORE:return!0;case bl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Il(e.parentNode):Il(e);default:return!1}}function Il(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!!El[e.tagName]}function Al(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=xl;else if(r===bl.HIDDEN)o=xl;else if(Ol(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?xl:o.replace(/\S/g,"x");return o}}var Rl=new WeakMap;function Pl(t){return Rl.has(t)}function Nl(t){return Rl.get(t)}function Ml(t,e,n){var r=e.tagName,i=e.value;if(Ol(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return xl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var Ll=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Dl=/^[A-Za-z]+:|^\/\//,Ul=/^data:.*,/i;function Bl(t,e){return t.replace(Ll,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Dl.test(s)||Ul.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(".concat(u).concat(function(t,e){try{return Br(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function zl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Bl(((n=Array.from(e,Bt()===Dt?jl:Vl).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 Vl(t){return function(t){return"styleSheet"in t}(t)&&zl(t.styleSheet)||t.cssText}function jl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Vl(t)}function $l(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Hl(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Fl=/^[^ \t\n\r\u000c]+/,Wl=/^[, \t\n\r\u000c]+/;var ql=0,Gl=1,Ql=2;function Kl(t,e,n){return Xl(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Xl(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Qc,childNodes:Jl(t,e),adoptedStyleSheets:$l(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Wi(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Zc,childNodes:Jl(t,e),isShadowRoot:n,adoptedStyleSheets:n?$l(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:Kc,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=ef(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Tl(Cl(t),e.parentNodePrivacyLevel);var o;if(i===bl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Xc,tagName:n,attributes:Iu({rr_width:s+"px",rr_height:u+"px"},wl,Sl),childNodes:[],isSVG:r}}if(i===bl.IGNORE)return;var c=function(t,e,n){if(e===bl.HIDDEN)return{};for(var r={},i=ef(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Yl(t,e,s,n.configuration);null!==u&&(r[s]=nf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Ml(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===bl.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=zl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=zl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===bl.ALLOW?r.checked=!!h.checked:Ol(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case ql:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Gl:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Fi(t)}(t)&&"style"!==n){l=Jl(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Xc,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Al(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Jc,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Yc,textContent:""}}var n}(t,e);if(!n)return null;var r=Nl(t)||Zl++,i=n;return i.id=r,function(t,e){Rl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Jl(t,e){var n=[];return qi(t,(function(t){var r=Xl(t,e);r&&n.push(r)})),n}function Yl(t,e,n,r){if(e===bl.HIDDEN)return null;var i=t.getAttribute(n);if(e===bl.MASK&&n!==wl&&!Ds.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return xl}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return xl;if(i&&Ft(n,"data-"))return xl;if("IFRAME"===o&&"srcdoc"===n)return xl}return i&&"string"==typeof i&&Ya(i)?Za(i):i}var Zl=1;var tf=/[^a-z1-6-_]/;function ef(t){var e=(t+"").toLowerCase().trim();return tf.test(e)?"div":e}function nf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Hl(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(Wl),!(n>=e.length);){var o=r(Fl);if(","===o.slice(-1))o=Hl(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Hl(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?Bl(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Hl(t,r):r:Hl(t,r):r;var i}function rf(t){return Boolean(t.changedTouches)}function of(t,e){return{data:I({source:t},e),type:$c,timestamp:gt()}}function af(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function sf(t,e,n,r){var i=Na();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=jr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){uf(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Pl(e)&&!Wi(e))return!1;e=Gi(e)}return!0}(t.target)&&kl(t.target,n.defaultPrivacyLevel,i)!==bl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.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 l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=kl(h.parentNode,e.defaultPrivacyLevel,r);if(m!==bl.HIDDEN&&m!==bl.IGNORE){var g=Xl(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:Ql,shadowRootsController:n},configuration:e});if(g){var y=Gi(h);d.push({nextId:w(h),parentId:Nl(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Pl(e)&&_.push({parentId:Nl(t),id:Nl(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Pl(t)&&f.has(Nl(t))}function w(t){for(var e=t.nextSibling;e;){if(Pl(e))return Nl(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Pl(t)&&c.has(Nl(t))}var f=function(t,e,n){for(var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,s=o;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=kl(Gi(u.target),e.defaultPrivacyLevel,n);c!==bl.HIDDEN&&c!==bl.IGNORE&&r.push({id:Nl(u.target),value:$t(Al(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=kl(c.target,e.defaultPrivacyLevel,n),d=Yl(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=Ml(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Nl(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(u(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 uf(t,e){Fi(t)&&e(t.shadowRoot),qi(t,(function(t){return uf(t,e)}))}var cf=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},lf=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}},ff=new WeakMap,df=1;function pf(t){return ff.has(t)||ff.set(t,df++),ff.get(t)}function vf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,sf(e,n,r,document)),u=function(t){var e=Q((function(e){var n=yf(e);if(Pl(n)){var r=mf(e);if(!r)return;var i={id:Nl(n),timeOffset:0,x:r.x,y:r.y};t([i],rf(e)?al:el)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=nr(document,[ke,pe],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=yf(n);if(kl(r,e.defaultPrivacyLevel)!==bl.HIDDEN&&Pl(r)){var i,o=Nl(r),a=hf[n.type];if(a!==hl&&a!==vl){var s=mf(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:pf(n)},of(nl,i));t(u)}};return nr(document,Object.keys(hf),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=yf(r);if(i&&kl(i,e.defaultPrivacyLevel)!==bl.HIDDEN&&Pl(i)){var o=Nl(i),a=i===document?{scrollTop:Xi(),scrollLeft:Ki()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=er(document,le,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Vu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=gf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=yf(n);r&&kl(r,e.defaultPrivacyLevel)!==bl.HIDDEN&&Pl(r)&&t({id:Nl(r),type:n.type===Pe?yl:_l})};return nr(document,[Pe,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Pl(t.ownerNode)&&e(Nl(t.ownerNode))}var n=[Qn(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t({id:e,adds:[{rule:o,index:a}]})}))})),Qn(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:i}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(Qn(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=af(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Qn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=af(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,nr(window,[Te,Ce],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(lf())}),200,{trailing:!1}),n=nr(window.visualViewport,[Ie,le],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(Sr,(function(t){t.rawRumEvent.type===Ye.ACTION&&t.rawRumEvent.action.type===Ge&&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&&a({timestamp:t.rawRumEvent.date,type:Gc,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return pf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var hf=Iu(Iu(Iu(Iu(Iu(Iu(Iu(Iu(Iu({},be,cl),Ee,ll),oe,fl),Oe,dl),ae,pl),Te,vl),Ce,hl),fe,ml),de,gl);function mf(t){var e=rf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=cf(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function gf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=nr(n,o?[Ae]:[Re,Ae],(function(t){var e=yf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Kn(HTMLInputElement.prototype,"value",c),Kn(HTMLInputElement.prototype,"checked",c),Kn(HTMLSelectElement.prototype,"value",c),Kn(HTMLTextAreaElement.prototype,"value",c),Kn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=kl(t,e.defaultPrivacyLevel);if(n!==bl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Ol(e,t,n))return;r={isChecked:t.checked}}else{var o=Ml(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Pl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Nl(e)},n)))}}}function yf(t){return!0===t.composed&&Fi(t.target)?t.composedPath()[0]:t.target}function _f(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(of(tl,t))},o=function(t){e(of(ol,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=sf(n,t,o,e),s=a.flush,u=a.stop,c=gf(r,t,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}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:ql,elementsScrollPositions:r,shadowRootsController:a});var o=ju(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Hc,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Fc,timestamp:n}),e({data:{node:Kl(document,t.configuration,i),initialOffset:{left:Ki(),top:Xi()}},type:jc,timestamp:n}),window.visualViewport&&e({data:lf(),type:qc,timestamp:n})};s();var u=vf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(of(sl,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(of(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(of(rl,t))},styleSheetCb:function(t){e(of(ul,t))},viewportResizeCb:function(t){e(of(il,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Fc,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:qc,timestamp:gt()})},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:Gl,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function bf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),wf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function wf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Cu(r)&&null!==r?wf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Sf;function xf(t){return Ef(t).segments_count}function Ef(t){var e;return Sf||(Sf=new Map),Sf.has(t)?e=Sf.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Sf.set(t,e),Sf.size>10&&kf()),e}function kf(){if(Sf)if(Sf.keys)Sf.delete(Sf.keys().next().value);else{var t=!0;Sf.forEach((function(e,n){t&&(Sf.delete(n),t=!1)}))}}function Tf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:xf(o),source:"browser"},e);return function(t){Ef(t).segments_count+=1}(o),{addRecord:function(t,e){a.start=Math.min(a.start,t.timestamp),a.end=Math.max(a.end,t.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=t.type===jc),function(t){Ef(t).records_count+=1}(a.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(a).slice(1)+"\n"),r.finish((function(e){!function(t,e){Ef(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Cf=6e4;function Of(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:If.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(dr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(_r,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===If.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=bf(r.output,e,r.rawBytesCount);$i(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:If.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:If.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==If.Stopped){if(o.status===If.WaitingForInitialRecord){var n=e();if(!n)return;o={status:If.SegmentPending,segment:Tf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>Cf&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var If={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Af=0,Rf=1,Pf=2,Nf=3;var Mf,Lf,Df,Uf,Bf=function(t,e){if(Xo()&&!Ko(Qo)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Af},r=function(){n={status:Rf}},i=function(){n={status:Af}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(yr,(function(){n.status!==Pf&&n.status!==Nf||(i(),n={status:Rf})})),o.subscribe(_r,(function(t){t.reason===ji.UNLOADING&&i()})),o.subscribe(gr,(function(){n.status===Rf&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==Pf&&n.status!==Nf&&(n={status:Pf},Qi("interactive",(function(){if(n.status===Pf){var r=(l||(c||(c=xu(a,"Session Replay",(function(){i()}),e)),c&&(l=mu(c,vu))),l);if(r){var f=t(o,a,s,u,r);n={status:Nf,stopRecording:f.stop}}else n={status:Af}}}))):n={status:Rf}},i=function(){n.status!==Af&&(n.status===Nf&&n.stopRecording(),n={status:Af})},n.status===Rf&&r()},isRecording:function(){return Eu()===wu&&n.status===Nf},getReplayStats:function(t){return Eu()===wu?function(t){return Sf&&Sf.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||No(e.sessionReplayEndPoint,Cf,e.retryMaxSize,(function(e){t.notify(Er,{error:e}),Oo("Error reported to customer",{"error.message":e.message})}));if(Xo()){var d=(u=r,c=Go(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=_f({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Of(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=_f({emit:function(t){if(a(t),v)if(t.type===jc)y=t;else if(t.type===$c){t.timestamp-y.timestamp>6e4&&m((function(){kf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(hr,(function(){b(),a({timestamp:gt(),type:Wc})}));l.push(w.unsubscribe);var S=t.subscribe(dr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),zf=function(t,e,n){void 0===n&&(n={});var r=pa(la),i=ra("global",{customerDataTracker:r.getOrCreateTracker(oa)}),a=ra("user",{customerDataTracker:r.getOrCreateTracker(ia),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Vc(n,l,(function(o,s,u){o.storeContextsToLocal&&(ca(o,i,"rum",oa),ca(o,a,"rum",ia)),r.setCompressionStatus(s?fa:da);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:ha);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){ya("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,c),c})),v=u((function(t){var e="object"===Cu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(aa).updateCustomerData(e.context),Ao({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),Ao({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),Ao({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),Ao({feature:"set-view-context-property"})})),getViewContext:u((function(){return Ao({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),Ao({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),Ao({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:u((function(){return i.getContext()})),getGlobalContext:u((function(){return i.getContext()})),setRumGlobalContext:u((function(t){i.setContext(t),Ao({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),Ao({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addAction:u((function(t,e){var n=Fn();c((function(){p.addAction({name:Un(t),context:Un(e),startClocks:mt(),type:Qe,handlingStack:n}),Ao({feature:"add-action"})}))})),addError:u((function(t,e){var n=Fn();c((function(){p.addError({error:t,handlingStack:n,context:Un(e),startClocks:mt()}),Ao({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Un(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(ma(t)),Ao({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=ma(n)[t];a.setContextProperty(t,r),Ao({feature:"set-user"})})),removeUserProperty:u((function(t){return a.removeContextProperty(t)})),removeUser:u((function(){return a.clearContext()})),clearUser:u((function(){return a.clearContext()})),startView:v,stopSession:u((function(){p.stopSession(),Ao({feature:"stop-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Ao({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return s},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new kr,c=function(t){var e=Co(Eo,t);return e}(t),l=function(t){s.notify(Er,{error:t})},f=new Jn((function(t){var e=nr(window,[ve,me],(function(e){e.type===ve&&"hidden"===document.visibilityState?t.notify({reason:ji.HIDDEN}):e.type===me&&t.notify({reason:ji.FROZEN})}),{capture:!0}),n=er(window,ie,(function(){t.notify({reason:ji.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(_r,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=Xo()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:_a,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!Ko(Qo),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new Jn,setErrorForSession:function(){}}}():Ia(t,s);if(Xo())!function(t){var e=Go();t.subscribe(xr,(function(t){var n=$o(t).rowData;e.send("rum",n)}))}(s);else{var p=Tu(t,s,c.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Pa(t),m=(v=Na(),new Jn((function(t){if(v){var e=new v(u((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Ma(location),y=lu(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Zt({expireDelay:Hu});return t.subscribe(fr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(mr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(vr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(gr,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Zt({expireDelay:$u});t.subscribe(fr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(mr,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();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 n&&!qt(n)&&(e="/"+Gt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:J(e),urlQuery:Z(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(lr,(function(e){t.notify(Sr,du(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=eu(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Sr,R({savedCommonContext:n},du(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=ju(),{get:function(){return{viewport:m}},stop:Vu().subscribe((function(t){m=t})).unsubscribe});var m;return zu(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,E=_.addAction;a.push(x),ko.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var k=pc(s,t,location,m,g,y,e,i),T=k.addTiming,C=k.startView,O=k.setViewName,I=k.setViewContext,A=k.setViewContextProperty,P=k.getViewContext,N=k.stop;a.push(N);var M=Mc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(ss)){var L=function(t,e){var n=ds(e,{type:ss,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:tn,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:Ye.LONG_TASK};t.notify(Sr,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=ds(e,{type:as,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==as)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Ze,duration:dt(r.duration)},type:Ye.LONG_TASK};t.notify(Sr,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=Fu(s,0,d,y).addError;Oc(s,t,d);var U=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),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:E,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),Bf,{startDeflateWorker:xu,createDeflateEncoder:mu});Mf=p(),Df=zf,Uf=Mf[Lf="DATAFLUX_RUM"],Mf[Lf]=Df,Uf&&Uf.q&&O(Uf.q,(function(t){f(t,"onReady callback threw an error:")()}))}();
1
+ !function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){if(l(t),r)try{r(t)}catch(t){l(t)}}}function l(){var t=[].slice.call(arguments);a&&o.error.apply(null,["[MONITOR]"].concat(t))}function f(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function d(t){return d="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},d(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":d(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"!==d(t)&&(t="object"===("undefined"==typeof self?"undefined":d(self))?self:"object"===("undefined"==typeof window?"undefined":d(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function m(t){v(p(),"clearTimeout")(t)}function g(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function _(t){return _="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},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,k=w.hasOwnProperty,E=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(E&&t.forEach===E)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(k.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&k.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},B=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",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}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(k.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=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 X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=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"!==_(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 Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(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 et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(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"!==_(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]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-kt()}function vt(t){return Math.round(kt()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:kt()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>kt()?Math.round(e+t):vt(t)}function kt(){return void 0===at&&(at=performance.timing.navigationStart),at}var Et=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&k.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function Gt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Qt(t){return G(t)&&t<0?void 0:t}function Kt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0,Jt=null,Yt=new Set;function Zt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function i(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return Jt&&(Jt=g((function(){return i()}),6e4)),Yt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Wt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Yt.delete(i),0===Yt.size&&Jt&&(y(Jt),Jt=null)}}}var te={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"]}},ee={getMatchMap:u((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:u((function(t){var e=te.navigator.userAgent||"",n=ee.getMatchMap(e);for(var r in te.infoMap)for(var i=0;i<te.infoMap[r].length;i++){var o=te.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return ee.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=te.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:u((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:u((function(){var t=this;return t.device="PC",ee.matchInfoMap(t),t.device})),getNetwork:u((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:u((function(){var t;return this.language=((t=(te.navigator.browserLanguage||te.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})),getBrowserInfo:u((function(){var t=this;ee.matchInfoMap(t);var e=te.navigator.userAgent||"",n=function(t,e){var n=te.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=ee.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")||te.navigator&&te.navigator.connection&&void 0===te.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:u((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},ne={};"undefined"!=typeof window&&(ne={os:ee.getOS(),osVersion:ee.getOSVersion().version,osVersionMajor:ee.getOSVersion().osMajor,browser:ee.getBrowserInfo().browser,browserVersion:ee.getBrowserInfo().browserVersion,browserVersionMajor:ee.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:ee.getNetwork(),device:ee.getDeviceType(),timeZone:ee.getTimeZone()});var re=ne,ie="beforeunload",oe="click",ae="dblclick",se="keydown",ue="load",ce="popstate",le="scroll",fe="touchstart",de="touchend",pe="touchmove",ve="visibilitychange",he="pageshow",me="freeze",ge="resume",ye="DOMContentLoaded",_e="pointerdown",be="pointerup",we="pointercancel",Se="hashchange",xe="pagehide",ke="mousedown",Ee="mousemove",Te="focus",Ce="blur",Oe="contextmenu",Ie="resize",Ae="change",Re="input",Pe="play",Ne="pause",Me="securitypolicyviolation",Le="selectionchange",De="storage",Ue="document",Be="xhr",ze="beacon",Ve="fetch",je="css",$e="js",He="image",Fe="font",We="media",qe="other",Ge="click",Qe="custom",Ke="rage_click",Xe="error_click",Je="dead_click",Ye={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ze="long-task",tn="long-animation-frame",en="initial_load",nn="route_change",rn={FETCH:Ve,XHR:Be},on="ddtrace",an="zipkin",sn="zipkin_single_header",un="w3c_traceparent",cn="w3c_traceparent_64bit",ln="skywalking_v3",fn="jaeger",dn="handled",pn="unhandled",vn="Uncaught",hn="Provided";function mn(t){return mn="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},mn(t)}function gn(t,e,n){if("object"!==mn(t)||null===t)return JSON.stringify(t);var r=yn(Object.prototype),i=yn(Array.prototype),o=yn(Object.getPrototypeOf(t)),a=yn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function yn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function _n(t){return _n="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},_n(t)}var bn="?";function wn(t){var e=[],n=An(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=kn.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=En.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]||bn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:bn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||bn,line:+e[3],url:e[2]}}(t)||function(t){var e=On.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=In.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]||bn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=bn),e.push(n))})),{message:An(t,"message"),name:An(t,"name"),stack:e}}var Sn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",xn="(?::(\\d+))",kn=new RegExp("^\\s*at (.*?) ?\\("+Sn+xn+"?"+xn+"?\\)?\\s*$","i"),En=new RegExp("\\((\\S*)"+xn+xn+"\\)");var Tn=new RegExp("^\\s*at ?"+Sn+xn+"?"+xn+"??\\s*$","i");var Cn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var On=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,In=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function An(t,e){if("object"===_n(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Rn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Pn(t){var e=function(t){return Yn(window,"onerror",(function(e){var n,r=e.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=wn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Rn.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(i);n={name:l.name,message:l.message,stack:[c]}}t(n,$t(u,i))}))}(t),n=function(t){return Yn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=wn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Nn=1024,Mn=/[^\u0000-\u007F]/;function Ln(t){return Mn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Dn(t){return Dn="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},Dn(t)}function Un(t,e){void 0===e&&(e=225280);var n=yn(Object.prototype),r=yn(Array.prototype),i=[],o=new WeakMap,a=Bn(t,"$",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=Bn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){Vn(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=Bn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){Vn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}Vn(e,"discarded",t)}function Bn(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"!==Dn(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Dn(t))return"[Symbol] "+t.description||0;return t}(o);var a=zn(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 zn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?zn(n.currentTarget):null,target:n.target?zn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function Vn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var jn="No stack, consider using an instance of Error",$n="agent",Hn="console",Fn="source",Wn="custom",qn="report";function Gn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+gn(Un(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Kn(e):jn,f=u?Jn(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function Qn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=wn(e);n.stack=n.stack.slice(2),t=Kn(n)})),t}function Kn(t){var e=Xn(t);return O(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 Xn(t){return(t.name||"Error")+": "+t.message}function Jn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=wn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Kn(i)}),n=n.cause}return r.length?r:void 0}function Yn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?Qn():void 0}]);var r=o.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Zn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var tr=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};tr.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var er=tr;function nr(){var t=[].slice.call(arguments);return new er((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var rr={};function ir(e){var n=B(e,(function(e){return rr[e]||(rr[e]=function(e){return new er((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Qn();c((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Xn(wn(t));return gn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Kn(wn(a)):void 0,causes:a?Jn(a,"console"):void 0,startClocks:mt(),message:o,source:Hn,handling:dn,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),rr[e]}));return nr.apply(this,n)}function or(t,e,n,r){return ar(t,[e],n,r)}function ar(t,e,n,r){var i=u(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,a=v(o,"addEventListener");O(e,(function(e){a.call(t,e,i,r)}));var s=function(){var n=v(o,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var sr="intervention",ur="csp_violation";function cr(t,e){var n=[];It(e,ur)&&n.push(new er((function(t){return or(document,Me,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return lr({type:t.effectiveDirective,message:ur+": "+e,originalError:t,csp:{disposition:t.disposition},stack:fr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==ur}));return r.length&&n.push(function(t){return new er((function(e){if(window.ReportingObserver){var n=u((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return lr({type:e.id,message:n+": "+e.message,originalError:t,stack:fr(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()}}}))}(r)),nr.apply(this,n)}function lr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function fr(t,e,n,r,i){return n&&Kn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var dr=function(){this._events=[],this.pendingEvents=[]};dr.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(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 dr;var pr,vr="AUTO_ACTION_COMPLETED",hr="BEFORE_VIEW_CREATED",mr="VIEW_CREATED",gr="VIEW_UPDATED",yr="BEFORE_VIEW_UPDATED",_r="VIEW_ENDED",br="AFTER_VIEW_ENDED",wr="SESSION_RENEWED",Sr="SESSION_EXPIRED",xr="PAGE_EXITED",kr="REQUEST_STARTED",Er="REQUEST_COMPLETED",Tr="RAW_RUM_EVENT_COLLECTED",Cr="RUM_EVENT_COLLECTED",Or="RAW_ERROR_COLLECTED";function Ir(){this.callbacks={}}function Ar(t){return Lr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Nr(t)||Pr()}function Rr(t,e){return Lr(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Nr(t,e)||Pr()}function Pr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Nr(t,e){if(t){if("string"==typeof t)return Mr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(t,e):void 0}}function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Lr(t){if(Array.isArray(t))return t}function Dr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Rr(e,2),i=n[0],o=n[1];return Ur(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Ur(t,e,n,r){var i=Ar(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Br(t)&&Br(e))return a.length>0?Ur(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Un(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Ur(t,e[n],a,r)}))}function Br(t){return"object"===et(t)}function zr(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(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:$n,startClocks:mt()})}finally{i=!1}}return!0}}}function Vr(t){return $r(t,zt(window.location)).href}function jr(t){return zt($r(t))}function $r(t,e){if(function(){if(void 0!==pr)return pr;try{var t=new URL("http://test/path");return pr="http://test/path"===t.href}catch(t){pr=!1}return pr}())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}Ir.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(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]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var Hr=navigator.userAgent.toLowerCase(),Fr=function(){return/iphone os/.test(Hr)};function Wr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,qr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var qr=50;var Gr,Qr=/^\s+|\s+$/g,Kr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Xr(t,e){var n=Kr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Jr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Jr(r)+"v1/write"+n:Jr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Jr(t){return t.replace(Qr,"")}function Yr(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function Zr(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":"",c=r&&r.partitioned?";partitioned":"";document.cookie=Yr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function ti(t,e){return function(t,e){for(Et.lastIndex=0;;){var n=Et.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Yr(t,e))}function ei(t,e){Zr(t,"",0,e)}var ni=144e5,ri=9e5,ii="_gc_s";function oi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ai(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ai(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var si=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ui="&";function ci(t){return H(t)}function li(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<ni)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function fi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function di(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ui)||si.test(t))}(t)&&t.split(ui).forEach((function(t){var n=si.exec(t);if(null!==n){var r=oi(n,3),i=r[1],o=r[2];e[i]=o}})),e}function pi(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Gr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ti(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Zr(t,"test",st,{domain:n});ei(t,{domain:n}),Gr=n}return Gr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Zr(e,n,ut,t);var r=ti(e,t)===n;return ei(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function vi(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Zr(ii,fi(t),ri,e)}),retrieveSession:hi(t),expireSession:function(){return function(t){Zr(ii,fi({isExpired:"1"}),ni,t)}(t)}}}function hi(t){return function(){return di(ti(ii,t))}}function mi(t){localStorage.setItem(ii,fi(t))}function gi(){return di(localStorage.getItem(ii))}function yi(){mi({isExpired:"1"})}var _i,bi=[];function wi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(_i||(_i=t),t===_i)if(r&&n>=100)xi(e);else{var u,c=s();if(r){if(c.lock)return void Si(t,e,n);if(u=X(),a(c.session),(c=s()).lock!==u)return void Si(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Si(t,e,n);else{if(l&&(li(l)?o():(l.expire=String(yt()+ri),r?a(l):i(l))),r&&(!l||!li(l))){if((c=s()).lock!==u)return void Si(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),xi(e)}}else bi.push(t)}function Si(t,e,n){h((function(){wi(t,e,n+1)}),10)}function xi(t){_i=void 0;var e=bi.shift();e&&wi(e,t)}var ki=st;function Ei(t){var e=pi(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function Ti(t,e,n){var r,i=new er,o=new er,a=new er,s="Cookie"===t.type?vi(t.cookieOptions):{isLockEnabled:!1,persistSession:mi,retrieveSession:gi,expireSession:yi},u=s.expireSession,c=g((function(){wi({process:function(t){return li(t)?{isExpired:"1"}:void 0},after:p},s)}),ki);v();var l=Q((function(){wi({process:function(t){if(!ci(t)){var r=p(t);return function(t){if(ci(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){ci(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),ki),f=l.throttled,d=l.cancel;function p(t){return li(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){wi({process:function(t){if(ci(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){wi({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){wi({process:function(e){return I({},e,t)},after:p},s)}}}var Ci={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Oi(t){if(void 0===t.sampleRate||Pt(t.sampleRate))if(void 0===t.sessionSampleRate||Pt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Pt(t.telemetrySampleRate)){var e=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Ei(t),sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Xr(t,"rum"),logsEndpoint:Xr(t,"log"),sessionReplayEndPoint:Xr(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}o.error("Telemetry Sample Rate should be a number between 0 and 100")}else o.error("Sample Rate should be a number between 0 and 100");else o.error("Sample Rate should be a number between 0 and 100")}function Ii(t){return Ii="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},Ii(t)}function Ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ri(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){Pi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pi(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ii(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ii(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ni(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Mi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Li(t,e){!function(t,e){var n=new XMLHttpRequest;or(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),zi()})),or(n,"error",(function(){e({}),zi()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Jr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Jr(e)+"v1/env_variable":Jr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return Ri(Ri({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=Ni(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,Bi))}(t,n))}))}var Di,Ui,Bi={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function zi(){o.error("Error fetching the remote configuration.")}function Vi(){return Di||(Di=new er((function(t){if(window.fetch){var e=Yn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:Vr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:c,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),Di}var ji=new WeakMap;function $i(){return Ui||(Ui=new er((function(t){var e=Yn(XMLHttpRequest.prototype,"open",Hi),n=Yn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=ji.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Yn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=or(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Yn(XMLHttpRequest.prototype,"abort",Fi);return function(){e.stop(),n.stop(),r.stop()}}))),Ui}function Hi(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];ji.set(e,{state:"open",method:String(n).toUpperCase(),url:Vr(String(r))})}function Fi(t){var e=t.target,n=ji.get(e);n&&(n.isAborted=!0)}var Wi={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function qi(t){return It(D(Wi),t)}function Gi(t){return t.nodeType===Node.ELEMENT_NODE}function Qi(t){return Gi(t)&&Boolean(t.shadowRoot)}function Ki(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Gi(e.host)}function Xi(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Qi(t)&&e(t.shadowRoot)}function Ji(t){return Ki(t)?t.host:t.parentNode}function Yi(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):or(window,"complete"===t?ue:ye,e,{once:!0})}function Zi(){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 to(){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 eo={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",time_zone:"device.time_zone",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.name",view_path_group:"view.path_group"},no={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},ro={view:{type:Ye.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",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",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",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_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",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",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Ye.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_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:Ye.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"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:Ye.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:Ye.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"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Ye.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"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},io=ut,oo=ni,ao=[];function so(t,e,n){var r=new er,i=new er,o=Ti(t.sessionStoreStrategyType,e,n);ao.push((function(){return o.stop()}));var a,s=Zt({expireDelay:oo});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return ao.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=ar(window,[oe,fe,se,le],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,ao.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=or(document,ve,e).stop;ao.push(n);var r=g(e,io);ao.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=or(window,ge,t,{capture:!0}).stop;ao.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var uo=3145728,co=st,lo=0,fo=1,po=2,vo=0,ho=1;function mo(t,e,n,r,i){e.transportStatus===lo&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?yo(t,e,n,{onSuccess:function(){return _o(vo,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),go(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function go(t,e,n,r){t.transportStatus===po&&h((function(){yo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=co,_o(ho,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),go(t,e,n,r)}})}),t.currentBackoffTime)}function yo(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,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=lo,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?fo:po,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function _o(t,e,n,r,i){t===vo&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 3MiB",source:$n,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=bo();o.size()>0;)mo(o.dequeue(),e,n,r,i)}function bo(){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>=uo}}}function wo(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var So="log",xo="configuration",ko="usage",Eo="debug",To="error",Co=["https://static.guance.com","http://localhost","<anonymous>"],Oo="browser-rum-sdk",Io=Kt(),Ao=function(t){Io.add((function(){Ao(t)}))};function Ro(t,e){var n,i=new er,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Ao=function(r){var u=gn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.27",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:wo()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=No,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Po(t,e){l(t,e),Ao(I({type:So,message:t,status:Eo},e))}function No(t,e){Ao(I({type:So,status:To},function(t){if(t instanceof Error){var e=wn(t);return{error:{kind:e.name,stack:Kn(Lo(e))},message:e.message}}return{error:{stack:jn},message:vn+" "+gn(t)}}(t),e))}function Mo(t){Ao({type:ko,usage:t})}function Lo(t){return t.stack=t.stack.filter((function(t){return!t.url||Co.some((function(e){return Ft(t.url,e)}))})),t}function Do(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Uo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:lo,currentBackoffTime:co,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:bo(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Do(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var c={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(c.headers={"Content-Type":n.type}),fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),u((function(){zo(a,n,r)})))}else zo(a,n,r)}(t,e,n,r)};return{send:function(e){mo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Do(t,n.encoding),a=!!navigator.sendBeacon&&i<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(o,s))return}catch(t){!function(t){Bo||(Bo=!0,No(t))}(t)}zo(o,n)}(t,e,n)}}}var Bo=!1;function zo(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),or(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Vo(t){return Vo="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},Vo(t)}function jo(t){if("object"===Vo(t)&&t)t=gn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function $o(t,e){return"object"===Vo(t)&&t?t=gn(t):e&&(t=""+t),t}function Ho(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Fo(t){return"object"===Vo(t)&&t?Ho(gn(t)):W(t)?Ho(t):t}var Wo="custom_keys",qo=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(ro,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},eo,i.tags),u=["date","type",Wo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=$o(i,!0),a.push(jo(r)+"="+jo(i)))}));var c=[],l=R({},no,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=$o(o),c.push(jo(r)+"="+Fo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=$o(o),c.push(jo(r)+"="+Fo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=$o(t),c.push(jo(n)+"="+Fo(t))))})),f.length&&(e.fields[Wo]=$o(f),c.push(jo(Wo)+"="+Fo(f)))}t.type===Ye.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=$o(t),c.push(jo(n)+"="+Fo(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function Go(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=qi(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(Qo(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Ln(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(Qo(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return i?gn(qo(t).rowData):qo(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function Qo(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function Ko(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new er((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){m(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Xo(){return p().FTWebViewJavascriptBridge}function Jo(){var t=Xo();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var Yo="records";function Zo(t){var e=Jo();return!!e&&e.getCapabilities().includes(t)}function ta(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=Xo();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=Jo();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ea(t){return ea="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},ea(t)}function na(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ra(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ra(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oa(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ea(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ea(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aa(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach((function(e){oa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=na(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function sa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new er,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Un(aa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Un(aa(oa({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),aa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ua="user",ca="global context",la="view",fa="_gc_s",da=[];function pa(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?fa+"_"+e+"_"+n+"_"+t.storeContextsKey:fa+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return da.push(or(window,De,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var va=0,ha=1,ma=2;function ga(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ma,e=new Map,n=!1;function r(){if(!n&&t!==va){var r=t===ma?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Nn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=ya((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,ya(r)),e.get(t)},setCompressionStatus:function(e){t===va&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function ya(t){var e=0,n=Q((function(n){e=Ln(gn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function _a(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Ln(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function ba(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function wa(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Sa(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}wa.prototype.add=function(t){return this.map.set(t,1),this},wa.prototype.delete=function(t){return this.map.delete(t)},wa.prototype.has=function(t){return this.map.has(t)};var xa=1,ka=2,Ea=3,Ta="0",Ca="1",Oa="2",Ia="3",Aa="4",Ra="5",Pa="6";function Na(t,e){var n=so(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===Ta||t===Ra||t===Pa||t===Aa||t===Oa||t===Ia||t===Ca}(e)?u||s?s&&c?n=Ca:s&&l?n=Ia:!s||c||l?u&&c?n=Aa:u&&l?n=Pa:!u||c||l||(n=Ra):n=Oa:n=Ta:n=e;return{trackingType:n,isTracked:Ma(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Sr)})),n.renewObservable.subscribe((function(){e.notify(wr)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Ma(e.trackingType)){var r=e.trackingType===Ra||e.trackingType===Aa||e.trackingType===Pa,i=xa;return e.trackingType===Ca||e.trackingType===Aa?i=ka:e.trackingType!==Pa&&e.trackingType!==Ia||(i=Ea),{id:e.id,plan:i,errorSessionReplayAllowed:i===Ea,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===ka||i===Ea}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function Ma(t){return t!==Ta}var La="_gc_usr_id";var Da=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=ti(La,t);return e||(e=X(),Zr(La,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(La);return t||(t=X(),localStorage.setItem(La,t)),t}(),{getId:function(){return e}}};function Ua(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Ba(t){var e=A(t);return new er((function(n){var r,i,o,a,s=(r=c,i=Yn(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=Yn(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=or(window,ce,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=or(window,Se,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}var za="initial_document",Va=[[Ue,function(t){return za===t}],[Be,function(t){return"xmlhttprequest"===t}],[Ve,function(t){return"fetch"===t}],[ze,function(t){return"beacon"===t}],[je,function(t,e){return null!==e.match(/\.css$/i)}],[$e,function(t,e){return null!==e.match(/\.js$/i)}],[He,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Fe,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[We,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function ja(t){var e=t.name;if(!function(t){try{return!!$r(t)}catch(t){return!1}}(e))return qe;var n=function(t){var e=$r(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=qe;return O(Va,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function $a(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ha(t){return""===t.deliveryType?"other":t.deliveryType}function Fa(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var Wa=/[^\u0000-\u007F]/;function qa(t,e){return n=t,(Wa.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Ga(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function Qa(t){if(Xa(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:Ya(e,f,d),firstByteTime:Ya(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=Ya(e,s,c),$a(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=Ya(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=Ya(e,o,a)),Ja(t)&&(p.redirect=ft(i-r),p.redirectTime=Ya(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function Ka(t){return t.duration>=0}function Xa(t){var e=$a(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!Ja(t)||$a(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Ja(t){return t.redirectEnd>t.startTime}function Ya(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function Za(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function ts(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var es=/data:(.+)?(;base64)?,/g;function ns(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function rs(t){return t.match(es)[0]+"[...]"}function is(t,e){var n=yt(),r=!1,i=ar(window,[oe,ke,se,fe,_e],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===_e?function(t){ar(window,[be,we],(function(e){e.type===be&&o(t)}),{once:!0})}(e):o(e)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<yt()-n&&e(t)}}}var os,as="event",ss="first-input",us="largest-contentful-paint",cs="layout-shift",ls="longtask",fs="long-animation-frame",ds="navigation",ps="paint",vs="resource",hs="visibility-state";function ms(t,e){return new er((function(n){if(window.PerformanceObserver){var r,i,o=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==vs||ts(t,e.name)&&Ka(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([vs,ds,ls,ps],e.type)){e.buffered&&(r=h((function(){o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!os&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(os=or(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!gs(ss)&&e.type===ss){var c=is(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function gs(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function ys(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Cr,(function(t){if(t.type!==Ye.VIEW&&n(t))switch(t.type){case Ye.ERROR:i.errorCount+=1,r();break;case Ye.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Ye.LONG_TASK:i.longTaskCount+=1,r();break;case Ye.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var _s=100;function bs(t,e,n,r,i){var o=function(t,e,n){return new er((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),ms(n,{type:vs}).subscribe((function(t){z(t,(function(t){return!ws(n,t.name)}))&&u()})),t.subscribe(kr,(function(t){ws(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Er,(function(t){ws(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Yn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function ws(t,e){return V(t.excludedActivityUrls,e)}var Ss=st,xs=0,ks=1,Es=2;function Ts(t,e){var n,r=[],i=xs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,Ss)}function a(){i===ks&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=Es,e(r))}function s(){m(n),i===xs&&(i=ks,a())}return o(t),{tryAppend:function(t){return i===xs&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=Ss))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Cs="data-guance-action-name";function Os(t,e){return Is(t,Cs)||e&&Is(t,e)||Ls(t,e,Ps)||Ls(t,e,Ns)||""}function Is(t,e){var n;if(function(){void 0===Rs&&(Rs="closest"in HTMLElement.prototype);return Rs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Us(Ds(n.getAttribute(e).trim()))}var As,Rs,Ps=[function(t,e){if(function(){void 0===As&&(As="labels"in HTMLInputElement.prototype);return As}()){if("labels"in t&&t.labels&&t.labels.length>0)return Bs(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Bs(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 Bs(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=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return Bs(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 Bs(t.options[0],e)}],Ns=[function(t,e){return Bs(t,e)}],Ms=10;function Ls(t,e,n){for(var r=t,i=0;i<=Ms&&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 Us(Ds(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Ds(t){return t.replace(/\s+/g," ")}function Us(t){return t.length>100?Ct(t,100)+" [...]":t}function Bs(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 Bt()===Mt&&r("script, style"),r("["+Cs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var zs,Vs=[Cs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],js=[Ws,function(t){if(t.id&&!Fs(t.id))return"#"+j(t.id)}],$s=[Ws,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(!Fs(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function Hs(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=Gs(r,js,Qs,e,n);if(i)return i;n=Gs(r,$s,Ks,e,n)||Xs(qs(r),n),r=r.parentElement}return n}}function Fs(t){return/[0-9]/.test(t)}function Ws(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Vs.length;n++){var r;if(r=i(Vs[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function qs(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=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Gs(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return Xs(a,i)}}function Qs(t,e,n){return 1===t.ownerDocument.querySelectorAll(Xs(e,n)).length}function Ks(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===zs)try{document.querySelector(":scope"),zs=!0}catch(t){zs=!1}return zs}()?Xs("".concat(e,":scope"),n):Xs(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function Xs(t,e){return e?t+">"+e:t}function Js(){var t=window.getSelection();return!t||t.isCollapsed}function Ys(t){return t.target instanceof Element&&!1!==t.isPrimary}function Zs(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Ke),z(t,eu)&&e.addFrustration(Je),e.hasError()&&e.addFrustration(Xe),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Xe),eu(t)&&!n&&t.addFrustration(Je)})),{isRage:!1}}var tu='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 eu(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=tu,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var nu=1e4,ru=new Map;function iu(t,e){ru.set(t,e),ru.forEach((function(t,e){_t(e,ht())>1e4&&ru.delete(e)}))}function ou(t,e,n){var r,i=new Zt({expireDelay:3e5}),o=new er;t.subscribe(wr,(function(){i.reset()})),t.subscribe(_r,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),(s=Hs(i.target,o))&&iu(i.timeStamp,s),{type:Ge,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:Os(i.target,o)}),c=!1;return bs(e,n,t,(function(t){c=t.hadActivity}),_s),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=su(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&iu(s.timeStamp,f);var d=bs(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),nu),p=d.stop,v=e.subscribe(_r,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,i,o,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[or(window,_e,(function(t){Ys(t)&&(s=Js(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),or(window,Le,(function(){s&&Js()||(c.selection=!0)}),{capture:!0}),or(window,be,(function(t){if(Ys(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),or(window,le,(function(){c.scroll=!0}),{capture:!0,passive:!0}),or(window,Re,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ts(t,(function(t){!function(t,e){var n=Zs(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var au={ONGOING:0,STOPPED:1,FINALIZED:2};function su(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=ys({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=au.ONGOING,f=[],d=new er;function p(t){l===au.ONGOING&&(o=t,l=au.STOPPED,o?u.close(pt(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===au.STOPPED||l===au.FINALIZED},clone:function(){return su(t,e,n,r,i)},validate:function(e){if(p(),l===au.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:Ge,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(vr,h),l=au.FINALIZED}},discard:function(){p(),l=au.FINALIZED}}}var uu=ni,cu="active",lu="passive",fu="hidden",du="frozen",pu="terminated";function vu(t){void 0===t&&(t=500);var e,n=Zt({expireDelay:uu,maxEntries:4e3});gs(hs)&&performance.getEntriesByType(hs).forEach((function(t){i("hidden"===t.name?fu:cu,t.startTime)}));i(hu(),ht());var r=ar(window,[he,Te,Ce,ve,ge,me,xe],(function(t){i(function(t){if(t.type===me)return du;if(t.type===xe)return t.persisted?du:pu;return hu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:dt(_t(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function hu(){return"hidden"===document.visibilityState?fu:document.hasFocus()?cu:lu}function mu(t,e){var n=gu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Qt(dt(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}};return{customerContext:gu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Ye.ACTION,view:{in_foreground:e.wasInPageStateAt(cu,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:gu(t)?{event:t.event,events:t.events}:{}}}function gu(t){return t.type!==Qe}var yu=1,_u=2;function bu(t,e){var n,r=0,i=[],o=0,a=[],s=or(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),Po("Worker responses received out of order."))}})).stop;function u(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return I(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}function wu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=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]),h=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]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(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 m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(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)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;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},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=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]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=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===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,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(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&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<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[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=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(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)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,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},N=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}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={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"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=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))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=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-kt)){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,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),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=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(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<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(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-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(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=Et(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=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(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-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||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=et(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=Et(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&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(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=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(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 Kt=[new Rt(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(Lt(t),0===t.lookahead&&e===nt)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,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){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=mt,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),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(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),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(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 Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[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},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(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)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||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=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(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,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(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,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)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+yt;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=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(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,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(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=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=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},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};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 Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.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?Zt:Wt,"[object ArrayBuffer]"===Vt.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===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;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},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(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,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.2.27"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(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}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var Su=0,xu=1,ku=2,Eu=3,Tu={status:Su};function Cu(t,e,n,r){switch(void 0===r&&(r=wu),Tu.status===Su&&function(t,e,n){void 0===n&&(n=wu);try{var r=n(t),i=or(r,"error",(function(n){Iu(t,e,n)})),a=or(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Iu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Tu.status===xu&&(Tu={status:Eu,worker:Tu.worker,version:e,stop:Tu.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Tu.status===xu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Tu.initializationFailureCallbacks.forEach((function(t){t()})),Tu={status:ku})}(e)}),1e4),Tu={status:xu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Iu(t,e,n)}}(t,e,r),Tu.status){case xu:return Tu.initializationFailureCallbacks.push(n),Tu.worker;case Eu:return Tu.worker}}function Ou(){return Tu.status}function Iu(t,e,n,r){if(Tu.status===xu){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else No(n);Tu.status===xu&&Tu.initializationFailureCallbacks.forEach((function(t){t()})),Tu={status:ku}}else No(n,{worker_version:Tu.status===Eu&&Tu.version,stream_id:r});var a}function Au(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=Go);var a=function(t,e){return o({encoder:e.encoder,request:Uo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:Ko({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(_u)},r,i,o);return e.subscribe(Cr,(function(t){t.type===Ye.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Ru(t){return Ru="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},Ru(t)}function Pu(t){var e=function(t,e){if("object"!=Ru(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ru(e)?e:e+""}function Nu(t,e,n){return(e=Pu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mu(Object(n),!0).forEach((function(e){Nu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Du,Uu="synthetics",Bu="user",zu={"view.url":"string","view.referrer":"string"},Vu={context:"object"},ju={service:"string",version:"string"},$u={};function Hu(t,e,n,r,i,a,s,u,c,l){$u[Ye.VIEW]=Lu(Lu({},Vu),zu),$u[Ye.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Vu,zu,ju),$u[Ye.RESOURCE]=I({"resource.url":"string"},Vu,zu,ju),$u[Ye.ACTION]=I({"action.target.name":"string"},Vu,zu,ju),$u[Ye.LONG_TASK]=I({},Vu,zu);var f={};f[Ye.ERROR]=zr(Ye.ERROR,t.eventRateLimiterThreshold,l),f[Ye.ACTION]=zr(Ye.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Tr,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),k={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(kt()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:re,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Bu:Uu,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(d=v,-1!==[Ye.ERROR,Ye.RESOURCE,Ye.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},E=Vt(P(k,y,v)),T=P({},x.context,y.context,m);H(T)||(E.context=T),"has_replay"in E.session||(E.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(E.session.has_replay=E.session.has_replay&&b.sessionHasError),"view"===E.type&&(E.session.sampled_for_error_replay=b.errorSessionReplayAllowed,E.session.sampled_for_error_session=b.isErrorSession,E.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(E.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Dr(t,$u[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Ye.VIEW)return!1;!1===i&&o.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(E,t.beforeSend,g,f)&&(H(E.context)&&delete E.context,e.notify(Cr,E))}}))}function Fu(){return Du||(Du=new er((function(t){var e=Q((function(){t.notify(Wu())}),200).throttled;return or(window,Ie,e,{capture:!0,passive:!0}).stop}))),Du}function Wu(){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 qu=ni;var Gu=ni;function Qu(e,n,r,i){var o=new er;!function(e){var n=ir([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Pn((function(e,n){t.notify(Gn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:vn,source:Fn,handling:pn}))}))}(o),function(t,e){var n=cr(0,[sr]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:qn,handling:pn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(wr,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Or,{error:t})})),function(t,e){return t.subscribe(Or,(function(n){t.notify(Tr,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),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:Ye.ERROR,view:{in_foreground:e.wasInPageStateAt(cu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=Gn({stackTrace:r instanceof Error?wn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:hn,source:Wn,handling:dn});t.notify(Or,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function Ku(){if(gs(ds)){var t=performance.getEntriesByType(ds)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:ds,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function Xu(t,e,n){return void 0===n&&(n=Ku),function(t){var e,n=Yi("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function Ju(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(gs(hs)){var n=performance.getEntriesByType(hs).filter((function(t){return"hidden"===t.name})).find((function(e){return e.startTime>=t.relative}));if(n)return{getTimeStamp:function(){return n.startTime},stop:ot}}var r=1/0,i=ar(e,[xe,ve],(function(t){t.type!==xe&&"hidden"!==document.visibilityState||(r=t.timeStamp,i())}),{capture:!0}).stop;return{getTimeStamp:function(){return r},stop:function(){i()}}}function Yu(t,e,n,r){var i={},o=Xu(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=Ju(e),s=o.stop,u=function(t,e,n){return{stop:ms(t,{type:ps,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===ps&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r){var i=1/0,o=ar(n,[_e,se],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=ms(t,{type:us,buffered:!0}).subscribe((function(n){var o,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===us&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=Hs(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n){var r=ms(t,{type:ss,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===ss&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&Gi(i.target)&&(o=Hs(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var Zu=st;function tc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=Zu);return new er((function(t){function n(){var e,n,r,i;t.notify((e=to(),n=Wu().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(u(r.throttled));i&&o.observe(i);var a=or(window,le,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function ec(t,e,n){if(!ac())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=oc||i.startTime-t>=5*ic?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=ms(t,{type:cs,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=nc(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&Hs(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function nc(t){if(t){var e=At(t,(function(t){return!!t.node&&Gi(t.node)}));return e&&e.node}}var rc,ic=5e3,oc=st;function ac(){return gs(cs)&&"WeakRef"in window}var sc=0,uc=1/0,cc=0;var lc=function(){return rc?sc:window.performance.interactionCount||0};function fc(t,e,n){if(!(gs("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||rc||(rc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(uc=Math.min(uc,e.interactionId),cc=Math.max(cc,e.interactionId),sc=(cc-uc)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===en?0:lc(),n={stopped:!1};function r(){return lc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),u=p.startTime,d=ru.get(u),ru.delete(u),!(r=d)&&p.target&&Gi(p.target)&&(r=Hs(p.target,t.actionNameAttribute)))}var p=ms(t,{type:ss,buffered:!0}).subscribe(d),v=ms(t,{type:as,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function dc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===en,s=!0,u=[],c=Ju(i);function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()-i.relative&&o(t)}}var f=bs(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=tc(0,o,(function(t){a.scroll=t})).stop,f=ec(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=fc(n,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var pc,vc=3e5,hc=3e5;function mc(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new er,v={},m=0,_=A(r),b=sa(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(hr,S),t.notify(mr,S);var x=Q(H,3e3,{leading:!1}),k=x.throttled,E=x.cancel,T=dc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===en?Yu(n,o,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=ys({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,vc),V=t.subscribe(xr,(function(t){t.reason===Wi.UNLOADING&&H()}));function j(){t.notify(yr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),k()}function H(){E(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(gr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(_r,{endClocks:s}),t.notify(br,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),hc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.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,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(en,bt(),a);return e.subscribe(wr,(function(){l=u(nn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(Sr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!qt(n.hash)&&Gt(n.hash)!==Gt(e.hash))return l.end(),void(l=u(nn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(nn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function gc(t,e,n,r,i,o,a,s){return t.subscribe(gr,(function(n){t.notify(Tr,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:Ye.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Qt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:yc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),mc(n,t,r,e,i,!e.trackViewsManually,s)}function yc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&i>e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&o>r&&(c.dom=dt(o-r)),c}}function _c(){this.buffer=new Uint8Array(8),bc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function bc(){return window.crypto||window.msCrypto}function wc(t,e){if(this._spanId=new _c,this._traceId=new _c,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Sc(){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 xc(t,e,n){if(this._spanId=Sc(),this._traceId=Sc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function kc(t,e){if(this._traceId=new _c,this._spanId=new _c,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Ec(t,e){if(this._traceId=new _c,this._spanId=new _c,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Tc(t,e){if(this._traceId=new _c,this._spanId=new _c,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Cc(t,e,n){if(this._traceId=new _c,this._spanId=new _c,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Oc(t,e){return 100===e||0!==e&&(pc&&t===pc.sessionId?pc.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),pc={sessionId:t,decision:n},n));var n}function Ic(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Ac(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a=Oc(i.id,t.tracingSampleRate);if(a){var s;switch(o.traceType){case on:s=new wc(t,a);break;case ln:s=new xc(t,e.url,a);break;case an:s=new Tc(t,a);break;case fn:s=new kc(t,a);break;case un:s=new Cc(t,a);break;case cn:s=new Cc(t,a,!0);break;case sn:s=new Ec(t,a)}if(s&&s.isTracingSupported()){e.traceId=s.getTraceId(),e.spanId=s.getSpanId(),e.traceSampled=a;var u=s.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}}_c.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:function(){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]}},wc.prototype={isTracingSupported:function(){return void 0!==bc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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()}}},xc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},kc.prototype={isTracingSupported:function(){return void 0!==bc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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()}}},Ec.prototype={isTracingSupported:function(){return void 0!==bc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Tc.prototype={isTracingSupported:function(){return void 0!==bc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Cc.prototype={isTracingSupported:function(){return void 0!==bc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId: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?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Rc=1;function Pc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Ic,traceFetch:function(n){return Ac(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Ac(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=$i().subscribe((function(r){var i=r;if(ts(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Nc(),t.notify(kr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Er,{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:rn.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=Vi().subscribe((function(r){var i=r;if(ts(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Nc(),t.notify(kr,{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(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(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(u((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Er,{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:rn.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Nc(){var t=Rc;return Rc+=1,t}var Mc=new wa;function Lc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!Mc.has(t)}));n=U(n,(function(t){return Ka(t)&&Xa(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Dc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Dc(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?(Mc.add(r),r.toJSON()):void 0}}}function Dc(t){return St(t.startTime,t.duration)}function Uc(t,e){Yi("interactive",(function(){var t=I(Ku().toJSON(),{entryType:vs,initiatorType:za,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function Bc(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Wr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Uc),t.subscribe(Er,(function(t){a((function(){return function(t,e){var n=Lc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===rn.XHR?Be:Ve,a=n?Vc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(du,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:ns(t.url)?rs(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&Ha(n),protocol:n&&Fa(n)},type:Ye.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=ms(e,{type:vs,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||qa(t.name,e.resourceUrlLimit)||a((function(){return zc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(Tr,n)}))}return i(e,(function(t){a((function(){return zc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function zc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=ja(t),a=Vc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:Ha(t),protocol:Fa(t)},type:Ye.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Vc(t){return{resource:P({},{duration:Ga(t)},Za(t),Qa(t))}}var jc={sdkVersion:"3.2.27",sdkName:"df_web_rum_sdk"};function $c(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,on)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=Hc(n,$t(t.traceType,on));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=Hc(n,$t(t.traceType,on));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Oi(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:$t(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&f(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&f(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,on),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(Ci,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Ci.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,jc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function Hc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(jr(e))}:"function"==typeof t&&(n=function(e){return t(jr(e))}),void 0!==n)return{match:n,traceType:e};o.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Fc(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Kt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=ta();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=Jo())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){Ao({type:xo,configuration:t})}(rt(t)),s)Sa("DATAFLUX_RUM",t);else{var n=$c(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,Vi().subscribe(ot),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||ti("guance-synthetics-injects-rum"))||(t.remoteConfiguration?Li(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var Wc=2,qc=3,Gc=4,Qc=6,Kc=7,Xc=8,Jc=9,Yc=0,Zc=1,tl=2,el=3,nl=4,rl=11,il=0,ol=1,al=2,sl=3,ul=4,cl=5,ll=6,fl=7,dl=8,pl=0,vl=1,hl=2,ml=3,gl=4,yl=5,_l=6,bl=7,wl=9,Sl=0,xl=1,kl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Ci.ALLOW,MASK:Ci.MASK,MASK_USER_INPUT:Ci.MASK_USER_INPUT},El="data-gc-privacy",Tl="hidden",Cl="***",Ol={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Il(t,e,n){if(n&&n.has(t))return n.get(t);var r=Ji(t),i=r?Il(r,e):e,o=Al(Rl(t),i);return n&&n.set(t,o),o}function Al(t,e){switch(e){case kl.HIDDEN:case kl.IGNORE:return e}switch(t){case kl.ALLOW:case kl.MASK:case kl.MASK_USER_INPUT:case kl.HIDDEN:case kl.IGNORE:return t;default:return e}}function Rl(t){if(Gi(t)){var e=t.getAttribute(El);if("BASE"===t.tagName)return kl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return kl.MASK;if("hidden"===n.type)return kl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return kl.MASK}return e===Tl||t.classList.contains("gc-privacy-hidden")?kl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?kl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?kl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?kl.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)?kl.IGNORE:void 0}}function Pl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case kl.MASK:case kl.HIDDEN:case kl.IGNORE:return!0;case kl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Nl(e.parentNode):Nl(e);default:return!1}}function Nl(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!!Ol[e.tagName]}function Ml(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=Cl;else if(r===kl.HIDDEN)o=Cl;else if(Pl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Cl:o.replace(/\S/g,"x");return o}}var Ll=new WeakMap;function Dl(t){return Ll.has(t)}function Ul(t){return Ll.get(t)}function Bl(t,e,n){var r=e.tagName,i=e.value;if(Pl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return Cl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var zl=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Vl=/^[A-Za-z]+:|^\/\//,jl=/^data:.*,/i;function $l(t,e){return t.replace(zl,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Vl.test(s)||jl.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(".concat(u).concat(function(t,e){try{return $r(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Hl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?$l(((n=Array.from(e,Bt()===Dt?Wl:Fl).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 Fl(t){return function(t){return"styleSheet"in t}(t)&&Hl(t.styleSheet)||t.cssText}function Wl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Fl(t)}function ql(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Gl(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ql=/^[^ \t\n\r\u000c]+/,Kl=/^[, \t\n\r\u000c]+/;var Xl=0,Jl=1,Yl=2;function Zl(t,e,n){return tf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function tf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Yc,childNodes:ef(t,e),adoptedStyleSheets:ql(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Ki(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:rl,childNodes:ef(t,e),isShadowRoot:n,adoptedStyleSheets:n?ql(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:Zc,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=af(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Al(Rl(t),e.parentNodePrivacyLevel);var o;if(i===kl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:tl,tagName:n,attributes:Nu({rr_width:s+"px",rr_height:u+"px"},El,Tl),childNodes:[],isSVG:r}}if(i===kl.IGNORE)return;var c=function(t,e,n){if(e===kl.HIDDEN)return{};for(var r={},i=af(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=nf(t,e,s,n.configuration);null!==u&&(r[s]=sf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Bl(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===kl.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=Hl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Hl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===kl.ALLOW?r.checked=!!h.checked:Pl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Xl:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Jl:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Qi(t)}(t)&&"style"!==n){l=ef(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:tl,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Ml(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:el,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:nl,textContent:""}}var n}(t,e);if(!n)return null;var r=Ul(t)||rf++,i=n;return i.id=r,function(t,e){Ll.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function ef(t,e){var n=[];return Xi(t,(function(t){var r=tf(t,e);r&&n.push(r)})),n}function nf(t,e,n,r){if(e===kl.HIDDEN)return null;var i=t.getAttribute(n);if(e===kl.MASK&&n!==El&&!Vs.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Cl}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return Cl;if(i&&Ft(n,"data-"))return Cl;if("IFRAME"===o&&"srcdoc"===n)return Cl}return i&&"string"==typeof i&&ns(i)?rs(i):i}var rf=1;var of=/[^a-z1-6-_]/;function af(t){var e=(t+"").toLowerCase().trim();return of.test(e)?"div":e}function sf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Gl(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(Kl),!(n>=e.length);){var o=r(Ql);if(","===o.slice(-1))o=Gl(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Gl(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?$l(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Gl(t,r):r:Gl(t,r):r;var i}function uf(t){return Boolean(t.changedTouches)}function cf(t,e){return{data:I({source:t},e),type:qc,timestamp:gt()}}function lf(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function ff(t,e,n,r){var i=Ua();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=Wr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){df(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Dl(e)&&!Ki(e))return!1;e=Ji(e)}return!0}(t.target)&&Il(t.target,n.defaultPrivacyLevel,i)!==kl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.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 l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Il(h.parentNode,e.defaultPrivacyLevel,r);if(m!==kl.HIDDEN&&m!==kl.IGNORE){var g=tf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:Yl,shadowRootsController:n},configuration:e});if(g){var y=Ji(h);d.push({nextId:w(h),parentId:Ul(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Dl(e)&&_.push({parentId:Ul(t),id:Ul(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Dl(t)&&f.has(Ul(t))}function w(t){for(var e=t.nextSibling;e;){if(Dl(e))return Ul(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Dl(t)&&c.has(Ul(t))}var f=function(t,e,n){for(var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,s=o;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=Il(Ji(u.target),e.defaultPrivacyLevel,n);c!==kl.HIDDEN&&c!==kl.IGNORE&&r.push({id:Ul(u.target),value:$t(Ml(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Il(c.target,e.defaultPrivacyLevel,n),d=nf(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=Bl(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Ul(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(u(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 df(t,e){Qi(t)&&e(t.shadowRoot),Xi(t,(function(t){return df(t,e)}))}var pf=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},vf=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}},hf=new WeakMap,mf=1;function gf(t){return hf.has(t)||hf.set(t,mf++),hf.get(t)}function yf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,ff(e,n,r,document)),u=function(t){var e=Q((function(e){var n=Sf(e);if(Dl(n)){var r=bf(e);if(!r)return;var i={id:Ul(n),timeOffset:0,x:r.x,y:r.y};t([i],uf(e)?ll:ol)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=ar(document,[Ee,pe],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=Sf(n);if(Il(r,e.defaultPrivacyLevel)!==kl.HIDDEN&&Dl(r)){var i,o=Ul(r),a=_f[n.type];if(a!==_l&&a!==yl){var s=bf(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:gf(n)},cf(al,i));t(u)}};return ar(document,Object.keys(_f),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=Sf(r);if(i&&Il(i,e.defaultPrivacyLevel)!==kl.HIDDEN&&Dl(i)){var o=Ul(i),a=i===document?{scrollTop:to(),scrollLeft:Zi()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=or(document,le,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Fu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=wf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=Sf(n);r&&Il(r,e.defaultPrivacyLevel)!==kl.HIDDEN&&Dl(r)&&t({id:Ul(r),type:n.type===Pe?Sl:xl})};return ar(document,[Pe,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Dl(t.ownerNode)&&e(Ul(t.ownerNode))}var n=[Yn(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t({id:e,adds:[{rule:o,index:a}]})}))})),Yn(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:i}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(Yn(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=lf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Yn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=lf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,ar(window,[Te,Ce],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(vf())}),200,{trailing:!1}),n=ar(window.visualViewport,[Ie,le],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(Tr,(function(t){t.rawRumEvent.type===Ye.ACTION&&t.rawRumEvent.action.type===Ge&&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&&a({timestamp:t.rawRumEvent.date,type:Jc,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return gf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var _f=Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu({},be,pl),ke,vl),oe,hl),Oe,ml),ae,gl),Te,yl),Ce,_l),fe,bl),de,wl);function bf(t){var e=uf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=pf(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function wf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=ar(n,o?[Ae]:[Re,Ae],(function(t){var e=Sf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Zn(HTMLInputElement.prototype,"value",c),Zn(HTMLInputElement.prototype,"checked",c),Zn(HTMLSelectElement.prototype,"value",c),Zn(HTMLTextAreaElement.prototype,"value",c),Zn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Il(t,e.defaultPrivacyLevel);if(n!==kl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Pl(e,t,n))return;r={isChecked:t.checked}}else{var o=Bl(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Dl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Ul(e)},n)))}}}function Sf(t){return!0===t.composed&&Qi(t.target)?t.composedPath()[0]:t.target}function xf(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(cf(il,t))},o=function(t){e(cf(cl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=ff(n,t,o,e),s=a.flush,u=a.stop,c=wf(r,t,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}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:Xl,elementsScrollPositions:r,shadowRootsController:a});var o=Wu(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Gc,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Qc,timestamp:n}),e({data:{node:Zl(document,t.configuration,i),initialOffset:{left:Zi(),top:to()}},type:Wc,timestamp:n}),window.visualViewport&&e({data:vf(),type:Xc,timestamp:n})};s();var u=yf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(cf(fl,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(cf(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(cf(sl,t))},styleSheetCb:function(t){e(cf(dl,t))},viewportResizeCb:function(t){e(cf(ul,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Qc,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:Xc,timestamp:gt()})},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:Jl,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function kf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Ef(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Ef(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Ru(r)&&null!==r?Ef(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Tf;function Cf(t){return Of(t).segments_count}function Of(t){var e;return Tf||(Tf=new Map),Tf.has(t)?e=Tf.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Tf.set(t,e),Tf.size>10&&If()),e}function If(){if(Tf)if(Tf.keys)Tf.delete(Tf.keys().next().value);else{var t=!0;Tf.forEach((function(e,n){t&&(Tf.delete(n),t=!1)}))}}function Af(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Cf(o),source:"browser"},e);return function(t){Of(t).segments_count+=1}(o),{addRecord:function(t,e){a.start=Math.min(a.start,t.timestamp),a.end=Math.max(a.end,t.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=t.type===Wc),function(t){Of(t).records_count+=1}(a.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(a).slice(1)+"\n"),r.finish((function(e){!function(t,e){Of(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Rf=6e4;function Pf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Nf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(mr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(xr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Nf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=kf(r.output,e,r.rawBytesCount);qi(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Nf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Nf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Nf.Stopped){if(o.status===Nf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Nf.SegmentPending,segment:Af({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>Rf&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var Nf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Mf=0,Lf=1,Df=2,Uf=3;var Bf,zf,Vf,jf,$f=function(t,e){if(ta()&&!Zo(Yo)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Mf},r=function(){n={status:Lf}},i=function(){n={status:Mf}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(Sr,(function(){n.status!==Df&&n.status!==Uf||(i(),n={status:Lf})})),o.subscribe(xr,(function(t){t.reason===Wi.UNLOADING&&i()})),o.subscribe(wr,(function(){n.status===Lf&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==Df&&n.status!==Uf&&(n={status:Df},Yi("interactive",(function(){if(n.status===Df){var r=(l||(c||(c=Cu(a,"Session Replay",(function(){i()}),e)),c&&(l=bu(c,yu))),l);if(r){var f=t(o,a,s,u,r);n={status:Uf,stopRecording:f.stop}}else n={status:Mf}}}))):n={status:Lf}},i=function(){n.status!==Mf&&(n.status===Uf&&n.stopRecording(),n={status:Mf})},n.status===Lf&&r()},isRecording:function(){return Ou()===Eu&&n.status===Uf},getReplayStats:function(t){return Ou()===Eu?function(t){return Tf&&Tf.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Uo(e.sessionReplayEndPoint,Rf,e.retryMaxSize,(function(e){t.notify(Or,{error:e}),Po("Error reported to customer",{"error.message":e.message})}));if(ta()){var d=(u=r,c=Jo(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=xf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Pf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=xf({emit:function(t){if(a(t),v)if(t.type===Wc)y=t;else if(t.type===qc){t.timestamp-y.timestamp>6e4&&m((function(){If(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(_r,(function(){b(),a({timestamp:gt(),type:Kc})}));l.push(w.unsubscribe);var S=t.subscribe(mr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),Hf=function(t,e,n){void 0===n&&(n={});var r=ga(va),i=sa("global",{customerDataTracker:r.getOrCreateTracker(ca)}),a=sa("user",{customerDataTracker:r.getOrCreateTracker(ua),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Fc(n,l,(function(o,s,u){o.storeContextsToLocal&&(pa(o,i,"rum",ca),pa(o,a,"rum",ua)),r.setCompressionStatus(s?ha:ma);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:_a);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Sa("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,c),c})),v=u((function(t){var e="object"===Ru(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(la).updateCustomerData(e.context),Mo({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),Mo({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),Mo({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),Mo({feature:"set-view-context-property"})})),getViewContext:u((function(){return Mo({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),Mo({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),Mo({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:u((function(){return i.getContext()})),getGlobalContext:u((function(){return i.getContext()})),setRumGlobalContext:u((function(t){i.setContext(t),Mo({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),Mo({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addAction:u((function(t,e){var n=Qn();c((function(){p.addAction({name:Un(t),context:Un(e),startClocks:mt(),type:Qe,handlingStack:n}),Mo({feature:"add-action"})}))})),addError:u((function(t,e){var n=Qn();c((function(){p.addError({error:t,handlingStack:n,context:Un(e),startClocks:mt()}),Mo({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Un(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(ba(t)),Mo({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=ba(n)[t];a.setContextProperty(t,r),Mo({feature:"set-user"})})),removeUserProperty:u((function(t){return a.removeContextProperty(t)})),removeUser:u((function(){return a.clearContext()})),clearUser:u((function(){return a.clearContext()})),startView:v,stopSession:u((function(){p.stopSession(),Mo({feature:"stop-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Mo({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return s},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new Ir,c=function(t){var e=Ro(Oo,t);return e}(t),l=function(t){s.notify(Or,{error:t})},f=new er((function(t){var e=ar(window,[ve,me],(function(e){e.type===ve&&"hidden"===document.visibilityState?t.notify({reason:Wi.HIDDEN}):e.type===me&&t.notify({reason:Wi.FROZEN})}),{capture:!0}),n=or(window,ie,(function(){t.notify({reason:Wi.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(xr,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=ta()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:xa,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!Zo(Yo),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new er,setErrorForSession:function(){}}}():Na(t,s);if(ta())!function(t){var e=Jo();t.subscribe(Cr,(function(t){var n=qo(t).rowData;e.send("rum",n)}))}(s);else{var p=Au(t,s,c.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Da(t),m=(v=Ua(),new er((function(t){if(v){var e=new v(u((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Ba(location),y=vu(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Zt({expireDelay:Gu});return t.subscribe(hr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(br,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(yr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(wr,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Zt({expireDelay:qu});t.subscribe(hr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(br,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();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 n&&!qt(n)&&(e="/"+Gt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:J(e),urlQuery:Z(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(vr,(function(e){t.notify(Tr,mu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=ou(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Tr,R({savedCommonContext:n},mu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=Wu(),{get:function(){return{viewport:m}},stop:Fu().subscribe((function(t){m=t})).unsubscribe});var m;return Hu(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,k=_.addAction;a.push(x),Io.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var E=gc(s,t,location,m,g,y,e,i),T=E.addTiming,C=E.startView,O=E.setViewName,I=E.setViewContext,A=E.setViewContextProperty,P=E.getViewContext,N=E.stop;a.push(N);var M=Bc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(fs)){var L=function(t,e){var n=ms(e,{type:fs,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:tn,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:Ye.LONG_TASK};t.notify(Tr,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=ms(e,{type:ls,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==ls)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Ze,duration:dt(r.duration)},type:Ye.LONG_TASK};t.notify(Tr,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=Qu(s,0,d,y).addError;Pc(s,t,d);var U=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),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:k,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),$f,{startDeflateWorker:Cu,createDeflateEncoder:bu});Bf=p(),Vf=Hf,jf=Bf[zf="DATAFLUX_RUM"],Bf[zf]=Vf,jf&&jf.q&&O(jf.q,(function(t){f(t,"onReady callback threw an error:")()}))}();