1var be={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},st=console,kt={};Object.keys(be).forEach(function(t){kt[t]=st[t]});var te="Datadog Browser SDK:",T={debug:kt.debug.bind(st,te),log:kt.log.bind(st,te),info:kt.info.bind(st,te),warn:kt.warn.bind(st,te),error:kt.error.bind(st,te)};function Qr(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return t.apply(void 0,r)}catch(i){T.error(e,i)}}}var X;(function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.TRACKING_CONSENT="tracking_consent",t.CUSTOM_VITALS="custom_vitals"})(X||(X={}));var qe=new Set;function ba(t){t.forEach(function(e){qe.add(e)})}function ut(t){return qe.has(t)}function Sa(){return qe}function xt(t){return t!==0&&Math.random()*100<=t}function Se(t,e){return+t.toFixed(e)}function ee(t){return Nt(t)&&t>=0&&t<=100}function Nt(t){return typeof t=="number"}var G=1e3,K=60*G,tn=60*K,ya=24*tn,Ea=365*ya;function We(t){return{relative:t,timeStamp:wa(t)}}function en(t){return{relative:Ze(t),timeStamp:t}}function wa(t){var e=tt()-performance.now();return e>re()?Math.round(Lt(e,t)):Ca(t)}function Ta(){return Math.round(tt()-Lt(re(),performance.now()))}function N(t){return Nt(t)?Se(t*1e6,0):t}function tt(){return new Date().getTime()}function P(){return tt()}function J(){return performance.now()}function F(){return{relative:J(),timeStamp:P()}}function rn(){return{relative:0,timeStamp:re()}}function Y(t,e){return e-t}function Lt(t,e){return t+e}function Ze(t){return t-re()}function Ca(t){return Math.round(Lt(re(),t))}function Aa(t){return t<Ea}var Xe;function re(){return Xe===void 0&&(Xe=performance.timing.navigationStart),Xe}var pt=1024,nn=1024*pt,Ia=/[^\u0000-\u007F]/;function Je(t){return Ia.test(t)?window.TextEncoder!==void 0?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function Ra(t){for(var e=t.reduce(function(s,u){return s+u.length},0),r=new Uint8Array(e),n=0,i=0,a=t;i<a.length;i++){var o=a[i];r.set(o,n),n+=o.length}return r}function ct(t,e){return t.indexOf(e)!==-1}function an(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(n){return e.push(n)});else for(var r=0;r<t.length;r++)e.push(t[r]);return e}function Mt(t,e){for(var r=0;r<t.length;r+=1){var n=t[r];if(e(n,r))return n}}function Oa(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(e(n,r,t))return n}}function ka(t,e){Array.prototype.forEach.call(t,e)}function ye(t){return Object.keys(t).map(function(e){return t[e]})}function $e(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function Ee(t,e){return t.slice(0,e.length)===e}function xa(t,e){return t.slice(-e.length)===e}function Na(t,e){return t.matches?t.matches(e):t.msMatchesSelector?t.msMatchesSelector(e):!1}function ht(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,r){return r?e==="\0"?"\uFFFD":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function y(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach(function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}),t}function ne(t){return y({},t)}function we(t,e){return Object.keys(t).some(function(r){return t[r]===e})}function wt(t){return Object.keys(t).length===0}function La(t,e){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];r[a]=e(t[a])}return r}function mt(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,typeof t!="object"&&(typeof self=="object"?t=self:typeof window=="object"?t=window:t={}),t}function _t(t,e){var r=mt(),n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var Ma=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))},Qe,on=!1;function Pa(t){Qe=t}function Ua(t){on=t}function S(t){return function(){return Pt(t,this,arguments)}}function Pt(t,e,r){try{return t.apply(e,r)}catch(n){if(tr(n),Qe)try{Qe(n)}catch(i){tr(i)}}}function tr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];on&&T.error.apply(T,Ma(["[MONITOR]"],t,!1))}function z(t,e){return _t(mt(),"setTimeout")(S(t),e)}function et(t){_t(mt(),"clearTimeout")(t)}function ie(t,e){return _t(mt(),"setInterval")(S(t),e)}function er(t){_t(mt(),"clearInterval")(t)}var O=function(){function t(e){this.onFirstSubscribe=e,this.observers=[]}return t.prototype.subscribe=function(e){var r=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(e),{unsubscribe:function(){r.observers=r.observers.filter(function(n){return e!==n}),!r.observers.length&&r.onLastUnsubscribe&&r.onLastUnsubscribe()}}}
1,t.prototype.notify=function(e){this.observers.forEach(function(r){return r(e)})},t}();function sn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new O(function(r){var n=t.map(function(i){return i.subscribe(function(a){return r.notify(a)})});return function(){return n.forEach(function(i){return i.unsubscribe()})}})}function gt(t,e,r){var n=r&&r.leading!==void 0?r.leading:!0,i=r&&r.trailing!==void 0?r.trailing:!0,a=!1,o,s;return{throttled:function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];if(a){o=u;return}n?t.apply(void 0,u):o=u,a=!0,s=z(function(){i&&o&&t.apply(void 0,o),a=!1,o=void 0},e)},cancel:function(){et(s),a=!1,o=void 0}}}function R(){}function V(t){return t?(parseInt(t,10)^Math.random()*16>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,V)}var Te=/([\w-]+)\s*=\s*([^;]+)/g;function rr(t,e){for(Te.lastIndex=0;;){var r=Te.exec(t);if(r){if(r[1]===e)return r[2]}else break}}function Da(t){var e=new Map;for(Te.lastIndex=0;;){var r=Te.exec(t);if(r)e.set(r[1],r[2]);else break}return e}function un(t,e,r){r===void 0&&(r="");var n=t.charCodeAt(e-1),i=n>=55296&&n<=56319,a=i?e+1:e;return t.length<=a?t:"".concat(t.slice(0,a)).concat(r)}var Ut=4*tn,cn=15*K;function Ba(){return nr()===0}function Fa(){return nr()===1}function za(){return nr()===2}var Ce;function nr(){return Ce!=null?Ce:Ce=Va()}function Va(t){var e;t===void 0&&(t=window);var r=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(r)?1:((e=t.navigator.vendor)===null||e===void 0?void 0:e.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:t.document.documentMode?0:3}function Ae(t,e,r,n){var i=new Date;i.setTime(i.getTime()+r);var a="expires=".concat(i.toUTCString()),o=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",u=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(a,";path=/;samesite=").concat(o).concat(s).concat(u).concat(c)}function ir(t){return rr(document.cookie,t)}var ar;function Tt(t){return ar||(ar=Da(document.cookie)),ar.get(t)}function or(t,e){Ae(t,"",0,e)}function Ha(t){if(document.cookie===void 0||document.cookie===null)return!1;try{var e="dd_cookie_test_".concat(V()),r="test";Ae(e,r,K,t);var n=ir(e)===r;return or(e,t),n}catch(i){return T.error(i),!1}}var sr;function Ga(){if(sr===void 0){for(var t="dd_site_test_".concat(V()),e="test",r=window.location.hostname.split("."),n=r.pop();r.length&&!ir(t);)n="".concat(r.pop(),".").concat(n),Ae(t,e,G,{domain:n});or(t,{domain:n}),sr=n}return sr}var Ct="_dd_s",ln=/^([a-z]+)=([a-z0-9-]+)$/,ur="&";function cr(t){return wt(t)}function dn(t){t.expire=String(tt()+cn)}function fn(t){return $e(t).map(function(e){var r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join(ur)}function vn(t){var e={};return Ka(t)&&t.split(ur).forEach(function(r){var n=ln.exec(r);if(n!==null){var i=n[1],a=n[2];e[i]=a}}),e}function Ka(t){return!!t&&(t.indexOf(ur)!==-1||ln.test(t))}var Ya="_dd",ja="_dd_r",qa="_dd_l",Wa="rum",Za="logs";function Xa(t){var e=Tt(Ct);if(!e){var r=Tt(Ya),n=Tt(ja),i=Tt(qa),a={};r&&(a.id=r),i&&/^[01]$/.test(i)&&(a[Za]=i),n&&/^[012]$/.test(n)&&(a[Wa]=n),cr(a)||(dn(a),t.persistSession(a))}}function Ja(t){var e=ro(t);return Ha(e)?{type:"Cookie",cookieOptions:e}:void 0}function $a(t){var e={isLockEnabled:Fa(),persistSession:Qa(t),retrieveSession:to,clearSession:eo(t)};return Xa(e),e}function Qa(t){return function(e){Ae(Ct,fn(e),cn,t)}}function to(){var t=ir(Ct);return vn(t)}function eo(t){return function(){or(Ct,t)}}function ro(t){var e={};return e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=Ga()),e}var no="_dd_test_";function io(){try{var t=V(),e="".concat(no).concat(t);localStorage.setItem(e,t);var r=localStorage.getItem(e);return localStorage.removeItem(e),t===r?{type:"LocalStorage"}:void 0}catch{return}}function ao(){return{isLockEnabled:!1,persistSession:oo,retrieveSession:so,clearSession:uo}}function oo(t){localStorage.setItem(Ct,fn(t))}function so(){var t=localStorage.getItem(Ct);return vn(t)}function uo(){localStorage.removeItem(Ct)}var co=10,lo=100,pn=[],Ie;function ae(t,e,r){var n;r===void 0&&(r=0);var i=e.isLockEnabled,a=e.retrieveSession,o=e.persistSession,s=e.clearSession;if(Ie||(Ie=t),t!==Ie){pn.push(t);return}if(i&&r>=lo){hn(e);return}var u,c=a();if(i){if(c.lock){Re(t,e,r);return}if(u=V(),c.lock=u,o(c),c=a(),c.lock!==u){Re(t,e,r);return}}var l=t.process(c);if(i&&(c=a(),c.lock!==u)){Re(t,e,r);return}if(l&&(cr(l)?s():(dn(l),o(l))),i&&!(l&&cr(l))){if(c=a(),c.lock!==u){Re(t,e,r);return}delete c.lock,o(c),l=c}(n=t.after)===null||n===void 0||n.call(t,l||c),hn(e)}function Re(t,e,r){z(function(){ae(t,e,r+1)},co)}function hn(t){Ie=void 0;var e=pn.shift();e&&ae(e,t)}var mn=G;function fo(t){var e=Ja(t);return!e&&t.allowFallbackToLocalStorage&&(e=io()),e}function vo(t,e,r){var n=new O,i=new O,a=t.type==="Cookie"?$a(t.cookieOptions):ao(),o=a.clearSession,s=a.retrieveSession,u=ie(f,mn),c=I();function l(){var b;ae({process:function(C){var A=p(C);return b=v(A),A},after:function(C){b&&!h()&&k(C),c=C}},a)}function d(){ae({process:function(b){return h()?p(b):void 0}},a)}function f(){ae({process:function(b){return x(b)?void 0:{}},after:p},a)}function p(b){return x(b)||(b={}),h()&&(_(b)?g():c=b),b}function v(b){var C=r(b[e]),A=C.trackingType,ot=C.isTracked;return b[e]=A,ot&&!b.id&&(b.id=V(),b.created=String(tt())),ot}function h(){return c[e]!==void 0}function _(b){return c.id!==b.id||c[e]!==b[e]}function g(){c={},i.notify()}function k(b){c=b,n.notify()}function I(){var b=s();return x(b)?b:{}}function x(b){return(b.created===void 0||tt()-Number(b.created)<Ut)&&(b.expire===void 0||tt()<Number(b.expire))}return{expandOrRenewSession:gt(l,mn).throttled,expandSession:d,getSession:function(){return c},renewObservable:n,expireObservable:i,expire:function(){o(),p({})},stop:function(){er(u)}}}var lr={GRANTED:"granted",NOT_GRANTED:"not-granted"};function po(t){var e=new O;return{tryToInit:function(r){t||(t=r)},update:function(r){t=r,e.notify()},isGranted:function(){return!ut(X.TRACKING_CONSENT)||t===lr.GRANTED},observable:e}}function Dt(t,e,r){if(typeof t!="object"||t===null)return JSON.stringify(t);var n=Bt(Object.prototype),i=Bt(Array.prototype),a=Bt(Object.getPrototypeOf(t)),o=Bt(t);try{return JSON.stringify(t,e,r)}catch{return"<error: unable to serialize object>"}finally{n(),i(),a(),o()}}function Bt(t){var e=t,r=e.toJSON;return r?(delete e.toJSON,function(){e.toJSON=r}):R}function dr(t){return Oe(t,location.href).href}function ho(t){try{return!!Oe(t)}catch{return!1}}function mo(t){var e=Oe(t).pathname;return e[0]==="/"?e:"/".concat(e)}function Oe(t,e){var r=_o();if(r)try{return e!==void 0?new r(t,e):new r(t)}catch(o){throw new Error("Failed to construct URL: ".concat(String(o)," ").concat(Dt({url:t,base:e})))}if(e===void 0&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var n=document,i=n.createElement("a");if(e!==void 0){n=document.implementation.createHTMLDocument("");var a=n.createElement("base");a.href=e,n.head.appendChild(a),n.body.appendChild(i)}return i.href=t,i}var _n=URL,ke;function _o(){if(ke===void 0)try{var t=new _n("http://test/path");ke=t.href==="http://test/path"}catch{ke=!1}return ke?_n:void 0}var gn="datad0g.com",go="dd0g-gov.com",Ft="datadoghq.com",bo="datadoghq.eu",So="ddog-gov.com";function oe(t,e,r){var n=yo(t,e);return{build:function(i,a){var o=wo(t,e,r,i,a);return n(o)},urlPrefix:n(""),trackType:e}}function yo(t,e){var r="/api/v2/".concat(e),n=t.proxy;if(typeof n=="string"){var i=dr(n);return function(o){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(o)))}}if(typeof n=="function")return function(o){return n({path:r,parameters:o})};var a=Eo(t);return function(o){return"https://".concat(a).concat(r,"?").concat(o)}}function Eo(t){var e=t.site,r=e===void 0?Ft:e,n=t.internalAnalyticsSubdomain;if(n&&r===Ft)return"".concat(n,".").concat(Ft);if(r===go)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}function wo(t,e,r,n,i){var a=t.clientToken,o=t.internalAnalyticsSubdomain,s=i.retry,u=i.flushReason,c=i.encoding,l=["sdk_version:".concat("5.10.0"),"api:".concat(n)].concat(r);u&&ut(X.COLLECT_FLUSH_REASON)&&l.push("flush_reason:".concat(u)),s&&l.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.10.0")),"dd-evp-origin=browser","dd-request-id=".concat(V())];return c&&d.push("dd-evp-encoding=".concat(c)),e==="rum"&&d.push("batch_time=".concat(P())),o&&d.reverse(),d.join("&")}var To=200;function Co(t){var e=t.env,r=t.service,n=t.version,i=t.datacenter,a=[];return e&&a.push(xe("env",e)),r&&a.push(xe("service",r)),n&&a.push(xe("version",n)),i&&a.push(xe("datacenter",i)),a}var Ao=/[^a-z0-9_:./-]/;function xe(t,e){var r=To-t.length-1;(e.length>r||Ao.test(e))&&T.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var n=e.replace(/,/g,"_");return"".concat(t,":").concat(n)}function Io(t){var e=Co(t),r=Ro(t,e),n=ye(r).map(function(a){return a.urlPrefix}),i=Oo(t,n,e);return y({isIntakeUrl:function(a){return n.some(function(o){return a.indexOf(o)===0})},replica:i,site:t.site||Ft},r)}function Ro(t,e){return{logsEndpointBuilder:oe(t,"logs",e),rumEndpointBuilder:oe(t,"rum",e),sessionReplayEndpointBuilder:oe(t,"replay",e)}}function Oo(t,e,r){if(!!t.replica){var n=y({},t,{site:Ft,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:oe(n,"logs",r),rumEndpointBuilder:oe(n,"rum",r)};return e.push.apply(e,ye(i).map(function(a){return a.urlPrefix})),y({applicationId:t.replica.applicationId},i)}}var se={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function ko(t){var e,r,n,i;if(!t||!t.clientToken){T.error("Client Token is not configured, we will not send any data.");return}if(t.sessionSampleRate!==void 0&&!ee(t.sessionSampleRate)){T.error("Session Sample Rate should be a number between 0 and 100");return}if(t.telemetrySampleRate!==void 0&&!ee(t.telemetrySampleRate)){T.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(t.telemetryConfigurationSampleRate!==void 0&&!ee(t.telemetryConfigurationSampleRate)){T.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}if(t.trackingConsent!==void 0&&!we(lr,t.trackingConsent)){T.error('Tracking Consent should be either "granted" or "not-granted"');return}return Array.isArray(t.enableExperimentalFeatures)&&ba(t.enableExperimentalFeatures.filter(function(a){return we(X,a)})),y({beforeSend:t.beforeSend&&Qr(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:fo(t),sessionSampleRate:(e=t.sessionSampleRate)!==null&&e!==void 0?e:100,telemetrySampleRate:(r=t.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(n=t.telemetryConfigurationSampleRate)!==null&&n!==void 0?n:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:(i=t.trackingConsent)!==null&&i!==void 0?i:lr.GRANTED,batchBytesLimit:16*pt,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*G,batchMessagesLimit:50,messageBytesLimit:256*pt},Io(t))}function xo(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents}}function j(t,e,r){var n=t[e],i=No(n,r),a=function(){if(typeof i=="function")return i.apply(this,arguments)};return t[e]=a,{stop:function(){t[e]===a?t[e]=n:i=n}}}function No(t,e){return function(){var r=arguments,n,i;return Pt(e,null,[{target:this,parameters:r,onPostCall:function(a){i=a}}]),typeof t=="function"&&(n=t.apply(this,r)),i&&Pt(i,null,[n]),n}}function ue(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e);if(!n||!n.set||!n.configurable)return{stop:R};var i=R,a=function(s,u){z(function(){a!==i&&r(s,u)},0)},o=function(s){n.set.call(this,s),a(this,s)};return Object.defineProperty(t,e,{set:o}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(t,e))===null||s===void 0?void 0:s.set)===o&&Object.defineProperty(t,e,n),a=i}}}var ce="?";function bt(t){var e=[],r=fr(t,"stack"),n=String(t);return r&&Ee(r,n)&&(r=r.slice(n.length)),r&&r.split(` 2`).forEach(function(i){var a=Po(i)||Do(i)||Fo(i)||Ho(i);a&&(!a.func&&a.line&&(a.func=ce),e.push(a))}),{message:fr(t,"message"),name:fr(t,"name"),stack:e}}var bn="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",zt="(?::(\\d+))",Lo=new RegExp("^\\s*at (.*?) ?\\(".concat(bn).concat(zt,"?").concat(zt,"?\\)?\\s*$"),"i"),Mo=new RegExp("\\((\\S*)".concat(zt).concat(zt,"\\)"));function Po(t){var e=Lo.exec(t);if(!!e){var r=e[2]&&e[2].indexOf("native")===0,n=e[2]&&e[2].indexOf("eval")===0,i=Mo.exec(e[2]);return n&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:r?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||ce,line:e[3]?+e[3]:void 0,url:r?void 0:e[2]}}}var Uo=new RegExp("^\\s*at ?".concat(bn).concat(zt,"?").concat(zt,"??\\s*$"),"i");function Do(t){var e=Uo.exec(t);if(!!e)return{args:[],column:e[3]?+e[3]:void 0,func:ce,line:e[2]?+e[2]:void 0,url:e[1]}}
2var Bo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Fo(t){var e=Bo.exec(t);if(!!e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ce,line:+e[3],url:e[2]}}var zo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Vo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ho(t){var e=zo.exec(t);if(!!e){var r=e[3]&&e[3].indexOf(" > eval")>-1,n=Vo.exec(e[3]);return r&&n&&(e[3]=n[1],e[4]=n[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||ce,line:e[4]?+e[4]:void 0,url:e[3]}}}function fr(t,e){if(!(typeof t!="object"||!t||!(e in t))){var r=t[e];return typeof r=="string"?r:void 0}}function Go(t,e,r,n){var i=[{url:e,column:n,line:r}],a=Yo(t),o=a.name,s=a.message;return{name:o,message:s,stack:i}}var Ko=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Yo(t){var e,r,n;return{}.toString.call(t)==="[object String]"&&(e=Ko.exec(t),r=e[1],n=e[2]),{name:r,message:n}}var jo=220*pt,qo="$",Wo=3;function B(t,e){var r;e===void 0&&(e=jo);var n=Bt(Object.prototype),i=Bt(Array.prototype),a=[],o=new WeakMap,s=vr(t,qo,void 0,a,o),u=((r=JSON.stringify(s))===null||r===void 0?void 0:r.length)||0;if(u>e){pr(e,"discarded",t);return}for(;a.length>0&&u<e;){var c=a.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=vr(c.source[d],c.path,d,a,o);if(f!==void 0?u+=JSON.stringify(f).length:u+=4,u+=l,l=1,u>e){pr(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=vr(c.source[d],c.path,d,a,o);if(f!==void 0&&(u+=JSON.stringify(f).length+l+d.length+Wo,l=1),u>e){pr(e,"truncated",t);break}c.target[d]=f}}return n(),i(),s}function vr(t,e,r,n,i){var a=Jo(t);if(!a||typeof a!="object")return Zo(a);var o=Xo(a);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;var s=t;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=r!==void 0?"".concat(e,".").concat(r):e,c=Array.isArray(a)?[]:{};return i.set(s,u),n.push({source:a,target:c,path:u}),c}function Zo(t){return typeof t=="bigint"?"[BigInt] ".concat(t.toString()):typeof t=="function"?"[Function] ".concat(t.name||"unknown"):typeof t=="symbol"?"[Symbol] ".concat(t.description||t.toString()):t}function Xo(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t),r=e.match(/\[object (.*)\]/);if(r&&r[1])return"[".concat(r[1],"]")}catch{}return"[Unserializable]"}function Jo(t){var e=t;if(e&&typeof e.toJSON=="function")try{return e.toJSON()}catch{}return t}function pr(t,e,r){T.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),r)}var Sn="No stack, consider using an instance of Error";function yn(t){var e=t.stackTrace,r=t.originalError,n=t.handlingStack,i=t.startClocks,a=t.nonErrorPrefix,o=t.source,s=t.handling,u=r instanceof Error,c=$o(e,u,a,r),l=Qo(u,e)?Vt(e):Sn,d=u?Cn(r,o):void 0,f=e==null?void 0:e.name,p=En(r);return{startClocks:i,source:o,handling:s,handlingStack:n,originalError:r,type:f,message:c,stack:l,causes:d,fingerprint:p}}function $o(t,e,r,n){return(t==null?void 0:t.message)&&(t==null?void 0:t.name)?t.message:e?"Empty message":"".concat(r," ").concat(Dt(B(n)))}function Qo(t,e){return e===void 0?!1:t?!0:e.stack.length>0&&(e.stack.length>1||e.stack[0].url!==void 0)}function En(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Vt(t){var e=wn(t);return t.stack.forEach(function(r){var n=r.func==="?"?"<anonymous>":r.func,i=r.args&&r.args.length>0?"(".concat(r.args.join(", "),")"):"",a=r.line?":".concat(r.line):"",o=r.line&&r.column?":".concat(r.column):"";e+=` 3 at `.concat(n).concat(i," @ ").concat(r.url).concat(a).concat(o)}),e}function wn(t){return"".concat(t.name||"Error",": ").concat(t.message)}function Tn(){var t=2,e=new Error,r;if(!e.stack)try{throw e}catch{}return Pt(function(){var n=bt(e);n.stack=n.stack.slice(t),r=Vt(n)}),r}function Cn(t,e){for(var r=t,n=[];(r==null?void 0:r.cause)instanceof Error&&n.length<10;){var i=bt(r.cause);n.push({message:r.cause.message,source:e,type:i==null?void 0:i.name,stack:i&&Vt(i)}),r=r.cause}return n.length?n:void 0}var Ht={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function ts(t){var e=function(i,a){var o=yn({stackTrace:i,originalError:a,startClocks:F(),nonErrorPrefix:"Uncaught",source:Ht.SOURCE,handling:"unhandled"});t.notify(o)},r=es(e).stop,n=rs(e).stop;return{stop:function(){r(),n()}}}function es(t){return j(window,"onerror",function(e){var r=e.parameters,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u;s instanceof Error?u=bt(s):u=Go(n,i,a,o),t(u,s!=null?s:n)})}function rs(t){return j(window,"onunhandledrejection",function(e){var r=e.parameters[0],n=r.reason||"Empty reason",i=bt(n);t(i,n)})}function ns(t){var e=y({version:"5.10.0",onReady:function(r){r()}},t);return Object.defineProperty(e,"_setDebug",{get:function(){return Ua},enumerable:!1}),e}function is(t,e,r){var n=t[e];t[e]=r,n&&n.q&&n.q.forEach(function(i){return Qr(i,"onReady callback threw an error:")()})}function An(t,e){e.silentMultipleInit||T.error("".concat(t," is already initialized."))}var m;(function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUC
3H_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"})(m||(m={}));function M(t,e,r,n,i){return q(t,e,[r],n,i)}function q(t,e,r,n,i){var a=i===void 0?{}:i,o=a.once,s=a.capture,u=a.passive,c=S(function(p){!p.isTrusted&&!p.__ddIsTrusted&&!t.allowUntrustedEvents||(o&&f(),n(p))}),l=u?{capture:s,passive:u}:s,d=_t(e,"addEventListener");r.forEach(function(p){return d.call(e,p,c,l)});function f(){var p=_t(e,"removeEventListener");r.forEach(function(v){return p.call(e,v,c,l)})}return{stop:f}}var Gt={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function as(t,e){var r=[];ct(e,Gt.cspViolation)&&r.push(ss(t));var n=e.filter(function(i){return i!==Gt.cspViolation});return n.length&&r.push(os(n)),sn.apply(void 0,r)}function os(t){return new O(function(e){if(!!window.ReportingObserver){var r=S(function(i,a){return i.forEach(function(o){e.notify(us(o))})}),n=new window.ReportingObserver(r,{types:t,buffered:!0});return n.observe(),function(){n.disconnect()}}})}function ss(t){return new O(function(e){var r=M(t,document,m.SECURITY_POLICY_VIOLATION,function(n){e.notify(cs(n))}).stop;return r})}function us(t){var e=t.type,r=t.body;return{type:e,subtype:r.id,message:"".concat(e,": ").concat(r.message),originalReport:t,stack:In(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)}}function cs(t){var e=Gt.cspViolation,r="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return{type:Gt.cspViolation,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(r),stack:In(t.effectiveDirective,t.originalPolicy?"".concat(r,' of the policy "').concat(un(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber),originalReport:t}}function In(t,e,r,n,i){return r?Vt({name:t,message:e,stack:[{func:"?",url:r,line:n!=null?n:void 0,column:i!=null?i:void 0}]}):void 0}function hr(t,e){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:t,payload:e})}function St(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function Ne(t,e,r){if(r===void 0&&(r=ls()),e===void 0)return t;if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var n=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,n)}if(!r.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],a=0;a<e.length;++a)i[a]=Ne(i[a],e[a],r);return i}var o=St(t)==="object"?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=Ne(o[s],e[s],r));return o}}function mr(t){return Ne(void 0,t)}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n=0,i=t;n<i.length;n++){var a=i[n];a!=null&&(r=Ne(r,a))}return r}function ls(){if(typeof WeakSet!="undefined"){var t=new WeakSet;return{hasAlreadyBeenSeen:function(r){var n=t.has(r);return n||t.add(r),n}}}var e=[];return{hasAlreadyBeenSeen:function(r){var n=e.indexOf(r)>=0;return n||e.push(r),n}}}function Rn(){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:(t=e.connection)===null||t===void 0?void 0:t.effectiveType}}var _r={log:"log",configuration:"configuration"},ds=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],fs=[So],nt={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1},gr;function vs(t,e){var r,n=new O;nt.telemetryEnabled=!ct(fs,e.site)&&xt(e.telemetrySampleRate),nt.telemetryConfigurationEnabled=nt.telemetryEnabled&&xt(e.telemetryConfigurationSampleRate);var i=ps();
3gr=function(o){if(nt.telemetryEnabled){var s=a(t,o,i);n.notify(s),hr("telemetry",s)}},Pa(Le),y(nt,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0});function a(o,s,u){return rt({type:"telemetry",date:P(),service:o,version:"5.10.0",source:"browser",_dd:{format_version:2},telemetry:rt(s,{runtime_env:u,connectivity:Rn()}),experimental_features:an(Sa())},r!==void 0?r():{})}return{setContextProvider:function(o){r=o},observable:n,enabled:nt.telemetryEnabled}}function ps(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function hs(t){return t.site===gn}function At(t,e){tr(be.debug,t,e),br(y({type:_r.log,message:t,status:"debug"},e))}function Le(t,e){br(y({type:_r.log,status:"error"},_s(t),e))}function ms(t){nt.telemetryConfigurationEnabled&&br({type:_r.configuration,configuration:t})}function br(t){gr&&nt.sentEventCount<nt.maxEventsPerPage&&(nt.sentEventCount+=1,gr(t))}function _s(t){if(t instanceof Error){var e=bt(t);return{error:{kind:e.name,stack:Vt(gs(e))},message:e.message}}return{error:{stack:Sn},message:"".concat("Uncaught"," ").concat(Dt(t))}}function gs(t){return t.stack=t.stack.filter(function(e){return!e.url||ds.some(function(r){return Ee(e.url,r)})}),t}function On(t,e){var r=t.indexOf(e);r>=0&&t.splice(r,1)}var Me=1/0,bs=K,Kt=function(){function t(e,r){var n=this;this.expireDelay=e,this.maxEntries=r,this.entries=[],this.clearOldValuesInterval=ie(function(){return n.clearOldValues()},bs)}return t.prototype.add=function(e,r){var n=this,i={value:e,startTime:r,endTime:Me,remove:function(){On(n.entries,i)},close:function(a){i.endTime=a}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(i),i},t.prototype.find=function(e){e===void 0&&(e=Me);for(var r=0,n=this.entries;r<n.length;r++){var i=n[r];if(i.startTime<=e){if(e<=i.endTime)return i.value;break}}},t.prototype.closeActive=function(e){var r=this.entries[0];r&&r.endTime===Me&&r.close(e)},t.prototype.findAll=function(e,r){e===void 0&&(e=Me),r===void 0&&(r=0);var n=Lt(e,r);return this.entries.filter(function(i){return i.startTime<=n&&e<=i.endTime}).map(function(i){return i.value})},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){er(this.clearOldValuesInterval)},t.prototype.clearOldValues=function(){for(var e=J()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()},t}(),Ss=K,ys=Ut;function Es(t,e,r,n){var i=new O,a=new O,o=vo(t.sessionStoreStrategyType,e,r),s=new Kt(ys);o.renewObservable.subscribe(function(){s.add(u(),J()),i.notify()}),o.expireObservable.subscribe(function(){a.notify(),s.closeActive(J())}),o.expandOrRenewSession(),s.add(u(),rn().relative),n.observable.subscribe(function(){n.isGranted()?o.expandOrRenewSession():o.expire()}),ws(t,function(){n.isGranted()&&o.expandOrRenewSession()}),Ts(t,function(){return o.expandSession()});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e]}}return{findActiveSession:function(c){return s.find(c)},renewObservable:i,expireObservable:a,expire:o.expire}}function ws(t,e){q(t,window,[m.CLICK,m.TOUCH_START,m.KEY_DOWN,m.SCROLL],e,{capture:!0,passive:!0}).stop}function Ts(t,e){var r=function(){document.visibilityState==="visible"&&e()};M(t,document,m.VISIBILITY_CHANGE,r).stop,ie(r,Ss)}function Cs(t){return t>=500}function As(t){try{return t.clone()}catch{return}}var Is=80*pt,Rs=32,kn=3*nn,Os=K,xn=G;function Nn(t,e,r,n,i){e.transportStatus===0&&e.queuedPayloads.size()===0&&e.bandwidthMonitor.canHandle(t)?Mn(t,e,r,{onSuccess:function(){return Pn(0,e,r,n,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Ln(e,r,n,i)}}):e.queuedPayloads.enqueue(t)}function Ln(t,e,r,n){t.transportStatus===2&&z(function(){var i=t.queuedPayloads.first();Mn(i,t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=xn,Pn(1,t,e,r,n)},onFailure:function(){t.currentBackoffTime=Math.min(Os,t.currentBackoffTime*2),Ln(t,e,r,n)}})},t.currentBackoffTime)}function Mn(t,e,r,n){var i=n.onSuccess,a=n.onFailure;e.bandwidthMonitor.add(t),r(t,function(o){e.bandwidthMonitor.remove(t),ks(o)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:o.status},a()):(e.transportStatus=0,i())})}function Pn(t,e,r,n,i){t===0&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(kn/nn,"MiB"),source:Ht.AGENT,startClocks:F()}),e.queueFullReported=!0);var a=e.queuedPayloads;for(e.queuedPayloads=Un();a.size()>0;)Nn(a.dequeue(),e,r,n,i)}function ks(t){return t.type!=="opaque"&&(t.status===0&&!navigator.onLine||t.status===408||t.status===429||Cs(t.status))}function xs(){return{transportStatus:0,currentBackoffTime:xn,bandwidthMonitor:Ns(),queuedPayloads:Un(),queueFullReported:!1}}function Un(){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>=kn}}}function Ns(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return this.ongoingRequestCount===0||this.ongoingByteCount+t.bytesCount<=Is&&this.ongoingRequestCount<Rs},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}}}function Dn(t,e,r,n){var i=xs(),a=function(o,s){return Ps(t,e,r,o,s)};return{send:function(o){Nn(o,i,a,e.trackType,n)},sendOnExit:function(o){Ls(t,e,r,o)}}}function Ls(t,e,r,n){var i=!!navigator.sendBeacon&&n.bytesCount<r;if(i)try{var a=e.build("beacon",n),o=navigator.sendBeacon(a,n.data);if(o)return}catch(u){Ms(u)}var s=e.build("xhr",n);Sr(t,s,n.data)}var Bn=!1;function Ms(t){Bn||(Bn=!0,Le(t))}function Ps(t,e,r,n,i){var a=Us()&&n.bytesCount<r;if(a){var o=e.build("fetch",n);fetch(o,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(S(function(u){return i==null?void 0:i({status:u.status,type:u.type})}),S(function(){var u=e.build("xhr",n);Sr(t,u,n.data,i)}))}else{var s=e.build("xhr",n);Sr(t,s,n.data,i)}}function Us(){try{return window.Request&&"keepalive"in new Request
3("http://a")}catch{return!1}}function Sr(t,e,r,n){var i=new XMLHttpRequest;i.open("POST",e,!0),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type),M(t,i,"loadend",function(){n==null||n({status:i.status})},{once:!0}),i.send(r)}function yr(){var t=Ds();if(!!t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,r){t.send(JSON.stringify({eventType:e,event:r}))}}}function Yt(t){var e;t===void 0&&(t=(e=mt().location)===null||e===void 0?void 0:e.hostname);var r=yr();return!!r&&r.getAllowedWebViewHosts().some(function(n){return t===n||xa(t,".".concat(n))})}function Ds(){return mt().DatadogEventBridge}var lt={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Bs(t){return new O(function(e){var r=ut(X.PAGEHIDE),n=q(t,window,[m.VISIBILITY_CHANGE,m.FREEZE,m.PAGE_HIDE],function(a){a.type===m.PAGE_HIDE&&r?e.notify({reason:lt.PAGEHIDE}):a.type===m.VISIBILITY_CHANGE&&document.visibilityState==="hidden"?e.notify({reason:lt.HIDDEN}):a.type===m.FREEZE&&e.notify({reason:lt.FROZEN})},{capture:!0}).stop,i=R;return r||(i=M(t,window,m.BEFORE_UNLOAD,function(){e.notify({reason:lt.UNLOADING})}).stop),function(){n(),i()}})}function Fn(t){return ct(ye(lt),t)}var Fs=function(){function t(e,r,n,i){var a=this;this.encoder=e,this.request=r,this.flushController=n,this.messageBytesLimit=i,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(o){return a.flush(o)})}return t.prototype.add=function(e){this.addOrUpdate(e)},t.prototype.upsert=function(e,r){this.addOrUpdate(e,r)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(e){var r=ye(this.upsertBuffer).join(` 4`);this.upsertBuffer={};var n=Fn(e.reason),i=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var a=this.encoder.finishSync();a.outputBytesCount&&i(zn(a,e));var o=[a.pendingData,r].filter(Boolean).join(` 5`);o&&i({data:o,bytesCount:Je(o),flushReason:e.reason})}else r&&this.encoder.write(this.encoder.isEmpty?r:` 6`.concat(r)),this.encoder.finish(function(s){i(zn(s,e))})},t.prototype.addOrUpdate=function(e,r){var n=Dt(e),i=this.encoder.estimateEncodedBytesCount(n);if(i>=this.messageBytesLimit){T.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(r)&&this.remove(r),this.push(n,i,r)},t.prototype.push=function(e,r,n){var i=this;this.flushController.notifyBeforeAddMessage(r),n!==void 0?(this.upsertBuffer[n]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:` 7`.concat(e),function(a){i.flushController.notifyAfterAddMessage(a-r)})},t.prototype.remove=function(e){var r=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.encoder.estimateEncodedBytesCount(r);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(e){return e!==void 0&&this.upsertBuffer[e]!==void 0},t}();function zn(t,e){var r;return typeof t.output=="string"?r=t.output:r=new Blob([t.output],{type:"text/plain"}),{data:r,bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}function zs(t){var e=t.messagesLimit,r=t.bytesLimit,n=t.durationLimit,i=t.pageExitObservable,a=t.sessionExpireObservable,o=i.subscribe(function(h){return d(h.reason)}),s=a.subscribe(function(){return d("session_expire")}),u=new O(function(){return function(){o.unsubscribe(),s.unsubscribe()}}),c=0,l=0;function d(h){if(l!==0){var _=l,g=c;l=0,c=0,v(),u.notify({reason:h,messagesCount:_,bytesCount:g})}}var f;function p(){f===void 0&&(f=z(function(){d("duration_limit")},n))}function v(){et(f),f=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(h){c+h>=r&&d("bytes_limit"),l+=1,c+=h,p()},notifyAfterAddMessage:function(h){h===void 0&&(h=0),c+=h,l>=e?d("messages_limit"):c>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(h){c-=h,l-=1,l===0&&v()}}}function Vs(t,e,r,n,i,a){var o=u(t,e),s=r&&u(t,r);function u(c,l){var d=l.endpoint,f=l.encoder;return new Fs(f,Dn(c,d,c.batchBytesLimit,n),zs({messagesLimit:c.batchMessagesLimit,bytesLimit:c.batchBytesLimit,durationLimit:c.flushTimeout,pageExitObservable:i,sessionExpireOb
7servable:a}),c.messageBytesLimit)}return{flushObservable:o.flushController.flushObservable,add:function(c,l){l===void 0&&(l=!0),o.add(c),s&&l&&s.add(r.transformMessage?r.transformMessage(c):c)},upsert:function(c,l){o.upsert(c,l),s&&s.upsert(r.transformMessage?r.transformMessage(c):c,l)},stop:function(){o.stop(),s==null||s.stop()}}}function Hs(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(r,n){var i=Je(r);e+=i,t+=r,n&&n(i)},finish:function(r){r(this.finishSync())},finishSync:function(){var r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:function(r){return r.length}}}var Gs=function(){function t(){this.callbacks={}}return t.prototype.notify=function(e,r){var n=this.callbacks[e];n&&n.forEach(function(i){return i(r)})},t.prototype.subscribe=function(e,r){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(i){return r!==i})}}},t}();function Er(t,e,r){var n=0,i=!1;return{isLimitReached:function(){if(n===0&&z(function(){n=0},K),n+=1,n<=e||i)return i=!1,!1;if(n===e+1){i=!0;try{r({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:Ht.AGENT,startClocks:F()})}finally{i=!1}}return!0}}}function wr(t,e,r){if(document.readyState===e||document.readyState==="complete")r();else{var n=e==="complete"?m.LOAD:m.DOM_CONTENT_LOADED;M(t,window,n,r,{once:!0})}}var Tr,Cr=new WeakMap;function Ks(t){return Tr||(Tr=Ys(t)),Tr}function Ys(t){return new O(function(e){var r=j(XMLHttpRequest.prototype,"open",js).stop,n=j(XMLHttpRequest.prototype,"send",function(a){qs(a,t,e)}).stop,i=j(XMLHttpRequest.prototype,"abort",Ws).stop;return function(){r(),n(),i()}})}function js(t){var e=t.target,r=t.parameters,n=r[0],i=r[1];Cr.set(e,{state:"open",method:String(n).toUpperCase(),url:dr(String(i))})}function qs(t,e,r){var n=t.target,i=Cr.get(n);if(!!i){var a=i;a.state="start",a.startClocks=F(),a.isAborted=!1,a.xhr=n;var o=!1,s=j(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){if(c(),s(),!o){o=!0;var l=i;l.state="complete",l.duration=Y(a.startClocks.timeStamp,P()),l.status=n.status,r.notify(ne(l))}},c=M(e,n,"loadend",u).stop;r.notify(a)}}function Ws(t){var e=t.target,r=Cr.get(e);r&&(r.isAborted=!0)}var Ar;function Zs(){return Ar||(Ar=Xs()),Ar}function Xs(){return new O(function(t){if(!!window.fetch){var e=j(window,"fetch",function(r){return Js(r,t)}).stop;return e}})}function Js(t,e){var r=t.parameters,n=t.onPostCall,i=r[0],a=r[1],o=a&&a.method;o===void 0&&i instanceof Request&&(o=i.method);var s=o!==void 0?String(o).toUpperCase():"GET",u=i instanceof Request?i.url:dr(String(i)),c=F(),l={state:"start",init:a,input:i,method:s,startClocks:c,url:u};e.notify(l),r[0]=l.input,r[1]=l.init,n(function(d){return $s(e,d,l)})}function $s(t,e,r){var n=function(i){var a=r;a.state="resolve","stack"in i||i instanceof Error?(a.status=0,a.isAborted=i instanceof DOMException&&i.code===DOMException.ABORT_ERR,a.error=i):"status"in i&&(a.response=i,a.responseType=i.type,a.status=i.status,a.isAborted=!1),t.notify(a)};e.then(S(n),S(n))}var Ir={};function Qs(t){var e=t.map(function(r){return Ir[r]||(Ir[r]=tu(r)),Ir[r]});return sn.apply(void 0,e)}function tu(t){return new O(function(e){var r=st[t];return st[t]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r.apply(console,n);var a=Tn();Pt(function(){e.notify(eu(n,t,a))})},function(){st[t]=r}})}function eu(t,e,r){var n=t.map(function(u){return ru(u)}).join(" "),i,a,o;if(e===be.error){var s=Mt(t,function(u){return u instanceof Error});i=s?Vt(bt(s)):void 0,a=En(s),o=s?Cn(s,"console"):void 0}return{api:e,message:n,stack:i,handlingStack:r,fingerprint:a,causes:o}}function ru(t){return typeof t=="string"?B(t):t instanceof Error?wn(bt(t)):Dt(B(t),void 0,2)}var nu=500,iu=function(){function t(){this.buffer=[]}return t.prototype.add=function(e){var r=this.buffer.push(e);r>nu&&this.buffer.splice(0,1)},t.prototype.remove=function(e){On(this.buffer,e)},t.prototype.drain=function(e){this.buffer.forEach(function(r){return r(e)}),this.buffer.length=0},t}();function Vn(t){var e={},r=new O,n={getContext:function(){return mr(e)},setContext:function(i){St(i)==="object"?(e=B(i),t.updateCustomerData(e)):n.clearContext(),r.notify()},setContextProperty:function(i,a){e[i]=B(a),t.updateCustomerData(e),r.notify()},removeContextProperty:function(i){delete e[i],t.updateCustomerData(e),r.notify()},clearContext:function(){e={}
7,t.resetCustomerData(),r.notify()},changeObservable:r};return n}var au="_dd_c",ou=[];function Hn(t,e,r,n){var i=su(r,n);ou.push(M(t,window,m.STORAGE,function(u){var c=u.key;i===c&&a()})),e.changeObservable.subscribe(o),e.setContext(rt(s(),e.getContext()));function a(){e.setContext(s())}function o(){localStorage.setItem(i,JSON.stringify(e.getContext()))}function s(){var u=localStorage.getItem(i);return u!==null?JSON.parse(u):{}}}function su(t,e){return"".concat(au,"_").concat(t,"_").concat(e)}var uu=3*pt,cu=16*pt,lu=200;function du(t){t===void 0&&(t=2);var e=new Map,r=!1;function n(i){if(i===void 0&&(i=0),!(r||t===0)){var a=t===2?uu:cu,o=i;e.forEach(function(s){o+=s.getBytesCount()}),o>a&&(fu(a),r=!0)}}return{createDetachedTracker:function(){var i=Gn(function(){return n(i.getBytesCount())});return i},getOrCreateTracker:function(i){return e.has(i)||e.set(i,Gn(n)),e.get(i)},setCompressionStatus:function(i){t===0&&(t=i,n())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(i){return i.stop()}),e.clear()}}}function Gn(t){var e=0,r=gt(function(o){e=Je(Dt(o)),t()},lu),n=r.throttled,i=r.cancel,a=function(){i(),e=0};return{updateCustomerData:function(o){wt(o)?a():n(o)},resetCustomerData:a,getBytesCount:function(){return e},stop:function(){i()}}}function fu(t){T.warn("Customer data exceeds the recommended ".concat(t/pt,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}function vu(t,e,r){var n=t.getReader(),i=[],a=0;o();function o(){n.read().then(S(function(u){if(u.done){s();return}r.collectStreamBody&&i.push(u.value),a+=u.value.length,a>r.bytesLimit?s():o()}),S(function(u){return e(u)}))}function s(){n.cancel().catch(R);var u,c;if(r.collectStreamBody){var l;if(i.length===1)l=i[0];else{l=new Uint8Array(a);var d=0;i.forEach(function(f){l.set(f,d),d+=f.length})}u=l.slice(0,r.bytesLimit),c=l.length>r.bytesLimit}e(void 0,u,c)}}var pu="datadog-synthetics-public-id",hu="datadog-synthetics-result-id",mu="datadog-synthetics-injects-rum";function Kn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Tt(mu))}function _u(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Tt(pu);return typeof t=="string"?t:void 0}function gu(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||Tt(hu);return typeof t=="string"?t:void 0}function Yn(t){var e=y({},t),r=["id","name","email"];return r.forEach(function(n){n in e&&(e[n]=String(e[n]))}),e}function bu(t){var e=St(t)==="object";return e||T.error("Unsupported user:",t),e}function Rr(t){var e=St(t);return e==="string"||e==="function"||t instanceof RegExp}function jn(t,e,r){return r===void 0&&(r=!1),t.some(function(n){try{if(typeof n=="function")return n(e);if(n instanceof RegExp)return n.test(e);if(typeof n=="string")return r?Ee(e,n):n===e}catch(i){T.error(i)}return!1})}function Su(t,e,r){return{context:t.getContext(),user:e.getContext(),hasReplay:r.isRecording()?!0:void 0}}function yu(t){var e=t;return St(e)==="object"&&Rr(e.match)&&Array.isArray(e.propagatorTypes)}function Eu(t){t.status===0&&!t.isAborted&&(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function wu(t,e){return{clearTracingIfNeeded:Eu,traceFetch:function(r){return qn(t,r,e,function(n){var i;if(r.input instanceof Request&&!((i=r.init)===null||i===void 0?void 0:i.headers))r.input=new Request(r.input),Object.keys(n).forEach(function(o){r.input.headers.append(o,n[o])});else{r.init=ne(r.init);var a=[];r.init.headers instanceof Headers?r.init.headers.forEach(function(o,s){a.push([s,o])}):Array.isArray(r.init.headers)?r.init.headers.forEach(function(o){a.push(o)}):r.init.headers&&Object.keys(r.init.headers).forEach(function(o){a.push([o,r.init.headers[o]])}),r.init.headers=a.concat($e(n))}})},traceXhr:function(r,n){return qn(t,r,e,function(i){Object.keys(i).forEac
7h(function(a){n.setRequestHeader(a,i[a])})})}}}function qn(t,e,r,n){if(!(!Tu()||!r.findTrackedSession())){var i=Mt(t.allowedTracingUrls,function(a){return jn([a.match],e.url,!0)});!i||(e.traceId=new Zn,e.spanId=new Zn,e.traceSampled=!Nt(t.traceSampleRate)||xt(t.traceSampleRate),n(Cu(e.traceId,e.spanId,e.traceSampled,i.propagatorTypes)))}}function Tu(){return Wn()!==void 0}function Wn(){return window.crypto||window.msCrypto}function Cu(t,e,r,n){var i={};return n.forEach(function(a){switch(a){case"datadog":{y(i,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toDecimalString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toDecimalString()});break}case"tracecontext":{y(i,{traceparent:"00-0000000000000000".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-0").concat(r?"1":"0")});break}case"b3":{y(i,{b3:"".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-").concat(r?"1":"0")});break}case"b3multi":{y(i,{"X-B3-TraceId":t.toPaddedHexadecimalString(),"X-B3-SpanId":e.toPaddedHexadecimalString(),"X-B3-Sampled":r?"1":"0"});break}}}),i}var Zn=function(){function t(){this.buffer=new Uint8Array(8),Wn().getRandomValues(this.buffer),this.buffer[0]=this.buffer[0]&127}return t.prototype.toString=function(e){var r=this.readInt32(0),n=this.readInt32(4),i="";do{var a=r%e*4294967296+n;r=Math.floor(r/e),n=Math.floor(a/e),i=(a%e).toString(e)+i}while(r||n);return i},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var e=this.toString(16);return Array(17-e.length).join("0")+e},t.prototype.readInt32=function(e){return this.buffer[e]*16777216+(this.buffer[e+1]<<16)+(this.buffer[e+2]<<8)+this.buffer[e+3]},t}(),Xn=["tracecontext","datadog"];function Au(t){var e,r;if(!t.applicationId){T.error("Application ID is not configured, no RUM data will be collected.");return}if(t.sessionReplaySampleRate!==void 0&&!ee(t.sessionReplaySampleRate)){T.error("Session Replay Sample Rate should be a number between 0 and 100");return}if(t.traceSampleRate!==void 0&&!ee(t.traceSampleRate)){T.error("Trace Sample Rate should be a number between 0 and 100");return}if(t.excludedActivityUrls!==void 0&&!Array.isArray(t.excludedActivityUrls)){T.error("Excluded Activity Urls should be an array");return}var n=Iu(t);if(!!n){var i=ko(t);if(!!i)return y({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:(e=t.sessionReplaySampleRate)!==null&&e!==void 0?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:(r=t.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:we(se,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:se.MASK,customerDataTelemetrySampleRate:1},i)}}function Iu(t){if(t.allowedTracingUrls!==void 0){if(!Array.isArray(t.allowedTracingUrls)){T.error("Allowed Tracing URLs should be an array");return}if(t.allowedTracingUrls.length!==0&&t.service===void 0){T.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(r){Rr(r)?e.push({match:r,propagatorTypes:Xn}):yu(r)?e.push(r):T.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)}),e}return[]}function Ru(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(r){Rr(r)?Xn.forEach(function(n){return e.add(n)}):St(r)==="object"&&Array.isArray(r.propagatorTypes)&&r.propagatorTypes.forEach(function(n){return e.add(n)})}),an(e)}function Ou(t){var e=xo(t);return y({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:Ru(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},e)}function ku(t,e,r,n){var i=t.ignoreInitIfSyntheticsWillInjectRum,a=t.startDeflateWorker,o=new iu,s,u,c,l,d=r.observable.subscribe(f);function f(){if(!(!c||!l||!r.isGranted())){d.unsubscribe();var p;if(l.trackViewsManually){if(!s)return;o.remove(s.callback),p=s.options}var v=n(c,l,u,p);o.drain(v)}}return{init:function(p){if(!p){T.error("Missing configuration");return}var v=Yt();if(v&&(p=xu(p)),c=p,l){An("DD_RUM",p);return}if(!(i&&Kn())){var h=Au(p);if(!!h){if(!v&&!h.sessionStoreStrategyType){T.warn("No storage available for session. We will not send any data.");return}h.compressIntakeRequests&&!v&&a&&(u=a(h,"Datadog RUM",R),!u)||(l=h,r.tryToInit(h.trackingConsent),f())}}},get initConfiguration(){return c},getInternalContext:R,stopSession:R,addTiming:function(p,v){v===void 0&&(v=P()),o.add(function(h){return h.addTiming(p,v)})},startView:function(p,v){v===void 0&&(v=F());var h=function(_){_.startView(p,v)};o.add(h),s||(s={options:p,callback:h},f())},addAction:function(p,v){v===void 0&&(v=e()),o.add(function(h){return h.addAction(p,v)})},addError:function(p,v){v===void 0&&(v=e()),o.add(function(h){return h.addError(p,v)})},addFeatureFlagEvaluation:function(p,v){o.add(function(h){return h.addFeatureFlagEvaluation(p,v)})},startDurationVital:function(p){o.add(function(v){return v.startDurationVital(p)})},stopDurationVital:function(p){o.add(function(v){return v.stopDurationVital(p)})}}}function xu(t){return y({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}var Jn="rum";function Nu(t,e,r){r===void 0&&(r={});var n=du(0),i=Vn(n.getOrCreateTracker(2)),a=Vn(n.getOrCreateTracker(1)),o=po();function s(){return Su(i,a,e)}var u=ku(r,s,o,function(d,f,p,v){ut(X.CUSTOM_VITALS)&&(l.startDurationVital=S(function(_,g){u.startDurationVital({name:B(_),startClocks:(g==null?void 0:g.startTime)?en(g.startTime):F(),context:B(g==null?void 0:g.context)})}),l.stopDurationVital=S(function(_,g){u.stopDurationVital({name:B(_),stopClocks:(g==null?void 0:g.stopTime)?en(g.stopTime):F(),context:B(g==null?void 0:g.context)})})),d.storeContextsAcrossPages&&(Hn(f,i,Jn,2),Hn(f,a,Jn,1)),n.setCompressionStatus(p?1:2);var h=t(d,f,e,n,s,v,p&&r.createDeflateEncoder?function(_){return r.createDeflateEncoder(f,p,_)}:Hs,o);return e.onRumStart(h.lifeCycle,f,h.session,h.viewContexts,p),u=Lu(d,h),h}),c=S(function(d){var f=typeof d=="object"?d:{name:d};u.startView(f)}),l=ns({init:S(function(d){return u.init(d)}),setTrackingConsent:S(function(d){return o.update(d)}),setGlobalContextProperty:S(function(d,f){return i.setContextProperty(d,f)}),removeGlobalContextProperty:S(function(d){return i.removeContextProperty(d)}),getGlobalContext:S(function(){return i.getContext()}),setGlobalContext:S(function(d){return i.setContext(d)}),clearGlobalContext:S(function(){return i.clearContext()}),getInternalContext:S(function(d){return u.getInternalContext(d)}),getInitConfiguration:S(function(){return mr(u.initConfiguration)}
7),addAction:S(function(d,f){u.addAction({name:B(d),context:B(f),startClocks:F(),type:"custom"})}),addError:function(d,f){var p=Tn();Pt(function(){u.addError({error:d,handlingStack:p,context:B(f),startClocks:F()})})},addTiming:S(function(d,f){u.addTiming(B(d),f)}),setUser:S(function(d){bu(d)&&a.setContext(Yn(d))}),getUser:S(function(){return a.getContext()}),setUserProperty:S(function(d,f){var p,v=Yn((p={},p[d]=f,p))[d];a.setContextProperty(d,v)}),removeUserProperty:S(function(d){return a.removeContextProperty(d)}),clearUser:S(function(){return a.clearContext()}),startView:c,stopSession:S(function(){u.stopSession()}),addFeatureFlagEvaluation:S(function(d,f){u.addFeatureFlagEvaluation(B(d),B(f))}),getSessionReplayLink:S(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:S(function(){return e.start()}),stopSessionReplayRecording:S(function(){return e.stop()})});return l}function Lu(t,e){return y({init:function(r){An("DD_RUM",r)},initConfiguration:t},e)}function Mu(){var t=$n();return new O(function(e){if(!!t){var r=new t(S(function(){return e.notify()}));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return r.disconnect()}}})}function $n(){var t,e=window;if(e.Zone&&(t=_t(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=new e.MutationObserver(R),n=_t(r,"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var Qn="initial_document",Pu=[["document",function(t){return Qn===t}],["xhr",function(t){return t==="xmlhttprequest"}],["fetch",function(t){return t==="fetch"}],["beacon",function(t){return t==="beacon"}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return ct(["image","img","icon"],t)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)!==null}],["font",function(t,e){return/\.(woff|eot|woff2|ttf)$/i.exec(e)!==null}],["media",function(t,e){return ct(["audio","video"],t)||/\.(mp3|mp4)$/i.exec(e)!==null}]];function Uu(t){var e=t.name;if(!ho(e))return At('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r=mo(e),n=0,i=Pu;n<i.length;n++){var a=i[n],o=a[0],s=a[1];if(s(t.initiatorType,r))return o}return"other"}function Or(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=1;r<t.length;r+=1)if(t[r-1]>t[r])return!1;return!0}function Du(t){return t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch"}function Bu(t){var e=t.duration,r=t.startTime,n=t.responseEnd;return e===0&&r<n?N(Y(r,n)):N(e)}function Fu(t){var e=ti(t);if(!!e){var r=e.startTime,n=e.fetchStart,i=e.redirectStart,a=e.redirectEnd,o=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,p=e.responseEnd,v={download:jt(r,f,p),first_byte:jt(r,d,f)};return l!==n&&(v.connect=jt(r,u,l),Or(u,c,l)&&(v.ssl=jt(r,c,l))),s!==n&&(v.dns=jt(r,o,s)),ei(t)&&(v.redirect=jt(r,i,a)),v}}function ti(t){if(!!Or(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!ei(t))return t;var e=t.redirectStart,r=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),r<t.startTime&&(r=t.fetchStart),!!Or(t.startTime,e,r,t.fetchStart))return y({},t,{redirectEnd:r,redirectStart:e})}}function ei(t){return t.fetchStart!==t.startTime}function jt(t,e,r){return{duration:N(Y(e,r)),start:N(Y(t,e))}}function zu(t){if(t.startTime<t.responseStart)return t.decodedBodySize}function kr(t,e){return e&&!t.isIntakeUrl(e)}function ri(t){return t.nodeType===Node.TEXT_NODE}function Vu(t){return t.nodeType===Node.COMMENT_NODE}function qt(t){return t.nodeType===Node.ELEMENT_NODE}function Pe(t){return qt(t)&&Boolean(t.shadowRoot)}function xr(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&qt(e.host)}function Hu(t){return t.childNodes.length>0||Pe(t)}function ni(t,e){t.childNodes.forEach(e),Pe(t)&&e(t.shadowRoot)}function Ue(t){return xr(t)?t.host:t.parentNode}var Gu=2*K;function Ku(t){var e=Yu(t)||ju(t);if(!(!e||e.traceTime<=tt()-Gu))return e.traceId}function Yu(t){var e=t.querySelector("meta[name=dd-trace-id]"),r=t.querySelector("meta[name=dd-trace-time]");return ii(e&&e.content,r&&r.content)}function ju(t){var e=qu(t);if(!!e)return ii(rr(e,"trace-id"),rr(e,"trace-time"))}function ii(t,e){var r=e&&Number(e);if(!(!t||!r))return{traceId:t,traceTime:r}}function qu(t){for(var e=0;e<t.childNodes.length;e+=1){var r=ai(t.childNodes[e]);if(r)return r}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var n=t.body.childNodes[e],r=ai(n);if(r)return r;if(!ri(n))break}}function ai(t){if(t&&Vu(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}var w;(function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"})(w||(w={}));function oi(){return window.performance!==void 0&&"getEntries"in performance}function le(t){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(t)}function Wu(t,e){var r=[];if(Zu(e,function(l){de(t,e,[l])}),oi()){var n=performance.getEntries();z(function(){return de(t,e,n)})}if(window.PerformanceObserver){var i=S(function(l){return de(t,e,l.getEntries())}),a=[w.RESOURCE,w.NAVIGATION,w.LONG_TASK,w.PAINT],o=[w.LARGEST_CONTENTFUL_PAINT,w.FIRST_INPUT,w.LAYOUT_SHIFT,w.EVENT];try{o.forEach(function(l){var d=new window.PerformanceObserver(i);d.observe({type:l,buffered:!0,durationThreshold:40}),r.push(function(){return d.disconnect()})})}catch{a.push.apply(a,o)}var s=new PerformanceObserver(i);if(s.observe({entryTypes:a}),r.push(function(){return s.disconnect()}),oi()&&"addEventListener"in performance){var u=M(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;r.push(u)}}if(le(w.NAVIGATION)||Xu(e,function(l){de(t,e,[l])}),!le(w.FIRST_INPUT)){var c=Ju(e,function(l){de(t,e,[l])}).stop;r.push(c)}return{stop:function(){r.forEach(function(l){return l()})}}}function Zu(t,e){wr(t,"interactive",function(){var r,n={entryType:w.RESOURCE,initiatorType:Qn,traceId:Ku(document),toJSON:function(){return y({},r,{toJSON:void 0})}};if(le(w.NAVIGATION)&&performance.getEntriesByType(w.NAVIGATION).length>0){var i=performance.getEntriesByType(w.NAVIGATION)[0];r=y(i.toJSON(),n)}else{var a=si();r=y(a,{decodedBodySize:0,duration:a.responseEnd,name:window.location.href,startTime:0},n)}e(r)})}function Xu(t,e){function r(){e(y(si(),{entryType:w.NAVIGATION}))}wr(t,"complete",function(){z(r)})}
7function Ju(t,e){var r=tt(),n=!1,i=q(t,window,[m.CLICK,m.MOUSE_DOWN,m.KEY_DOWN,m.TOUCH_START,m.POINTER_DOWN],function(s){if(!!s.cancelable){var u={entryType:w.FIRST_INPUT,processingStart:J(),processingEnd:J(),startTime:s.timeStamp,duration:0,name:""};s.type===m.POINTER_DOWN?a(t,u):o(u)}},{passive:!0,capture:!0}).stop;return{stop:i};function a(s,u){q(s,window,[m.POINTER_UP,m.POINTER_CANCEL],function(c){c.type===m.POINTER_UP&&o(u)},{once:!0})}function o(s){if(!n){n=!0,i();var u=s.processingStart-s.startTime;u>=0&&u<tt()-r&&e(s)}}}function si(){var t={},e=performance.timing;for(var r in e)if(Nt(e[r])){var n=r,i=e[n];t[n]=i===0?0:Ze(i)}return t}function de(t,e,r){var n=r.filter(function(a){return we(w,a.entryType)}),i=n.filter(function(a){return!$u(a)&&!Qu(e,a)});i.length&&t.notify(0,i)}function $u(t){return t.entryType===w.NAVIGATION&&t.loadEventEnd<=0}function Qu(t,e){return e.entryType===w.RESOURCE&&!kr(t,e.name)}function tc(){var t=_u(),e=gu();if(t&&e)return{test_id:t,result_id:e,injected:Kn()}}function ec(){var t,e=(t=window.Cypress)===null||t===void 0?void 0:t.env("traceId");if(typeof e=="string")return{test_execution_id:e}}function rc(t,e,r){var n=mr(t),i=r(n);return $e(e).forEach(function(a){var o=a[0],s=a[1],u=nc(n,o),c=St(u);c===s?ui(t,o,B(u)):s==="object"&&(c==="undefined"||c==="null")&&ui(t,o,{})}),i}function nc(t,e){for(var r=t,n=0,i=e.split(".");n<i.length;n++){var a=i[n];if(!ic(r,a))return;r=r[a]}return r}function ui(t,e,r){for(var n=t,i=e.split("."),a=0;a<i.length;a+=1){var o=i[a];if(!ci(n))return;a!==i.length-1?n=n[o]:n[o]=r}}function ci(t){return St(t)==="object"}function ic(t,e){return ci(t)&&Object.prototype.hasOwnProperty.call(t,e)}var Wt={"view.name":"string","view.url":"string","view.referrer":"string"},fe={context:"object"},li;function ac(t,e,r,n,i,a,o,s,u){var c,l;li=(c={},c.view=Wt,c.error=y({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},fe,Wt),c.resource=y({"resource.url":"string"},ut(X.WRITABLE_RESOURCE_GRAPHQL)&&{"resource.graphql":"object"},fe,Wt),c.action=y({"action.target.name":"string"},fe,Wt),c.long_task=y({},fe,Wt),c.vital=y({},fe,Wt),c);var d=(l={},l.error=Er("error",t.eventRateLimiterThreshold,u),l.action=Er("action",t.eventRateLimiterThreshold,u),l.vital=Er("vital",t.eventRateLimiterThreshold,u),l),f=tc(),p=ec();e.subscribe(12,function(v){var h=v.startTime,_=v.rawRumEvent,g=v.domainContext,k=v.savedCommonContext,I=v.customerContext,x=n.findView(h),b=i.findUrl(h),C=r.findTrackedSession(h);if(C&&x&&b){var A=k||s(),ot=a.findActionId(h),Jt={_dd:{format_version:2,drift:Ta(),configuration:{session_sample_rate:Se(t.sessionSampleRate,3),session_replay_sample_rate:Se(t.sessionReplaySampleRate,3)},browser_sdk_version:Yt()?"5.10.0":void 0},application:{id:t.applicationId},date:P(),service:x.service||t.service,version:x.version||t.version,source:"browser",session:{id:C.id,type:f?"synthetics":p?"ci_test":"user"},view:{id:x.id,name:x.name,url:b.url,referrer:b.referrer},action:sc(_)&&ot?{id:ot}:void 0,synthetics:f,ci_test:p,display:o.get(),connectivity:Rn()},D=rt(Jt,_);D.context=rt(A.context,I),"has_replay"in D.session||(D.session.has_replay=A.hasReplay),D.type==="view"&&(D.session.sampled_for_replay=C.sessionReplayAllowed),wt(A.user)||(D.usr=A.user),oc(D,t.beforeSend,g,d)&&(wt(D.context)&&delete D.context,e.notify(13,D))}})}function oc(t,e,r,n){var i;if(e){var a=rc(t,li[t.type],function(s){return e(s,r)});if(a===!1&&t.type!=="view")return!1;a===!1&&T.warn("Can't dismiss view events using beforeSend!")}var o=(i=n[t.type])===null||i===void 0?void 0:i.isLimitReached();return!o}function sc(t){return["error","resource","long_task"].indexOf(t.type)!==-1}function uc(t,e,r,n,i){return{get:function(a){var o=r.findView(a),s=i.findUrl(a),u=e.findTrackedSession(a);if(u&&o&&s){var c=n.findActionId(a);return{application_id:t,session_id:u.id,user_action:c?{id:c}:void 0,view:{id:o.id,name:o.name,referrer:s.referrer,url:s.url}}}}}}var cc=Gs,lc=Ut;function dc(t){var e=new Kt(lc);t.subscribe(2,function(n){e.add(r(n),n.startClocks.relative)}),t.subscribe(6,function(n){var i=n.endClocks;e.closeActive(i.relative)}),t.subscribe(10,function(){e.reset()});function r(n){return{service:n.service,version:n.version,id:n.id,name:n.name,startClocks:n.startClocks}}return{findView:function(n){return e.find(n)},stop:function(){e.stop()}}}var di=1;function fc(t,e,r){var n=wu(e,r);vc(t,e,n),pc(t,e,n)}function vc(t,e,r){var n=Ks(e).subscribe(function(i){var a=i;if(!!kr(e,a.url))switch(a.state){case"start":r.traceXhr(a,a.xhr),a.requestIndex=fi(),t.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"complete":r.clearTracingIfNeeded(a),t.notify(8,{duration:a.duration,method:a.method,requestIndex:a.requestIndex,spanId:a.spanId,startClocks:a.startClocks,status:a.status,traceId:a.traceId,traceSampled:a.traceSampled,type:"xhr",url:a.url,xhr:a.xhr});break}});return{stop:function(){return n.unsubscribe()}}}function pc(t,e,r){var n=Zs().subscribe(function(i){var a=i;if(!!kr(e,a.url))switch(a.state){case"start":r.traceFetch(a),a.requestIndex=fi(),t.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"resolve":hc(a,function(o){r.clearTracingIfNeeded(a),t.notify(8,{duration:o,method:a.method,requestIndex:a.requestIndex,responseType:a.responseType,spanId:a.spanId,startClocks:a.startClocks,status:a.status,traceId:a.traceId,traceSampled:a.traceSampled,type:"fetch",url:a.url,response:a.response,init:a.init,input:a.input})});break}});return{stop:function(){return n.unsubscribe()}}}function fi(){var t=di;return di+=1,t}function hc(t,e){var r=t.response&&As(t.response);!r||!r.body?e(Y(t.startClocks.timeStamp,P())):vu(r.body,function(){e(Y(t.startClocks.timeStamp,P()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function vi(t){var e=t.lifeCycle,r=t.isChildEvent,n=t.onChange,i=n===void 0?R:n,a={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(13,function(s){var u;if(!(s.type==="view"||s.type==="vital"||!r(s)))switch(s.type){case"error":a.errorCount+=1,i();break;case"action":a.actionCount+=1,s.action.frustration&&(a.frustrationCount+=s.action.frustration.type.length),i();break;case"long_task":a.longTaskCount+=1,i();break;case"resource":((u=s._dd)===null||u===void 0?void 0:u.discarded)||(a.resourceCount+=1,i());break}});return{stop:function(){o.unsubscribe()},eventCounts:a}}var pi=100,mc=100;function Nr(t,e,r,n,i){var a=gc(t,e,r);return _c(a,n,i)}function _c(t,e,r){var n,i=!1,a=z(S(function(){return c({hadActivity:!1})}),pi),o=r!==void 0?z(S(function(){return c({hadActivity:!0,end:P()})}),r):void 0,s=t.subscribe(function(l){var d=l.isBusy;et(a),et(n);var f=P();d||(n=z(S(function(){return c({hadActivity:!0,end:f})}),mc))}),u=function(){i=!0,et(a),et(n),et(o),s.unsubscribe()};function c(l){i||(u(),e(l))}return{stop:u}}function gc(t,e,r){return new O(function(n){var i=[],a,o=0;i.push(e.subscribe(u),t.subscribe(0,function(c){c.some(function(l){return l.entryType===w.RESOURCE&&!Lr(r,l.name)})&&u()}),t.subscribe(7,function(c){Lr(r,c.url)||(a===void 0&&(a=c.requestIndex),o+=1,u())}),t.subscribe(8,function(c){Lr(r,c.url)||a===void 0||c.requestIndex<a||(o-=1,u())}));var s=bc(u).stop;
7return function(){s(),i.forEach(function(c){return c.unsubscribe()})};function u(){n.notify({isBusy:o>0})}})}function Lr(t,e){return jn(t.excludedActivityUrls,e)}function bc(t){return j(window,"open",t)}var Mr="data-dd-action-name";function Sc(t,e){return hi(t,Mr)||e&&hi(t,e)||mi(t,e,yc)||mi(t,e,Ec)||""}function hi(t,e){var r;if(Ic())r=t.closest("[".concat(e,"]"));else for(var n=t;n;){if(n.hasAttribute(e)){r=n;break}n=n.parentElement}if(!!r){var i=r.getAttribute(e);return gi(_i(i.trim()))}}var yc=[function(t,e){if(Ac()){if("labels"in t&&t.labels&&t.labels.length>0)return Zt(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&Mt(t.ownerDocument.querySelectorAll("label"),function(n){return n.htmlFor===t.id});return r&&Zt(r,e)}},function(t){if(t.nodeName==="INPUT"){var e=t,r=e.getAttribute("type");if(r==="button"||r==="submit"||r==="reset")return e.value}},function(t,e){if(t.nodeName==="BUTTON"||t.nodeName==="LABEL"||t.getAttribute("role")==="button")return Zt(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var r=t.getAttribute("aria-labelledby");if(r)return r.split(/\s+/).map(function(n){return Tc(t,n)}).filter(function(n){return Boolean(n)}).map(function(n){return Zt(n,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 Zt(t.options[0],e)}],Ec=[function(t,e){return Zt(t,e)}],wc=10;function mi(t,e,r){for(var n=t,i=0;i<=wc&&n&&n.nodeName!=="BODY"&&n.nodeName!=="HTML"&&n.nodeName!=="HEAD";){for(var a=0,o=r;a<o.length;a++){var s=o[a],u=s(n,e);if(typeof u=="string"){var c=u.trim();if(c)return gi(_i(c))}}if(n.nodeName==="FORM")break;n=n.parentElement,i+=1}}function _i(t){return t.replace(/\s+/g," ")}function gi(t){return t.length>100?"".concat(un(t,100)," [...]"):t}function Tc(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}function Zt(t,e){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,n=function(i){for(var a=t.querySelectorAll(i),o=0;o<a.length;o+=1){var s=a[o];if("innerText"in s){var u=s.innerText;u&&u.trim().length>0&&(r=r.replace(u,""))}}};return Cc()||n("script, style"),n("[".concat(Mr,"]")),e&&n("[".concat(e,"]")),r}return t.textContent}}function Cc(){return!Ba()}var Pr;function Ac(){return Pr===void 0&&(Pr="labels"in HTMLInputElement.prototype),Pr}var Ur;function Ic(){return Ur===void 0&&(Ur="closest"in HTMLElement.prototype),Ur}var bi=[Mr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Rc=[yi,kc],Oc=[yi,xc,Nc];function ve(t,e){for(var r="",n=t;n&&n.nodeName!=="HTML";){var i=Ei(n,Rc,Mc,e,r);if(i)return i;var a=Ei(n,Oc,Pc,e,r);r=a||Dr(Lc(n),r),n=n.parentElement}return r}function Si(t){return/[0-9]/.test(t)}function kc(t){if(t.id&&!Si(t.id))return"#".concat(ht(t.id))}function xc(t){if(t.tagName!=="BODY"&&t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var r=t.classList[e];if(!Si(r))return"".concat(ht(t.tagName),".").concat(ht(r))}}function Nc(t){return ht(t.tagName)}function yi(t,e){if(e){var r=o(e);if(r)return r}for(var n=0,i=bi;n<i.length;n++){var a=i[n],r=o(a);if(r)return r}function o(s){if(t.hasAttribute(s))return"".concat(ht(t.tagName),"[").concat(s,'="').concat(ht(t.getAttribute(s)),'"]')}}function Lc(t){for(var e=t.parentElement.firstElementChild,r=1;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return"".concat(ht(t.tagName),":nth-of-type(").concat(r,")")}function Ei(t,e,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a],u=s(t,n);if(!!u){var c=Dr(u,i);if(r(t,c))return c}}}function Mc(t,e){return t.ownerDocument.querySelectorAll(e).length===1}function Pc(t,e){return t.parentElement.querySelectorAll(Uc()?Dr(":scope",e):e).length===1}function Dr(t,e){return e?"".concat(t,">").concat(e):t}var De;function Uc(){if(De===void 0)try{document.querySelector(":scope"),De=!0}catch{De=!1}return De}var wi=G,Dc=100;function Bc(t,e){var r=[],n=0,i;a(t);function a(u){u.stopObservable.subscribe(o),r.push(u),et(i),i=z(s,wi)}function o(){n===1&&r.every(function(u){return u.isStopped()})&&(n=2,e(r))}function s(){et(i),n===0&&(n=1,o())}return{tryAppend:function(u){return n!==0?!1:r.length>0&&!Fc(r[r.length-1].event,u.event)?(s(),!1):(a(u),!0)},stop:function(){s()}}}function Fc(t,e){return t.target===e.target&&zc(t,e)<=Dc&&t.timeStamp-e.timeStamp<=wi}function zc(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}function Vc(t,e){var r=e.onPointerDown,n=e.onPointerUp,i,a={selection:!1,input:!1},o,s=[M(t,window,m.POINTER_DOWN,function(u){Ci(u)&&(i=Ti(),a={selection:!1,input:!1},o=r(u))},{capture:!0}),M(t,window,m.SELECTION_CHANGE,function(){(!i||!Ti())&&(a.selection=!0)},{capture:!0}),M(t,window,m.POINTER_UP,function(u){if(Ci(u)&&o){var c=a;n(o,u,function(){return c}),o=void 0}},{capture:!0}),M(t,window,m.INPUT,function(){a.input=!0},{capture:!0})];
7return{stop:function(){s.forEach(function(u){return u.stop()})}}}function Ti(){var t=window.getSelection();return!t||t.isCollapsed}function Ci(t){return t.target instanceof Element&&t.isPrimary!==!1}var Ai=3;function Hc(t,e){if(Gc(t))return e.addFrustration("rage_click"),t.some(Ii)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var r=t.some(function(n){return n.getUserActivity().selection});return t.forEach(function(n){n.hasError&&n.addFrustration("error_click"),Ii(n)&&!r&&n.addFrustration("dead_click")}),{isRage:!1}}function Gc(t){if(t.some(function(r){return r.getUserActivity().selection}))return!1;for(var e=0;e<t.length-(Ai-1);e+=1)if(t[e+Ai-1].event.timeStamp-t[e].event.timeStamp<=G)return!0;return!1}var Kc='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 Ii(t){return t.hasPageActivity||t.getUserActivity().input?!1:!Na(t.event.target,Kc)}var Yc=10*G,jc=5*K;function qc(t,e,r){var n=new Kt(jc),i=new O,a;t.subscribe(10,function(){n.reset()}),t.subscribe(5,c);var o=Vc(r,{onPointerDown:function(l){return Wc(r,t,e,l)},onPointerUp:function(l,d,f){var p=l.clickActionBase,v=l.hadActivityOnPointerDown;return Zc(r,t,e,n,i,u,p,d,f,v)}}).stop,s={findActionId:function(l){return n.findAll(l)}};return{stop:function(){c(),i.notify(),o()},actionContexts:s};function u(l){if(!a||!a.tryAppend(l)){var d=l.clone();a=Bc(l,function(f){Jc(f,d)})}}function c(){a&&a.stop()}}function Wc(t,e,r,n){var i=Xc(n,t.actionNameAttribute),a=!1;return Nr(e,r,t,function(o){a=o.hadActivity},pi),{clickActionBase:i,hadActivityOnPointerDown:function(){return a}}}function Zc(t,e,r,n,i,a,o,s,u,c){var l=Ri(e,n,u,o,s);a(l);var d=Nr(e,r,t,function(v){v.hadActivity&&v.end<l.startClocks.timeStamp?l.discard():v.hadActivity?l.stop(v.end):c()?l.stop(l.startClocks.timeStamp):l.stop()},Yc).stop,f=e.subscribe(5,function(v){var h=v.endClocks;l.stop(h.timeStamp)}),p=i.subscribe(function(){l.stop()});l.stopObservable.subscribe(function(){f.unsubscribe(),d(),p.unsubscribe()})}function Xc(t,e){var r=t.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:ve(t.target,e)},position:{x:Math.round(t.clientX-r.left),y:Math.round(t.clientY-r.top)},name:Sc(t.target,e)}}function Ri(t,e,r,n,i){var a=V(),o=F(),s=e.add(a,o.relative),u=vi({lifeCycle:t,isChildEvent:function(v){return v.action!==void 0&&(Array.isArray(v.action.id)?ct(v.action.id,a):v.action.id===a)}}),c=0,l,d=[],f=new O;function p(v){c===0&&(l=v,c=1,l?s.close(Ze(l)):s.remove(),u.stop(),f.notify())}return{event:i,stop:p,stopObservable:f,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return l!==void 0},getUserActivity:r,addFrustration:function(v){d.push(v)},startClocks:o,isStopped:function(){return c===1||c===2},clone:function(){return Ri(t,e,r,n,i)},validate:function(v){if(p(),c===1){var h=u.eventCounts,_=h.resourceCount,g=h.errorCount,k=h.longTaskCount,I=y({type:"click",duration:l&&Y(o.timeStamp,l),startClocks:o,id:a,frustrationTypes:d,counts:{resourceCount:_,errorCount:g,longTaskCount:k},events:v!=null?v:[i],event:i},n);t.notify(1,I),c=2}},discard:function(){p(),c=2}}}function Jc(t,e){var r=Hc(t,e).isRage;r?(t.forEach(function(n){return n.discard()}),e.stop(P()),e.validate(t.map(function(n){return n.event}))):(e.discard(),t.forEach(function(n){return n.validate()}))}function $c(t,e,r,n){t.subscribe(1,function(a){return t.notify(12,Oi(a,n))});var i={findActionId:R};return r.trackUserInteractions&&(i=qc(t,e,r).actionContexts),{addAction:function(a,o){t.notify(12,y({savedCommonContext:o},Oi(a,n)))},actionContexts:i}}function Oi(t,e){var r=Br(t)?{action:{id:t.id,loading_time:N(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0,n=Br(t)?void 0:t.context,i=rt({action:{id:V(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},r);return{customerContext:n,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:Br(t)?{events:t.events}:{}}}function Br(t){return t.type!=="custom"}function Qc(t){var e=Qs([be.error]).subscribe(function(r){return t.notify({startClocks:F(),message:r.message,stack:r.stack,fingerprint:r.fingerprint,source:Ht.CONSOLE,handling:"handled",handlingStack:r.handlingStack})});return{stop:function(){e.unsubscribe()}}}function tl(t,e){var r=as(t,[Gt.cspViolation,Gt.intervention]).subscribe(function(n){return e.notify({startClocks:F(),message:n.message,stack:n.stack,type:n.subtype,source:Ht.REPORT,handling:"unhandled",originalError:n.originalReport})});return{stop:function(){r.unsubscribe()}}}function el(t,e,r,n){var i=new O;return Qc(i),ts(i),tl(e,i),i.subscribe(function(a){return t.notify(14,{error:a})}),rl(t,r,n)}function rl(t,e,r){return t.subscribe(14,function(n){var i=n.error,a=n.customerContext,o=n.savedCommonContext;t.notify(12,y({customerContext:a,savedCommonContext:o},nl(i,e,r)))}),{addError:function(n,i){var a=n.error,o=n.handlingStack,s=n.startClocks,u=n.context,c=a instanceof Error?bt(a):void 0,l=yn({stackTrace:c,originalError:a,handlingStack:o,startClocks:s,nonErrorPrefix:"Provided",source:Ht.CUSTOM,handling:"handled"});t.notify(14,{customerContext:u,savedCommonContext:i,error:l})}}}function nl(t,e,r){var n={date:t.startClocks.timeStamp,error:{id:V(),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",fingerprint:t.fingerprint},type:"error",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},i=r.findFeatureFlagEvaluations(t.startClocks.relative);return i&&!wt(i)&&(n.feature_flags=i),{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}function il(t,e,r){t.subscribe(0,function(n){for(var i=0,a=n;i<a.length;i++){var o=a[i];if(o.entryType!==w.LONG_TASK)break;var s=r.findTrackedSession(o.startTime);if(!s||!e.trackLongTasks)break;var u=We(o.startTime),c={date:u.timeStamp,long_task:{id:V(),duration:N(o.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:c,startTime:u.relative,domainContext:{performanceEntry:o}})}})}function al(t){if(!(!performance||!("getEntriesByName"in performance))){var e=performance.getEntriesByName(t.url,"resource");if(!(!e.length||!("toJSON"in e[0]))){var r=e.map(function(n){return n.toJSON()}).filter(ti).filter(function(n){return ol(n,t.startClocks.relative,ki({startTime:t.startClocks.relative,duration:t.duration}))});if(r.length===1)return r[0]}}}function ki(t){return Lt(t.startTime,t.duration)}function ol(t,e,r){var n=1;return t.startTime>=e-n&&ki(t)<=Lt(r,n)}function sl(t,e,r,n){t.subscribe(8,function(i){var a=ul(i,e,r,n);a&&t.notify(12,a)}),t.subscribe(0,function(i){for(var a=0,o=i;a<o.length;a++){var s=o[a];if(s.entryType===w.RESOURCE&&!Du(s)){var u=cl(s,e,r,n);u&&t.notify(12,u)}}})}function ul(t,e,r,n){var i,a=al(t),o=a?We(a.startTime):t.startClocks,s=xi(e,r,o),u=ll(t,e);if(!(!s&&!u)){var c=t.type==="xhr"?"xhr":"fetch",l=a?Ni(a):void 0,d=fl(n,o,t.duration),f=Mi(n,o,(i=a==null?void 0:a.duration)!==null&&i!==void 0?i:t.duration),p=rt({date:o.timeStamp,resource:{id:V(),type:c,duration:d,method:t.method,status_code:t.status,url:t.url},type:"resource",_dd:{discarded:!s}},u,l,f);return{startTime:o.relative,rawRumEvent:p,domainContext:{performanceEntry:a,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}}function cl(t,e,r,n){var i=We(t.startTime),a=xi(e,r,i),o=dl(t,e);if(!(!a&&!o)){var s=Uu(t),u=Ni(t),c=Mi(n,i,t.duration),l=rt({date:i.timeStamp,resource:{id:V(),type:s,url:t.name,status_code:vl(t.responseStatus)},type:"resource",_dd:{discarded:!a}},o,u,c);return{startTime:i.relative,rawRumEvent:l,domainContext:{performanceEntry:t}}}}function xi(t,e,r){return t.trackResources&&e.findTrackedSession(r.relative)}function Ni(t){return{resource:y({duration:Bu(t),size:zu(t)},Fu(t))}}function ll(t,e){var r=t.traceSampled&&t.traceId&&t.spanId;if(!!r)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:Li(e)}}}function dl(t,e){var r=t.traceId;if(!!r)return{_dd:{trace_id:t.traceId,rule_psr:Li(e)}}}function Li(t){return Nt(t.traceSampleRate)?t.traceSampleRate/100:void 0}function Mi(t,e,r){if(!!ut(X.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,r),page_was_discarded:String(document.wasDiscarded)}}}function fl(t,e,r){var n,i=(n=t.findAll(e.relative,r))===null||n===void 0?void 0:n.some(function(a){return a.state==="frozen"});return i?void 0:N(r)}function vl(t){return t===0?void 0:t}function pl(t,e,r){var n=vi({lifeCycle:t,isChildEvent:function(o){return o.view.id===e},onChange:r}),i=n.stop,a=n.eventCounts;return{stop:i,eventCounts:a}}var hl=10*K;function ml(t,e,r){var n=t.subscribe(0,function(i){var a=Mt(i,function(o){return o.entryType===w.PAINT&&o.name==="first-contentful-paint"&&o.startTime<e.timeStamp&&o.startTime<hl});a&&r(a.startTime)}).unsubscribe;return{stop:n}}function _l(t,e,r,n){var i=t.subscribe(0,function(a){var o=Mt(a,function(c){return c.entryType===w.FIRST_INPUT&&c.startTime<r.timeStamp});if(o){var s=Y(o.startTime,o.processingStart),u=void 0;o.target&&qt(o.target)&&(u=ve(o.target,e.actionNameAttribute)),n({delay:s>=0?s:0,time:o.startTime,targetSelector:u})}}).unsubscribe;return{stop:i}}function gl(t,e){var r=t.subscribe(0,function(n){for(var i=0,a=n;i<a.length;i++){var o=a[i];o.entryType===w.NAVIGATION&&e({domComplete:o.domComplete,domContentLoaded:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEvent:o.loadEventEnd,firstByte:o.responseStart>=0&&o.responseStart<=J()?o.responseStart:void 0})}}).unsubscribe;return{stop:r}}var bl=10*K,Pi=!1,Xt;function Sl(t,e,r,n,i){var a=1/0,o=q(e,n,[m.POINTER_DOWN,m.KEY_DOWN],function(c){a=c.timeStamp},{capture:!0,once:!0}).stop,s=0,u=t.subscribe(0,function(c){var l=Oa(c,function(f){return f.entryType===w.LARGEST_CONTENTFUL_PAINT&&f.startTime<a&&f.startTime<r.timeStamp&&f.startTime<bl&&f.size>s});if(l){var d=void 0;l.element&&(d=ve(l.element,e.actionNameAttribute)),ut(X.ZERO_LCP_TELEMETRY)&&yl(l,c.filter(function(f){return f.entryType===w.LARGEST_CONTENTFUL_PAINT})),i({value:l.startTime,targetSelector:d}),s=l.size}}).unsubscribe;return{stop:function(){o(),u()}}}function yl(t,e){if(!Pi){var r=t.startTime===0?"LCP with startTime = 0":Xt!==void 0&&t.startTime<Xt.startTime?"LCP with startTime < previous LCP":Xt!==void 0&&t.size<Xt.size?"LCP with size < previous LCP":void 0;r&&(Pi=!0,At(r,{debug:{entry:Fr(t),previousLcp:Xt,timeOrigin:performance.timeOrigin,now:J(),lcpEntries:e.map(Fr)}})),Xt=Fr(t)}}function Fr(t){var e=t.toJSON();return delete e.element,e}function El(t,e){e===void 0&&(e=window);var r,n;return document.visibilityState==="hidden"?r=0:(r=1/0,n=q(t,e,[m.PAGE_HIDE,m.VISIBILITY_CHANGE],function(i){(i.type===m.PAGE_HIDE||document.visibilityState==="hidden")&&(r=i.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){n==null||n()}}}function wl(t,e,r,n){var i={},a=gl(t,function(d){r(d.loadEvent),i.navigationTimings=d,n()}).stop,o=El(e),s=ml(t,o,function(d){i.firstContentfulPaint=d,n()}).stop,u=Sl(t,e,o,window,function(d){i.largestContentfulPaint=d,n()}).stop,c=_l(t,e,o,function(d){i.firstInput=d,n()}).stop;function l(){a(),s(),u(),c(),o.stop()}return{stop:l,initialViewMetrics:i}}function Tl(t,e,r){if(!Al())return{stop:R};var n=0;r({value:0});var i=Cl(),a=e.subscribe(0,function(o){for(var s=0,u=o;s<u.length;s++){var c=u[s];if(c.entryType===w.LAYOUT_SHIFT&&!c.hadRecentInput&&(i.update(c),i.value(
7)>n)){n=i.value();var l=Se(n,4),d=i.largestLayoutShiftTarget(),f=void 0;d&&d.isConnected&&(f=ve(d,t.actionNameAttribute)),r({value:l,targetSelector:f})}}}).unsubscribe;return{stop:a}}function Cl(){var t=0,e,r,n=0,i,a;return{update:function(o){var s,u,c=e===void 0||o.startTime-r>=G||o.startTime-e>=5*G;c?(e=r=o.startTime,t=o.value,n=0,i=void 0):(t+=o.value,r=o.startTime),o.value>n&&(n=o.value,a=o.startTime,((s=o.sources)===null||s===void 0?void 0:s.length)?i=(u=Mt(o.sources,function(l){return!!l.node&&qt(l.node)}))===null||u===void 0?void 0:u.node:i=void 0)},value:function(){return t},largestLayoutShiftTarget:function(){return i},largestLayoutShiftTime:function(){return a}}}function Al(){return le(w.LAYOUT_SHIFT)}var Be,Ui=0,zr=1/0,Vr=0;function Il(){"interactionCount"in performance||Be||(Be=new window.PerformanceObserver(S(function(t){t.getEntries().forEach(function(e){var r=e;r.interactionId&&(zr=Math.min(zr,r.interactionId),Vr=Math.max(Vr,r.interactionId),Ui=(Vr-zr)/7+1)})})),Be.observe({type:"event",buffered:!0,durationThreshold:0}))}var Di=function(){return Be?Ui:window.performance.interactionCount||0},Bi=10,Rl=1*K;function Ol(t,e,r,n){if(!Nl())return{getInteractionToNextPaint:function(){},setViewEnd:R,stop:R};var i=xl(r),a=i.getViewInteractionCount,o=i.stopViewInteractionCount,s=1/0,u=kl(a),c=-1,l,d=n.subscribe(0,function(f){for(var p=0,v=f;p<v.length;p++){var h=v[p];(h.entryType===w.EVENT||h.entryType===w.FIRST_INPUT)&&h.interactionId&&h.startTime>=e&&h.startTime<=s&&u.process(h)}var _=u.estimateP98Interaction();_&&(c=_.duration,_.target&&qt(_.target)?l=ve(_.target,t.actionNameAttribute):l=void 0)}).unsubscribe;return{getInteractionToNextPaint:function(){if(c>=0)return{value:Math.min(c,Rl),targetSelector:l};if(a())return{value:0}}
7,setViewEnd:function(f){s=f,o()},stop:d}}function kl(t){var e=[];function r(){e.sort(function(n,i){return i.duration-n.duration}).splice(Bi)}return{process:function(n){var i=e.findIndex(function(o){return n.interactionId===o.interactionId}),a=e[e.length-1];i!==-1?n.duration>e[i].duration&&(e[i]=n,r()):(e.length<Bi||n.duration>a.duration)&&(e.push(n),r())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}function xl(t){Il();var e=t==="initial_load"?0:Di(),r={stopped:!1};function n(){return Di()-e}return{getViewInteractionCount:function(){return r.stopped?r.interactionCount:n()},stopViewInteractionCount:function(){r={stopped:!0,interactionCount:n()}}}}function Nl(){return le(w.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function Ll(t,e,r,n,i,a){var o=n==="initial_load",s=!0,u=[];function c(){!s&&!o&&u.length>0&&a(Math.max.apply(Math,u))}var l=Nr(t,e,r,function(d){s&&(s=!1,d.hadActivity&&u.push(Y(i.timeStamp,d.end)),c())}).stop;return{stop:l,setLoadEvent:function(d){o&&(o=!1,u.push(d),c())}}}function Fi(){var t,e=window.visualViewport;return e?t=e.pageLeft-e.offsetLeft:window.scrollX!==void 0?t=window.scrollX:t=window.pageXOffset||0,Math.round(t)}function Hr(){var t,e=window.visualViewport;return e?t=e.pageTop-e.offsetTop:window.scrollY!==void 0?t=window.scrollY:t=window.pageYOffset||0,Math.round(t)}var Gr;function zi(t){return Gr||(Gr=Ml(t)),Gr}function Ml(t){return new O(function(e){var r=gt(function(){e.notify(Fe())},200).throttled;return M(t,window,m.RESIZE,r,{capture:!0,passive:!0}).stop})}function Fe(){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 Pl=G;function Ul(t,e,r,n){n===void 0&&(n=Bl(t));var i=0,a=0,o=0,s=n.subscribe(function(u){var c=u.scrollDepth,l=u.scrollTop,d=u.scrollHeight,f=!1;if(c>i&&(i=c,f=!0),d>a){a=d;var p=J();o=Y(e.relative,p),f=!0}f&&r({maxDepth:Math.min(i,a),maxDepthScrollTop:l,maxScrollHeight:a,maxScrollHeightTime:o})});return{stop:function(){return s.unsubscribe()}}}function Dl(){var t=Hr(),e=Fe().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),n=Math.round(e+t);return{scrollHeight:r,scrollDepth:n,scrollTop:t}}function Bl(t,e){return e===void 0&&(e=Pl),new O(function(r){function n(){r.notify(Dl())}if(window.ResizeObserver){var i=gt(n,e,{leading:!1,trailing:!0}),a=document.scrollingElement||document.documentElement,o=new ResizeObserver(S(i.throttled));o.observe(a);var s=M(t,window,m.SCROLL,i.throttled,{passive:!0});return function(){i.cancel(),o.unobserve(a),s.stop()}}})}function Fl(t,e,r,n,i,a){var o={},s=Ll(t,e,r,i,a,function(_){o.loadingTime=_,n()}),u=s.stop,c=s.setLoadEvent,l=Ul(r,a,function(_){o.scroll=_}).stop,d=Tl(r,t,function(_){o.cumulativeLayoutShift=_,n()}).stop,f=Ol(r,a.relative,i,t),p=f.stop,v=f.getInteractionToNextPaint,h=f.setViewEnd;return{stop:function(){u(),d(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:h,getCommonViewMetrics:function(){return o.interactionToNextPaint=v(),o}}}var zl=3e3,Vl=5*K,Hl=5*K;function Gl(t,e,r,n,i,a,o){var s=new Set,u=l("initial_load",rn(),o);d();var c;a&&(c=f(i));function l(p,v,h){var _=Kl(e,r,n,t,p,v,h);return s.add(_),_.stopObservable.subscribe(function(){s.delete(_)}),_}function d(){e.subscribe(10,function(){u=l("route_change",void 0,{name:u.name,service:u.service,version:u.version})}),e.subscribe(9,function(){u.end({sessionIsActive:!1})}),e.subscribe(11,function(p){(p.reason===lt.UNLOADING||p.reason===lt.PAGEHIDE)&&u.end()})}function f(p){return p.subscribe(function(v){var h=v.oldLocation,_=v.newLocation;jl(h,_)&&(u.end(),u=l("route_change"))})}return{addTiming:function(p,v){v===void 0&&(v=P()),u.addTiming(p,v)},startView:function(p,v){u.end({endClocks:v}),u=l("route_change",v,p)}
7,stop:function(){c==null||c.unsubscribe(),u.end(),s.forEach(function(p){return p.stop()})}}}function Kl(t,e,r,n,i,a,o){a===void 0&&(a=F());var s=V(),u=new O,c={},l=0,d,f=ne(n),p=!0,v,h,_;o&&(v=o.name,h=o.service,_=o.version);var g={id:s,name:v,startClocks:a,service:h,version:_};t.notify(2,g),t.notify(3,g);var k=gt(U,zl,{leading:!1}),I=k.throttled,x=k.cancel,b=Fl(t,e,r,I,i,a),C=b.setLoadEvent,A=b.setViewEnd,ot=b.stop,Jt=b.stopINPTracking,D=b.getCommonViewMetrics,me=i==="initial_load"?wl(t,r,C,I):{stop:R,initialViewMetrics:{}},He=me.stop,Ge=me.initialViewMetrics,_e=pl(t,s,I),Ke=_e.stop,ge=_e.eventCounts,Ye=ie(U,Vl);U();function U(){x(),l+=1;var Z=d===void 0?P():d.timeStamp;t.notify(4,{customTimings:c,documentVersion:l,id:s,name:v,service:h,version:_,loadingType:i,location:f,startClocks:a,commonViewMetrics:D(),initialViewMetrics:Ge,duration:Y(a.timeStamp,Z),isActive:d===void 0,sessionIsActive:p,eventCounts:ge})}return{name:v,service:h,version:_,stopObservable:u,end:function(Z){var $t=this,Qt,je;Z===void 0&&(Z={}),!d&&(d=(Qt=Z.endClocks)!==null&&Qt!==void 0?Qt:F(),p=(je=Z.sessionIsActive)!==null&&je!==void 0?je:!0,t.notify(5,{endClocks:d}),t.notify(6,{endClocks:d}),er(Ye),A(d.relative),ot(),U(),z(function(){$t.stop()},Hl))},stop:function(){He(),Ke(),Jt(),u.notify()},addTiming:function(Z,$t){if(!d){var Qt=Aa($t)?$t:Y(a.timeStamp,$t);c[Yl(Z)]=Qt,I()}}}}function Yl(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&T.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}function jl(t,e){return t.pathname!==e.pathname||!ql(e.hash)&&Vi(e.hash)!==Vi(t.hash)}function ql(t){var e=t.substring(1);return e!==""&&!!document.getElementById(e)}function Vi(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Wl(t,e,r,n,i,a,o,s,u){return t.subscribe(4,function(c){return t.notify(12,Zl(c,e,a,s,o))}),Gl(r,t,n,e,i,!e.trackViewsManually,u)}function Zl(t,e,r,n,i){var a,o,s,u,c,l,d,f,p,v,h,_,g,k,I=n.getReplayStats(t.id),x=r.findFeatureFlagEvaluations(t.startClocks.relative),b=i.findAll(t.startClocks.relative,t.duration),C={_dd:{document_version:t.documentVersion,replay_stats:I,page_states:b,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:(a=t.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.value,cumulative_layout_shift_target_selector:(o=t.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.targetSelector,first_byte:N((s=t.initialViewMetrics.navigationTimings)===null||s===void 0?void 0:s.firstByte),dom_complete:N((u=t.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:N((c=t.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.domContentLoaded),dom_interactive:N((l=t.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:N(t.initialViewMetrics.firstContentfulPaint),first_input_delay:N((d=t.initialViewMetrics.firstInput)===null||d===void 0?void 0:d.delay),first_input_time:N((f=t.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.time),first_input_target_selector:(p=t.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.targetSelector,interaction_to_next_paint:N((v=t.commonViewMetrics.interactionToNextPaint)===null||v===void 0?void 0:v.value),interaction_to_next_paint_target_selector:(h=t.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:N((_=t.initialViewMetrics.largestContentfulPaint)===null||_===void 0?void 0:_.value),largest_contentful_paint_target_selector:(g=t.initialViewMetrics.largestContentfulPaint)===null||g===void 0?void 0:g.targetSelector,load_event:N((k=t.initialViewMetrics.navigationTimings)===null||k===void 0?void 0:k.loadEvent),loading_time:Xl(N(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:N(t.duration)},feature_flags:x&&!wt(x)?x:void 0,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:N(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:I?!0:void 0,is_active:t.sessionIsActive?void 0:!1},privacy:{replay_level:e.defaultPrivacyLevel}};return wt(t.customTimings)||(C.view.custom_timings=La(t.customTimings,N)),{rawRumEvent:C,startTime:t.startClocks.relative,domainContext:{location:t.location}}}function Xl(t){return Nt(t)&&t<0?void 0:t}var Jl="rum";function $l(t,e,r){var n=Es(t,Jl,function(i){return td(t,i)},r);return n.expireObservable.subscribe(function(){e.notify(9)}
7),n.renewObservable.subscribe(function(){e.notify(10)}),{findTrackedSession:function(i){var a=n.findActiveSession(i);if(!(!a||!Hi(a.trackingType)))return{id:a.id,sessionReplayAllowed:a.trackingType==="1"}},expire:n.expire,expireObservable:n.expireObservable}}function Ql(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:R,expireObservable:new O}}function td(t,e){var r;return ed(e)?r=e:xt(t.sessionSampleRate)?xt(t.sessionReplaySampleRate)?r="1":r="2":r="0",{trackingType:r,isTracked:Hi(r)}}function ed(t){return t==="0"||t==="1"||t==="2"}function Hi(t){return t==="2"||t==="1"}function rd(t,e,r,n,i,a,o){var s=t.replica,u=Vs(t,{endpoint:t.rumEndpointBuilder,encoder:o(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(c){return rt(c,{application:{id:s.applicationId}})},encoder:o(3)},n,i,a);return e.subscribe(13,function(c){c.type==="view"?u.upsert(c,c.view.id):u.add(c)}),r.subscribe(function(c){return u.add(c,hs(t))}),u}function nd(t){var e=yr();t.subscribe(13,function(r){e.send("rum",r)})}var id=Ut;function ad(t,e,r){var n=new Kt(id),i;t.subscribe(2,function(s){var u=s.startClocks,c=r.href;n.add(o({url:c,referrer:i||document.referrer}),u.relative),i=c}),t.subscribe(6,function(s){var u=s.endClocks;n.closeActive(u.relative)});var a=e.subscribe(function(s){var u=s.newLocation,c=n.find();if(c){var l=J();n.closeActive(l),n.add(o({url:u.href,referrer:c.referrer}),l)}});function o(s){var u=s.url,c=s.referrer;return{url:u,referrer:c}}return{findUrl:function(s){return n.find(s)},stop:function(){a.unsubscribe(),n.stop()}}}function od(t,e){var r=ne(e);return new O(function(n){var i=sd(t,o).stop,a=ud(t,o).stop;function o(){if(r.href!==e.href){var s=ne(e);n.notify({newLocation:s,oldLocation:r}),r=s}}return function(){i(),a()}})}function sd(t,e){var r=j(history,"pushState",function(a){var o=a.onPostCall;o(e)}).stop,n=j(history,"replaceState",function(a){var o=a.onPostCall;o(e)}).stop,i=M(t,window,m.POP_STATE,e).stop;return{stop:function(){r(),n(),i()}}}function ud(t,e){return M(t,window,m.HASH_CHANGE,e)}var cd=Ut;function ld(t,e){if(!ut(X.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},addFeatureFlagEvaluation:R,stop:R};var r=new Kt(cd);return t.subscribe(2,function(n){var i=n.startClocks;r.add({},i.relative),e.resetCustomerData()}),t.subscribe(6,function(n){var i=n.endClocks;r.closeActive(i.relative)}),{findFeatureFlagEvaluations:function(n){return r.find(n)},addFeatureFlagEvaluation:function(n,i){var a=r.find();a&&(a[n]=i,e.updateCustomerData(a))},stop:function(){return e.stop()}}}var dd=10*G,dt,It,Kr;function fd(t,e,r,n,i){var a=e.enabled&&xt(t.customerDataTelemetrySampleRate);!a||(Gi(),Ki(),r.subscribe(13,function(o){Kr=!0,pe(It.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),pe(It.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),pe(It.featureFlagBytes,ct(["view","error"],o.type)?n.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(o){var s=o.bytesCount,u=o.messagesCount;!Kr||(dt.batchCount+=1,pe(dt.batchBytesCount,s),pe(dt.batchMessagesCount,u),Yr(dt.globalContextBytes,It.globalContextBytes),Yr(dt.userContextBytes,It.userContextBytes),Yr(dt.featureFlagBytes,It.featureFlagBytes),Ki())}),ie(vd,dd))}function vd(){dt.batchCount!==0&&(At("Customer data measures",dt),Gi())}function yt(){return{min:1/0,max:0,sum:0}}function pe(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Yr(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function Gi(){dt={batchCount:0,batchBytesCount:yt(),batchMessagesCount:yt(),globalContextBytes:yt(),userContextBytes:yt(),featureFlagBytes:yt()}}function Ki(){Kr=!1,It={globalContextBytes:yt(),userContextBytes:yt(),featureFlagBytes:yt()}}var pd=4e3,hd=500,md=Ut;function _d(t,e){e===void 0&&(e=hd);var r=new Kt(md,pd),n;
7a(Yi(),J());var i=q(t,window,[m.PAGE_SHOW,m.FOCUS,m.BLUR,m.VISIBILITY_CHANGE,m.RESUME,m.FREEZE,m.PAGE_HIDE],function(o){a(gd(o),o.timeStamp)},{capture:!0}).stop;function a(o,s){s===void 0&&(s=J()),o!==n&&(n=o,r.closeActive(s),r.add({state:n,startTime:s},s))}return{findAll:function(o,s){var u=r.findAll(o,s);if(u.length!==0){for(var c=[],l=Math.max(0,u.length-e),d=u.length-1;d>=l;d--){var f=u[d],p=Y(o,f.startTime);c.push({state:f.state,start:N(p)})}return c}},isInActivePageStateAt:function(o){var s=r.find(o);return s!==void 0&&s.state==="active"},addPageState:a,stop:function(){i(),r.stop()}}}function gd(t){return t.type===m.FREEZE?"frozen":t.type===m.PAGE_HIDE?t.persisted?"frozen":"terminated":Yi()}function Yi(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function bd(t){var e=Fe(),r=zi(t).subscribe(function(n){e=n}).unsubscribe;return{get:function(){return{viewport:e}},stop:r}}function Sd(t){var e=new Map;return{startDurationVital:function(r){e.set(r.name,r)},stopDurationVital:function(r){var n=e.get(r.name);if(!!n){var i={name:n.name,type:"duration",startClocks:n.startClocks,value:Y(n.startClocks.timeStamp,r.stopClocks.timeStamp),context:rt(n.context,r.context)};t.notify(12,yd(i)),e.delete(r.name)}}}}function yd(t){var e;return{rawRumEvent:{date:t.startClocks.timeStamp,vital:{id:V(),type:t.type,name:t.name,custom:(e={},e[t.name]=t.value,e)},type:"vital"},startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}function Ed(t,e,r,n,i,a,o,s){var u=[],c=new cc;c.subscribe(13,function(U){return hr("rum",U)});var l=wd(e);l.setContextProvider(function(){var U,Z;return{application:{id:e.applicationId},session:{id:(U=h.findTrackedSession())===null||U===void 0?void 0:U.id},view:{id:(Z=x.findView())===null||Z===void 0?void 0:Z.id},action:{id:A.findActionId()}}});var d=function(U){c.notify(14,{error:U}),At("Error reported to customer",{"error.message":U.message})},f=ld(c,n.getOrCreateTracker(0)),p=Bs(e),v=p.subscribe(function(U){c.notify(11,U)});u.push(function(){return v.unsubscribe()});var h=Yt()?Ql():$l(e,c,s);if(Yt())nd(c);else{var _=rd(e,c,l.observable,d,p,h.expireObservable,o);u.push(function(){return _.stop()}),fd(e,l,c,n,_.flushObservable)}var g=Mu(),k=od(e,location),I=Td(c,e,location,h,k,g,i,d),x=I.viewContexts,b=I.pageStateHistory,C=I.urlContexts,A=I.actionContexts,ot=I.addAction,Jt=I.stop;u.push(Jt),ms(Ou(t)),il(c,e,h),sl(c,e,h,b);var D=Wl(c,e,location,g,k,f,b,r,a),me=D.addTiming,He=D.startView,Ge=D.stop;u.push(Ge);var _e=el(c,e,b,f).addError;fc(c,e,h);var Ke=Wu(c,e).stop;u.push(Ke);var ge=Sd(c),Ye=uc(e.applicationId,h,x,A,C);return{addAction:ot,addError:_e,addTiming:me,addFeatureFlagEvaluation:f.addFeatureFlagEvaluation,startView:He,lifeCycle:c,viewContexts:x,session:h,stopSession:function(){return h.expire()},getInternalContext:Ye.get,startDurationVital:ge.startDurationVital,stopDurationVital:ge.stopDurationVital,stop:function(){u.forEach(function(U){return U()})}}}function wd(t){var e=vs("browser-rum-sdk",t);if(Yt()){var r=yr();e.observable.subscribe(function(n){return r.send("internal_telemetry",n)})}return e}function Td(t,e,r,n,i,a,o,s){var u=dc(t),c=ad(t,i,r),l=_d(e),d=$c(t,a,e,l),f=d.addAction,p=d.actionContexts,v=bd(e);return ac(e,t,n,u,c,p,v,o,s),{viewContexts:u,pageStateHistory:l,urlContexts:c,addAction:f,actionContexts:p,stop:function(){v.stop(),l.stop(),c.stop(),u.stop(),l.stop()}}}function Cd(t,e){var r=e.session,n=e.viewContext,i=e.errorType,a=r?r.id:"no-session-id",o=[];i!==void 0&&o.push("error-type=".concat(i)),n&&(o.push("seed=".concat(n.id)),o.push("from=".concat(n.startClocks.timeStamp)));var s=Ad(t),u="/rum/replay/sessions/".concat(a);return"".concat(s).concat(u,"?").concat(o.join("&"))}function Ad(t){var e=t.site,r=t.subdomain||Id(t);return"https://".concat(r?"".concat(r,"."):"").concat(e)}function Id(t){switch(t.site){case Ft:case bo:return"app";case gn:return"dd";default:return}}var it={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Rt={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},ft={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},$={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ji={Play:0,Pause:1},Rd=10,H;function Od(t){return ze(t).segments_count}function kd(t){ze(t).segments_count+=1}function xd(t){ze(t).records_count+=1}function Nd(t,e){ze(t).segments_total_raw_size+=e}function Ld(t){return H==null?void 0:H.get(t)}function ze(t){H||(H=new Map);var e;return H.has(t)?e=H.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},H.set(t,e),H.size>Rd&&Md()),e}function Md(){if(!!H)if(H.keys)H.delete(H.keys().next().value);else{var t=!0;H.forEach(function(e,r){t&&(H.delete(r),t=!1)})}}function Et(t,e){return{data:y({source:t},e),type:it.IncrementalSnapshot,timestamp:P()}}var E={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:se.ALLOW,MASK:se.MASK,MASK_USER_INPUT:se.MASK_USER_INPUT},jr="data-dd-privacy",Pd="allow",Ud="mask",Dd="mask-user-input",qi="hidden",Bd="dd-privacy-allow",Fd="dd-privacy-mask",zd="dd-privacy-mask-user-input",Vd="dd-privacy-hidden",Ot="***",Wi="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Hd={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Gd=1e5,Kd="x";function vt(t,e,r){if(r&&r.has(t))return r.get(t);var n=Ue(t),i=n?vt(n,e,r):e,a=Xi(t),o=Zi(a,i);return r&&r.set(t,o),o}function Zi(t,e){switch(e){case E.HIDDEN:case E.IGNORE:return e}switch(t){case E.ALLOW:case E.MASK:case E.MASK_USER_INPUT:case E.HIDDEN:case E.IGNORE:return t;default:return e}}function Xi(t){if(!!qt(t)){var e=t.getAttribute(jr);if(t.tagName==="BASE")return E.ALLOW;if(t.tagName==="INPUT"){var r=t;if(r.type==="password"||r.type==="email"||r.type==="tel"||r.type==="hidden")return E.MASK;var n=r.getAttribute("autocomplete");if(n&&n.indexOf("cc-")===0)return E.MASK}if(e===qi||t.classList.contains(Vd))return E.HIDDEN;if(e===Ud||t.classList.contains(Fd))return E.MASK;if(e===Dd||t.classList.contains(zd))return E.MASK_USER_INPUT;if(e===Pd||t.classList.contains(Bd))return E.ALLOW;if(jd(t))return E.IGNORE}}function Ve(t,e){switch(e){case E.MASK:case E.HIDDEN:case E.IGNORE:return!0;case E.MASK_USER_INPUT:return ri(t)?Ji(t.parentNode):Ji(t);default:return!1}}
7function Ji(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if(e.tagName==="INPUT")switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Hd[e.tagName]}var Yd=function(t){return t.replace(/\S/g,Kd)};function $i(t,e,r){var n,i=(n=t.parentElement)===null||n===void 0?void 0:n.tagName,a=t.textContent||"";if(!(e&&!a.trim())){var o=r,s=i==="SCRIPT";if(s)a=Ot;else if(o===E.HIDDEN)a=Ot;else if(Ve(t,o))if(i==="DATALIST"||i==="SELECT"||i==="OPTGROUP"){if(!a.trim())return}else i==="OPTION"?a=Ot:a=Yd(a);return a}}function jd(t){if(t.nodeName==="SCRIPT")return!0;if(t.nodeName==="LINK"){var e=i("rel");return/preload|prefetch/i.test(e)&&i("as")==="script"||e==="shortcut icon"||e==="icon"}if(t.nodeName==="META"){var r=i("name"),e=i("rel"),n=i("property");return/^msapplication-tile(image|color)$/.test(r)||r==="application-name"||e==="icon"||e==="apple-touch-icon"||e==="shortcut icon"||r==="keywords"||r==="description"||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||r==="pinterest"||r==="robots"||r==="googlebot"||r==="bingbot"||t.hasAttribute("http-equiv")||r==="author"||r==="generator"||r==="framework"||r==="publisher"||r==="progid"||/^article:/.test(n)||/^product:/.test(n)||r==="google-site-verification"||r==="yandex-verification"||r==="csrf-token"||r==="p:domain_verify"||r==="verify-v1"||r==="verification"||r==="shopify-checkout-api-token"}function i(a){return(t.getAttribute(a)||"").toLowerCase()}return!1}var qr=new WeakMap;function at(t){return qr.has(t)}function qd(t){for(var e=t;e;){if(!at(e)&&!xr(e))return!1;e=Ue(e)}return!0}function W(t){return qr.get(t)}function Wd(t,e){qr.set(t,e)}function Wr(t,e){var r=t.tagName,n=t.value;if(Ve(t,e)){var i=t.type;return r==="INPUT"&&(i==="button"||i==="submit"||i==="reset")?n:!n||r==="OPTION"?void 0:Ot}if(r==="OPTION"||r==="SELECT")return t.value;if(!(r!=="INPUT"&&r!=="TEXTAREA"))return n}var Zd=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Xd=/^[A-Za-z]+:|^\/\//,Jd=/^data:.*,/i;function $d(t,e){return t.replace(Zd,function(r,n,i,a,o,s){var u=i||o||s;if(!e||!u||Xd.test(u)||Jd.test(u))return r;var c=n||a||"";return"url(".concat(c).concat(Qd(u,e)).concat(c,")")})}function Qd(t,e){try{return Oe(t,e).href}catch{return t}}var tf=/[^a-z1-6-_]/;function Qi(t){var e=t.toLowerCase().trim();return tf.test(e)?"div":e}function ta(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}function ea(t){if(!(t===void 0||t.length===0))return t.map(function(e){var r=e.cssRules||e.rules,n=Array.from(r,function(a){return a.cssText}),i={cssRules:n,disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0};return i})}function ra(t,e,r,n){if(e===E.HIDDEN)return null;var i=t.getAttribute(r);if(e===E.MASK&&r!==jr&&!bi.includes(r)&&r!==n.actionNameAttribute){var a=t.tagName;switch(r){case"title":case"alt":case"placeholder":return Ot}if(a==="IMG"&&(r==="src"||r==="srcset")){var o=t;if(o.naturalWidth>0)return ta(o.naturalWidth,o.naturalHeight);var s=t.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?ta(u,c):Wi}if(a==="SOURCE"&&(r==="src"||r==="srcset"))return Wi;if(a==="A"&&r==="href"||i&&Ee(r,"data-"))return Ot}return!i||typeof i!="string"?i:i.length>Gd&&i.slice(0,5)==="data:"?"data:truncated":i}function ef(t,e,r){var n;if(e===E.HIDDEN)return{};for(var i={},a=Qi(t.tagName),o=t.ownerDocument,s=0;s<t.attributes.length;s+=1){var u=t.attributes.item(s),c=u.name,l=ra(t,e,c,r.configuration);l!==null&&(i[c]=l)}if(t.value&&(a==="textarea"||a==="select"||a==="option"||a==="input")){var d=Wr(t,e);d!==void 0&&(i.value=d)}if(a==="option"&&e===E.ALLOW){var f=t;f.selected&&(i.selected=f.selected)}if(a==="link"){var p=Array.from(o.styleSheets).find(function(x){return x.href===t.href}),v=Zr(p);v&&p&&!ut(X.DISABLE_REPLAY_INLINE_CSS)&&(i._cssText=v)}if(a==="style"&&t.sheet){var v=Zr(t.sheet);v&&(i._cssText=v)}var h=t;if(a==="input"&&(h.type==="radio"||h.type==="checkbox")&&(e===E.ALLOW?i.checked=!!h.checked:Ve(h,e)&&delete i.checked),a==="audio"||a==="video"){var _=t;i.rr_mediaState=_.paused?"paused":"played"}var g,k,I=r.serializationContext;switch(I.status){case 0:g=Math.round(t.scrollTop),k=Math.round(t.scrollLeft),(g||k)&&I.elementsScrollPositions.set(t,{scrollTop:g,scrollLeft:k});break;case 1:I.elementsScrollPositions.has(t)&&(n=I.elementsScrollPositions.get(t),g=n.scrollTop,k=n.scrollLeft);break}return k&&(i.rr_scrollLeft=k),g&&(i.rr_scrollTop=g),i}function Zr(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch{}if(!e)return null;var r=Array.from(e,za()?rf:na).join("");return $d(r,t.href)}function rf(t){if(af(t)&&t.selectorText.includes(":")){var e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return na(t)}function na(t){return nf(t)&&Zr(t.styleSheet)||t.cssText}function nf(t){return"styleSheet"in t}function af(t){return"selectorText"in t}function Xr(t,e){var r=uf(t,e);if(!r)return null;var n=W(t)||sf(),i=r;return i.id=n,Wd(t,n),e.serializedNodeIds&&e.serializedNodeIds.add(n),i}var of=1;function sf(){return of++}function Jr(t,e){var r=[];return ni(t,function(n){var i=Xr(n,e);i&&r.push(i)}),r}function uf(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return cf(t,e);case t.DOCUMENT_FRAGMENT_NODE:return lf(t,e);case t.DOCUMENT_TYPE_NODE:return df(t);case t.ELEMENT_NODE:return ff(t,e);case t.TEXT_NODE:return pf(t,e);case t.CDATA_SECTION_NODE:return hf()}}function cf(t,e){return{type:Rt.Document,childNodes:Jr(t,e),adoptedStyleSheets:ea(t.adoptedStyleSheets)}}function lf(t,e){var r=xr(t);return r&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:Rt.DocumentFragment,childNodes:Jr(t,e),isShadowRoot:r,adoptedStyleSheets:r?ea(t.adoptedStyleSheets):void 0}}function df(t){return{type:Rt.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}
7function ff(t,e){var r,n=Qi(t.tagName),i=vf(t)||void 0,a=Zi(Xi(t),e.parentNodePrivacyLevel);if(a===E.HIDDEN){var o=t.getBoundingClientRect(),s=o.width,u=o.height;return{type:Rt.Element,tagName:n,attributes:(r={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")},r[jr]=qi,r),childNodes:[],isSVG:i}}if(a!==E.IGNORE){var c=ef(t,a,e),l=[];if(Hu(t)&&n!=="style"){var d=void 0;e.parentNodePrivacyLevel===a&&e.ignoreWhiteSpace===(n==="head")?d=e:d=y({},e,{parentNodePrivacyLevel:a,ignoreWhiteSpace:n==="head"}),l=Jr(t,d)}return{type:Rt.Element,tagName:n,attributes:c,childNodes:l,isSVG:i}}}function vf(t){return t.tagName==="svg"||t instanceof SVGElement}function pf(t,e){var r=$i(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(r!==void 0)return{type:Rt.Text,textContent:r}}function hf(){return{type:Rt.CDATA,textContent:""}}function mf(t,e,r){return Xr(t,{serializationContext:r,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function ia(t){return Boolean(t.changedTouches)}function he(t){return t.composed===!0&&Pe(t.target)?t.composedPath()[0]:t.target}var aa=25;function _f(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>aa||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>aa}var gf=function(t,e){var r=window.visualViewport,n={layoutViewportX:t,layoutViewportY:e,visualVie
7wportX:t,visualViewportY:e};if(r)_f(r)?(n.layoutViewportX=Math.round(t+r.offsetLeft),n.layoutViewportY=Math.round(e+r.offsetTop)):(n.visualViewportX=Math.round(t-r.offsetLeft),n.visualViewportY=Math.round(e-r.offsetTop));else return n;return n},oa=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},bf=50;function Sf(t,e){var r=gt(function(o){var s=he(o);if(at(s)){var u=sa(o);if(!u)return;var c={id:W(s),timeOffset:0,x:u.x,y:u.y};e([c],ia(o)?ft.TouchMove:ft.MouseMove)}},bf,{trailing:!1}),n=r.throttled,i=r.cancel,a=q(t,document,[m.MOUSE_MOVE,m.TOUCH_MOVE],n,{capture:!0,passive:!0}).stop;return function(){a(),i()}}function sa(t){var e=ia(t)?t.changedTouches[0]:t,r=e.clientX,n=e.clientY;if(window.visualViewport){var i=gf(r,n),a=i.visualViewportX,o=i.visualViewportY;r=a,n=o}if(!Number.isFinite(r)||!Number.isFinite(n)){t.isTrusted&&At("mouse/touch event without x/y");return}return{x:r,y:n}}var yf=100;function Ef(t,e,r,n){var i=gt(function(u){var c=he(u);if(!(!c||vt(c,r)===E.HIDDEN||!at(c))){var l=W(c),d=c===document?{scrollTop:Hr(),scrollLeft:Fi()}:{scrollTop:Math.round(c.scrollTop),scrollLeft:Math.round(c.scrollLeft)};n.set(c,d),e({id:l,x:d.scrollLeft,y:d.scrollTop})}},yf),a=i.throttled,o=i.cancel,s=M(t,document,m.SCROLL,a,{capture:!0,passive:!0}).stop;return function(){s(),o()}}var Q,ua=(Q={},Q[m.POINTER_UP]=$.MouseUp,Q[m.MOUSE_DOWN]=$.MouseDown,Q[m.CLICK]=$.Click,Q[m.CONTEXT_MENU]=$.ContextMenu,Q[m.DBL_CLICK]=$.DblClick,Q[m.FOCUS]=$.Focus,Q[m.BLUR]=$.Blur,Q[m.TOUCH_START]=$.TouchStart,Q[m.TOUCH_END]=$.TouchEnd,Q);function wf(t,e,r){var n=function(i){var a=he(i);if(!(vt(a,t.defaultPrivacyLevel)===E.HIDDEN||!at(a))){var o=W(a),s=ua[i.type],u;if(s!==$.Blur&&s!==$.Focus){var c=sa(i);if(!c)return;u={id:o,type:s,x:c.x,y:c.y}}else u={id:o,type:s};var l=y({id:r.getIdForEvent(i)},Et(ft.MouseInteraction,u));e(l)}};return q(t,document,Object.keys(ua),n,{capture:!0,passive:!0}).stop}function ca(t,e,r){r===void 0&&(r=document);var n=t.defaultPrivacyLevel,i=new WeakMap,a=r!==document,o=q(t,r,a?[m.CHANGE]:[m.INPUT,m.CHANGE],function(d){var f=he(d);(f instanceof HTMLInputElement||f instanceof HTMLTextAreaElement||f instanceof HTMLSelectElement)&&c(f)},{capture:!0,passive:!0}).stop,s;if(a)s=R;else{var u=[ue(HTMLInputElement.prototype,"value",c),ue(HTMLInputElement.prototype,"checked",c),ue(HTMLSelectElement.prototype,"value",c),ue(HTMLTextAreaElement.prototype,"value",c),ue(HTMLSelectElement.prototype,"selectedIndex",c)];s=function(){u.forEach(function(d){return d.stop()})}}return function(){s(),o()};function c(d){var f=vt(d,n);if(f!==E.HIDDEN){var p=d.type,v;if(p==="radio"||p==="checkbox"){if(Ve(d,f))return;v={isChecked:d.checked}}else{var h=Wr(d,f);if(h===void 0)return;v={text:h}}l(d,v);var _=d.name;p==="radio"&&_&&d.checked&&ka(document.querySelectorAll('input[type="radio"][name="'.concat(ht(_),'"]')),function(g){g!==d&&l(g,{isChecked:!1})})}}function l(d,f){if(!!at(d)){var p=i.get(d);(!p||p.text!==f.text||p.isChecked!==f.isChecked)&&(i.set(d,f),e(y({id:W(d)},f)))}}}function Tf(t){function e(i,a){i&&at(i.ownerNode)&&a(W(i.ownerNode))}var r=[j(CSSStyleSheet.prototype,"insertRule",function(i){var a=i.target,o=i.parameters,s=o[0],u=o[1];e(a,function(c){return t({id:c,adds:[{rule:s,index:u}]})})}),j(CSSStyleSheet.prototype,"deleteRule",function(i){var a=i.target,o=i.parameters[0];e(a,function(s){return t({id:s,removes:[{index:o}]})})})];typeof CSSGroupingRule!="undefined"?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule));function n(i){r.push(j(i.prototype,"insertRule",function(a){var o=a.target,s=a.parameters,u=s[0],c=s[1];e(o.parentStyleSheet,function(l){var d=la(o);d&&(d.push(c||0),t({id:l,adds:[{rule:u,index:d}]}))})}),j(i.prototype,"deleteRule",function(a){var o=a.target,s=a.parameters[0];e(o.parentStyleSheet,function(u){var c=la(o);c&&(c.push(s),t({id:u,removes:[{index:c}]}))})}))}return function(){return r.forEach(function(i){return i.stop()})}}function la(t){for(var e=[],r=t;r.parentRule;){var n=Array.from(r.parentRule.cssRules),i=n.indexOf(r);e.unshift(i),r=r.parentRule}if(!!r.parentStyleSheet){var a=Array.from(r.parentStyleSheet.cssRules),o=a.indexOf(r);return e.unshift(o),e}}function Cf(t,e,r){return q(t,document,[m.PLAY,m.PAUSE],function(n){var i=he(n);!i||vt(i,r)===E.HIDDEN||!at(i)||e({id:W(i),type:n.type===m.PLAY?ji.Play:ji.Pause})},{capture:!0,passive:!0}).stop}function Af(t,e,r){return t.subscribe(12,function(n){var i,a,o;n.rawRumEvent.type==="action"&&n.rawRumEvent.action.type==="click"&&((a=(i=n.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||a===void 0?void 0:a.length)&&"events"in n.domainContext&&((o=n.domainContext.events)===null||o===void 0?void 0:o.length)&&e({timestamp:n.rawRumEvent.date,type:it.FrustrationRecord,data:{frustrationTypes:n.rawRumEvent.action.frustration.type,recordIds:n.domainContext.events.map(function(s){return r.getIdForEvent(s)})}})}).unsubscribe}var If=200;function Rf(t,e){return zi(t).subscribe(e).unsubscribe}
7function Of(t,e){var r=window.visualViewport;if(!r)return R;var n=gt(function(){e(oa(r))},If,{trailing:!1}),i=n.throttled,a=n.cancel,o=q(t,r,[m.RESIZE,m.SCROLL],i,{capture:!0,passive:!0}).stop;return function(){o(),a()}}var kf=100;function xf(t){var e=R,r=[];function n(){e(),t(r),r=[]}return{addMutations:function(i){r.length===0&&(e=Nf(n,{timeout:kf})),r.push.apply(r,i)},flush:n,stop:function(){e()}}}function Nf(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(S(t),e);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(S(t));return function(){return window.cancelAnimationFrame(n)}}function da(t,e,r,n){var i=$n();if(!i)return{stop:R,flush:R};var a=xf(function(s){Lf(s.concat(o.takeRecords()),t,e,r)}),o=new i(S(a.addMutations));return o.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),a.stop()},flush:function(){a.flush()}}}function Lf(t,e,r,n){var i=new Map;t.filter(function(f){return f.type==="childList"}).forEach(function(f){f.removedNodes.forEach(function(p){fa(p,n.removeShadowRoot)})});var a=t.filter(function(f){return f.target.isConnected&&qd(f.target)&&vt(f.target,r.defaultPrivacyLevel,i)!==E.HIDDEN}),o=Mf(a.filter(function(f){return f.type==="childList"}),r,n,i),s=o.adds,u=o.removes,c=o.hasBeenSerialized,l=Pf(a.filter(function(f){return f.type==="characterData"&&!c(f.target)}),r,i),d=Uf(a.filter(function(f){return f.type==="attributes"&&!c(f.target)}),r,i);!l.length&&!d.length&&!u.length&&!s.length||e({adds:s,removes:u,texts:l,attributes:d})}function Mf(t,e,r,n){for(var i=new Set,a=new Map,o=function(C){C.addedNodes.forEach(function(A){i.add(A)}),C.removedNodes.forEach(function(A){i.has(A)||a.set(A,C.target),i.delete(A)})},s=0,u=t;s<u.length;s++){var c=u[s];o(c)}var l=Array.from(i);Df(l);for(var d=new Set,f=[],p=0,v=l;p<v.length;p++){var h=v[p];if(!x(h)){var _=vt(h.parentNode,e.defaultPrivacyLevel,n);if(!(_===E.HIDDEN||_===E.IGNORE)){var g=Xr(h,{serializedNodeIds:d,parentNodePrivacyLevel:_,serializationContext:{status:2,shadowRootsController:r},configuration:e});if(!!g){var k=Ue(h);f.push({nextId:b(h),parentId:W(k),node:g})}}}}var I=[];return a.forEach(function(C,A){at(A)&&I.push({parentId:W(C),id:W(A)})}),{adds:f,removes:I,hasBeenSerialized:x};function x(C){return at(C)&&d.has(W(C))}function b(C){for(var A=C.nextSibling;A;){if(at(A))return W(A);A=A.nextSibling}return null}}function Pf(t,e,r){for(var n,i=[],a=new Set,o=t.filter(function(f){return a.has(f.target)?!1:(a.add(f.target),!0)}),s=0,u=o;s<u.length;s++){var c=u[s],l=c.target.textContent;if(l!==c.oldValue){var d=vt(Ue(c.target),e.defaultPrivacyLevel,r);d===E.HIDDEN||d===E.IGNORE||i.push({id:W(c.target),value:(n=$i(c.target,!1,d))!==null&&n!==void 0?n:null})}}return i}function Uf(t,e,r){for(var n=[],i=new Map,a=t.filter(function(_){var g=i.get(_.target);return(g==null?void 0:g.has(_.attributeName))?!1:(g?g.add(_.attributeName):i.set(_.target,new Set([_.attributeName])),!0)}),o=new Map,s=0,u=a;s<u.length;s++){var c=u[s],l=c.target.getAttribute(c.attributeName);if(l!==c.oldValue){var d=vt(c.target,e.defaultPrivacyLevel,r),f=ra(c.target,d,c.attributeName,e),p=void 0;if(c.attributeName==="value"){var v=Wr(c.target,d);if(v===void 0)continue;p=v}else typeof f=="string"?p=f:p=null;var h=o.get(c.target);h||(h={id:W(c.target),attributes:{}},n.push(h),o.set(c.target,h)),h.attributes[c.attributeName]=p}}return n}function Df(t){t.sort(function(e,r){var n=e.compareDocumentPosition(r);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})}function fa(t,e){Pe(t)&&e(t.shadowRoot),ni(t,function(r){return fa(r,e)})}function Bf(t,e){return q(t,window,[m.FOCUS,m.BLUR],function(){e({has_focus:document.hasFocus()})}).stop}function Ff(){var t=new WeakMap,e=1;return{getIdForEvent:function(r){return t.has(r)||t.set(r,e++),t.get(r)}}}function zf(t,e){return t.subscribe(5,function(){e({timestamp:P(),type:it.ViewEnd})}).unsubscribe}function Vf(t,e){var r=Ff(),n=da(e.mutationCb,e.configuration,e.shadowRootsController,document),i=Sf(t,e.mousemoveCb),a=wf(t,e.mouseInteractionCb,r),o=Ef(t,e.scrollCb,e.configuration.defaultPrivacyLevel,e.elementsScrollPositions),s=Rf(t,e.viewportResizeCb),u=ca(t,e.inputCb),c=Cf(t,e.mediaInteractionCb,e.configuration.defaultPrivacyLevel),l=Tf(e.styleSheetCb),d=Bf(t,e.focusCb),f=Of(t,e.visualVie
7wportResizeCb),p=Af(e.lifeCycle,e.frustrationCb,r),v=zf(e.lifeCycle,e.viewEndCb);return{flush:function(){n.flush()},stop:function(){n.stop(),i(),a(),o(),s(),u(),c(),l(),d(),f(),p(),v()}}}function Hf(){var t=new WeakMap;return{set:function(e,r){e===document&&!document.scrollingElement||t.set(e===document?document.scrollingElement:e,r)},get:function(e){return t.get(e)},has:function(e){return t.has(e)}}}var Gf=function(t,e){var r=e.mutationCb,n=e.inputCb,i=new Map,a={addShadowRoot:function(o){if(!i.has(o)){var s=da(r,t,a,o),u=s.stop,c=s.flush,l=ca(t,n,o);i.set(o,{flush:c,stop:function(){u(),l()}})}},removeShadowRoot:function(o){var s=i.get(o);!s||(s.stop(),i.delete(o))},stop:function(){i.forEach(function(o){var s=o.stop;return s()})},flush:function(){i.forEach(function(o){var s=o.flush;return s()})}};return a};function Kf(t,e,r,n,i,a){var o=function(u,c){u===void 0&&(u=P()),c===void 0&&(c={status:0,elementsScrollPositions:t,shadowRootsController:e});var l=Fe(),d=l.width,f=l.height,p=[{data:{height:f,href:window.location.href,width:d},type:it.Meta,timestamp:u},{data:{has_focus:document.hasFocus()},type:it.Focus,timestamp:u},{data:{node:mf(document,n,c),initialOffset:{left:Fi(),top:Hr()}},type:it.FullSnapshot,timestamp:u}];return window.visualViewport&&p.push({data:oa(window.visualViewport),type:it.VisualViewport,timestamp:u}),p};a(o());var s=r.subscribe(3,function(u){i(),a(o(u.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))}).unsubscribe;return{stop:s}}function Yf(t){var e=t.emit,r=t.configuration,n=t.lifeCycle;if(!e)throw new Error("emit function is required");var i=function(v){e(v),hr("record",{record:v});var h=t.viewContexts.findView();xd(h.id)},a=Hf(),o=function(v){i(Et(ft.Mutation,v))},s=function(v){return i(Et(ft.Input,v))},u=Gf(r,{mutationCb:o,inputCb:s}),c=Kf(a,u,n,r,l,function(v){return v.forEach(function(h){return i(h)})}).stop;function l(){u.flush(),p()}var d=Vf(r,{lifeCycle:t.lifeCycle,configuration:r,elementsScrollPositions:a,inputCb:s,mediaInteractionCb:function(v){return i(Et(ft.MediaInteraction,v))},mouseInteractionCb:function(v){return i(v)},mousemoveCb:function(v,h){return i(Et(h,{positions:v}))},mutationCb:o,scrollCb:function(v){return i(Et(ft.Scroll,v))},styleSheetCb:function(v){return i(Et(ft.StyleSheetRule,v))},viewportResizeCb:function(v){return i(Et(ft.ViewportResize,v))},frustrationCb:function(v){return i(v)},focusCb:function(v){return i({data:v,type:it.Focus,timestamp:P()})},visualViewportResizeCb:function(v){i({data:v,type:it.VisualViewport,timestamp:P()})},viewEndCb:function(v){l(),i(v)},shadowRootsController:u}),f=d.stop,p=d.flush;return{stop:function(){u.stop(),f(),c()},flushMutations:l,shadowRootsController:u}}function jf(t,e,r){var n=new FormData;n.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=y({raw_segment_size:r,compressed_segment_size:t.byteLength},e),a=JSON.stringify(i);return n.append("event",new Blob([a],{type:"application/json"})),{data:n,bytesCount:t.byteLength}}var qf=function(){function t(e,r,n){this.encoder=e,this.encodedBytesCount=0;var i=r.view.id;this.metadata=y({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Od(i),source:"browser"},r),kd(i)}return t.prototype.addRecord=function(e,r){var n=this,i;this.metadata.start=Math.min(this.metadata.start,e.timestamp),this.metadata.end=Math.max(this.metadata.end,e.timestamp),this.metadata.records_count+=1,(i=this.metadata).has_full_snapshot||(i.has_full_snapshot=e.type===it.FullSnapshot);var a=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(a+JSON.stringify(e),function(o){n.encodedBytesCount+=o,r(n.encodedBytesCount)})},t.prototype.flush=function(e){var r=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),` 8`)),this.encoder.finish(function(n){Nd(r.metadata.view.id,n.rawBytesCount),e(r.metadata,n)})},t}(),Wf=30*G,va=6e4;function Zf(t,e,r,n,i,a){return Xf(t,function(){return Jf(e.applicationId,r,n)},i,a)}function Xf(t,e,r,n){var i={status:0,nextSegmentCreationReason:"init"},a=t.subscribe(3,function(){s("view_change")}).unsubscribe,o=t.subscribe(11,function(u){s(u.reason)}).unsubscribe;function s(u){i.status===1&&(i.segment.flush(function(c,l){var d=jf(l.output,c,l.rawBytesCount);Fn(u)?r.sendOnExit(d):r.send(d)}),et(i.expirationTimeoutId)),u!=="stop"?i={status:0,nextSegmentCreationReason:u}:i={status:2}}return{addRecord:function(u){if(i.status!==2){if(i.status===0){var c=e();if(!c)return;i={status:1,segment:new qf(n,c,i.nextSegmentCreationReason),expirationTimeoutId:z(function(){s("segment_duration_limit")},Wf)}}i.segment.addRecord(u,function(l){l>va&&s("segment_bytes_limit")})}},stop:function(){s("stop"),a(),o()}}}function Jf(t,e,r){var n=e.findTrackedSession(),i=r.findView();if(!(!n||!i))return{application:{id:t},session:{id:n.id},view:{id:i.id}}}function $f(t,e,r,n,i,a){var o=function(f){t.notify(14,{error:f}),At("Error reported to customer",{"error.message":f.message})},s=a||Dn(e,e.sessionReplayEndpointBuilder,va,o),u=Zf(t,e,r,n,s,i),c=u.addRecord,l=u.stop,d=Yf({emit:c,configuration:e,lifeCycle:t,viewContexts:n}).stop;return{stop:function(){d(),l()}}}function pa(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function Qf(t,e,r,n){var i=e.findTrackedSession(),a=tv(i,n),o=r.findView();return Cd(t,{viewContext:o,errorType:a,session:i})}function tv(t,e){if(!pa())return"browser-not-supported";if(!t)return"rum-not-tracked";if(!t.sessionReplayAllowed)return"incorrect-session-plan";if(!e)return"replay-not-started"}function ha(t,e,r){var n=0,i=[],a,o=0,s=[],u=M(t,e,"message",function(d){var f=d.data;if(!(f.type!=="wrote"||f.streamId!==r)){n+=f.additionalBytesCount,i.push(f.result),a=f.trailer;var p=s.shift();p&&p.id===f.id?p.writeCallback?p.writeCallback(f.result.byteLength):p.finishCallback&&p.finishCallback():(u(),At("Worker responses received out of order."))}}).stop;function c(){var d=i.length===0?new Uint8Array(0):Ra(i.concat(a)),f={rawBytesCount:n,output:
8d,outputBytesCount:d.byteLength,encoding:"deflate"};return n=0,i=[],f}function l(){o>0&&(e.postMessage({action:"reset",streamId:r}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write:function(d,f){e.postMessage({action:"write",id:o,data:d,streamId:r}),s.push({id:o,writeCallback:f,data:d}),o+=1},finish:function(d){l(),s.length?(s.forEach(function(f){delete f.writeCallback}),s[s.length-1].finishCallback=function(){return d(c())}):d(c())},finishSync:function(){l();var d=s.map(function(f){return delete f.writeCallback,delete f.finishCallback,f.data}).join("");return y(c(),{pendingData:d})},estimateEncodedBytesCount:function(d){return d.length/8},stop:function(){u()}}}var ev=10*G;function ma(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]),_=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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=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},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=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},U=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},S=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]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,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):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==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--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(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++,R(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(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));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;
vendor: 4,275 bytes, line 8
8)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(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)},D=function(t,e,n,r){var i,s,_=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)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[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?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(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*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;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(E(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,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!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,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_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)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=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}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={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"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ER
8ROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=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))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=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-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(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<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(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=yt(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=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||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=X(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=yt(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&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(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=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(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 Lt=[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(Zt(t),0===t.lookahead&&e===q)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,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){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=ut,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),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(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),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(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 Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[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},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
8,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(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)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||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=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)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+ft;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=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
8i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=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},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};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 Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.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?Pt:Mt,"[object ArrayBuffer]"===Ht.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===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;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},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(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:"5.10.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,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,_=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++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;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,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var L={status:0};function _a(t,e,r,n){switch(n===void 0&&(n=ma),L.status===0&&rv(t,e,n),L.status){case 1:return L.initializationFailureCallbacks.push(r),L.worker;case 3:return L.worker}}function ga(){return L.status}function rv(t,e,r){r===void 0&&(r=ma);try{var n=r(t),i=M(t,n,"error",function(s){$r(t,e,s)}).stop,a=M(t,n,"message",function(s){var u=s.data;u.type==="errored"?$r(t,e,u.error,u.streamId):u.type==="initialized"&&iv(u.version)}).stop;n.postMessage({action:"init"}),z(function(){return nv(e)},ev);var o=function(){i(),a()};L={status:1,worker:n,stop:o,initializationFailureCallbacks:[]}}catch(s){$r(t,e,s)}}function nv(t){L.status===1&&(T.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),L.initializationFailureCallbacks.forEach(function(e){return e()}),L={status:2})}function iv(t){L.status===1&&(L={status:3,worker:L.worker,stop:L.stop,version:t})}function $r(t,e,r,n){if(L.status===1||L.status===0){if(T.error("".concat(e," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&av(r.message)){var i=void 0;t.workerUrl?i="Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):i="Please make sure CSP is correctly configured.",T.error("".concat(i," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Le(r);L.status===1&&L.initializationFailureCallbacks.forEach(function(a){return a()}),L={status:2}}else Le(r,{worker_version:L.status===3&&L.version,stream_id:n})}function av(t){return ct(t,"Content Security Policy")||ct(t,"requires 'TrustedScriptURL'")}function ov(t,e){if(Yt()||!pa())return{start:R,stop:R,getReplayStats:function(){},onRumStart:R,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r={status:1},n=function(){r={status:1}},i=function(){r={status:0}},a=R;return{start:function(){return n()},stop:function(){return i()},getSessionReplayLink:function(){return a()},onRumStart:function(o,s,u,c,l){s.startSessionReplayRecordingManually&&(r={status:0}),o.subscribe(9,function(){(r.status===2||r.status===3)&&(i(),r={status:1})}),o.subscribe(11,function(p){(p.reason===lt.UNLOADING||p.reason===lt.PAGEHIDE)&&i()}),o.subscribe(10,function(){r.status===1&&n()});var d;function f(){return d||(l||(l=_a(s,"Datadog Session Replay",function(){i()},e)),l&&(d=ha(s,l,1))),d}n=function(){var p=u.findTrackedSession();if(!p||!p.sessionReplayAllowed){r={status:1};return}r.status===2||r.status===3||(r={status:2},wr(s,"interactive",function(){if(r.status===2){var v=f();if(!v){r={status:0};return}var h=t(o,s,u,c,v).stop;r={status:3,stopRecording:h}}}))},i=function(){r.status!==0&&(r.status===3&&r.stopRecording(),r={status:0})},a=function(){return Qf(s,u,c,r.status!==0)},r.status===1&&n()},isRecording:function(){return ga()===3&&r.status===3},getReplayStats:function(o){return ga()===3?Ld(o):void 0}}}var sv=ov($f),uv=Nu(Ed,sv,{startDeflateWorker:_a,createDeflateEncoder:ha});is(mt(),"DD_RUM",uv);export{uv as d}; 9//# sourceMappingURL=chunk-datad.491389e9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.