import{c as Ne,g as br}from"./_commonjsHelpers-de833af9.js";var Ye={exports:{}};(function(et,mr){(function(_,le){et.exports=le()})(Ne,function(){var _=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ne<"u"?Ne:typeof self<"u"?self:{};function le(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ce(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}),r}var Se={},L={},de={},I={},J="";function tt(t){var e=t.split(` `);return e.reduce(function(r,i){var o=ot(i)||at(i)||ct(i)||gt(i)||lt(i);return o&&r.push(o),r},[])}var rt=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nt=/\((\S*)(?::(\d+))(?::(\d+))\)/;function ot(t){var e=rt.exec(t);if(!e)return null;var r=e[2]&&e[2].indexOf("native")===0,i=e[2]&&e[2].indexOf("eval")===0,o=nt.exec(e[2]);return i&&o!=null&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]),{file:r?null:e[2],methodName:e[1]||J,arguments:r?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}var it=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function at(t){var e=it.exec(t);return e?{file:e[2],methodName:e[1]||J,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var ut=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,st=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ct(t){var e=ut.exec(t);if(!e)return null;var r=e[3]&&e[3].indexOf(" > eval")>-1,i=st.exec(e[3]);return r&&i!=null&&(e[3]=i[1],e[4]=i[2],e[5]=null),{file:e[3],methodName:e[1]||J,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}var ft=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function lt(t){var e=ft.exec(t);return e?{file:e[3],methodName:e[1]||J,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}:null}var dt=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function gt(t){var e=dt.exec(t);return e?{file:e[2],methodName:e[1]||J,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var ht=Object.freeze({__proto__:null,parse:tt}),vt=Ce(ht);(function(t){var e=_&&_.__createBinding||(Object.create?function(u,c,s,l){l===void 0&&(l=s);var g=Object.getOwnPropertyDescriptor(c,s);(!g||("get"in g?!c.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return c[s]}}),Object.defineProperty(u,l,g)}:function(u,c,s,l){l===void 0&&(l=s),u[l]=c[s]}),r=_&&_.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=_&&_.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&e(c,u,s);return r(c,u),c},o=_&&_.__awaiter||function(u,c,s,l){function g(p){return p instanceof s?p:new s(function(C){C(p)})}return new(s||(s=Promise))(function(p,C){function O(H){try{k(l.next(H))}catch(G){C(G)}}function U(H){try{k(l.throw(H))}catch(G){C(G)}}function k(H){H.done?p(H.value):g(H.value).then(O,U)}k((l=l.apply(u,c||[])).next())})},n=_&&_.__generator||function(u,c){var s={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,g,p,C;return C={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function O(k){return function(H){return U([k,H])}}function U(k){if(l)throw new TypeError("Generator is already executing.");for(;s;)try{if(l=1,g&&(p=k[0]&2?g.return:k[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,k[1])).done)return p;switch(g=0,p&&(k=[k[0]&2,p.value]),k[0]){case 0:case 1:p=k;break;case 4:return s.label++,{value:k[1],done:!1};case 5:s.label++,g=k[1],k=[0];continue;case 7:k=s.ops.pop(),s.trys.pop();continue;default:if(p=s.trys,!(p=p.length>0&&p[p.length-1])&&(k[0]===6||k[0]===2)){s=0;continue}if(k[0]===3&&(!p||k[1]>p[0]&&k[1]-1),u.method&&(s=u.method.toLowerCase().indexOf("@honeybadger-io")>-1),c||s}t.DEFAULT_BACKTRACE_SHIFT=3;function x(u){for(var c=0,s=0;s"){var g=u[s+1];if(g&&A(g)){c++;continue}}break}return c||t.DEFAULT_BACKTRACE_SHIFT}t.calculateBacktraceShift=x;function _e(u,c){if(u.cause){for(var s=[],l=u;s.length<3&&(l=l.cause);)s.push({class:l.name,message:l.message,backtrace:typeof l.stack=="string"?E(l.stack,!1,c):null});return s}return[]}t.getCauses=_e;function me(u,c){return o(this,void 0,void 0,function(){var s,l,g,p;return n(this,function(C){switch(C.label){case 0:if(s=[],!c||!u||!u.length)return[2,s];l=0,C.label=1;case 1:return u.length?(g=u.splice(0)[l],[4,c(g.file)]):[3,3];case 2:return p=C.sent(),s[l]=N(p,g.number),l++,[3,1];case 3:return[2,s]}})})}t.getSourceForBacktrace=me;function we(u,c){for(var s=[],l=!0,g=0,p=c.length;g"u")}function p(O,U){if(U===void 0&&(U=0),U>=c)return"[DEPTH]";if(!g(O))return Object.prototype.toString.call(O);if(l(O))return"[RECURSION]";if(Array.isArray(O))return O.map(function(yr){return C(yr,U+1)});if(typeof O=="object"){var k={};for(var H in O){var G=O[H];Object.prototype.hasOwnProperty.call(O,H)&&H!=null&&G!=null&&(k[H]=C(G,U+1))}return k}return O}function C(O,U){U===void 0&&(U=0);try{return p(O,U)}catch(k){return"[ERROR] ".concat(k)}}return C(u)}t.sanitize=Ee;function ke(u){var c=function(s){return function(){for(var l,g=[],p=0;p"):c.push("");try{s=s.caller}catch{break}}return c.join(` `)}t.generateStackTrace=y;function w(u,c){if(!b("Object",u))return;b("Array",c)||(c=[]);var s=[];function l(g){var p,C;if(b("Object",g)||b("Array",g)){if(s.indexOf(g)!==-1)return"[CIRCULAR DATA STRUCTURE]";s.push(g)}if(b("Object",g)){C={};for(p in g)m(p,c)?C[p]="[FILTERED]":C[p]=l(g[p]);return C}return b("Array",g)?g.map(function(O){return l(O)}):b("Function",g)?"[FUNC]":g}return l(u)}t.filter=w;function m(u,c){for(var s=0;s"u"&&(Z[g]=0),Z[g]%l!==0){Z[g]++;return}var p="Deprecation warning: ".concat(c," has been deprecated; please use ").concat(s," instead.");u.warn(p),Z[g]++}t.logDeprecatedMethod=pr})(I),Object.defineProperty(de,"__esModule",{value:!0});var je=I;function pt(t){return t===void 0&&(t=(0,je.globalThisOrWindow)()),{shouldReloadOnConfigure:!1,load:function(e){function r(){return e.config.eventsEnabled}r()&&(0,je.instrumentConsole)(t,function(i,o){if(r()&&o.length!==0){var n={severity:i};typeof o[0]=="string"?(n.message=o[0],n.args=o.slice(1)):n.args=o,e.event("log",n)}})}}}de.default=pt;var Y={},K={};Object.defineProperty(K,"__esModule",{value:!0}),K.GlobalStore=void 0;var yt=I,bt=function(){function t(e,r){this.contents=e,this.breadcrumbsLimit=r}return t.create=function(e,r){return new t(e,r)},t.prototype.available=function(){return!0},t.prototype.getContents=function(e){var r=e?this.contents[e]:this.contents;return JSON.parse(JSON.stringify(r))},t.prototype.setContext=function(e){this.contents.context=(0,yt.merge)(this.contents.context,e||{})},t.prototype.addBreadcrumb=function(e){this.contents.breadcrumbs.length==this.breadcrumbsLimit&&this.contents.breadcrumbs.shift(),this.contents.breadcrumbs.push(e)},t.prototype.clear=function(){this.contents.context={},this.contents.breadcrumbs=[]},t.prototype.run=function(e){return e()},t}();K.GlobalStore=bt;var ee={};class _t{static parse(e){return e.trim().split(` `).map(i=>JSON.parse(i))}static stringify(e){return e.map(r=>JSON.stringify(r)).join(` `)}}var mt=Object.freeze({__proto__:null,NdJson:_t}),wt=Ce(mt),z={};Object.defineProperty(z,"__esModule",{value:!0}),z.CONFIG=void 0,z.CONFIG={apiKey:null,endpoint:"https://api.honeybadger.io",environment:null,hostname:null,projectRoot:null,component:null,action:null,revision:null,reportData:null,breadcrumbsEnabled:!0,eventsEnabled:!1,maxBreadcrumbs:40,maxObjectDepth:8,logger:console,developmentEnvironments:["dev","development","test"],debug:!1,tags:null,enableUncaught:!0,enableUnhandledRejection:!0,afterUncaught:function(){return!0},filters:["creditcard","password"],__plugins:[]};var te=_&&_.__assign||function(){return te=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]1&&(e+=":nth-child(".concat(Array.prototype.indexOf.call(i,t)+1,")")),e}R.stringNameOfElement=Pe;function Re(t){var e=Pe(t);if(t.parentNode&&t.parentNode.tagName){var r=Re(t.parentNode);if(r.length>0)return"".concat(r," > ").concat(e)}return e}R.stringSelectorOfElement=Re;function Dt(t){var e=t.textContent||t.innerText||"";return!e&&(t.type==="submit"||t.type==="button")&&(e=t.value),qt(e.trim(),300)}R.stringTextOfElement=Dt;function It(){var t=Bt();if(!t.fetch)return!1;if(He(t.fetch))return!0;if(typeof document>"u")return!1;try{var e=document.createElement("iframe");e.style.display="none",document.head.appendChild(e);var r=e.contentWindow.fetch&&He(e.contentWindow.fetch);return document.head.removeChild(e),r}catch(i){console&&console.warn&&console.warn("failed to detect native fetch via iframe: "+i)}return!1}R.nativeFetch=It;function He(t){return t.toString().indexOf("native")!==-1}function ge(t){var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)||{};return{protocol:e[2],host:e[4],pathname:e[5]}}R.parseURL=ge;function Mt(t){var e=ge(t),r=ge(document.URL);return!e.host||!e.protocol||e.protocol===r.protocol&&e.host===r.host?e.pathname:"".concat(e.protocol,"://").concat(e.host).concat(e.pathname)}R.localURLPathname=Mt;function $t(t){var e={};return t.split(/[;,]\s?/).forEach(function(r){var i=r.split("=",2),o=i[0],n=i[1];e[o]=n}),e}R.decodeCookie=$t;function Wt(t){if(typeof t=="object"){var e=[];for(var r in t)e.push(r+"="+t[r]);return e.join(";")}}R.encodeCookie=Wt;function xt(t){try{var e=t.parentNode.childNodes,r=[];return Array.prototype.forEach.call(e,function(i){i.tagName&&i.tagName===t.tagName&&r.push(i)}),r}catch{return[]}}function qt(t,e){return t.length>e&&(t=t.substr(0,e)+"..."),t}R.preferCatch=function(){var t=!0;if(typeof window>"u")return t;if(window.atob||(t=!1),window.ErrorEvent)try{new window.ErrorEvent("").colno===0&&(t=!1)}catch{}return t}();var M={};Object.defineProperty(M,"__esModule",{value:!0}),M.onError=M.ignoreNextOnError=void 0;var he=L,Gt=he.Util.instrument,Jt=he.Util.makeNotice,Kt=he.Util.globalThisOrWindow,re=0,Ae;function zt(){re+=1,clearTimeout(Ae),Ae=setTimeout(function(){re=0})}M.ignoreNextOnError=zt;function Vt(t){return t===void 0&&(t=Kt()),{load:function(e){Gt(t,"onerror",function(r){var i=function(o,n,f,h,d){if(e.logger.debug("window.onerror callback invoked",arguments),re>0){e.logger.debug("Ignoring window.onerror (error likely reported earlier)",arguments),re-=1;return}if(f===0&&/Script error\.?/.test(o)){e.config.enableUncaught&&e.logger.warn("Ignoring cross-domain script error: enable CORS to track these types of errors",arguments);return}var a=Jt(d);a.name||(a.name="window.onerror"),a.message||(a.message=o),a.stack||(a.stack=[a.message,` at ? (`,n||"unknown",":",f||0,":",h||0,")"].join("")),e.addBreadcrumb(a.name==="window.onerror"||!a.name?"window.onerror":"window.onerror: ".concat(a.name),{category:"error",metadata:{name:a.name,message:a.message,stack:a.stack}}),e.config.enableUncaught&&e.notify(a)};return function(o,n,f,h,d){return i(o,n,f,h,d),typeof r=="function"?r.apply(t,arguments):!1}})}}}M.onError=Vt;var ve={};Object.defineProperty(ve,"__esModule",{value:!0});var Fe=L,Xt=Fe.Util.instrument,Qt=Fe.Util.globalThisOrWindow;function Zt(t){return t===void 0&&(t=Qt()),{load:function(e){e.config.enableUnhandledRejection&&Xt(t,"onunhandledrejection",function(r){function i(o){var n;if(e.logger.debug("window.onunhandledrejection callback invoked",arguments),!!e.config.enableUnhandledRejection){var f=o.reason;if(f instanceof Error){var h="unknown",d=0,a="".concat(f.message,` at ? (`).concat(h,":").concat(d,")"),v=f.stack||a,E={name:f.name,message:"UnhandledPromiseRejectionWarning: ".concat(f),stack:v};e.addBreadcrumb("window.onunhandledrejection: ".concat(E.name),{category:"error",metadata:E}),e.notify(E);return}var A=typeof f=="string"?f:(n=JSON.stringify(f))!==null&&n!==void 0?n:"Unspecified reason";e.notify({name:"window.onunhandledrejection",message:"UnhandledPromiseRejectionWarning: ".concat(A)})}}return function(o){i(o),typeof r=="function"&&r.apply(this,arguments)}})}}}ve.default=Zt;var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var ne=L,$=R,Yt=ne.Util.sanitize,W=ne.Util.instrument,er=ne.Util.instrumentConsole,tr=ne.Util.globalThisOrWindow;function rr(t){return t===void 0&&(t=tr()),{load:function(e){function r(i){return e.config.breadcrumbsEnabled===!0?!0:i?e.config.breadcrumbsEnabled[i]===!0:e.config.breadcrumbsEnabled!==!1}(function(){if(!r("console"))return;function i(o){return Array.isArray(o)?o.map(function(n){try{return String(n)}catch{return"[unknown]"}}).join(" "):""}er(t,function(o,n){var f=i(n),h={category:"log",metadata:{level:o,arguments:Yt(n,3)}};e.addBreadcrumb(f,h)})})(),function(){r("dom")&&typeof t.addEventListener=="function"&&t.addEventListener("click",function(i){var o,n,f;try{o=(0,$.stringNameOfElement)(i.target),n=(0,$.stringSelectorOfElement)(i.target),f=(0,$.stringTextOfElement)(i.target)}catch{o="UI Click",n="[unknown]",f="[unknown]"}o.length!==0&&e.addBreadcrumb(o,{category:"ui.click",metadata:{selector:n,text:f,event:i}})},!!t.location)}(),function(){r("network")&&(typeof XMLHttpRequest>"u"||(W(XMLHttpRequest.prototype,"open",function(i){return function(){var o=this,n=arguments[1],f=typeof n=="string"?n:String(n),h=typeof arguments[0]=="string"?arguments[0].toUpperCase():arguments[0],d="".concat(h," ").concat((0,$.localURLPathname)(f));this.__hb_xhr={type:"xhr",method:h,url:f,message:d},typeof i=="function"&&i.apply(o,arguments)}}),W(XMLHttpRequest.prototype,"send",function(i){return function(){var o=this;function n(){if(o.readyState===4){var f=void 0;o.__hb_xhr&&(o.__hb_xhr.status_code=o.status,f=o.__hb_xhr.message,delete o.__hb_xhr.message),e.addBreadcrumb(f||"XMLHttpRequest",{category:"request",metadata:o.__hb_xhr})}}"onreadystatechange"in o&&typeof o.onreadystatechange=="function"?W(o,"onreadystatechange",function(f){return function(){n(),typeof f=="function"&&f.apply(this,arguments)}}):o.onreadystatechange=n,typeof i=="function"&&i.apply(o,arguments)}})))}(),function(){r("network")&&(0,$.nativeFetch)()&&W(t,"fetch",function(i){return function(){var o=arguments[0],n="GET",f;typeof o=="string"?f=o:"Request"in t&&o instanceof Request?(f=o.url,o.method&&(n=o.method)):f=String(o),arguments[1]&&arguments[1].method&&(n=arguments[1].method),typeof n=="string"&&(n=n.toUpperCase());var h="".concat(n," ").concat(typeof document>"u"?f:(0,$.localURLPathname)(f)),d={type:"fetch",method:n,url:f};return i.apply(this,arguments).then(function(a){return d.status_code=a.status,e.addBreadcrumb(h,{category:"request",metadata:d}),a}).catch(function(a){throw e.addBreadcrumb("fetch error",{category:"error",metadata:d}),a})}})}(),function(){if(!r("navigation")||t.location==null)return;var i=t.location.href;function o(f,h){i=h,e.addBreadcrumb("Page changed",{category:"navigation",metadata:{from:f,to:h}})}if(typeof addEventListener=="function"&&addEventListener("popstate",function(f){o(i,t.location.href)}),typeof t.history>"u")return;function n(f){return function(){var h=arguments.length>2?arguments[2]:void 0;return h&&o(i,String(h)),f.apply(this,arguments)}}W(t.history,"pushState",n),W(t.history,"replaceState",n)}()}}}pe.default=rr;var ye={};Object.defineProperty(ye,"__esModule",{value:!0});var Le=L,Be=Le.Util.instrument,nr=Le.Util.globalThisOrWindow;function or(t){return t===void 0&&(t=nr()),{load:function(e){(function(){function r(i){return function(o){return function(n,f){if(typeof n=="function"){var h=Array.prototype.slice.call(arguments,2);return n=e.__wrap(n,i),o(function(){n.apply(void 0,h)},f)}else return o(n,f)}}}Be(t,"setTimeout",r({component:"setTimeout"})),Be(t,"setInterval",r({component:"setInterval"}))})()}}}ye.default=or;var be={};Object.defineProperty(be,"__esModule",{value:!0});var De=L,Ie=De.Util.instrument,ir=De.Util.globalThisOrWindow;function ar(t){return t===void 0&&(t=ir()),{load:function(e){var r=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];r.forEach(function(i){var o=t[i]&&t[i].prototype;o&&Object.prototype.hasOwnProperty.call(o,"addEventListener")&&(Ie(o,"addEventListener",function(n){var f={component:"".concat(i,".prototype.addEventListener")};return function(h,d,a,v){try{d&&d.handleEvent!=null&&(d.handleEvent=e.__wrap(d.handleEvent,f))}catch(E){e.logger.error(E)}return n.call(this,h,e.__wrap(d,f),a,v)}}),Ie(o,"removeEventListener",function(n){return function(f,h,d,a){return n.call(this,f,h,d,a),n.call(this,f,e.__wrap(h),d,a)}}))})}}}be.default=ar;var oe={},ur=_&&_.__awaiter||function(t,e,r,i){function o(n){return n instanceof r?n:new r(function(f){f(n)})}return new(r||(r=Promise))(function(n,f){function h(v){try{a(i.next(v))}catch(E){f(E)}}function d(v){try{a(i.throw(v))}catch(E){f(E)}}function a(v){v.done?n(v.value):o(v.value).then(h,d)}a((i=i.apply(t,e||[])).next())})},sr=_&&_.__generator||function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,f;return f={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function h(a){return function(v){return d([a,v])}}function d(a){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(n=a[0]&2?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]"u"){this.logger.debug("global.document is undefined. Cannot attach script");return}if(this.isUserFeedbackUrlAlreadyVisible()){this.logger.debug("User feedback form is already visible");return}i.honeybadgerUserFeedbackOptions=ae(ae({},r),{apiKey:this.config.apiKey,endpoint:this.config.userFeedbackEndpoint,noticeId:e}),this.appendUserFeedbackTag(i,r)},t}();ie.BrowserFeedbackForm=hr,function(t){var e=_&&_.__extends||function(){var j=function(T,y){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,m){w.__proto__=m}||function(w,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(w[b]=m[b])},j(T,y)};return function(T,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");j(T,y);function w(){this.constructor=T}T.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),r=_&&_.__assign||function(){return r=Object.assign||function(j){for(var T,y=1,w=arguments.length;y0&&b[b.length-1])&&(N[0]===6||N[0]===2)){y=0;continue}if(N[0]===3&&(!b||N[1]>b[0]&&N[1]=this.config.maxErrors},T}(f.Client),q={name:"@honeybadger-io/js",url:"https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",version:"6.10.1"},se=function(){return typeof navigator<"u"?"Honeybadger JS Browser Client ".concat(q.version,"; ").concat(navigator.userAgent):"Honeybadger JS Browser Client ".concat(q.version,"; n/a; n/a")},V=new Te({__plugins:[(0,d.onError)(),(0,a.default)(),(0,E.default)(),(0,A.default)(),(0,v.default)(),f.Plugins.events()]});V.setNotifier(q);var ce=L;Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return ce.Types}}),t.default=V}(Se);var vr=le(Se);return vr})})(Ye);var _r=Ye.exports;const fe=br(_r);var We,xe,qe,Ge,Je,Ke,ze,Ve,Xe,Qe,Ze;(We=fe.config)!=null&&We.apiKey||(fe.configure({apiKey:"hbp_QNJckPTuMZVvKHtXz8DyZNtw6zCcD11OV9FE",environment:{}.RAILS_ENV,enableUncaught:!1,enableUnhandledRejection:!1,debug:!1}),(qe=(xe=window.Dribbble)==null?void 0:xe.JsConfig)!=null&&qe.user?fe.setContext({user_id:(Je=(Ge=window.Dribbble)==null?void 0:Ge.JsConfig)==null?void 0:Je.user.id,user_email:(ze=(Ke=window.Dribbble)==null?void 0:Ke.JsConfig)==null?void 0:ze.user.email,anonymous_id:(Xe=(Ve=window.Dribbble)==null?void 0:Ve.JsConfig)==null?void 0:Xe.user.anonymousId}):fe.setContext({anonymous_id:(Ze=(Qe=window.Dribbble)==null?void 0:Qe.JsConfig)==null?void 0:Ze.user.anonymousId}));export{fe as H}; //# sourceMappingURL=honey-badger-reporting-ca90d64a.js.map