@cloudcare/browser-rum 3.2.48 → 3.2.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/domMutationObservable.js +8 -6
- package/cjs/domain/domMutationObservable.js.map +1 -1
- package/cjs/domain/replay/record/mutationObserver.js +10 -8
- package/cjs/domain/replay/record/mutationObserver.js.map +1 -1
- package/cjs/domain/waitPageActivityEnd.js +1 -1
- package/cjs/domain/waitPageActivityEnd.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/domMutationObservable.js +8 -6
- package/esm/domain/domMutationObservable.js.map +1 -1
- package/esm/domain/replay/record/mutationObserver.js +10 -8
- package/esm/domain/replay/record/mutationObserver.js.map +1 -1
- package/esm/domain/waitPageActivityEnd.js +1 -1
- package/esm/domain/waitPageActivityEnd.js.map +1 -1
- package/package.json +4 -4
- package/src/domain/domMutationObservable.js +9 -6
- package/src/domain/replay/record/mutationObserver.js +10 -9
- package/src/domain/waitPageActivityEnd.js +1 -4
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]||ot}));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]&&(H(e[n])&&H(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}))},H=function(t){return null!==t&&"[object Object]"===x.call(t)},$=function(t){if(H(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},q=function(t){return"[object String]"===x.call(t)},W=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&&H(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 Ht(Nt,Nt=function(t){var e,n;void 0===t&&(t=window||{});var r=(null===(e=t)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)||"";if(t.chrome||/HeadlessChrome/.test(r))return Lt;if(0===(null===(n=t.navigator.vendor)||void 0===n?void 0:n.indexOf("Apple"))||/safari/i.test(r)&&!/chrome|android/i.test(r))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 Ht(t,e){return null!=t?t:e}function $t(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 qt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function Wt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){qt(t,e)},drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(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 Xt&&(Xt=g((function(){return i()}),6e4)),Jt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Kt,remove:function(){qt(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=Kt),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===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),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(){Jt.delete(i),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}var Zt={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"]}},te={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=Zt.navigator.userAgent||"",n=te.getMatchMap(e);for(var r in Zt.infoMap)for(var i=0;i<Zt.infoMap[r].length;i++){var o=Zt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return te.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=Zt.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}})),getDeviceType:u((function(){var t=this;return t.device="PC",te.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=(Zt.navigator.browserLanguage||Zt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){return}})),getBrowserInfo:u((function(){var t=this;te.matchInfoMap(t);var e=Zt.navigator.userAgent||"",n=function(t,e){var n=Zt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=te.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")||Zt.navigator&&Zt.navigator.connection&&void 0===Zt.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)}))}))},ee={};"undefined"!=typeof window&&(ee={os:te.getOS(),osVersion:te.getOSVersion().version,osVersionMajor:te.getOSVersion().osMajor,browser:te.getBrowserInfo().browser,browserVersion:te.getBrowserInfo().browserVersion,browserVersionMajor:te.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:te.getNetwork(),device:te.getDeviceType(),timeZone:te.getTimeZone(),userAgent:Zt.navigator.userAgent||""});var ne=ee,re="beforeunload",ie="click",oe="dblclick",ae="keydown",se="load",ue="popstate",ce="scroll",le="touchstart",fe="touchend",de="touchmove",pe="visibilitychange",ve="prerenderingchange",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",He="js",$e="image",Fe="font",qe="media",We="other",Ge="custom",Qe="click",Ke="custom",Xe="rage_click",Je="error_click",Ye="dead_click",Ze={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},tn="long-task",en="long-animation-frame",nn="initial_load",rn="route_change",on={FETCH:Ve,XHR:Be},an="ddtrace",sn="zipkin",un="zipkin_single_header",cn="w3c_traceparent",ln="w3c_traceparent_64bit",fn="skywalking_v3",dn="jaeger",pn="handled",vn="unhandled",hn="Uncaught",mn="Provided";function gn(t){return gn="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},gn(t)}function yn(t,e,n){if("object"!==gn(t)||null===t)return JSON.stringify(t);var r=_n(Object.prototype),i=_n(Array.prototype),o=_n(Object.getPrototypeOf(t)),a=_n(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function _n(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function bn(t){return bn="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},bn(t)}var wn="?";function Sn(t){var e=[],n=Rn(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=Tn.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]||wn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:wn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=On.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||wn,line:+e[3],url:e[2]}}(t)||function(t){var e=In.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=An.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]||wn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=wn),e.push(n))})),{message:Rn(t,"message"),name:Rn(t,"name"),stack:e}}var xn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",kn="(?::(\\d+))",En=new RegExp("^\\s*at (.*?) ?\\("+xn+kn+"?"+kn+"?\\)?\\s*$","i"),Tn=new RegExp("\\((\\S*)"+kn+kn+"\\)");var Cn=new RegExp("^\\s*at ?"+xn+kn+"?"+kn+"??\\s*$","i");var On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var In=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,An=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Rn(t,e){if("object"===bn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Pn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Nn(t){var e=function(t){return Zn(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=Sn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Pn.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,Ht(u,i))}))}(t),n=function(t){return Zn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Sn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Mn=1024,Ln=/[^\u0000-\u007F]/;function Dn(t){return Ln.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Un(t){return Un="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},Un(t)}function Bn(t,e){void 0===e&&(e=225280);var n=_n(Object.prototype),r=_n(Array.prototype),i=[],o=new WeakMap,a=zn(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=zn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){jn(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=zn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){jn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}jn(e,"discarded",t)}function zn(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"!==Un(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Un(t))return"[Symbol] "+t.description||0;return t}(o);var a=Vn(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 Vn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Vn(n.currentTarget):null,target:n.target?Vn(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 jn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Hn="No stack, consider using an instance of Error",$n="agent",Fn="console",qn="source",Wn="custom",Gn="report";function Qn(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+" "+yn(Bn(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)?Xn(e):Hn,f=u?Yn(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 Kn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=Sn(e);n.stack=n.stack.slice(2),t=Xn(n)})),t}function Xn(t){var e=Jn(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 Jn(t){return(t.name||"Error")+": "+t.message}function Yn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Sn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Xn(i)}),n=n.cause}return r.length?r:void 0}function Zn(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?Kn():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 tr(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 er=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};er.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 nr=er;function rr(){var t=[].slice.call(arguments);return new nr((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 ir={};function or(e){var n=B(e,(function(e){return ir[e]||(ir[e]=function(e){return new nr((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Kn();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 Jn(Sn(t));return yn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Xn(Sn(a)):void 0,causes:a?Yn(a,"console"):void 0,startClocks:mt(),message:o,source:Fn,handling:pn,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),ir[e]}));return rr.apply(this,n)}function ar(t,e,n,r){return sr(t,[e],n,r)}function sr(t,e,n,r){var i=u(r&&r.once?function(t){o(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture,O(e,(function(e){ur(t,"addEventListener",(function(n){return n.call(t,e,i,r)}))}));var o=function(){O(e,(function(e){ur(t,"removeEventListener",(function(n){return n.call(t,e,i,r)}))}))};return{stop:o}}function ur(t,e,n){var r=v(window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,e);try{n(r)}catch(r){if(function(t,e){return t instanceof Error&&(t.message.includes("Illegal invocation")||t.message.includes("'".concat(e,"' called on an object that does not implement interface EventTarget."))||t.message.includes("Can only call EventTarget.".concat(e," on instances of EventTarget")))}(r,e))return n(t[e]);throw r}}var cr="intervention",lr="csp_violation";function fr(t,e){var n=[];It(e,lr)&&n.push(new nr((function(t){return ar(document,Me,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return dr({type:t.effectiveDirective,message:lr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:pr(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!==lr}));return r.length&&n.push(function(t){return new nr((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 dr({type:e.id,message:n+": "+e.message,originalError:t,stack:pr(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)),rr.apply(this,n)}function dr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function pr(t,e,n,r,i){return n&&Xn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var vr=function(){this._events=[],this.pendingEvents=[]};vr.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 vr;var hr,mr,gr="AUTO_ACTION_COMPLETED",yr="BEFORE_VIEW_CREATED",_r="VIEW_CREATED",br="VIEW_UPDATED",wr="BEFORE_VIEW_UPDATED",Sr="VIEW_ENDED",xr="AFTER_VIEW_ENDED",kr="SESSION_RENEWED",Er="SESSION_EXPIRED",Tr="PAGE_EXITED",Cr="REQUEST_STARTED",Or="REQUEST_COMPLETED",Ir="RAW_RUM_EVENT_COLLECTED",Ar="RUM_EVENT_COLLECTED",Rr="RAW_ERROR_COLLECTED";function Pr(){this.callbacks={}}function Nr(t){return Br(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dr(t)||Lr()}function Mr(t,e){return Br(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)||Dr(t,e)||Lr()}function Lr(){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 Dr(t,e){if(t){if("string"==typeof t)return Ur(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)?Ur(t,e):void 0}}function Ur(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 Br(t){if(Array.isArray(t))return t}function zr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Mr(e,2),i=n[0],o=n[1];return Vr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Vr(t,e,n,r){var i=Nr(n),o=i[0],a=i.slice(1);if("[]"!==o){if(jr(t)&&jr(e))return a.length>0?Vr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Bn(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 Vr(t,e[n],a,r)}))}function jr(t){return"object"===et(t)}function Hr(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 $r(t){return qr(t,zt(window.location)).href}function Fr(t){return zt(qr(t))}function qr(t,e){if(function(){if(void 0!==hr)return hr;try{var t=new URL("http://test/path");return hr="http://test/path"===t.href}catch(t){hr=!1}return hr}())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}Pr.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 Wr=(null===(mr=navigator)||void 0===mr||null===(mr=mr.userAgent)||void 0===mr?void 0:mr.toLowerCase())||"",Gr=function(){return/iphone os/.test(Wr)};function Qr(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,Kr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Kr=50;var Xr,Jr=/^\s+|\s+$/g,Yr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Zr(t,e){var n=Yr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+ti(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?ti(r)+"v1/write"+n:ti(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function ti(t){return t.replace(Jr,"")}function ei(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 ni(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=ei(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function ri(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,ei(t,e))}function ii(t,e){ni(t,"",0,e)}var oi=144e5,ai=9e5,si="_gc_s",ui="cookie",ci="local-storage";function li(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 fi(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)?fi(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 fi(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 di=/^([a-zA-Z]+)=([a-z0-9-]+)$/,pi="&";function vi(t){return $(t)}function hi(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<oi)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function mi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function gi(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(pi)||di.test(t))}(t)&&t.split(pi).forEach((function(t){var n=di.exec(t);if(null!==n){var r=li(n,3),i=r[1],o=r[2];e[i]=o}})),e}function yi(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===Xr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ri(t,{domain:n});)n="".concat(e.pop(),".").concat(n),ni(t,"test",st,{domain:n});ii(t,{domain:n}),Xr=n}return Xr}());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";ni(e,n,ut,t);var r=ri(e,t)===n;return ii(e,t),r}catch(t){return!1}}(e)?{type:ui,cookieOptions:e}:void 0}function _i(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){ni(si,mi(t),ai,e)}),retrieveSession:bi(t),expireSession:function(){return function(t){ni(si,mi({isExpired:"1"}),oi,t)}(t)}}}function bi(t){return function(){return gi(ri(si,t))}}function wi(){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:ci}:void 0}catch(t){return}}function Si(t){localStorage.setItem(si,mi(t))}function xi(){return gi(localStorage.getItem(si))}function ki(){Si({isExpired:"1"})}function Ei(){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 Ti="log",Ci="configuration",Oi="usage",Ii="debug",Ai="error",Ri=["https://static.guance.com","http://localhost","<anonymous>"],Pi="browser-rum-sdk",Ni=Qt(),Mi=function(t){Ni.add((function(){Mi(t)}))};function Li(t,e){var n,i=new nr,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Mi=function(r){var u=yn(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.48",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:Ei()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Ui,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Di(t,e){l(t,e),Mi(I({type:Ti,message:t,status:Ii},e))}function Ui(t,e){Mi(I({type:Ti,status:Ai},function(t){if(t instanceof Error){var e=Sn(t);return{error:{kind:e.name,stack:Xn(zi(e))},message:e.message}}return{error:{stack:Hn},message:hn+" "+yn(t)}}(t),e))}function Bi(t){Mi({type:Oi,usage:t})}function zi(t){return t.stack=t.stack.filter((function(t){return!t.url||Ri.some((function(e){return Ft(t.url,e)}))})),t}var Vi=["lock"];function ji(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 Hi(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)?Hi(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 Hi(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 $i,Fi="--",qi=[];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{session:function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Vi),lock:n&&!Ki(n)?n:void 0}};if($i||($i=t),t===$i){if(r&&n>=100)return Di("Aborted session operation after max lock retries",{currentStore:s()}),void Qi(e);var u,c=s();if(r){if(c.lock)return void Gi(t,e,n);if(u=X()+Fi+gt(),a(c.session),(c=s()).lock!==u)return void Gi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Gi(t,e,n);else{if(l&&(hi(l)?o():(l.expire=String(yt()+ai),r?a(l):i(l))),r&&(!l||!hi(l))){if((c=s()).lock!==u)return void Gi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),Qi(e)}}else qi.push(t)}function Gi(t,e,n){h((function(){Wi(t,e,n+1)}),10)}function Qi(t){$i=void 0;var e=qi.shift();e&&Wi(e,t)}function Ki(t){var e=ji(t.split(Fi),2)[1];return!e||_t(Number(e),gt())>1e3}var Xi=st;function Ji(t){switch(t.sessionPersistence){case ui:return yi(t);case ci:return wi();case void 0:var e=yi(t);return!e&&t.allowFallbackToLocalStorage&&(e=wi()),e;default:o.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function Yi(t,e,n){var r,i=new nr,o=new nr,a=new nr,s=t.type===ui?_i(t.cookieOptions):{isLockEnabled:!1,persistSession:Si,retrieveSession:xi,expireSession:ki},u=s.expireSession,c=g((function(){Wi({process:function(t){return hi(t)?{isExpired:"1"}:void 0},after:p},s)}),Xi);v();var l=Q((function(){Wi({process:function(t){if(!vi(t)){var r=p(t);return function(t){if(vi(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){vi(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),Xi),f=l.throttled,d=l.cancel;function p(t){return hi(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(vi(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 Zi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function to(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=Ht(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Ji(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:Ht(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ht(t.telemetrySampleRate,100),telemetryEnabled:Ht(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:Ht(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&W(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&W(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Zr(t,"rum"),logsEndpoint:Zr(t,"log"),sessionReplayEndPoint:Zr(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 eo(t){return eo="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},eo(t)}function no(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 ro(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?no(Object(n),!0).forEach((function(e){io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function io(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=eo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oo(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 ao(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)?ao(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 ao(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 so(t,e){!function(t,e){var n=new XMLHttpRequest;ar(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),po()})),ar(n,"error",(function(){e({}),po()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+ti(e));var n=e;n=e.lastIndexOf("/")===e.length-1?ti(e)+"v1/env_variable":ti(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=fo(t,e);return ro(ro({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=oo(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,lo))}(t,n),fo(t,n))}))}var uo,co,lo={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 fo(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return n}function po(){o.error("Error fetching the remote configuration.")}function vo(){return uo||(uo=new nr((function(t){if(window.fetch){var e=Zn(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:$r(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}}))),uo}var ho=new WeakMap;function mo(){return co||(co=new nr((function(t){var e=Zn(XMLHttpRequest.prototype,"open",go),n=Zn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=ho.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=Zn(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=ar(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Zn(XMLHttpRequest.prototype,"setRequestHeader",yo),i=Zn(XMLHttpRequest.prototype,"abort",_o);return function(){e.stop(),n.stop(),i.stop(),r.stop()}}))),co}function go(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];ho.set(e,{state:"open",method:String(n).toUpperCase(),url:$r(String(r))})}function yo(t){var e=t.target,n=t.parameters[0],r=t.parameters[1],i=ho.get(e);if(i&&n){var o=i.requestHeaderContexts||{};o[n]=r,i.requestHeaderContexts=o}}function _o(t){var e=t.target,n=ho.get(e);n&&(n.isAborted=!0)}var bo={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function wo(t){return It(D(bo),t)}function So(t){return t.nodeType===Node.ELEMENT_NODE}function xo(t){return So(t)&&Boolean(t.shadowRoot)}function ko(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&So(e.host)}function Eo(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;xo(t)&&e(t.shadowRoot)}function To(t){return ko(t)?t.host:t.parentNode}function Co(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):ar(window,"complete"===t?se:ye,e,{once:!0})}function Oo(){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 Io(){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 Ao={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_is_forced:"session.is_forced_session",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",user_agent:"device.user_agent",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",view_path_name:"view.pathname"},Ro={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"},Po={view:{type:Ze.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",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:Ze.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:Ze.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:Ze.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:Ze.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:Ze.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"]}}},No=ut,Mo=oi,Lo=[];function Do(t,e,n){var r=new nr,i=new nr,o=Yi(t.sessionStoreStrategyType,e,n);Lo.push((function(){return o.stop()}));var a,s=Yt({expireDelay:Mo});function u(){var t=o.getSession();return t?{id:t.id,trackingType:t[e],hasError:!!t.hasError,isSessionForced:!!t.forcedSession}:{id:"invalid",trackingType:"0",isSessionForced:!1,hasError:!1}}return Lo.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=sr(window,[ie,le,ae,ce],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,Lo.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=ar(document,pe,e).stop;Lo.push(n);var r=g(e,No);Lo.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=ar(window,ge,t,{capture:!0}).stop;Lo.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=20971520,Bo=st,zo=0,Vo=1,jo=2,Ho=0,$o=1;function Fo(t,e,n,r,i){e.transportStatus===zo&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Wo(t,e,n,{onSuccess:function(){return Go(Ho,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),qo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function qo(t,e,n,r){t.transportStatus===jo&&h((function(){Wo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Bo,Go($o,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),qo(t,e,n,r)}})}),t.currentBackoffTime)}function Wo(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=zo,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Vo:jo,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function Go(t,e,n,r,i){t===Ho&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 20MiB",source:$n,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Qo();o.size()>0;)Fo(o.dequeue(),e,n,r,i)}function Qo(){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 Ko(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Xo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:zo,currentBackoffTime:Bo,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:Qo(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Ko(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"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},i={"x-client-timestamp":Date.now().toString()};e.type&&(i["Content-Type"]=e.type);r.headers=i,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else Yo(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=Ko(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){Jo||(Jo=!0,Ui(t))}(t)}Yo(o,n)}(t,e,n)}}}var Jo=!1;function Yo(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),i.setRequestHeader("x-client-timestamp",Date.now().toString()),ar(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Zo(t){return Zo="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},Zo(t)}function ta(t){if("object"===Zo(t)&&t)t=yn(t);else if(!q(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function ea(t,e){return"object"===Zo(t)&&t?t=yn(t):e&&(t=""+t),t}function na(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function ra(t){return"object"===Zo(t)&&t?na(yn(t)):q(t)?na(t):t}function ia(t){return function(t){if(Array.isArray(t))return oa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return oa(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)?oa(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oa(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 aa="custom_keys",sa=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(Po,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ao,i.tags),u=["date","type",aa];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=ea(i,!0),a.push(ta(r)+"="+ta(i)))}));var c=[],l=R({},Ro,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]=ea(o),c.push(ta(r)+"="+ra(o)))}else if(q(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=ea(o),c.push(ta(r)+"="+ra(o)))}})),t.context&&H(t.context)&&!$(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]=ea(t),c.push(ta(n)+"="+ra(t))))})),f.length&&(e.fields[aa]=ea(f),c.push(ta(aa)+"="+ra(f)))}t.type===Ze.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=ea(t),c.push(ta(n)+"="+ra(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 ua(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=wo(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(ca(u,i));var l=[].concat(ia(u.pendingData),[r]).filter(Boolean).join("\n");l&&a({data:l,bytesCount:Dn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(ca(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?yn(sa(t).rowData):sa(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 ca(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 la(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe((function(t){return d(t.reason)})),u=a.subscribe((function(){return d("session_expire")})),c=new nr((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,f=0;function d(t){if(0!==f){var e=f,n=l;f=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){m(e),e=void 0}return{flushObservable:c,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){l+t>=r&&d("bytes_limit"),f+=1,l+=t,void 0===e&&(e=h((function(){d("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&p()}}}function fa(){return p().FTWebViewJavascriptBridge}function da(){var t=fa();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;try{t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}catch(t){}}}}var pa="records";function va(t){var e=da();return!!e&&e.getCapabilities().includes(t)}function ha(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=fa();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=da();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ma(t){return ma="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},ma(t)}function ga(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 ya(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)?ya(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 ya(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 _a(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 ba(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ma(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ma(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wa(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?_a(Object(n),!0).forEach((function(e){ba(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_a(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=ga(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 nr,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Bn(wa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Bn(wa(ba({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),wa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var xa="user",ka="global context",Ea="view",Ta="_gc_s",Ca=[];function Oa(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&q(t.storeContextsKey)?Ta+"_"+e+"_"+n+"_"+t.storeContextsKey:Ta+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return Ca.push(ar(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 Ia=0,Aa=1,Ra=2;function Pa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ra,e=new Map,n=!1;function r(){if(!n&&t!==Ia){var r=t===Ra?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/Mn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=Na((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,Na(r)),e.get(t)},setCompressionStatus:function(e){t===Ia&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function Na(t){var e=0,n=Q((function(n){e=Dn(yn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){$(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function Ma(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Dn(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 La(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Da(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Ua(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Da.prototype.add=function(t){return this.map.set(t,1),this},Da.prototype.delete=function(t){return this.map.delete(t)},Da.prototype.has=function(t){return this.map.has(t)};var Ba=1,za=2,Va=3,ja="0",Ha="1",$a="2",Fa="3",qa="4",Wa="5",Ga="6";function Qa(t,e){var n=Do(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===ja||t===Wa||t===Ga||t===qa||t===$a||t===Fa||t===Ha}(e)?u||s?s&&c?n=Ha:s&&l?n=Fa:!s||c||l?u&&c?n=qa:u&&l?n=Ga:!u||c||l||(n=Wa):n=$a:n=ja:n=e;return{trackingType:n,isTracked:Ka(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Er)})),n.renewObservable.subscribe((function(){e.notify(kr)})),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())}if(!e.forcedSession&&r.forcedSession){var o=n.findSession();o&&(o.isSessionForced=!0)}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&(Ka(e.trackingType)||e.isSessionForced)){var r=e.trackingType===Wa||e.trackingType===qa||e.trackingType===Ga,i=Ba;return e.trackingType===Ha||e.trackingType===qa?i=za:e.trackingType!==Ga&&e.trackingType!==Fa||(i=Va),{id:e.id,plan:i,errorSessionReplayAllowed:i===Va,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,isSessionForced:e.isSessionForced,sessionReplayAllowed:i===za||i===Va||e.isSessionForced}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})},setForcedSession:function(){n.updateSessionState({forcedSession:"1"})}}}function Ka(t){return t!==ja}var Xa="_gc_usr_id";var Ja=function(t){return t.sessionStoreStrategyType?(e=t.sessionStoreStrategyType.type===ui?function(t){var e=ri(Xa,t);return e||(e=X(),ni(Xa,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Xa);return t||(t=X(),localStorage.setItem(Xa,t)),t}(),{getId:function(){return e}}):{getId:ot};var e};function Ya(){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 Za(t){var e=A(t);return new nr((function(n){var r,i,o,a,s=(r=c,i=Zn(ts("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),o=Zn(ts("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=ar(window,ue,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=ar(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()}}))}function ts(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var es="initial_document",ns=[[Ue,function(t){return es===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)}],[He,function(t,e){return null!==e.match(/\.js$/i)}],[$e,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)}],[qe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function rs(t){var e=t.name;if(!function(t){try{return!!qr(t)}catch(t){return!1}}(e))return We;var n=function(t){var e=qr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=We;return O(ns,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function is(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function os(t){return""===t.deliveryType?"other":t.deliveryType}function as(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var ss=/[^\u0000-\u007F]/;function us(t,e){return n=t,(ss.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function cs(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function ls(t){if(ds(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:vs(e,f,d),firstByteTime:vs(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=vs(e,s,c),is(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=vs(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=vs(e,o,a)),ps(t)&&(p.redirect=ft(i-r),p.redirectTime=vs(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function fs(t){return t.duration>=0}function ds(t){var e=is(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!ps(t)||is(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function ps(t){return t.redirectEnd>t.startTime}function vs(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function hs(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 ms(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 gs=/data:(.+)?(;base64)?,/g;function ys(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function _s(t){return t.match(gs)[0]+"[...]"}function bs(t,e){var n=yt(),r=!1,i=sr(window,[ie,ke,ae,le,_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){sr(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 ws,Ss="event",xs="first-input",ks="largest-contentful-paint",Es="layout-shift",Ts="longtask",Cs="long-animation-frame",Os="navigation",Is="paint",As="resource",Rs="visibility-state";function Ps(t,e){return new nr((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!==As||ms(t,e.name)&&fs(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([As,Os,Ts,Is],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(){!ws&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(ws=ar(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!Ns(xs)&&e.type===xs){var c=bs(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function Ns(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Ms(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(Ar,(function(t){if(t.type!==Ze.VIEW&&n(t))switch(t.type){case Ze.ERROR:i.errorCount+=1,r();break;case Ze.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Ze.LONG_TASK:i.longTaskCount+=1,r();break;case Ze.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Ls=100;function Ds(t,e,n,r,i){var o=function(t,e,n){return new nr((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),Ps(n,{type:As}).subscribe((function(t){z(t,(function(t){return!Us(n,t.name)}))&&u()})),t.subscribe(Cr,(function(t){Us(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Or,(function(t){Us(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Zn(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 Us(t,e){return V(t.excludedActivityUrls,e)}var Bs=st,zs=0,Vs=1,js=2;function Hs(t,e){var n,r=[],i=zs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,Bs)}function a(){i===Vs&&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=js,e(r))}function s(){m(n),i===zs&&(i=Vs,a())}return o(t),{tryAppend:function(t){return i===zs&&(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<=Bs))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var $s="data-guance-action-name";function Fs(t,e){return qs(t,$s)||e&&qs(t,e)||Js(t,e,Qs)||Js(t,e,Ks)||""}function qs(t,e){var n;if(function(){void 0===Gs&&(Gs="closest"in HTMLElement.prototype);return Gs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Zs(Ys(n.getAttribute(e).trim()))}var Ws,Gs,Qs=[function(t,e){if(function(){void 0===Ws&&(Ws="labels"in HTMLInputElement.prototype);return Ws}()){if("labels"in t&&t.labels&&t.labels.length>0)return tu(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&&tu(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 tu(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 tu(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 tu(t.options[0],e)}],Ks=[function(t,e){return tu(t,e)}],Xs=10;function Js(t,e,n){for(var r=t,i=0;i<=Xs&&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 Zs(Ys(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Ys(t){return t.replace(/\s+/g," ")}function Zs(t){return t.length>100?Ct(t,100)+" [...]":t}function tu(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("["+$s+"]"),e&&r("["+e+"]"),n}return t.textContent}}var eu,nu=[$s,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ru=[su,function(t){if(t.id&&!au(t.id))return"#"+j(t.id)}],iu=[su,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(!au(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function ou(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=cu(r,ru,lu,e,n);if(i)return i;n=cu(r,iu,fu,e,n)||du(uu(r),n),r=r.parentElement}return n}}function au(t){return/[0-9]/.test(t)}function su(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<nu.length;n++){var r;if(r=i(nu[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function uu(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 cu(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 du(a,i)}}function lu(t,e,n){return 1===t.ownerDocument.querySelectorAll(du(e,n)).length}function fu(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===eu)try{document.querySelector(":scope"),eu=!0}catch(t){eu=!1}return eu}()?du("".concat(e,":scope"),n):du(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 du(t,e){return e?t+">"+e:t}function pu(){var t=window.getSelection();return!t||t.isCollapsed}function vu(t){return t.target instanceof Element&&!1!==t.isPrimary}function hu(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(Xe),z(t,gu)&&e.addFrustration(Ye),e.hasError()&&e.addFrustration(Je),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Je),gu(t)&&!n&&t.addFrustration(Ye)})),{isRage:!1}}var mu='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 gu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=mu,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var yu=1e4,_u=new Map;function bu(t,e){_u.set(t,e),_u.forEach((function(t,e){_t(e,ht())>1e4&&_u.delete(e)}))}function wu(t,e,n){var r,i=new Yt({expireDelay:3e5}),o=new nr;t.subscribe(kr,(function(){i.reset()})),t.subscribe(Sr,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=ou(i.target,o))&&bu(i.timeStamp,s),{type:Qe,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:Fs(i.target,o)}),c=!1;return Ds(e,n,t,(function(t){c=t.hadActivity}),Ls),{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=xu(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&bu(s.timeStamp,f);var d=Ds(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()}),yu),p=d.stop,v=e.subscribe(Sr,(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=[ar(window,_e,(function(t){vu(t)&&(s=pu(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),ar(window,Le,(function(){s&&pu()||(c.selection=!0)}),{capture:!0}),ar(window,be,(function(t){if(vu(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),ar(window,ce,(function(){c.scroll=!0}),{capture:!0,passive:!0}),ar(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=Hs(t,(function(t){!function(t,e){var n=hu(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 Su={ONGOING:0,STOPPED:1,FINALIZED:2};function xu(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=Ms({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=Su.ONGOING,f=[],d=new nr;function p(t){l===Su.ONGOING&&(o=t,l=Su.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===Su.STOPPED||l===Su.FINALIZED},clone:function(){return xu(t,e,n,r,i)},validate:function(e){if(p(),l===Su.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:Qe,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:Ht(e,[i]),event:i},r);t.notify(gr,h),l=Su.FINALIZED}},discard:function(){p(),l=Su.FINALIZED}}}var ku=oi,Eu="active",Tu="passive",Cu="hidden",Ou="frozen",Iu="terminated";function Au(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:ku,maxEntries:4e3});Ns(Rs)&&performance.getEntriesByType(Rs).forEach((function(t){i("hidden"===t.name?Cu:Eu,t.startTime)}));i(Ru(),ht());var r=sr(window,[he,Te,Ce,pe,ge,me,xe],(function(t){i(function(t){if(t.type===me)return Ou;if(t.type===xe)return t.persisted?Ou:Iu;return Ru()}(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 Ru(){return"hidden"===document.visibilityState?Cu:document.hasFocus()?Eu:Tu}function Pu(t,e){var n,r=Nu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(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:(null===(n=t.context)||void 0===n?void 0:n.duration)||0}};return{customerContext:Nu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Ze.ACTION,view:{in_foreground:e.wasInPageStateAt(Eu,t.startClocks.relative)}},r),startTime:t.startClocks.relative,domainContext:Nu(t)?{event:t.event,events:t.events}:{}}}function Nu(t){return t.type===Qe}var Mu=1,Lu=2;function Du(t,e){var n,r=0,i=[],o=!0,a=0,s=[],u=ar(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){var a=s[0];a&&(a.id===o.id?(s.shift(),r+=o.additionalBytesCount,i.push(o.result),n=o.trailer,a.writeCallback?a.writeCallback(o.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<o.id&&(u(),Di("Worker responses received out of order.")))}})).stop;function c(){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 l(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,isEmpty:function(){return o},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),o=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data}));return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function Uu(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.48"};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 Bu=0,zu=1,Vu=2,ju=3,Hu={status:Bu};function $u(t,e,n,r){switch(void 0===r&&(r=Uu),Hu.status===Bu&&function(t,e,n){void 0===n&&(n=Uu);try{var r=n(t),i=ar(r,"error",(function(n){qu(t,e,n)})),a=ar(r,"message",(function(t){var e,n=t.data;"errored"===n.type?qu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Hu.status===zu&&(Hu={status:ju,worker:Hu.worker,version:e,stop:Hu.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Hu.status===zu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Hu.initializationFailureCallbacks.forEach((function(t){t()})),Hu={status:Vu})}(e)}),1e4),Hu={status:zu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){qu(t,e,n)}}(t,e,r),Hu.status){case zu:return Hu.initializationFailureCallbacks.push(n),Hu.worker;case ju:return Hu.worker}}function Fu(){return Hu.status}function qu(t,e,n,r){if(Hu.status===zu){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 Ui(n);Hu.status===zu&&Hu.initializationFailureCallbacks.forEach((function(t){t()})),Hu={status:Vu}}else Ui(n,{worker_version:Hu.status===ju&&Hu.version,stream_id:r});var a}function Wu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=ua);var a=function(t,e){return o({encoder:e.encoder,request:Xo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:la({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(Lu)},r,i,o);return e.subscribe(Ar,(function(t){t.type===Ze.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Gu(t){return Gu="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},Gu(t)}function Qu(t){var e=function(t,e){if("object"!=Gu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Gu(e)?e:e+""}function Ku(t,e,n){return(e=Qu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xu(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 Ju(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xu(Object(n),!0).forEach((function(e){Ku(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Yu,Zu="synthetics",tc="user",ec={"view.url":"string","view.referrer":"string"},nc={context:"object"},rc={service:"string",version:"string"},ic={};function oc(t,e,n,r,i,a,s,u,c,l){ic[Ze.VIEW]=Ju(Ju({},nc),ec),ic[Ze.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},nc,ec,rc),ic[Ze.RESOURCE]=I({"resource.url":"string"},nc,ec,rc),ic[Ze.ACTION]=I({"action.target.name":"string"},nc,ec,rc),ic[Ze.LONG_TASK]=I({},nc,ec);var f={};f[Ze.ERROR]=Hr(Ze.ERROR,t.eventRateLimiterThreshold,l),f[Ze.ACTION]=Hr(Ze.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Ir,(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:ne,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?tc:Zu,id:b.id,is_forced_session:b.isSessionForced},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,pathname:_.pathname,urlQuery:_.urlQuery},action:(d=v,-1!==[Ze.ERROR,Ze.RESOURCE,Ze.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);$(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),$(x.user)||(E.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=zr(t,ic[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Ze.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)&&($(E.context)&&delete E.context,e.notify(Ar,E))}}))}function ac(){return Yu||(Yu=new nr((function(t){var e=Q((function(){t.notify(sc())}),200).throttled;return ar(window,Ie,e,{capture:!0,passive:!0}).stop}))),Yu}function sc(){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 uc=oi;var cc=oi;function lc(e,n,r,i){var o=new nr;!function(e){var n=or([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Nn((function(e,n){t.notify(Qn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:hn,source:qn,handling:vn}))}))}(o),function(t,e){var n=fr(0,[cr]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Gn,handling:vn})}))}(0,o);var a=r.findTrackedSession(),s=a&&a.isErrorSession&&a.sessionHasError;return a&&a.isErrorSession&&e.subscribe(kr,(function(){s=!1})),o.subscribe((function(t){a&&a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Rr,{error:t})})),function(t,e){return t.subscribe(Rr,(function(n){t.notify(Ir,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:Ze.ERROR,view:{in_foreground:e.wasInPageStateAt(Eu,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=Qn({stackTrace:r instanceof Error?Sn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:mn,source:Wn,handling:pn});t.notify(Rr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function fc(){if(Ns(Os)){var t=performance.getEntriesByType(Os)[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:Os,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 dc(t,e,n){return void 0===n&&(n=fc),function(t){var e,n=Co("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 pc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState&&!document.prerendering)return{getTimeStamp:function(){return 0},stop:ot};if(Ns(Rs)&&!document.prerendering){var n=performance.getEntriesByType(Rs).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=sr(e,[xe,pe,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 vc(t,e,n,r){var i={},o=dc(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=pc(e),s=o.stop,u=function(t,e,n){return{stop:Ps(t,{type:Is,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===Is&&"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=sr(n,[_e,ae],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Ps(t,{type:ks,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===ks&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=ou(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=Ps(t,{type:xs,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===xs&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&So(i.target)&&(o=ou(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 hc=st;function mc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=hc);return new nr((function(t){function n(){var e,n,r,i;t.notify((e=Io(),n=sc().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=ar(window,ce,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 gc(t,e,n){if(!Sc())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>=wc||i.startTime-t>=5*bc?(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=Ps(t,{type:Es,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=yc(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&&ou(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function yc(t){if(t){var e=At(t,(function(t){return!!t.node&&So(t.node)}));return e&&e.node}}var _c,bc=5e3,wc=st;function Sc(){return Ns(Es)&&"WeakRef"in window}var xc=0,kc=1/0,Ec=0;var Tc=function(){return _c?xc:window.performance.interactionCount||0};function Cc(t,e,n){if(!(Ns("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||_c||(_c=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(kc=Math.min(kc,e.interactionId),Ec=Math.max(Ec,e.interactionId),xc=(Ec-kc)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===nn?0:Tc(),n={stopped:!1};function r(){return Tc()-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=_u.get(u),_u.delete(u),!(r=d)&&p.target&&So(p.target)&&(r=ou(p.target,t.actionNameAttribute)))}var p=Ps(t,{type:xs,buffered:!0}).subscribe(d),v=Ps(t,{type:Ss,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 Oc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===nn,s=!0,u=[],c=pc(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=Ds(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=mc(0,o,(function(t){a.scroll=t})).stop,f=gc(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=Cc(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 Ic,Ac=3e5,Rc=3e5;function Pc(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 nr,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(yr,S),t.notify(_r,S);var x=Q($,3e3,{leading:!1}),k=x.throttled,E=x.cancel,T=Oc(t,e,n,H,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===nn?vc(n,o,C,H):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ms({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,H),U=D.stop,B=D.eventCounts,z=g($,Ac),V=t.subscribe(Tr,(function(t){t.reason===bo.UNLOADING&&$()}));function j(){t.notify(wr,{id:d,name:u,context:b.getContext(),startClocks:o})}function H(){j(),k()}function $(){E(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(br,{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})}$(),b.changeObservable.subscribe(H);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=Ht(e&&e.endClocks,mt()),w=Ht(e&&e.sessionIsActive,!0),t.notify(Sr,{endClocks:s}),t.notify(xr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),$(),h((function(){F.stop()}),Rc))},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,H()}},setViewName:function(t){u=t,$()}};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(nn,bt(),a);return e.subscribe(kr,(function(){l=u(rn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(Er,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;if(n=a,(e=o).pathname!==n.pathname||(r=n.hash,!((i=r.substr(1))&&document.getElementById(i)||Wt(n.hash)===Wt(e.hash))))return l.end(),void(l=u(rn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(rn,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 Nc(t,e,n,r,i,o,a,s){return t.subscribe(br,(function(n){t.notify(Ir,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,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:Ze.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:Gt(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}};$(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:Mc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),Pc(n,t,r,e,i,!e.trackViewsManually,s)}function Mc(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 Lc(){this.buffer=new Uint8Array(8),Dc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Dc(){return window.crypto||window.msCrypto}function Uc(t,e){if(this._spanId=new Lc,this._traceId=new Lc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Bc(){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 zc(t,e,n){if(this._spanId=Bc(),this._traceId=Bc(),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 Vc(t,e){if(this._traceId=new Lc,this._spanId=new Lc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function jc(t,e){if(this._traceId=new Lc,this._spanId=new Lc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Hc(t,e){if(this._traceId=new Lc,this._spanId=new Lc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function $c(t,e,n){if(this._traceId=new Lc,this._spanId=new Lc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Fc(t,e){return 100===e||0!==e&&(Ic&&t===Ic.sessionId?Ic.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),Ic={sessionId:t,decision:n},n));var n}function qc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Wc(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,s=Fc(i.id,t.tracingSampleRate);switch(o.traceType){case an:a=new Uc(t,s);break;case fn:a=new zc(t,e.url,s);break;case sn:a=new Hc(t,s);break;case dn:a=new Vc(t,s);break;case cn:a=new $c(t,s);break;case ln:a=new $c(t,s,!0);break;case un:a=new jc(t,s)}if(a&&a.isTracingSupported()){e.traceId=a.getTraceId(),e.spanId=a.getSpanId(),e.traceSampled=s;var u=a.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)}}}}Lc.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]}},Uc.prototype={isTracingSupported:function(){return void 0!==Dc()},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()}}},zc.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()}}},Vc.prototype={isTracingSupported:function(){return void 0!==Dc()},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()}}},jc.prototype={isTracingSupported:function(){return void 0!==Dc()},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()}}},Hc.prototype={isTracingSupported:function(){return void 0!==Dc()},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"}}},$c.prototype={isTracingSupported:function(){return void 0!==Dc()},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 Gc=1;function Qc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:qc,traceFetch:function(n){return Wc(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 Wc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=mo().subscribe((function(r){var i=r;if(ms(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Kc(),t.notify(Cr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Or,{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:on.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,requestHeaderContexts:i.requestHeaderContexts,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=vo().subscribe((function(r){var i=r;if(ms(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Kc(),t.notify(Cr,{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){var r;n.clearTracingIfNeeded(i),t.notify(Or,{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,requestHeaderContexts:null===(r=i.init)||void 0===r?void 0:r.headers,type:on.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Kc(){var t=Gc;return Gc+=1,t}var Xc=new Da;function Jc(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!Xc.has(t)}));n=U(n,(function(t){return fs(t)&&ds(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Yc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Yc(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?(Xc.add(r),r.toJSON()):void 0}}}function Yc(t){return St(t.startTime,t.duration)}function Zc(t,e){Co("interactive",(function(){var t=I(fc().toJSON(),{entryType:As,initiatorType:es,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function tl(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(){Qr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Zc),t.subscribe(Or,(function(t){a((function(){return function(t,e){var n=Jc(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===on.XHR?Be:Ve,a=n?nl(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(Ou,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:ys(t.url)?_s(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&os(n),protocol:n&&as(n)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,requestHeaderContexts:t.requestHeaderContexts,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=Ps(e,{type:As,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||us(t.name,e.resourceUrlLimit)||a((function(){return el(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(Ir,n)}))}return i(e,(function(t){a((function(){return el(t,e)}))})),{stop:function(){o.unsubscribe()},addResource:function(t,e){a((function(){return R({savedCommonContext:e},function(t){var e={date:t.startClocks.timeStamp,resource:{id:X(),type:t.type},type:Ze.RESOURCE};return{customerContext:t.context,startTime:t.startClocks.relative,rawRumEvent:e,domainContext:{resource:t}}}(t))}))}}}function el(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=rs(t),a=nl(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:os(t),protocol:as(t)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function nl(t){return{resource:P({},{duration:cs(t)},hs(t),ls(t))}}var rl={sdkVersion:"3.2.48",sdkName:"df_web_rum_sdk"};function il(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:Ht(t.traceType,an)}):"object"===et(r=n)&&Ot(r.match)&&q(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=ol(n,Ht(t.traceType,an));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=ol(n,Ht(t.traceType,an));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=to(t);if(r){var i=!!Ht(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ht(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:Ht(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:Ht(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:Ht(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:Ht(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:Ht(t.traceType,an),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:$t(Zi,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Zi.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,rl)}}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 ol(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Fr(e))}:"function"==typeof t&&(n=function(e){return t(Fr(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 al(t,e,n){var r,i,a,s,u,c=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,f=Qt(),d=Qt();function p(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;f.remove(r.callback),t=r.options}var e=n(s,i,t);f.drain(e)}}function v(t,e){var n=ha();if(n&&(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=da())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,u=e,d.drain(u),function(t){Mi({type:Ci,configuration:t})}(rt(t)),s)Ua("DATAFLUX_RUM",t);else{var r=il(t);r&&(n||r.sessionStoreStrategyType?(!r.compressIntakeRequests||r.sendContentTypeByJson||n||!l||(i=l(r,"RUM",ot)))&&(s=r,vo().subscribe(ot),p()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,c&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||ri("guance-synthetics-injects-rum"))||(t.remoteConfiguration?so(t,v):v(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getRemoteConfiguration:function(t){"function"===et(t)&&(u?t(u):d.add(t))},getInternalContext:ot,stopSession:ot,setForcedSession:function(){f.add((function(t){return t.setForcedSession()}))},addTiming:function(t,e){void 0===e&&(e=gt()),f.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};f.add(n),r||(r={options:t,callback:n},p())},setViewName:function(t){f.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){f.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){f.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addTypeAction:function(t,n,r){void 0===r&&(r=e()),f.add((function(e){e.addTypeAction(t,n,r)}))},addAction:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addAction(t,n)}))},addResource:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addResource(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addError(t,n)}))}}}var sl=2,ul=3,cl=4,ll=6,fl=7,dl=8,pl=9,vl=0,hl=1,ml=2,gl=3,yl=4,_l=11,bl=0,wl=1,Sl=2,xl=3,kl=4,El=5,Tl=6,Cl=7,Ol=8,Il=0,Al=1,Rl=2,Pl=3,Nl=4,Ml=5,Ll=6,Dl=7,Ul=9,Bl=0,zl=1,Vl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Zi.ALLOW,MASK:Zi.MASK,MASK_USER_INPUT:Zi.MASK_USER_INPUT},jl="data-gc-privacy",Hl="hidden",$l="***",Fl={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ql(t,e,n){if(n&&n.has(t))return n.get(t);var r=To(t),i=r?ql(r,e):e,o=Wl(Gl(t),i);return n&&n.set(t,o),o}function Wl(t,e){switch(e){case Vl.HIDDEN:case Vl.IGNORE:return e}switch(t){case Vl.ALLOW:case Vl.MASK:case Vl.MASK_USER_INPUT:case Vl.HIDDEN:case Vl.IGNORE:return t;default:return e}}function Gl(t){if(So(t)){var e=t.getAttribute(jl);if("BASE"===t.tagName)return Vl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Vl.MASK;if("hidden"===n.type)return Vl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Vl.MASK}return e===Hl||t.classList.contains("gc-privacy-hidden")?Vl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?Vl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?Vl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?Vl.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)?Vl.IGNORE:void 0}}function Ql(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case Vl.MASK:case Vl.HIDDEN:case Vl.IGNORE:return!0;case Vl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Kl(e.parentNode):Kl(e);default:return!1}}function Kl(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!!Fl[e.tagName]}function Xl(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=$l;else if(r===Vl.HIDDEN)o=$l;else if(Ql(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?$l:o.replace(/\S/g,"x");return o}}var Jl=new WeakMap;function Yl(t){return Jl.has(t)}function Zl(t){return Jl.get(t)}function tf(t,e,n){var r=e.tagName,i=e.value;if(Ql(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 $l}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var ef=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,nf=/^[A-Za-z]+:|^\/\//,rf=/^data:.*,/i;function of(t,e){return t.replace(ef,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||nf.test(s)||rf.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 qr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function af(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?of(((n=Array.from(e,Bt()===Dt?uf:sf).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 sf(t){return function(t){return"styleSheet"in t}(t)&&af(t.styleSheet)||t.cssText}function uf(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return sf(t)}function cf(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 lf(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var ff=/^[^ \t\n\r\u000c]+/,df=/^[, \t\n\r\u000c]+/;var pf=0,vf=1,hf=2;function mf(t,e,n){return gf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function gf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:vl,childNodes:yf(t,e),adoptedStyleSheets:cf(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=ko(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:_l,childNodes:yf(t,e),isShadowRoot:n,adoptedStyleSheets:n?cf(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:hl,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Sf(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Wl(Gl(t),e.parentNodePrivacyLevel);var o;if(i===Vl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:ml,tagName:n,attributes:Ku({rr_width:s+"px",rr_height:u+"px"},jl,Hl),childNodes:[],isSVG:r}}if(i===Vl.IGNORE)return;var c=function(t,e,n){if(e===Vl.HIDDEN)return{};for(var r={},i=Sf(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=_f(t,e,s,n.configuration);null!==u&&(r[s]=xf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=tf(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===Vl.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=af(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=af(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===Vl.ALLOW?r.checked=!!h.checked:Ql(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 pf:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case vf: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||xo(t)}(t)&&"style"!==n){l=yf(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:ml,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Xl(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:gl,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:yl,textContent:""}}var n}(t,e);if(!n)return null;var r=Zl(t)||bf++,i=n;return i.id=r,function(t,e){Jl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function yf(t,e){var n=[];return Eo(t,(function(t){var r=gf(t,e);r&&n.push(r)})),n}function _f(t,e,n,r){if(e===Vl.HIDDEN)return null;var i=t.getAttribute(n);if(e===Vl.MASK&&n!==jl&&!nu.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return $l}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 $l;if(i&&Ft(n,"data-"))return $l;if("IFRAME"===o&&"srcdoc"===n)return $l}return i&&"string"==typeof i&&ys(i)?_s(i):i}var bf=1;var wf=/[^a-z1-6-_]/;function Sf(t){var e=(t+"").toLowerCase().trim();return wf.test(e)?"div":e}function xf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?lf(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(df),!(n>=e.length);){var o=r(ff);if(","===o.slice(-1))o=lf(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=lf(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?of(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?lf(t,r):r:lf(t,r):r;var i}function kf(t){return Boolean(t.changedTouches)}function Ef(t,e){return{data:I({source:t},e),type:ul,timestamp:gt()}}function Tf(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 Cf(t,e,n,r){var i=Ya();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=Qr(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){Of(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Yl(e)&&!ko(e))return!1;e=To(e)}return!0}(t.target)&&ql(t.target,n.defaultPrivacyLevel,i)!==Vl.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=ql(h.parentNode,e.defaultPrivacyLevel,r);if(m!==Vl.HIDDEN&&m!==Vl.IGNORE){var g=gf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:hf,shadowRootsController:n},configuration:e});if(g){var y=To(h);d.push({nextId:w(h),parentId:Zl(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Yl(e)&&_.push({parentId:Zl(t),id:Zl(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Yl(t)&&f.has(Zl(t))}function w(t){for(var e=t.nextSibling;e;){if(Yl(e))return Zl(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 Yl(t)&&c.has(Zl(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=ql(To(u.target),e.defaultPrivacyLevel,n);c!==Vl.HIDDEN&&c!==Vl.IGNORE&&r.push({id:Zl(u.target),value:Ht(Xl(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=ql(c.target,e.defaultPrivacyLevel,n),d=_f(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=tf(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:Zl(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 Of(t,e){xo(t)&&e(t.shadowRoot),Eo(t,(function(t){return Of(t,e)}))}var If=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},Af=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}},Rf=new WeakMap,Pf=1;function Nf(t){return Rf.has(t)||Rf.set(t,Pf++),Rf.get(t)}function Mf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Cf(e,n,r,document)),u=function(t){var e=Q((function(e){var n=Bf(e);if(Yl(n)){var r=Df(e);if(!r)return;var i={id:Zl(n),timeOffset:0,x:r.x,y:r.y};t([i],kf(e)?Tl:wl)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=sr(document,[Ee,de],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=Bf(n);if(ql(r,e.defaultPrivacyLevel)!==Vl.HIDDEN&&Yl(r)){var i,o=Zl(r),a=Lf[n.type];if(a!==Ll&&a!==Ml){var s=Df(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:Nf(n)},Ef(Sl,i));t(u)}};return sr(document,Object.keys(Lf),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=Bf(r);if(i&&ql(i,e.defaultPrivacyLevel)!==Vl.HIDDEN&&Yl(i)){var o=Zl(i),a=i===document?{scrollTop:Io(),scrollLeft:Oo()}:{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=ar(document,ce,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return ac().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=Uf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=Bf(n);r&&ql(r,e.defaultPrivacyLevel)!==Vl.HIDDEN&&Yl(r)&&t({id:Zl(r),type:n.type===Pe?Bl:zl})};return sr(document,[Pe,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Yl(t.ownerNode)&&e(Zl(t.ownerNode))}var n=[Zn(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}]})}))})),Zn(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(Zn(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=Tf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Zn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Tf(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,sr(window,[Te,Ce],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(Af())}),200,{trailing:!1}),n=sr(window.visualViewport,[Ie,ce],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(Ir,(function(t){t.rawRumEvent.type===Ze.ACTION&&t.rawRumEvent.action.type===Qe&&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:pl,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return Nf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var Lf=Ku(Ku(Ku(Ku(Ku(Ku(Ku(Ku(Ku({},be,Il),ke,Al),ie,Rl),Oe,Pl),oe,Nl),Te,Ml),Ce,Ll),le,Dl),fe,Ul);function Df(t){var e=kf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=If(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function Uf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=sr(n,o?[Ae]:[Re,Ae],(function(t){var e=Bf(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=[tr(HTMLInputElement.prototype,"value",c),tr(HTMLInputElement.prototype,"checked",c),tr(HTMLSelectElement.prototype,"value",c),tr(HTMLTextAreaElement.prototype,"value",c),tr(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=ql(t,e.defaultPrivacyLevel);if(n!==Vl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Ql(e,t,n))return;r={isChecked:t.checked}}else{var o=tf(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(Yl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Zl(e)},n)))}}}function Bf(t){return!0===t.composed&&xo(t.target)?t.composedPath()[0]:t.target}function zf(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(Ef(bl,t))},o=function(t){e(Ef(El,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=Cf(n,t,o,e),s=a.flush,u=a.stop,c=Uf(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:pf,elementsScrollPositions:r,shadowRootsController:a});var o=sc(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:cl,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:ll,timestamp:n}),e({data:{node:mf(document,t.configuration,i),initialOffset:{left:Oo(),top:Io()}},type:sl,timestamp:n}),window.visualViewport&&e({data:Af(),type:dl,timestamp:n})};s();var u=Mf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Ef(Cl,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Ef(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Ef(xl,t))},styleSheetCb:function(t){e(Ef(Ol,t))},viewportResizeCb:function(t){e(Ef(kl,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:ll,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:dl,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:vf,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Vf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),jf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function jf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Gu(r)&&null!==r?jf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Hf;function $f(t){return Ff(t).segments_count}function Ff(t){var e;return Hf||(Hf=new Map),Hf.has(t)?e=Hf.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Hf.set(t,e),Hf.size>10&&qf()),e}function qf(){if(Hf)if(Hf.keys)Hf.delete(Hf.keys().next().value);else{var t=!0;Hf.forEach((function(e,n){t&&(Hf.delete(n),t=!1)}))}}function Wf(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:$f(o),source:"browser"},e);return function(t){Ff(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===sl),function(t){Ff(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){Ff(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Gf=6e4;function Qf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Kf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(_r,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(Tr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Kf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=Vf(r.output,e,r.rawBytesCount);wo(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Kf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Kf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Kf.Stopped){if(o.status===Kf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Kf.SegmentPending,segment:Wf({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>Gf&&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 Kf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Xf=0,Jf=1,Yf=2,Zf=3;var td,ed,nd,rd,id=function(t,e){if(ha()&&!va(pa)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,takeSubsequentFullSnapshot:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Xf},r=function(){n={status:Jf}},i=function(){n={status:Xf}},o=function(){};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(a,s,u,c,l){var f;a.subscribe(Er,(function(){n.status!==Yf&&n.status!==Zf||(i(),n={status:Jf})})),a.subscribe(Tr,(function(t){t.reason===bo.UNLOADING&&i()})),a.subscribe(kr,(function(){n.status===Jf&&r()})),r=function(r){var o=u.findTrackedSession();o&&o.sessionReplayAllowed?n.status!==Yf&&n.status!==Zf&&(n={status:Yf},Co("interactive",(function(){if(n.status===Yf){var r=(f||(l||(l=$u(s,"Session Replay",(function(){i()}),e)),l&&(f=Du(l,Mu))),f);if(r){var o=t(a,s,u,c,r);n={status:Zf,stopRecording:o.stop,takeSubsequentFullSnapshot:o.takeSubsequentFullSnapshot}}else n={status:Xf}}}))):n={status:Jf}},i=function(){n.status!==Xf&&(n.status===Zf&&n.stopRecording(),n={status:Xf})},o=function(){n.takeSubsequentFullSnapshot()},n.status===Jf&&r()},takeSubsequentFullSnapshot:function(){o()},isRecording:function(){return Fu()===ju&&n.status===Zf},getReplayStats:function(t){return Fu()===ju?function(t){return Hf&&Hf.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Xo(e.sessionReplayEndPoint,Gf,e.retryMaxSize,(function(e){t.notify(Rr,{error:e}),Di("Error reported to customer",{"error.message":e.message})}));if(ha()){var d=(u=r,c=da(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=zf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Qf(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=zf({emit:function(t){if(a(t),v)if(t.type===sl)y=t;else if(t.type===ul){t.timestamp-y.timestamp>6e4&&m((function(){qf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(Sr,(function(){b(),a({timestamp:gt(),type:fl})}));l.push(w.unsubscribe);var S=t.subscribe(_r,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))},takeSubsequentFullSnapshot:_}})),od=function(t,e,n){void 0===n&&(n={});var r=Pa(Ia),i=Sa("global",{customerDataTracker:r.getOrCreateTracker(ka)}),a=Sa("user",{customerDataTracker:r.getOrCreateTracker(xa),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=al(n,l,(function(o,s,u){o.storeContextsToLocal&&(Oa(o,i,"rum",ka),Oa(o,a,"rum",xa)),r.setCompressionStatus(s?Aa:Ra);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Ma);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Ua("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration(),getRemoteConfiguration:function(e){t.getRemoteConfiguration(e)}},e)}(p,c),c})),v=u((function(t){var e="object"===Gu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(Ea).updateCustomerData(e.context),Bi({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),Bi({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),Bi({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),Bi({feature:"set-view-context-property"})})),getViewContext:u((function(){return Bi({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),Bi({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),Bi({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),Bi({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),Bi({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getRemoteConfiguration:u((function(t){return p.getRemoteConfiguration(t)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addResource:u((function(t){var e=Kn();c((function(){p.addResource({context:Bn(t),startClocks:mt(),type:Ge,handlingStack:e}),Bi({feature:"add-resource"})}))})),addTypeAction:u((function(t,e,n){var r=Kn();c((function(){var i=Bn(e);p.addAction({name:Bn(t),context:Bn(n),startClocks:mt(),type:"string"===et(i)?i:Ke,handlingStack:r}),Bi({feature:"add-type-action"})}))})),addAction:u((function(t,e){var n=Kn();c((function(){p.addAction({name:Bn(t),context:Bn(e),startClocks:mt(),type:Ke,handlingStack:n}),Bi({feature:"add-action"})}))})),addError:u((function(t,e){var n=Kn();c((function(){p.addError({error:t,handlingStack:n,context:Bn(e),startClocks:mt()}),Bi({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Bn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(La(t)),Bi({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=La(n)[t];a.setContextProperty(t,r),Bi({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(),Bi({feature:"stop-session"})})),setForcedSession:u((function(){p.setForcedSession(),Bi({feature:"set-forced-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Bi({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop),takeSubsequentFullSnapshot:u(e.takeSubsequentFullSnapshot)},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 Pr,c=function(t){var e=Li(Pi,t);return e}(t),l=function(t){s.notify(Rr,{error:t})},f=new nr((function(t){var e=sr(window,[pe,me],(function(e){e.type===pe&&"hidden"===document.visibilityState?t.notify({reason:bo.HIDDEN}):e.type===me&&t.notify({reason:bo.FROZEN})}),{capture:!0}),n=ar(window,re,(function(){t.notify({reason:bo.UNLOADING})}));return function(){e.stop(),n.stop()}})),d=f.subscribe((function(t){s.notify(Tr,t)}));a.push((function(){d.unsubscribe()}));var p=ha()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!va(pa),errorSessionReplayAllowed:!1,sessionHasError:!1,isSessionForced:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new nr,setErrorForSession:function(){t.sessionErrorTimestamp=gt(),t.sessionHasError=!0,t.isErrorSession=!0,t.errorSessionReplayAllowed=!0},setForcedSession:ot}}():Qa(t,s);if(ha())!function(t){var e=da();t.subscribe(Ar,(function(t){var n=sa(t).rowData;e.send("rum",n)}))}(s);else{var v=Wu(t,s,c.observable,l,f,p.expireObservable,o);a.push((function(){v.stop()}))}var h,m=Ja(t),g=(h=Ya(),new nr((function(t){if(h){var e=new h(u((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),y=Za(location),_=Au(),b=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Yt({expireDelay:cc});return t.subscribe(yr,(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(xr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(wr,(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(kr,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Yt({expireDelay:uc});t.subscribe(yr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(xr,(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},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+Wt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}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(gr,(function(e){t.notify(Ir,Pu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=wu(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Ir,R({savedCommonContext:n},Pu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=sc(),{get:function(){return{viewport:m}},stop:ac().subscribe((function(t){m=t})).unsubscribe});var m;return oc(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,p,m,_,y,g,r,l),w=b.viewContexts,S=b.urlContexts,x=b.actionContexts,k=b.stop,E=b.addAction;a.push(k),Ni.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:p.findTrackedSession()&&p.findTrackedSession().id},view:{id:w.findView()&&w.findView().id},action:{id:x.findActionId(),ids:x.findAllActionId()}}}));var T=Nc(s,t,location,g,y,_,e,i),C=T.addTiming,O=T.startView,I=T.setViewName,A=T.setViewContext,P=T.setViewContextProperty,N=T.getViewContext,M=T.stop;a.push(M);var L=tl(s,t,_),D=L.addResource;if(a.push(L.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(Cs)){var U=function(t,e){var n=Ps(e,{type:Cs,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:en,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:Ze.LONG_TASK};t.notify(Ir,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(U.stop)}else!function(t,e){var n=Ps(e,{type:Ts,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==Ts)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:tn,duration:dt(r.duration)},type:Ze.LONG_TASK};t.notify(Ir,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var B=lc(s,0,p,_).addError;Qc(s,t,p);var z=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,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,p,w,x,S);return{addResource:D,addAction:E,addError:B,addTiming:C,configuration:t,startView:O,setViewContext:A,setViewContextProperty:P,getViewContext:N,setViewName:I,lifeCycle:s,viewContexts:w,session:p,setForcedSession:function(){p.setForcedSession()},stopSession:function(){p.expire()},getInternalContext:z.get,stop:function(){a.forEach((function(t){t()}))}}}),id,{startDeflateWorker:$u,createDeflateEncoder:Du});td=p(),nd=od,rd=td[ed="DATAFLUX_RUM"],td[ed]=nd,rd&&rd.q&&O(rd.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]||ot}));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){!function(t){if(l(t),r)try{r(t)}catch(t){l(t)}}(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]&&(H(e[n])&&H(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}))},H=function(t){return null!==t&&"[object Object]"===x.call(t)},$=function(t){if(H(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},q=function(t){return"[object String]"===x.call(t)},W=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&&H(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 Ht(Nt,Nt=function(t){var e,n;void 0===t&&(t=window||{});var r=(null===(e=t)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)||"";if(t.chrome||/HeadlessChrome/.test(r))return Lt;if(0===(null===(n=t.navigator.vendor)||void 0===n?void 0:n.indexOf("Apple"))||/safari/i.test(r)&&!/chrome|android/i.test(r))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 Ht(t,e){return null!=t?t:e}function $t(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 qt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function Wt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){qt(t,e)},drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(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 Xt&&(Xt=g((function(){return i()}),6e4)),Jt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Kt,remove:function(){qt(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=Kt),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===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),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(){Jt.delete(i),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}var Zt={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"]}},te={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=Zt.navigator.userAgent||"",n=te.getMatchMap(e);for(var r in Zt.infoMap)for(var i=0;i<Zt.infoMap[r].length;i++){var o=Zt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return te.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=Zt.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}})),getDeviceType:u((function(){var t=this;return t.device="PC",te.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=(Zt.navigator.browserLanguage||Zt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){return}})),getBrowserInfo:u((function(){var t=this;te.matchInfoMap(t);var e=Zt.navigator.userAgent||"",n=function(t,e){var n=Zt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=te.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")||Zt.navigator&&Zt.navigator.connection&&void 0===Zt.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)}))}))},ee={};"undefined"!=typeof window&&(ee={os:te.getOS(),osVersion:te.getOSVersion().version,osVersionMajor:te.getOSVersion().osMajor,browser:te.getBrowserInfo().browser,browserVersion:te.getBrowserInfo().browserVersion,browserVersionMajor:te.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:te.getNetwork(),device:te.getDeviceType(),timeZone:te.getTimeZone(),userAgent:Zt.navigator.userAgent||""});var ne=ee,re="beforeunload",ie="click",oe="dblclick",ae="keydown",se="load",ue="popstate",ce="scroll",le="touchstart",fe="touchend",de="touchmove",pe="visibilitychange",ve="prerenderingchange",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",He="js",$e="image",Fe="font",qe="media",We="other",Ge="custom",Qe="click",Ke="custom",Xe="rage_click",Je="error_click",Ye="dead_click",Ze={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},tn="long-task",en="long-animation-frame",nn="initial_load",rn="route_change",on={FETCH:Ve,XHR:Be},an="ddtrace",sn="zipkin",un="zipkin_single_header",cn="w3c_traceparent",ln="w3c_traceparent_64bit",fn="skywalking_v3",dn="jaeger",pn="handled",vn="unhandled",hn="Uncaught",mn="Provided";function gn(t){return gn="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},gn(t)}function yn(t,e,n){if("object"!==gn(t)||null===t)return JSON.stringify(t);var r=_n(Object.prototype),i=_n(Array.prototype),o=_n(Object.getPrototypeOf(t)),a=_n(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function _n(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function bn(t){return bn="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},bn(t)}var wn="?";function Sn(t){var e=[],n=Rn(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=Tn.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]||wn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:wn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=On.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||wn,line:+e[3],url:e[2]}}(t)||function(t){var e=In.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=An.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]||wn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=wn),e.push(n))})),{message:Rn(t,"message"),name:Rn(t,"name"),stack:e}}var xn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",kn="(?::(\\d+))",En=new RegExp("^\\s*at (.*?) ?\\("+xn+kn+"?"+kn+"?\\)?\\s*$","i"),Tn=new RegExp("\\((\\S*)"+kn+kn+"\\)");var Cn=new RegExp("^\\s*at ?"+xn+kn+"?"+kn+"??\\s*$","i");var On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var In=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,An=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Rn(t,e){if("object"===bn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Pn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Nn(t){var e=function(t){return tr(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=Sn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Pn.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,Ht(u,i))}))}(t),n=function(t){return tr(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Sn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Mn=1024,Ln=/[^\u0000-\u007F]/;function Dn(t){return Ln.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Un(t){return Un="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},Un(t)}function Bn(t,e){void 0===e&&(e=225280);var n=_n(Object.prototype),r=_n(Array.prototype),i=[],o=new WeakMap,a=zn(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=zn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){jn(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=zn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){jn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}jn(e,"discarded",t)}function zn(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"!==Un(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Un(t))return"[Symbol] "+t.description||0;return t}(o);var a=Vn(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 Vn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Vn(n.currentTarget):null,target:n.target?Vn(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 jn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Hn="No stack, consider using an instance of Error",$n="agent",Fn="console",qn="source",Wn="custom",Gn="report";function Qn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=void 0===t.useFallbackStack||t.useFallbackStack,c=Zn(n);!e&&c&&(e=Sn(n));var l=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+yn(Bn(r))}(e,c,o,n);return{startClocks:i,source:a,handling:s,originalError:n,message:l,stack:e?Xn(e):u?Hn:void 0,handlingStack:r,type:e?e.name:void 0,causes:c?Yn(n,a):void 0}}function Kn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=Sn(e);n.stack=n.stack.slice(2),t=Xn(n)})),t}function Xn(t){var e=Jn(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 Jn(t){return(t.name||"Error")+": "+t.message}function Yn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Sn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Xn(i)}),n=n.cause}return r.length?r:void 0}function Zn(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function tr(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?Kn():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 er(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 nr=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};nr.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 rr=nr;function ir(){var t=[].slice.call(arguments);return new rr((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 or={};function ar(e){var n=B(e,(function(e){return or[e]||(or[e]=function(e){return new rr((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Kn();c((function(){n.notify(function(e,n,r){var i=B(e,(function(t){return function(t){if("string"==typeof t)return Bn(t);if(Zn(t))return Jn(Sn(t));return yn(Bn(t),void 0,2)}(t)})).join(" ");if(n===t.error){var o=Qn({originalError:At(e,Zn),startClocks:mt(),message:i,source:Fn,handling:pn,handlingStack:r,nonErrorPrefix:mn,useFallbackStack:!1});return o.message=i,{api:n,message:i,error:o,handlingStack:r}}return{api:n,message:i,error:void 0,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),or[e]}));return ir.apply(this,n)}function sr(t,e,n,r){return ur(t,[e],n,r)}function ur(t,e,n,r){var i=u(r&&r.once?function(t){o(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture,O(e,(function(e){cr(t,"addEventListener",(function(n){return n.call(t,e,i,r)}))}));var o=function(){O(e,(function(e){cr(t,"removeEventListener",(function(n){return n.call(t,e,i,r)}))}))};return{stop:o}}function cr(t,e,n){var r=v(window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,e);try{n(r)}catch(r){if(function(t,e){return t instanceof Error&&(t.message.includes("Illegal invocation")||t.message.includes("'".concat(e,"' called on an object that does not implement interface EventTarget."))||t.message.includes("Can only call EventTarget.".concat(e," on instances of EventTarget")))}(r,e))return n(t[e]);throw r}}var lr="intervention",fr="csp_violation";function dr(t,e){var n=[];It(e,fr)&&n.push(new rr((function(t){return sr(document,Me,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return pr({type:t.effectiveDirective,message:fr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:vr(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!==fr}));return r.length&&n.push(function(t){return new rr((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 pr({type:e.id,message:n+": "+e.message,originalError:t,stack:vr(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)),ir.apply(this,n)}function pr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function vr(t,e,n,r,i){return n&&Xn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var hr=function(){this._events=[],this.pendingEvents=[]};hr.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 hr;var mr,gr,yr="AUTO_ACTION_COMPLETED",_r="BEFORE_VIEW_CREATED",br="VIEW_CREATED",wr="VIEW_UPDATED",Sr="BEFORE_VIEW_UPDATED",xr="VIEW_ENDED",kr="AFTER_VIEW_ENDED",Er="SESSION_RENEWED",Tr="SESSION_EXPIRED",Cr="PAGE_EXITED",Or="REQUEST_STARTED",Ir="REQUEST_COMPLETED",Ar="RAW_RUM_EVENT_COLLECTED",Rr="RUM_EVENT_COLLECTED",Pr="RAW_ERROR_COLLECTED";function Nr(){this.callbacks={}}function Mr(t){return zr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ur(t)||Dr()}function Lr(t,e){return zr(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)||Ur(t,e)||Dr()}function Dr(){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 Ur(t,e){if(t){if("string"==typeof t)return Br(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)?Br(t,e):void 0}}function Br(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 zr(t){if(Array.isArray(t))return t}function Vr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Lr(e,2),i=n[0],o=n[1];return jr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function jr(t,e,n,r){var i=Mr(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Hr(t)&&Hr(e))return a.length>0?jr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Bn(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 jr(t,e[n],a,r)}))}function Hr(t){return"object"===et(t)}function $r(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 Fr(t){return Wr(t,zt(window.location)).href}function qr(t){return zt(Wr(t))}function Wr(t,e){if(function(){if(void 0!==mr)return mr;try{var t=new URL("http://test/path");return mr="http://test/path"===t.href}catch(t){mr=!1}return mr}())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}Nr.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 Gr=(null===(gr=navigator)||void 0===gr||null===(gr=gr.userAgent)||void 0===gr?void 0:gr.toLowerCase())||"",Qr=function(){return/iphone os/.test(Gr)};function Kr(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,Xr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Xr=50;var Jr,Yr=/^\s+|\s+$/g,Zr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function ti(t,e){var n=Zr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+ei(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?ei(r)+"v1/write"+n:ei(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function ei(t){return t.replace(Yr,"")}function ni(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 ri(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=ni(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function ii(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,ni(t,e))}function oi(t,e){ri(t,"",0,e)}var ai=144e5,si=9e5,ui="_gc_s",ci="cookie",li="local-storage";function fi(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 di(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)?di(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 di(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 pi=/^([a-zA-Z]+)=([a-z0-9-]+)$/,vi="&";function hi(t){return $(t)}function mi(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<ai)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function gi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function yi(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(vi)||pi.test(t))}(t)&&t.split(vi).forEach((function(t){var n=pi.exec(t);if(null!==n){var r=fi(n,3),i=r[1],o=r[2];e[i]=o}})),e}function _i(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===Jr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ii(t,{domain:n});)n="".concat(e.pop(),".").concat(n),ri(t,"test",st,{domain:n});oi(t,{domain:n}),Jr=n}return Jr}());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";ri(e,n,ut,t);var r=ii(e,t)===n;return oi(e,t),r}catch(t){return!1}}(e)?{type:ci,cookieOptions:e}:void 0}function bi(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){ri(ui,gi(t),si,e)}),retrieveSession:wi(t),expireSession:function(){return function(t){ri(ui,gi({isExpired:"1"}),ai,t)}(t)}}}function wi(t){return function(){return yi(ii(ui,t))}}function Si(){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:li}:void 0}catch(t){return}}function xi(t){localStorage.setItem(ui,gi(t))}function ki(){return yi(localStorage.getItem(ui))}function Ei(){xi({isExpired:"1"})}function Ti(){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 Ci="log",Oi="configuration",Ii="usage",Ai="debug",Ri="error",Pi=["https://static.guance.com","http://localhost","<anonymous>"],Ni="browser-rum-sdk",Mi=Qt(),Li=function(t){Mi.add((function(){Li(t)}))};function Di(t,e){var n,i=new rr,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Li=function(r){var u=yn(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.51",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:Ti()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Bi,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Ui(t,e){l(t,e),Li(I({type:Ci,message:t,status:Ai},e))}function Bi(t,e){Li(I({type:Ci,status:Ri},function(t){if(t instanceof Error){var e=Sn(t);return{error:{kind:e.name,stack:Xn(Vi(e))},message:e.message}}return{error:{stack:Hn},message:hn+" "+yn(t)}}(t),e))}function zi(t){Li({type:Ii,usage:t})}function Vi(t){return t.stack=t.stack.filter((function(t){return!t.url||Pi.some((function(e){return Ft(t.url,e)}))})),t}var ji=["lock"];function Hi(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 $i(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)?$i(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 $i(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 Fi,qi="--",Wi=[];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{session:function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ji),lock:n&&!Xi(n)?n:void 0}};if(Fi||(Fi=t),t===Fi){if(r&&n>=100)return Ui("Aborted session operation after max lock retries",{currentStore:s()}),void Ki(e);var u,c=s();if(r){if(c.lock)return void Qi(t,e,n);if(u=X()+qi+gt(),a(c.session),(c=s()).lock!==u)return void Qi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Qi(t,e,n);else{if(l&&(mi(l)?o():(l.expire=String(yt()+si),r?a(l):i(l))),r&&(!l||!mi(l))){if((c=s()).lock!==u)return void Qi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),Ki(e)}}else Wi.push(t)}function Qi(t,e,n){h((function(){Gi(t,e,n+1)}),10)}function Ki(t){Fi=void 0;var e=Wi.shift();e&&Gi(e,t)}function Xi(t){var e=Hi(t.split(qi),2)[1];return!e||_t(Number(e),gt())>1e3}var Ji=st;function Yi(t){switch(t.sessionPersistence){case ci:return _i(t);case li:return Si();case void 0:var e=_i(t);return!e&&t.allowFallbackToLocalStorage&&(e=Si()),e;default:o.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function Zi(t,e,n){var r,i=new rr,o=new rr,a=new rr,s=t.type===ci?bi(t.cookieOptions):{isLockEnabled:!1,persistSession:xi,retrieveSession:ki,expireSession:Ei},u=s.expireSession,c=g((function(){Gi({process:function(t){return mi(t)?{isExpired:"1"}:void 0},after:p},s)}),Ji);v();var l=Q((function(){Gi({process:function(t){if(!hi(t)){var r=p(t);return function(t){if(hi(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){hi(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),Ji),f=l.throttled,d=l.cancel;function p(t){return mi(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(hi(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 to={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function eo(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=Ht(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Yi(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:Ht(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ht(t.telemetrySampleRate,100),telemetryEnabled:Ht(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:Ht(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&W(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&W(t.isServerError())&&(n=t.isServerError),{rumEndpoint:ti(t,"rum"),logsEndpoint:ti(t,"log"),sessionReplayEndPoint:ti(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 no(t){return no="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},no(t)}function ro(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 io(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(n),!0).forEach((function(e){oo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function oo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=no(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==no(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ao(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 so(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)?so(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 so(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 uo(t,e){!function(t,e){var n=new XMLHttpRequest;sr(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),vo()})),sr(n,"error",(function(){e({}),vo()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+ei(e));var n=e;n=e.lastIndexOf("/")===e.length-1?ei(e)+"v1/env_variable":ei(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=po(t,e);return io(io({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=ao(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,fo))}(t,n),po(t,n))}))}var co,lo,fo={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 po(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return n}function vo(){o.error("Error fetching the remote configuration.")}function ho(){return co||(co=new rr((function(t){if(window.fetch){var e=tr(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:Fr(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}}))),co}var mo=new WeakMap;function go(){return lo||(lo=new rr((function(t){var e=tr(XMLHttpRequest.prototype,"open",yo),n=tr(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=mo.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=tr(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=sr(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=tr(XMLHttpRequest.prototype,"setRequestHeader",_o),i=tr(XMLHttpRequest.prototype,"abort",bo);return function(){e.stop(),n.stop(),i.stop(),r.stop()}}))),lo}function yo(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];mo.set(e,{state:"open",method:String(n).toUpperCase(),url:Fr(String(r))})}function _o(t){var e=t.target,n=t.parameters[0],r=t.parameters[1],i=mo.get(e);if(i&&n){var o=i.requestHeaderContexts||{};o[n]=r,i.requestHeaderContexts=o}}function bo(t){var e=t.target,n=mo.get(e);n&&(n.isAborted=!0)}var wo={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function So(t){return It(D(wo),t)}function xo(t){return t.nodeType===Node.ELEMENT_NODE}function ko(t){return xo(t)&&Boolean(t.shadowRoot)}function Eo(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&xo(e.host)}function To(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;ko(t)&&e(t.shadowRoot)}function Co(t){return Eo(t)?t.host:t.parentNode}function Oo(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):sr(window,"complete"===t?se:ye,e,{once:!0})}function Io(){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 Ao(){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 Ro={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_is_forced:"session.is_forced_session",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",user_agent:"device.user_agent",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",view_path_name:"view.pathname"},Po={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"},No={view:{type:Ze.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",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:Ze.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:Ze.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:Ze.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:Ze.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:Ze.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"]}}},Mo=ut,Lo=ai,Do=[];function Uo(t,e,n){var r=new rr,i=new rr,o=Zi(t.sessionStoreStrategyType,e,n);Do.push((function(){return o.stop()}));var a,s=Yt({expireDelay:Lo});function u(){var t=o.getSession();return t?{id:t.id,trackingType:t[e],hasError:!!t.hasError,isSessionForced:!!t.forcedSession}:{id:"invalid",trackingType:"0",isSessionForced:!1,hasError:!1}}return Do.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=ur(window,[ie,le,ae,ce],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,Do.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=sr(document,pe,e).stop;Do.push(n);var r=g(e,Mo);Do.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=sr(window,ge,t,{capture:!0}).stop;Do.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 Bo=20971520,zo=st,Vo=0,jo=1,Ho=2,$o=0,Fo=1;function qo(t,e,n,r,i){e.transportStatus===Vo&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Go(t,e,n,{onSuccess:function(){return Qo($o,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Wo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Wo(t,e,n,r){t.transportStatus===Ho&&h((function(){Go(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=zo,Qo(Fo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Wo(t,e,n,r)}})}),t.currentBackoffTime)}function Go(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=Vo,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?jo:Ho,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function Qo(t,e,n,r,i){t===$o&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 20MiB",source:$n,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Ko();o.size()>0;)qo(o.dequeue(),e,n,r,i)}function Ko(){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>=Bo}}}function Xo(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Jo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:Vo,currentBackoffTime:zo,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:Ko(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Xo(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"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},i={"x-client-timestamp":Date.now().toString()};e.type&&(i["Content-Type"]=e.type);r.headers=i,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else Zo(a,n,r)}(t,e,n,r)};return{send:function(e){qo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Xo(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){Yo||(Yo=!0,Bi(t))}(t)}Zo(o,n)}(t,e,n)}}}var Yo=!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),i.setRequestHeader("x-client-timestamp",Date.now().toString()),sr(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function ta(t){return ta="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},ta(t)}function ea(t){if("object"===ta(t)&&t)t=yn(t);else if(!q(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function na(t,e){return"object"===ta(t)&&t?t=yn(t):e&&(t=""+t),t}function ra(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function ia(t){return"object"===ta(t)&&t?ra(yn(t)):q(t)?ra(t):t}function oa(t){return function(t){if(Array.isArray(t))return aa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return aa(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)?aa(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(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 sa="custom_keys",ua=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(No,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ro,i.tags),u=["date","type",sa];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=na(i,!0),a.push(ea(r)+"="+ea(i)))}));var c=[],l=R({},Po,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]=na(o),c.push(ea(r)+"="+ia(o)))}else if(q(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=na(o),c.push(ea(r)+"="+ia(o)))}})),t.context&&H(t.context)&&!$(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]=na(t),c.push(ea(n)+"="+ia(t))))})),f.length&&(e.fields[sa]=na(f),c.push(ea(sa)+"="+ia(f)))}t.type===Ze.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=na(t),c.push(ea(n)+"="+ia(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 ca(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=So(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(la(u,i));var l=[].concat(oa(u.pendingData),[r]).filter(Boolean).join("\n");l&&a({data:l,bytesCount:Dn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(la(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?yn(ua(t).rowData):ua(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 la(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 fa(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe((function(t){return d(t.reason)})),u=a.subscribe((function(){return d("session_expire")})),c=new rr((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,f=0;function d(t){if(0!==f){var e=f,n=l;f=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){m(e),e=void 0}return{flushObservable:c,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){l+t>=r&&d("bytes_limit"),f+=1,l+=t,void 0===e&&(e=h((function(){d("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&p()}}}function da(){return p().FTWebViewJavascriptBridge}function pa(){var t=da();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;try{t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}catch(t){}}}}var va="records";function ha(t){var e=pa();return!!e&&e.getCapabilities().includes(t)}function ma(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=da();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=pa();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ga(t){return ga="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},ga(t)}function ya(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 _a(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)?_a(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 _a(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 ba(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 wa(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ga(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ga(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ga(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(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?ba(Object(n),!0).forEach((function(e){wa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ba(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=ya(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 xa(){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 rr,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Bn(Sa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Bn(Sa(wa({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),Sa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ka="user",Ea="global context",Ta="view",Ca="_gc_s",Oa=[];function Ia(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&q(t.storeContextsKey)?Ca+"_"+e+"_"+n+"_"+t.storeContextsKey:Ca+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return Oa.push(sr(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 Aa=0,Ra=1,Pa=2;function Na(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pa,e=new Map,n=!1;function r(){if(!n&&t!==Aa){var r=t===Pa?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/Mn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=Ma((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,Ma(r)),e.get(t)},setCompressionStatus:function(e){t===Aa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function Ma(t){var e=0,n=Q((function(n){e=Dn(yn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){$(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function La(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Dn(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 Da(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Ua(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Ba(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Ua.prototype.add=function(t){return this.map.set(t,1),this},Ua.prototype.delete=function(t){return this.map.delete(t)},Ua.prototype.has=function(t){return this.map.has(t)};var za=1,Va=2,ja=3,Ha="0",$a="1",Fa="2",qa="3",Wa="4",Ga="5",Qa="6";function Ka(t,e){var n=Uo(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===Ha||t===Ga||t===Qa||t===Wa||t===Fa||t===qa||t===$a}(e)?u||s?s&&c?n=$a:s&&l?n=qa:!s||c||l?u&&c?n=Wa:u&&l?n=Qa:!u||c||l||(n=Ga):n=Fa:n=Ha:n=e;return{trackingType:n,isTracked:Xa(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Tr)})),n.renewObservable.subscribe((function(){e.notify(Er)})),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())}if(!e.forcedSession&&r.forcedSession){var o=n.findSession();o&&(o.isSessionForced=!0)}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&(Xa(e.trackingType)||e.isSessionForced)){var r=e.trackingType===Ga||e.trackingType===Wa||e.trackingType===Qa,i=za;return e.trackingType===$a||e.trackingType===Wa?i=Va:e.trackingType!==Qa&&e.trackingType!==qa||(i=ja),{id:e.id,plan:i,errorSessionReplayAllowed:i===ja,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,isSessionForced:e.isSessionForced,sessionReplayAllowed:i===Va||i===ja||e.isSessionForced}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})},setForcedSession:function(){n.updateSessionState({forcedSession:"1"})}}}function Xa(t){return t!==Ha}var Ja="_gc_usr_id";var Ya=function(t){return t.sessionStoreStrategyType?(e=t.sessionStoreStrategyType.type===ci?function(t){var e=ii(Ja,t);return e||(e=X(),ri(Ja,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Ja);return t||(t=X(),localStorage.setItem(Ja,t)),t}(),{getId:function(){return e}}):{getId:ot};var e};function Za(){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 ts(t){var e=A(t);return new rr((function(n){var r,i,o,a,s=(r=c,i=tr(es("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),o=tr(es("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=sr(window,ue,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=sr(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()}}))}function es(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var ns="initial_document",rs=[[Ue,function(t){return ns===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)}],[He,function(t,e){return null!==e.match(/\.js$/i)}],[$e,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)}],[qe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function is(t){var e=t.name;if(!function(t){try{return!!Wr(t)}catch(t){return!1}}(e))return We;var n=function(t){var e=Wr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=We;return O(rs,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function os(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function as(t){return""===t.deliveryType?"other":t.deliveryType}function ss(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var us=/[^\u0000-\u007F]/;function cs(t,e){return n=t,(us.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ls(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function fs(t){if(ps(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:hs(e,f,d),firstByteTime:hs(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=hs(e,s,c),os(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=hs(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=hs(e,o,a)),vs(t)&&(p.redirect=ft(i-r),p.redirectTime=hs(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function ds(t){return t.duration>=0}function ps(t){var e=os(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!vs(t)||os(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function vs(t){return t.redirectEnd>t.startTime}function hs(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function ms(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 gs(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 ys=/data:(.+)?(;base64)?,/g;function _s(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function bs(t){return t.match(ys)[0]+"[...]"}function ws(t,e){var n=yt(),r=!1,i=ur(window,[ie,ke,ae,le,_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){ur(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 Ss,xs="event",ks="first-input",Es="largest-contentful-paint",Ts="layout-shift",Cs="longtask",Os="long-animation-frame",Is="navigation",As="paint",Rs="resource",Ps="visibility-state";function Ns(t,e){return new rr((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!==Rs||gs(t,e.name)&&ds(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([Rs,Is,Cs,As],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(){!Ss&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Ss=sr(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!Ms(ks)&&e.type===ks){var c=ws(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function Ms(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Ls(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(Rr,(function(t){if(t.type!==Ze.VIEW&&n(t))switch(t.type){case Ze.ERROR:i.errorCount+=1,r();break;case Ze.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Ze.LONG_TASK:i.longTaskCount+=1,r();break;case Ze.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Ds=100;function Us(t,e,n,r,i){var o=function(t,e,n){return new rr((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),Ns(n,{type:Rs}).subscribe((function(t){z(t,(function(t){return!Bs(n,t.name)}))&&u()})),t.subscribe(Or,(function(t){Bs(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Ir,(function(t){Bs(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=tr(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&&u(),e(t))}return{stop:u}}(o,r,i)}function Bs(t,e){return V(t.excludedActivityUrls,e)}var zs=st,Vs=0,js=1,Hs=2;function $s(t,e){var n,r=[],i=Vs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,zs)}function a(){i===js&&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=Hs,e(r))}function s(){m(n),i===Vs&&(i=js,a())}return o(t),{tryAppend:function(t){return i===Vs&&(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<=zs))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Fs="data-guance-action-name";function qs(t,e){return Ws(t,Fs)||e&&Ws(t,e)||Ys(t,e,Ks)||Ys(t,e,Xs)||""}function Ws(t,e){var n;if(function(){void 0===Qs&&(Qs="closest"in HTMLElement.prototype);return Qs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return tu(Zs(n.getAttribute(e).trim()))}var Gs,Qs,Ks=[function(t,e){if(function(){void 0===Gs&&(Gs="labels"in HTMLInputElement.prototype);return Gs}()){if("labels"in t&&t.labels&&t.labels.length>0)return eu(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&&eu(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 eu(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 eu(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 eu(t.options[0],e)}],Xs=[function(t,e){return eu(t,e)}],Js=10;function Ys(t,e,n){for(var r=t,i=0;i<=Js&&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 tu(Zs(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Zs(t){return t.replace(/\s+/g," ")}function tu(t){return t.length>100?Ct(t,100)+" [...]":t}function eu(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("["+Fs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var nu,ru=[Fs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],iu=[uu,function(t){if(t.id&&!su(t.id))return"#"+j(t.id)}],ou=[uu,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(!su(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function au(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=lu(r,iu,fu,e,n);if(i)return i;n=lu(r,ou,du,e,n)||pu(cu(r),n),r=r.parentElement}return n}}function su(t){return/[0-9]/.test(t)}function uu(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ru.length;n++){var r;if(r=i(ru[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function cu(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 lu(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 pu(a,i)}}function fu(t,e,n){return 1===t.ownerDocument.querySelectorAll(pu(e,n)).length}function du(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===nu)try{document.querySelector(":scope"),nu=!0}catch(t){nu=!1}return nu}()?pu("".concat(e,":scope"),n):pu(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 pu(t,e){return e?t+">"+e:t}function vu(){var t=window.getSelection();return!t||t.isCollapsed}function hu(t){return t.target instanceof Element&&!1!==t.isPrimary}function mu(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(Xe),z(t,yu)&&e.addFrustration(Ye),e.hasError()&&e.addFrustration(Je),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Je),yu(t)&&!n&&t.addFrustration(Ye)})),{isRage:!1}}var gu='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 yu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=gu,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var _u=1e4,bu=new Map;function wu(t,e){bu.set(t,e),bu.forEach((function(t,e){_t(e,ht())>1e4&&bu.delete(e)}))}function Su(t,e,n){var r,i=new Yt({expireDelay:3e5}),o=new rr;t.subscribe(Er,(function(){i.reset()})),t.subscribe(xr,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=au(i.target,o))&&wu(i.timeStamp,s),{type:Qe,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:qs(i.target,o)}),c=!1;return Us(e,n,t,(function(t){c=t.hadActivity}),Ds),{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=ku(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&wu(s.timeStamp,f);var d=Us(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()}),_u),p=d.stop,v=e.subscribe(xr,(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=[sr(window,_e,(function(t){hu(t)&&(s=vu(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),sr(window,Le,(function(){s&&vu()||(c.selection=!0)}),{capture:!0}),sr(window,be,(function(t){if(hu(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),sr(window,ce,(function(){c.scroll=!0}),{capture:!0,passive:!0}),sr(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=$s(t,(function(t){!function(t,e){var n=mu(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 xu={ONGOING:0,STOPPED:1,FINALIZED:2};function ku(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=Ls({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=xu.ONGOING,f=[],d=new rr;function p(t){l===xu.ONGOING&&(o=t,l=xu.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===xu.STOPPED||l===xu.FINALIZED},clone:function(){return ku(t,e,n,r,i)},validate:function(e){if(p(),l===xu.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:Qe,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:Ht(e,[i]),event:i},r);t.notify(yr,h),l=xu.FINALIZED}},discard:function(){p(),l=xu.FINALIZED}}}var Eu=ai,Tu="active",Cu="passive",Ou="hidden",Iu="frozen",Au="terminated";function Ru(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:Eu,maxEntries:4e3});Ms(Ps)&&performance.getEntriesByType(Ps).forEach((function(t){i("hidden"===t.name?Ou:Tu,t.startTime)}));i(Pu(),ht());var r=ur(window,[he,Te,Ce,pe,ge,me,xe],(function(t){i(function(t){if(t.type===me)return Iu;if(t.type===xe)return t.persisted?Iu:Au;return Pu()}(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 Pu(){return"hidden"===document.visibilityState?Ou:document.hasFocus()?Tu:Cu}function Nu(t,e){var n,r=Mu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(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:(null===(n=t.context)||void 0===n?void 0:n.duration)||0}};return{customerContext:Mu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Ze.ACTION,view:{in_foreground:e.wasInPageStateAt(Tu,t.startClocks.relative)}},r),startTime:t.startClocks.relative,domainContext:Mu(t)?{event:t.event,events:t.events}:{}}}function Mu(t){return t.type===Qe}var Lu=1,Du=2;function Uu(t,e){var n,r=0,i=[],o=!0,a=0,s=[],u=sr(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){var a=s[0];a&&(a.id===o.id?(s.shift(),r+=o.additionalBytesCount,i.push(o.result),n=o.trailer,a.writeCallback?a.writeCallback(o.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<o.id&&(u(),Ui("Worker responses received out of order.")))}})).stop;function c(){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 l(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,isEmpty:function(){return o},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),o=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data}));return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function Bu(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.51"};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 zu=0,Vu=1,ju=2,Hu=3,$u={status:zu};function Fu(t,e,n,r){switch(void 0===r&&(r=Bu),$u.status===zu&&function(t,e,n){void 0===n&&(n=Bu);try{var r=n(t),i=sr(r,"error",(function(n){Wu(t,e,n)})),a=sr(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Wu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,$u.status===Vu&&($u={status:Hu,worker:$u.worker,version:e,stop:$u.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){$u.status===Vu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:ju})}(e)}),1e4),$u={status:Vu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Wu(t,e,n)}}(t,e,r),$u.status){case Vu:return $u.initializationFailureCallbacks.push(n),$u.worker;case Hu:return $u.worker}}function qu(){return $u.status}function Wu(t,e,n,r){if($u.status===Vu){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 Bi(n);$u.status===Vu&&$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:ju}}else Bi(n,{worker_version:$u.status===Hu&&$u.version,stream_id:r});var a}function Gu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=ca);var a=function(t,e){return o({encoder:e.encoder,request:Jo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:fa({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(Du)},r,i,o);return e.subscribe(Rr,(function(t){t.type===Ze.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Qu(t){return Qu="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},Qu(t)}function Ku(t){var e=function(t,e){if("object"!=Qu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qu(e)?e:e+""}function Xu(t,e,n){return(e=Ku(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ju(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 Yu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ju(Object(n),!0).forEach((function(e){Xu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Zu,tc="synthetics",ec="user",nc={"view.url":"string","view.referrer":"string"},rc={context:"object"},ic={service:"string",version:"string"},oc={};function ac(t,e,n,r,i,a,s,u,c,l){oc[Ze.VIEW]=Yu(Yu({},rc),nc),oc[Ze.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},rc,nc,ic),oc[Ze.RESOURCE]=I({"resource.url":"string"},rc,nc,ic),oc[Ze.ACTION]=I({"action.target.name":"string"},rc,nc,ic),oc[Ze.LONG_TASK]=I({},rc,nc);var f={};f[Ze.ERROR]=$r(Ze.ERROR,t.eventRateLimiterThreshold,l),f[Ze.ACTION]=$r(Ze.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Ar,(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:ne,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?ec:tc,id:b.id,is_forced_session:b.isSessionForced},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,pathname:_.pathname,urlQuery:_.urlQuery},action:(d=v,-1!==[Ze.ERROR,Ze.RESOURCE,Ze.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);$(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),$(x.user)||(E.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Vr(t,oc[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Ze.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)&&($(E.context)&&delete E.context,e.notify(Rr,E))}}))}function sc(){return Zu||(Zu=new rr((function(t){var e=Q((function(){t.notify(uc())}),200).throttled;return sr(window,Ie,e,{capture:!0,passive:!0}).stop}))),Zu}function uc(){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 cc=ai;var lc=ai;function fc(e,n,r,i){var o=new rr;!function(e){var n=ar([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Nn((function(e,n){t.notify(Qn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:hn,source:qn,handling:vn}))}))}(o),function(t,e){var n=dr(0,[lr]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Gn,handling:vn})}))}(0,o);var a=r.findTrackedSession(),s=a&&a.isErrorSession&&a.sessionHasError;return a&&a.isErrorSession&&e.subscribe(Er,(function(){s=!1})),o.subscribe((function(t){a&&a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Pr,{error:t})})),function(t,e){return t.subscribe(Pr,(function(n){t.notify(Ar,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:Ze.ERROR,view:{in_foreground:e.wasInPageStateAt(Tu,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=Qn({stackTrace:r instanceof Error?Sn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:mn,source:Wn,handling:pn});t.notify(Pr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function dc(){if(Ms(Is)){var t=performance.getEntriesByType(Is)[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:Is,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 pc(t,e,n){return void 0===n&&(n=dc),function(t){var e,n=Oo("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 vc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState&&!document.prerendering)return{getTimeStamp:function(){return 0},stop:ot};if(Ms(Ps)&&!document.prerendering){var n=performance.getEntriesByType(Ps).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=ur(e,[xe,pe,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 hc(t,e,n,r){var i={},o=pc(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=vc(e),s=o.stop,u=function(t,e,n){return{stop:Ns(t,{type:As,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===As&&"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=ur(n,[_e,ae],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Ns(t,{type:Es,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===Es&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=au(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=Ns(t,{type:ks,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===ks&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&xo(i.target)&&(o=au(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 mc=st;function gc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=mc);return new rr((function(t){function n(){var e,n,r,i;t.notify((e=Ao(),n=uc().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=sr(window,ce,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 yc(t,e,n){if(!xc())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>=Sc||i.startTime-t>=5*wc?(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=Ns(t,{type:Ts,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=_c(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&&au(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function _c(t){if(t){var e=At(t,(function(t){return!!t.node&&xo(t.node)}));return e&&e.node}}var bc,wc=5e3,Sc=st;function xc(){return Ms(Ts)&&"WeakRef"in window}var kc=0,Ec=1/0,Tc=0;var Cc=function(){return bc?kc:window.performance.interactionCount||0};function Oc(t,e,n){if(!(Ms("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||bc||(bc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(Ec=Math.min(Ec,e.interactionId),Tc=Math.max(Tc,e.interactionId),kc=(Tc-Ec)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===nn?0:Cc(),n={stopped:!1};function r(){return Cc()-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=bu.get(u),bu.delete(u),!(r=d)&&p.target&&xo(p.target)&&(r=au(p.target,t.actionNameAttribute)))}var p=Ns(t,{type:ks,buffered:!0}).subscribe(d),v=Ns(t,{type:xs,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 Ic(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===nn,s=!0,u=[],c=vc(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=Us(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=gc(0,o,(function(t){a.scroll=t})).stop,f=yc(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=Oc(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 Ac,Rc=3e5,Pc=3e5;function Nc(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 rr,v={},m=0,_=A(r),b=xa(),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(_r,S),t.notify(br,S);var x=Q($,3e3,{leading:!1}),k=x.throttled,E=x.cancel,T=Ic(t,e,n,H,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===nn?hc(n,o,C,H):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ls({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,H),U=D.stop,B=D.eventCounts,z=g($,Rc),V=t.subscribe(Cr,(function(t){t.reason===wo.UNLOADING&&$()}));function j(){t.notify(Sr,{id:d,name:u,context:b.getContext(),startClocks:o})}function H(){j(),k()}function $(){E(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(wr,{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})}$(),b.changeObservable.subscribe(H);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=Ht(e&&e.endClocks,mt()),w=Ht(e&&e.sessionIsActive,!0),t.notify(xr,{endClocks:s}),t.notify(kr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),$(),h((function(){F.stop()}),Pc))},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,H()}},setViewName:function(t){u=t,$()}};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(nn,bt(),a);return e.subscribe(Er,(function(){l=u(rn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(Tr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;if(n=a,(e=o).pathname!==n.pathname||(r=n.hash,!((i=r.substr(1))&&document.getElementById(i)||Wt(n.hash)===Wt(e.hash))))return l.end(),void(l=u(rn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(rn,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 Mc(t,e,n,r,i,o,a,s){return t.subscribe(wr,(function(n){t.notify(Ar,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,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:Ze.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:Gt(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}};$(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:Lc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),Nc(n,t,r,e,i,!e.trackViewsManually,s)}function Lc(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 Dc(){this.buffer=new Uint8Array(8),Uc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Uc(){return window.crypto||window.msCrypto}function Bc(t,e){if(this._spanId=new Dc,this._traceId=new Dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function zc(){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 Vc(t,e,n){if(this._spanId=zc(),this._traceId=zc(),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 jc(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Hc(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function $c(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Fc(t,e,n){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function qc(t,e){return 100===e||0!==e&&(Ac&&t===Ac.sessionId?Ac.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),Ac={sessionId:t,decision:n},n));var n}function Wc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Gc(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,s=qc(i.id,t.tracingSampleRate);switch(o.traceType){case an:a=new Bc(t,s);break;case fn:a=new Vc(t,e.url,s);break;case sn:a=new $c(t,s);break;case dn:a=new jc(t,s);break;case cn:a=new Fc(t,s);break;case ln:a=new Fc(t,s,!0);break;case un:a=new Hc(t,s)}if(a&&a.isTracingSupported()){e.traceId=a.getTraceId(),e.spanId=a.getSpanId(),e.traceSampled=s;var u=a.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)}}}}Dc.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]}},Bc.prototype={isTracingSupported:function(){return void 0!==Uc()},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()}}},Vc.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()}}},jc.prototype={isTracingSupported:function(){return void 0!==Uc()},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()}}},Hc.prototype={isTracingSupported:function(){return void 0!==Uc()},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()}}},$c.prototype={isTracingSupported:function(){return void 0!==Uc()},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"}}},Fc.prototype={isTracingSupported:function(){return void 0!==Uc()},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 Qc=1;function Kc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Wc,traceFetch:function(n){return Gc(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 Gc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=go().subscribe((function(r){var i=r;if(gs(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Xc(),t.notify(Or,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Ir,{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:on.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,requestHeaderContexts:i.requestHeaderContexts,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=ho().subscribe((function(r){var i=r;if(gs(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Xc(),t.notify(Or,{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){var r;n.clearTracingIfNeeded(i),t.notify(Ir,{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,requestHeaderContexts:null===(r=i.init)||void 0===r?void 0:r.headers,type:on.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Xc(){var t=Qc;return Qc+=1,t}var Jc=new Ua;function Yc(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!Jc.has(t)}));n=U(n,(function(t){return ds(t)&&ps(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Zc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Zc(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?(Jc.add(r),r.toJSON()):void 0}}}function Zc(t){return St(t.startTime,t.duration)}function tl(t,e){Oo("interactive",(function(){var t=I(dc().toJSON(),{entryType:Rs,initiatorType:ns,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function el(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(){Kr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=tl),t.subscribe(Ir,(function(t){a((function(){return function(t,e){var n=Yc(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===on.XHR?Be:Ve,a=n?rl(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(Iu,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:_s(t.url)?bs(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&as(n),protocol:n&&ss(n)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,requestHeaderContexts:t.requestHeaderContexts,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=Ns(e,{type:Rs,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||cs(t.name,e.resourceUrlLimit)||a((function(){return nl(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(Ar,n)}))}return i(e,(function(t){a((function(){return nl(t,e)}))})),{stop:function(){o.unsubscribe()},addResource:function(t,e){a((function(){return R({savedCommonContext:e},function(t){var e={date:t.startClocks.timeStamp,resource:{id:X(),type:t.type},type:Ze.RESOURCE};return{customerContext:t.context,startTime:t.startClocks.relative,rawRumEvent:e,domainContext:{resource:t}}}(t))}))}}}function nl(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=is(t),a=rl(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:as(t),protocol:ss(t)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function rl(t){return{resource:P({},{duration:ls(t)},ms(t),fs(t))}}var il={sdkVersion:"3.2.51",sdkName:"df_web_rum_sdk"};function ol(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:Ht(t.traceType,an)}):"object"===et(r=n)&&Ot(r.match)&&q(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=al(n,Ht(t.traceType,an));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=al(n,Ht(t.traceType,an));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=eo(t);if(r){var i=!!Ht(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ht(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:Ht(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:Ht(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:Ht(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:Ht(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:Ht(t.traceType,an),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:$t(to,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:to.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,il)}}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 al(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(qr(e))}:"function"==typeof t&&(n=function(e){return t(qr(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 sl(t,e,n){var r,i,a,s,u,c=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,f=Qt(),d=Qt();function p(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;f.remove(r.callback),t=r.options}var e=n(s,i,t);f.drain(e)}}function v(t,e){var n=ma();if(n&&(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=pa())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,u=e,d.drain(u),function(t){Li({type:Oi,configuration:t})}(rt(t)),s)Ba("DATAFLUX_RUM",t);else{var r=ol(t);r&&(n||r.sessionStoreStrategyType?(!r.compressIntakeRequests||r.sendContentTypeByJson||n||!l||(i=l(r,"RUM",ot)))&&(s=r,ho().subscribe(ot),p()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,c&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||ii("guance-synthetics-injects-rum"))||(t.remoteConfiguration?uo(t,v):v(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getRemoteConfiguration:function(t){"function"===et(t)&&(u?t(u):d.add(t))},getInternalContext:ot,stopSession:ot,setForcedSession:function(){f.add((function(t){return t.setForcedSession()}))},addTiming:function(t,e){void 0===e&&(e=gt()),f.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};f.add(n),r||(r={options:t,callback:n},p())},setViewName:function(t){f.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){f.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){f.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addTypeAction:function(t,n,r){void 0===r&&(r=e()),f.add((function(e){e.addTypeAction(t,n,r)}))},addAction:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addAction(t,n)}))},addResource:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addResource(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addError(t,n)}))}}}var ul=2,cl=3,ll=4,fl=6,dl=7,pl=8,vl=9,hl=0,ml=1,gl=2,yl=3,_l=4,bl=11,wl=0,Sl=1,xl=2,kl=3,El=4,Tl=5,Cl=6,Ol=7,Il=8,Al=0,Rl=1,Pl=2,Nl=3,Ml=4,Ll=5,Dl=6,Ul=7,Bl=9,zl=0,Vl=1,jl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:to.ALLOW,MASK:to.MASK,MASK_USER_INPUT:to.MASK_USER_INPUT},Hl="data-gc-privacy",$l="hidden",Fl="***",ql={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Wl(t,e,n){if(n&&n.has(t))return n.get(t);var r=Co(t),i=r?Wl(r,e):e,o=Gl(Ql(t),i);return n&&n.set(t,o),o}function Gl(t,e){switch(e){case jl.HIDDEN:case jl.IGNORE:return e}switch(t){case jl.ALLOW:case jl.MASK:case jl.MASK_USER_INPUT:case jl.HIDDEN:case jl.IGNORE:return t;default:return e}}function Ql(t){if(xo(t)){var e=t.getAttribute(Hl);if("BASE"===t.tagName)return jl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return jl.MASK;if("hidden"===n.type)return jl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return jl.MASK}return e===$l||t.classList.contains("gc-privacy-hidden")?jl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?jl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?jl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?jl.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)?jl.IGNORE:void 0}}function Kl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case jl.MASK:case jl.HIDDEN:case jl.IGNORE:return!0;case jl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Xl(e.parentNode):Xl(e);default:return!1}}function Xl(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!!ql[e.tagName]}function Jl(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=Fl;else if(r===jl.HIDDEN)o=Fl;else if(Kl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Fl:o.replace(/\S/g,"x");return o}}var Yl=new WeakMap;function Zl(t){return Yl.has(t)}function tf(t){return Yl.get(t)}function ef(t,e,n){var r=e.tagName,i=e.value;if(Kl(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 Fl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var nf=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,rf=/^[A-Za-z]+:|^\/\//,of=/^data:.*,/i;function af(t,e){return t.replace(nf,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||rf.test(s)||of.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 Wr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function sf(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?af(((n=Array.from(e,Bt()===Dt?cf:uf).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 uf(t){return function(t){return"styleSheet"in t}(t)&&sf(t.styleSheet)||t.cssText}function cf(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return uf(t)}function lf(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 ff(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var df=/^[^ \t\n\r\u000c]+/,pf=/^[, \t\n\r\u000c]+/;var vf=0,hf=1,mf=2;function gf(t,e,n){return yf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function yf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:hl,childNodes:_f(t,e),adoptedStyleSheets:lf(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Eo(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:bl,childNodes:_f(t,e),isShadowRoot:n,adoptedStyleSheets:n?lf(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:ml,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=xf(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Gl(Ql(t),e.parentNodePrivacyLevel);var o;if(i===jl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:gl,tagName:n,attributes:Xu({rr_width:s+"px",rr_height:u+"px"},Hl,$l),childNodes:[],isSVG:r}}if(i===jl.IGNORE)return;var c=function(t,e,n){if(e===jl.HIDDEN)return{};for(var r={},i=xf(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=bf(t,e,s,n.configuration);null!==u&&(r[s]=kf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=ef(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===jl.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=sf(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=sf(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===jl.ALLOW?r.checked=!!h.checked:Kl(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 vf:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case hf: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||ko(t)}(t)&&"style"!==n){l=_f(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:gl,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Jl(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:yl,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:_l,textContent:""}}var n}(t,e);if(!n)return null;var r=tf(t)||wf++,i=n;return i.id=r,function(t,e){Yl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function _f(t,e){var n=[];return To(t,(function(t){var r=yf(t,e);r&&n.push(r)})),n}function bf(t,e,n,r){if(e===jl.HIDDEN)return null;var i=t.getAttribute(n);if(e===jl.MASK&&n!==Hl&&!ru.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Fl}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 Fl;if(i&&Ft(n,"data-"))return Fl;if("IFRAME"===o&&"srcdoc"===n)return Fl}return i&&"string"==typeof i&&_s(i)?bs(i):i}var wf=1;var Sf=/[^a-z1-6-_]/;function xf(t){var e=(t+"").toLowerCase().trim();return Sf.test(e)?"div":e}function kf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ff(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(pf),!(n>=e.length);){var o=r(df);if(","===o.slice(-1))o=ff(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=ff(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?af(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?ff(t,r):r:ff(t,r):r;var i}function Ef(t){return Boolean(t.changedTouches)}function Tf(t,e){return{data:I({source:t},e),type:cl,timestamp:gt()}}function Cf(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 Of(t,e,n,r){var i=Za();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=Kr(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){If(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Zl(e)&&!Eo(e))return!1;e=Co(e)}return!0}(t.target)&&Wl(t.target,n.defaultPrivacyLevel,i)!==jl.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=Wl(h.parentNode,e.defaultPrivacyLevel,r);if(m!==jl.HIDDEN&&m!==jl.IGNORE){var g=yf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:mf,shadowRootsController:n},configuration:e});if(g){var y=Co(h);d.push({nextId:w(h),parentId:tf(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Zl(e)&&_.push({parentId:tf(t),id:tf(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Zl(t)&&f.has(tf(t))}function w(t){for(var e=t.nextSibling;e;){if(Zl(e))return tf(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 Zl(t)&&c.has(tf(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=Wl(Co(u.target),e.defaultPrivacyLevel,n);c!==jl.HIDDEN&&c!==jl.IGNORE&&r.push({id:tf(u.target),value:Ht(Jl(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=Wl(c.target,e.defaultPrivacyLevel,n),d=bf(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=ef(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:tf(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));try{a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0})}catch(t){}return{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function If(t,e){ko(t)&&e(t.shadowRoot),To(t,(function(t){return If(t,e)}))}var Af=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},Rf=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}},Pf=new WeakMap,Nf=1;function Mf(t){return Pf.has(t)||Pf.set(t,Nf++),Pf.get(t)}function Lf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Of(e,n,r,document)),u=function(t){var e=Q((function(e){var n=zf(e);if(Zl(n)){var r=Uf(e);if(!r)return;var i={id:tf(n),timeOffset:0,x:r.x,y:r.y};t([i],Ef(e)?Cl:Sl)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=ur(document,[Ee,de],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=zf(n);if(Wl(r,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(r)){var i,o=tf(r),a=Df[n.type];if(a!==Dl&&a!==Ll){var s=Uf(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:Mf(n)},Tf(xl,i));t(u)}};return ur(document,Object.keys(Df),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=zf(r);if(i&&Wl(i,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(i)){var o=tf(i),a=i===document?{scrollTop:Ao(),scrollLeft:Io()}:{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=sr(document,ce,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return sc().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=Bf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=zf(n);r&&Wl(r,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(r)&&t({id:tf(r),type:n.type===Pe?zl:Vl})};return ur(document,[Pe,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Zl(t.ownerNode)&&e(tf(t.ownerNode))}var n=[tr(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}]})}))})),tr(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(tr(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=Cf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),tr(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Cf(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,ur(window,[Te,Ce],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(Rf())}),200,{trailing:!1}),n=ur(window.visualViewport,[Ie,ce],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(Ar,(function(t){t.rawRumEvent.type===Ze.ACTION&&t.rawRumEvent.action.type===Qe&&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:vl,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return Mf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var Df=Xu(Xu(Xu(Xu(Xu(Xu(Xu(Xu(Xu({},be,Al),ke,Rl),ie,Pl),Oe,Nl),oe,Ml),Te,Ll),Ce,Dl),le,Ul),fe,Bl);function Uf(t){var e=Ef(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Af(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function Bf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=ur(n,o?[Ae]:[Re,Ae],(function(t){var e=zf(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=[er(HTMLInputElement.prototype,"value",c),er(HTMLInputElement.prototype,"checked",c),er(HTMLSelectElement.prototype,"value",c),er(HTMLTextAreaElement.prototype,"value",c),er(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Wl(t,e.defaultPrivacyLevel);if(n!==jl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Kl(e,t,n))return;r={isChecked:t.checked}}else{var o=ef(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(Zl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:tf(e)},n)))}}}function zf(t){return!0===t.composed&&ko(t.target)?t.composedPath()[0]:t.target}function Vf(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(Tf(wl,t))},o=function(t){e(Tf(Tl,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=Of(n,t,o,e),s=a.flush,u=a.stop,c=Bf(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:vf,elementsScrollPositions:r,shadowRootsController:a});var o=uc(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:ll,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:fl,timestamp:n}),e({data:{node:gf(document,t.configuration,i),initialOffset:{left:Io(),top:Ao()}},type:ul,timestamp:n}),window.visualViewport&&e({data:Rf(),type:pl,timestamp:n})};s();var u=Lf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Tf(Ol,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Tf(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Tf(kl,t))},styleSheetCb:function(t){e(Tf(Il,t))},viewportResizeCb:function(t){e(Tf(El,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:fl,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:pl,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:hf,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function jf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Hf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Hf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Qu(r)&&null!==r?Hf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var $f;function Ff(t){return qf(t).segments_count}function qf(t){var e;return $f||($f=new Map),$f.has(t)?e=$f.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},$f.set(t,e),$f.size>10&&Wf()),e}function Wf(){if($f)if($f.keys)$f.delete($f.keys().next().value);else{var t=!0;$f.forEach((function(e,n){t&&($f.delete(n),t=!1)}))}}function Gf(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:Ff(o),source:"browser"},e);return function(t){qf(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===ul),function(t){qf(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){qf(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Qf=6e4;function Kf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Xf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(br,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(Cr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Xf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=jf(r.output,e,r.rawBytesCount);So(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Xf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Xf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Xf.Stopped){if(o.status===Xf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Xf.SegmentPending,segment:Gf({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>Qf&&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 Xf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Jf=0,Yf=1,Zf=2,td=3;var ed,nd,rd,id,od=function(t,e){if(ma()&&!ha(va)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,takeSubsequentFullSnapshot:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Jf},r=function(){n={status:Yf}},i=function(){n={status:Jf}},o=function(){};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(a,s,u,c,l){var f;a.subscribe(Tr,(function(){n.status!==Zf&&n.status!==td||(i(),n={status:Yf})})),a.subscribe(Cr,(function(t){t.reason===wo.UNLOADING&&i()})),a.subscribe(Er,(function(){n.status===Yf&&r()})),r=function(r){var o=u.findTrackedSession();o&&o.sessionReplayAllowed?n.status!==Zf&&n.status!==td&&(n={status:Zf},Oo("interactive",(function(){if(n.status===Zf){var r=(f||(l||(l=Fu(s,"Session Replay",(function(){i()}),e)),l&&(f=Uu(l,Lu))),f);if(r){var o=t(a,s,u,c,r);n={status:td,stopRecording:o.stop,takeSubsequentFullSnapshot:o.takeSubsequentFullSnapshot}}else n={status:Jf}}}))):n={status:Yf}},i=function(){n.status!==Jf&&(n.status===td&&n.stopRecording(),n={status:Jf})},o=function(){n.takeSubsequentFullSnapshot()},n.status===Yf&&r()},takeSubsequentFullSnapshot:function(){o()},isRecording:function(){return qu()===Hu&&n.status===td},getReplayStats:function(t){return qu()===Hu?function(t){return $f&&$f.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Jo(e.sessionReplayEndPoint,Qf,e.retryMaxSize,(function(e){t.notify(Pr,{error:e}),Ui("Error reported to customer",{"error.message":e.message})}));if(ma()){var d=(u=r,c=pa(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=Vf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Kf(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=Vf({emit:function(t){if(a(t),v)if(t.type===ul)y=t;else if(t.type===cl){t.timestamp-y.timestamp>6e4&&m((function(){Wf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(xr,(function(){b(),a({timestamp:gt(),type:dl})}));l.push(w.unsubscribe);var S=t.subscribe(br,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))},takeSubsequentFullSnapshot:_}})),ad=function(t,e,n){void 0===n&&(n={});var r=Na(Aa),i=xa("global",{customerDataTracker:r.getOrCreateTracker(Ea)}),a=xa("user",{customerDataTracker:r.getOrCreateTracker(ka),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=sl(n,l,(function(o,s,u){o.storeContextsToLocal&&(Ia(o,i,"rum",Ea),Ia(o,a,"rum",ka)),r.setCompressionStatus(s?Ra:Pa);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:La);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Ba("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration(),getRemoteConfiguration:function(e){t.getRemoteConfiguration(e)}},e)}(p,c),c})),v=u((function(t){var e="object"===Qu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(Ta).updateCustomerData(e.context),zi({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),zi({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),zi({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),zi({feature:"set-view-context-property"})})),getViewContext:u((function(){return zi({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),zi({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),zi({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),zi({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),zi({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getRemoteConfiguration:u((function(t){return p.getRemoteConfiguration(t)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addResource:u((function(t){var e=Kn();c((function(){p.addResource({context:Bn(t),startClocks:mt(),type:Ge,handlingStack:e}),zi({feature:"add-resource"})}))})),addTypeAction:u((function(t,e,n){var r=Kn();c((function(){var i=Bn(e);p.addAction({name:Bn(t),context:Bn(n),startClocks:mt(),type:"string"===et(i)?i:Ke,handlingStack:r}),zi({feature:"add-type-action"})}))})),addAction:u((function(t,e){var n=Kn();c((function(){p.addAction({name:Bn(t),context:Bn(e),startClocks:mt(),type:Ke,handlingStack:n}),zi({feature:"add-action"})}))})),addError:u((function(t,e){var n=Kn();c((function(){p.addError({error:t,handlingStack:n,context:Bn(e),startClocks:mt()}),zi({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Bn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(Da(t)),zi({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=Da(n)[t];a.setContextProperty(t,r),zi({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(),zi({feature:"stop-session"})})),setForcedSession:u((function(){p.setForcedSession(),zi({feature:"set-forced-session"})})),startSessionReplayRecording:u((function(t){e.start(t),zi({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop),takeSubsequentFullSnapshot:u(e.takeSubsequentFullSnapshot)},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 Nr,c=function(t){var e=Di(Ni,t);return e}(t),l=function(t){s.notify(Pr,{error:t})},f=new rr((function(t){var e=ur(window,[pe,me],(function(e){e.type===pe&&"hidden"===document.visibilityState?t.notify({reason:wo.HIDDEN}):e.type===me&&t.notify({reason:wo.FROZEN})}),{capture:!0}),n=sr(window,re,(function(){t.notify({reason:wo.UNLOADING})}));return function(){e.stop(),n.stop()}})),d=f.subscribe((function(t){s.notify(Cr,t)}));a.push((function(){d.unsubscribe()}));var p=ma()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!ha(va),errorSessionReplayAllowed:!1,sessionHasError:!1,isSessionForced:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new rr,setErrorForSession:function(){t.sessionErrorTimestamp=gt(),t.sessionHasError=!0,t.isErrorSession=!0,t.errorSessionReplayAllowed=!0},setForcedSession:ot}}():Ka(t,s);if(ma())!function(t){var e=pa();t.subscribe(Rr,(function(t){var n=ua(t).rowData;e.send("rum",n)}))}(s);else{var v=Gu(t,s,c.observable,l,f,p.expireObservable,o);a.push((function(){v.stop()}))}var h,m=Ya(t),g=(h=Za(),new rr((function(t){if(h){var e=new h(u((function(){return t.notify()})));try{e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}catch(t){}return function(){return e.disconnect()}}}))),y=ts(location),_=Ru(),b=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Yt({expireDelay:lc});return t.subscribe(_r,(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(kr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Sr,(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(Er,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Yt({expireDelay:cc});t.subscribe(_r,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(kr,(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},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+Wt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}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(yr,(function(e){t.notify(Ar,Nu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Su(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Ar,R({savedCommonContext:n},Nu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=uc(),{get:function(){return{viewport:m}},stop:sc().subscribe((function(t){m=t})).unsubscribe});var m;return ac(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,p,m,_,y,g,r,l),w=b.viewContexts,S=b.urlContexts,x=b.actionContexts,k=b.stop,E=b.addAction;a.push(k),Mi.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:p.findTrackedSession()&&p.findTrackedSession().id},view:{id:w.findView()&&w.findView().id},action:{id:x.findActionId(),ids:x.findAllActionId()}}}));var T=Mc(s,t,location,g,y,_,e,i),C=T.addTiming,O=T.startView,I=T.setViewName,A=T.setViewContext,P=T.setViewContextProperty,N=T.getViewContext,M=T.stop;a.push(M);var L=el(s,t,_),D=L.addResource;if(a.push(L.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(Os)){var U=function(t,e){var n=Ns(e,{type:Os,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:en,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:Ze.LONG_TASK};t.notify(Ar,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(U.stop)}else!function(t,e){var n=Ns(e,{type:Cs,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==Cs)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:tn,duration:dt(r.duration)},type:Ze.LONG_TASK};t.notify(Ar,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var B=fc(s,0,p,_).addError;Kc(s,t,p);var z=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,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,p,w,x,S);return{addResource:D,addAction:E,addError:B,addTiming:C,configuration:t,startView:O,setViewContext:A,setViewContextProperty:P,getViewContext:N,setViewName:I,lifeCycle:s,viewContexts:w,session:p,setForcedSession:function(){p.setForcedSession()},stopSession:function(){p.expire()},getInternalContext:z.get,stop:function(){a.forEach((function(t){t()}))}}}),od,{startDeflateWorker:Fu,createDeflateEncoder:Uu});ed=p(),rd=ad,id=ed[nd="DATAFLUX_RUM"],ed[nd]=rd,id&&id.q&&O(id.q,(function(t){f(t,"onReady callback threw an error:")()}))}();
|