PageSourceSearch

https://www.gympiekgm.com.au/1990-6c1e31016705c3f67e3a.js

js gympiekgm.com.au collected 2026-10-10 02:36:45 UTC 59,464 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1990],{11990:function(e,t,n){n.d(t,{datadogLogs:function(){return Jr}});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,i={};Object.keys(r).forEach((function(e){i[e]=o[e]}));var a="Datadog Browser SDK:",s={debug:i.debug.bind(o,a),log:i.log.bind(o,a),info:i.info.bind(o,a),warn:i.warn.bind(o,a),error:i.error.bind(o,a)},u="https://docs.datadoghq.com";function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(o){s.error(t,o)}}}var f,l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},d=!1;function p(e){d=e}function v(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(f?g(r):r).apply(this,e)}}function g(e){return function(){return h(e,this,arguments)}}function h(e,t,n){try{return e.apply(t,n)}catch(r){if(m(r),f)try{f(r)}catch(r){m(r)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];d&&s.error.apply(s,l(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function b(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function S(e){return Object.keys(e).map((function(t){return e[t]}))}function w(e,t){return e.slice(0,t.length)===t}function C(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function E(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var k=1024,_=1024*k,x=/[^\u0000-\u007F]/;function O(e){return x.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function T(e,t){var n,r=E();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function R(e,t){return T(E(),"setTimeout")(g(e),t)}function L(e){T(E(),"clearTimeout")(e)}function A(e,t){return T(E(),"setInterval")(g(e),t)}function I(e){T(E(),"clearInterval")(e)}function P(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=R((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){L(o),s=!1,r=void 0}}}function U(){}function N(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=D(Object.prototype),o=D(Array.prototype),i=D(Object.getPrototypeOf(e)),a=D(e);try{return JSON.stringify(e,t,n)}catch(dt){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function D(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):U}function B(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function M(e){return 0===Object.keys(e).length}var q=3*k,j=16*k,G=200;function H(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var o=2===e?q:j,i=r;t.forEach((function(e){i+=e.getBytesCount()})),i>o&&(!function(e){s.warn("Customer data exceeds the recommended ".concat(e/k,"KiB threshold. More details: ").concat(u,"/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}(o),n=!0)}}return{createDetachedTracker:function(){var e=F((function(){return r(e.getBytesCount())}));return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,F(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach((function(e){return e.stop()})),t.clear()}}}function F(e){var t=0,n=P((function(n){t=O(N(n)),e()}),G),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){M(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function V(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function z(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;
1return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=z(o[i],t[i],n);return o}var a="object"===V(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=z(a[s],t[s],n));return a}}function J(e){return z(void 0,e)}function W(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=z(e,i))}return e}var Y=220*k,K="$",Z=3;function $(e,t){var n;void 0===t&&(t=Y);var r=D(Object.prototype),o=D(Array.prototype),i=[],a=new WeakMap,s=X(e,K,void 0,i,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>t)){for(;i.length>0&&u<t;){var c=i.shift(),f=0;if(Array.isArray(c.source))for(var l=0;l<c.source.length;l++){if(u+=void 0!==(d=X(c.source[l],c.path,l,i,a))?JSON.stringify(d).length:4,u+=f,f=1,u>t){Q(t,"truncated",e);break}c.target[l]=d}else for(var l in c.source)if(Object.prototype.hasOwnProperty.call(c.source,l)){var d;if(void 0!==(d=X(c.source[l],c.path,l,i,a))&&(u+=JSON.stringify(d).length+f+l.length+Z,f=1),u>t){Q(t,"truncated",e);break}c.target[l]=d}}return r(),o(),s}Q(t,"discarded",e)}function X(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(dt){}return e}(e);if(!i||"object"!=typeof i)return function(e){if("bigint"==typeof e)return"[BigInt] ".concat(e.toString());if("function"==typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"==typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(i);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(dt){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var u=void 0!==n?"".concat(t,".").concat(n):t,c=Array.isArray(i)?[]:{};return o.set(s,u),r.push({source:i,target:c,path:u}),c}function Q(e,t,n){s.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var ee=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new ee((function(t){var n=e.map((function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return n.forEach((function(e){return e.unsubscribe()}))}}))}function ne(e){var t={},n=new ee,r={getContext:function(){return J(t)},setContext:function(o){"object"===V(o)?(t=$(o),e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=$(o),e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e.resetCustomerData(),n.notify()},changeObservable:n};return r}var re,oe={GRANTED:"granted",NOT_GRANTED:"not-granted"};function ie(e,t,n,r,o){return ae(e,t,[n],r,o)}function ae(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,u=i.passive,c=g((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&d(),r(t))})),f=u?{capture:s,passive:u}:s,l=T(t,"addEventListener");function d(){var e=T(t,"removeEventListener");n.forEach((function(n){return e.call(t,n,c,f)}))}return n.forEach((function(e){return l.call(t,e,c,f)})),{stop:d}}!function(e){e.BEFORE_UNLOAD="beforeunload",e.CLICK="click",e.DBL_CLICK="dblclick",e.KEY_DOWN="keydown",e.LOAD="load",e.POP_STATE="popstate",e.SCROLL="scroll",e.TOUCH_START="touchstart",e.TOUCH_END="touchend",e.TOUCH_MOVE="touchmove",e.VISIBILITY_CHANGE="visibilitychange",e.PAGE_SHOW="pageshow",e.FREEZE="freeze",e.RESUME="resume",e.DOM_CONTENT_LOADED="DOMContentLoaded",e.POINTER_DOWN="pointerdown",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.HASH_CHANGE="hashchange",e.PAGE_HIDE="pagehide",e.MOUSE_DOWN="mousedown",e.MOUSE_UP="mouseup",e.MOUSE_MOVE="mousemove",e.FOCUS="focus",e.BLUR="blur",e.CONTEXT_MENU="contextmenu",e.RESIZE="resize",e.CHANGE="change",e.INPUT="input",e.PLAY="play",e.PAUSE="pause",e.SECURITY_POLICY_VIOLATION="securitypolicyviolation",e.SELECTION_CHANGE="selectionchange",e.STORAGE="storage"}(re||(re={}));var se="_dd_c",ue=[];function ce(e,t,n,r){var o=function(e,t){return"".concat(se,"_").concat(e,"_").concat(t)}(n,r);function i(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}ue.push(ie(e,window,re.STORAGE,(function(e){var n=e.key;o===n&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(t.getContext()))}
1)),t.setContext(W(i(),t.getContext()))}var fe="?";function le(e){var t=[],n=Se(e,"stack"),r=String(e);return n&&w(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=ve.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=ge.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||fe,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=he.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:fe,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=me.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||fe,line:+t[3],url:t[2]}}(e)||function(e){var t=ye.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=be.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||fe,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=fe),t.push(n))})),{message:Se(e,"message"),name:Se(e,"name"),stack:t}}var de="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",pe="(?::(\\d+))",ve=new RegExp("^\\s*at (.*?) ?\\(".concat(de).concat(pe,"?").concat(pe,"?\\)?\\s*$"),"i"),ge=new RegExp("\\((\\S*)".concat(pe).concat(pe,"\\)"));var he=new RegExp("^\\s*at ?".concat(de).concat(pe,"?").concat(pe,"??\\s*$"),"i");var me=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var ye=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,be=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Se(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function we(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=Ce.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var Ce=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Ee(){var e,t=new Error;if(!t.stack)try{throw t}catch(n){}return h((function(){var n=le(t);n.stack=n.stack.slice(2),e=ke(n)})),e}function ke(e){var t=_e(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n  at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function _e(e){return"".concat(e.name||"Error",": ").concat(e.message)}var xe,Oe="No stack, consider using an instance of Error";function Te(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,u=n instanceof Error,c=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(N($(r)))}(t,u,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(u,t)?ke(t):Oe,l=u?Le(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:null==t?void 0:t.name,message:c,stack:f,causes:l,fingerprint:Re(n)}}function Re(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Le(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=le(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ke(o)}),n=n.cause}return r.length?r:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.CUSTOM_VITALS="custom_vitals",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",e.REMOTE_CONFIGURATION="remote_configuration",e.PLUGINS="plugins"}(xe||(xe={}));var Ae=new Set;function Ie(e){Array.isArray(e)&&e.filter((function(e){return B(xe,e)})).forEach((function(e){Ae.add(e)}))}function Pe(){return Ae}var Ue,Ne="datad0g.com",De="dd0g-gov.com",Be="datadoghq.com",Me="pci.browser-intake-datadoghq.com",qe=1e3,je=60*qe,Ge=60*je;function He(){return(new Date).getTime()}function Fe(){return He()}function Ve(){return performance.now()}function ze(){return{relative:Ve(),timeStamp:Fe()}}function Je(e,t){return e+t}function We(e){return e-Ye()}function Ye(){return void 0===Ue&&(Ue=performance.timing.navigationStart),Ue}function Ke(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Ze(e){return 0!==e&&100*Math.random()<=e}function $e(e){return function(e){return"number"==typeof e}(e)&&e>=0&&e<=100}function Xe(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Qe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var et=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.remove=function(e){Qe(this.buffer,e)},e.prototype.drain=function(e){this.buffer.forEach((function(t){return t(e)})),this.buffer.length=0},e}(),tt={log:"log",configuration:"configuration",usage:"usage"},nt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],rt=["ddog-gov.com"],ot=new et,it=function(e){ot.add((function(){return it(e)}))};function at(e,t){var n,r,o=new ee,i=new Set,a=!y(rt,t.site)&&Ze(t.telemetrySampleRate),s=((n={})[tt.log]=a,n[tt.configuration]=a&&Ze(t.telemetryConfigurationSampleRate),n[tt.usage]=a&&Ze(t.telemetryUsageSampleRate),n),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return it=function(n){var a=N(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var c=function(e,t,n){return W({type:"telemetry",date:Fe(),service:e,version:"5.22.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Xe()}),experimental_features:b(Pe())},void 0!==r?r():{})}(e,n,u);o.notify(c),Ke("telemetry",c),i.add(a)}},f=ut,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function st(e,t){m(r.debug,e,t),it(C({type:tt.log,message:e,status:"debug"},t))}function ut(e,t){it(C({type:tt.log,status:"error"},function(e){if(e instanceof Error){var t=le(e);return{error:{kind:t.name,stack:ke(ct(t))},message:t.message}}return{error:{stack:Oe},message:"".concat("Uncaught"," ").concat(N(e))}}(e),t))}function ct(e){return e.stack=e.stack.filter((function(e){return!e.url||nt.some((function(t){return w(e.url,t)}))})),e}function ft(e){var t=C({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function lt(e,t){t.silentMultipleInit||s.error("".concat(e," is already initialized."))}var dt,pt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function vt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return ht[e]>=ht[n.getLevel()]&&y(o,t)}var gt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},ht=((dt={})[gt.ok]=0,dt[gt.debug]=1,dt[gt.info]=2,dt[gt.notice]=4,dt[gt.warn]=5,dt[gt.error]=6,dt[gt.critical]=7,dt[gt.alert]=8,dt[gt.emerg]=9,dt),mt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yt={console:"console",http:"http",silent:"silent"},bt=Object.keys(gt),St=function(){function e(e,t,n,r,o,i){void 0===r&&(r=yt.http),void 0===o&&(o=gt.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=ne(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){var i;if(void 0===n&&(n=gt.info),null!=r){var a=Te({stackTrace:r instanceof Error?le(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:pt.LOGGER,handling:"handled",startClocks:ze()});i={stack:a.stack,kind:a.type,message:a.message,causes:a.causes}}var s=$(t),u=i?W({error:i},s):s;this.handleLogStrategy({message:$(e),context:u,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=gt.info),vt(n,yt.http,this)&&(o=Ee()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},mt([v],e.prototype,"logImplementation",null),e}();function wt(e){return function(t,n,r){var o;vt(e,yt.http,this)&&(o=Ee()),this.logImplementation(t,n,e,r,o)}}function Ct(){var e=E().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Et(e){var t;void 0===e&&(e=null===(t=E().location)||void 0===t?void 0:t.hostname);var n=Ct();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function kt(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,kt)}St.prototype.ok=wt(gt.ok),St.prototype.debug=wt(gt.debug),St.prototype.info=wt(gt.info),St.prototype.notice=wt(gt.notice),St.prototype.warn=wt(gt.warn),St.prototype.error=wt(gt.error),St.prototype.critical=wt(gt.critical),St.prototype.alert=wt(gt.alert),St.prototype.emerg=wt(gt.emerg);var _t,xt,Ot,Tt=/([\w-]+)\s*=\s*([^;]+)/g;function Rt(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function Lt(){return null!=_t?_t:_t=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(e.document.documentMode)return 0;return 3}()}function At(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;
1samesite=").concat(a).concat(s).concat(u).concat(c)}function It(e){return function(e,t){for(Tt.lastIndex=0;;){var n=Tt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function Pt(e){return xt||(xt=function(e){var t=new Map;for(Tt.lastIndex=0;;){var n=Tt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),xt.get(e)}function Ut(e,t){At(e,"",0,t)}var Nt="_dd_s",Dt=4*Ge,Bt=15*je,Mt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,qt="&",jt="1";function Gt(){return{isExpired:jt}}function Ht(e){return M(e)}function Ft(e){return!Ht(e)}function Vt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||He()-Number(t.created)<Dt)&&(void 0===t.expire||He()<Number(t.expire)));var t}function zt(e){e.expire=String(He()+Bt)}function Jt(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(qt);var t}function Wt(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(qt)||Mt.test(e))}(e)&&e.split(qt).forEach((function(e){var n=Mt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var Yt="_dd",Kt="_dd_r",Zt="_dd_l",$t="rum",Xt="logs";function Qt(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Ot){for(var e="dd_site_test_".concat(kt()),t=window.location.hostname.split("."),n=t.pop();t.length&&!It(e);)n="".concat(t.pop(),".").concat(n),At(e,"test",qe,{domain:n});Ut(e,{domain:n}),Ot=n}return Ot}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(kt()),n="test";At(t,n,je,e);var r=It(t)===n;return Ut(t,e),r}catch(o){return s.error(o),!1}}
1(t)?{type:"Cookie",cookieOptions:t}:void 0}function en(e){var t,n={isLockEnabled:1===Lt(),persistSession:(t=e,function(e){At(Nt,Jt(e),Bt,t)}),retrieveSession:tn,expireSession:function(){return function(e){At(Nt,Jt(Gt()),Dt,e)}(e)}};return function(e){if(!Pt(Nt)){var t=Pt(Yt),n=Pt(Kt),r=Pt(Zt),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[Xt]=r),n&&/^[012]$/.test(n)&&(o[$t]=n),Ft(o)&&(zt(o),e.persistSession(o))}}(n),n}function tn(){return Wt(It(Nt))}var nn="_dd_test_";function rn(e){localStorage.setItem(Nt,Jt(e))}function on(){return Wt(localStorage.getItem(Nt))}function an(){rn(Gt())}var sn,un=10,cn=100,fn=[];function ln(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.persistSession,a=t.expireSession,s=function(e){return i(C({},e,{lock:c}))},u=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(sn||(sn=e),e===sn)if(o&&n>=cn)pn(t);else{var c,f=u();if(o){if(f.lock)return void dn(e,t,n);if(c=kt(),s(f.session),(f=u()).lock!==c)return void dn(e,t,n)}var l=e.process(f.session);if(o&&(f=u()).lock!==c)dn(e,t,n);else{if(l&&(Vt(l)?a():(zt(l),o?s(l):i(l))),o&&(!l||!Vt(l))){if((f=u()).lock!==c)return void dn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),pn(t)}}else fn.push(e)}function dn(e,t,n){R((function(){ln(e,t,n+1)}),un)}function pn(e){sn=void 0;var t=fn.shift();t&&ln(t,e)}var vn=qe;function gn(e){var t=Qt(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=kt(),t="".concat(nn).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(r){return}}()),t}function hn(e,t,n){var r,o=new ee,i=new ee,a=new ee,s="Cookie"===e.type?en(e.cookieOptions):{isLockEnabled:!1,persistSession:rn,retrieveSession:on,expireSession:an},u=s.expireSession,c=A((function(){ln({process:function(e){return Vt(e)?Gt():void 0},after:p},s)}),vn);v();var f=P((function(){ln({process:function(e){if(!Ht(e)){var r=p(e);return function(e){if(Ht(e))return!1;var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=kt(),e.created=String(He()))}(r),r}},after:function(e){Ft(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),vn),l=f.throttled,d=f.cancel;function p(e){return Vt(e)&&(e=Gt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Gt(),i.notify())),e}function v(){ln({process:function(e){if(Ht(e))return Gt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){ln({process:function(e){return g()?p(e):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p(Gt())},stop:function(){I(c)},updateSessionState:function(e){ln({process:function(t){return C({},t,e)},after:p},s)}}}function mn(e){return yn(e,location.href).href}function yn(e,t){var n=function(){if(void 0===bn)try{var e=new Sn("http://test/path");bn="http://test/path"===e.href}catch(dt){bn=!1}return bn?Sn:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(a){throw new Error("Failed to construct URL: ".concat(String(a)," ").concat(N({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}var bn,Sn=URL;function wn(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=mn(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?Be:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Be)return Me;if(o&&r===Be)return"".concat(o,".").concat(Be);if(r===De)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);
1return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,u=o.encoding,c=["sdk_version:".concat("5.22.0"),"api:".concat(r)].concat(n);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var f=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.22.0")),"dd-evp-origin=browser","dd-request-id=".concat(kt())];u&&f.push("dd-evp-encoding=".concat(u));"rum"===t&&f.push("batch_time=".concat(Fe()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var Cn=200;var En=/[^a-z0-9_:./-]/;function kn(e,t){var n=Cn-e.length-1;(t.length>n||En.test(t))&&s.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. More details: ").concat(u,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function _n(e){var t=e.site||Be,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(kn("env",t)),n&&i.push(kn("service",n)),r&&i.push(kn("version",r)),o&&i.push(kn("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:wn(e,"logs",t),rumEndpointBuilder:wn(e,"rum",t),sessionReplayEndpointBuilder:wn(e,"replay",t)}}(e,n),o=function(e,t){var n=S(e).map((function(e){return e.urlPrefix}));t===Be&&n.push("https://".concat(Me,"/"));return n}(r,t),i=function(e,t,n){if(!e.replica)return;var r=C({},e,{site:Be,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:wn(r,"logs",n),rumEndpointBuilder:wn(r,"rum",n)};return t.push.apply(t,S(o).map((function(e){return e.urlPrefix}))),C({applicationId:e.replica.applicationId},o)}(e,o,n);return C({isIntakeUrl:function(e){return o.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:t},r)}function xn(e,t){return null==e||"string"==typeof e||(s.error("".concat(t," must be defined as a string")),!1)}var On={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Tn(e,t){var n=[];y(t,On.cspViolation)&&n.push(function(e){return new ee((function(t){return ie(e,document,re.SECURITY_POLICY_VIOLATION,(function(e){t.notify(function(e){var t=On.cspViolation,n="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:On.cspViolation,subtype:e.effectiveDirective,message:"".concat(t,": ").concat(n),stack:Rn(e.effectiveDirective,e.originalPolicy?"".concat(n,' of the policy "').concat(Rt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber),originalReport:e}}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==On.cspViolation}));return r.length&&n.push(function(e){return new ee((function(t){if(window.ReportingObserver){var n=g((function(e,n){return e.forEach((function(e){t.notify(function(e){var t=e.type,n=e.body;return{type:t,subtype:n.id,message:"".concat(t,": ").concat(n.message),originalReport:e,stack:Rn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),te.apply(void 0,n)}function Rn(e,t,n,r,o){return n?ke({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var Ln=32*k;function An(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&s.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=function(e){var t,n,r,o,i;if(e&&e.clientToken)if(void 0===e.sessionSampleRate||$e(e.sessionSampleRate))if(void 0===e.telemetrySampleRate||$e(e.telemetrySampleRate))if(void 0===e.telemetryConfigurationSampleRate||$e(e.telemetryConfigurationSampleRate))if(void 0===e.telemetryUsageSampleRate||$e(e.telemetryUsageSampleRate)){if(xn(e.version,"Version")&&xn(e.env,"Env")&&xn(e.service,"Service"))if(void 0===e.trackingConsent||B(oe,e.trackingConsent)){var a;if(!e.site||(a=e.site,/(datadog|ddog|datad0g|dd0g)/.test(a)))return C({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:gn(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(o=e.telemetryUsageSampleRate)&&void 0!==o?o:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(i=e.trackingConsent)&&void 0!==i?i:oe.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*k,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*qe,batchMessagesLimit:50,messageBytesLimit:256*k},_n(e));s.error("Site should be a valid Datadog site. Learn more here: ".concat(u,"/getting_started/site/."))}else s.error('Tracking Consent should be either "granted" or "not-granted"')}else s.error("Telemetry Usage Sample Rate should be a number between 0 and 100");else s.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");else s.error("Telemetry Sample Rate should be a number between 0 and 100");else s.error("Session Sample Rate should be a number between 0 and 100");else s.error("Client Token is not configured, we will not send any data.")}(e),n=In(e.forwardConsoleLogs,S(r),"Forward Console Logs"),o=In(e.forwardReports,S(On),"Forward Reports");if(t&&n&&o)return e.forwardErrorsToLogs&&!y(n,r.error)&&n.push(r.error),C({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:o,requestErrorResponseLengthLimit:Ln,sendLogsAfterSessionExpiration:!!e.sendLogsAfterSessionExpiration},t)}function In(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,o=new Set,r.forEach((function(e){return o.add(e)})),b(o)):void s.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,o}function Pn(e,t,n){var r,o,i=new et,a=t.observable.subscribe(u);function u(){if(o&&r&&t.isGranted()){a.unsubscribe();var e=n(r,o);i.drain(e)}}return{init:function(e){if(e)if(Ie(e.enableExperimentalFeatures),Et()&&
1(e=function(e){return C({},e,{clientToken:"empty"})}(e)),r=e,o)lt("DD_LOGS",e);else{var n=An(e);n&&(o=n,t.tryToInit(n.trackingConsent),u())}else s.error("Missing configuration")},get initConfiguration(){return r},getInternalContext:U,handleLog:function(t,n,r,o,a){void 0===o&&(o=e()),void 0===a&&(a=Fe()),i.add((function(e){return e.handleLog(t,n,r,o,a)}))}}}var Un="logs";var Nn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var Dn="datadog-synthetics-public-id",Bn="datadog-synthetics-result-id",Mn="datadog-synthetics-injects-rum";function qn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Pt(Mn))}function jn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||Pt(Bn);return"string"==typeof e?e:void 0}var Gn=1/0,Hn=je,Fn=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=A((function(){return n.clearOldValues()}),Hn)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:Gn,remove:function(){Qe(n.entries,r)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e,t){void 0===e&&(e=Gn),void 0===t&&(t={returnInactive:!1});for(var n=0,r=this.entries;n<r.length;n++){var o=r[n];if(o.startTime<=e){if(t.returnInactive||e<=o.endTime)return o.value;break}}},e.prototype.closeActive=function(e){var t=this.entries[0];t&&t.endTime===Gn&&t.close(e)},e.prototype.findAll=function(e,t){void 0===e&&(e=Gn),void 0===t&&(t=0);var n=Je(e,t);return this.entries.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},e.prototype.reset=function(){this.entries=[]},e.prototype.stop=function(){I(this.clearOldValuesInterval)},e.prototype.clearOldValues=function(){for(var e=Ve()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()},e}(),Vn=je,zn=Dt,Jn=[];function Wn(e,t,n,r){var o=new ee,i=new ee,a=hn(e.sessionStoreStrategyType,t,n);Jn.push((function(){return a.stop()}));var s=new Fn(zn);function u(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Jn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(u(),Ve()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(Ve())})),a.expandOrRenewSession(),s.add(u(),[0,Ye()][0]),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(e,t){var n=ae(e,window,[re.CLICK,re.TOUCH_START,re.KEY_DOWN,re.SCROLL],t,{capture:!0,passive:!0}).stop;Jn.push(n)}(e,(function(){r.isGranted()&&a.expandOrRenewSession()})),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=ie(e,document,re.VISIBILITY_CHANGE,n).stop;Jn.push(r);var o=A(n,Vn);Jn.push((function(){I(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=ie(e,window,re.RESUME,t,{capture:!0}).stop;Jn.push(n)}(e,(function(){return a.restartSession()})),{findSession:function(e,t){return s.find(e,t)},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}var Yn="logs";function Kn(e,t){var n=Wn(e,Yn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:Zn(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}),t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id}:void 0},expireObservable:n.expireObservable}}function Zn(e){return Ze(e.sessionSampleRate)?"1":"0"}var $n=!1;function Xn(e){var t,n=window;if(qn()){var r=o(n.DD_RUM_SYNTHETICS);return r||$n||($n=!0,st("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Pt(Dn),"string"==typeof t?t:void 0),resultId:jn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function Qn(e,t,n,r,o){var i=bt.concat(["custom"]),a={};
1i.forEach((function(e){var n,r,i,s,u;a[e]=(n=e,r=t.eventRateLimiterThreshold,i=o,s=0,u=!1,{isLimitReached:function(){if(0===s&&R((function(){s=0}),je),(s+=1)<=r||u)return u=!1,!1;if(s===r+1){u=!0;try{i({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:pt.AGENT,startClocks:ze()})}finally{u=!1}}return!0}})})),n.subscribe(0,(function(o){var i,s,u=o.rawLogsEvent,c=o.messageContext,f=void 0===c?void 0:c,l=o.savedCommonContext,d=void 0===l?void 0:l,p=o.domainContext,v=We(u.date),g=e.findTrackedSession(v);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(v,{returnInactive:!0})){var h=d||r(),m=W({service:t.service,session_id:null==g?void 0:g.id,usr:M(h.user)?void 0:h.user,view:h.view},h.context,Xn(v),u,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,m,p))||m.origin!==pt.AGENT&&(null!==(s=a[m.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,m)}}))}var er,tr={};function nr(e){var t=e.map((function(e){return tr[e]||(tr[e]=function(e){return new ee((function(t){var n=o[e];return o[e]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.apply(console,o);var a=Ee();h((function(){t.notify(function(e,t,n){var o,i,a,s=e.map((function(e){return function(e){if("string"==typeof e)return $(e);if(e instanceof Error)return _e(le(e));return N($(e),void 0,2)}(e)})).join(" ");if(t===r.error){var u=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(e,(function(e){return e instanceof Error}));o=u?ke(le(u)):void 0,i=Re(u),a=u?Le(u,"console"):void 0}return{api:t,message:s,stack:o,handlingStack:n,fingerprint:i,causes:a}}(o,e,a))}))},function(){o[e]=n}}))}(e)),tr[e]}));return te.apply(void 0,t)}var rr,or=((er={})[r.log]=gt.info,er[r.debug]=gt.debug,er[r.info]=gt.info,er[r.warn]=gt.warn,er[r.error]=gt.error,er);var ir,ar=((rr={})[On.cspViolation]=gt.error,rr[On.intervention]=gt.error,rr[On.deprecation]=gt.warn,rr);function sr(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!w(t,"on"))return{stop:U};i=U}var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=b(arguments);h(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?Ee():void 0}]);var r=i.apply(this,t);return e&&h(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}var ur,cr=new WeakMap;function fr(e){return ir||(ir=function(e){return new ee((function(t){var n=sr(XMLHttpRequest.prototype,"open",lr).stop,r=sr(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=cr.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=ze(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,u=sr(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&c()})).stop,c=function(){if(f(),u(),!s){s=!0;var e,t=i;t.state="complete",t.duration=(e=a.startClocks.timeStamp,Fe()-e),t.status=r.status,n.notify(C({},t))}},f=ie(t,r,"loadend",c).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=sr(XMLHttpRequest.prototype,"abort",dr).stop;return function(){n(),r(),o()}}))}(e)),ir}function lr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];cr.set(t,{state:"open",method:String(r).toUpperCase(),url:mn(String(o))})}function dr(e){var t=e.target,n=cr.get(t);n&&(n.isAborted=!0)}function pr(){return ur||(ur=new ee((function(e){if(window.fetch){var t=sr(window,"fetch",(function(t){return function(e,t){var n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var u=void 0!==s?String(s).toUpperCase():"GET",c=i instanceof Request?i.url:mn(String(i)),f=ze(),l={state:"start",init:a,input:i,method:u,startClocks:f,url:c,handlingStack:o};t.notify(l),n[0]=l.input,n[1]=l.init,r((function(e){return function(e,t,n){var r=function(t){var r=n;r.state="resolve","stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1),e.notify(r)};t.then(g(r),g(r))}(t,e,l)}))}(t,e)}),{computeHandlingStack:!0}).stop;return t}}))),ur}function vr(e){return e>=500}function gr(e,t){if(!e.forwardErrorsToLogs)return{stop:U};var n=fr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=pr().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){function o(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(mr(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:gt.error,origin:pt.NETWORK},domainContext:o})}e.isIntakeUrl(r.url)||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!vr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(hr(e.response,t)):n(e.response)}(r.xhr,e,o):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(t){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(U),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var u=0;
1o.forEach((function(e){s.set(e,u),u+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(g((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),g((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(g((function(e){return n(hr(e,t))})),g((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,o):r.error&&function(e,t,n){n(hr(ke(le(e)),t))}(r.error,e,o))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function hr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function mr(e){return"xhr"===e?"XHR":"Fetch"}function yr(e){var t,n=function(t,n){var r=Te({stackTrace:t,originalError:n,startClocks:ze(),nonErrorPrefix:"Uncaught",source:pt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,sr(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],u=r[4];n=u instanceof Error?le(u):we(o,i,a,s),t(n,null!=u?u:o)}))).stop,o=function(e){return sr(window,"onunhandledrejection",(function(t){var n=t.parameters[0].reason||"Empty reason",r=le(n);e(r,n)}))}(n).stop;return{stop:function(){r(),o()}}}var br,Sr=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();function wr(e){return{handleLog:function(t,n,r,a,s){var u=W(n.getContext(),t.context);if(vt(t.status,yt.console,n)&&function(e,t){var n=e.status,r=e.message;i[Cr[n]].call(o,r,t)}(t,u),vt(t.status,yt.http,n)){var c={rawLogsEvent:{date:s||Fe(),message:t.message,status:t.status,origin:pt.LOGGER},messageContext:u,savedCommonContext:a};r&&(c.domainContext={handlingStack:r}),e.notify(0,c)}}}}var Cr=((br={})[gt.ok]=r.debug,br[gt.debug]=r.debug,br[gt.info]=r.info,br[gt.notice]=r.info,br[gt.warn]=r.warn,br[gt.error]=r.error,br[gt.critical]=r.error,br[gt.alert]=r.error,br[gt.emerg]=r.error,br);var Er=function(){function e(e,t,n,r){var o=this;this.encoder=e,this.request=t,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe((function(e){return o.flush(e)}))}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t=S(this.upsertBuffer).join("\n");this.upsertBuffer={};var n,r=(n=e.reason,y(S(Nn),n)),o=r?this.request.sendOnExit:this.request.send;if(r&&this.encoder.isAsync){var i=this.encoder.finishSync();i.outputBytesCount&&o(kr(i));var a=[i.pendingData,t].filter(Boolean).join("\n");a&&o({data:a,bytesCount:O(a)})}else t&&this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t)),this.encoder.finish((function(e){o(kr(e))}))},e.prototype.addOrUpdate=function(e,t){var n=N(e),r=this.encoder.estimateEncodedBytesCount(n);r>=this.messageBytesLimit?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB. More details: ").concat(u,"/real_user_monitoring/browser/troubleshooting/#technical-limitations")):(this.hasMessageFor(t)&&this.remove(t),this.push(n,r,t))},e.prototype.push=function(e,t,n){var r=this;this.flushController.notifyBeforeAddMessage(t),void 0!==n?(this.upsertBuffer[n]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e),(function(e){r.flushController.notifyAfterAddMessage(e-t)}))},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.encoder.estimateEncodedBytesCount(t);this.flushController.notifyAfterRemoveMessage(n)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function kr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var _r=80*k,xr=32,Or=3*_,Tr=je,Rr=qe;function Lr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ir(e,t,n,{onSuccess:function(){return Pr(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Ar(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Ar(e,t,n,r){2===e.transportStatus&&R((function(){Ir(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Rr,Pr(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Tr,2*e.currentBackoffTime),Ar(e,t,n,r)}})}),e.currentBackoffTime)}function Ir(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||vr(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Pr(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(Or/_,"MiB"),source:pt.AGENT,startClocks:ze()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Ur();i.size()>0;)Lr(i.dequeue(),t,n,r,o)}function Ur(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=Or}}}function Nr(e,t,n,r){var o={transportStatus:0,currentBackoffTime:Rr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=_r&&this.ongoingRequestCount<xr},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Ur(),queueFullReported:!1},i=function(r,o){return function(e,t,n,r,o){var i=function(){try{return window.Request&&"keepalive"in new Request
1("http://a")}catch(dt){return!1}}()&&r.bytesCount<n;if(i){var a=t.build("fetch",r);fetch(a,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(g((function(e){return null==o?void 0:o({status:e.status,type:e.type})})),g((function(){var n=t.build("xhr",r);Br(e,n,r.data,o)})))}else{var s=t.build("xhr",r);Br(e,s,r.data,o)}}(e,t,n,r,o)};return{send:function(e){Lr(e,o,i,t.trackType,r)},sendOnExit:function(r){!function(e,t,n,r){var o=!!navigator.sendBeacon&&r.bytesCount<n;if(o)try{var i=t.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(s){!function(e){Dr||(Dr=!0,ut(e))}(s)}var a=t.build("xhr",r);Br(e,a,r.data)}(e,t,n,r)}}}var Dr=!1;function Br(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),ie(e,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}function Mr(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),u=a.subscribe((function(){return d("session_expire")})),c=new ee((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,p(),c.notify({reason:e,messagesCount:t,bytesCount:n})}}function p(){L(t),t=void 0}return{flushObservable:c,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=R((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),f+=e,l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&p()}}}function qr(e,t,n,r,o,i){var a=u(e,t),s=n&&u(e,n);function u(e,t){var n=t.endpoint,a=t.encoder;return new Er(a,Nr(e,n,e.batchBytesLimit,r),Mr({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}function jr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=O(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function Gr(e,t,n,r,o){var i=at("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=Xn())||void 0===e?void 0:e.application_id},session:{id:null===(t=o.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=Xn())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=Xn())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(Et()){var s=Ct(),u=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return u.unsubscribe()}))}else{var c=qr(t,{endpoint:t.rumEndpointBuilder,encoder:jr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:jr()},n,r,o.expireObservable);a.push((function(){return c.stop()}));var f=i.observable.subscribe((function(e){return c.add(e,function(e){return e.site===Ne}(t))}));a.push((function(){return f.unsubscribe()}))}return ot.drain(),function(e){it({type:tt.configuration,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,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,tracking_consent:t.trackingConsent};return C({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},n)}(e)),{telemetry:i,stop:function(){a.forEach((function(e){return e()}))}}}var Hr,Fr,Vr,zr,Jr=function(e){var t,n,r=H(),o=ne(r.getOrCreateTracker(2)),i=ne(r.getOrCreateTracker(1)),a={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===oe.GRANTED},observable:n=new ee};function u(){return function(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}(o,i)}var c,f,l=Pn(u,a,(function(t,n){t.storeContextsAcrossPages&&(ce(n,o,Un,2),ce(n,i,Un,1));var r=e(t,n,u,a);return l=function(e,t){return C({init:function(e){lt("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),d={},v=new St((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker());return c={logger:v,init:g((function(e){return l.init(e)})),setTrackingConsent:g((function(e){var t;a.update(e),t={feature:"set-tracking-consent",tracking_consent:e},it({type:tt.usage,usage:t})})),getGlobalContext:g((function(){return o.getContext()})),setGlobalContext:g((function(e){return o.setContext(e)}
1)),setGlobalContextProperty:g((function(e,t){return o.setContextProperty(e,t)})),removeGlobalContextProperty:g((function(e){return o.removeContextProperty(e)})),clearGlobalContext:g((function(){return o.clearContext()})),createLogger:g((function(e,t){return void 0===t&&(t={}),d[e]=new St((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),$(e),t.handler,t.level,$(t.context)),d[e]})),getLogger:g((function(e){return d[e]})),getInitConfiguration:g((function(){return J(l.initConfiguration)})),getInternalContext:g((function(e){return l.getInternalContext(e)})),setUser:g((function(e){(function(e){var t="object"===V(e);return t||s.error("Unsupported user:",e),t})(e)&&i.setContext(ft(e))})),getUser:g((function(){return i.getContext()})),setUserProperty:g((function(e,t){var n,r=ft((n={},n[e]=t,n))[e];i.setContextProperty(e,r)})),removeUserProperty:g((function(e){return i.removeContextProperty(e)})),clearUser:g((function(){return i.clearContext()}))},f=C({version:"5.22.0",onReady:function(e){e()}},c),Object.defineProperty(f,"_setDebug",{get:function(){return p},enumerable:!1}),f}((function(e,t,n,o){var i=new Sr,a=[];i.subscribe(1,(function(e){return Ke("logs",e)}));var s=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:pt.AGENT,status:gt.error}}),st("Error reported to customer",{"error.message":t.message})}}(i),u=function(e){return new ee((function(t){var n=ae(e,window,[re.VISIBILITY_CHANGE,re.FREEZE],(function(e){e.type===re.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:Nn.HIDDEN}):e.type===re.FREEZE&&t.notify({reason:Nn.FROZEN})}),{capture:!0}).stop,r=ie(e,window,re.BEFORE_UNLOAD,(function(){t.notify({reason:Nn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||Et()||qn()?function(e){var t="1"===Zn(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new ee}}(t):Kn(t,o),f=Gr(e,t,s,u,c).stop;a.push((function(){return f()})),gr(t,i),function(e,t){if(!e.forwardErrorsToLogs)return{stop:U};var n=new ee,r=yr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,stack:e.stack,causes:e.causes},origin:pt.SOURCE,status:gt.error}})}))}(t,i),function(e,t){var n=nr(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Fe(),message:e.message,origin:pt.CONSOLE,error:e.api===r.error?{stack:e.stack,fingerprint:e.fingerprint,causes:e.causes}:void 0,status:or[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,i),function(e,t){var n=Tn(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o=ar[e.type];o===gt.error?n={kind:e.subtype,stack:e.stack}:e.stack&&(r+=" Found in ".concat(function(e){var t;return null===(t=/@ (.+)/.exec(e))||void 0===t?void 0:t[1]}(e.stack))),t.notify(0,{rawLogsEvent:{date:Fe(),message:r,origin:pt.REPORT,error:n,status:o}})}))}(t,i);var l,d=wr(i).handleLog;if(Qn(c,t,i,n,s),Et())!function(e){var t=Ct();e.subscribe(1,(function(e){t.send("log",e)}))}(i);else{var p=function(e,t,n,r,o){var i=qr(e,{endpoint:e.logsEndpointBuilder,encoder:jr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:jr()},n,r,o.expireObservable);return t.subscribe(1,(function(e){i.add(e)})),i}(t,i,s,u,c).stop;a.push((function(){return p()}))}return{handleLog:d,getInternalContext:(l=c,{get:function(e){var t=l.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){a.forEach((function(e){return e()}))}}}));Hr=E(),Vr=Jr,(zr=Hr[Fr="DD_LOGS"])&&!zr.q&&zr.version&&s.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Hr[Fr]=Vr,zr&&zr.q&&zr.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}}]);

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.