This repository has been archived on 2022-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
-/Download/​​​ This blog is dead_files/aops_errors.js

4 lines
44 KiB
JavaScript

function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}
/*! Raven.js 3.26.4 (409f3b4) | github.com/getsentry/raven-js */!function(e){if("object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Raven=e()}}((function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return i(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){function r(e){this.name="RavenConfigError",this.message=e}r.prototype=new Error,r.prototype.constructor=r,t.exports=r},{}],2:[function(e,t,n){var r=e(5);t.exports={wrapMethod:function(e,t,n){var i=e[t],o=e;if(t in e){var a="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),s=r.safeJoin(e," "),u={level:a,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(s="Assertion failed: "+(r.safeJoin(e.slice(1)," ")||"console.assert"),u.extra.arguments=e.slice(1),n&&n(s,u)):n&&n(s,u),i&&Function.prototype.apply.call(i,o,e)}}}}},{5:5}],3:[function(e,t,n){(function(n){function r(){return+new Date}function i(e,t){return y(t)?function(n){return t(n,e)}:t}function o(){for(var e in this.a=!("object"!=("undefined"==typeof JSON?"undefined":_typeof(JSON))||!JSON.stringify),this.b=!g($),this.c=!g(X),this.d=null,this.e=null,this.f=null,this.g=null,this.h=null,this.i=null,this.j={},this.k={release:B.SENTRY_RELEASE&&B.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this.l={method:"POST",keepalive:!0,referrerPolicy:N()?"origin":""},this.m=0,this.n=!1,this.o=Error.stackTraceLimit,this.p=B.console||{},this.q={},this.r=[],this.s=r(),this.t=[],this.u=[],this.v=null,this.w=B.location,this.x=this.w&&this.w.href,this.y(),this.p)this.q[e]=this.p[e]}var a=e(6),s=e(7),u=e(8),c=e(1),l=e(5),f=l.isErrorEvent,h=l.isDOMError,p=l.isDOMException,d=l.isError,m=l.isObject,v=l.isPlainObject,g=l.isUndefined,y=l.isFunction,b=l.isString,k=l.isArray,E=l.isEmptyObject,x=l.each,w=l.objectMerge,S=l.truncate,j=l.objectFrozen,R=l.hasKey,O=l.joinRegExp,T=l.urlencode,C=l.uuid4,M=l.htmlTreeAsString,U=l.isSameException,L=l.isSameStacktrace,F=l.parseUrl,q=l.fill,A=l.supportsFetch,N=l.supportsReferrerPolicy,_=l.serializeKeysForMessage,D=l.serializeException,P=l.sanitize,I=e(2).wrapMethod,H="source protocol user pass host port path".split(" "),z=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/,B="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},$=B.document,X=B.navigator;o.prototype={VERSION:"3.26.4",debug:!1,TraceKit:a,config:function(e,t){var n=this;if(n.g)return this.z("error","Error: Raven has already been configured"),n;if(!e)return n;var r=n.k;t&&x(t,(function(e,t){"tags"===e||"extra"===e||"user"===e?n.j[e]=t:r[e]=t})),n.setDSN(e),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=O(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&O(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&O(r.whitelistUrls),r.includePaths=O(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=w(i,o):!1!==o&&(o=i),r.autoBreadcrumbs=o;var s={tryCatch:!0},u=r.instrument;return"[object Object]"==={}.toString.call(u)?u=w(s,u):!1!==u&&(u=s),r.instrument=u,a.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e.n&&(a.report.subscribe((function(){e.A.apply(e,arguments)})),e.k.captureUnhandledRejections&&e.B(),e.C(),e.k.instrument&&e.k.instrument.tryCatch&&e.D(),e.k.autoBreadcrumbs&&e.E(),e.F(),e.n=!0),Error.stackTraceLimit=e.k.stackTraceLimit,this},setDSN:function(e){var t=this,n=t.G(e),r=n.path.lastIndexOf("/"),i=n.path.substr(1,r);t.H=e,t.h=n.user,t.I=n.pass&&n.pass.substr(1),t.i=n.path.substr(r+1),t.g=t.J(n),t.K=t.g+"/"+i+"api/"+t.i+"/store/",this.y()},context:function(e,t,n){return y(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){function r(){var r=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(n&&y(n)&&n.apply(this,arguments);o--;)r[o]=a?i.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,r)}catch(s){throw i.L(),i.captureException(s,e),s}}var i=this;if(g(t)&&!y(e))return e;if(y(e)&&(t=e,e=void 0),!y(t))return t;try{if(t.M)return t;if(t.N)return t.N}catch(o){return t}for(var a in t)R(t,a)&&(r[a]=t[a]);return r.prototype=t.prototype,t.N=r,r.M=!0,r.O=t,r},uninstall:function(){return a.report.uninstall(),this.P(),this.Q(),this.R(),this.S(),Error.stackTraceLimit=this.o,this.n=!1,this},T:function(e){this.z("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},B:function(){return this.T=this.T.bind(this),B.addEventListener&&B.addEventListener("unhandledrejection",this.T),this},P:function(){return B.removeEventListener&&B.removeEventListener("unhandledrejection",this.T),this},captureException:function(e,t){if(t=w({trimHeadFrames:0},t||{}),f(e)&&e.error)e=e.error;else{if(h(e)||p(e)){var n=e.name||(h(e)?"DOMError":"DOMException"),r=e.message?n+": "+e.message:n;return this.captureMessage(r,w(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(d(e))e=e;else{if(!v(e))return this.captureMessage(e,w(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this.U(t,e),e=new Error(t.message)}}this.d=e;try{var i=a.computeStackTrace(e);this.V(i,t)}catch(o){if(e!==o)throw o}return this},U:function(e,t){var n=Object.keys(t).sort(),r=w(e,{message:"Non-Error exception captured with keys: "+_(n),fingerprint:[u(n)],extra:e.extra||{}});return r.extra.W=D(t),r},captureMessage:function(e,t){if(!this.k.ignoreErrors.test||!this.k.ignoreErrors.test(e)){var n,r=w({message:e+=""},t=t||{});try{throw new Error(e)}catch(i){n=i}n.name=null;var o=a.computeStackTrace(n),s=k(o.stack)&&o.stack[1];s&&"Raven.captureException"===s.func&&(s=o.stack[2]);var u=s&&s.url||"";if((!this.k.ignoreUrls.test||!this.k.ignoreUrls.test(u))&&(!this.k.whitelistUrls.test||this.k.whitelistUrls.test(u))){if(this.k.stacktrace||t.stacktrace||""===r.message){r.fingerprint=null==r.fingerprint?e:r.fingerprint,(t=w({trimHeadFrames:0},t)).trimHeadFrames+=1;var c=this.X(o,t);r.stacktrace={frames:c.reverse()}}return r.fingerprint&&(r.fingerprint=k(r.fingerprint)?r.fingerprint:[r.fingerprint]),this.Y(r),this}}},captureBreadcrumb:function(e){var t=w({timestamp:r()/1e3},e);if(y(this.k.breadcrumbCallback)){var n=this.k.breadcrumbCallback(t);if(m(n)&&!E(n))t=n;else if(!1===n)return this}return this.u.push(t),this.u.length>this.k.maxBreadcrumbs&&this.u.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this.r.push([e,t]),this.n&&this.F(),this},setUserContext:function(e){return this.j.user=e,this},setExtraContext:function(e){return this.Z("extra",e),this},setTagsContext:function(e){return this.Z("tags",e),this},clearContext:function(){return this.j={},this},getContext:function(){return JSON.parse(s(this.j))},setEnvironment:function(e){return this.k.environment=e,this},setRelease:function(e){return this.k.release=e,this},setDataCallback:function(e){var t=this.k.dataCallback;return this.k.dataCallback=i(t,e),this},setBreadcrumbCallback:function(e){var t=this.k.breadcrumbCallback;return this.k.breadcrumbCallback=i(t,e),this},setShouldSendCallback:function(e){var t=this.k.shouldSendCallback;return this.k.shouldSendCallback=i(t,e),this},setTransport:function(e){return this.k.transport=e,this},lastException:function(){return this.d},lastEventId:function(){return this.f},isSetup:function(){return!(!this.a||!this.g&&(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this.z("error","Error: Raven has not been configured.")),1))},afterLoad:function(){var e=B.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if($){if(!(e=Object.assign({eventId:this.lastEventId(),dsn:this.H,user:this.j.user||{}},e)).eventId)throw new c("Missing eventId");if(!e.dsn)throw new c("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var i=e.user;i.name&&n.push("name="+t(i.name)),i.email&&n.push("email="+t(i.email))}else n.push(t(r)+"="+t(e[r]));var o=this.J(this.G(e.dsn)),a=$.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),($.head||$.body).appendChild(a)}},L:function(){var e=this;this.m+=1,setTimeout((function(){e.m-=1}))},$:function(e,t){var n,r;if(this.b){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),$.createEvent?(n=$.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=$.createEventObject()).eventType=e,t)R(t,r)&&(n[r]=t[r]);if($.createEvent)$.dispatchEvent(n);else try{$.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(i){}}},_:function(e){var t=this;return function(n){if(t.aa=null,t.v!==n){var r;t.v=n;try{r=M(n.target)}catch(i){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},ba:function(){var e=this;return function(t){var n;try{n=t.target}catch(i){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var o=e.aa;o||e._("input")(t),clearTimeout(o),e.aa=setTimeout((function(){e.aa=null}),1e3)}}},ca:function(e,t){var n=F(this.w.href),r=F(t),i=F(e);this.x=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},C:function(){var e=this;e.da=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.M?e.da.apply(this.O,arguments):e.da.apply(this,arguments)}},Q:function(){this.da&&(Function.prototype.toString=this.da)},D:function(){function e(e){return function(t,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return y(a)&&(i[0]=n.wrap({mechanism:{type:"instrument",data:{function:e.name||"<anonymous>"}}},a)),e.apply?e.apply(this,i):e(i[0],i[1])}}function t(e){var t=B[e]&&B[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(q(t,"addEventListener",(function(t){return function(r,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=n.wrap({mechanism:{type:"instrument",data:{target:e,function:"handleEvent",handler:o&&o.name||"<anonymous>"}}},o.handleEvent))}catch(u){}var c,l,f;return i&&i.dom&&("EventTarget"===e||"Node"===e)&&(l=n._("click"),f=n.ba(),c=function(e){if(e){var t;try{t=e.type}catch(n){return}return"click"===t?l(e):"keypress"===t?f(e):void 0}}),t.call(this,r,n.wrap({mechanism:{type:"instrument",data:{target:e,function:"addEventListener",handler:o&&o.name||"<anonymous>"}}},o,c),a,s)}}),r),q(t,"removeEventListener",(function(e){return function(t,n,r,i){try{n=n&&(n.N?n.N:n)}catch(o){}return e.call(this,t,n,r,i)}}),r))}var n=this,r=n.t,i=this.k.autoBreadcrumbs;q(B,"setTimeout",e,r),q(B,"setInterval",e,r),B.requestAnimationFrame&&q(B,"requestAnimationFrame",(function(e){return function(t){return e(n.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:e&&e.name||"<anonymous>"}}},t))}}),r);for(var o=["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"],a=0;a<o.length;a++)t(o[a])},E:function(){function e(e,n){e in n&&y(n[e])&&q(n,e,(function(n){return t.wrap({mechanism:{type:"instrument",data:{function:e,handler:n&&n.name||"<anonymous>"}}},n)}))}var t=this,n=this.k.autoBreadcrumbs,r=t.t;if(n.xhr&&"XMLHttpRequest"in B){var i=B.XMLHttpRequest&&B.XMLHttpRequest.prototype;q(i,"open",(function(e){return function(n,r){return b(r)&&-1===r.indexOf(t.h)&&(this.ea={method:n,url:r,status_code:null}),e.apply(this,arguments)}}),r),q(i,"send",(function(n){return function(){function r(){if(i.ea&&4===i.readyState){try{i.ea.status_code=i.status}catch(e){}t.captureBreadcrumb({type:"http",category:"xhr",data:i.ea})}}for(var i=this,o=["onload","onerror","onprogress"],a=0;a<o.length;a++)e(o[a],i);return"onreadystatechange"in i&&y(i.onreadystatechange)?q(i,"onreadystatechange",(function(e){return t.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,r)})):i.onreadystatechange=r,n.apply(this,arguments)}}),r)}n.xhr&&A()&&q(B,"fetch",(function(e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,o=n[0],a="GET";if("string"==typeof o?i=o:"Request"in B&&o instanceof B.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,-1!==i.indexOf(t.h))return e.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:i,status_code:null};return e.apply(this,n).then((function(e){return s.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:s}),e})).catch((function(e){throw t.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),e}))}}),r),n.dom&&this.b&&($.addEventListener?($.addEventListener("click",t._("click"),!1),$.addEventListener("keypress",t.ba(),!1)):$.attachEvent&&($.attachEvent("onclick",t._("click")),$.attachEvent("onkeypress",t.ba())));var o=B.chrome,a=!(o&&o.app&&o.app.runtime)&&B.history&&B.history.pushState&&B.history.replaceState;if(n.location&&a){var s=B.onpopstate;B.onpopstate=function(){var e=t.w.href;if(t.ca(t.x,e),s)return s.apply(this,arguments)};var u=function(e){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&t.ca(t.x,n+""),e.apply(this,arguments)}};q(B.history,"pushState",u,r),q(B.history,"replaceState",u,r)}if(n.console&&"console"in B&&console.log){var c=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};x(["debug","info","warn","error","log"],(function(e,t){I(console,t,c)}))}},R:function(){for(var e;this.t.length;){var t=(e=this.t.shift())[0],n=e[1],r=e[2];t[n]=r}},S:function(){for(var e in this.q)this.p[e]=this.q[e]},F:function(){var e=this;x(this.r,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},G:function(e){var t=z.exec(e),n={},r=7;try{for(;r--;)n[H[r]]=t[r]||""}catch(i){throw new c("Invalid DSN: "+e)}if(n.pass&&!this.k.allowSecretKey)throw new c("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},J:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},A:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this.m||this.V(e,t)},V:function(e,t){var n=this.X(e,t);this.$("handle",{stackInfo:e,options:t}),this.fa(e.name,e.message,e.url,e.lineno,n,t)},X:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(x(e.stack,(function(t,i){var o=n.ga(i,e.url);o&&r.push(o)})),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this.k.stackTraceLimit)},ga:function(e,t){var n={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(n.filename=t),n.in_app=!(this.k.includePaths.test&&!this.k.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},fa:function(e,t,n,r,i,o){var a,s=(e?e+": ":"")+(t||"");if((!this.k.ignoreErrors.test||!this.k.ignoreErrors.test(t)&&!this.k.ignoreErrors.test(s))&&(i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this.k.ignoreUrls.test||!this.k.ignoreUrls.test(n))&&(!this.k.whitelistUrls.test||this.k.whitelistUrls.test(n)))){var u=w({exception:{values:[{type:e,value:t,stacktrace:a}]},transaction:n},o),c=u.exception.values[0];null==c.type&&""===c.value&&(c.value="Unrecoverable error caught"),!u.exception.mechanism&&u.mechanism&&(u.exception.mechanism=u.mechanism,delete u.mechanism),u.exception.mechanism=w({type:"generic",handled:!0},u.exception.mechanism||{}),this.Y(u)}},ha:function(e){var t=this.k.maxMessageLength;if(e.message&&(e.message=S(e.message,t)),e.exception){var n=e.exception.values[0];n.value=S(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=S(r.url,this.k.maxUrlLength)),r.Referer&&(r.Referer=S(r.Referer,this.k.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this.ia(e.breadcrumbs),e},ia:function(e){for(var t,n,r,i=["to","from","url"],o=0;o<e.values.length;++o)if((n=e.values[o]).hasOwnProperty("data")&&m(n.data)&&!j(n.data)){r=w({},n.data);for(var a=0;a<i.length;++a)t=i[a],r.hasOwnProperty(t)&&r[t]&&(r[t]=S(r[t],this.k.maxUrlLength));e.values[o].data=r}},ja:function(){if(this.c||this.b){var e={};return this.c&&X.userAgent&&(e.headers={"User-Agent":X.userAgent}),B.location&&B.location.href&&(e.url=B.location.href),this.b&&$.referrer&&(e.headers||(e.headers={}),e.headers.Referer=$.referrer),e}},y:function(){this.ka=0,this.la=null},ma:function(){return this.ka&&r()-this.la<this.ka},na:function(e){var t=this.e;return!(!t||e.message!==t.message||e.transaction!==t.transaction)&&(e.stacktrace||t.stacktrace?L(e.stacktrace,t.stacktrace):!e.exception&&!t.exception||U(e.exception,t.exception))},oa:function(e){if(!this.ma()){var t=e.status;if(400===t||401===t||429===t){var n;try{n=A()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(i){}this.ka=n||(2*this.ka||1e3),this.la=r()}}},Y:function(e){var t=this.k,n={project:this.i,logger:t.logger,platform:"javascript"},i=this.ja();if(i&&(n.request=i),e.trimHeadFrames&&delete e.trimHeadFrames,(e=w(n,e)).tags=w(w({},this.j.tags),e.tags),e.extra=w(w({},this.j.extra),e.extra),e.extra["session:duration"]=r()-this.s,this.u&&this.u.length>0&&(e.breadcrumbs={values:[].slice.call(this.u,0)}),this.j.user&&(e.user=this.j.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this.pa(e),Object.keys(e).forEach((function(t){(null==e[t]||""===e[t]||E(e[t]))&&delete e[t]})),y(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!E(e)&&(!y(t.shouldSendCallback)||t.shouldSendCallback(e)))return this.ma()?void this.z("warn","Raven dropped error due to backoff: ",e):void("number"==typeof t.sampleRate?Math.random()<t.sampleRate&&this.qa(e):this.qa(e))},pa:function(e){return P(e,this.k.sanitizeKeys)},ra:function(){return C()},qa:function(e,t){var n=this,r=this.k;if(this.isSetup()){if(e=this.ha(e),!this.k.allowDuplicates&&this.na(e))return void this.z("warn","Raven dropped repeat event: ",e);this.f=e.event_id||(e.event_id=this.ra()),this.e=e,this.z("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this.h};this.I&&(i.sentry_secret=this.I);var o=e.exception&&e.exception.values[0];this.k.autoBreadcrumbs&&this.k.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this.K;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:r,onSuccess:function(){n.y(),n.$("success",{data:e,src:a}),t&&t()},onError:function(r){n.z("error","Raven transport failed to send: ",r),r.request&&n.oa(r.request),n.$("failure",{data:e,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}},_makeRequest:function(e){var t=e.url+"?"+T(e.auth),n=null,r={};if(e.options.headers&&(n=this.sa(e.options.headers)),e.options.fetchParameters&&(r=this.sa(e.options.fetchParameters)),A()){r.body=s(e.data);var i=w({},this.l),o=w(i,r);return n&&(o.headers=n),B.fetch(t,o).then((function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var n=new Error("Sentry error code: "+t.status);n.request=t,e.onError&&e.onError(n)}})).catch((function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))}))}var a=B.XMLHttpRequest&&new B.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+a.status);t.request=a,e.onError(t)}}:(a=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(a.onload=e.onSuccess),e.onError&&(a.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=a,e.onError(t)})),a.open("POST",t),n&&x(n,(function(e,t){a.setRequestHeader(e,t)})),a.send(s(e.data))))},sa:function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]="function"==typeof r?r():r}return t},z:function(e){this.q[e]&&(this.debug||this.k.debug)&&Function.prototype.apply.call(this.q[e],this.p,[].slice.call(arguments,1))},Z:function(e,t){g(t)?delete this.j[e]:this.j[e]=w(this.j[e]||{},t)}},o.prototype.setUser=o.prototype.setUserContext,o.prototype.setReleaseContext=o.prototype.setRelease,t.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,2:2,5:5,6:6,7:7,8:8}],4:[function(e,t,n){(function(n){var r=e(3),i="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},o=i.Raven,a=new r;a.noConflict=function(){return i.Raven=o,a},a.afterLoad(),t.exports=a,t.exports.Client=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{3:3}],5:[function(e,t,n){(function(n){function r(e){return void 0===e}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){return"[object String]"===Object.prototype.toString.call(e)}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function s(){if(!("fetch"in b))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function u(e,t){var n,i;if(r(e.length))for(n in e)l(e,n)&&t.call(null,n,e[n]);else if(i=e.length)for(n=0;n<i;n++)t.call(null,n,e[n])}function c(e,t){if("number"!=typeof t)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"…"}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e){for(var t,n=[],r=0,i=e.length;r<i;r++)o(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function h(e){var t,n,r,i,a,s=[];if(!e||!e.tagName)return"";if(s.push(e.tagName.toLowerCase()),e.id&&s.push("#"+e.id),(t=e.className)&&o(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)s.push("."+n[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)r=u[a],(i=e.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}function p(e,t){return!!(!!e^!!t)}function d(e,t){if(p(e,t))return!1;var n=e.frames,r=t.frames;if(void 0===n||void 0===r)return!1;if(n.length!==r.length)return!1;for(var i,o,a=0;a<n.length;a++)if(i=n[a],o=r[a],i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1;return!0}function m(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function v(e){if("string"==typeof e){return c(e,40)}if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;var t=Object.prototype.toString.call(e);return"[object Object]"===t?"[Object]":"[object Array]"===t?"[Array]":"[object Function]"===t?e.name?"[Function: "+e.name+"]":"[Function]":e}function g(e,t){return 0===t?v(e):i(e)?Object.keys(e).reduce((function(n,r){return n[r]=g(e[r],t-1),n}),{}):Array.isArray(e)?e.map((function(e){return g(e,t-1)})):v(e)}var y=e(7),b="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},k=3,E=51200,x=40;t.exports={isObject:function(e){return"object"==_typeof(e)&&null!==e},isError:function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},isDOMError:function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},isDOMException:function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},isUndefined:r,isFunction:function(e){return"function"==typeof e},isPlainObject:i,isString:o,isArray:a,isEmptyObject:function(e){if(!i(e))return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(e){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(e){return!1}},supportsFetch:s,supportsReferrerPolicy:function(){if(!s())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(e){return function(t,n){var r=e(t)||t;return n&&n(r)||r}},each:u,objectMerge:function(e,t){return t?(u(t,(function(t,n){e[t]=n})),e):e},truncate:c,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:l,joinRegExp:f,urlencode:function(e){var t=[];return u(e,(function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})),t.join("&")},uuid4:function(){var e=b.crypto||b.msCrypto;if(!r(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},htmlTreeAsString:function(e){for(var t,n=[],r=0,i=0,o=" > ".length;e&&r++<5&&!("html"===(t=h(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:h,isSameException:function(e,t){return!p(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&!function(e,t){return r(e)&&r(t)}(e.stacktrace,t.stacktrace)&&d(e.stacktrace,t.stacktrace))},isSameStacktrace:d,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var i=e[t];e[t]=n(i),e[t].M=!0,e[t].O=i,r&&r.push([e,t,i])}},safeJoin:function(e,t){if(!a(e))return"";for(var n=[],r=0;r<e.length;r++)try{n.push(String(e[r]))}catch(i){n.push("[value cannot be serialized]")}return n.join(t)},serializeException:function e(t,n,r){if(!i(t))return t;r="number"!=typeof(n="number"!=typeof n?k:n)?E:r;var o=g(t,n);return m(y(o))>r?e(t,n-1):o},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter((function(e){return"string"==typeof e}))).length)return"[object has no keys]";if(t="number"!=typeof t?x:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},sanitize:function(e,t){if(!a(t)||a(t)&&0===t.length)return e;var n,r=f(t),o="********";try{n=JSON.parse(y(e))}catch(s){return e}return function e(t){return a(t)?t.map((function(t){return e(t)})):i(t)?Object.keys(t).reduce((function(n,i){return n[i]=r.test(i)?o:e(t[i]),n}),{}):t}(n)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{7:7}],6:[function(e,t,n){(function(n){function r(){return"undefined"==typeof document||null==document.location?"":document.location.href}var i=e(5),o={collectWindowErrors:!0,debug:!1},a="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},s=[].slice,u="?",c=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;o.report=function(){function e(t,n){var r=null;if(!n||o.collectWindowErrors){for(var i in p)if(p.hasOwnProperty(i))try{p[i].apply(null,[t].concat(s.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function t(t,a,s,l,h){var p=i.isErrorEvent(h)?h.error:h,d=i.isErrorEvent(t)?t.message:t;if(v)o.computeStackTrace.augmentStackTraceWithInitialElement(v,a,s,d),n();else if(p&&i.isError(p))e(o.computeStackTrace(p),!0);else{var m,g={url:a,line:s,column:l},y=void 0;if("[object String]"==={}.toString.call(d))(m=d.match(c))&&(y=m[1],d=m[2]);g.func=u,e({name:y,message:d,url:r(),stack:[g]},!0)}return!!f&&f.apply(this,arguments)}function n(){var t=v,n=d;d=null,v=null,m=null,e.apply(null,[t,!1].concat(n))}function l(e,t){var r=s.call(arguments,1);if(v){if(m===e)return;n()}var i=o.computeStackTrace(e);if(v=i,m=e,d=r,setTimeout((function(){m===e&&n()}),i.incomplete?2e3:0),!1!==t)throw e}var f,h,p=[],d=null,m=null,v=null;return l.subscribe=function(e){h||(f=a.onerror,a.onerror=t,h=!0),p.push(e)},l.unsubscribe=function(e){for(var t=p.length-1;t>=0;--t)p[t]===e&&p.splice(t,1)},l.uninstall=function(){h&&(a.onerror=f,h=!1,f=void 0),p=[]},l}(),o.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,i,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),h=[],p=(/^(.*) is undefined$/.exec(e.message),0),d=f.length;p<d;++p){if(n=o.exec(f[p])){var m=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=l.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),i={url:m?null:n[2],func:n[1]||u,args:m?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=a.exec(f[p]))i={url:n[2],func:n[1]||u,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(f[p])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=c.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==p||n[5]||void 0===e.columnNumber||(h[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||u,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=u),i.url&&"blob:"===i.url.substr(0,5)){var v=new XMLHttpRequest;if(v.open("GET",i.url,!1),v.send(null),200===v.status){var g=v.responseText||"",y=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(y){var b=y[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+b.slice(1)),i.url=b.slice(0,-4)}}}h.push(i)}return h.length?{name:e.name,message:e.message,url:r(),stack:h}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=u),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,a){for(var s,c,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},p=!1,d=n.caller;d&&!p;d=d.caller)if(d!==i&&d!==o.report){if(c={url:null,func:u,line:null,column:null},d.name?c.func=d.name:(s=l.exec(d.toString()))&&(c.func=s[1]),void 0===c.func)try{c.func=s.input.substring(0,s.input.indexOf("{"))}catch(v){}h[""+d]?p=!0:h[""+d]=!0,f.push(c)}a&&f.splice(0,a);var m={name:e.name,message:e.message,url:r(),stack:f};return t(m,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),m}function i(t,i){var s=null;i=null==i?0:+i;try{if(s=e(t))return s}catch(a){if(o.debug)throw a}try{if(s=n(t,i+1))return s}catch(a){if(o.debug)throw a}return{name:t.name,message:t.message,url:r()}}return i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=e,i}(),t.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],7:[function(e,t,n){function r(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}function i(e,t){var n=[],i=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,r(n,t)).join(".")+"]"}),function(o,a){if(n.length>0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,o,a)}}n=t.exports=function(e,t,n,r){return JSON.stringify(e,i(t,r),n)},n.getSerialize=i},{}],8:[function(e,t,n){function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(i,a)),o),n)}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function u(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var n,i,c,l,f,h=1732584193,p=-271733879,d=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)i=h,c=p,l=d,f=m,h=o(h,p,d,m,e[n],7,-680876936),m=o(m,h,p,d,e[n+1],12,-389564586),d=o(d,m,h,p,e[n+2],17,606105819),p=o(p,d,m,h,e[n+3],22,-1044525330),h=o(h,p,d,m,e[n+4],7,-176418897),m=o(m,h,p,d,e[n+5],12,1200080426),d=o(d,m,h,p,e[n+6],17,-1473231341),p=o(p,d,m,h,e[n+7],22,-45705983),h=o(h,p,d,m,e[n+8],7,1770035416),m=o(m,h,p,d,e[n+9],12,-1958414417),d=o(d,m,h,p,e[n+10],17,-42063),p=o(p,d,m,h,e[n+11],22,-1990404162),h=o(h,p,d,m,e[n+12],7,1804603682),m=o(m,h,p,d,e[n+13],12,-40341101),d=o(d,m,h,p,e[n+14],17,-1502002290),h=a(h,p=o(p,d,m,h,e[n+15],22,1236535329),d,m,e[n+1],5,-165796510),m=a(m,h,p,d,e[n+6],9,-1069501632),d=a(d,m,h,p,e[n+11],14,643717713),p=a(p,d,m,h,e[n],20,-373897302),h=a(h,p,d,m,e[n+5],5,-701558691),m=a(m,h,p,d,e[n+10],9,38016083),d=a(d,m,h,p,e[n+15],14,-660478335),p=a(p,d,m,h,e[n+4],20,-405537848),h=a(h,p,d,m,e[n+9],5,568446438),m=a(m,h,p,d,e[n+14],9,-1019803690),d=a(d,m,h,p,e[n+3],14,-187363961),p=a(p,d,m,h,e[n+8],20,1163531501),h=a(h,p,d,m,e[n+13],5,-1444681467),m=a(m,h,p,d,e[n+2],9,-51403784),d=a(d,m,h,p,e[n+7],14,1735328473),h=s(h,p=a(p,d,m,h,e[n+12],20,-1926607734),d,m,e[n+5],4,-378558),m=s(m,h,p,d,e[n+8],11,-2022574463),d=s(d,m,h,p,e[n+11],16,1839030562),p=s(p,d,m,h,e[n+14],23,-35309556),h=s(h,p,d,m,e[n+1],4,-1530992060),m=s(m,h,p,d,e[n+4],11,1272893353),d=s(d,m,h,p,e[n+7],16,-155497632),p=s(p,d,m,h,e[n+10],23,-1094730640),h=s(h,p,d,m,e[n+13],4,681279174),m=s(m,h,p,d,e[n],11,-358537222),d=s(d,m,h,p,e[n+3],16,-722521979),p=s(p,d,m,h,e[n+6],23,76029189),h=s(h,p,d,m,e[n+9],4,-640364487),m=s(m,h,p,d,e[n+12],11,-421815835),d=s(d,m,h,p,e[n+15],16,530742520),h=u(h,p=s(p,d,m,h,e[n+2],23,-995338651),d,m,e[n],6,-198630844),m=u(m,h,p,d,e[n+7],10,1126891415),d=u(d,m,h,p,e[n+14],15,-1416354905),p=u(p,d,m,h,e[n+5],21,-57434055),h=u(h,p,d,m,e[n+12],6,1700485571),m=u(m,h,p,d,e[n+3],10,-1894986606),d=u(d,m,h,p,e[n+10],15,-1051523),p=u(p,d,m,h,e[n+1],21,-2054922799),h=u(h,p,d,m,e[n+8],6,1873313359),m=u(m,h,p,d,e[n+15],10,-30611744),d=u(d,m,h,p,e[n+6],15,-1560198380),p=u(p,d,m,h,e[n+13],21,1309151649),h=u(h,p,d,m,e[n+4],6,-145523070),m=u(m,h,p,d,e[n+11],10,-1120210379),d=u(d,m,h,p,e[n+2],15,718787259),p=u(p,d,m,h,e[n+9],21,-343485551),h=r(h,i),p=r(p,c),d=r(d,l),m=r(m,f);return[h,p,d,m]}function l(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function f(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function h(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function p(e){return unescape(encodeURIComponent(e))}function d(e){return function(e){return l(c(f(e),8*e.length))}(p(e))}function m(e,t){return function(e,t){var n,r,i=f(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=c(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=c(o.concat(f(t)),512+8*t.length),l(c(a.concat(r),640))}(p(e),p(t))}t.exports=function(e,t,n){return t?n?m(t,e):function(e,t){return h(m(e,t))}(t,e):n?d(e):function(e){return h(d(e))}(e)}},{}]},{},[4])(4)}));
;function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}AoPS.ErrorUtil={PRODUCTION_ONLY:!0,IGNORE_ERRORS:["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage",/\bUET\b/,/\(raven\)/i,"Cannot read property 'offsetParent' of null","Cannot read property 'DOMNodeInsertedByJs' of undefined","SymBrowser_Modify","Can't find variable: __opera","Can't find variable: didEnterViewPort","Can't find variable: GetHTMLElementsAtPoint","Can't find variable: GetImageTagSrcFromPoint","Can't find variable: require","Can't find variable: MyAppGetLinkTitleNameAtPoint","Can't find variable: MyAppGetLinkSRCAtPoint","Can't find variable: MyAppGetLinkHREFAtPoint","Can't find variable: MyAppGetHTMLElementsAtPoint","Can't find variable: UC_NEWS_PAUSE_ALL_VIDEOS","document.getElementsByTagName('video')[0].webkitExitFullScreen",'document.getElementsByName("screen-orientation")[0].content','document.getElementsByName("full-screen")',"window.biliInject.postMessage","undefined is not an object (evaluating 'window.webkit.messageHandlers')","Invalid character: '\\0'","Can't find variable: removeAllHighlights",/ss_post_message_to_iframe_injection/i,"$UCBrowser","WeixinJSBridge","__tb_js_bridge","ZhihuiOS","x5onSkinSwitch is not defined",/ServerLocationCb\d+ is not defined/,"Cannot read property 'content' of undefined","hwbrNotifyScreenConfigChanged is not defined.","Cannot redefine property: BetterJsPop","__gCrWeb.form.wasEditedByUser.set","vid_mate_check","__firefox__","Cannot redefine property: googletag","w2zo.data.indexOf","extAbbr is not defined",/Invalid regular expression: \/function\(/i,"Access is denied.","a.LegacyGlobal.LP_explicit_ignored",/Permission denied to access property/i,"ResizeObserver loop limit exceeded","Argument 1 ('target') to MutationObserver.observe must be an instance of Node","Cannot read property 'checkDomStatus' of undefined","document.getElementsByClassName.ToString is not a function","Cannot read property 'updateBookMallStatus' of undefined","Can't find variable: pktAnnotationHighlighter","Failed to execute 'postMessage' on 'Window': function (","Unspecified error.","null is not an object (evaluating 'a.title')","Failed to read the 'cookie' property from 'Document': Access is denied for this document.",/Failed to load 'https:\/\/.+\.ru\/adb_rotate\?/i],IGNORE_URLS:[/graph\.facebook\.com/i,/connect\.facebook\.net\//i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],vitals:{"/js/jquery.min.js":function(){return"undefined"==typeof $},"/vendor/common-combined-2.js":function(){return"undefined"==typeof Backbone||"undefined"==typeof _||"undefined"==typeof Handlebars}},consoleErrors:!0,consoleSentryObjects:!1,blockSentry:!1,criticalFailure:!1,scriptLoadError:!1,mFolder:null},AoPS.ErrorUtil._init=function(){if(this.mFolder=this._getMFolder(),this._canCloudLog(!1)){var e={},t=this;e.release=AoPS.sentry.assetVersion,e.environment="acad"===AoPS.repo?AoPS.sentry.acadEnvironment:AoPS.sentry.aopsEnvironment,e.ignoreErrors=AoPS.ErrorUtil.IGNORE_ERRORS,e.ignoreUrls=AoPS.ErrorUtil.IGNORE_URLS,e.dataCallback=function(e){(Raven.setTagsContext({scriptLoadError:t.scriptLoadError,mFolder:t.mFolder}),Raven.setExtraContext(),e.transaction)&&(e.tags||(e.tags={scriptLoadError:t.scriptLoadError,mFolder:t.mFolder}),t._checkVitals(e.transaction)&&(e.tags.type="E_CRITICAL_DEPENDENCY_FAILURE"));return e},e.shouldSendCallback=function(e){var o=!0;return t.criticalFailure?(o=!1,t.consoleSentryObjects&&console.log("Error log cancelled by ErrorUtil.criticalFailure")):e.tags&&"E_CRITICAL_DEPENDENCY_FAILURE"===e.tags.type?t.criticalFailure=!0:t.scriptLoadError&&(o=!1,console.log("Error log cancelled by ErrorUtil.scriptLoadError")),o&&t.blockSentry&&(o=!1,t.consoleSentryObjects&&console.log("Error log cancelled by ErrorUtil.blockSentry")),t.consoleSentryObjects&&console.log(o?"Sending: ":"Not sending: ",e),o},Raven.config("acad"===AoPS.repo?"https://1a1e07bb9c0b4ea982520ea420a8d5ce@sentry.io/1294162":"https://6b4d51ae86274a829b38a3d93186b59a@sentry.io/1285919",e).install(),AoPS.session&&AoPS.session.logged_in&&Raven.setUserContext({id:AoPS.session.user_id,username:AoPS.session.username}),this._listenFailingScripts()}},AoPS.ErrorUtil._canCloudLog=function(e){return!this.criticalFailure&&(e=void 0===e||e,("production"===("acad"===AoPS.repo?AoPS.sentry.acadEnvironment:AoPS.sentry.aopsEnvironment)||!this.PRODUCTION_ONLY)&&(!e||!(!Raven||!Raven.isSetup())))},AoPS.ErrorUtil._getMFolder=function(){var e=window.location.pathname.match(/\/([^/]+)\/?/);return e?e[1]:null},AoPS.ErrorUtil._consoleError=function(e){console.error?console.error(e):console.log(e)},AoPS.ErrorUtil._listenFailingScripts=function(){var e=this;window.addEventListener("error",(function(t){var o;t.target&&((o=t.target)&&o.tagName&&"script"===o.tagName.toLowerCase())&&(e.scriptLoadError=!0,e._isVital(t.target.src)?e.log("E_CRITICAL_DEPENDENCY_FAILURE","<script> failed to load file "+t.target.src,{src:t.target.src}):e.breadcrumb("<script> failed to load file "+t.target.src,"script","warning",{src:t.target.src}))}),!0)},AoPS.ErrorUtil._isVital=function(e){if("string"==typeof e)for(var t in this.vitals)if(e.indexOf(t)>-1)return!0;return!1},AoPS.ErrorUtil._checkVitals=function(e){if("string"==typeof e)for(var t in this.vitals)if(e.indexOf(t)>-1&&this.vitals[t]())return!0;return!1},AoPS.ErrorUtil.log=function(e,t,o){this._canCloudLog()&&(Raven.setTagsContext(),Raven.setExtraContext(),e&&"string"==typeof e&&Raven.setTagsContext({scriptLoadError:this.scriptLoadError,mFolder:this.mFolder,type:e}),o&&"object"===_typeof(o)&&Raven.setExtraContext(o),t instanceof Error?Raven.captureException(t):"string"==typeof t&&Raven.captureException(new Error(t))),this.consoleErrors&&this._consoleError({type:e,message:t,data:o})},AoPS.ErrorUtil.breadcrumb=function(e,t,o,r){if(Raven&&Raven.isSetup()){var n={};if("string"!=typeof e)throw new Error("'message' must be a string.");if("string"!=typeof t)throw new Error("'category' must be a string.");if(!o.match(/^(error|warning|info|debug)$/))throw new Error("'level' must be 'error', 'warning', 'info', or 'debug'.");if(r){if("object"!==_typeof(r))throw new Error("'data' must be an object.");n.data=r}n.message=e,n.category=t,n.level=o,Raven.captureBreadcrumb(n)}"development"===("acad"===AoPS.repo?AoPS.sentry.acadEnvironment:AoPS.sentry.aopsEnvironment)&&console.log({message:e,category:t,level:o,data:r})};try{void 0!==Function.prototype.bind&&AoPS.ErrorUtil._init()}catch(e){AoPS.ErrorUtil.log("E_ERRORUTIL_INIT_FAILURE",e)}
;//# sourceMappingURL=aops_errors.js.map