/*! For license information please see 942.chatbotize-entrypoint.min.js.LICENSE.txt */ (self.zowieJsonp=self.zowieJsonp||[]).push([[942],{9565:(t,e,n)=>{"use strict";n.d(e,{yf:()=>Ai});var i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},r=console,a={};Object.keys(i).forEach((function(t){a[t]=r[t]}));var o="Datadog Browser SDK:",s={debug:a.debug.bind(r,o),log:a.log.bind(r,o),info:a.info.bind(r,o),warn:a.warn.bind(r,o),error:a.error.bind(r,o)};function l(t,e){return function(){for(var n=[],i=0;i=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var i=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,i)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var r=Array.isArray(t)?t:[],a=0;a"}finally{i(),r(),a(),o()}}function B(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):I}var V=220*E,z="$",H=3;function G(t,e){var n;void 0===e&&(e=V);var i=B(Object.prototype),r=B(Array.prototype),a=[],o=new WeakMap,s=W(t,z,void 0,a,o),l=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(l>e)){for(;a.length>0&&le){j(e,"truncated",t);break}u.target[d]=h}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var h;if(void 0!==(h=W(u.source[d],u.path,d,a,o))&&(l+=JSON.stringify(h).length+c+d.length+H,c=1),l>e){j(e,"truncated",t);break}u.target[d]=h}}return i(),r(),s}j(e,"discarded",t)}function W(t,e,n,i,r){var a=function(t){var e=t;if(e&&"function"===typeof e.toJSON)try{return e.toJSON()}catch(X){}return t}(t);if(!a||"object"!==typeof a)return function(t){if("bigint"===typeof t)return"[BigInt] ".concat(t.toString());if("function"===typeof t)return"[Function] ".concat(t.name||"unknown");if("symbol"===typeof t)return"[Symbol] ".concat(t.description||t.toString());return t}(a);var o=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(X){}return"[Unserializable]"}(a);if("[Object]"!==o&&"[Array]"!==o&&"[Error]"!==o)return o;var s=t;if(r.has(s))return"[Reference seen at ".concat(r.get(s),"]");var l=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(a)?[]:{};return r.set(s,l),i.push({source:a,target:u,path:l}),u}function j(t,e,n){s.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var X,q=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function Y(){for(var t=[],e=0;e$&&(s.warn("The ".concat(K[e]," data exceeds the recommended ").concat($/E,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}(n,t))}),Z).throttled,l={getBytesCount:function(){return n},get:function(){return i},add:function(t,e){i[t]=e,o(i),a.notify()},remove:function(t){delete i[t],o(i),a.notify()},set:function(t){o(i=t),a.notify()},getContext:function(){return k(i)},setContext:function(t){"object"===U(t)?(i=G(t),o(i)):l.clearContext(),a.notify()},setContextProperty:function(t,e){i[t]=G(e),o(i),a.notify()},removeContextProperty:function(t){delete i[t],o(i),a.notify()},clearContext:function(){i={},n=0,a.notify()},changeObservable:a};return l}var J,tt=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach((function(t){return t()})),this.buffer.length=0},t}(),et=1e3,nt=60*et,it=60*nt;function rt(){return(new Date).getTime()}function at(){return rt()}function ot(){return performance.now()}function st(){return{relative:ot(),timeStamp:at()}}function lt(t,e){return t+e}function ut(){return void 0===J&&(J=performance.timing.navigationStart),J}function ct(){var t=S().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function dt(t){var e;void 0===t&&(t=null===(e=S().location)||void 0===e?void 0:e.hostname);var n=ct();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,i=".".concat(e),n.slice(-i.length)===i);var n,i}))}function ht(t,e,n,i,r){return pt(t,e,[n],i,r)}function pt(t,e,n,i,r){var a=void 0===r?{}:r,o=a.once,s=a.capture,l=a.passive,u=f(o?function(t){h(),i(t)}:i),c=l?{capture:s,passive:l}:s,d=A(e,"addEventListener");function h(){var t=A(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,u,c)}))}return n.forEach((function(t){return d.call(e,t,u,c)})),{stop:h}}var ft,mt="_dd_c",gt=[];function vt(t,e,n,i){void 0===i&&(i=w);var r=function(t,e){return"".concat(mt,"_").concat(t,"_").concat(e)}(e,n),a=Q(n,i);return o(),gt.push(ht(t,window,"storage",(function(t){var e=t.key;r===e&&o()}))),a.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(a.getContext()))})),a;function o(){var t=localStorage.getItem(r),e=null!==t?JSON.parse(t):{};a.setContext(e)}}function yt(t){var e=b({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}!function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.PAGE_STATES="page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",t.SCROLLMAP="scrollmap",t.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",t.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(ft||(ft={}));var _t=new Set;function xt(t){return _t.has(t)}function bt(){return _t}function St(t){return 0!==t&&100*Math.random()<=t}function Et(t){return function(t){return"number"===typeof t}(t)&&t>=0&&t<=100}function Mt(t){return 0===Object.keys(t).length}function Tt(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,Tt)}function wt(t,e,n){void 0===n&&(n="");var i=t.charCodeAt(e-1),r=i>=55296&&i<=56319?e+1:e;return t.length<=r?t:"".concat(t.slice(0,r)).concat(n)}var At,Ct,Rt=4*it,Pt=15*nt;function Lt(t,e,n,i){var r=new Date;r.setTime(r.getTime()+n);var a="expires=".concat(r.toUTCString()),o=i&&i.crossSite?"none":"strict",s=i&&i.domain?";domain=".concat(i.domain):"",l=i&&i.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(a,";path=/;samesite=").concat(o).concat(s).concat(l)}function Dt(t){return function(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}(document.cookie,t)}function It(t,e){Lt(t,"",0,e)}var Ut="_dd_s",Nt=/^([a-z]+)=([a-z0-9-]+)$/,kt="&";function Ot(t){return Mt(t)}function Ft(t){t.expire=String(rt()+Pt)}function Bt(t){return(e=t,Object.keys(e).map((function(t){return[t,e[t]]}))).map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)})).join(kt);var e}function Vt(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(kt)||Nt.test(t))}(t)&&t.split(kt).forEach((function(t){var n=Nt.exec(t);if(null!==n){var i=n[1],r=n[2];e[i]=r}})),e}var zt="_dd",Ht="_dd_r",Gt="_dd_l",Wt="rum",jt="logs";function Xt(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Ct){for(var t="dd_site_test_".concat(Tt()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Dt(t);)n="".concat(e.pop(),".").concat(n),Lt(t,"test",et,{domain:n});It(t,{domain:n}),Ct=n}return Ct}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(Tt()),n="test";Lt(e,n,nt,t);var i=Dt(e)===n;return It(e,t),i}catch(r){return s.error(r),!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function qt(t){var e,n={isLockEnabled:null!==At&&void 0!==At?At:At=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:(e=t,function(t){Lt(Ut,Bt(t),Pt,e)}),retrieveSession:Yt,clearSession:$t(t)};return function(t){if(!Dt(Ut)){var e=Dt(zt),n=Dt(Ht),i=Dt(Gt),r={};e&&(r.id=e),i&&/^[01]$/.test(i)&&(r[jt]=i),n&&/^[012]$/.test(n)&&(r[Wt]=n),Ot(r)||(Ft(r),t.persistSession(r))}}(n),n}function Yt(){return Vt(Dt(Ut))}function $t(t){return function(){It(Ut,t)}}var Kt="_dd_test_";function Zt(t){localStorage.setItem(Ut,Bt(t))}function Qt(){return Vt(localStorage.getItem(Ut))}function Jt(){localStorage.removeItem(Ut)}var te,ee=10,ne=100,ie=[];function re(t,e,n){var i;void 0===n&&(n=0);var r=e.isLockEnabled,a=e.retrieveSession,o=e.persistSession,s=e.clearSession;if(te||(te=t),t===te)if(r&&n>=ne)oe(e);else{var l,u=a();if(r){if(u.lock)return void ae(t,e,n);if(l=Tt(),u.lock=l,o(u),(u=a()).lock!==l)return void ae(t,e,n)}var c=t.process(u);if(r&&(u=a()).lock!==l)ae(t,e,n);else{if(c&&(Ot(c)?s():(Ft(c),o(c))),r&&(!c||!Ot(c))){if((u=a()).lock!==l)return void ae(t,e,n);delete u.lock,o(u),c=u}null===(i=t.after)||void 0===i||i.call(t,c||u),oe(e)}}else ie.push(t)}function ae(t,e,n){C((function(){re(t,e,n+1)}),ee)}function oe(t){te=void 0;var e=ie.shift();e&&re(e,t)}var se=et;function le(t){var e=Xt(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=Tt(),e="".concat(Kt).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(i){return}}()),e}function ue(t,e,n){var i=new q,r=new q,a="Cookie"===t.type?qt(t.cookieOptions):{isLockEnabled:!1,persistSession:Zt,retrieveSession:Qt,clearSession:Jt},o=a.clearSession,s=a.retrieveSession,l=P((function(){re({process:function(t){return h(t)?void 0:{}},after:c},a)}),se),u=function(){var t=s();if(h(t))return t;return{}}();function c(t){return h(t)||(t={}),d()&&(!function(t){return u.id!==t.id||u[e]!==t[e]}(t)?u=t:(u={},r.notify())),t}function d(){return void 0!==u[e]}function h(t){return(void 0===t.created||rt()-Number(t.created)n||Se.test(e))&&s.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var i=e.replace(/,/g,"_");return"".concat(t,":").concat(i)}function Me(t){var e=function(t){var e=t.env,n=t.service,i=t.version,r=t.datacenter,a=[];return e&&a.push(Ee("env",e)),n&&a.push(Ee("service",n)),i&&a.push(Ee("version",i)),r&&a.push(Ee("datacenter",r)),a}(t),n=function(t,e){return{logsEndpointBuilder:xe(t,"logs",e),rumEndpointBuilder:xe(t,"rum",e),sessionReplayEndpointBuilder:xe(t,"sessionReplay",e)}}(t,e),i=_(n).map((function(t){return t.urlPrefix})),r=function(t,e,n){if(!t.replica)return;var i=b({},t,{site:ge,clientToken:t.replica.clientToken}),r={logsEndpointBuilder:xe(i,"logs",n),rumEndpointBuilder:xe(i,"rum",n)};return e.push.apply(e,_(r).map((function(t){return t.urlPrefix}))),b({applicationId:t.replica.applicationId},r)}(t,i,e);return b({isIntakeUrl:function(t){return i.some((function(e){return 0===t.indexOf(e)}))},replica:r,site:t.site||ge},n)}function Te(t){var e,n,i;if(t&&t.clientToken){var r=null!==(e=t.sessionSampleRate)&&void 0!==e?e:t.sampleRate;if(void 0===r||Et(r))if(void 0===t.telemetrySampleRate||Et(t.telemetrySampleRate)){if(void 0===t.telemetryConfigurationSampleRate||Et(t.telemetryConfigurationSampleRate))return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter((function(t){return e=ft,n=t,Object.keys(e).some((function(t){return e[t]===n}));var e,n})).forEach((function(t){_t.add(t)})),b({beforeSend:t.beforeSend&&l(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:le(t),sessionSampleRate:null!==r&&void 0!==r?r:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(i=t.telemetryConfigurationSampleRate)&&void 0!==i?i:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*E,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*et,batchMessagesLimit:50,messageBytesLimit:256*E},Me(t));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.")}var we="?";function Ae(t){var e=[],n=ke(t,"stack"),i=String(t);return n&&x(n,i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=Pe.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),i=e[2]&&0===e[2].indexOf("eval"),r=Le.exec(e[2]);i&&r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||we,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=De.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:we,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Ie.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||we,line:+e[3],url:e[2]}}(t)||function(t){var e=Ue.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,i=Ne.exec(e[3]);n&&i&&(e[3]=i[1],e[4]=i[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||we,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=we),e.push(n))})),{message:ke(t,"message"),name:ke(t,"name"),stack:e}}var Ce="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",Re="(?::(\\d+))",Pe=new RegExp("^\\s*at (.*?) ?\\(".concat(Ce).concat(Re,"?").concat(Re,"?\\)?\\s*$"),"i"),Le=new RegExp("\\((\\S*)".concat(Re).concat(Re,"\\)"));var De=new RegExp("^\\s*at ?".concat(Ce).concat(Re,"?").concat(Re,"??\\s*$"),"i");var Ie=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ne=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ke(t,e){if("object"===typeof t&&t&&e in t){var n=t[e];return"string"===typeof n?n:void 0}}var Oe="No stack, consider using an instance of Error";function Fe(t){var e=t.stackTrace,n=t.originalError,i=t.handlingStack,r=t.startClocks,a=t.nonErrorPrefix,o=t.source,s=t.handling,l=n instanceof Error,u=function(t,e,n,i){return(null===t||void 0===t?void 0:t.message)&&(null===t||void 0===t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(F(G(i)))}(e,l,a,n),c=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(l,e)?Ve(e):Oe,d=l?function(t,e){var n=t,i=[];for(;(null===n||void 0===n?void 0:n.cause)instanceof Error&&i.length<10;){var r=Ae(n.cause);i.push({message:n.cause.message,source:e,type:null===r||void 0===r?void 0:r.name,stack:r&&Ve(r)}),n=n.cause}return i.length?i:void 0}(n,o):void 0;return{startClocks:r,source:o,handling:s,handlingStack:i,originalError:n,type:null===e||void 0===e?void 0:e.name,message:u,stack:c,causes:d,fingerprint:Be(n)}}function Be(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Ve(t){var e=ze(t);return t.stack.forEach((function(t){var n="?"===t.func?"":t.func,i=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",r=t.line?":".concat(t.line):"",a=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(i," @ ").concat(t.url).concat(r).concat(a)})),e}function ze(t){return"".concat(t.name||"Error",": ").concat(t.message)}var He={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Ge(t,e){var n=[];v(e,He.cspViolation)&&n.push(function(t){var e=new q((function(){return ht(t,document,"securitypolicyviolation",(function(t){e.notify(function(t){var e=He.cspViolation,n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return{type:He.cspViolation,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(n),stack:We(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(wt(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)}}(t))})).stop}));return e}(t));var i=e.filter((function(t){return t!==He.cspViolation}));return i.length&&n.push(function(t){var e=new q((function(){if(window.ReportingObserver){var n=f((function(t,n){return t.forEach((function(t){e.notify(function(t){var e=t.type,n=t.body;return{type:e,subtype:n.id,message:"".concat(e,": ").concat(n.message),stack:We(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(t))}))})),i=new window.ReportingObserver(n,{types:t,buffered:!0});return i.observe(),function(){i.disconnect()}}}));return e}(i)),Y.apply(void 0,n)}function We(t,e,n,i,r){return n?Ve({name:t,message:e,stack:[{func:"?",url:n,line:null!==i&&void 0!==i?i:void 0,column:null!==r&&void 0!==r?r:void 0}]}):void 0}var je=32*E;function Xe(t,e,n){return void 0===t?[]:"all"===t||Array.isArray(t)&&t.every((function(t){return v(e,t)}))?"all"===t?e:(i=t,r=new Set,i.forEach((function(t){return r.add(t)})),y(r)):void s.error("".concat(n,' should be "all" or an array with allowed values "').concat(e.join('", "'),'"'));var i,r}var qe={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},Ye=function(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},$e={debug:"debug",error:"error",info:"info",warn:"warn"},Ke={console:"console",http:"http",silent:"silent"},Ze=Object.keys($e),Qe=function(){function t(t,e,n,i,r){void 0===n&&(n=Ke.http),void 0===i&&(i=$e.debug),void 0===r&&(r={}),this.handleLogStrategy=t,this.handlerType=n,this.level=i,this.contextManager=Q(3),this.contextManager.set(b({},r,e?{logger:{name:e}}:void 0))}return t.prototype.log=function(t,e,n,i){var r;if(void 0===n&&(n=$e.info),n===$e.error&&(r={origin:qe.LOGGER}),void 0!==i&&null!==i){var a=Fe({stackTrace:i instanceof Error?Ae(i):void 0,originalError:i,nonErrorPrefix:"Provided",source:qe.LOGGER,handling:"handled",startClocks:st()});r={origin:qe.LOGGER,stack:a.stack,kind:a.type,message:a.message}}var o=G(e),s=r?O({error:r},o):o;this.handleLogStrategy({message:G(t),context:s,status:n},this)},t.prototype.debug=function(t,e,n){this.log(t,e,$e.debug,n)},t.prototype.info=function(t,e,n){this.log(t,e,$e.info,n)},t.prototype.warn=function(t,e,n){this.log(t,e,$e.warn,n)},t.prototype.error=function(t,e,n){this.log(t,e,$e.error,n)},t.prototype.setContext=function(t){this.contextManager.set(t)},t.prototype.getContext=function(){return this.contextManager.get()},t.prototype.addContext=function(t,e){this.contextManager.add(t,e)},t.prototype.removeContext=function(t){this.contextManager.remove(t)},t.prototype.setHandler=function(t){this.handlerType=t},t.prototype.getHandler=function(){return this.handlerType},t.prototype.setLevel=function(t){this.level=t},t.prototype.getLevel=function(){return this.level},Ye([p],t.prototype,"log",null),t}(),Je="logs";function tn(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var en,nn={log:"log",configuration:"configuration"},rn=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],an=["ddog-gov.com"],on={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function sn(t,e){var n,i=new q;on.telemetryEnabled=!v(an,e.site)&&St(e.telemetrySampleRate),on.telemetryConfigurationEnabled=on.telemetryEnabled&&St(e.telemetryConfigurationSampleRate);var r={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return en=function(e){if(on.telemetryEnabled){var a=function(t,e,i){return O({type:"telemetry",date:at(),service:t,version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:O(e,{runtime_env:i}),experimental_features:y(bt())},void 0!==n?n():{})}(t,e,r);i.notify(a),tn("telemetry",a)}},u=un,b(on,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){n=t},observable:i,enabled:on.telemetryEnabled}}function ln(t,e){g(i.debug,t,e),cn(b({type:nn.log,message:t,status:"debug"},e))}function un(t,e){cn(b({type:nn.log,status:"error"},function(t){if(t instanceof Error){var e=Ae(t);return{error:{kind:e.name,stack:Ve(dn(e))},message:e.message}}return{error:{stack:Oe},message:"".concat("Uncaught"," ").concat(F(t))}}(t),e))}function cn(t){en&&on.sentEventCount=this.messageBytesLimit?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(i,r,e))},t.prototype.process=function(t){var e=F(t);return{processedMessage:e,messageBytesCount:w(e)}},t.prototype.push=function(t,e,n){var i=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(e+i),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=w(e),i=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+i)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function _n(t){return t>=500}var xn=80*E,bn=32,Sn=3*M,En=nt,Mn=et;function Tn(t,e,n,i,r){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?An(t,e,n,{onSuccess:function(){return Cn(0,e,n,i,r)},onFailure:function(){e.queuedPayloads.enqueue(t),wn(e,n,i,r)}}):e.queuedPayloads.enqueue(t)}function wn(t,e,n,i){2===t.transportStatus&&C((function(){An(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Mn,Cn(1,t,e,n,i)},onFailure:function(){t.currentBackoffTime=Math.min(En,2*t.currentBackoffTime),wn(t,e,n,i)}})}),t.currentBackoffTime)}function An(t,e,n,i){var r=i.onSuccess,a=i.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||_n(t.status))}(n)?(e.transportStatus=0,r()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},a())}))}function Cn(t,e,n,i,r){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(r({message:"Reached max ".concat(i," events size queued for upload: ").concat(Sn/M,"MiB"),source:qe.AGENT,startClocks:st()}),e.queueFullReported=!0);var a=e.queuedPayloads;for(e.queuedPayloads=Rn();a.size()>0;)Tn(a.dequeue(),e,n,i,r)}function Rn(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Sn}}}function Pn(t,e,n,i){var r={transportStatus:0,currentBackoffTime:Mn,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=xn&&this.ongoingRequestCount=i&&h("bytes_limit"),d+=1,c+=t,void 0===e&&(e=C((function(){h("duration_limit")}),r))},notifyAfterAddMessage:function(){d>=n?h("messages_limit"):c>=i&&h("bytes_limit")},notifyAfterRemoveMessage:function(t){c-=t,0===(d-=1)&&p()}}}function Un(t,e,n,i,r,a){var o=l(t,e.endpoint),s=n&&l(t,n.endpoint);function l(t,e){return new yn(Pn(t,e,t.batchBytesLimit,i),In({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:a}),t.messageBytesLimit)}return{flushObservable:o.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),o.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){o.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){o.stop(),null===s||void 0===s||s.stop()}}}var Nn=1/0,kn=nt,On=function(){function t(t,e){var n=this;this.expireDelay=t,this.maxEntries=e,this.entries=[],this.clearOldValuesInterval=P((function(){return n.clearOldValues()}),kn)}return t.prototype.add=function(t,e){var n=this,i={value:t,startTime:e,endTime:Nn,remove:function(){var t=n.entries.indexOf(i);t>=0&&n.entries.splice(t,1)},close:function(t){i.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(i),i},t.prototype.find=function(t){void 0===t&&(t=Nn);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime=Xn[n.getLevel()]&&v(r,e)}function $n(t,e,n,i,r,a){var o=Ze.concat(["custom"]),s={};o.forEach((function(t){var n,i,r,o,l;s[t]=(n=t,i=e.eventRateLimiterThreshold,r=a,o=0,l=!1,{isLimitReached:function(){if(0===o&&C((function(){o=0}),nt),(o+=1)<=i||l)return l=!1,!1;if(o===i+1){l=!0;try{r({message:"Reached max number of ".concat(n,"s by minute: ").concat(i),source:qe.AGENT,startClocks:st()})}finally{l=!1}}return!0}})})),n.subscribe(0,(function(a){var o,l,u,c=a.rawLogsEvent,d=a.messageContext,h=void 0===d?void 0:d,p=a.savedCommonContext,f=void 0===p?void 0:p,m=a.logger,g=void 0===m?r:m,v=c.date-ut(),y=t.findTrackedSession(v);if(y){var _=f||i(),x=O({service:e.service,session_id:y.id,usr:Mt(_.user)?void 0:_.user,view:_.view},_.context,Zn(v),c,g.getContext(),h);!Yn(c.status,Ke.http,g)||!1===(null===(o=e.beforeSend)||void 0===o?void 0:o.call(e,x))||(null===(l=x.error)||void 0===l?void 0:l.origin)!==qe.AGENT&&(null!==(u=s[x.status])&&void 0!==u?u:s.custom).isLimitReached()||n.notify(1,x)}}))}var Kn=!1;function Zn(t){var e,n=window;if(gn()){var i=r(n.DD_RUM_SYNTHETICS);return i||Kn||(Kn=!0,ln("Logs sent before RUM is injected by the synthetics worker",{testId:(e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Dt(pn),"string"===typeof e?e:void 0),resultId:vn()})),i}return r(n.DD_RUM);function r(e){if(e&&e.getInternalContext)return e.getInternalContext(t)}}var Qn,Jn={};function ti(t){var e=t.map((function(t){return Jn[t]||(Jn[t]=function(t){var e=new q((function(){var n=r[t];return r[t]=function(){for(var r=[],a=0;an.bytesLimit}e(void 0,t,o)}!function t(){i.read().then(f((function(e){e.done?o():(n.collectStreamBody&&r.push(e.value),(a+=e.value.length)>n.bytesLimit?o():t())})),f((function(t){return e(t)})))}()}(t,(function(t,e,i){if(t)n(t);else{var r=(new TextDecoder).decode(e);i&&(r+="..."),n(void 0,r)}}),{bytesLimit:e,collectStreamBody:!0})}(i.body,e.requestErrorResponseLengthLimit,(function(t,e){n(t?"Unable to retrieve response: ".concat(t):e)})):i.text().then(f((function(t){return n(vi(t,e))})),f((function(t){return n("Unable to retrieve response: ".concat(t))}))):n()}(i.response,t,r):i.error&&function(t,e,n){n(vi(Ve(Ae(t)),e))}(i.error,t,r))}return{stop:function(){n.unsubscribe(),i.unsubscribe()}}}function vi(t,e){return t.length>e.requestErrorResponseLengthLimit?"".concat(t.substring(0,e.requestErrorResponseLengthLimit),"..."):t}function yi(t){return"xhr"===t?"XHR":"Fetch"}var _i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function xi(t){var e=function(t){return oi(window,"onerror",{before:function(e,n,i,r,a){var o;if(a instanceof Error)o=Ae(a);else{var s=[{url:n,column:r,line:i}],l=function(t){var e,n,i;"[object String]"==={}.toString.call(t)&&(n=(e=_i.exec(t))[1],i=e[2]);return{name:n,message:i}}(e);o={name:l.name,message:l.message,stack:s}}t(o,null!==a&&void 0!==a?a:e)}})}(t).stop,n=function(t){return oi(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",i=Ae(n);t(i,n)}})}(t).stop;return{stop:function(){e(),n()}}}function bi(t,e){if(!t.forwardErrorsToLogs)return{stop:I};var n,i=new q,r=(n=i,xi((function(t,e){n.notify(Fe({stackTrace:t,originalError:e,startClocks:st(),nonErrorPrefix:"Uncaught",source:qe.SOURCE,handling:"unhandled"}))}))).stop,a=i.subscribe((function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,error:{kind:t.type,origin:qe.SOURCE,stack:t.stack},origin:qe.SOURCE,status:$e.error}})}));return{stop:function(){r(),a.unsubscribe()}}}var Si=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter((function(t){return e!==t}))}}},t}();var Ei,Mi,Ti,wi,Ai=function(t){var e,n,r=!1,a=Q(2),o=Q(1),l={},u=function(){},c=new tt,d=function(t,e,n,i){void 0===n&&(n=k(g())),void 0===i&&(i=at()),c.add((function(){return d(t,e,n,i)}))},p=function(){},m=new Qe((function(){for(var t=[],e=0;e{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,a){"string"===typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},1601:t=>{"use strict";t.exports=function(t){return t[1]}},454:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),i=new RegExp("("+e+")+","gi");function r(t,e){try{return[decodeURIComponent(t.join(""))]}catch(a){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),i=t.slice(e);return Array.prototype.concat.call([],r(n),r(i))}function a(t){try{return decodeURIComponent(t)}catch(a){for(var e=t.match(n)||[],i=1;i{!function(t){function e(t){function e(t,e,n){this.x=t,this.y=e,this.z=n}e.prototype.dot2=function(t,e){return this.x*t+this.y*e},e.prototype.dot3=function(t,e,n){return this.x*t+this.y*e+this.z*n},this.grad3=[new e(1,1,0),new e(-1,1,0),new e(1,-1,0),new e(-1,-1,0),new e(1,0,1),new e(-1,0,1),new e(1,0,-1),new e(-1,0,-1),new e(0,1,1),new e(0,-1,1),new e(0,1,-1),new e(0,-1,-1)],this.p=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],this.perm=new Array(512),this.gradP=new Array(512),this.seed(t||0)}e.prototype.seed=function(t){t>0&&t<1&&(t*=65536),(t=Math.floor(t))<256&&(t|=t<<8);for(var e=this.p,n=0;n<256;n++){var i;i=1&n?e[n]^255&t:e[n]^t>>8&255;var r=this.perm,a=this.gradP;r[n]=r[n+256]=i,a[n]=a[n+256]=this.grad3[i%12]}};var n=.5*(Math.sqrt(3)-1),i=(3-Math.sqrt(3))/6,r=1/3,a=1/6;function o(t){return t*t*t*(t*(6*t-15)+10)}function s(t,e,n){return(1-n)*t+n*e}e.prototype.simplex2=function(t,e){var r,a,o=(t+e)*n,s=Math.floor(t+o),l=Math.floor(e+o),u=(s+l)*i,c=t-s+u,d=e-l+u;c>d?(r=1,a=0):(r=0,a=1);var h=c-r+i,p=d-a+i,f=c-1+2*i,m=d-1+2*i;s&=255,l&=255;var g=this.perm,v=this.gradP,y=v[s+g[l]],_=v[s+r+g[l+a]],x=v[s+1+g[l+1]],b=.5-c*c-d*d,S=.5-h*h-p*p,E=.5-f*f-m*m;return 70*((b<0?0:(b*=b)*b*y.dot2(c,d))+(S<0?0:(S*=S)*S*_.dot2(h,p))+(E<0?0:(E*=E)*E*x.dot2(f,m)))},e.prototype.simplex3=function(t,e,n){var i,o,s,l,u,c,d=(t+e+n)*r,h=Math.floor(t+d),p=Math.floor(e+d),f=Math.floor(n+d),m=(h+p+f)*a,g=t-h+m,v=e-p+m,y=n-f+m;g>=v?v>=y?(i=1,o=0,s=0,l=1,u=1,c=0):g>=y?(i=1,o=0,s=0,l=1,u=0,c=1):(i=0,o=0,s=1,l=1,u=0,c=1):v{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(r){return!1}}()?Object.assign:function(t,r){for(var a,o,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l{"use strict";var i=n(4280),r=n(5228),a=n(454);function o(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function s(t){return Array.isArray(t)?t.sort():"object"===typeof t?s(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function l(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function u(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,i){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===i[t]&&(i[t]={}),i[t][e[1]]=n):i[t]=n};case"bracket":return function(t,n,i){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==i[t]?i[t]=[].concat(i[t],n):i[t]=[n]:i[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=r({arrayFormat:"none"},e)),i=Object.create(null);return"string"!==typeof t?i:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),o=e.length>0?e.join("="):void 0;o=void 0===o?null:a(o),n(a(r),o,i)})),Object.keys(i).sort().reduce((function(t,e){var n=i[e];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?t[e]=s(n):t[e]=n,t}),Object.create(null))):i}e.extract=l,e.parse=u,e.stringify=function(t,e){!1===(e=r({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var n=function(t){switch(t.arrayFormat){case"index":return function(e,n,i){return null===n?[o(e,t),"[",i,"]"].join(""):[o(e,t),"[",o(i,t),"]=",o(n,t)].join("")};case"bracket":return function(e,n){return null===n?o(e,t):[o(e,t),"[]=",o(n,t)].join("")};default:return function(e,n){return null===n?o(e,t):[o(e,t),"=",o(n,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map((function(i){var r=t[i];if(void 0===r)return"";if(null===r)return o(i,e);if(Array.isArray(r)){var a=[];return r.slice().forEach((function(t){void 0!==t&&a.push(n(i,t,a.length))})),a.join("&")}return o(i,e)+"="+o(r,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:u(l(t),e)}}},2551:(t,e,n)=>{"use strict";var i=n(6540),r=n(9982);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n