1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,961409,e=>{"use strict";var t,n,r,o,i,a,s,c,u,l,f,d,p,v,g,m,y,h={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},b=console,S={};Object.keys(h).forEach(function(e){S[e]=b[e]});var w="Datadog Browser SDK:",k={debug:S.debug.bind(b,w),log:S.log.bind(b,w),info:S.info.bind(b,w),warn:S.warn.bind(b,w),error:S.error.bind(b,w)},C="https://docs.datadoghq.com",x="".concat(C,"/real_user_monitoring/browser/troubleshooting"),_="More details:";function E(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(e){k.error(t,e)}}}var T=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))},R=!1;function O(e){R=e}function L(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(i?A(r):r).apply(this,e)}}function A(e){return function(){return I(e,this,arguments)}}function I(e,t,n){try{return e.apply(t,n)}catch(e){if(P(e),i)try{i(e)}catch(e){P(e)}}}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];R&&k.error.apply(k,T(["[MONITOR]"],e,!1))}function D(e,t){return -1!==e.indexOf(t)}function M(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 B(e){return Object.keys(e).map(function(t){return e[t]})}function U(e,t){return e.slice(0,t.length)===t}function q(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 N(){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 j=/[^\u0000-\u007F]/;function F(e){return j.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function G(e,t){var n,r=N();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function H(e,t){return G(N(),"setTimeout")(A(e),t)}function z(e){G(N(),"clearTimeout")(e)}function J(e,t){return G(N(),"setInterval")(A(e),t)}function W(e){G(N(),"clearInterval")(e)}function V(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=[],c=0;c<arguments.length;c++)n[c]=arguments[c];if(s){r=n;return}i?e.apply(void 0,n):r=n,s=!0,o=H(function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0},t)},cancel:function(){z(o),s=!1,r=void 0}}}function $(){}function X(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=K(Object.prototype),o=K(Array.prototype),i=K(Object.getPrototypeOf(e)),a=K(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function K(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):$}function Z(e,t){void 0===t&&(t=225280);var n=K(Object.prototype),r=K(Array.prototype),o=[],i=new WeakMap,a=Y(e,"$",void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(c>t)return void Q(t,"discarded",e);for(;o.length>0&&c<t;){var u=o.shift(),l=0;if(Array.isArray(u.source))for(var f=0;f<u.source.length;f++){var d=Y(u.source[f],u.path,f,o,i);if(void 0!==d?c+=JSON.stringify(d).length:c+=4,c+=l,l=1,c>t){Q(t,"truncated",e);break}u.target[f]=d}else for(var f in u.source)if(Object.prototype.hasOwnProperty.call(u.source,f)){var d=Y(u.source[f],u.path,f,o,i);if(void 0!==d&&(c+=JSON.stringify(d).length+l+f.length+3,l=1),c>t){Q(t,"truncated",e);break}u.target[f]=d}}return n(),r(),a}function Y(e,t,n,r,o){var i,a=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!a||"object"!=typeof a){return"bigint"==typeof(i=a)?"[BigInt] ".concat(i.toString()):"function"==typeof i?"[Function] ".concat(i.name||"unknown"):"symbol"==typeof i?"[Symbol] ".concat(i.description||i.toString()):i}var s=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(e){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(o.has(e))return"[Reference seen at ".concat(o.get(e),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(a)?[]:{};return o.set(e,c),r.push({source:a,target:u,path:c}),u}function Q(e,t,n){k.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}function ee(e){var t=[],n=eu(e,"stack"),r=String(e);return n&&U(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(e){var n=function(e){var t=er.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=eo.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=ei.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ea.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=es.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ec.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);
1n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:eu(e,"message"),name:eu(e,"name"),stack:t}}var et="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",en="(?::(\\d+))",er=RegExp("^\\s*at (.*?) ?\\(".concat(et).concat(en,"?").concat(en,"?\\)?\\s*$"),"i"),eo=new RegExp("\\((\\S*)".concat(en).concat(en,"\\)")),ei=RegExp("^\\s*at ?".concat(et).concat(en,"?").concat(en,"??\\s*$"),"i"),ea=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,es=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ec=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eu(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var el=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ef(){var e,t=Error();if(!t.stack)try{throw t}catch(e){$()}return I(function(){var n=ee(t);n.stack=n.stack.slice(2),e=ed(n)}),e}function ed(e){var t=ep(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 ep(e){return"".concat(e.name||"Error",": ").concat(e.message)}var ev="No stack, consider using an instance of Error";function eg(e){var t,n,r,o,i,a,s=e.stackTrace,c=e.originalError,u=e.handlingStack,l=e.startClocks,f=e.nonErrorPrefix,d=e.source,p=e.handling,v=c instanceof Error,g=(t=s,n=v,r=f,o=c,(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:n?"Empty message":"".concat(r," ").concat(X(Z(o)))),m=(i=v,void 0!==(a=s)&&(i||a.stack.length>0&&(a.stack.length>1||void 0!==a.stack[0].url)))?ed(s):ev,y=v?ey(c,d):void 0,h=s?s.name:void 0,b=em(c);return{startClocks:l,source:d,handling:p,handlingStack:u,originalError:c,type:h,message:g,stack:m,causes:y,fingerprint:b}}function em(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ey(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=ee(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ed(o)}),n=n.cause}return r.length?r:void 0}function eh(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function eb(e){return 0===Object.keys(e).length}(t=a||(a={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",t.REMOTE_CONFIGURATION="remote_configuration",t.UPDATE_VIEW_NAME="update_view_name",t.NULL_INP_TELEMETRY="null_inp_telemetry",t.LONG_ANIMATION_FRAME="long_animation_frame",t.VIEW_SPECIFIC_CONTEXT="view_specific_context";var eS=new Set,ew="datadoghq.com",ek="pci.browser-intake-datadoghq.com",eC=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{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 ex(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new eC(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 e_(){return new Date().getTime()}function eE(){return performance.now()}function eT(){return{relative:eE(),timeStamp:e_()}}function eR(){return void 0===s&&(s=performance.timing.navigationStart),s}function eO(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function eL(e){return 0!==e&&100*Math.random()<=e}function eA(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function eI(e,t,n){if(void 0===n&&(n=function(){if("u">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]=eI(o[i],t[i],n);return o}var a="object"===eA(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=eI(a[s],t[s],n));return a}}function eP(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];null!=o&&(e=eI(e,o))}return e}function eD(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function eM(){var e=[];return{add:function(t){e.push(t)>500&&e.splice(0,1)},remove:function(t){eD(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var eB="configuration",eU="usage",eq=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],eN=["ddog-gov.com"],ej=eM(),eF=function(e){ej.add(function(){return eF(e)})};function eG(e,t){P(h.debug,e,t),eF(q({type:"log",message:e,status:"debug"},t))}function eH(e,t){eF(q({type:"log",status:"error"},function(e){if(e instanceof Error){var t,n=ee(e);return{error:{kind:n.name,stack:ed(((t=n).stack=t.stack.filter(function(e){return!e.url||eq.some(function(t){return U(e.url,t)})}),t))},message:n.message}}return{error:{stack:ev},message:"".concat("Uncaught"," ").concat(X(e))}}(e),t))}function ez(e){var t={},n=new eC,r={getContext:function(){return eI(void 0,t)},setContext:function(o){"object"===eA(o)?(t=Z(o),e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=Z(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}function eJ(e){var t=q({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function eW(e){var t=0,n=V(function(n){t=F(X(n)),e()},200),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){eb(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function eV(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=A(function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&d(),r(t))}),l=c?{capture:s,passive:c}:s,f=G(t,"addEventListener");function d(){var e=G(t,"removeEventListener");n.forEach(function(n){return e.call(t,n,u,l)})}return n.forEach(function(e){return f.call(t,e,u,l)}),{stop:d}}var e$=[];function eX(e,t,n,r){var o,i,a=(o=n,i=r,"".concat("_dd_c","_").concat(o,"_").concat(i));function s(){var e=localStorage.getItem(a);return null!==e?JSON.parse(e):{}}e$.push(eV(e,window,["storage"],function(e){a===e.key&&t.setContext(s())},void 0)),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))}),t.setContext(eP(s(),t.getContext()))}function eK(e,t){t.silentMultipleInit||k.error("".concat(e," is already initialized."))}var eZ={GRANTED:"granted",NOT_GRANTED:"not-granted"},eY="agent",eQ="console",e0="logger",e1="source",e2="report";function e3(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return e5[e]>=e5[n.getLevel()]&&D(o,t)}var e4={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},e5=((c={})[e4.ok]=0,c[e4.debug]=1,c[e4.info]=2,c[e4.notice]=4,c[e4.warn]=5,c[e4.error]=6,c[e4.critical]=7,c[e4.alert]=8,c[e4.emerg]=9,c);function e6(e,t){var n=(void 0===t?{}:t).includeMessage;return{stack:e.stack,kind:e.type,message:void 0!==n&&n?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var e9=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},e8="http",e7=Object.keys(e4),te=function(){function e(e,t,n,r,o,i){void 0===r&&(r=e8),void 0===o&&(o=e4.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=ez(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=e4.info);var i,a=Z(t);i=null!=r?eP({error:e6(eg({stackTrace:r instanceof Error?ee(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:e0,handling:"handled",startClocks:eT()}),{includeMessage:!0})},a):a,this.handleLogStrategy({message:Z(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=e4.info),e3(n,e8,this)&&(o=ef()),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},e9([L],e.prototype,"logImplementation",null),e}();function tt(e){return function(t,n,r){var o;e3(e,e8,this)&&(o=ef()),this.logImplementation(t,n,e,r,o)}}function tn(){var e=N().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function tr(e){void 0===e&&(e=null==(t=N().location)?void 0:t.hostname);var t,n=tn();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,r;return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r)})}function to(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i)if(!(t in e&&U(t,"on")))return{stop:$};else i=$;var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=M(arguments);I(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?ef():void 0}]);var r=i.apply(this,t);return e&&I(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function ti(e){return function(e,t){var n=function(){if(void 0===u)try{var e=new ta("http://test/path");u="http://test/path"===e.href}catch(e){u=!1}return u?ta:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(X({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw 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}(e,location.href).href}te.prototype.ok=tt(e4.ok),te.prototype.debug=tt(e4.debug),te.prototype.info=tt(e4.info),te.prototype.notice=tt(e4.notice),te.prototype.warn=tt(e4.warn),te.prototype.error=tt(e4.error),te.prototype.critical=tt(e4.critical),te.prototype.alert=tt(e4.alert),te.prototype.emerg=tt(e4.emerg);var ta=URL;function ts(){return l||(l=new eC(function(e){if(window.fetch)return to(window,"fetch",function(t){var n,r,o,i,a,s,c,u,l,f,d;return n=t,r=e,o=n.parameters,i=n.onPostCall,a=n.handlingStack,s=o[0],void 0===(u=(c=o[1])&&c.method)&&s instanceof Request&&(u=s.method),l=void 0!==u?String(u).toUpperCase():"GET",f=s instanceof Request?s.url:ti(String(s)),d={state:"start",init:c,input:s,method:l,startClocks:eT(),url:f,handlingStack:a},void(r.notify(d),o[0]=d.input,o[1]=d.init,i(function(e){var t=r,n=e,o=d;function i(e){o.state="resolve",q(o,e),t.notify(o)}n.then(A(function(e){i({response:e,responseType:e.type,status:e.status,isAborted:!1})}),A(function(e){var t,n;i({status:0,isAborted:(null==(n=null==(t=o.init)?void 0:t.signal)?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}))},{computeHandlingStack:!0}).stop})),l}function tc(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,tc)}var tu=/([\w-]+)\s*=\s*([^;]+)/g;function tl(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):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function tf(e){var t=document.cookie;for(tu.lastIndex=0;;){var n=tu.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function td(e){return d||(d=function(e){var t=new Map;for(tu.lastIndex=0;;){var n=tu.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),d.get(e)}var tp="_dd_s",tv=144e5,tg=9e5,tm=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function ty(){return{isExpired:"1"}}function th(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||e_()-Number(t.created)<tv)&&(void 0===t.expire||e_()<Number(t.expire)))}function tb(e){e.expire=String(e_()+tg)}function tS(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)}).join("&")}function tw(e){var t,n={};return(t=e)&&(-1!==t.indexOf("&")||tm.test(t))&&e.split("&").forEach(function(e){var t=tm.exec(e);if(null!==t){var r=t[1],o=t[2];n[r]=o}}),n}function tk(){return tw(tf(tp))}function tC(e){localStorage.setItem(tp,tS(e))}function tx(){return tw(localStorage.getItem(tp))}function t_(){tC(ty())}var tE=[];function tT(e,t,n){void 0===n&&(n=0);var r,o,i=t.isLockEnabled,a=t.persistSession,s=t.expireSession,c=function(e){return a(q({},e,{lock:o}))},u=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(v||(v=e),e!==v)return void tE.push(e);if(i&&n>=100)return void tO(t);var l=u();if(i&&(l.lock||(o=tc(),c(l.session),(l=u()).lock!==o)))return void tR(e,t,n);var f=e.process(l.session);if(i&&(l=u()).lock!==o)return void tR(e,t,n);if(f&&(th(f)?s():(tb(f),i?c(f):a(f))),i&&!(f&&th(f))){if((l=u()).lock!==o)return void tR(e,t,n);a(l.session),f=l.session}null==(r=e.after)||r.call(e,f||l.session),tO(t)}function tR(e,t,n){H(function(){tT(e,t,n+1)},10)}function tO(e){v=void 0;var t=tE.shift();t&&tT(t,e)}function tL(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=ti(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?ew:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===ew)return ek;if(o&&r===ew)return"".concat(o,".").concat(ew);if("dd0g-gov.com"===r)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,s,c,u,l,f,d,p,v,g,m;return r((a=e,s=t,c=n,u=o,l=i,f=a.clientToken,d=a.internalAnalyticsSubdomain,p=l.retry,v=l.encoding,g=["sdk_version:".concat("5.26.0"),"api:".concat(u)].concat(c),p&&g.push("retry_count:".concat(p.count),"retry_after:".concat(p.lastFailureStatus)),m=["ddsource=browser","ddtags=".concat(encodeURIComponent(g.join(","))),"dd-api-key=".concat(f),"dd-evp-origin-version=".concat(encodeURIComponent("5.26.0")),"dd-evp-origin=browser","dd-request-id=".concat(tc())],v&&m.push("dd-evp-encoding=".concat(v)),"rum"===s&&m.push("batch_time=".concat(e_())),d&&m.reverse(),m.join("&")))},urlPrefix:r(""),trackType:t}}function tA(e,t){var n,r=200-e.length-1;(t.length>r||(n=t,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&k.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(_," ").concat(C,"/getting_started/tagging/#defining-tags"));var o=t.replace(/,/g,"_");return"".concat(e,":").concat(o)}function tI(e,t){return null==e||"string"==typeof e||(k.error("".concat(t," must be defined as a string")),!1)}function tP(e,t){return void 0===e||!!("number"==typeof e&&e>=0&&e<=100)||(k.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}var tD={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function tM(e){return q({startClocks:eT(),source:e2,handling:"unhandled"},e)}function tB(e,t,n,r,o){return n?ed({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function tU(e,t,n){var r;return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(function(e){return D(t,e)})?"all"===e?t:(r=new Set,e.forEach(function(e){return r.add(e)}),M(r)):void k.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'))}var tq="logs",tN={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tj(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||td("datadog-synthetics-injects-rum"))}var tF=1/0,tG=[];function tH(e){return eL(e.sessionSampleRate)?"1":"0"}var tz=!1;function tJ(e){var t=window;if(tj()){var n,r,o=i(t.DD_RUM_SYNTHETICS);return o||tz||(tz=!0,eG("Logs sent before RUM is injected by the synthetics worker",{testId:"string"==typeof(n=window._DATADOG_SYNTHETICS_PUBLIC_ID||td("datadog-synthetics-public-id"))?n:void 0,resultId:"string"==typeof(r=window._DATADOG_SYNTHETICS_RESULT_ID||td("datadog-synthetics-result-id"))?r:void 0})),o}return i(t.DD_RUM);function i(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var tW={},tV=((g={})[h.log]=e4.info,g[h.debug]=e4.debug,g[h.info]=e4.info,g[h.warn]=e4.warn,g[h.error]=e4.error,g),t$=new WeakMap;function tX(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];t$.set(t,{state:"open",method:String(r).toUpperCase(),url:ti(String(o))})}function tK(e){var t=e.target,n=t$.get(t);n&&(n.isAborted=!0)}function tZ(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var tY=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}(),tQ=((y={})[e4.ok]=h.debug,y[e4.debug]=h.debug,y[e4.info]=h.info,y[e4.notice]=h.info,y[e4.warn]=h.warn,y[e4.error]=h.error,y[e4.critical]=h.error,y[e4.alert]=h.error,y[e4.emerg]=h.error,y);function t0(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=F(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 t1(e){var t=e.encoder,n=e.request,r=e.flushController,o=e.messageBytesLimit,i={},a=r.flushObservable.subscribe(function(e){return function(e){var r,o=B(i).join("\n");i={};var a=(r=e.reason,D(B(tN),r)),s=a?n.sendOnExit:n.send;if(a&&t.isAsync){var c=t.finishSync();c.outputBytesCount&&s(t2(c));
1var u=[c.pendingData,o].filter(Boolean).join("\n");u&&s({data:u,bytesCount:F(u)})}else o&&t.write(t.isEmpty?o:"\n".concat(o)),t.finish(function(e){s(t2(e))})}(e)});function s(e,n){var a,s,c=X(e),u=t.estimateEncodedBytesCount(c);u>=o?k.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(o,"KB. ").concat(_," ").concat(x,"/#technical-limitations")):(void 0!==n&&void 0!==i[n]&&(a=i[n],delete i[n],s=t.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(u),void 0!==n?(i[n]=c,r.notifyAfterAddMessage()):t.write(t.isEmpty?c:"\n".concat(c),function(e){r.notifyAfterAddMessage(e-u)}))}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function t2(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var t3=3145728;function t4(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?t5(e,t,n,{onSuccess:function(){return t6(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,o){2===t.transportStatus&&H(function(){t5(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,t6(1,t,n,r,o)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,o)}})},t.currentBackoffTime)}(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function t5(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){var r;t.bandwidthMonitor.remove(e),"opaque"!==(r=n).type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i()):(t.transportStatus=0,o())})}function t6(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(t3/1048576,"MiB"),source:eY,startClocks:eT()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=t9();i.size()>0;)t4(i.dequeue(),t,n,r,o)}function t9(){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>=t3}}}var t8=!1;function t7(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),eV(e,o,["loadend"],function(){null==r||r({status:o.status})},{once:!0}),o.send(n)}function ne(e,t,n,r,o,i,a){void 0===a&&(a=t1);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n,s,c,u=t.endpoint,l=t.encoder;return a({encoder:l,request:(n=e.batchBytesLimit,s={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:t9(),queueFullReported:!1},c=function(t,r){var o,i,a,s,c;return o=e,i=u,a=n,s=t,c=r,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&s.bytesCount<a?fetch(i.build("fetch",s),{method:"POST",body:s.data,keepalive:!0,mode:"cors"}).then(A(function(e){return null==c?void 0:c({status:e.status,type:e.type})}),A(function(){t7(o,i.build("xhr",s),s.data,c)})):t7(o,i.build("xhr",s),s.data,c))},{send:function(e){t4(e,s,c,u.trackType,r)},sendOnExit:function(t){!function(e,t,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var o,i=t.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(e){o=e,t8||(t8=!0,eH(o))}t7(e,t.build("xhr",r),r.data)}(e,u,n,t)}}),flushController:function(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)}),c=a.subscribe(function(){return d("session_expire")}),u=new eC(function(){return function(){s.unsubscribe(),c.unsubscribe()}}),l=0,f=0;function d(e){if(0!==f){var t=f,n=l;f=0,l=0,p(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function p(){z(t),t=void 0}return{flushObservable:u,get messagesCount(){return f},notifyBeforeAddMessage:function(e){l+e>=r&&d("bytes_limit"),f+=1,l+=e,void 0===t&&(t=H(function(){d("duration_limit")},o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),l+=e,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){l-=e,0==(f-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireOb
1servable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}var nt=function(e){var t,n,r,o=function(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,i=2===e?3072:16384,a=r;t.forEach(function(e){a+=e.getBytesCount()}),a>i&&(o=i,k.warn("Customer data exceeds the recommended ".concat(o/1024,"KiB threshold. ").concat(_," ").concat(x,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var e=eW(function(){return r(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,eW(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()}}}(),i=ez(o.getOrCreateTracker(2)),s=ez(o.getOrCreateTracker(1)),c={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===eZ.GRANTED},observable:n=new eC};function u(){return{view:{referrer:document.referrer,url:window.location.href},context:i.getContext(),user:s.getContext()}}var l=function(e,t,n){var r,o,i=eM(),s=t.observable.subscribe(c);function c(){if(o&&r&&t.isGranted()){s.unsubscribe();var e=n(r,o);i.drain(e)}}return{init:function(e){if(!e)return void k.error("Missing configuration");if(Array.isArray(n=e.enableExperimentalFeatures)&&n.filter(function(e){return eh(a,e)}).forEach(function(e){eS.add(e)}),tr()&&(e=q({},e,{clientToken:"empty"})),r=e,o)return void eK("DD_LOGS",e);var n,i=function(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&k.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,a,s,c,u,l,f,d,v,g,m,y,h,b,S,w,x,T,R,O,L;if(!e||!e.clientToken)return void k.error("Client Token is not configured, we will not send any data.");if((!(a=e.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(k.error("Site should be a valid Datadog site. ".concat(_," ").concat(C,"/getting_started/site/.")),0))&&tP(e.sessionSampleRate,"Session")&&tP(e.telemetrySampleRate,"Telemetry")&&tP(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&tP(e.telemetryUsageSampleRate,"Telemetry Usage")&&tI(e.version,"Version")&&tI(e.env,"Env")&&tI(e.service,"Service")){if(void 0!==e.trackingConsent&&!eh(eZ,e.trackingConsent))return void k.error('Tracking Consent should be either "granted" or "not-granted"');return q({beforeSend:e.beforeSend&&E(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:(y=e,(w=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(tc()),n="test";tl(t,n,6e4,e);var r=tf(t)===n;return tl(t,"",0,e),r}catch(e){return k.error(e),!1}}(((b={}).secure=!!(h=y).useSecureSessionCookie||!!h.usePartitionedCrossSiteSessionCookie||!!h.useCrossSiteSessionCookie,b.crossSite=!!h.usePartitionedCrossSiteSessionCookie||!!h.useCrossSiteSessionCookie,b.partitioned=!!h.usePartitionedCrossSiteSessionCookie,h.trackSessionAcrossSubdomains&&(b.domain=function(){if(void 0===p){for(var e="dd_site_test_".concat(tc()),t=window.location.hostname.split("."),n=t.pop();t.length&&!tf(e);)tl(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});tl(e,"",0,{domain:n}),p=n}return p}()),S=b))?void 0:{type:"Cookie",cookieOptions:S}
1)||!y.allowFallbackToLocalStorage||(w=function(){try{var e=tc(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),w),sessionSampleRate:null!=(t=e.sessionSampleRate)?t:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(r=e.telemetryConfigurationSampleRate)?r:5,telemetryUsageSampleRate:null!=(o=e.telemetryUsageSampleRate)?o:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(i=e.trackingConsent)?i:eZ.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=e.site||ew,c=e.env,u=e.service,l=e.version,f=e.datacenter,d=[],c&&d.push(tA("env",c)),u&&d.push(tA("service",u)),l&&d.push(tA("version",l)),f&&d.push(tA("datacenter",f)),v=d,R=g={logsEndpointBuilder:tL(x=e,"logs",T=v),rumEndpointBuilder:tL(x,"rum",T),sessionReplayEndpointBuilder:tL(x,"replay",T)},O=s,L=B(R).map(function(e){return e.urlPrefix}),O===ew&&L.push("https://".concat(ek,"/")),q({isIntakeUrl:function(e){return m.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,n){if(e.replica){var r=q({},e,{site:ew,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:tL(r,"logs",n),rumEndpointBuilder:tL(r,"rum",n)};return t.push.apply(t,B(o).map(function(e){return e.urlPrefix})),q({applicationId:e.replica.applicationId},o)}}(e,m=L,v),site:s},g)))}}(e),n=tU(e.forwardConsoleLogs,B(h),"Forward Console Logs"),r=tU(e.forwardReports,B(tD),"Forward Reports");if(t&&n&&r)return e.forwardErrorsToLogs&&!D(n,h.error)&&n.push(h.error),q({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768,sendLogsAfterSessionExpiration:!!e.sendLogsAfterSessionExpiration},t)}(e);i&&(o=i,ts().subscribe($),t.tryToInit(i.trackingConsent),c())},get initConfiguration(){return r},getInternalContext:$,handleLog:function(t,n,r,o,a){void 0===o&&(o=e()),void 0===a&&(a=e_()),i.add(function(e){return e.handleLog(t,n,r,o,a)})}}}(u,c,function(t,n){t.storeContextsAcrossPages&&(eX(n,i,tq,2),eX(n,s,tq,1));var r=e(t,n,u,c);return l=q({init:function(e){eK("DD_LOGS",e)},initConfiguration:t},r),r}),f={};return Object.defineProperty(r=q({version:"5.26.0",onReady:function(e){e()}},{logger:new te(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)},o.createDetachedTracker()),init:A(function(e){return l.init(e)}),setTrackingConsent:A(function(e){c.update(e),eF({type:eU,usage:{feature:"set-tracking-consent",tracking_consent:e}})}),getGlobalContext:A(function(){return i.getContext()}),setGlobalContext:A(function(e){return i.setContext(e)}),setGlobalContextProperty:A(function(e,t){return i.setContextProperty(e,t)}),removeGlobalContextProperty:A(function(e){return i.removeContextProperty(e)}),clearGlobalContext:A(function(){return i.clearContext()}),createLogger:A(function(e,t){return void 0===t&&(t={}),f[e]=new te(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)},o.createDetachedTracker(),Z(e),t.handler,t.level,Z(t.context)),f[e]}),getLogger:A(function(e){return f[e]}),getInitConfiguration:A(function(){return eI(void 0,l.initConfiguration)}),getInternalContext:A(function(e){return l.getInternalContext(e)}),setUser:A(function(e){var t;(t="object"===eA(e))||k.error("Unsupported user:",e),t&&s.setContext(eJ(e))}),getUser:A(function(){return s.getContext()}),setUserProperty:A(function(e,t){var n,r=eJ(((n={})[e]=t,n))[e];s.setContextProperty(e,r)}),removeUserProperty:A(function(e){return s.removeContextProperty(e)}),clearUser:A(function(){return s.clearContext()})}),"_setDebug",{get:function(){return O},enumerable:!1}),r}(function(e,t,n,r){var o=new tY,a=[];o.subscribe(1,function(e){return eO("logs",e)});var s=function(e){o.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,origin:eY,status:e4.error}}),eG("Error reported to customer",{"error.message":e.message})},c=new eC(function(e){var n=eV(t,window,["visibilitychange","freeze"],function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:tN.HIDDEN}):"freeze"===t.type&&e.notify({reason:tN.FROZEN})},{capture:!0}).stop,r=eV(t,window,["beforeunload"],function(){e.notify({reason:tN.UNLOADING})},void 0).stop;return function(){n(),r()}}),u=!t.sessionStoreStrategyType||tr()||tj()?(k="1"===tH(t)?{}:void 0,{findTrackedSession:function(){return k},expireObservable:new eC}):{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var n=C.findSession(e,t);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:(C=function(e,t,n,r){var o,i,a,s,c,u,l,d,p,v,g,m,y=new eC,h=new eC,b=function(e,t,n){var r,o=new eC,i=new eC,a=new eC,s="Cookie"===e.type?function(e){var t,n,r,o,i={isLockEnabled:1===(null!=f?f:(void 0===t&&(t=window),r=t.navigator.userAgent,f=t.chrome||/HeadlessChrome/.test(r)?1:(null==(n=t.navigator.vendor)?void 0:n.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:3*!t.document.documentMode)),persistSession:(o=e,function(e){tl(tp,tS(e),tg,o)}),retrieveSession:tk,expireSession:function(){var t;return t=e,void tl(tp,tS(ty()),tv,t)}};if(!td(tp)){var a=td("_dd"),s=td("_dd_r"),c=td("_dd_l"),u={};a&&(u.id=a),c&&/^[01]$/.test(c)&&(u.logs=c),s&&/^[012]$/.test(s)&&(u.rum=s),eb(u)||(tb(u),i.persistSession(u))}return i}(e.cookieOptions):{isLockEnabled:!1,persistSession:tC,retrieveSession:tx,expireSession:t_},c=s.expireSession,u=J(function(){tT({process:function(e){return th(e)?ty():void 0},after:v},s)},1e3);g();var l=V(function(){tT({process:function(e){if(!eb(e)){var r=v(e);return function(e){if(!eb(e)){var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=tc(),e.created=String(e_()))}}(r),r}},after:function(e){eb(e)||m()||(r=e,o.notify()),r=e}},s)},1e3),d=l.throttled,p=l.cancel;function v(e){var n;return th(e)&&(e=ty()),m()&&((n=e,r.id!==n.id||r[t]!==n[t])?(r=ty(),i.notify()):(a.notify({previousState:r,newState:e}),r=e)),e}function g(){tT({process:function(e){if(eb(e))return ty()},after:function(e){r=e}},s)}function m(){return void 0!==r[t]}return{expandOrRenewSession:d,expandSession:function(){tT({process:function(e){return m()?v(e):void 0}},s)},getSession:function(){return r}
1,renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:g,expire:function(){p(),c(),v(ty())},stop:function(){W(u)},updateSessionState:function(e){tT({process:function(t){return q({},t,e)},after:v},s)}}}(e.sessionStoreStrategyType,t,n);tG.push(function(){return b.stop()});var S=(p=(d={expireDelay:tv}).expireDelay,v=d.maxEntries,g=[],m=J(function(){for(var e=eE()-p;g.length>0&&g[g.length-1].endTime<e;)g.pop()},6e4),{add:function(e,t){var n={value:e,startTime:t,endTime:tF,remove:function(){eD(g,n)},close:function(e){n.endTime=e}};return v&&g.length>=v&&g.pop(),g.unshift(n),n},find:function(e,t){void 0===e&&(e=tF),void 0===t&&(t={returnInactive:!1});for(var n=0,r=g;n<r.length;n++){var o=r[n];if(o.startTime<=e){if(t.returnInactive||e<=o.endTime)return o.value;break}}},closeActive:function(e){var t=g[0];t&&t.endTime===tF&&t.close(e)},findAll:function(e,t){void 0===e&&(e=tF),void 0===t&&(t=0);var n=e+t;return g.filter(function(t){return t.startTime<=n&&e<=t.endTime}).map(function(e){return e.value})},reset:function(){g=[]},stop:function(){W(m)}});function w(){return{id:b.getSession().id,trackingType:b.getSession()[t],isReplayForced:!!b.getSession().forcedReplay}}return tG.push(function(){return S.stop()}),b.renewObservable.subscribe(function(){S.add(w(),eE()),y.notify()}),b.expireObservable.subscribe(function(){h.notify(),S.closeActive(eE())}),b.expandOrRenewSession(),S.add(w(),{relative:0,timeStamp:eR()}.relative),r.observable.subscribe(function(){r.isGranted()?b.expandOrRenewSession():b.expire()}),o=eV(e,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&b.expandOrRenewSession()},{capture:!0,passive:!0}).stop,tG.push(o),i=e,a=function(){return b.expandSession()},s=function(){"visible"===document.visibilityState&&a()},c=eV(i,document,["visibilitychange"],s,void 0).stop,tG.push(c),u=J(s,6e4),tG.push(function(){W(u)}),l=eV(e,window,["resume"],function(){return b.restartSession()},{capture:!0}).stop,tG.push(l),{findSession:function(e,t){return S.find(e,t)},renewObservable:y,expireObservable:h,sessionStateUpdateObservable:b.sessionStateUpdateObservable,expire:b.expire,updateSessionState:b.updateSessionState}}(t,"logs",function(e){var n,r,o,i;return n=t,{trackingType:i="0"===(o=r=e)||"1"===o?r:tH(n),isTracked:"1"===i}},r)).expireObservable},l=function(e,t,n,r,o){var a,s,c,u,l,f,d,p,v,g,m,y=(a="browser-logs-sdk",s=t,l=new eC,f=new Set,d=!D(eN,s.site)&&eL(s.telemetrySampleRate),p=((c={}).log=d,c[eB]=d&&eL(s.telemetryConfigurationSampleRate),c[eU]=d&&eL(s.telemetryUsageSampleRate),c),v={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},eF=function(e){var t=X(e);if(p[e.type]&&f.size<s.maxTelemetryEventsPerPage&&!f.has(t)){var n,r,o,i,c,d=(n=a,r=e,o=v,eP({type:"telemetry",date:e_(),service:n,version:"5.26.0",source:"browser",_dd:{format_version:2},telemetry:eP(r,{runtime_env:o,connectivity:{status:(c=window.navigator).onLine?"connected":"not_connected",interfaces:c.connection&&c.connection.type?[c.connection.type]:void 0,effective_type:null==(i=c.connection)?void 0:i.effectiveType}}),experimental_features:M(eS)},void 0!==u?u():{}));l.notify(d),eO("telemetry",d),f.add(t)}},i=eH,{setContextProvider:function(e){u=e},observable:l,enabled:d});y.setContextProvider(function(){var e,t,n,r,i,a;return{application:{id:null==(e=tJ())?void 0:e.application_id},session:{id:null==(t=o.findTrackedSession())?void 0:t.id},view:{id:null==(r=null==(n=tJ())?void 0:n.view)?void 0:r.id},action:{id:null==(a=null==(i=tJ())?void 0:i.user_action)?void 0:a.id}}});var h=[];if(tr()){var b=tn(),S=y.observable.subscribe(function(e){return b.send("internal_telemetry",e)});h.push(function(){return S.unsubscribe()})}else{var w=ne(t,{endpoint:t.rumEndpointBuilder,encoder:t0()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:t0()},n,r,o.expireObservable);h.push(function(){return w.stop()});var k=y.observable.subscribe(function(e){return w.add(e,"datad0g.com"===t.site)});h.push(function(){return k.unsubscribe()})}return ej.drain(),g={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent},m=q({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},g),eF({type:eB,configuration:m}),{telemetry:y,stop:function(){h.forEach(function(e){return e()})}}}(e,t,s,c,u).stop;a.push(function(){return l()}),function(e,t){var n;if(e.forwardErrorsToLogs)(!m&&(n=e,m=new eC(function(e){var t=to(XMLHttpRequest.prototype,"open",tX).stop,r=to(XMLHttpRequest.prototype,"send",function(t){!function(e,t,n){var r=e.target,o=e.handlingStack,i=t$.get(r);if(i){i.state="start",i.startClocks=eT(),i.isAborted=!1,i.xhr=r,i.handlingStack=o;var a=!1,s=to(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(u(),s(),!a){var e;a=!0,i.state="complete",e=i.startClocks.timeStamp,i.duration=e_()-e,i.status=r.status,n.notify(q({},i))}},u=eV(t,r,["loadend"],c,void 0).stop;n.notify(i)}}(t,n,e)},{computeHandlingStack:!0}).stop,o=to(XMLHttpRequest.prototype,"abort",tK).stop;return function(){t(),r(),o()}})),m).subscribe(function(e){"complete"===e.state&&r("xhr",e)}),ts().subscribe(function(e){"resolve"===e.state&&r("fetch",e)});function r(n,r){var o,i,a,s,c,u,l,f,d,p,v,g;function m(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat("xhr"===n?"XHR":"Fetch"," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:e4.error,origin:"network"},domainContext:o})}!e.isIntakeUrl(r.url)&&(0===(o=r).status&&"opaque"!==o.responseType||r.status>=500)&&("xhr"in r?(i=r.xhr,a=e,m("string"==typeof i.response?tZ(i.response,a):i.response)):r.response?(s=r.response,c=e,u=m,(l=function(e){try{return e.clone()}catch(e){return}}(s))&&l.body?window.TextDecoder?(f=l.body,d=c.requestErrorResponseLengthLimit,p=function(e,t){e?u("Unable to retrieve response: ".concat(e)):u(t)},function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){if(r.cancel().catch($),n.collectStreamBody){if(1===o.length)s=o[0];else{var e,a,s=new Uint8Array(i),c=0;o.forEach(function(e){s.set(e,c),c+=e.length})}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(A(function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())}),A(function(e){return t(e)}))}()}(f,function(e,t,n){if(e)p(e);else{var r=new TextDecoder().decode(t);n&&(r+="..."),p(void 0,r)}},{bytesLimit:d,collectStreamBody:!0})):l.text().then(A(function(e){return u(tZ(e,c))}),A(function(e){return u("Unable to retrieve response: ".concat(e))}
1)):u()):r.error&&(v=r.error,g=e,m(tZ(ed(ee(v)),g))))}}(t,o),function(e,t){if(e.forwardErrorsToLogs){var n,r,o,i,a,s=new eC;(i=(n=o=function(e,t){var n=eg({stackTrace:e,originalError:t,startClocks:eT(),nonErrorPrefix:"Uncaught",source:e1,handling:"unhandled"});s.notify(n)},to(window,"onerror",function(e){var t,r,o,i,a,s,c=e.parameters,u=c[0],l=c[1],f=c[2],d=c[3],p=c[4];if(p instanceof Error)s=ee(p);else{s={name:(t=u,"[object String]"===({}).toString.call(t)&&(o=(r=el.exec(t))[1],i=r[2]),a={name:o,message:i}).name,message:a.message,stack:[{url:l,column:d,line:f}]}}n(s,null!=p?p:u)})).stop,a=(r=o,to(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";r(ee(t),t)})).stop,{stop:function(){i(),a()}}).stop,s.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:e6(e),origin:e1,status:e4.error}})})}}(t,o),p=t,v=o,(g=p.forwardConsoleLogs.map(function(e){var t;return tW[e]||(tW[e]=(t=e,new eC(function(e){var n=b[t];return b[t]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(console,r);var i=ef();I(function(){e.notify(function(e,t,n){var r,o=e.map(function(e){var t;return"string"==typeof(t=e)?Z(t):t instanceof Error?ep(ee(t)):X(Z(t),void 0,2)}).join(" ");if(t===h.error){var i=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});r={stack:i?ed(ee(i)):void 0,fingerprint:em(i),causes:i?ey(i,"console"):void 0,startClocks:eT(),message:o,source:eQ,handling:"handled",handlingStack:n}}return{api:t,message:o,error:r,handlingStack:n}}(r,t,i))})},function(){b[t]=n}}))),tW[e]}),ex.apply(void 0,g)).subscribe(function(e){var t={rawLogsEvent:{date:e_(),message:e.message,origin:eQ,error:e.error&&e6(e.error),status:tV[e.api]},domainContext:{handlingStack:e.handlingStack}};v.notify(0,t)}),(x=t.forwardReports,_=[],D(x,tD.cspViolation)&&_.push((y=t,new eC(function(e){return eV(y,document,["securitypolicyviolation"],function(t){e.notify(function(e){var t,n,r,o="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return tM({type:e.effectiveDirective,message:"".concat(tD.cspViolation,": ").concat(o),originalError:e,csp:{disposition:e.disposition},stack:tB(e.effectiveDirective,e.originalPolicy?"".concat(o,' of the policy "').concat((t=e.originalPolicy,r=(n=t.charCodeAt(99))>=55296&&n<=56319?101:100,t.length<=r?t:"".concat(t.slice(0,r)).concat("...")),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(t))},void 0).stop}))),(E=x.filter(function(e){return e!==tD.cspViolation})).length&&_.push((w=E,new eC(function(e){if(window.ReportingObserver){var t=A(function(t,n){return t.forEach(function(t){var n,r,o;return e.notify((r=(n=t).type,tM({type:(o=n.body).id,message:"".concat(r,": ").concat(o.message),originalError:n,stack:tB(o.id,o.message,o.sourceFile,o.lineNumber,o.columnNumber)})))})}),n=new window.ReportingObserver(t,{types:w,buffered:!0});return n.observe(),function(){n.disconnect()}}}))),ex.apply(void 0,_)).subscribe(function(e){var t,n,r,i=e.message,a="deprecation"===e.originalError.type?e4.warn:e4.error;a===e4.error?r=e6(e):e.stack&&(i+=" Found in ".concat((t=e.stack,null==(n=/@ (.+)/.exec(t))?void 0:n[1]))),o.notify(0,{rawLogsEvent:{date:e_(),message:i,origin:e2,error:r,status:a}})});var d={handleLog:function(e,t,n,r,i){var a,s,c,u,l=eP(t.getContext(),e.context);if(e3(e.status,"console",t)&&(a=e,s=l,c=a.status,u=a.message,S[tQ[c]].call(b,u,s)),e3(e.status,e8,t)){var f={rawLogsEvent:{date:i||e_(),message:e.message,status:e.status,origin:e0},messageContext:l,savedCommonContext:r};n&&(f.domainContext={handlingStack:n}),o.notify(0,f)}}}.handleLog;if(T=e7.concat(["custom"]),R={},T.forEach(function(e){var n,r,o;R[e]=(n=t.eventRateLimiterThreshold,r=0,o=!1,{isLimitReached:function(){if(0===r&&H(function(){r=0},6e4),(r+=1)<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{s({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:eY,startClocks:eT()})}finally{o=!1}}return!0}})}),o.subscribe(0,function(e){var r,i,a=e.rawLogsEvent,s=e.messageContext,c=e.savedCommonContext,l=e.domainContext,f
1=a.date-eR(),d=u.findTrackedSession(f);if(d||t.sendLogsAfterSessionExpiration&&u.findTrackedSession(f,{returnInactive:!0})){var p=(void 0===c?void 0:c)||n(),v=eP({service:t.service,session_id:d?d.id:void 0,usr:eb(p.user)?void 0:p.user,view:p.view},p.context,tJ(f),a,void 0===s?void 0:s);(null==(r=t.beforeSend)?void 0:r.call(t,v,l))===!1||v.origin!==eY&&(null!=(i=R[v.status])?i:R.custom).isLimitReached()||o.notify(1,v)}}),tr())O=tn(),o.subscribe(1,function(e){O.send("log",e)});else{var p,v,g,y,w,k,C,x,_,E,T,R,O,L,P=(L=ne(t,{endpoint:t.logsEndpointBuilder,encoder:t0()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:t0()},s,c,u.expireObservable),o.subscribe(1,function(e){L.add(e)}),L).stop;a.push(function(){return P()})}return{handleLog:d,getInternalContext:({get:function(e){var t=u.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){a.forEach(function(e){return e()})}}});n=N(),(o=n[r="DD_LOGS"])&&!o.q&&o.version&&k.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),n[r]=nt,o&&o.q&&o.q.forEach(function(e){return E(e,"onReady callback threw an error:")()}),e.s(["datadogLogs",0,nt],961409)}]);
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.