!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r="Datadog Browser SDK:",i={debug:n.debug.bind(e,r),log:n.log.bind(e,r),info:n.info.bind(e,r),warn:n.warn.bind(e,r),error:n.error.bind(e,r)},o="https://docs.datadoghq.com",a="".concat(o,"/real_user_monitoring/browser/troubleshooting"),s="More details:";function u(t,e){return function(){for(var n=[],r=0;r"}finally{r(),i(),o(),a()}}function D(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):M}function P(t){return S({},t)}function U(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function z(t){return 0===Object.keys(t).length}function B(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var o=2===t?3072:16384,u=r;e.forEach((function(t){u+=t.getBytesCount()})),u>o&&(!function(t){i.warn("Customer data exceeds the recommended ".concat(t/C,"KiB threshold. ").concat(s," ").concat(a,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(o),n=!0)}}return{createDetachedTracker:function(){var t=V((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,V(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function V(t){var e=0,n=O((function(n){e=T(L(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){z(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function F(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function q(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;oe)){for(;i.length>0&&ue){K(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f;if(void 0!==(f=W(c.source[d],c.path,d,i,o))&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){K(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}K(e,"discarded",t)}function W(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o)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}(o);var a=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(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function K(t,e,n){i.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var J=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{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 eval")>-1,r=pt.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||it,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=it),e.push(n))})),{message:vt(t,"message"),name:vt(t,"name"),stack:e}}var at="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",st="(?::(\\d+))",ut=new RegExp("^\\s*at (.*?) ?\\(".concat(at).concat(st,"?").concat(st,"?\\)?\\s*$"),"i"),ct=new RegExp("\\((\\S*)".concat(st).concat(st,"\\)"));var lt=new RegExp("^\\s*at ?".concat(at).concat(st,"?").concat(st,"??\\s*$"),"i");var dt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var ft=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,pt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function vt(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function ht(t,e,n,r){var i=[{url:e,column:r,line:n}],o=function(t){var e,n,r;"[object String]"==={}.toString.call(t)&&(n=(e=mt.exec(t))[1],r=e[2]);return{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}var mt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function gt(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return v((function(){var n=ot(e);n.stack=n.stack.slice(2),t=yt(n)})),t}function yt(t){var e=_t(t);return t.stack.forEach((function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).concat(o)})),e}function _t(t){return"".concat(t.name||"Error",": ").concat(t.message)}var bt,wt="No stack, consider using an instance of Error";function St(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=Ct(n),c=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(L(G(r)))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?yt(e):wt,d=u?xt(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:e?e.name:void 0,message:c,stack:l,causes:d,fingerprint:kt(n)}}function kt(t){return Ct(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Ct(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function xt(t,e){for(var n=t,r=[];Ct(null==n?void 0:n.cause)&&r.length<10;){var i=ot(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&yt(i)}),n=n.cause}return r.length?r:void 0}!function(t){t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.REMOTE_CONFIGURATION="remote_configuration",t.LONG_ANIMATION_FRAME="long_animation_frame",t.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",t.ACTION_NAME_MASKING="action_name_masking",t.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",t.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection"}(bt||(bt={}));var Tt=new Set;function Et(t){Array.isArray(t)&&t.filter((function(t){return U(bt,t)})).forEach((function(t){Tt.add(t)}))}function At(t){return Tt.has(t)}function Rt(){return Tt}var It="datad0g.com",Nt="dd0g-gov.com",Ot="datadoghq.com",Mt="datadoghq.eu",Lt="pci.browser-intake-datadoghq.com",Dt=["ddsource","ddtags"];function Pt(t){return 0!==t&&100*Math.random()<=t}function Ut(t,e){return+t.toFixed(e)}function zt(t){return"number"==typeof t}var Bt,Vt=1e3,Ft=6e4,qt=31536e6;function jt(t){return{relative:t,timeStamp:Ht(t)}}function Ht(t){var e=Wt()-performance.now();return e>te()?Math.round(Zt(e,t)):function(t){return Math.round(Zt(te(),t))}(t)}function Gt(t){return zt(t)?Ut(1e6*t,0):t}function Wt(){return(new Date).getTime()}function Kt(){return Wt()}function Jt(){return performance.now()}function Yt(){return{relative:Jt(),timeStamp:Kt()}}function Xt(){return{relative:0,timeStamp:te()}}function $t(t,e){return e-t}function Zt(t,e){return t+e}function Qt(t){return t-te()}function te(){return void 0===Bt&&(Bt=performance.timing.navigationStart),Bt}function ee(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function ne(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}function re(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function ie(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){re(t,e)},drain:function(e){t.forEach((function(t){return t(e)})),t.length=0}}}var oe="log",ae="configuration",se="usage",ue=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],ce=["ddog-gov.com"],le=ie(),de=function(t){le.add((function(){return de(t)}))};function fe(t,e){var n,r,i=new J,o=new Set,a=!m(ce,e.site)&&Pt(e.telemetrySampleRate),s=((n={})[oe]=a,n[ae]=a&&Pt(e.telemetryConfigurationSampleRate),n[se]=a&&Pt(e.telemetryUsageSampleRate),n),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return de=function(n){var a=L(n);if(s[n.type]&&o.size>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,_e)}var be=/([\w-]+)\s*=\s*([^;]+)/g;function we(t,e){for(be.lastIndex=0;;){var n=be.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Se(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function ke(t,e,n){function r(n){(function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.duration)})(n)&&t.notify(12,function(t,e){var n={date:t.startClocks.timeStamp,vital:{id:_e(),type:t.type,name:t.name,duration:Gt(t.duration),description:t.description},type:"vital"};e&&(n._dd={vital:{computed_value:!0}});return{rawRumEvent:n,startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}(n,!0))}return{addDurationVital:r,startDurationVital:function(t,e){return void 0===e&&(e={}),Ce(n,t,e)},stopDurationVital:function(t,e){void 0===e&&(e={}),xe(r,n,t,e)}}}function Ce(t,e,n){var r=t.vitalsByName,i=t.vitalsByReference;void 0===n&&(n={});var o={name:e,startClocks:Yt(),context:n.context,description:n.description},a={__dd_vital_reference:!0};return r.set(e,o),i.set(a,o),a}function xe(t,e,n,r){var i=e.vitalsByName,o=e.vitalsByReference;void 0===r&&(r={});var a="string"==typeof n?i.get(n):o.get(n);a&&(t(function(t,e,n,r){var i;return{name:t.name,type:"duration",startClocks:e,duration:$t(e.timeStamp,r.timeStamp),context:H(t.context,n.context),description:null!==(i=n.description)&&void 0!==i?i:t.description}}(a,a.startClocks,r,Yt())),"string"==typeof n?i.delete(n):o.delete(n))}function Te(){var t=k().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var i=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:i}))}}}function Ee(t){var e=Te();return!!e&&m(e.getCapabilities(),t)}function Ae(t){var e;void 0===t&&(t=null===(e=k().location)||void 0===e?void 0:e.hostname);var n=Te();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r}))}function Re(t,e,n,r){var i=(void 0===r?{}:r).computeHandlingStack,o=t[e];if("function"!=typeof o){if(!(e in t)||!w(e,"on"))return{stop:M};o=M}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=g(arguments);v(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?gt():void 0}]);var r=o.apply(this,e);return t&&v(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Ie(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:M};var i=M,o=function(t,e){A((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===a&&Object.defineProperty(t,e,r),o=i}}}function Ne(t){return Oe(t,location.href).href}function Oe(t,e){var n=function(){if(void 0===Me)try{var t=new Ue("http://test/path");Me="http://test/path"===t.href}catch(t){Me=!1}return Me?Ue:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(L({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var Me,Le,De,Pe,Ue=URL;function ze(){return Le||(Le=new J((function(t){if(window.fetch){var e=Re(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:Ne(String(o)),l=Yt(),d={state:"start",init:a,input:o,method:u,startClocks:l,url:c,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n;function i(e){r.state="resolve",S(r,e),t.notify(r)}e.then(p((function(t){i({response:t,responseType:t.type,status:t.status,isAborted:!1})})),p((function(t){var e,n;i({status:0,isAborted:(null===(n=null===(e=r.init)||void 0===e?void 0:e.signal)||void 0===n?void 0:n.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0}).stop;return e}}))),Le}function Be(t,e,n,r){void 0===n&&(n=0);var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.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(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function Ve(t){return we(document.cookie,t)}function Fe(t){return De||(De=function(t){var e=new Map;for(be.lastIndex=0;;){var n=be.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),De.get(t)}function qe(t,e){Be(t,"",0,e)}var je;function He(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Fe("datadog-synthetics-injects-rum"))}function Ge(){return null!=je?je:je=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(t.document.documentMode)return 0;return 3}()}var We="_dd_s",Ke=144e5,Je=9e5,Ye=qt,Xe="cookie",$e="local-storage",Ze=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Qe(t){var e={isExpired:"1"};return At(bt.ANONYMOUS_USER_TRACKING)&&((null==t?void 0:t.anonymousId)?e.anonymousId=null==t?void 0:t.anonymousId:e.anonymousId=Math.floor(Math.random()*Math.pow(2,53)).toString(36)),e}function tn(t){return z(t)}function en(t){return!tn(t)}function nn(t){return void 0!==t.isExpired||!((void 0===(e=t).created||Wt()-Number(e.created)=100)yn(e);else{var c,l=u();if(i){if(l.lock)return void gn(t,e,n);if(c=_e(),s(l.session),(l=u()).lock!==c)return void gn(t,e,n)}var d=t.process(l.session);if(i&&(l=u()).lock!==c)gn(t,e,n);else{if(d&&(nn(d)?a(d):(rn(d),i?s(d):o(d))),i&&(!d||!nn(d))){if((l=u()).lock!==c)return void gn(t,e,n);o(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),yn(e)}}else hn.push(t)}function gn(t,e,n){A((function(){mn(t,e,n+1)}),10)}function yn(t){vn=void 0;var e=hn.shift();e&&mn(e,t)}var _n=Vt;function bn(t){switch(t.sessionPersistence){case Xe:return sn(t);case $e:return ln();case void 0:var e=sn(t);return!e&&t.allowFallbackToLocalStorage&&(e=ln()),e;default:i.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function wn(t,e,n){var r,i=new J,o=new J,a=new J,s=t.type===Xe?un(t.cookieOptions):{isLockEnabled:!1,persistSession:dn,retrieveSession:fn,expireSession:pn},u=s.expireSession,c=I((function(){mn({process:function(t){return nn(t)?Qe(t):void 0},after:p},s)}),_n);v();var l=O((function(){mn({process:function(t){if(!tn(t)){var r=p(t);return function(t){if(tn(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=_e(),t.created=String(Wt()))}(r),r}},after:function(t){en(t)&&!h()&&function(t){r=t,i.notify()}(t),r=t}},s)}),_n),d=l.throttled,f=l.cancel;function p(t){return nn(t)&&(t=Qe(t)),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r=Qe(r),o.notify())),t}function v(){mn({process:function(t){if(tn(t))return Qe(t)},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:d,expandSession:function(){mn({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){f(),u(r),p(Qe(r))},stop:function(){N(c)},updateSessionState:function(t){mn({process:function(e){return S({},e,t)},after:p},s)}}}function Sn(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=Ne(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t,e){var n=e.site,r=void 0===n?Ot:n,i=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===Ot)return Lt;if(i&&r===Ot)return"".concat(i,".").concat(Ot);if(r===Nt)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a=function(t,e,n,r,i){var o=t.clientToken,a=t.internalAnalyticsSubdomain,s=i.retry,u=i.encoding,c=["sdk_version:".concat("5.35.1"),"api:".concat(r)].concat(n);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(_e())];u&&l.push("dd-evp-encoding=".concat(u));"rum"===e&&l.push("batch_time=".concat(Kt()));a&&l.reverse();return l.join("&")}(t,e,n,i,o);return r(a)},urlPrefix:r(""),trackType:e}}function kn(t,e){var n=200-t.length-1;(e.length>n||function(t){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(e))&&i.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(s," ").concat(o,"/getting_started/tagging/#defining-tags"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function Cn(t){var e=t.site||Ot,n=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(kn("env",e)),n&&o.push(kn("service",n)),r&&o.push(kn("version",r)),i&&o.push(kn("datacenter",i)),o}(t),r=function(t,e){return{logsEndpointBuilder:Sn(t,"logs",e),rumEndpointBuilder:Sn(t,"rum",e),sessionReplayEndpointBuilder:Sn(t,"replay",e)}}(t,n),i=function(t,e){if(!t.replica)return;var n=S({},t,{site:Ot,clientToken:t.replica.clientToken}),r={logsEndpointBuilder:Sn(n,"logs",e),rumEndpointBuilder:Sn(n,"rum",e)};return S({applicationId:t.replica.applicationId},r)}(t,n);return S({replica:i,site:e},r)}var xn,Tn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},En={ALL:"all",SAMPLED:"sampled"};function An(t,e){return null==t||"string"==typeof t||(i.error("".concat(e," must be defined as a string")),!1)}function Rn(t,e){return!!(void 0===t||(n=t,zt(n)&&n>=0&&n<=100))||(i.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1);var n}function In(t){var e,n,r,a,c;if(t&&t.clientToken){if((!(l=t.site)||"string"!=typeof l||/(datadog|ddog|datad0g|dd0g)/.test(l)||(i.error("Site should be a valid Datadog site. ".concat(s," ").concat(o,"/getting_started/site/.")),0))&&Rn(t.sessionSampleRate,"Session")&&Rn(t.telemetrySampleRate,"Telemetry")&&Rn(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Rn(t.telemetryUsageSampleRate,"Telemetry Usage")&&An(t.version,"Version")&&An(t.env,"Env")&&An(t.service,"Service")){var l;if(void 0===t.trackingConsent||U($,t.trackingConsent))return S({beforeSend:t.beforeSend&&u(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:bn(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(a=t.telemetryUsageSampleRate)&&void 0!==a?a:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(c=t.trackingConsent)&&void 0!==c?c:$.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},Cn(t));i.error('Tracking Consent should be either "granted" or "not-granted"')}}else i.error("Client Token is not configured, we will not send any data.")}function Nn(t){var e=F(t);return"string"===e||"function"===e||t instanceof RegExp}function On(t,e,n){return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?w(e,t):t===e}catch(t){i.error(t)}return!1}))}function Mn(){return window.crypto||window.msCrypto}function Ln(){return Dn(63)}function Dn(t){return xn||(xn=At(bt.CONSISTENT_TRACE_SAMPLING)&&function(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(t){return!1}}()?Pn:Un),xn(t)}function Pn(t){var e=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===t&&(e>>=BigInt("1")),e}function Un(t){var e=Mn().getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString:function(t){void 0===t&&(t=10);var n=e[1],r=e[0],i="";do{var o=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(o/t),i=(o%t).toString(t)+i}while(n||r);return i}}}function zn(t){var e=t.toString(16);return Array(17-e.length).join("0")+e}function Bn(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Vn(t,e,n,r){if(void 0!==Mn()&&n.findTrackedSession()){var i=y(t.allowedTracingUrls,(function(t){return On([t.match],e.url,!0)}));if(i){var o=Dn(64);e.traceSampled=function(t,e){if(100===e)return!0;if(0===e)return!1;if("bigint"!=typeof t)return Pt(e);var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(o,t.traceSampleRate),(e.traceSampled||t.traceContextInjection===En.ALL)&&(e.traceId=o,e.spanId=Ln(),r(function(t,e,n,r){var i={};return r.forEach((function(r){switch(r){case"datadog":S(i,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":S(i,{traceparent:"00-0000000000000000".concat(zn(t),"-").concat(zn(e),"-0").concat(n?"1":"0")});break;case"b3":S(i,{b3:"".concat(zn(t),"-").concat(zn(e),"-").concat(n?"1":"0")});break;case"b3multi":S(i,{"X-B3-TraceId":zn(t),"X-B3-SpanId":zn(e),"X-B3-Sampled":n?"1":"0"})}})),i}(e.traceId,e.spanId,e.traceSampled,i.propagatorTypes)))}}}var Fn=["tracecontext","datadog"];function qn(t){var e,n,r;if(t.applicationId){if(Rn(t.sessionReplaySampleRate,"Session Replay")&&Rn(t.traceSampleRate,"Trace"))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var o=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls))return void i.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void i.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;Nn(t)?e.push({match:t,propagatorTypes:Fn}):"object"===F(n=t)&&Nn(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):i.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)})),e}(t);if(o){var a=In(t);if(a){var s=null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0;return S({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:s,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===s,traceSampleRate:null!==(n=t.traceSampleRate)&&void 0!==n?n:100,rulePsr:zt(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:o,excludedActivityUrls:null!==(r=t.excludedActivityUrls)&&void 0!==r?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:U(Tn,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Tn.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:U(En,t.traceContextInjection)?t.traceContextInjection:En.ALL,plugins:t.plugins||[]},a)}}}else i.error("Excluded Activity Urls should be an array")}else i.error("Application ID is not configured, no RUM data will be collected.")}function jn(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){Nn(t)?Fn.forEach((function(t){return e.add(t)})):"object"===F(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),g(e)}var Hn="https://d3uc069fcn7uxw.cloudfront.net/configuration";function Gn(t,e){!function(t,e){var n=new XMLHttpRequest;Z(t,n,"load",(function(){200===n.status?e(JSON.parse(n.responseText)):Wn()})),Z(t,n,"error",(function(){Wn()})),n.open("GET","".concat(Hn,"/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),n.send()}(t,(function(n){e(function(t,e){return S({},t,e)}(t,n))}))}function Wn(){i.error("Error fetching the remote configuration.")}function Kn(t,e,n,r,o){var a,s,u,c,l=t.ignoreInitIfSyntheticsWillInjectRum,d=t.startDeflateWorker,f=ie(),p=n.observable.subscribe(v);function v(){if(u&&c&&n.isGranted()){var t;if(p.unsubscribe(),c.trackViewsManually){if(!a)return;f.remove(a.callback),t=a.options}var e=o(c,s,t);f.drain(e)}}function h(t){var e=Ae();if(e&&(t=function(t){var e,n;return S({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=Te())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),u=t,function(t){de({type:ae,configuration:t})}(function(t){var e,n,r={session_sample_rate:(n=t).sessionSampleRate,telemetry_sample_rate:n.telemetrySampleRate,telemetry_configuration_sample_rate:n.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:n.telemetryUsageSampleRate,use_before_send:!!n.beforeSend,use_cross_site_session_cookie:n.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:n.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:n.useSecureSessionCookie,use_proxy:!!n.proxy,silent_multiple_init:n.silentMultipleInit,track_session_across_subdomains:n.trackSessionAcrossSubdomains,session_persistence:n.sessionPersistence,allow_fallback_to_local_storage:!!n.allowFallbackToLocalStorage,store_contexts_across_pages:!!n.storeContextsAcrossPages,allow_untrusted_events:!!n.allowUntrustedEvents,tracking_consent:n.trackingConsent};return S({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:jn(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:null===(e=t.plugins)||void 0===e?void 0:e.map((function(t){var e;return S({name:t.name},null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t))}))},r)}(t)),c)ye("DD_RUM",t);else{var r=qn(t);r&&(e||r.sessionStoreStrategyType?r.compressIntakeRequests&&!e&&d&&!(s=d(r,"Datadog RUM",M))||(c=r,ze().subscribe(M),n.tryToInit(r.trackingConsent),v()):i.warn("No storage available for session. We will not send any data."))}}var m=function(t){f.add((function(e){return e.addDurationVital(t)}))};return{init:function(t,e){t?(Et(t.enableExperimentalFeatures),u=t,l&&He()||(!function(t,e,n){if(t)for(var r=0,i=t;r0&&r[r.length-1].endTime=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=vr),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;nt[n])return!1;return!0}function Tr(t){var e=t.duration,n=t.startTime,r=t.responseEnd;return Gt(0===e&&n=0}function Rr(t){var e=xr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||xr(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function Ir(t,e,n){if(t<=e&&e<=n)return{duration:Gt($t(e,n)),start:Gt($t(t,e))}}function Nr(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function Or(t){return""===t.deliveryType?"other":t.deliveryType}function Mr(t){if(t.startTimen.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(p((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),p((function(t){return e(t)})))}()}(n.body,(function(){e($t(t.startClocks.timeStamp,Kt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e($t(t.startClocks.timeStamp,Kt()))}(r,(function(n){e.clearTracingIfNeeded(r),t.notify(8,{duration:n,method:r.method,requestIndex:r.requestIndex,responseType:r.responseType,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"fetch",url:r.url,response:r.response,init:r.init,input:r.input,isAborted:r.isAborted,handlingStack:r.handlingStack})}))}}))}(t,r)}function qr(){var t=Vr;return Vr+=1,t}function jr(t){return zt(t)&&t<0?void 0:t}function Hr(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?M:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,(function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}function Gr(t,e){var n=Wt(),r=!1,i=Q(t,window,["click","mousedown","keydown","touchstart","pointerdown"],(function(e){if(e.cancelable){var n={entryType:"first-input",processingStart:Jt(),processingEnd:Jt(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===e.type?function(t,e){Q(t,window,["pointerup","pointercancel"],(function(t){"pointerup"===t.type&&o(e)}),{once:!0})}(t,n):o(n)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o0&&n.notify(e)},a=!0,s=new PerformanceObserver(p((function(t){a?r=A((function(){return o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(m([zr.RESOURCE,zr.NAVIGATION,zr.LONG_TASK,zr.PAINT],e.type)){e.buffered&&(r=A((function(){return o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}return a=!1,function(t){!Br&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Br=Z(t,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(t),Kr(zr.FIRST_INPUT)||e.type!==zr.FIRST_INPUT||(i=Gr(t,(function(t){o([t])})).stop),function(){s.disconnect(),i&&i(),R(r)}}}))}function Kr(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(zr||(zr={}));var Jr=100;function Yr(t,e,n,r,i,o){var a=function(t,e,n,r){return new J((function(i){var o,a=[],s=0;return a.push(e.subscribe(u),n.subscribe(u),Wr(r,{type:zr.RESOURCE}).subscribe((function(t){t.some((function(t){return!Xr(r,t.name)}))&&u()})),t.subscribe(7,(function(t){Xr(r,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())})),t.subscribe(8,(function(t){Xr(r,t.url)||void 0===o||t.requestIndex0})}}))}(t,e,n,r);return function(t,e,n){var r,i=!1,o=A(p((function(){return c({hadActivity:!1})})),100),a=void 0!==n?A(p((function(){return c({hadActivity:!0,end:Kt()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;R(o),R(r);var n=Kt();e||(r=A(p((function(){return c({hadActivity:!0,end:n})})),100))})),u=function(){i=!0,R(o),R(r),R(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(a,i,o)}function Xr(t,e){return On(t.excludedActivityUrls,e)}function $r(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)}))}function Zr(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function Qr(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}var ti=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach((function(t){return e.map.set(t,1)}))}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function ei(t){return t.nodeType===Node.TEXT_NODE}function ni(t){return t.nodeType===Node.ELEMENT_NODE}function ri(t){return ni(t)&&Boolean(t.shadowRoot)}function ii(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ni(e.host)}function oi(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;ri(t)&&e(t.shadowRoot)}function ai(t){return ii(t)?t.host:t.parentNode}var si={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Tn.ALLOW,MASK:Tn.MASK,MASK_USER_INPUT:Tn.MASK_USER_INPUT},ui="data-dd-privacy",ci="hidden",li="***",di="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",fi={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function pi(t,e,n){if(n&&n.has(t))return n.get(t);var r=ai(t),i=r?pi(r,e,n):e,o=vi(hi(t),i);return n&&n.set(t,o),o}function vi(t,e){switch(e){case si.HIDDEN:case si.IGNORE:return e}switch(t){case si.ALLOW:case si.MASK:case si.MASK_USER_INPUT:case si.HIDDEN:case si.IGNORE:return t;default:return e}}function hi(t){if(ni(t)){if("BASE"===t.tagName)return si.ALLOW;if("INPUT"===t.tagName){var e=t;if("password"===e.type||"email"===e.type||"tel"===e.type)return si.MASK;if("hidden"===e.type)return si.MASK;var n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return si.MASK}return Zr(t,_i(si.HIDDEN))?si.HIDDEN:Zr(t,_i(si.MASK))?si.MASK:Zr(t,_i(si.MASK_USER_INPUT))?si.MASK_USER_INPUT:Zr(t,_i(si.ALLOW))?si.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?si.IGNORE:void 0}}function mi(t,e){switch(e){case si.MASK:case si.HIDDEN:case si.IGNORE:return!0;case si.MASK_USER_INPUT:return ei(t)?gi(t.parentNode):gi(t);default:return!1}}function gi(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!fi[e.tagName]}function yi(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o=li;else if(n===si.HIDDEN)o=li;else if(mi(t,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?li:o.replace(/\S/g,"x");return o}}function _i(t){return"[".concat(ui,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var bi="data-dd-action-name";function wi(t,e){var n;if(function(){void 0===ki&&(ki="closest"in HTMLElement.prototype);return ki}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=Qr(r)}if(n)return Ri(Ai(n.getAttribute(e).trim()))}var Si,ki,Ci=[function(t,e,n){if(function(){void 0===Si&&(Si="labels"in HTMLInputElement.prototype);return Si}()){if("labels"in t&&t.labels&&t.labels.length>0)return Ni(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&y(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return r&&Ni(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return{name:e.value,nameSource:"text_content"}}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Ni(t,e,n)},function(t){return Ii(t,"aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return Oi(t,e,n)})).join(" "),nameSource:"text_content"}},function(t){return Ii(t,"alt")},function(t){return Ii(t,"name")},function(t){return Ii(t,"title")},function(t){return Ii(t,"placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Ni(t.options[0],e)}],xi=[function(t,e,n){return Ni(t,e,n)}],Ti=10;function Ei(t,e,n,r){for(var i=t,o=0;o<=Ti&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0,s=n;a100?"".concat(Se(t,100)," [...]"):t}function Ii(t,e){return{name:t.getAttribute(e)||"",nameSource:"standard_attribute"}}function Ni(t,e,n){return{name:Oi(t,e,n)||"",nameSource:"text_content"}}function Oi(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,i=function(e){for(var n=t.querySelectorAll(e),i=0;i0&&(r=r.replace(a,""))}}};return 0===Ge()&&i("script, style"),i("[".concat(bi,"]")),e&&i("[".concat(e,"]")),n&&i("".concat(_i(si.HIDDEN),", ").concat(_i(si.MASK))),r}return t.textContent}}var Mi,Li=[bi,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Di=[Bi,function(t){if(t.id&&!zi(t.id))return"#".concat($r(t.id))}],Pi=[Bi,function(t){if("BODY"===t.tagName)return;for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n").concat(e):t}var Gi=Vt;function Wi(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),R(n),n=A(s,Gi)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){R(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=Gi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}function Ki(){var t=window.getSelection();return!t||t.isCollapsed}function Ji(t){return t.target instanceof Element&&!1!==t.isPrimary}function Yi(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e1e4&&Qi.delete(e)}))}function eo(t,e,n,r){var i,o=hr({expireDelay:3e5}),a=new J;t.subscribe(10,(function(){o.reset()})),t.subscribe(5,c);var s=function(t,e){var n,r,i=e.onPointerDown,o=e.onPointerUp,a={selection:!1,input:!1,scroll:!1},s=[Z(t,window,"pointerdown",(function(t){Ji(t)&&(n=Ki(),a={selection:!1,input:!1,scroll:!1},r=i(t))}),{capture:!0}),Z(t,window,"selectionchange",(function(){n&&Ki()||(a.selection=!0)}),{capture:!0}),Z(t,window,"scroll",(function(){a.scroll=!0}),{capture:!0,passive:!0}),Z(t,window,"pointerup",(function(t){if(Ji(t)&&r){var e=a;o(r,t,(function(){return e})),r=void 0}}),{capture:!0}),Z(t,window,"input",(function(){a.input=!0}),{capture:!0})];return{stop:function(){s.forEach((function(t){return t.stop()}))}}}(r,{onPointerDown:function(i){return function(t,e,n,r,i){var o=t.enablePrivacyForActionName?pi(r.target,t.defaultPrivacyLevel):si.ALLOW;if(o===si.HIDDEN)return;var a=function(t,e,n){var r=t.target.getBoundingClientRect(),i=Ui(t.target,n.actionNameAttribute);i&&to(t.timeStamp,i);var o=function(t,e,n){var r=e.enablePrivacyForActionName,i=e.actionNameAttribute,o=wi(t,bi)||i&&wi(t,i);return o?{name:o,nameSource:"custom_attribute"}:n===si.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:Ei(t,i,Ci,r)||Ei(t,i,xi,r)||{name:"",nameSource:"blank"}}(t.target,n,e);return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:i},position:{x:Math.round(t.clientX-r.left),y:Math.round(t.clientY-r.top)},name:o.name,nameSource:o.nameSource}}(r,o,t),s=!1;return Yr(e,n,i,t,(function(t){s=t.hadActivity}),Jr),{clickActionBase:a,hadActivityOnPointerDown:function(){return s}}}(r,t,e,i,n)},onPointerUp:function(i,s,c){var l=i.clickActionBase,d=i.hadActivityOnPointerDown;!function(t,e,n,r,i,o,a,s,u,c,l){var d,f=no(e,i,c,s,u);a(f);var p=null===(d=null==s?void 0:s.target)||void 0===d?void 0:d.selector;p&&to(u.timeStamp,p);var v=Yr(e,n,r,t,(function(t){t.hadActivity&&t.end0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return no(t,e,n,r,i)},validate:function(e){if(p(),1===l){var n=c.eventCounts,u=n.resourceCount,f=n.errorCount,v=n.longTaskCount,h=S({type:"click",duration:o&&$t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:f,longTaskCount:v},events:null!=e?e:[i],event:i},r);t.notify(0,h),l=2}},discard:function(){p(),l=2}}}function ro(t,e){var n=io(t)?{action:{id:t.id,loading_time:jr(Gt(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position,name_source:At(bt.ACTION_NAME_MASKING)?t.nameSource:void 0}}}:void 0,r=io(t)?void 0:t.context,i=H({action:{id:_e(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),o=io(t)?{events:t.events}:{};return!io(t)&&t.handlingStack&&(o.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:o}}function io(t){return"custom"!==t.type}function oo(t){var e,n=function(e,n){var r=St({stackTrace:e,originalError:n,startClocks:Yt(),nonErrorPrefix:"Uncaught",source:tr,handling:"unhandled"});t.notify(r)},r=(e=n,Re(window,"onerror",(function(t){var n,r=t.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];n=Ct(u)?ot(u):ht(i,o,a,s),e(n,null!=u?u:i)}))).stop,i=function(t){return Re(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=ot(n);t(r,n)}))}(n).stop;return{stop:function(){r(),i()}}}var ao={};function so(n){var r=n.map((function(n){return ao[n]||(ao[n]=function(n){return new J((function(r){var i=e[n];return e[n]=function(){for(var e=[],o=0;o=r-o&&_o(n)<=Zt(i,o);var n,r,i,o}));return 1===n.length?(go.add(n[0]),n[0].toJSON()):void 0}}}function _o(t){return Zt(t.startTime,t.duration)}function bo(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:M}):Z(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function wo(t){var e=function(t){var e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return So(e&&e.content,n&&n.content)}(t)||function(t){var e=function(t){for(var e=0;e=0;e-=1){var n,r=t.body.childNodes[e];if(n=ko(r))return n;if(!ei(r))break}}(t);if(!e)return;return So(we(e,"trace-id"),we(e,"trace-time"))}(t);if(e&&!(e.traceTime<=Wt()-12e4))return e.traceId}function So(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function ko(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function Co(){if(Kr(zr.NAVIGATION)){var t=performance.getEntriesByType(zr.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(zt(e[n])){var r=n,i=e[r];t[r]=0===i?0:Qt(i)}return t}(),n=S({entryType:zr.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return S({},n,{toJSON:void 0})}},e);return n}function xo(t,e){bo(t,"interactive",(function(){var t=S(Co().toJSON(),{entryType:zr.RESOURCE,initiatorType:Sr,traceId:wo(document),toJSON:function(){return S({},t,{toJSON:void 0})}});e(t)}))}function To(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){ho(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=xo),t.subscribe(8,(function(t){a((function(){return function(t,e,n){var r=yo(t),i=r?jt(r.startTime):t.startClocks,o=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(t,e);if(!e.trackResources&&!o)return;var a="xhr"===t.type?"xhr":"fetch",s=r?Ao(r):void 0,u=function(t,e,n){return t.wasInPageStateDuringPeriod("frozen",e.relative,n)?void 0:Gt(n)}(n,i,t.duration),c=H({date:i.timeStamp,resource:{id:_e(),type:a,duration:u,method:t.method,status_code:t.status,protocol:r&&Nr(r),url:Pr(t.url)?Ur(t.url):t.url,delivery_type:r&&Or(r)},type:"resource",_dd:{discarded:!e.trackResources}},o,s);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,e,n)}))}));var o=Wr(e,{type:zr.RESOURCE,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||a((function(){return Eo(t,e)}))},r=0,i=t;r=0&&t.responseStart<=Jt()?t.responseStart:void 0}}(t))}))}function Io(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Q(t,e,["pagehide","visibilitychange"],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}function No(t,e,n){var r={},i=Ro(t,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})).stop,o=Io(t),a=function(t,e,n){return{stop:Wr(t,{type:zr.PAINT,buffered:!0}).subscribe((function(t){var r=y(t,(function(t){return"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===zr.LARGEST_CONTENTFUL_PAINT&&t.startTimea}));if(o){var s=void 0;o.element&&(s=Ui(o.element,t.actionNameAttribute)),r({value:o.startTime,targetSelector:s}),a=o.size}}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})).stop,u=function(t,e,n){var r=Wr(t,{type:zr.FIRST_INPUT,buffered:!0}).subscribe((function(r){var i=y(r,(function(t){return t.startTime=0?o:0,time:i.startTime,targetSelector:a})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})).stop;return{stop:function(){i(),a(),s(),u(),o.stop()},initialViewMetrics:r}}function Oo(t,e,n){if(!Uo())return{stop:M};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=Po||i.startTime-t>=Do?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=Wr(t,{type:zr.LAYOUT_SHIFT,buffered:!0}).subscribe((function(s){for(var u=0,c=s;uo){o=f;p=null==r?void 0:r.deref();n({value:Ut(o,4),targetSelector:p&&Ui(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Mo(t){var e;if(t)return null===(e=y(t,(function(t){return!!t.node&&ni(t.node)})))||void 0===e?void 0:e.node}var Lo,Do=5e3,Po=Vt;function Uo(){return Kr(zr.LAYOUT_SHIFT)&&"WeakRef"in window}var zo=0,Bo=1/0,Vo=0;var Fo,qo=function(){return Lo?zo:window.performance.interactionCount||0};function jo(t,e,n){if(!(Kr(zr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:M,stop:M};var r,i,o=function(t){"interactionCount"in performance||Lo||(Lo=new window.PerformanceObserver(p((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(Bo=Math.min(Bo,e.interactionId),Vo=Math.max(Vo,e.interactionId),zo=(Vo-Bo)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:qo(),n={stopped:!1};function r(){return qo()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;function d(n){for(var o=0,a=n;o=e&&s.startTime<=u&&c.process(s)}var d,f,p=c.estimateP98Interaction();p&&p.duration!==l&&(l=p.duration,i=$t(e,p.startTime),d=p.startTime,f=Qi.get(d),Qi.delete(d),!(r=f)&&p.target&&ni(p.target)&&(r=Ui(p.target,t.actionNameAttribute)))}var f=Wr(t,{type:zr.FIRST_INPUT,buffered:!0}).subscribe(d),v=Wr(t,{type:zr.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:function(){v.unsubscribe(),f.unsubscribe()}}}function Ho(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Go(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function Wo(t){return Fo||(Fo=function(t){return new J((function(e){var n=O((function(){e.notify(Ko())}),200).throttled;return Z(t,window,"resize",n,{capture:!0,passive:!0}).stop}))}(t)),Fo}function Ko(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Jo=Vt;function Yo(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=Jo);return new J((function(n){function r(){var t,e,r,i;n.notify((t=Go(),e=Ko().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(e+t),{scrollHeight:r,scrollDepth:i,scrollTop:t}))}if(window.ResizeObserver){var i=O(r,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(p(i.throttled));o&&a.observe(o);var s=Z(t,window,"scroll",i.throttled,{passive:!0});return function(){i.cancel(),a.disconnect(),s.stop()}}}))}(t));var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=Jt();a=$t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Xo(t,e,n,r,i,o,a){var s={},u=function(t,e,n,r,i,o,a){var s="initial_load"===i,u=!0,c=[],l=Io(r);function d(){if(!u&&!s&&c.length>0){var t=Math.max.apply(Math,c);t=o?i.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(o,"KB. ").concat(s," ").concat(a,"/#technical-limitations")):(function(t){return void 0!==t&&void 0!==u[t]}(n)&&function(t){var n=u[t];delete u[t];var i=e.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(i)}(n),function(t,n,i){r.notifyBeforeAddMessage(n),void 0!==i?(u[i]=t,r.notifyAfterAddMessage()):e.write(e.isEmpty?t:"\n".concat(t),(function(t){r.notifyAfterAddMessage(t-n)}))}(c,l,n))}return{flushController:r,add:l,upsert:l,stop:c.unsubscribe}}function ca(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}var la=3145728,da=Vt;function fa(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?va(t,e,n,{onSuccess:function(){return ha(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),pa(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function pa(t,e,n,r){2===t.transportStatus&&A((function(){va(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=da,ha(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),pa(t,e,n,r)}})}),t.currentBackoffTime)}function va(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(e=t.status,e>=500));var e}(n)?(e.transportStatus=0,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function ha(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:$n,startClocks:Yt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=ma();o.size()>0;)fa(o.dequeue(),e,n,r,i)}function ma(){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>=la}}}function ga(t,e,n){var r={transportStatus:0,currentBackoffTime:da,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:ma(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&n.bytesCount=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=A((function(){f("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(d-=1)&&p()}}}function wa(t,e,n,r,i,o,a){var s=t.replica,u=function(t,e,n,r,i,o,a){void 0===a&&(a=ua);var s=c(t,e),u=n&&c(t,n);function c(t,e){var n=e.endpoint,s=e.encoder;return a({encoder:s,request:ga(n,t.batchBytesLimit,r),flushController:ba({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return H(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(13,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,function(t){return t.site===It}(t))})),u}var Sa=Ke;function ka(t,e){var n=P(e);return new J((function(r){var i=function(t,e){var n=Re(Ca("pushState"),"pushState",(function(t){(0,t.onPostCall)(e)})).stop,r=Re(Ca("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(e)})).stop,i=Z(t,window,"popstate",e).stop;return{stop:function(){n(),r(),i()}}}(t,a).stop,o=function(t,e){return Z(t,window,"hashchange",e)}(t,a).stop;function a(){if(n.href!==e.href){var t=P(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return function(){i(),o()}}))}function Ca(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var xa=Ke;var Ta,Ea,Aa;function Ra(){0!==Ta.batchCount&&(pe("Customer data measures",Ta),Oa())}function Ia(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Na(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function Oa(){Ta={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function Ma(){Aa=!1,Ea={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var La=Ke;function Da(t,e){void 0===e&&(e=500);var n,r=hr({expireDelay:La,maxEntries:4e3});o(Pa(),Jt());var i=Q(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],(function(t){o(function(t){if("freeze"===t.type)return"frozen";if("pagehide"===t.type)return t.persisted?"frozen":"terminated";return Pa()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=Jt()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=$t(t,u.startTime);o.push({state:u.state,start:Gt(c)})}return o}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some((function(e){return e.state===t}))},addPageState:o,stop:function(){i(),r.stop()}};return a}function Pa(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Ua(t,e){var n=window.cookieStore?function(t){return function(e,n){return Z(t,window.cookieStore,"change",(function(t){var r=y(t.changed,(function(t){return t.name===e}))||y(t.deleted,(function(t){return t.name===e}));r&&n(r.value)})).stop}}(t):Ba;return new J((function(t){return n(e,(function(e){return t.notify(e)}))}))}var za=Vt;function Ba(t,e){var n=we(document.cookie,t),r=I((function(){var r=we(document.cookie,t);r!==n&&e(r)}),za);return function(){N(r)}}var Va="datadog-ci-visibility-test-execution-id";function Fa(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,l=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case Ot:case Mt:return"app";case It:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),d="/rum/replay/sessions/".concat(o);return"".concat(l).concat(d,"?").concat(a.join("&"))}var qa;function ja(t){return Ha(t).segments_count}function Ha(t){var e;return qa||(qa=new Map),qa.has(t)?e=qa.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},qa.set(t,e),qa.size>10&&function(){if(!qa)return;if(qa.keys){var t=qa.keys().next().value;t&&qa.delete(t)}else{var e=!0;qa.forEach((function(t,n){e&&(qa.delete(n),e=!1)}))}}()),e}var Ga=new WeakMap;function Wa(t){return Ga.has(t)}function Ka(t){return Ga.get(t)}function Ja(t,e){var n=t.tagName,r=t.value;if(mi(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return li}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ya=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Xa=/^[A-Za-z]+:|^\/\//,$a=/^data:.*,/i;function Za(t,e){return t.replace(Ya,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Xa.test(s)||$a.test(s))return t;var u=n||i||"";return"url(".concat(u).concat(function(t,e){try{return Oe(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}var Qa=/[^a-z1-6-_]/;function ts(t){var e=t.toLowerCase().trim();return Qa.test(e)?"div":e}function es(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var ns=2,rs=3,is=4,os=6,as=7,ss=8,us=9,cs=0,ls=1,ds=2,fs=3,ps=4,vs=11,hs=0,ms=1,gs=2,ys=3,_s=4,bs=5,ws=6,Ss=7,ks=8,Cs=1,xs=2,Ts=3,Es=4,As=5,Rs=6,Is=7,Ns=9,Os=0,Ms=1;function Ls(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Ds(t,e,n,r){if(e===si.HIDDEN)return null;var i=t.getAttribute(n);if(e===si.MASK&&n!==ui&&!Li.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return li}if("IMG"===o&&("src"===n||"srcset"===n)){var a=t;if(a.naturalWidth>0)return es(a.naturalWidth,a.naturalHeight);var s=t.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?es(u,c):di}if("SOURCE"===o&&("src"===n||"srcset"===n))return di;if("A"===o&&"href"===n)return li;if(i&&w(n,"data-"))return li;if("IFRAME"===o&&"srcdoc"===n)return li}return i&&"string"==typeof i&&Pr(i)?Ur(i):i}function Ps(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch(t){}return e?Za(Array.from(e,2===Ge()?Us:zs).join(""),t.href):null}function Us(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return zs(t)}function zs(t){return function(t){return"styleSheet"in t}(t)&&Ps(t.styleSheet)||t.cssText}function Bs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:cs,childNodes:Fs(t,e),adoptedStyleSheets:Ls(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=ii(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:vs,childNodes:Fs(t,e),isShadowRoot:n,adoptedStyleSheets:n?Ls(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:ls,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=ts(t.tagName),i=(a=t,"svg"===a.tagName||a instanceof SVGElement||void 0),o=vi(hi(t),e.parentNodePrivacyLevel);var a;if(o===si.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,c=s.height;return{type:ds,tagName:r,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(c,"px")},n[ui]=ci,n),childNodes:[],isSVG:i}}if(o===si.IGNORE)return;var l=function(t,e,n){var r;if(e===si.HIDDEN)return{};for(var i={},o=ts(t.tagName),a=t.ownerDocument,s=0;s0||ri(t)}(t)&&"style"!==r){d=Fs(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:S({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))}return{type:ds,tagName:r,attributes:l,childNodes:d,isSVG:i}}(t,e);case t.TEXT_NODE:return function(t,e){var n=yi(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:fs,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:ps,textContent:""}}var n}(t,e);if(!n)return null;var r=Ka(t)||Vs++,i=n;return i.id=r,function(t,e){Ga.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var Vs=1;function Fs(t,e){var n=[];return oi(t,(function(t){var r=Bs(t,e);r&&n.push(r)})),n}function qs(t,e,n){return Bs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function js(t){return Boolean(t.changedTouches)}function Hs(t){return!0===t.composed&&ri(t.target)?t.composedPath()[0]:t.target}var Gs=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},Ws=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function Ks(t,e){return{data:S({source:t},e),type:rs,timestamp:Kt()}}var Js;function Ys(t,e){var n=O((function(t){var n=Hs(t);if(Wa(n)){var r=Xs(t);if(!r)return;var i={id:Ka(n),timeOffset:0,x:r.x,y:r.y};e(Ks(js(t)?ws:ms,{positions:[i]}))}}),50,{trailing:!1}),r=n.throttled,i=n.cancel,o=Q(t,document,["mousemove","touchmove"],r,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function Xs(t){var e=js(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Gs(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&pe("mouse/touch event without x/y")}var $s=((Js={}).pointerup=0,Js.mousedown=Cs,Js.click=xs,Js.contextmenu=Ts,Js.dblclick=Es,Js.focus=As,Js.blur=Rs,Js.touchstart=Is,Js.touchend=Ns,Js);function Zs(t,e,n){return Q(t,document,Object.keys($s),(function(r){var i=Hs(r);if(pi(i,t.defaultPrivacyLevel)!==si.HIDDEN&&Wa(i)){var o,a=Ka(i),s=$s[r.type];if(s!==Rs&&s!==As){var u=Xs(r);if(!u)return;o={id:a,type:s,x:u.x,y:u.y}}else o={id:a,type:s};var c=S({id:n.getIdForEvent(r)},Ks(gs,o));e(c)}}),{capture:!0,passive:!0})}function Qs(t,e,n,r){void 0===r&&(r=document);var i=O((function(r){var i=Hs(r);if(i&&pi(i,t.defaultPrivacyLevel)!==si.HIDDEN&&Wa(i)){var o=Ka(i),a=i===document?{scrollTop:Go(),scrollLeft:Ho()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),e(Ks(ys,{id:o,x:a.scrollLeft,y:a.scrollTop}))}}),100),o=i.throttled,a=i.cancel,s=Z(t,r,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function tu(t,e){var n=Wo(t).subscribe((function(t){e(Ks(_s,t))}));return{stop:function(){n.unsubscribe()}}}function eu(t,e){var n=window.visualViewport;if(!n)return{stop:M};var r=O((function(){e({data:Ws(n),type:ss,timestamp:Kt()})}),200,{trailing:!1}),i=r.throttled,o=r.cancel,a=Q(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}function nu(t,e){return Q(t,document,["play","pause"],(function(n){var r=Hs(n);r&&pi(r,t.defaultPrivacyLevel)!==si.HIDDEN&&Wa(r)&&e(Ks(Ss,{id:Ka(r),type:"play"===n.type?Os:Ms}))}),{capture:!0,passive:!0})}function ru(t){function e(t,e){t&&Wa(t.ownerNode)&&e(Ka(t.ownerNode))}var n=[Re(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t(Ks(ks,{id:e,adds:[{rule:o,index:a}]}))}))})),Re(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t(Ks(ks,{id:e,removes:[{index:i}]}))}))}))];function r(r){n.push(Re(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=iu(r);n&&(n.push(a||0),t(Ks(ks,{id:e,adds:[{rule:o,index:n}]})))}))})),Re(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=iu(r);n&&(n.push(i),t(Ks(ks,{id:e,removes:[{index:n}]})))}))})))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach((function(t){return t.stop()}))}}}function iu(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function ou(t,e){return Q(t,window,["focus","blur"],(function(){e({data:{has_focus:document.hasFocus()},type:os,timestamp:Kt()})}))}function au(t,e,n){var r=t.subscribe(12,(function(t){var r,i;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(i=null===(r=t.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===i?void 0:i.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&e({timestamp:t.rawRumEvent.date,type:us,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return n.getIdForEvent(t)}))}})}));return{stop:function(){r.unsubscribe()}}}function su(t,e){var n=t.subscribe(5,(function(){e({timestamp:Kt(),type:as})}));return{stop:function(){n.unsubscribe()}}}function uu(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=Q(t,n,a?["change"]:["input","change"],(function(t){var e=Hs(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}).stop;if(a)r=M;else{var u=[Ie(HTMLInputElement.prototype,"value",c),Ie(HTMLInputElement.prototype,"checked",c),Ie(HTMLSelectElement.prototype,"value",c),Ie(HTMLTextAreaElement.prototype,"value",c),Ie(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return{stop:function(){r(),s()}};function c(t){var e=pi(t,i);if(e!==si.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(mi(t,e))return;n={isChecked:t.checked}}else{var o=Ja(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat($r(u),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(t,n){if(Wa(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(Ks(bs,S({id:Ka(t)},n))))}}}function cu(t,e,n,r){var i=Xn();if(!i)return{stop:M,flush:M};var o=function(t){var e=M,n=[];function r(){e(),t(n),n=[]}var i=O(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=ho(o,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){lu(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Wa(e)&&!ii(e))return!1;e=ai(e)}return!0}(t.target)&&pi(t.target,n.defaultPrivacyLevel,i)!==si.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach((function(t){i.add(t)})),t.removedNodes.forEach((function(e){i.has(e)||o.set(e,t.target),i.delete(e)}))},s=0,u=t;spu&&s("segment_bytes_limit")}))}},stop:function(){s("stop"),o(),a()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)}),i,o)}function hu(t,e,n){var r,i=0,o=[],a=0,s=[],u=Z(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),pe("Worker responses received out of order."))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return S(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function mu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;_>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&is){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var gu={status:0};function yu(t,e,n,r){switch(void 0===r&&(r=mu),0===gu.status&&function(t,e,n){void 0===n&&(n=mu);try{var r=n(t),o=Z(t,r,"error",(function(n){bu(t,e,n)})).stop,a=Z(t,r,"message",(function(n){var r,i=n.data;"errored"===i.type?bu(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===gu.status&&(gu={status:3,worker:gu.worker,stop:gu.stop,version:r}))})).stop;r.postMessage({action:"init"}),A((function(){return function(t){1===gu.status&&(i.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),gu.initializationFailureCallbacks.forEach((function(t){return t()})),gu={status:2})}(e)}),3e4),gu={status:1,worker:r,stop:function(){o(),a()},initializationFailureCallbacks:[]}}catch(n){bu(t,e,n)}}(t,e,r),gu.status){case 1:return gu.initializationFailureCallbacks.push(n),gu.worker;case 3:return gu.worker}}function _u(){return gu.status}function bu(t,e,n,r){if(1===gu.status||0===gu.status){if(i.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(m(s=n.message,"Content Security Policy")||m(s,"requires 'TrustedScriptURL'"))){var a=void 0;a=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",i.error("".concat(a," See documentation at ").concat(o,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else ve(n);1===gu.status&&gu.initializationFailureCallbacks.forEach((function(t){return t()})),gu={status:2}}else ve(n,{worker_version:3===gu.status&&gu.version,stream_id:r});var s}function wu(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Su(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){if(!wu())return"browser-not-supported";if(!t)return"rum-not-tracked";if(0===t.sessionReplay)return"incorrect-session-plan";if(!e)return"replay-not-started"}(i,r);return Fa(t,{viewContext:n.findView(),errorType:o,session:i})}function ku(t,e,n,r,i,o){var a,s=0;function u(u){var c=n.findTrackedSession();!function(t,e){return!t||0===t.sessionReplay&&(!e||!e.force)}(c,u)?function(t){return 2===t||3===t}(s)||(s=2,bo(t,"interactive",(function(){if(2===s){var u=o();u?(a=i(e,t,n,r,u).stop,s=3):s=0}})),function(t,e){return e&&e.force&&0===t.sessionReplay}(c,u)&&n.setForcedReplay()):s=1}function c(){0!==s&&3===s&&(null==a||a()),s=0}return e.subscribe(9,(function(){2!==s&&3!==s||(c(),s=1)})),e.subscribe(11,(function(t){t.reason===Jn.UNLOADING&&c()})),e.subscribe(10,(function(){1===s&&u()})),{start:u,stop:c,getSessionReplayLink:function(){return Su(t,n,r,0!==s)},isRecording:function(){return 3===s}}}var Cu,xu,Tu,Eu,Au=function(t,e){if(Ae()&&!Ee("records")||!wu())return{start:M,stop:M,getReplayStats:function(){},onRumStart:M,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n,r=(n=0,{strategy:{start:function(){n=1},stop:function(){n=2},isRecording:function(){return!1},getSessionReplayLink:M},shouldStartImmediately:function(t){return 1===n||0===n&&!t.startSessionReplayRecordingManually}}),i=r.strategy,o=r.shouldStartImmediately;return{start:function(t){return i.start(t)},stop:function(){return i.stop()},getSessionReplayLink:function(){return i.getSessionReplayLink()},onRumStart:function(n,r,a,s,u){var c;i=ku(r,n,a,s,t,(function(){c||(null!=u||(u=yu(r,"Datadog Session Replay",(function(){i.stop()}),e)),u&&(c=hu(r,u,1)));return c})),o(r)&&i.start()},isRecording:function(){return 3===_u()&&i.isRecording()},getReplayStats:function(t){return 3===_u()?function(t){return null==qa?void 0:qa.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s=[],u=o||ga(e.sessionReplayEndpointBuilder,pu,(function(e){t.notify(14,{error:e}),pe("Error reported to customer",{"error.message":e.message})}));if(Ae())a=function(t){var e=Te();return{addRecord:function(n){var r=t.findView();e.send("record",n,r.id)}}}(r).addRecord;else{var c=vu(t,e,n,r,u,i);a=c.addRecord,s.push(c.stop)}var l=du({emit:a,configuration:e,lifeCycle:t,viewHistory:r}).stop;return s.push(l),{stop:function(){s.forEach((function(t){return t()}))}}})),Ru=function(t,e,n){void 0===n&&(n={});var r,o,a=B(0),s=X(a.getOrCreateTracker(2)),u=X(a.getOrCreateTracker(1)),c={tryToInit:function(t){r||(r=t)},update:function(t){r=t,o.notify()},isGranted:function(){return r===$.GRANTED},observable:o=new J},l={vitalsByName:new Map,vitalsByReference:new WeakMap};function d(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(s,u,e)}var h,m,g=Kn(n,d,c,l,(function(r,i,o){r.storeContextsAcrossPages&&(nt(r,s,"rum",2),nt(r,u,"rum",1)),a.setCompressionStatus(i?1:2);var f=t(r,e,a,d,o,i&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(r,i,t)}:rt,c,l);return e.onRumStart(f.lifeCycle,r,f.session,f.viewHistory,i),g=function(t,e){return S({init:function(t){ye("DD_RUM",t)},initConfiguration:t.initConfiguration},e)}(g,f),f})),y=p((function(t){var e="object"==typeof t?t:{name:t};e.context&&a.getOrCreateTracker(3).updateCustomerData(e.context),g.startView(e),he({feature:"start-view"})})),_=(h={init:p((function(t){g.init(t,_)})),setTrackingConsent:p((function(t){c.update(t),he({feature:"set-tracking-consent",tracking_consent:t})})),setViewName:p((function(t){g.setViewName(t)})),setViewContext:p((function(t){g.setViewContext(t)})),setViewContextProperty:p((function(t,e){g.setViewContextProperty(t,e)})),setGlobalContext:p((function(t){s.setContext(t),he({feature:"set-global-context"})})),getGlobalContext:p((function(){return s.getContext()})),setGlobalContextProperty:p((function(t,e){s.setContextProperty(t,e),he({feature:"set-global-context"})})),removeGlobalContextProperty:p((function(t){return s.removeContextProperty(t)})),clearGlobalContext:p((function(){return s.clearContext()})),getInternalContext:p((function(t){return g.getInternalContext(t)})),getInitConfiguration:p((function(){return j(g.initConfiguration)})),addAction:function(t,e){var n=gt();v((function(){g.addAction({name:G(t),context:G(e),startClocks:Yt(),type:"custom",handlingStack:n}),he({feature:"add-action"})}))},addError:function(t,e){var n=gt();v((function(){g.addError({error:t,handlingStack:n,context:G(e),startClocks:Yt()}),he({feature:"add-error"})}))},addTiming:p((function(t,e){g.addTiming(G(t),e)})),setUser:p((function(t){(function(t){var e="object"===F(t);return e||i.error("Unsupported user:",t),e})(t)&&u.setContext(ge(t)),he({feature:"set-user"})})),getUser:p((function(){return u.getContext()})),setUserProperty:p((function(t,e){var n,r=ge((n={},n[t]=e,n))[t];u.setContextProperty(t,r),he({feature:"set-user"})})),removeUserProperty:p((function(t){return u.removeContextProperty(t)})),clearUser:p((function(){return u.clearContext()})),startView:y,stopSession:p((function(){g.stopSession(),he({feature:"stop-session"})})),addFeatureFlagEvaluation:p((function(t,e){g.addFeatureFlagEvaluation(G(t),G(e)),he({feature:"add-feature-flag-evaluation"})})),getSessionReplayLink:p((function(){return e.getSessionReplayLink()})),startSessionReplayRecording:p((function(t){e.start(t),he({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:p((function(){return e.stop()})),addDurationVital:p((function(t,e){var n;he({feature:"add-duration-vital"}),g.addDurationVital({name:G(t),type:"duration",startClocks:(n=e.startTime,{relative:Qt(n),timeStamp:n}),duration:e.duration,context:G(e&&e.context),description:G(e&&e.description)})})),startDurationVital:p((function(t,e){return he({feature:"start-duration-vital"}),g.startDurationVital(G(t),{context:G(e&&e.context),description:G(e&&e.description)})})),stopDurationVital:p((function(t,e){he({feature:"stop-duration-vital"}),g.stopDurationVital("string"==typeof t?G(t):t,{context:G(e&&e.context),description:G(e&&e.description)})}))},m=S({version:"5.35.1",onReady:function(t){t()}},h),Object.defineProperty(m,"_setDebug",{get:function(){return f},enumerable:!1}),m);return _}((function(t,e,n,r,i,o,a,s){var u=[],c=new pr;c.subscribe(13,(function(t){return ee("rum",t)}));var l=function(t){var e=fe("browser-rum-sdk",t);if(Ae()){var n=Te();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(t);l.setContextProvider((function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=g.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=N.findView())||void 0===n?void 0:n.id},action:{id:L.findActionId()}}}));var d=function(t){c.notify(14,{error:t}),pe("Error reported to customer",{"error.message":t.message})},f=function(t,e){var n=hr({expireDelay:xa});return t.subscribe(1,(function(t){var r=t.startClocks;n.add({},r.relative),e.resetCustomerData()})),t.subscribe(6,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),{findFeatureFlagEvaluations:function(t){return n.find(t)},addFeatureFlagEvaluation:function(t,r){var i=n.find();i&&(i[t]=r,e.updateCustomerData(i))},stop:function(){return e.stop()}}}(c,n.getOrCreateTracker(0)),v=function(t){return new J((function(e){var n=Q(t,window,["visibilitychange","freeze"],(function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:Jn.HIDDEN}):"freeze"===t.type&&e.notify({reason:Jn.FROZEN})}),{capture:!0}).stop,r=Z(t,window,"beforeunload",(function(){e.notify({reason:Jn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),h=v.subscribe((function(t){c.notify(11,t)}));u.push((function(){return h.unsubscribe()}));var g=Ae()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Ee("records")?1:0};return{findTrackedSession:function(){return t},expire:M,expireObservable:new J,setForcedReplay:M}}():aa(t,c,a);if(Ae())!function(t){var e=Te();t.subscribe(13,(function(t){e.send("rum",t)}))}(c);else{var y=wa(t,c,l.observable,d,v,g.expireObservable,o);u.push((function(){return y.stop()})),function(t,e,n,r,i){e.enabled&&Pt(t.customerDataTelemetrySampleRate)&&(Oa(),Ma(),n.subscribe(13,(function(t){Aa=!0,Ia(Ea.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),Ia(Ea.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),Ia(Ea.featureFlagBytes,m(["view","error"],t.type)?r.getOrCreateTracker(0).getBytesCount():0)})),i.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;Aa&&(Ta.batchCount+=1,Ia(Ta.batchBytesCount,e),Ia(Ta.batchMessagesCount,n),Na(Ta.globalContextBytes,Ea.globalContextBytes),Na(Ta.userContextBytes,Ea.userContextBytes),Na(Ta.featureFlagBytes,Ea.featureFlagBytes),Ma())})),I(Ra,1e4))}(t,l,c,n,y.flushObservable)}var _,b,w,k=(_=Xn(),new J((function(t){if(_){var e=new _(p((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),C=ka(t,location),x=Da(t),T=(b=new J,w=Re(window,"open",(function(){return b.notify()})).stop,{observable:b,stop:w}),E=T.observable,A=T.stop;u.push(A);var R=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=hr({expireDelay:gr});return t.subscribe(1,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(6,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(3,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(10,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),d=function(t,e,n){var r,i=hr({expireDelay:Sa});t.subscribe(1,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o})),t.subscribe(6,(function(t){var e=t.endClocks;i.closeActive(e.relative)}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=Jt();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=function(t,e,n,r,i){var o;t.subscribe(0,(function(e){return t.notify(12,ro(e,i))}));var a={findActionId:M},s=M;return r.trackUserInteractions&&(a=(o=eo(t,e,n,r)).actionContexts,s=o.stop),{addAction:function(e,n){t.notify(12,S({savedCommonContext:n},ro(e,i)))},actionContexts:a,stop:s}}(t,a,s,e,i),p=function(t){var e,n;At(bt.DELAY_VIEWPORT_COLLECTION)?n=requestAnimationFrame((function(){e=Ko()})):e=Ko();var r=Wo(t).subscribe((function(t){e=t})).unsubscribe;return{get:function(){return e?{viewport:e}:void 0},stop:function(){r(),n&&cancelAnimationFrame(n)}}}(e),v=function(t,e){var n;void 0===e&&(e=Ua(t,Va));var r=Fe(Va)||(null===(n=window.Cypress)||void 0===n?void 0:n.env("traceId")),i=e.subscribe((function(t){r=t}));return{get:function(){if("string"==typeof r)return{test_execution_id:r}},stop:function(){return i.unsubscribe()}}}(e);return fr(e,t,r,l,d,f.actionContexts,p,v,u,c),{viewHistory:l,pageStateHistory:i,urlContexts:d,addAction:f.addAction,actionContexts:f.actionContexts,stop:function(){f.stop(),v.stop(),p.stop(),d.stop(),l.stop(),i.stop()}}}(c,t,location,g,x,C,k,E,r,d),N=R.viewHistory,O=R.urlContexts,L=R.actionContexts,D=R.addAction,P=R.stop;u.push(P),le.drain();var U=ea(c,t,location,k,E,C,f,x,e,i),z=U.addTiming,B=U.startView,V=U.setViewName,F=U.setViewContext,q=U.setViewContextProperty,j=U.stop;u.push(j);var H=To(c,t,x).stop;if(u.push(H),At(bt.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var G=function(t,e){var n=Wr(e,{type:zr.LONG_ANIMATION_FRAME,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n