GT2/GT2-iOS/node_modules/raven-js/dist/plugins/console.min.js

3 lines
5.3 KiB
JavaScript

/*! Raven.js 3.22.2 (1b6187b) | github.com/getsentry/raven-js */
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a.Raven=a.Raven||{},a.Raven.Plugins=a.Raven.Plugins||{},a.Raven.Plugins.Console=b())}(this,function(){"use strict";function a(b){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(b)}function b(b){return"object"===a(b)&&null!==b}function c(a){switch({}.toString.call(a)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return a instanceof Error}}function d(a){return k()&&"[object ErrorEvent]"==={}.toString.call(a)}function e(a){return void 0===a}function f(a){return"function"==typeof a}function g(a){return"[object Object]"===Object.prototype.toString.call(a)}function h(a){return"[object String]"===Object.prototype.toString.call(a)}function i(a){return"[object Array]"===Object.prototype.toString.call(a)}function j(a){if(!g(a))return!1;for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function k(){try{return new ErrorEvent(""),!0}catch(a){return!1}}function l(){if(!("fetch"in H))return!1;try{return new Headers,new Request(""),new Response,!0}catch(a){return!1}}function m(a){function b(b,c){var d=a(b)||b;return c?c(d)||d:d}return b}function n(a,b){var c,d;if(e(a.length))for(c in a)r(a,c)&&b.call(null,c,a[c]);else if(d=a.length)for(c=0;c<d;c++)b.call(null,c,a[c])}function o(a,b){return b?(n(b,function(b,c){a[b]=c}),a):a}function p(a){return!!Object.isFrozen&&Object.isFrozen(a)}function q(a,b){return!b||a.length<=b?a:a.substr(0,b)+"…"}function r(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function s(a){for(var b,c=[],d=0,e=a.length;d<e;d++)b=a[d],h(b)?c.push(b.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):b&&b.source&&c.push(b.source);return new RegExp(c.join("|"),"i")}function t(a){var b=[];return n(a,function(a,c){b.push(encodeURIComponent(a)+"="+encodeURIComponent(c))}),b.join("&")}function u(a){if("string"!=typeof a)return{};var b=a.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),c=b[6]||"",d=b[8]||"";return{protocol:b[2],host:b[4],path:b[5],relative:b[5]+c+d}}function v(){var a=H.crypto||H.msCrypto;if(!e(a)&&a.getRandomValues){var b=new Uint16Array(8);a.getRandomValues(b),b[3]=4095&b[3]|16384,b[4]=16383&b[4]|32768;var c=function(a){for(var b=a.toString(16);b.length<4;)b="0"+b;return b};return c(b[0])+c(b[1])+c(b[2])+c(b[3])+c(b[4])+c(b[5])+c(b[6])+c(b[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"===a?b:3&b|8;return c.toString(16)})}function w(a){for(var b,c=5,d=80,e=[],f=0,g=0,h=" > ",i=h.length;a&&f++<c&&(b=x(a),!("html"===b||f>1&&g+e.length*i+b.length>=d));)e.push(b),g+=b.length,a=a.parentNode;return e.reverse().join(h)}function x(a){var b,c,d,e,f,g=[];if(!a||!a.tagName)return"";if(g.push(a.tagName.toLowerCase()),a.id&&g.push("#"+a.id),b=a.className,b&&h(b))for(c=b.split(/\s+/),f=0;f<c.length;f++)g.push("."+c[f]);var i=["type","name","title","alt"];for(f=0;f<i.length;f++)d=i[f],e=a.getAttribute(d),e&&g.push("["+d+'="'+e+'"]');return g.join("")}function y(a,b){return!!(!!a^!!b)}function z(a,b){return e(a)&&e(b)}function A(a,b){return!y(a,b)&&(a=a.values[0],b=b.values[0],a.type===b.type&&a.value===b.value&&(!z(a.stacktrace,b.stacktrace)&&B(a.stacktrace,b.stacktrace)))}function B(a,b){if(y(a,b))return!1;var c=a.frames,d=b.frames;if(c.length!==d.length)return!1;for(var e,f,g=0;g<c.length;g++)if(e=c[g],f=d[g],e.filename!==f.filename||e.lineno!==f.lineno||e.colno!==f.colno||e["function"]!==f["function"])return!1;return!0}function C(a,b,c,d){var e=a[b];a[b]=c(e),a[b].a=!0,a[b].b=e,d&&d.push([a,b,e])}function D(a,b){if(!i(a))return"";for(var c=[],d=0;d<a.length;d++)try{c.push(String(a[d]))}catch(e){c.push("[value cannot be serialized]")}return c.join(b)}function E(a,b,c){b=b||window.console||{},c=c||{};var d=c.levels||["debug","info","warn","error"];"assert"in b&&d.push("assert");for(var e=function(b,c){a.captureMessage(b,c)},f=d.pop();f;)L(b,f,e),f=d.pop()}var F=Object.setPrototypeOf||function(a,b){return a.c=b,a},G=("object"==typeof Reflect&&Reflect.construct||function(a,b,c){var d,e=[null];return e.push.apply(e,b),d=a.bind.apply(a,e),F(new d,c.prototype)},"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}),H="undefined"!=typeof window?window:"undefined"!=typeof G?G:"undefined"!=typeof self?self:{},I={isObject:b,isError:c,isErrorEvent:d,isUndefined:e,isFunction:f,isPlainObject:g,isString:h,isArray:i,isEmptyObject:j,supportsErrorEvent:k,supportsFetch:l,wrappedCallback:m,each:n,objectMerge:o,truncate:q,objectFrozen:p,hasKey:r,joinRegExp:s,urlencode:t,uuid4:v,htmlTreeAsString:w,htmlElementAsString:x,isSameException:A,isSameStacktrace:B,parseUrl:u,fill:C,safeJoin:D},J=function(a,b,c){var d=a[b],e=a;if(b in a){var f="warn"===b?"warning":b;a[b]=function(){var a=[].slice.call(arguments),g=I.safeJoin(a," "),h={level:f,logger:"console",extra:{arguments:a}};"assert"===b?a[0]===!1&&(g="Assertion failed: "+(I.safeJoin(a.slice(1)," ")||"console.assert"),h.extra.arguments=a.slice(1),c&&c(g,h)):c&&c(g,h),d&&Function.prototype.apply.call(d,e,a)}}},K={wrapMethod:J},L=K.wrapMethod,M=E;return M});
//# sourceMappingURL=console.min.js.map