var BadJs=function(){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),n=r.length>>>0;if(0!=n)for(var o,i,e=0|e,a=Math.max(0<=e?e:n-Math.abs(e),0);a"].indexOf(n[0])?void 0:n[0];return new s({functionName:e,fileName:r,lineNumber:n[1],columnNumber:n[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(t){return!t.match(n)},this).map(function(t){var e,r;return-1===(t=-1 eval")?t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):t).indexOf("@")&&-1===t.indexOf(":")?new s({functionName:t}):(e=(e=t.match(r=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&e[1]?e[1]:void 0,r=this.extractLocation(t.replace(r,"")),new s({functionName:e,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t}))},this)},parseOpera:function(t){return!t.stacktrace||-1t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),n=[],o=2,i=r.length;o/,"$2").replace(/\([^)]*\)/g,"")||void 0,r=void 0===(e=r.match(/\(([^)]*)\)/)?r.replace(/^[^(]+\(([^)]*)\)$/,"$1"):e)||"[arguments not available]"===e?void 0:e.split(",");return new s({functionName:o,args:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:t})},this)}}},t.exports=r(n)});function i(t){var o;return"string"==typeof t?t:(o=[],function t(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if("function"==typeof n||void 0===n)return;"[object Object]"===Object.prototype.toString.call(n)?t(n):o.push(encodeURIComponent(r)+"="+encodeURIComponent(n))}}(t),o.join("&"))}function u(t){if(t)try{var e=o.parse(t),r=e&&e.splice(0,3)||[];return JSON.stringify(r)}catch(t){}}function a(t,e){this.reportInstance=e,this.errorArr=[],this.error(t)}function s(t,e){this.reject(t,e)}function c(t,e,r){this.report=e,this.globalVariable=t,this.error(r)}function p(t){this.conf=t||{}}function e(t){this.config=this.mergeConf(t),this.report=this.report(this.config),this.jsError(),this.promiseError()}a.getIntance=function(t,e){return a.instance=a.instance?a.instance:new a(t,e)},a.prototype.error=function(s){var c=this;r(s,"error",function(t){if(t=t||window.event){var e=t.target||t.srcElement,r=!1;if(6!==a()&&7!==a()&&(r=e instanceof HTMLScriptElement||e instanceof HTMLLinkElement,e instanceof HTMLImageElement||e instanceof HTMLVideoElement||e instanceof HTMLAudioElement))return!1;var n,o={},i=c.reportInstance;r?(n=e.src||e.href,o.title="resource"+e,o.msg=n,o.from=location.href):(o.title=t.message,o.msg=t.error&&t.error.stack||t.source+":"+t.message,o.from=location.href,o.lineno=t.lineno,o.colno=t.colno),o.stack=u(t.error),s.ERROE_POLL.includes(o.title)||(s.ERROE_POLL.push(o.title),i.report&&f(i.report)&&(r?i.reportResource(o):i.report(o)))}function a(){var t=navigator.userAgent,e=-1