cdn.raygun.io
Open in
urlscan Pro
2600:9000:275b:6400:17:62f0:2dc0:93a1
Public Scan
URL:
https://cdn.raygun.io/raygun4js/raygun.min.js
Submission: On July 26 via api from IT — Scanned from IT
Submission: On July 26 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*! Raygun4js - v3.1.0 - 2024-06-10 * https://github.com/MindscapeHQ/raygun4js * Copyright (c) 2024 MindscapeHQ; Licensed MIT */ !function r(i,a,o){function s(t,e){if(!a[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=a[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,r,i,a,o)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,n){var r,i;r=this,i=function(e){"use strict";function u(t){function e(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)}addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)}function c(t){var n=!1;return function(e){n||(t(e),n=!0)}}function t(a,o){o=o||{},R(function(){var t,n=E(),r=b("FCP"),i=U("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime)&&(r.value=Math.max(e.startTime-v(),0),r.entries.push(e),t(!0))})});i&&(t=w(a,r,k,o.reportAllChanges),m(function(e){r=b("FCP"),t=w(a,r,k,o.reportAllChanges),S(function(){r.value=performance.now()-e.timeStamp,t(!0)})}))})}function n(o,s){s=s||{},t(c(function(){function e(e){e.forEach(function(e){var t,n;e.hadRecentInput||(t=i[0],n=i[i.length-1],r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]))}),r>n.value&&(n.value=r,n.entries=i,t())}var t,n=b("CLS",0),r=0,i=[],a=U("layout-shift",e);a&&(t=w(o,n,T,s.reportAllChanges),u(function(){e(a.takeRecords()),t(!0)}),m(function(){n=b("CLS",r=0),t=w(o,n,T,s.reportAllChanges),S(function(){return t()})}),setTimeout(t,0))}))}function s(e,t){f||(f=t,g=e,j=new Date,d(removeEventListener),l())}function l(){var t;0<=g&&g<j-X&&(t={entryType:"first-input",name:f.type,target:f.target,cancelable:f.cancelable,startTime:f.timeStamp,processingStart:f.timeStamp+g},p.forEach(function(e){e(t)}),p=[])}function d(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,K,A)})}function I(o,s){s=s||{},R(function(){function e(e){e.forEach(r)}var t=E(),n=b("FID"),r=function(e){e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),a(!0))},i=U("first-input",e),a=w(o,n,x,s.reportAllChanges);i&&u(c(function(){e(i.takeRecords()),i.disconnect()})),i&&m(function(){var e;n=b("FID"),a=w(o,n,x,s.reportAllChanges),p=[],g=-1,f=null,d(addEventListener),e=r,p.push(e),l()})})}function H(){return z()-Q}function P(e){var t=N[N.length-1],n=L[e.interactionId];(n||N.length<10||e.duration>t.latency)&&(n?(n.entries.push(e),n.latency=Math.max(n.latency,e.duration)):(t={id:e.interactionId,latency:e.duration,entries:[e]},L[t.id]=t,N.push(t)),N.sort(function(e,t){return t.latency-e.latency}),N.splice(10).forEach(function(e){delete L[e.id]}))}function F(a,o){o=o||{},R(function(){var e;"interactionCount"in performance||(h=h||U("event",G,{type:"event",buffered:!0,durationThreshold:0}));function t(e){e.forEach(function(t){t.interactionId&&P(t),"first-input"!==t.entryType||N.some(function(e){return e.entries.some(function(e){return t.duration===e.duration&&t.startTime===e.startTime})})||P(t)}),e=Math.min(N.length-1,Math.floor(H()/50)),(e=N[e])&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,i())}var n=b("INP"),r=U("event",t,{durationThreshold:null!=(e=o.durationThreshold)?e:40}),i=w(a,n,O,o.reportAllChanges);r&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&r.observe({type:"first-input",buffered:!0}),u(function(){t(r.takeRecords()),n.value<0&&0<H()&&(n.value=0,n.entries=[]),i(!0)}),m(function(){N=[],Q=z(),n=b("INP"),i=w(a,n,O,o.reportAllChanges)}))})}function q(o,s){s=s||{},R(function(){function e(e){(e=e[e.length-1])&&e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-v(),0),i.entries=[e],t())}var t,n,r=E(),i=b("LCP"),a=U("largest-contentful-paint",e);a&&(t=w(o,i,D,s.reportAllChanges),n=c(function(){B[i.id]||(e(a.takeRecords()),a.disconnect(),B[i.id]=!0,t(!0))}),["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(n,0)},!0)}),u(n),m(function(e){i=b("LCP"),t=w(o,i,D,s.reportAllChanges),S(function(){i.value=performance.now()-e.timeStamp,B[i.id]=!0,t(!0)})}))})}function o(e){document.prerendering?R(function(){return o(e)}):"complete"!==document.readyState?addEventListener("load",function(){return o(e)},!0):setTimeout(e,0)}function _(n,r){r=r||{};var i=b("TTFB"),a=w(n,i,M,r.reportAllChanges);o(function(){var e,t=y();!t||(e=t.responseStart)<=0||e>performance.now()||(i.value=Math.max(e-v(),0),i.entries=[t],a(!0),m(function(){i=b("TTFB",0),(a=w(n,i,M,r.reportAllChanges))(!0)}))})}var f,g,j,p,h,V=-1,m=function(t){addEventListener("pageshow",function(e){e.persisted&&(V=e.timeStamp,t(e))},!0)},y=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},v=function(){var e=y();return e&&e.activationStart||0},b=function(e,t){var n=y(),r="navigate";return 0<=V?r="back-forward-cache":n&&(document.prerendering||0<v()?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},U=function(e,t,n){try{var r;if(PerformanceObserver.supportedEntryTypes.includes(e))return(r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})})).observe(Object.assign({type:e,buffered:!0},n||{})),r}catch(e){}},w=function(t,n,r,i){var a,o;return function(e){0<=n.value&&(e||i)&&((o=n.value-(a||0))||void 0===a)&&(a=n.value,n.delta=o,n.rating=(e=n.value)>r[1]?"poor":e>r[0]?"needs-improvement":"good",t(n))}},S=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},r=-1,W=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},i=function(e){"hidden"===document.visibilityState&&-1<r&&(r="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",i,!0),removeEventListener("prerenderingchange",i,!0))},J=function(){addEventListener("visibilitychange",i,!0),addEventListener("prerenderingchange",i,!0)},E=function(){return r<0&&(r=W(),J(),m(function(){setTimeout(function(){r=W(),J()},0)})),{get firstHiddenTime(){return r}}},R=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},k=[1800,3e3],T=[.1,.25],A={passive:!0,capture:!0},X=new Date,K=function(e){var t,n,r,i;function a(){s(n,r),i()}function o(){i()}e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,i=function(){removeEventListener("pointerup",a,A),removeEventListener("pointercancel",o,A)},addEventListener("pointerup",a,A),addEventListener("pointercancel",o,A)):s(t,e))},x=[100,300],$=0,a=1/0,C=0,G=function(e){e.forEach(function(e){e.interactionId&&(a=Math.min(a,e.interactionId),C=Math.max(C,e.interactionId),$=C?(C-a)/7+1:0)})},z=function(){return h?$:performance.interactionCount||0},O=[200,500],Q=0,N=[],L={},D=[2500,4e3],B={},M=[800,1800];e.CLSThresholds=T,e.FCPThresholds=k,e.FIDThresholds=x,e.INPThresholds=O,e.LCPThresholds=D,e.TTFBThresholds=M,e.getCLS=n,e.getFCP=t,e.getFID=I,e.getINP=F,e.getLCP=q,e.getTTFB=_,e.onCLS=n,e.onFCP=t,e.onFID=I,e.onINP=F,e.onLCP=q,e.onTTFB=_},"object"==typeof n&&void 0!==t?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i((r="undefined"!=typeof globalThis?globalThis:r||self).webVitals={})},{}],2:[function(e,t,n){function r(e){e=String(e);return e=1===e.length?"0"+e:e}Date.prototype.toISOString||(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+r(this.getUTCMonth()+1)+"-"+r(this.getUTCDate())+"T"+r(this.getUTCHours())+":"+r(this.getUTCMinutes())+":"+r(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0!=i){t=0|t;if(!(i<=t))for(n=Math.max(0<=t?t:i-Math.abs(t),0);n<i;){if(n in r&&r[n]===e)return n;n++}}return-1}),Array.prototype.map||(Array.prototype.map=function(e){var t,n,r;if(null==this)throw new TypeError("this is null or not defined");var i,a=Object(this),o=a.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=new Array(o),r=0;r<o;)r in a&&(i=a[r],i=e.call(t,i,r,a),n[r]=i),r++;return n}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r,i=Object(this),a=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=0;n<a;)n in i&&(r=i[n],e.call(t,r,n,i)),n++}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function t(){return r.apply(this instanceof i&&e?this:e,n.concat(Array.prototype.slice.call(arguments)))}var n=Array.prototype.slice.call(arguments,1),r=this,i=function(){};return i.prototype=this.prototype,t.prototype=new i,t})},{}],3:[function(e,t,n){window.raygunBreadcrumbsFactory=function(o,a){function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("string"==typeof r&&e&&-1<e.indexOf(r))return!0;if("object"==typeof r&&r.exec(e))return!0}return!1}function n(){this.MAX_BREADCRUMBS=32,this.MAX_MESSAGE_SIZE=1024,this.BREADCRUMB_LEVELS=["debug","info","warning","error"],this.DEFAULT_BREADCRUMB_LEVEL="info",this.DEFAULT_XHR_IGNORED_HOSTS=["raygun"],this.breadcrumbLevel="info",this.logXhrContents=!1,this.xhrIgnoredHosts=[].concat(this.DEFAULT_XHR_IGNORED_HOSTS),this.breadcrumbs=[],this.wrapWithHandler=function(e){return function(){try{return e.apply(this,arguments)}catch(e){a.Utilities.log(e)}}},this.disableConsoleFunctions=[],this.disableNavigationFunctions=[],this.disableXHRLogging=function(){},this.disableClicksTracking=function(){},this.enableAutoBreadcrumbs(),this.wrapPrototypeWithHandlers()}return n.prototype.recordBreadcrumb=function(e,t){var n={level:this.DEFAULT_BREADCRUMB_LEVEL,timestamp:(new Date).getTime(),type:"manual"};switch(typeof e){case"object":n=a.Utilities.merge(n,e);break;case"string":n=a.Utilities.merge(a.Utilities.merge(n,{message:e,metadata:t}));break;default:return void a.Utilities.log("expected first argument to recordBreadcrumb to be a 'string' or 'object', got "+typeof e)}-1===this.BREADCRUMB_LEVELS.indexOf(n.level)&&(a.Utilities.log("unknown breadcrumb level "+n.level+" setting to default of '"+this.DEFAULT_BREADCRUMB_LEVEL+"'"),n.level=this.DEFAULT_BREADCRUMB_LEVEL),this.shouldRecord(n)&&(n.message=a.Utilities.truncate(n.message,this.MAX_MESSAGE_SIZE),this.breadcrumbs.push(n),this.breadcrumbs=this.breadcrumbs.slice(-this.MAX_BREADCRUMBS))},n.prototype.shouldRecord=function(e){e=this.BREADCRUMB_LEVELS.indexOf(e.level);return this.BREADCRUMB_LEVELS.indexOf(this.breadcrumbLevel)<=e},n.prototype.setBreadcrumbLevel=function(e){-1===this.BREADCRUMB_LEVELS.indexOf(e)?a.Utilities.log("Breadcrumb level of '"+e+"' is invalid, setting to default of '"+this.DEFAULT_BREADCRUMB_LEVEL+"'"):this.breadcrumbLevel=e},n.prototype.setOption=function(e,t){var n;"breadcrumbsLevel"===e?this.setBreadcrumbLevel(t):"xhrIgnoredHosts"===e?(this.xhrIgnoredHosts=t.concat(this.DEFAULT_XHR_IGNORED_HOSTS),(n=this).removeBreadcrumbsWithPredicate(function(e){return"request"===e.type&&i(e.metadata.requestURL||e.metadata.responseURL,n.xhrIgnoredHosts)})):"logXhrContents"===e&&(this.logXhrContents=t)},n.prototype.any=function(){return 0<this.breadcrumbs.length},n.prototype.all=function(){for(var e=[],t=0;t<this.breadcrumbs.length;t++){var n=this.breadcrumbs[t];n&&"request"===n.type&&!this.logXhrContents&&n.metadata&&n.metadata.body&&(n.metadata.body="Disabled because logContentsOfXhrCalls has not been enabled"),e.push(n)}return e},n.prototype.enableAutoBreadcrumbs=function(){this.enableAutoBreadcrumbsXHR(),this.enableAutoBreadcrumbsClicks(),this.enableAutoBreadcrumbsConsole(),this.enableAutoBreadcrumbsNavigation()},n.prototype.disableAutoBreadcrumbs=function(){this.disableAutoBreadcrumbsXHR(),this.disableAutoBreadcrumbsClicks(),this.disableAutoBreadcrumbsConsole(),this.disableAutoBreadcrumbsNavigation()},n.prototype.removeBreadcrumbsWithPredicate=function(e){for(var t=this.breadcrumbs,n=[],r=0;r<t.length;r++){var i=t[r];e(i)||n.push(i)}this.breadcrumbs=n},n.prototype.removeCrumbsOfType=function(t){this.removeBreadcrumbsWithPredicate(function(e){return e.type===t})},n.prototype.enableAutoBreadcrumbsConsole=function(){var t,n;void 0!==o.console&&(t=function(e,t){for(var n=[],r=0;r<t.length;r++){var i=t[r];null!=i&&n.push(i.toString())}this.recordBreadcrumb({type:"console",level:e,message:Array.prototype.slice.call(n).join(", ")})}.bind(this),(n=this).disableConsoleFunctions=["log","warn","error"].map(function(e){return a.Utilities.enhance(console,e,n.wrapWithHandler(function(){t("log"===e?"info":"warn"===e?"warning":"error",arguments)}))}))},n.prototype.disableAutoBreadcrumbsConsole=function(){this.disableConsoleFunctions.forEach(function(e){e()}),this.removeCrumbsOfType("console")},n.prototype.enableAutoBreadcrumbsNavigation=function(){var i,n,t,e;o.addEventListener&&o.history&&o.history.pushState&&(i=function(e,t,n,r){var i=location.pathname+location.search+location.hash,a=null;return o.history.state&&(a=history.state),{message:"History "+e,type:"navigation",level:"info",metadata:{from:i,to:r||i,prevState:JSON.stringify(a)||"unsupported",nextState:JSON.stringify(t)}}}.bind(this),n=function(e){return e.split("#")[1]||""},this.disableNavigationFunctions=this.disableNavigationFunctions.concat(["pushState","replaceState"].map(function(r){return a.Utilities.enhance(history,r,this.wrapWithHandler(function(e,t,n){this.recordBreadcrumb(i(r,e,t,n))}.bind(this)))}.bind(this))),t=function(e){return this.wrapWithHandler(function(){this.recordBreadcrumb(e.apply(null,arguments))}.bind(this))}.bind(this),e=[{element:o,event:"hashchange",handler:function(e){var t=e.oldURL,e=e.newURL,t=t&&e?{from:n(t),to:n(e)}:{to:location.hash};return{type:"navigation",message:"Hash change",metadata:t}}},{element:o,event:"load",handler:function(){return{type:"navigation",message:"Page loaded"}}},{element:o,event:"popstate",handler:function(){return{type:"navigation",message:"Navigated back"}}},{element:o,event:"pagehide",handler:function(){return{type:"navigation",message:"Page hidden"}}},{element:o,event:"pageshow",handler:function(){return{type:"navigation",message:"Page shown"}}},{element:document,event:"DOMContentLoaded",handler:function(){return{type:"navigation",message:"DOMContentLoaded"}}}],this.disableNavigationFunctions=this.disableNavigationFunctions.concat(e.map(function(e){return a.Utilities.addEventHandler(e.element,e.event,t(e.handler))}.bind(this))))},n.prototype.disableAutoBreadcrumbsNavigation=function(){this.disableNavigationFunctions.forEach(function(e){e()}),this.disableNavigationFunctions=[],this.removeCrumbsOfType("navigation")},n.prototype.enableAutoBreadcrumbsClicks=function(){this.disableClicksTracking=a.Utilities.addEventHandler(o,"click",this.wrapWithHandler(function(e){var t,n;try{t=a.Utilities.truncate(a.Utilities.nodeText(e.target),150),n=a.Utilities.nodeSelector(e.target)}catch(e){n=t="[unknown]",a.Utilities.log("Error retrieving node text/selector. Most likely due to a cross domain error")}this.recordBreadcrumb({type:"click-event",message:"UI Click",level:"info",metadata:{text:t,selector:n}})}.bind(this),!0))},n.prototype.disableAutoBreadcrumbsClicks=function(){this.disableClicksTracking(),this.removeCrumbsOfType("click-event")},n.prototype.enableAutoBreadcrumbsXHR=function(){var t=this,e=t.wrapWithHandler(function(e){i(e.requestURL,t.xhrIgnoredHosts)||(e.body&&(e.body=a.Utilities.truncate(e.body,500)),t.recordBreadcrumb({type:"request",message:"Opening request to "+e.requestURL,level:"info",metadata:e}))}),n=t.wrapWithHandler(function(e){i(e.requestURL,t.xhrIgnoredHosts)||i(e.responseURL,t.xhrIgnoredHosts)||(e.body&&(e.body=a.Utilities.truncate(e.body,500)),e.duration=e.duration+"ms",t.recordBreadcrumb({type:"request",message:"Finished request to "+e.requestURL,level:"info",metadata:e}))}),r=t.wrapWithHandler(function(e){i(e.requestURL,t.xhrIgnoredHosts)||(e.duration=e.duration+"ms",t.recordBreadcrumb({type:"request",message:"Failed request to "+e.requestURL,level:"info",metadata:e}))});a.NetworkTracking.on("request",e),a.NetworkTracking.on("response",n),a.NetworkTracking.on("error",r),this.disableXHRLogging=function(){a.NetworkTracking.off("request",e),a.NetworkTracking.off("response",n),a.NetworkTracking.off("error",r)}},n.prototype.disableAutoBreadcrumbsXHR=function(){this.disableXHRLogging(),this.removeCrumbsOfType("request")},n.prototype.wrapPrototypeWithHandlers=function(){var e,t;for(e in n.prototype)"function"==typeof(t=n.prototype[e])&&(n.prototype[e]=this.wrapWithHandler(t))},n}},{}],4:[function(e,t,n){function ue(p,H,h){var m,y,i,v,P,b,u,r,F,a,c,e,U={},w=(U.Utilities=raygunUtilityFactory(p,U),U.ErrorUtilities=raygunErrorUtilitiesFactory(p,U),U.NetworkTracking=raygunNetworkTrackingFactory(p,U),U.Breadcrumbs=raygunBreadcrumbsFactory(p,U),U.CoreWebVitals=raygunCoreWebVitalFactory(p),U.Viewport=raygunViewportFactory(p,document,U),{LOADING:0,READY:1}),o="raygun4js-userid",s=TraceKit,t=p.Raygun,l=!1,q=!1,_=!1,d=!1,j=!1,V=!1,f=!1,W=!0,J=!1,X=!1,K=!0,$=!0,S={},E=[],G=[],R=null,k=null,T="customData",g=null,A=new U.Breadcrumbs,z=null,Q=!0,x=w.LOADING,C=[],O=[],Y=null,N=!0,L=!1,Z=!1,ee=!1,n={Rand:Math.random(),Options:{},noConflict:function(){return t&&(p.Raygun=t),U},constructNewRaygun:function(){return ue(p,p.jQuery)},init:function(e,t,n){return s.remoteFetching=!1,U.Options._raygunApiUrl="https://api.raygun.io",this.Options._raygunApiKey=e,n&&(S=n),H&&(a=H(document)),t&&(q=t.ignoreAjaxAbort||!1,_=t.ignoreAjaxError||!1,V=t.disableAnonymousUserTracking||!1,f=t.disableErrorTracking||!1,W=t.disablePulse===h||t.disablePulse,R=t.excludedHostnames||!1,k=t.excludedUserAgents||!1,z=t.pulseMaxVirtualPageDuration||null,Q=t.pulseIgnoreUrlCasing||!1,Y=t.pulseCustomLoadTimeEnabled||!1,L=t.setCookieAsSecure||!1,Z=t.captureMissingRequests||!1,X=t.automaticPerformanceCustomTimings||!1,K=t.trackCoreWebVitals===h||t.trackCoreWebVitals,$=t.trackViewportDimensions===h||t.trackViewportDimensions,t.apiUrl&&(this.Options._raygunApiUrl=t.apiUrl,this.Options._customEndpointSet=!0),void 0!==t.wrapAsynchronousCallbacks&&(J=t.wrapAsynchronousCallbacks),void 0!==t.captureUnhandledRejections&&(N=t.captureUnhandledRejections),t.debugMode&&(l=t.debugMode),this.Options._debugMode=l,t.ignore3rdPartyErrors&&(j=!0),t.apiEndpoint&&(this.Options._raygunApiUrl=t.apiEndpoint,this.Options._customEndpointSet=!0),t.from&&(F=t.from),t.clientIp)&&(c=t.clientIp),m||V?ie():function(e){var t;if(U.Utilities.localStorageAvailable()&&null!==(t=localStorage.getItem(o)))return e(t);null!==(t=U.Utilities.readCookie(o))&&U.Utilities.localStorageAvailable()&&(U.Utilities.clearCookie(o),localStorage.setItem(o,t));e(t)}(ne),U},withCustomData:function(e){return S=e,U},withTags:function(e){return E=e,g!==h&&null!==g&&g.withTags(e),U},attach:function(){return U.Utilities.isApiKeyConfigured()&&!f&&(p.RaygunObject&&p[p.RaygunObject]&&p[p.RaygunObject].q&&(p.onerror=null),N&&(e=U.Utilities.addEventHandler(p,"unhandledrejection",re)),U.Utilities.isReactNative()&&!0!==__DEV__&&p.ErrorUtils&&p.ErrorUtils.setGlobalHandler&&p.ErrorUtils.setGlobalHandler(function(e,t){var n=r;r=function(){"function"==typeof n&&n(),U.Utilities.defaultReactNativeGlobalHandler(e,t),r=n},TraceKit.report(e)}),s.report.subscribe(M),J&&s.extendToAsynchronousCallbacks(),a&&a.ajaxError&&!_)&&a.ajaxError(oe),U},detach:function(){return s.report.unsubscribe(M),a&&a.unbind("ajaxError",oe),N&&e&&e(),U},send:function(t,e,n){if(f)U.Utilities.log("Error not sent due to disabled error tracking");else try{M(s.computeStackTrace(t),{customData:"function"==typeof S?U.Utilities.merge(S(),e):U.Utilities.merge(S,e),tags:"function"==typeof E?U.Utilities.mergeArray(E(),n):U.Utilities.mergeArray(E,n)},!0,t)}catch(e){if(t!==e)throw e}return U},setUser:function(e,t,n,r,i,a){return m={Identifier:e},"boolean"==typeof t&&(m.IsAnonymous=t),n&&(m.Email=n),r&&(m.FullName=r),i&&(m.FirstName=i),a&&(m.UUID=a),g!==h&&null!==g&&g.setUser(m),U},resetAnonymousUser:function(){U.Utilities.localStorageAvailable()?localStorage.removeItem(o):U.Utilities.clearCookie(o)},setVersion:function(e){return y=e,U},saveIfOffline:function(e){return void 0!==e&&"boolean"==typeof e&&(d=e),U},filterSensitiveData:function(e){return i=e,U},setFilterScope:function(e){return"customData"!==e&&"all"!==e||(T=e),U},whitelistCrossOriginDomains:function(e){return G=e,U},onBeforeSend:function(e){return v=e,U},onBeforeSendRum:function(e){return P=e,U},groupingKey:function(e){return b=e,U},onBeforeXHR:function(e){return u=e,U},onAfterSend:function(e){return r=e,U},endSession:function(){U.RealUserMonitoring!==h&&g&&g.endSession()},trackEvent:function(e,t){var n;x!==w.READY?O.push({type:e,options:t}):U.RealUserMonitoring!==h&&g&&(n=g.parentResource,"pageView"===e&&t.path?g.virtualPageLoaded(t.path):"customTiming"===e?g.trackCustomTiming(t.name,t.duration,t.offset||0,n):"customTimings"===e&&t.timings&&g.sendCustomTimings(t.timings,n))},setClientIp:function(e){c=e},captureMissingRequests:function(e){U.RealUserMonitoring!==h&&g&&g.captureMissingRequests(e)},recordBreadcrumb:function(){A.recordBreadcrumb.apply(A,arguments)},enableAutoBreadcrumbs:function(e){e?A["enableAutoBreadcrumbs"+e]():A.enableAutoBreadcrumbs()},disableAutoBreadcrumbs:function(e){e?A["disableAutoBreadcrumbs"+e]():A.disableAutoBreadcrumbs()},setBreadcrumbOption:function(e,t){A.setOption(e,t)},setBreadcrumbs:function(e){A=e},getBreadcrumbs:function(){return A.all()}};function te(e){"function"==typeof r&&r(e)}function ne(e){var t="Unknown";e?t=e:(t=U.Utilities.getUuid(),e=t,U.Utilities.localStorageAvailable()?localStorage.setItem(o,e):U.Utilities.createCookie(o,e,744,L)),U.setUser(t,!0,null,null,null,t),ie()}function re(e){var t=e.reason;(t=(t=!t&&e.detail&&e.detail.reason?e.detail.reason:t)instanceof Error||!e.reason||!e.reason.error?t:e.reason.error)||((t=new Error("Unhandled promise rejection")).stack=null),n.send(t,null,["UnhandledPromiseRejection"])}function ie(){if(x!==w.READY){var e,t;for(x=w.READY,U.RealUserMonitoring===h||W||(e=function(){(g=new U.RealUserMonitoring(U.Options._raygunApiKey,U.Options._raygunApiUrl,I,m,y,E,R,k,l,z,Q,Y,P,L,Z,X,K,$)).attach()},U.Utilities.isReactNative()?U.Utilities.log("Not enabling RUM because Raygun4JS has detected a React Native environment, see #310 on Github"):"onLoad"===F?e():p.addEventListener?p.addEventListener("load",e):p.attachEvent("onload",e)),t=0;t<C.length;t++)M(C[t].stackTrace,C[t].options,C[t].userTriggered,C[t].error);for(C=[],t=0;t<O.length;t++)n.trackEvent(O[t].type,O[t].options);O=[],ae()}}function ae(){if(U.Utilities.localStorageAvailable())for(var e in localStorage)if(-1<e.indexOf("raygunjs+"+U.Options._raygunApiKey)){try{var t=JSON.parse(localStorage[e]);!ee&&t.url.includes("raygun.com")&&(t.url=t.url.replace("raygun.com","raygun.io")),I(t.url,t.data)}catch(e){U.Utilities.log("Raygun4JS: Invalid JSON object in LocalStorage")}try{localStorage.removeItem(e)}catch(e){U.Utilities.log("Raygun4JS: Unable to remove error")}}}function D(e,t){if(i)for(var n=0;n<i.length;n++)if("object"==typeof i[n]&&"function"==typeof i[n].exec){var r=i[n].exec(e);if(null!==r&&r!==h)return"[removed by filter]"}else if(i[n]===e)return"[removed by filter]";return t}function B(e,t){if(null==e)return e;if("[object Object]"!==Object.prototype.toString.call(e))return e;var n,r={};for(n in e){var i=e[n];"[object Object]"===Object.prototype.toString.call(i)?r[n]="Details"!==t||"Client"!==n?B(D(n,i),n):i:"[object Function]"!==Object.prototype.toString.call(i)&&(void 0!==t?r[n]=D(n,i):"OccurredOn"===n&&(r[n]=i))}return r}function oe(e,t,n,r){var i="AJAX Error: "+(t.statusText||"unknown")+" "+(n.type||"unknown")+" "+(U.Utilities.truncateURL(n.url)||"unknown");(!q||0!==t.status&&t.getAllResponseHeaders())&&U.send(r||e.type,{status:t.status,statusText:t.statusText,type:n.type,url:n.url,ajaxErrorMessage:i,contentType:n.contentType,requestData:n.data&&n.data.slice?n.data.slice(0,10240):h,responseData:t.responseText&&t.responseText.slice?t.responseText.slice(0,10240):h,activeTarget:e.target&&e.target.activeElement&&e.target.activeElement.outerHTML&&e.target.activeElement.outerHTML.slice?e.target.activeElement.outerHTML.slice(0,10240):h})}function M(e,t,n,r){if(x!==w.READY)C.push({stackTrace:e,options:t,userTriggered:n,error:r});else{var i="Script error",a=[],o={};if(!j||!function(e,t){if(U.Utilities.isEmpty(e.stack))U.Utilities.log("Raygun4JS: Cancelling send due to null stacktrace");else if(U.ErrorUtilities.isScriptError(e,t))U.Utilities.log("Raygun4JS: cancelling send due to third-party script error with no stacktrace and message",{stackTrace:e,options:t});else if(U.ErrorUtilities.isBrowserExtensionError(e))U.Utilities.log("Raygun4JS: cancelling send due to the error coming from a browser extension",e);else if(U.ErrorUtilities.isValidStackTrace(e)){if(U.ErrorUtilities.stackTraceHasValidDomain(e,G))return;U.Utilities.log("Raygun4JS: cancelling send due to error on non-origin, non-whitelisted domain")}else U.Utilities.log("Raygun4JS: cancelling send due to invalid stacktrace data",e);return 1}(e,t)){if(R instanceof Array)for(var s in R)if(R.hasOwnProperty(s)&&p.location.hostname&&p.location.hostname.match(R[s]))return void U.Utilities.log("Raygun4JS: cancelling send as error originates from an excluded hostname");if(k instanceof Array&&!U.Utilities.isReactNative())for(var u in k)if(k.hasOwnProperty(u)&&p.raygunUserAgent.match(k[u]))return void U.Utilities.log("Raygun4JS: cancelling send as error originates from an excluded user agent");if(U.Utilities.isReactNative()||!p.raygunUserAgent.match("RaygunPulseInsightsCrawler")){e.stack&&e.stack.length&&U.Utilities.forEach(e.stack,function(e,t){a.push({LineNumber:t.line,ColumnNumber:t.column,ClassName:"line "+t.line+", column "+t.column,FileName:t.url,MethodName:t.func||"[anonymous]"})});var c=U.Utilities.parseUrl("?"),c=(0<c.length&&U.Utilities.forEach(c.split("&"),function(e,t){var n,t=t.split("=");t&&2===t.length&&(t=D(n=decodeURIComponent(t[0]),t[1]),o[n]=t)}),U.Utilities.isEmpty((t=t===h?{}:t).customData)&&(t.customData="function"==typeof S?S():S),U.Utilities.isEmpty(t.tags)&&(t.tags="function"==typeof E?E():"string"==typeof E?[E]:E),n||(t.tags||(t.tags=[]),U.Utilities.contains(t.tags,"UnhandledException"))||t.tags.push("UnhandledException"),U.Utilities.isReactNative()&&!U.Utilities.contains(t.tags,"React Native")&&t.tags.push("React Native"),U.Viewport.getViewportDimensions()),n=p.screen||{width:c.width,height:c.height,colorDepth:8},l=t.customData&&t.customData.ajaxErrorMessage;f="customData"===T?B(t.customData,"UserCustomData"):t.customData;try{JSON.stringify(f)}catch(e){var d="Cannot add custom data; may contain circular reference",f={error:d};U.Utilities.log("Raygun4JS: "+d)}var d=i,g=(l?d=l:e.message?d=e.message:t&&t.status?d=t.status:"string"==typeof r&&(d=r),(d=void 0===d?i:d)&&"string"==typeof d&&(d=d.substring(0,512)),l=U.Utilities.isReactNative()?"/":[location.protocol,"//",location.host,location.pathname,location.hash].join(""),{OccurredOn:new Date,Details:{Error:{ClassName:e.name,Message:d,StackTrace:a,StackString:e.stackstring},Environment:{UtcOffset:(new Date).getTimezoneOffset()/-60,"User-Language":navigator.userLanguage,"Document-Mode":U.Utilities.isReactNative()?"Not available":document.documentMode,"Browser-Width":c.width,"Browser-Height":c.height,"Screen-Width":n.width,"Screen-Height":n.height,"Color-Depth":n.colorDepth,Browser:navigator.appCodeName,"Browser-Name":navigator.appName,"Browser-Version":navigator.appVersion,Platform:navigator.platform},Client:{Name:"raygun-js",Version:"3.1.0"},UserCustomData:f,Tags:t.tags,Request:{Url:l,QueryString:o,Headers:{"User-Agent":p.raygunUserAgent,Referer:U.Utilities.isReactNative()?"Not available":document.referrer,Host:U.Utilities.isReactNative()?"Not available":document.domain}},Version:y||"Not supplied"}}),r=(g.Details.User=m,A.any()&&(g.Details.Breadcrumbs=[],(A.all()||[]).forEach(function(e){e.metadata&&(e.CustomData=e.metadata,delete e.metadata),g.Details.Breadcrumbs.push(e)})),"all"===T&&(g=B(g)),"function"==typeof b&&(U.Utilities.log("Raygun4JS: calling custom grouping key"),g.Details.GroupingKey=b(g,e,t)),g);if("function"==typeof v){try{r=p.structuredClone?p.structuredClone(g):g}catch(e){U.Utilities.log('Unable to clone RUM payload data":',e)}i=v(r);i&&se(i)}else se(r)}}}}function se(e){U.Utilities.isApiKeyConfigured()&&(U.Utilities.log("Sending exception data to Raygun:",e),I(U.Options._raygunApiUrl+"/entries?apikey="+encodeURIComponent(U.Options._raygunApiKey),JSON.stringify(e)))}function I(i,a,e,t){n="POST",r=i,(o=new p.XMLHttpRequest).timeout=1e4,("withCredentials"in o||U.Utilities.isReactNative())&&o.open(n,r,!0);var n,r,o,s=o;"function"==typeof s.setRequestHeader&&(s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),void 0!==c)&&s.setRequestHeader("X-Remote-Address",c),"function"==typeof u&&u(s),U.Utilities.log("Is offline enabled? "+d),("withCredentials"in s||U.Utilities.isReactNative())&&(s.onreadystatechange=function(){if(4===s.readyState)if(202===s.status)ae();else if(d&&403!==s.status&&400!==s.status&&429!==s.status){var e=i,t=a,n=(new Date).toJSON();try{var r="raygunjs+"+U.Options._raygunApiKey+"="+n+"="+U.Utilities.getRandomInt();void 0===localStorage[r]&&(localStorage[r]=JSON.stringify({url:e,data:t}))}catch(e){U.Utilities.log("Raygun4JS: LocalStorage full, cannot save exception")}}},s.onload=function(){U.Utilities.log("posted to Raygun"),te(this),e&&"function"==typeof e&&e(s,i,a)}),s.onerror=function(){U.Utilities.log("failed to post to Raygun"),te(this),t&&"function"==typeof t&&t(s,i,a)},s?(U.Utilities.isReactNative()&&s.setRequestHeader("Content-type","application/json;charset=UTF-8"),s.send(a)):U.Utilities.log("CORS not supported")}return U=U.Utilities.mergeMutate(U,n),p.__raygunNoConflict||(p.Raygun=U),TraceKit.setRaygun(U),U}window.__instantiatedRaygun=ue(window,window.jQuery)},{}],5:[function(e,t,n){function i(){var e,t;2<h.ping.failedPings&&clearInterval(h.ping.pingIntervalId),o.Options&&o.Options._raygunApiKey&&o.Options._raygunApiUrl?(e=o.Options._raygunApiUrl+"/ping?apiKey="+encodeURIComponent(o.Options._raygunApiKey),t={crashReportingEnabled:!!p,realUserMonitoringEnabled:!!g,providerName:"raygun4js",providerVersion:"3.1.0"},fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){e.ok?h.ping.failedPings=0:h.ping.failedPings++}).catch(function(){h.ping.failedPings++})):h.ping.failedPings++}var a,o,s,u,c,l,d,f,g,p,h,m,y,v,b,U,w,S,r;a=window,o=window.__instantiatedRaygun,a.RaygunObject&&a[a.RaygunObject]&&(s=a[a.RaygunObject].o,u=!1,h={ping:{sendPing:!(p=g=!(c=[])),pingIntervalId:-1,failedPings:0}},m=["function (b,c,d,f,g){","||(g=new Error(b)),a[e].q=a[e].q||[]"],y=a[a.RaygunObject].q,b=["trackEvent","send","recordBreadcrumb","captureMissingRequests"],U=function(e){var t,n,r,i=e[0],a=e[1];if(i)switch(i){case"sendPing":h.ping.sendPing=a;break;case"boot":S();break;case"noConflict":f=a;break;case"apiKey":l=a,0;break;case"options":d=a;break;case"attach":case"enableCrashReporting":p=a,0;break;case"enableRealUserMonitoring":case"enableRUM":case"enablePulse":g=a,0;break;case"detach":v.detach();break;case"getRaygunInstance":return a&&"function"==typeof a&&a(v),v;case"setUser":v.setUser(a.identifier,a.isAnonymous,a.email,a.fullName,a.firstName,a.uuid);break;case"onBeforeSend":v.onBeforeSend(a);break;case"onBeforeSendRUM":v.onBeforeSendRum(a);break;case"onBeforeXHR":v.onBeforeXHR(a);break;case"onAfterSend":v.onAfterSend(a);break;case"withCustomData":v.withCustomData(a);break;case"withTags":v.withTags(a);break;case"setVersion":v.setVersion(a);break;case"filterSensitiveData":v.filterSensitiveData(a);break;case"setFilterScope":v.setFilterScope(a);break;case"whitelistCrossOriginDomains":v.whitelistCrossOriginDomains(a);break;case"saveIfOffline":"boolean"==typeof a&&v.saveIfOffline(a);break;case"groupingKey":v.groupingKey(a);break;case"endSession":v.endSession();break;case"send":a.error?(t=a.error,a.tags&&(n=a.tags),a.customData&&(r=a.customData)):t=a,v.send(t,r,n);break;case"trackEvent":a.type&&a.path?v.trackEvent(a.type,{path:a.path}):a.type&&a.name&&a.duration?v.trackEvent(a.type,{name:a.name,duration:a.duration,offset:a.offset||0}):a.type&&a.timings&&v.trackEvent(a.type,{timings:a.timings});break;case"recordBreadcrumb":v.recordBreadcrumb(e[1],e[2]);break;case"enableAutoBreadcrumbs":v.enableAutoBreadcrumbs();break;case"disableAutoBreadcrumbs":v.disableAutoBreadcrumbs();break;case"enableAutoBreadcrumbsConsole":v.enableAutoBreadcrumbs("Console");break;case"disableAutoBreadcrumbsConsole":v.disableAutoBreadcrumbs("Console");break;case"enableAutoBreadcrumbsNavigation":v.enableAutoBreadcrumbs("Navigation");break;case"disableAutoBreadcrumbsNavigation":v.disableAutoBreadcrumbs("Navigation");break;case"enableAutoBreadcrumbsClicks":v.enableAutoBreadcrumbs("Clicks");break;case"disableAutoBreadcrumbsClicks":v.disableAutoBreadcrumbs("Clicks");break;case"enableAutoBreadcrumbsXHR":v.enableAutoBreadcrumbs("XHR");break;case"disableAutoBreadcrumbsXHR":v.disableAutoBreadcrumbs("XHR");break;case"setBreadcrumbLevel":v.setBreadcrumbOption("breadcrumbsLevel",e[1]);break;case"setAutoBreadcrumbsXHRIgnoredHosts":v.setBreadcrumbOption("xhrIgnoredHosts",e[1]);break;case"logContentsOfXhrCalls":v.setBreadcrumbOption("logXhrContents",e[1]);break;case"clientIp":v.setClientIp(a);break;case"captureMissingRequests":v.captureMissingRequests(a);break;case"captureUnhandledRejections":0}},w=function(){a[a.RaygunObject]=function(){return U(arguments)},a.RaygunInitialized=!0,u=!0},S=function(){for(var e in s=a[a.RaygunObject].o)s.hasOwnProperty(e)&&(e=s[e])&&(-1===b.indexOf(e[0])?U(e):c.push(e));var t,n;if(f&&(v=o.noConflict()),l&&(d=d||{},g&&(d.disablePulse=!1),d.from="onLoad",v.init(l,d,null)),p)for(var r in v.attach(),y=a[a.RaygunObject].q)v.send(y[r].e,{handler:"From Raygun4JS snippet global error handler"});else"function"==typeof a.onerror&&-1!==(t=a.onerror.toString()).indexOf(m[0])&&-1!==t.indexOf(m[1])&&(a.onerror=null);for(n in c)c.hasOwnProperty(n)&&U(c[n]);c=[],u||w(),h.ping.sendPing&&(i(),h.ping.pingIntervalId=setInterval(i,3e5)),a[a.RaygunObject].q=y},(v=o).Utilities.isReactNative()?w():(r=!!a.PerformanceObserver&&!!a.PerformanceObserver.supportedEntryTypes&&a.PerformanceObserver.supportedEntryTypes.includes("navigation"),"complete"===document.readyState?S():r?new a.PerformanceObserver(function(){S()}).observe({entryTypes:["navigation"]}):a.addEventListener?a.addEventListener("load",S):a.attachEvent("onload",S)));try{delete window.__instantiatedRaygun}catch(e){window.__instantiatedRaygun=void 0}},{}],6:[function(e,t,n){window.raygunNetworkTrackingFactory=function(c,l){function n(){this.requestHandlers=[],this.responseHandlers=[],this.errorHandlers=[],this.wrapWithHandler=function(e){return function(){try{return e.apply(this,arguments)}catch(e){l.Utilities.log(e)}}},this.executeHandlers=this.wrapWithHandler(function(e,t){for(var n=0;n<e.length;n++)e[n](JSON.parse(JSON.stringify(t)))}),this.wrapPrototypeWithHandlers(),this.attach()}return n.prototype.on=function(e,t){switch(e){case"request":this.requestHandlers.push(t);break;case"response":this.responseHandlers.push(t);break;case"error":this.errorHandlers.push(t)}},n.prototype.off=function(e,t){switch(e){case"request":this.requestHandlers=l.Utilities.removeFromArray(this.requestHandlers,t);break;case"response":this.responseHandlers=l.Utilities.removeFromArray(this.responseHandlers,t);break;case"error":this.errorHandlers=l.Utilities.removeFromArray(this.errorHandlers,t)}},n.prototype.attach=function(){var e,s=this,u=(c.XMLHttpRequest.prototype.addEventListener&&l.Utilities.enhance(c.XMLHttpRequest.prototype,"open",s.wrapWithHandler(function(){var t=(new Date).getTime(),n=l.Utilities.resolveFullUrl(arguments[1])||"Unknown",r=n.split("?")[0],i=arguments[0];l.Utilities.enhance(this,"send",s.wrapWithHandler(function(){var e={method:i,requestURL:n,baseUrl:r};arguments[0]&&"string"==typeof arguments[0]&&(e.body=arguments[0]),s.executeHandlers(s.requestHandlers,e)})),this.addEventListener("load",s.wrapWithHandler(function(){var e="N/A for non text responses";""!==this.responseType&&"text"!==this.responseType||(e=this.responseText),l.Utilities.log("Tracking XHR response for",n),s.executeHandlers(s.responseHandlers,{status:this.status,requestURL:n,responseURL:this.responseURL,baseUrl:r,body:e,duration:(new Date).getTime()-t})})),this.addEventListener("error",s.wrapWithHandler(function(){s.executeHandlers(s.errorHandlers,{requestURL:n,responseURL:this.responseURL,duration:(new Date).getTime()-t})}))})),c.__raygunOriginalFetch||c.fetch);"function"!=typeof u||void 0!==u.polyfill||l.Utilities.isIE()||(e=function(){var i,a,e=arguments[0],t=arguments[1],n=t&&t.method||"GET",o=(new Date).getTime(),e=("string"==typeof e?i=e:void 0!==c.Request&&e instanceof c.Request?(i=e.url,e.method&&(n=e.method)):i=String(e),i=l.Utilities.resolveFullUrl(i),a=i.split("?")[0],u.apply(null,arguments));try{var r={method:n,requestURL:i,baseUrl:a};t&&t.body&&(r.body=t.body),s.executeHandlers(s.requestHandlers,r),e.then(s.wrapWithHandler(function(e){var t="N/A when the fetch response does not support clone()",n="function"==typeof e.clone?e.clone():void 0;function r(){l.Utilities.log("tracking fetch response for",i),s.executeHandlers(s.responseHandlers,{status:e.status,requestURL:i,responseURL:e.url,body:t,baseUrl:a,duration:(new Date).getTime()-o})}if(n)try{n.text().then(function(e){t=l.Utilities.truncate(e,500),r()}).catch(function(){r()})}catch(e){r()}else r()})).catch(s.wrapWithHandler(function(e){s.executeHandlers(s.errorHandlers,{metadata:{requestUrl:i,error:e.toString(),duration:(new Date).getTime()-o}})}))}catch(e){l.Utilities.log(e)}return e},c.__raygunOriginalFetch?c.__raygunFetchCallback=e:c.fetch=e)},n.prototype.wrapPrototypeWithHandlers=function(){var e,t;for(e in n.prototype)"function"==typeof(t=n.prototype[e])&&(n.prototype[e]=this.wrapWithHandler(t))},new n}},{}],7:[function(e,t,n){var i=e("web-vitals");window.raygunCoreWebVitalFactory=function(){function e(){this.cleanWebVitalData=function(e){return e.value&&e.value.toFixed&&(e.value=e.value.toFixed(3)),e}}var n=null,r=null;return e.prototype.attach=function(e,t){n=e,r=t,i.onLCP(this.handler),i.onFID(this.handler),i.onCLS(this.handler),i.onINP(this.handler),i.onFCP(this.handler),i.onTTFB(this.handler)},e.prototype.handler=function(e){e.value&&e.value.toFixed&&(e.value=e.value.toFixed(3));e={url:e.name,timing:{t:"w",du:e.value},parentResource:r};n(e)},new e}},{"web-vitals":1}],8:[function(e,t,n){var ie,ae;(ie=window).jQuery,(ae=window.__instantiatedRaygun).RealUserMonitoring=function(I,H,P,F,q,_,j,V,W,J,X,e,K,$,G,z,Q,Y){var f=this,a={},c=(this.cookieName="raygun4js-sid",this.apiKey=I,this.apiUrl=H,this.debugMode=W,this.excludedHostNames=j,this.excludedUserAgents=V,this.maxVirtualPageDuration=J||18e5,this.ignoreUrlCasing=X,this.customTimingsEnabled=e,this.automaticPerformanceCustomTimings=z,this.trackCoreWebVitals=Q,this.beforeSend=K||function(e){return e},this.pendingPayloadData=e||!1,this.queuedPerformanceTimings=[],this.pendingVirtualPage=null,this.sessionId=null,this.virtualPage=null,this.user=F,this.version=q,this.tags=_,this.heartBeatInterval=null,this.heartBeatIntervalTime=3e4,this.offset=0,this._captureMissingRequests=G||!1,this.sendUsingNavigatorBeacon=!1,this.stopCollectingMetrics=!1,this.queuedItems=[],this.maxQueueItemsSent=50,this.setCookieAsSecure=$,this.xhrRequestMap={},this.xhrStatusMap={},{Page:"p",VirtualPage:"v",XHR:"x",CachedChildAsset:"e",ChildAsset:"c",CustomTiming:"t",CoreWebVital:"w"});function n(){i(M({sessionId:f.sessionId,timestamp:(new Date).toISOString(),type:"session_start",user:f.user,version:f.version||"Not supplied",tags:f.tags,device:ie.raygunUserAgent,client:{name:"raygun4js",version:"3.1.0"}}))}function o(e){return new Date(B(e,"timestamp"))<new Date(new Date-18e5)}function s(){f.sessionId=T(32),L(f.sessionId)}function t(e,t){e=function(e,t,n){if(!A("timing","object")||void 0===ie.performance.timing.fetchStart||isNaN(ie.performance.timing.fetchStart))return null;var r=[];t&&r.push(function(){var e=ie.location.pathname;f.ignoreUrlCasing&&(e=e.toLowerCase());e=ie.location.protocol+"//"+ie.location.host+e;800<e.length&&(e=e.substring(0,800));return{url:e,userAgent:ie.raygunUserAgent,timing:function(){var e=ie.performance.getEntriesByType("navigation")[0]||ie.performance.timing,t={du:U(e),t:c.Page};t.a=e.fetchStart||0,e.domainLookupStart&&0<e.domainLookupStart&&(t.b=e.domainLookupStart-t.a);e.domainLookupEnd&&0<e.domainLookupEnd&&(t.c=e.domainLookupEnd-t.a);e.connectStart&&0<e.connectStart&&(t.d=e.connectStart-t.a);e.connectEnd&&0<e.connectEnd&&(t.e=e.connectEnd-t.a);e.responseStart&&0<e.responseStart&&(t.f=e.responseStart-t.a);e.responseEnd&&0<e.responseEnd&&(t.g=e.responseEnd-t.a);e.domLoading&&0<e.domLoading&&(t.h=e.domLoading-t.a);e.domInteractive&&0<e.domInteractive&&(t.i=e.domInteractive-t.a);e.domContentLoadedEventEnd&&0<e.domContentLoadedEventEnd&&(t.j=e.domContentLoadedEventEnd-t.a);e.domComplete&&0<e.domComplete&&(t.k=C(e.domComplete-t.a));e.loadEventStart&&0<e.loadEventStart&&(t.l=e.loadEventStart-t.a);e.loadEventEnd&&0<e.loadEventEnd&&(t.m=e.loadEventEnd-t.a);e.secureConnectionStart&&0<e.secureConnectionStart&&(t.n=e.secureConnectionStart-e.connectStart-t.a);return t=function(e){var t;return A("getEntriesByName","function")&&(0<(t=ie.performance.getEntriesByName("first-paint")).length&&0<t[0].startTime?e.fp=t[0].startTime.toFixed(2):ie.performance.timing&&ie.performance.timing.msFirstPaint&&(e.fp=(ie.performance.timing.msFirstPaint-ie.performance.timing.fetchStart).toFixed(2)),0<(t=ie.performance.getEntriesByName("first-contentful-paint")).length)&&0<t[0].startTime&&(e.fcp=t[0].startTime.toFixed(2)),e}(t=k(t))}(),size:0}}());h(r),e&&(r.push(function(e,t){f.ignoreUrlCasing&&(e=e.toLowerCase());-1!==e.indexOf("?")&&(e=e.split("?")[0]);e=ie.location.protocol+"//"+ie.location.host+e;800<e.length&&(e=e.substring(0,800));return{url:e,userAgent:ie.raygunUserAgent,timing:function(e){return{t:c.VirtualPage,startTime:e,staticLoad:f.initalStaticPageLoadTimestamp,pending:!0}}(t),size:0}}(e,x(0))),h(r,!0));return r=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(b(i,t))}return n}(r,n)}(f.virtualPage,e,t);null===e||e.length<0||p(e,!1)}function u(e){e&&r();var t=[];h(t,void 0,e),p(t,e)}function l(){var e,t;0<f.queuedItems.length&&(f.queuedItems=(e=f.queuedItems,t="timestamp",e.sort(function(r){return function(e,t){var n;return e.hasOwnProperty(r)&&t.hasOwnProperty(r)?(e=e[r],n=0,(t=t[r])<e?n=1:e<t&&(n=-1),n):(O('Raygun4JS: Property "'+r+'" not found in items in this collection'),0)}}(t))),d(f.queuedItems.splice(0,f.maxQueueItemsSent)))}function r(){for(var e,t,n=0;n<f.queuedPerformanceTimings.length;n++)(e=f.queuedPerformanceTimings[n]).timing.t===c.VirtualPage&&e.timing.pending&&(e.timing=(e=e.timing,t=void 0,t=x(0),{t:e.t,du:Math.min(f.maxVirtualPageDuration,t-e.startTime),o:Math.min(f.maxVirtualPageDuration,t-e.staticLoad)}))}function i(e){d([e])}function d(t){var e={eventData:t},n=function(){O("Raygun4JS: Items sent successfully. Queue length: "+f.queuedItems.length)},r=function(e){f.queuedItems=t.concat(f.queuedItems),O("Raygun4JS: Items failed to send. Queue length: "+f.queuedItems.length+" Response status code: "+e.status)},u=("function"!=typeof n&&(n=function(){}),"function"!=typeof r&&(r=function(){}),f.apiUrl+"/events?apikey="+encodeURIComponent(f.apiKey)),c=e,l=n,d=r;if(f.excludedUserAgents instanceof Array)for(var i in f.excludedUserAgents)if(f.excludedUserAgents.hasOwnProperty(i)&&ie.raygunUserAgent.match(f.excludedUserAgents[i]))return void O("Raygun4JS: cancelling send as error originates from an excluded user agent");if(f.excludedHostNames instanceof Array)for(var a in f.excludedHostNames)if(f.excludedHostNames.hasOwnProperty(a)&&ie.location.hostname&&ie.location.hostname.match(f.excludedHostNames[a]))return void O("Raygun4JS: cancelling send as error originates from an excluded hostname");ie.raygunUserAgent.match("RaygunPulseInsightsCrawler")||setTimeout(function(){var e=c;if(e.eventData)for(var t=0;t<e.eventData.length;t++)if(e.eventData[t].data&&Array.isArray(e.eventData[t].data))for(var n=0;n<e.eventData[t].data.length;n++){var r,i=e.eventData[t].data[n];i.device&&ie.raygunUserAgentData&&ie.raygunUserAgentData.platformVersion&&(r=(ie.raygunUserAgentData.platformVersion||"").split("."),i.device={Family:ie.raygunUserAgentData.platform,Major:r[0]||"",Minor:r[1]||"",Patch:r[2]||"",PatchMinor:r[3]||""})}var a=c;try{a=ie.structuredClone?ie.structuredClone(c):c}catch(e){ae.Utilities.log('Unable to clone CR payload data":',e)}var o=f.beforeSend(a);if(o){if(o.eventData)for(var s=0;s<o.eventData.length;s++)o.eventData[s].data&&"string"!=typeof o.eventData[s].data&&(o.eventData[s].data=JSON.stringify(o.eventData[s].data));a=JSON.stringify(o);if(f.sendUsingNavigatorBeacon&&navigator.sendBeacon)try{navigator.sendBeacon(u,a)}catch(e){O(e,{url:u,payload:a})}else P(u,a,l,d)}else O("Raygun4JS: cancelling send because onBeforeSendRUM returned falsy value")},1===ie.raygunUserAgentDataStatus?200:0)}function g(e){if(!f.pendingPayloadData||e){function t(){i.push(N(r)),a=!(r=[])}function n(){0<r.length&&t(),0<i.length&&(d(i),a=!(r=[]))}for(var r=[],i=[],a=!1,o=0;o<f.queuedPerformanceTimings.length;o++){var s,u=(s=f.queuedPerformanceTimings[o]).timing.t===c.Page||s.timing.t===c.VirtualPage;if(a&&u&&t(),0<r.length&&u&&t(),u&&(f.requestId=T(16)),s.timing.t===c.VirtualPage&&s.timing.pending)return n(),void f.queuedPerformanceTimings.splice(0,o);r.push(s),a=a||s.timing.t===c.Page||s.timing.t===c.VirtualPage}n(),f.queuedPerformanceTimings=[]}}function p(e,t){!1===f.stopCollectingMetrics&&(f.queuedPerformanceTimings=f.queuedPerformanceTimings.concat(e),g(t))}function Z(e){e=N([e]);if(navigator.sendBeacon){if(e.data){e.data=JSON.stringify(e.data);var t=JSON.stringify({eventData:[e]}),n=f.apiUrl+"/events?apikey="+encodeURIComponent(f.apiKey);try{navigator.sendBeacon(n,t)}catch(e){O(e,{url:n,payload:t})}}}else d([e])}function h(e,t,n){var r;if(A("getEntries","function"))try{for(var i=0,a=ie.performance.getEntriesByType("navigation"),i=t||a&&0<a.length?0:ie.performance.timing.navigationStart,o=ie.performance.getEntries(),s=f.offset;s<o.length;s++){var u,c=o[s];if(!n&&te(c))break;w(c)?f.automaticPerformanceCustomTimings&&(u=S(c),e.push(b(u,f.parentResource))):R((r=c).name.split("?")[0])||"paint"===r.entryType||"mark"===r.entryType||"navigation"===r.entryType||"visibility-state"===r.entryType||e.push(ne(c,i))}f.offset=s,f._captureMissingRequests&&ee(e,i)}catch(e){O(e)}}this.Utilities={},this.attach=function(){var e=function(e){f.pageLoaded(e)},t=D(),n=null===t,r=!1,i=(n||(r=o(t)),n||r?(s(),e(!0)):(L(n=B(t,"id")),f.sessionId=n,e(!1)),this.trackCoreWebVitals&&ae.CoreWebVitals.attach(Z,f.parentResource),function(){u(f.sendUsingNavigatorBeacon=!0),l()}.bind(a)),r=function(){this.updateStorageTimestamp()}.bind(a),t=function(){"visible"===document.visibilityState&&this.updateStorageTimestamp(),"hidden"===document.visibilityState&&i()}.bind(a),n=function(){i()}.bind(a),e=function(){i(),f.stopCollectingMetrics=!0}.bind(a);ie.addEventListener?(ie.addEventListener("click",r),document.addEventListener("visibilitychange",t),ie.addEventListener("popstate",n),ie.addEventListener("pagehide",e)):ie.attachEvent&&document.attachEvent("onclick",r),ae.NetworkTracking.on("request",function(e){this.xhrRequestMap[e.baseUrl]||(this.xhrRequestMap[e.baseUrl]=[]);O("adding request to xhr request map",e);var t=b(e,f.parentResource);this.xhrRequestMap[e.baseUrl].push(t)}.bind(this)),ae.NetworkTracking.on("error",function(e){var t=this.xhrRequestMap[e.baseUrl];t&&0<t.length&&(this.xhrRequestMap[e.baseUrl].shift(),O("request encountered an error",e))}.bind(this)),ae.NetworkTracking.on("response",function(e){var t=this.xhrRequestMap[e.baseUrl];t&&0<t.length?(t=t[0].parentResource,this.xhrRequestMap[e.baseUrl].shift(),0===this.xhrRequestMap[e.baseUrl].length&&delete this.xhrRequestMap[e.baseUrl],this.xhrStatusMap[e.baseUrl]||(this.xhrStatusMap[e.baseUrl]=[]),O("adding response to xhr status map",e),t=b(e,t),this.xhrStatusMap[e.baseUrl].push(t)):O("response fired from non-handled request")}.bind(this))},this.pageLoaded=function(e){e&&n();e=v(y(ie.location.pathname),c.Page);f.parentResource=e,t(!0,e),null!==f.heartBeatInterval?O("Raygun4JS: Heartbeat already exists. Skipping heartbeat creation."):f.heartBeatInterval=setInterval(function(){u(),l(),f.xhrStatusMap={}},f.heartBeatIntervalTime),f.initalStaticPageLoadTimestamp=x(0)},this.virtualPageLoaded=function(e){"string"==typeof e&&(0<e.length&&"/"!==e[0]&&(e+="/"),800<e.length&&(e=e.substring(0,800)),this.virtualPage=e);e=v(y(e),c.VirtualPage);f.parentResource=e,f.stopCollectingMetrics&&(f.offset=ie.performance.getEntries().length,f.stopCollectingMetrics=!1),r(),t(!1,e)},this.setUser=function(e){f.user=e},this.withTags=function(e){f.tags=e},this.endSession=function(){f.pendingPayloadData=!1,g(),i(M({sessionId:f.sessionId,requestId:f.requestId,timestamp:(new Date).toISOString(),type:"session_end"})),s(),n()},this.sendCustomTimings=function(e,t){"object"!=typeof e||"number"!=typeof e.custom1&&"number"!=typeof e.custom2&&"number"!=typeof e.custom3&&"number"!=typeof e.custom4&&"number"!=typeof e.custom5&&"number"!=typeof e.custom6&&"number"!=typeof e.custom7&&"number"!=typeof e.custom8&&"number"!=typeof e.custom9&&"number"!=typeof e.custom10||f.pendingPayloadData&&0<f.queuedPerformanceTimings.length&&(f.pendingPayloadData=!1,f.queuedPerformanceTimings[0].customTiming=e,f.queuedPerformanceTimings[0].parentResource=t,g())},this.trackCustomTiming=function(e,t,n,r){var i;"number"==typeof t?(i=[],t=E(e,t,n),i.push(b(t,r)),p(i,!1)):O('Raygun4JS: Custom timing "'+e+'" duration value is not a number')},this.captureMissingRequests=function(e){this._captureMissingRequests=e};var ee=function(e,t){for(var n in O("checking for missing WRT data",this.xhrStatusMap),this.xhrStatusMap)if(this.xhrStatusMap.hasOwnProperty(n)){var r=this.xhrStatusMap[n];if(r&&0<r.length)do{var i,a=r.shift()}while(O("checking response",a),R(a.baseUrl)||(O("adding missing WRT data for url"),i={url:a.baseUrl,statusCode:a.status,timing:{du:C(a.duration||0).toFixed(2),a:(t||0).toFixed(2),t:c.XHR}},e.push(b(i,a.parentResource))),0<r.length);delete this.xhrStatusMap[n]}}.bind(this);var m=function(e){e=e.name.split("?")[0];return e=800<(e=f.ignoreUrlCasing?e.toLowerCase():e).length?e.substring(0,800):e}.bind(this),te=function(e){e=m(e),e=this.xhrRequestMap[e];return e&&0<e.length}.bind(this),ne=function(e,t){var n=m(e),t={url:n,timing:function(e,t){var n={du:C(U(e)).toFixed(2),t:function(e){return function(e){return"xmlhttprequest"===e||"fetch"===e||"preflight"===e||"beacon"===e}(e.initiatorType)||!function(e){switch(e.initiatorType){case"img":case"css":case"script":case"link":case"other":case"use":return 1}return}(e)&&function(e){return"string"==typeof e.initiatorType&&""===e.initiatorType}(e)?c.XHR:re(e)}(e),a:(t||0)+(e.fetchStart||e.startTime||0)};e.domainLookupStart&&0<e.domainLookupStart&&(n.b=t+e.domainLookupStart-n.a);e.domainLookupEnd&&0<e.domainLookupEnd&&(n.c=t+e.domainLookupEnd-n.a);e.connectStart&&0<e.connectStart&&(n.d=t+e.connectStart-n.a);e.connectEnd&&0<e.connectEnd&&(n.e=t+e.connectEnd-n.a);e.responseStart&&0<e.responseStart&&(n.f=t+e.responseStart-n.a);e.responseEnd&&0<e.responseEnd&&(n.g=t+e.responseEnd-n.a);e.secureConnectionStart&&0<e.secureConnectionStart&&(n.n=t+(e.secureConnectionStart-e.connectStart)-n.a);return n.a=n.a.toFixed(2),n=k(n)}(e,t),size:e.decodedBodySize||0,parentResource:f.parentResource},e=(O("retrieving secondary timing data for",e.name),this.xhrStatusMap[n]);return e&&0<e.length?(e=this.xhrStatusMap[n].shift(),t.statusCode=e.status,t.parentResource=e.parentResource,O("found status for timing",t.statusCode),0===this.xhrStatusMap[n].length&&delete this.xhrStatusMap[n]):O("no status found for timing",this.xhrStatusMap),t}.bind(this);function y(e,t){var n=e,t=(t&&(n=e.toLowerCase()),ie.location.protocol+"//"+ie.location.host+n);return t=800<t.length?t.substring(0,800):t}function v(e,t){return{url:e,type:t}}function b(e,t){return t?ae.Utilities.merge({parentResource:t},e):e}function U(e){return e.duration||e.responseEnd-e.startTime||0}function w(e){return!(!e||"measure"!==e.entryType)}function S(e){return E(e.name,e.duration,e.startTime)}function E(e,t,n){return{url:e,timing:{t:c.CustomTiming,du:t.toFixed(2),a:(n||0).toFixed(2)}}}function R(e){return 0===e.indexOf(f.apiUrl)||0<e.indexOf("favicon.ico")||0===e.indexOf("about:blank")||"j"===e[0]&&1===e.indexOf("avascript:")||0===e.indexOf("chrome-extension://")||0===e.indexOf("res://")||0===e.indexOf("file://")}function k(e){for(var t in e)"NaN"!==e[t]&&!Number.isNaN(e[t])||(e[t]=0);return e}function T(e){return Math.round(Math.pow(36,e+1)-Math.random()*Math.pow(36,e)).toString(36).slice(1)}function A(e,t){return"object"==typeof ie.performance&&(!e||typeof ie.performance[e]===t)}function x(e){return A("now","function")?ie.performance.now():e}function C(e){return Math.min(e,3e5)}function O(e,t){f.debugMode&&ie.console&&ie.console.log&&(t?ie.console.log(e,t):ie.console.log(e))}function N(e){return M({sessionId:f.sessionId,requestId:f.requestId,timestamp:(new Date).toISOString(),type:"web_request_timing",user:f.user,version:f.version||"Not supplied",device:ie.raygunUserAgent,client:{name:"raygun4js",version:"3.1.0"},tags:f.tags,data:e})}function L(e){e="id|"+e+"×tamp|"+(new Date).toISOString();ae.Utilities.localStorageAvailable()?localStorage.setItem(f.cookieName,e):ae.Utilities.createCookie(f.cookieName,e,null,f.setCookieAsSecure)}function D(){var e;return ae.Utilities.localStorageAvailable()&&null!==(e=localStorage.getItem(f.cookieName))||(ae.Utilities.sessionStorageAvailable()&&null!==(e=sessionStorage.getItem(f.cookieName))?L(e):null!==(e=ae.Utilities.readCookie(f.cookieName))&&ae.Utilities.localStorageAvailable()&&(ae.Utilities.clearCookie(f.cookieName),localStorage.setItem(f.cookieName,e))),e}function B(e,t){e=e.split(/[|&]/);return"id"===t?e[1]:"timestamp"===t?e[3]:void 0}function re(e){return 0===e.duration?c.CachedChildAsset:c.ChildAsset}function M(e){return Y&&!e.hasOwnProperty("viewport")&&(e.viewport=ae.Viewport.getViewportDimensions()),e}this.Utilities.getTimingDuration=U,this.Utilities.isCustomTimingMeasurement=w,this.Utilities.getCustomTimingMeasurement=S,this.Utilities.createCustomTimingMeasurement=E,a.updateStorageTimestamp=function(){var e=D(),t=!1;!(t=e?o(e):t)&&e||(f.sessionId=T(32)),L(f.sessionId),t&&n()}}},{}],9:[function(e,t,n){!function(o,s){"use strict";var u,t,i;o&&o.event&&o.event.add&&(u=o.event.add,o.event.add=function(e,t,n,r,i){var a;return"function"!=typeof n&&"function"!=typeof n.handler||(n.handler?(a=n.handler,n.handler=s.wrap(n.handler)):(a=n,n=s.wrap(n)),a.guid?n.guid=a.guid:n.guid=a.guid=o.guid++),u.call(this,e,t,n,r,i)},t=o.fn.ready,o.fn.ready=function(e){return t.call(this,s.wrap(e))},i=o.ajax,o.ajax=function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};for(var n,r=["complete","error","success"];n=r.pop();)o.isFunction(t[n])&&(t[n]=s.wrap(t[n]));try{return e?i.call(this,e,t):i.call(this,t)}catch(e){throw s.report(e),e}})}(window.jQuery,window.TraceKit)},{}],10:[function(e,t,n){window.raygunErrorUtilitiesFactory=function(e,t){function n(e){return!s.isNil(e.line)&&0<e.line||!s.isNil(e.column)&&0<e.column||!(s.isNil(e.url)||-1!==i.indexOf(e.url)&&"?"===e.func)}var r="Script error",o=e&&e.location?e.location:{host:null,toString:function(){return null}},i=o.toString(),s=t.Utilities;return{isScriptError:function(e,t){var n=r;return e.message?n=e.message:t&&t.status&&(n=t.status),s.isNil(n)&&(n=r),!(s.isReactNative()||"function"!=typeof n.substring||n.substring(0,r.length)!==r||s.isNil(e.stack[0].url)||-1!==e.stack[0].url.indexOf(o.host)||0!==e.stack[0].line&&"?"!==e.stack[0].func)},isBrowserExtensionError:function(e){e=e.stack;return!s.isEmpty(e)&&s.any(e,function(e){var e=e.url;return!s.isNil(e)&&(0===(e=e).indexOf("chrome-extension://")||0===e.indexOf("moz-extension://")||0===e.indexOf("safari-extension://")||0===e.indexOf("safari-web-extension://"))})},isValidStackTrace:function(e){var t=e.stack;return!s.isNil(e.message)&&!s.isEmpty(t)&&s.any(t,n)},stackTraceHasValidDomain:function(e,t){for(var n=!1,r=0;!n&&e.stack&&r<e.stack.length;r++){var i=e.stack[r];if(!s.isNil(i)&&!s.isNil(i.url)){for(var a in t)t.hasOwnProperty(a)&&-1<i.url.indexOf(t[a])&&(n=!0);-1<i.url.indexOf(o.host)&&(n=!0)}}return n}}}},{}],11:[function(e,t,n){window.raygunUtilityFactory=function(d,n){var r,e={getUuid:function(){function e(e){var t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return e()+e(!0)+e(!0)+e()},createCookie:function(e,t,n,r){var i;this.isReactNative()||(n=n?((i=new Date).setTime(i.getTime()+60*n*60*1e3),"; expires="+i.toGMTString()):"",document.cookie=e+"="+t+n+"; path=/"+(r?"; secure":""))},readCookie:function(e){if(this.isReactNative())return"none";for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},clearCookie:function(e){this.isReactNative()||this.createCookie(e,"",-1)},log:function(e,t){n.Options._debugMode&&d.console&&d.console.log&&(d.console.log(e),t)&&d.console.log(t)},isApiKeyConfigured:function(){return!(!n.Options._raygunApiKey||""===n.Options._raygunApiKey)||(n.Utilities.log("Raygun API key has not been configured."),!1)},isReactNative:function(){return"undefined"==typeof document&&"undefined"!=typeof __DEV__},defaultReactNativeGlobalHandler:function(e,t){"function"==typeof r&&r(e,t)},localStorageAvailable:function(){try{return"localStorage"in d&&null!==d.localStorage}catch(e){return!1}},sessionStorageAvailable:function(){try{return"sessionStorage"in d&&null!==d.sessionStorage}catch(e){return!1}},truncateURL:function(e){var t,n,r=e,e=e.split("//")[1];return e&&(t=e.indexOf("?"),t=(e=e.toString().substring(0,t)).split("/").slice(0,4).join("/"),n=e.substring(0,48),(r=t.length<n.length?t:n)!==e)&&(r+=".."),r},merge:function(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)r[n]=t[n];return r},mergeMutate:function(e,t){for(var n in t)e[n]=t[n];return e},mergeArray:function(e,t){return null!=t?e.concat(t):e.slice(0)},forEach:function(e,t){for(var n=0;n<e.length;n++)t.call(null,n,e[n])},isEmpty:function(e){if(!this.isNil(e)){if("string"==typeof e||e instanceof Array)return 0===e.length;for(var t in e)if(e.hasOwnProperty(t))return!1}return!0},isNil:function(e){return null==e},contains:function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},getRandomInt:function(){return Math.floor(9007199254740992*Math.random())},parseUrl:function(e,t){function n(e){return!isNaN(parseFloat(e))&&isFinite(e)}var r=e,e=t;if("undefined"!=typeof document){t=e||d.location.toString();if(!r)return t;r=r.toString(),"//"===t.substring(0,2)?t="http:"+t:1===t.split("://").length&&(t="http://"+t);var i={auth:""},a=(1===(a=(e=t.split("/"))[2].split("@")).length?a[0]:(i.auth=a[0],a[1])).split(":"),a=(i.protocol=e[0],i.hostname=a[0],i.port=a[1]||("https"===i.protocol.split(":")[0].toLowerCase()?"443":"80"),i.pathname=(3<e.length?"/":"")+e.slice(3,e.length).join("/").split("?")[0].split("#")[0],i.pathname),e=("/"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1)),i.hostname),o=e.split("."),a=a.split("/");if("hostname"===r)return e;if("domain"===r)return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(e)?e:o.slice(-2).join(".");if("sub"===r)return o.slice(0,o.length-2).join(".");if("port"===r)return i.port;if("protocol"===r)return i.protocol.split(":")[0];if("auth"===r)return i.auth;if("user"===r)return i.auth.split(":")[0];if("pass"===r)return i.auth.split(":")[1]||"";if("path"===r)return i.pathname;if("."===r.charAt(0)){if(n(r=r.substring(1)))return o[(r=parseInt(r,10))<0?o.length+r:r-1]||""}else{if(n(r))return a[(r=parseInt(r,10))<0?a.length+r:r]||"";if("file"===r)return a.slice(-1)[0];if("filename"===r)return a.slice(-1)[0].split(".")[0];if("fileext"===r)return a.slice(-1)[0].split(".")[1]||"";if("?"===r.charAt(0)||"#"===r.charAt(0)){var s,u=t;if("?"===r.charAt(0)?u=(u.split("?")[1]||"").split("#")[0]:"#"===r.charAt(0)&&(u=u.split("#")[1]||""),!r.charAt(1))return u;r=r.substring(1);for(var c=0,l=(u=u.split("&")).length;c<l;c++)if((s=u[c].split("="))[0]===r)return s[1]||"";return null}}}return""},enhance:function(e,t,n){var r=e[t];return e[t]=function(){n.apply(this,arguments),"function"==typeof r&&r.apply(this,arguments)},function(){e[t]=r}},addEventHandler:function(e,t,n,r){var i=r||!1;return e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n,function(){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=function(){}}},nodeText:function(e){var t=e.textContent||e.innerText||"";return t=(t=-1!==["submit","button"].indexOf(e.type)?e.value||t:t).replace(/^\s+|\s+$/g,"")},nodeSelector:function(e){var t=[e.tagName];return e.id&&t.push("#"+e.id),e.className&&e.className.length&&t.push("."+e.className.split(" ").join(".")),t.join("")},truncate:function(e,t){return e.length>t?e.slice(0,t-"(...)".length)+"(...)":e},getOrigin:function(){return d.location.origin||d.location.protocol+"//"+d.location.hostname+(d.location.port?":"+d.location.port:"")},resolveFullUrl:function(e){var t,n;return(e=e&&0===e.indexOf("//")?d.location.protocol+e:e)&&d.location.pathname&&-1===e.indexOf("://")?(t=this.getOrigin(),0!==e.indexOf("/")?((n=d.location.pathname.split("/")).pop(),t+n.join("/")+"/"+e):t+e):e},removeFromArray:function(e,t){for(var n=[],r=0;r<e.length;r++)e[r]!==t&&n.push(e[r]);return n},isIE:function(){return-1<d.navigator.userAgent.indexOf("Trident")||-1<d.navigator.userAgent.indexOf("MSIE")},any:function(e,t){if(!this.isEmpty(e))for(var n=0;n<e.length;n++)if(!0===t(e[n]))return!0;return!1}};return e.isReactNative()&&!0!==__DEV__&&d.ErrorUtils&&d.ErrorUtils.getGlobalHandler&&(r=d.ErrorUtils.getGlobalHandler()),e}},{}],12:[function(e,t,n){window.raygunViewportFactory=function(n,r,e){"use strict";function i(e){return!a.isNil(e)&&!isNaN(e)&&0<e}var a=e.Utilities,o={width:null,height:null};return{getViewportDimensions:function(){var e,t;return!a.isNil(r)&&!a.isNil(n)&&(e=Math.max(r.documentElement.clientWidth||0,n.innerWidth||0),t=Math.max(r.documentElement.clientHeight||0,n.innerHeight||0),i(e)||i(t))?{width:e,height:t}:o}}}},{}],13:[function(e,t,n){window.raygunUserAgent=navigator.userAgent,window.raygunUserAgentData=window.navigator.userAgentData||null,window.raygunUserAgentDataStatus=1,setTimeout(function(){1===window.raygunUserAgentDataStatus&&(window.raygunUserAgentDataStatus=3)},200),window&&window.navigator&&window.navigator.userAgentData&&window.navigator.userAgentData.getHighEntropyValues&&window.navigator.userAgentData.getHighEntropyValues(["platformVersion","fullVersionList"]).then(function(e){window.raygunUserAgentData=e,window.raygunUserAgent=function(e){if(window.raygunUserAgentData){"Windows"===window.raygunUserAgentData.platform&&(t=(window.raygunUserAgentData.platformVersion||"").split("."),13<=(parseInt(t[0],10)||0))&&(e=e.replace("Windows NT 10.0","Windows NT 11.0"));var t,n=window.raygunUserAgentData.fullVersionList;if(n)for(var r=/Chrome\/(\d+)\.(\d+)\.(\d+)\.(\d+)/i,i=/Edg\/(\d+)\.(\d+)\.(\d+)\.(\d+)/i,a=0;a<n.length;a++){var o=n[a].version,s=n[a].brand;"Chromium"===s&&(e=e.replace(r,"Chrome/"+o)),"Microsoft Edge"===s&&(e=e.replace(i,"Edg/"+o))}}return e}(window.raygunUserAgent),window.raygunUserAgentDataStatus=2},function(e){window.console.error("Error calling getHighEntropyValues: ",e)})},{}],14:[function(e,t,n){function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){return void 0===e}function s(e,t){var n=null;if(!t||A.collectWindowErrors){for(var r in o)if(m(o,r))try{o[r].apply(null,[e].concat(C.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function r(e,t,n,r,i){var a,o=null;return i?o=A.computeStackTrace(i):R?(A.computeStackTrace.augmentStackTraceWithInitialElement(R,t,n,e),o=R,l=R=null):((a={url:t,line:n,column:r}).func=A.computeStackTrace.guessFunctionName(a.url,a.line),a.context=A.computeStackTrace.gatherContext(a.url,a.line),o={mode:"onerror",message:e,url:document.location.href,stack:[a],useragent:S.raygunUserAgent}),s(o,"from window.onerror"),!!c&&c.apply(this,arguments)}function i(e){var t;if("undefined"!=typeof document&&(t=C.call(arguments,1)),R){if(l===e)return;var n=R;l=R=null,s.apply(null,[n,null].concat(t))}var r=A.computeStackTrace(e);if(R=r,l=e,S.setTimeout(function(){l===e&&(l=R=null,s.apply(null,[r,null].concat(t)))},r.incomplete?2e3:0),!E.Utilities.isReactNative())throw e}function y(e){var t,n;return m(T,e)||(t="",e=e||"",n="undefined"!=typeof document?document.domain:S.location.hostname,e.indexOf&&-1!==e.indexOf(n)&&(t="string"!=typeof e?[]:""),T[e]=t?t.split("\n"):[]),T[e]}function v(e,t){var n,r=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",o=y(e);if(o.length)for(var s=0;s<10;++s)if(!u(a=o[t-s]+a)){if(n=i.exec(a))return n[1];if(n=r.exec(a))return n[1]}return"?"}function b(e,t){var n=y(e);if(!n.length)return null;var r=[],e=Math.floor(A.linesOfContext/2),i=e+A.linesOfContext%2,e=Math.max(0,t-e-1),a=Math.min(n.length,t+i-1);--t;for(var o=e;o<a;++o)u(n[o])||r.push(n[o]);return 0<r.length?r:null}function d(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function U(e){return d(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function w(e,t){for(var n,r,i=0,a=t.length;i<a;++i)if((n=y(t[i])).length&&(n=n.join("\n"),r=e.exec(n)))return{url:t[i],line:n.substring(0,r.index).split("\n").length,column:r.index-n.lastIndexOf("\n",r.index)-1};return null}function p(e,t,n){var t=y(t),e=new RegExp("\\b"+d(e)+"\\b");return--n,t&&t.length>n&&(e=e.exec(t[n]))?e.index:null}function f(e,t,n,r){t={url:t,line:n};if(t.url&&t.line){e.incomplete=!1,t.func||(t.func=v(t.url,t.line)),t.context||(t.context=b(t.url,t.line));n=/ '([^']+)' /.exec(r);if(n&&(t.column=p(n[1],t.url,t.line)),0<e.stack.length&&e.stack[0].url===t.url){if(e.stack[0].line===t.line)return!1;if(!e.stack[0].line&&e.stack[0].func===t.func)return e.stack[0].line=t.line,e.stack[0].context=t.context,!1}return e.stack.unshift(t),e.partial=!0}return!(e.incomplete=!0)}function g(e,t){for(var n,r,i,a,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],u={},c=!1,l=g.caller;l&&!c;l=l.caller)if(l!==h&&l!==A.report){if(r={url:null,func:"?",line:null,column:null},l.name?r.func=l.name:(n=o.exec(l.toString()))&&(r.func=n[1]),void 0===r.func)try{r.func=n.input.substring(0,n.input.indexOf("{"))}catch(e){}(i=function(e){for(var t,n,r,i=[S.location.href],a=document.getElementsByTagName("script"),e=""+e,o=0;o<a.length;++o){var s=a[o];s.src&&i.push(s.src)}if(n=w((t=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(e))?(n=t[1]?"\\s+"+t[1]:"",u=t[2].split(",").join("\\s*,\\s*"),r=d(t[3]).replace(/;$/,";?"),new RegExp("function"+n+"\\s*\\(\\s*"+u+"\\s*\\)\\s*{\\s*"+r+"\\s*}")):new RegExp(d(e).replace(/\s+/g,"\\s+")),i))return n;if(t=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(e)){var u=t[1];if(r=U(t[2]),n=w(new RegExp("on"+u+"=[\\'\"]\\s*"+r+"\\s*[\\'\"]","i"),i[0]))return n;if(n=w(new RegExp(r),i))return n}return null}(l))&&(r.url=i.url,r.line=i.line,"?"===r.func&&(r.func=v(r.url,r.line)),a=/ '([^']+)' /.exec(e.message||e.description))&&(r.column=p(a[1],i.url,i.line)),u[""+l]?c=!0:u[""+l]=!0,s.push(r)}t&&s.splice(0,t);t={mode:"callers",name:e.name,message:e.message,url:document.location.href,stack:s,useragent:S.raygunUserAgent};return f(t,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),t}function h(e,t){var n=null;t=null==t?0:+t;try{if(n=function(e){for(var t=e.stacktrace,n=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i,r=t?t.split("\n"):[],i=[],a=0,o=r.length;a<o;a+=2)if(s=n.exec(r[a])){var s={line:+s[1],column:+s[2],func:s[3]||s[4],args:s[5]?s[5].split(","):[],url:s[6]};if(!s.func&&s.line&&(s.func=v(s.url,s.line)),s.line)try{s.context=b(s.url,s.line)}catch(e){}s.context||(s.context=[r[a+1]]),i.push(s)}return i.length?{mode:"stacktrace",name:e.name,message:e.message,url:document.location.href,stack:i,useragent:S.raygunUserAgent,stackstring:t}:null}(e))return n}catch(e){if(k)throw e}try{if(n=function(e){if(!e.stack)return null;var t,n=/^\s*at (.*?) ?\(((?:file|https?|\s*|blob|chrome-extension|native|webpack|ionic|capacitor|app|eval|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|ionic|capacitor|app|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=e.stack.split("\n"),o=[],s=/^(.*) is undefined$/.exec(e.message);if(E.Utilities.isReactNative())for(var u,c,l,d=/^(.*@)?.*\/[^\.]+(\.app|CodePush)\/?(.*)/,f=0;f<a.length;f++)null!==(l=d.exec(a[f]))&&(u=l[1]||"anonymous@",c=l[3],a[f]=u+"file://reactnative.local/"+c);for(var f=0,g=a.length;f<g;++f){if(l=r.exec(a[f]))t={url:l[3],func:l[1]||"?",args:l[2]?l[2].split(","):"",line:+l[4],column:l[5]?+l[5]:null};else{if(!(l=n.exec(a[f]))&&!(l=i.exec(a[f])))continue;t={url:l[2],func:l[1]||"?",line:+l[3],column:l[4]?+l[4]:null}}!t.func&&t.line&&(t.func=v(t.url,t.line)),"undefined"!=typeof document&&t.line&&(t.context=b(t.url,t.line)),o.push(t)}return o[0]&&o[0].line&&!o[0].column&&s?o[0].column=p(s[1],o[0].url,o[0].line):o[0].column||void 0===e.columnNumber||(o[0].column=e.columnNumber+1),o.length?{mode:"stack",name:e?e.name:"",message:e?e.message:"",url:"undefined"!=typeof document?document.location.href:"",stack:o,useragent:navigator?S.raygunUserAgent:"",stackstring:e&&e.stack?e.stack.toString():""}:null}(e))return n}catch(e){if(k)throw e}try{if(n=function(e){var t=e.message.split("\n");if(t.length<4)return null;var n,r,i=/^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,a=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,s=[],u=document.getElementsByTagName("script"),c=[];for(n in u)m(u,n)&&!u[n].src&&c.push(u[n]);for(n=2,r=t.length;n<r;n+=2){var l,d,f,g,p,h=null;(g=i.exec(t[n]))?h={url:g[2],func:g[3],line:+g[1]}:(g=a.exec(t[n]))?(h={url:g[3],func:g[4]},d=+g[1],(f=c[g[2]-1])&&(l=y(h.url))&&0<=(f=(l=l.join("\n")).indexOf(f.innerText))&&(h.line=d+l.substring(0,f).split("\n").length)):(g=o.exec(t[n]))&&(d=S.location.href.replace(/#.*$/,""),f=g[1],h={url:d,line:(l=w(new RegExp(U(t[n+1])),[d]))?l.line:f,func:""}),h&&(h.func||(h.func=v(h.url,h.line)),p=(g=b(h.url,h.line))?g[Math.floor(g.length/2)]:null,g&&p.replace(/^\s*/,"")===t[n+1].replace(/^\s*/,"")?h.context=g:h.context=[t[n+1]],s.push(h))}return s.length?{mode:"multiline",name:e.name,message:t[0],url:document.location.href,stack:s,useragent:S.raygunUserAgent}:null}(e))return n}catch(e){if(k)throw e}try{if(n=g(e,t+1))return n}catch(e){if(k)throw e}return{tracekitResult:"failedToComputeAnyStackTrace"}}var S,E,c,a,o,l,R,k,T,A,x,C;S=window,A={},x=S.TraceKit,C=[].slice,A.setRaygun=function(e){E=E||e},A.noConflict=function(){return S.TraceKit=x,A},A.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw A.report(e),e}}},A.report=(o=[],R=l=null,i.subscribe=function(e){!0!==a&&(c=S.onerror,S.onerror=r,a=!0),o.push(e)},i.unsubscribe=function(e){for(var t=o.length-1;0<=t;--t)o[t]===e&&o.splice(t,1)},i),A.computeStackTrace=(k=!1,T={},h.augmentStackTraceWithInitialElement=f,h.guessFunctionName=v,h.gatherContext=b,h.ofCaller=function(t){t=1+(null==t?0:+t);try{throw new Error}catch(e){return h(e,t+1)}},h),A.extendToAsynchronousCallbacks=function(){function e(e){var n=S[e];S[e]=function(){var e=C.call(arguments),t=e[0];return"function"==typeof t&&(e[0]=A.wrap(t)),n.apply?n.apply(this,e):n(e[0],e[1])}}e("setTimeout"),e("setInterval")},A.remoteFetching||(A.remoteFetching=!0),A.collectWindowErrors||(A.collectWindowErrors=!0),(!A.linesOfContext||A.linesOfContext<1)&&(A.linesOfContext=11),S.TraceKit=A},{}]},{},[13,14,9,2,11,10,6,12,3,7,4,8,5]); //# sourceMappingURL=raygun.min.js.map