Socket
Socket
Sign inDemoInstall

axe

Package Overview
Dependencies
91
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.0.1

2

dist/axe.min.js

@@ -1,1 +0,1 @@

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=t()}}(function(){!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;r=s.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?void 0:window);var t=function(t,e){var r="000000000"+t;return r.substr(r.length-e)};function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r,n="object"==("undefined"==typeof window?"undefined":e(window))?window:self,o=Object.keys(n).length,i=t(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+o.toString(36),4),s=function(){return i},a="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(a){var u=Math.pow(2,32)-1;r=function(){return Math.abs(a.getRandomValues(new Uint32Array(1))[0]/u)}}else r=Math.random;var c=r,l={},f=0,p=4,h=36,y=Math.pow(h,p);function d(){return t((c()*y<<0).toString(h),p)}function m(){return f=f<y?f:0,++f-1}function b(){return"c"+(new Date).getTime().toString(h)+t(m().toString(h),p)+s()+(d()+d())}b.slug=function(){var t=(new Date).getTime().toString(36),e=m().toString(36).slice(-4),r=s().slice(0,1)+s().slice(-1),n=d().slice(-2);return t.slice(-2)+e+r+n},b.isCuid=function(t){return"string"==typeof t&&!!t.startsWith("c")},b.isSlug=function(t){if("string"!=typeof t)return!1;var e=t.length;return e>=7&&e<=10},b.fingerprint=s,l=b;var v=function(t){var e=Array.prototype.slice.call(arguments,1);return e.length&&(t=t.toString().replace(/(%?)(%([jds]))/g,function(t,r,n,o){var i=e.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(e.unshift(i),t):i})),e.length&&(t=t.toString()+" "+e.join(" ")),""+t.toString().replace(/%{2,2}/g,"%")},g=["%s","%d","%i","%f","%j","%o","%O","%%"],_=function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},w={};(function(t){(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=1/0,n=9007199254740991,o="[object Arguments]",i="[object Function]",s="[object GeneratorFunction]",a="[object Symbol]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l="object"==(void 0===t?"undefined":e(t))&&t&&t.Object===Object&&t,f="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,p=l||f||Function("return this")();function h(t,e){return!(!t||!t.length)&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=-1;++i<o;)if(e(t[i],i,t))return i;return-1}(t,m);for(var n=-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e)>-1}function y(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function d(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function m(t){return t!=t}function b(t,e){return t.has(e)}function v(t,e){return function(r){return t(e(r))}}var g,_=Array.prototype,S=Function.prototype,O=Object.prototype,T=p["__core-js_shared__"],j=(g=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",E=S.toString,A=O.hasOwnProperty,k=O.toString,x=RegExp("^"+E.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=p.Symbol,P=v(Object.getPrototypeOf,Object),R=O.propertyIsEnumerable,D=_.splice,N=C?C.isConcatSpreadable:void 0,I=Object.getOwnPropertySymbols,L=Math.max,q=X(p,"Map"),H=X(Object,"create");function M(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function z(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.__data__=new z;++e<r;)this.add(t[e])}function $(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function B(t,r){var n,o,i=t.__data__;return("string"==(o=e(n=r))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof r?"string":"hash"]:i.map}function X(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!et(t)||(e=t,j&&j in e))&&(tt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?x:u).test(function(t){if(null!=t){try{return E.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}(r)?r:void 0}M.prototype.clear=function(){this.__data__=H?H(null):{}},M.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},M.prototype.get=function(t){var e=this.__data__;if(H){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return A.call(e,t)?e[t]:void 0},M.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:A.call(e,t)},M.prototype.set=function(t,e){return this.__data__[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this},U.prototype.clear=function(){this.__data__=[]},U.prototype.delete=function(t){var e=this.__data__,r=$(e,t);return!(r<0||(r==e.length-1?e.pop():D.call(e,r,1),0))},U.prototype.get=function(t){var e=this.__data__,r=$(e,t);return r<0?void 0:e[r][1]},U.prototype.has=function(t){return $(this.__data__,t)>-1},U.prototype.set=function(t,e){var r=this.__data__,n=$(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new M,map:new(q||U),string:new M}},z.prototype.delete=function(t){return B(this,t).delete(t)},z.prototype.get=function(t){return B(this,t).get(t)},z.prototype.has=function(t){return B(this,t).has(t)},z.prototype.set=function(t,e){return B(this,t).set(t,e),this},F.prototype.add=F.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},F.prototype.has=function(t){return this.__data__.has(t)};var Q=I?v(I,Object):at,J=I?function(t){for(var e=[];t;)d(e,Q(t)),t=P(t);return e}:at;function G(t){return Y(t)||K(t)||!!(N&&t&&t[N])}function V(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||c.test(t))&&t>-1&&t%1==0&&t<e}function W(t){if("string"==typeof t||function(t){return"symbol"==e(t)||rt(t)&&k.call(t)==a}(t))return t;var n=t+"";return"0"==n&&1/t==-r?"-0":n}function K(t){return function(t){return rt(t)&&Z(t)}(t)&&A.call(t,"callee")&&(!R.call(t,"callee")||k.call(t)==o)}var Y=Array.isArray;function Z(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!tt(t)}function tt(t){var e=et(t)?k.call(t):"";return e==i||e==s}function et(t){var r=e(t);return!!t&&("object"==r||"function"==r)}function rt(t){return!!t&&"object"==e(t)}function nt(t){return Z(t)?function(t,e){var r=Y(t)||K(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!A.call(t,i)||o&&("length"==i||V(i,n))||r.push(i);return r}(t,!0):function(t){if(!et(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e,r,n=(r=(e=t)&&e.constructor,e===("function"==typeof r&&r.prototype||O)),o=[];for(var i in t)("constructor"!=i||!n&&A.call(t,i))&&o.push(i);return o}(t)}var ot,it,st=(ot=function(t,e){return null==t?{}:(e=y(function t(e,r,n,o,i){var s=-1,a=e.length;for(n||(n=G),i||(i=[]);++s<a;){var u=e[s];r>0&&n(u)?r>1?t(u,r-1,n,o,i):d(i,u):o||(i[i.length]=u)}return i}(e,1),W),function(t,e){return function(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var s=e[n],a=t[s];r(a,s)&&(i[s]=a)}return i}(t=Object(t),e,function(e,r){return r in t})}(t,function(t,e,r,n){var o=-1,i=h,s=!0,a=t.length,u=[],c=e.length;if(!a)return u;e.length>=200&&(i=b,s=!1,e=new F(e));t:for(;++o<a;){var l=t[o],f=l;if(l=0!==l?l:0,s&&f==f){for(var p=c;p--;)if(e[p]===f)continue t;u.push(l)}else i(e,f,void 0)||u.push(l)}return u}(function(t){return function(t,e,r){var n=nt(t);return Y(t)?n:d(n,r(t))}(t,0,J)}(t),e)))},it=L(void 0===it?ot.length-1:it,0),function(){for(var t=arguments,e=-1,r=L(t.length-it,0),n=Array(r);++e<r;)n[e]=t[it+e];e=-1;for(var o=Array(it+1);++e<it;)o[e]=t[e];return o[it]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(ot,this,o)});function at(){return[]}w=st}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var S={},O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!_(t))throw new Error("`err` must be an Error");if(!Array.isArray(e))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).concat(Object.getOwnPropertyNames(t)).forEach(function(e){"function"!=typeof t[e]&&(r[e]=t[e])}),!r.name&&t.constructor.name&&(r.name=t.constructor.name),Array.isArray(e)&&0!==e.length?r.filter(function(t){return e.includes(t)}):r},T={};function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}T=k,k.default=k,k.stable=C,k.stableStringify=C;var E=[],A=[];function k(t,e,r){var n;for(function t(e,r,n,o){var i;if("object"==j(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(o,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(o,r,{value:"[Circular]"}),E.push([o,r,e,s])):A.push([e,r]):(o[r]="[Circular]",E.push([o,r,e])))}if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var a=Object.keys(e);for(i=0;i<a.length;i++){var u=a[i];t(e[u],u,n,e)}}n.pop()}}(t,"",[],void 0),n=0===A.length?JSON.stringify(t,e,r):JSON.stringify(t,P(e),r);0!==E.length;){var o=E.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return n}function x(t,e){return t<e?-1:t>e?1:0}function C(t,e,r){var n,o=function t(e,r,n,o){var i;if("object"==j(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(o,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(o,r,{value:"[Circular]"}),E.push([o,r,e,s])):A.push([e,r]):(o[r]="[Circular]",E.push([o,r,e])))}if("function"==typeof e.toJSON)return;if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var a={},u=Object.keys(e).sort(x);for(i=0;i<u.length;i++){var c=u[i];t(e[c],c,n,e),a[c]=e[c]}if(void 0===o)return a;E.push([o,r,e]),o[r]=a}n.pop()}}(t,"",[],void 0)||t;for(n=0===A.length?JSON.stringify(o,e,r):JSON.stringify(o,P(e),r);0!==E.length;){var i=E.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}return n}function P(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(A.length>0)for(var n=0;n<A.length;n++){var o=A[n];if(o[1]===e&&o[0]===r){r="[Circular]",A.splice(n,1);break}}return t.call(this,e,r)}}var R={exports:{}};function D(t){if(t)return function(t){for(var e in D.prototype)t[e]=D.prototype[e];return t}(t)}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}R.exports=D,D.prototype.on=D.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},D.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},D.prototype.off=D.prototype.removeListener=D.prototype.removeAllListeners=D.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},D.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},D.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},D.prototype.hasListeners=function(t){return!!this.listeners(t).length},R=R.exports;var I=Object.prototype.hasOwnProperty,L=Array.isArray,q=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),H={assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],s=Object.keys(i),a=0;a<s.length;++a){var u=s[a],c=i[u];"object"==N(c)&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(L(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==N(t)?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var o="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=q[s]:s<2048?o+=q[192|s>>6]+q[128|63&s]:s<55296||s>=57344?o+=q[224|s>>12]+q[128|s>>6&63]+q[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=q[240|s>>18]+q[128|s>>12&63]+q[128|s>>6&63]+q[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=N(t)||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(L(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=N(r)){if(L(e))e.push(r);else{if(!e||"object"!=N(e))return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!I.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=N(e))return[e].concat(r);var o=e;return L(e)&&!L(r)&&(o=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r}(e,n)),L(e)&&L(r)?(r.forEach(function(r,o){if(I.call(e,o)){var i=e[o];i&&"object"==N(i)&&r&&"object"==N(r)?e[o]=t(i,r,n):e.push(r)}else e[o]=r}),e):Object.keys(r).reduce(function(e,o){var i=r[o];return I.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e},o)}},M=String.prototype.replace,U=/%20/g,z={RFC1738:"RFC1738",RFC3986:"RFC3986"},F=H.assign({default:z.RFC3986,formatters:{RFC1738:function(t){return M.call(t,U,"+")},RFC3986:function(t){return String(t)}}},z);function $(t){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var B=Object.prototype.hasOwnProperty,X={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},Q=Array.isArray,J=Array.prototype.push,G=function(t,e){J.apply(t,Q(e)?e:[e])},V=Date.prototype.toISOString,W=F.default,K={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:H.encode,encodeValuesOnly:!1,format:W,formatter:F.formatters[W],indices:!1,serializeDate:function(t){return V.call(t)},skipNulls:!1,strictNullHandling:!1},Y=function t(e,r,n,o,i,s,a,u,c,l,f,p,h){var y,d=e;if("function"==typeof a?d=a(r,d):d instanceof Date?d=l(d):"comma"===n&&Q(d)&&(d=H.maybeMap(d,function(t){return t instanceof Date?l(t):t}).join(",")),null===d){if(o)return s&&!p?s(r,K.encoder,h,"key"):r;d=""}if("string"==typeof(y=d)||"number"==typeof y||"boolean"==typeof y||"symbol"==$(y)||"bigint"==typeof y||H.isBuffer(d))return s?[f(p?r:s(r,K.encoder,h,"key"))+"="+f(s(d,K.encoder,h,"value"))]:[f(r)+"="+f(String(d))];var m,b=[];if(void 0===d)return b;if(Q(a))m=a;else{var v=Object.keys(d);m=u?v.sort(u):v}for(var g=0;g<m.length;++g){var _=m[g],w=d[_];if(!i||null!==w){var S=Q(d)?"function"==typeof n?n(r,_):r:r+(c?"."+_:"["+_+"]");G(b,t(w,S,n,o,i,s,a,u,c,l,f,p,h))}}return b},Z=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,n=t,o=function(t){if(!t)return K;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||K.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=F.default;if(void 0!==t.format){if(!B.call(F.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=F.formatters[r],o=K.filter;return("function"==typeof t.filter||Q(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:K.addQueryPrefix,allowDots:void 0===t.allowDots?K.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:K.charsetSentinel,delimiter:void 0===t.delimiter?K.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:K.encode,encoder:"function"==typeof t.encoder?t.encoder:K.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:K.encodeValuesOnly,filter:o,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:K.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:K.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:K.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):Q(o.filter)&&(r=o.filter);var i,s=[];if("object"!=$(n)||null===n)return"";i=e&&e.arrayFormat in X?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=X[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var u=0;u<r.length;++u){var c=r[u];o.skipNulls&&null===n[c]||G(s,Y(n[c],c,a,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var l=s.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}});function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t){return(et="function"==typeof Symbol&&"symbol"==tt(Symbol.iterator)?function(t){return tt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":tt(t)})(t)}var rt=function(t){return null!==t&&"object"===et(t)},nt={};function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function it(t){return(it="function"==typeof Symbol&&"symbol"==ot(Symbol.iterator)?function(t){return ot(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":ot(t)})(t)}function st(t){if(t)return function(t){for(var e in st.prototype)Object.prototype.hasOwnProperty.call(st.prototype,e)&&(t[e]=st.prototype[e]);return t}(t)}nt=st,st.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},st.prototype.parse=function(t){return this._parser=t,this},st.prototype.responseType=function(t){return this._responseType=t,this},st.prototype.serialize=function(t){return this._serializer=t,this},st.prototype.timeout=function(t){if(!t||"object"!==it(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},st.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var at=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),ut=new Set([408,413,429,500,502,503,504,521,522,524]);st.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(n){console.error(n)}if(e&&e.status&&ut.has(e.status))return!0;if(t){if(t.code&&at.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},st.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},st.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.on("abort",function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}}),n.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},st.prototype.catch=function(t){return this.then(void 0,t)},st.prototype.use=function(t){return t(this),this},st.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},st.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},st.prototype.get=function(t){return this._header[t.toLowerCase()]},st.prototype.getHeader=st.prototype.get,st.prototype.set=function(t,e){if(rt(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},st.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},st.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(rt(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},st.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},st.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},st.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},st.prototype.redirects=function(t){return this._maxRedirects=t,this},st.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},st.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},st.prototype.send=function(t){var e=rt(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&rt(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},st.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},st.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},st.prototype._appendQueryString=function(){console.warn("Unsupported")},st.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},st.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var ct={};function lt(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ft(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ft(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}ct.type=function(t){return t.split(/ *; */).shift()},ct.params=function(t){var e,r={},n=lt(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),s=o.shift();i&&s&&(r[i]=s)}}catch(a){n.e(a)}finally{n.f()}return r},ct.parseLinks=function(t){var e,r={},n=lt(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(/ *; */),i=o[0].slice(1,-1);r[o[1].split(/ *= */)[1].slice(1,-1)]=i}}catch(s){n.e(s)}finally{n.f()}return r};var pt={};function ht(t){if(t)return function(t){for(var e in ht.prototype)Object.prototype.hasOwnProperty.call(ht.prototype,e)&&(t[e]=ht.prototype[e]);return t}(t)}pt=ht,ht.prototype.get=function(t){return this.header[t.toLowerCase()]},ht.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=ct.type(e);var r=ct.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=ct.parseLinks(t.link))}catch(o){}},ht.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var yt={};function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(t){mt.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}}),mt.prototype._setDefaults=function(t){this._defaults.forEach(function(e){var r;t[e.fn].apply(t,function(t){if(Array.isArray(t))return dt(t)}(r=e.args)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return dt(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(t,void 0):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},yt=mt;var bt,vt={};function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _t(t){return(_t="function"==typeof Symbol&&"symbol"==gt(Symbol.iterator)?function(t){return gt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":gt(t)})(t)}function wt(){}"undefined"!=typeof window?bt=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),bt=void 0):bt=self;var St=vt=vt=function(t,e){return"function"==typeof e?new vt.Request("GET",t).end(e):1===arguments.length?new vt.Request("GET",t):new vt.Request(t,e)};vt.Request=xt,St.getXHR=function(){if(bt.XMLHttpRequest&&(!bt.location||"file:"!==bt.location.protocol||!bt.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(r){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){}throw new Error("Browser-only version of superagent could not find XHR")};var Ot="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function Tt(t){if(!rt(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&jt(e,r,t[r]);return e.join("&")}function jt(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach(function(r){jt(t,e,r)});else if(rt(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&jt(t,"".concat(e,"[").concat(n,"]"),r[n]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function Et(t){for(var e,r,n={},o=t.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function At(t){return/[/+]json($|[^-\w])/i.test(t)}function kt(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(e=(r=i[a]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=Ot(r.slice(e+1)),s[n]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function xt(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var t,e=null,n=null;try{n=new kt(r)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(o){t=o}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)})}function Ct(t,e,r){var n=St("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}St.serializeObject=Tt,St.parseString=Et,St.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},St.serialize={"application/x-www-form-urlencoded":Z.stringify,"application/json":T},St.parse={"application/x-www-form-urlencoded":Et,"application/json":JSON.parse},pt(kt.prototype),kt.prototype._parseBody=function(t){var e=St.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&At(this.type)&&(e=St.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},kt.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},St.Response=kt,R(xt.prototype),nt(xt.prototype),xt.prototype.type=function(t){return this.set("Content-Type",St.types[t]||t),this},xt.prototype.accept=function(t){return this.set("Accept",St.types[t]||t),this},xt.prototype.auth=function(t,e,r){return 1===arguments.length&&(e=""),"object"===_t(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(t,e,r,function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")})},xt.prototype.query=function(t){return"string"!=typeof t&&(t=Tt(t)),t&&this._query.push(t),this},xt.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},xt.prototype._getFormData=function(){return this._formData||(this._formData=new bt.FormData),this._formData},xt.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},xt.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},xt.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},xt.prototype.ca=xt.prototype.agent,xt.prototype.buffer=xt.prototype.ca,xt.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},xt.prototype.pipe=xt.prototype.write,xt.prototype._isHost=function(t){return t&&"object"===_t(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},xt.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||wt,this._finalizeQueryString(),this._end()},xt.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},xt.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=St.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(o){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(a){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(u){return this.callback(u)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||St.serialize[o?o.split(";")[0]:""];!i&&At(o)&&(i=St.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&e.setRequestHeader(s,this.header[s]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},St.agent=function(){return new yt},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){yt.prototype[t.toLowerCase()]=function(e,r){var n=new St.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),yt.prototype.del=yt.prototype.delete,St.get=function(t,e,r){var n=St("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},St.head=function(t,e,r){var n=St("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},St.options=function(t,e,r){var n=St("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.del=Ct,St.delete=Ct,St.patch=function(t,e,r){var n=St("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.post=function(t,e,r){var n=St("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.put=function(t,e,r){var n=St("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n};var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.boolean=void 0,Pt.boolean=function(t){return"string"==typeof t?["true","t","yes","y","on","1"].includes(t.trim().toLowerCase()):"number"==typeof t?1===t:"boolean"==typeof t&&t};var Rt,Dt,Nt,It="6.0.7",Lt=Rt={};function qt(){throw new Error("setTimeout has not been defined")}function Ht(){throw new Error("clearTimeout has not been defined")}function Mt(t){if(Dt===setTimeout)return setTimeout(t,0);if((Dt===qt||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(t,0);try{return Dt(t,0)}catch(e){try{return Dt.call(null,t,0)}catch(e){return Dt.call(this,t,0)}}}!function(){try{Dt="function"==typeof setTimeout?setTimeout:qt}catch(t){Dt=qt}try{Nt="function"==typeof clearTimeout?clearTimeout:Ht}catch(t){Nt=Ht}}();var Ut,zt=[],Ft=!1,$t=-1;function Bt(){Ft&&Ut&&(Ft=!1,Ut.length?zt=Ut.concat(zt):$t=-1,zt.length&&Xt())}function Xt(){if(!Ft){var t=Mt(Bt);Ft=!0;for(var e=zt.length;e;){for(Ut=zt,zt=[];++$t<e;)Ut&&Ut[$t].run();$t=-1,e=zt.length}Ut=null,Ft=!1,function(t){if(Nt===clearTimeout)return clearTimeout(t);if((Nt===Ht||!Nt)&&clearTimeout)return Nt=clearTimeout,clearTimeout(t);try{Nt(t)}catch(e){try{return Nt.call(null,t)}catch(e){return Nt.call(this,t)}}}(t)}}function Qt(t,e){this.fun=t,this.array=e}function Jt(){}Lt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];zt.push(new Qt(t,e)),1!==zt.length||Ft||Mt(Xt)},Qt.prototype.run=function(){this.fun.apply(null,this.array)},Lt.title="browser",Lt.browser=!0,Lt.env={},Lt.argv=[],Lt.version="",Lt.versions={},Lt.on=Jt,Lt.addListener=Jt,Lt.once=Jt,Lt.off=Jt,Lt.removeListener=Jt,Lt.removeAllListeners=Jt,Lt.emit=Jt,Lt.prependListener=Jt,Lt.prependOnceListener=Jt,Lt.listeners=function(t){return[]},Lt.binding=function(t){throw new Error("process.binding is not supported")},Lt.cwd=function(){return"/"},Lt.chdir=function(t){throw new Error("process.chdir is not supported")},Lt.umask=function(){return 0};var Gt={};return function(t){(function(){"use strict";function e(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}function n(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=Pt.boolean,u=new Set(["config","log"]),c=["trace","debug","info","warn","error","fatal"],f={warning:"warn",err:"error"},p="https://api.cabinjs.com",h="production",y="`level` invalid, must be: ".concat(c.join(", "));function d(t){return null==t||"object"==s(t)&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}function m(t){return void 0===t}function b(t){return"object"==s(t)&&null!==t&&!Array.isArray(t)}function j(t){return"string"==typeof t}function E(t){return"function"==typeof t}Gt=function(){function n(){var o=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.config=Object.assign({key:"",endpoint:p,headers:{},timeout:5e3,retry:3,showStack:!t.env.SHOW_STACK||a(t.env.SHOW_STACK),showMeta:!t.env.SHOW_META||a(t.env.SHOW_META),silent:!1,logger:console,name:!1,level:"info",levels:["info","warn","error","fatal"],capture:!t.browser&&"production"===h,callback:!1,appInfo:!t.env.APP_INFO||a(t.env.APP_INFO)},i),this.appInfo=!!this.config.appInfo&&!!E(S)&&S(),this.log=this.log.bind(this);var s,l=r(Object.keys(this.config.logger).filter(function(t){return!u.has(t)}));try{for(l.s();!(s=l.n()).done;){var f=s.value;this[f]=this.config.logger[f]}}catch(b){l.e(b)}finally{l.f()}var y,d=r(c);try{var m=function(){var t=y.value;o[t]=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return o.log.apply(o,e([t].concat([].slice.call(n))))}};for(d.s();!(y=d.n()).done;)m()}catch(b){d.e(b)}finally{d.f()}this.setLevel=this.setLevel.bind(this),this.getNormalizedLevel=this.getNormalizedLevel.bind(this),this.setName=this.setName.bind(this),this.setCallback=this.setCallback.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn}var o,s,A;return o=n,(s=[{key:"setCallback",value:function(t){this.config.callback=t}},{key:"setLevel",value:function(t){if(!j(t)||!c.includes(t))throw new Error(y);j(this.config.logger.logLevel)?this.config.logger.logLevel=t:this.config.logger.level=t,this.config.levels=c.slice(c.indexOf(t))}},{key:"getNormalizedLevel",value:function(t){return j(t)?j(f[t])?f[t]:c.includes(t)?t:"info":"info"}},{key:"setName",value:function(t){if(!j(t))throw new Error("`name` must be a String");j(this.config.logger.scope)?this.config.logger.scope=t:this.config.logger.name=t}},{key:"log",value:function(r,n,o){for(var i=this,s=[],a=arguments.length,u=new Array(a>3?a-3:0),h=3;h<a;h++)u[h-3]=arguments[h];m(r)||s.push(r),m(n)||s.push(n),m(o)||s.push(o),s=s.concat([].slice.call(u));var y=this.config,S=0;j(r)&&j(f[r])?r=f[r]:_(r)?(o=n,n=r,r="error"):j(r)&&c.includes(r)||(o=n,n=r,r=this.getNormalizedLevel(r),S=-1);var A,k=!1;if((b(n)||Array.isArray(n))&&j(o)){k=!0;var x=o;o=n,n=j(x)&&s.length>=3+S?v.apply(void 0,e(s.slice(2+S))):x}m(n)&&(n=r),1!==s.slice(1+S).length||j(n)||_(n)?!k&&s.length>=4+S?(n=v.apply(void 0,e(s.slice(1+S))),o={}):!k&&s.length===3+S&&j(n)&&g.filter(function(t){return n.includes(t)}).length>0?(n=v(n,o),o={}):_(n)||(_(o)?o={err:O(o)}:b(o)||m(o)||null===o?j(n)||(n=v(n)):(n=v(n,o),o={})):(o={message:n},n=r),m(o)||b(o)?b(o)||(o={}):o={meta:o},_(n)?(A=n,b(o.err)||(o.err=O(A)),n=n.message):_(o.err)&&(A=o.err);var C=E(y.callback)&&(!("boolean"==typeof o.callback)||o.callback);(o=w(o,["callback"])).level=r,this.appInfo&&(o.app=this.appInfo);var P=T({message:n,meta:o});if(y.capture&&y.levels.includes(r)&&(!_(A)||!A._captureFailed)){if(y.endpoint===p&&!y.key)throw new Error("Cabin API key required (e.g. `{ key: 'YOUR-CABIN-API-KEY' })`)\n<https://cabinjs.com>");var R=vt.post(y.endpoint).set("X-Request-Id",l()).timeout(y.timeout);t.browser||R.set("User-Agent","axe/".concat(It)),y.key&&R.auth(y.key),d(y.headers)||R.set(y.headers),R.type("application/json").send(P).retry(y.retry).end(function(t){t&&(t._captureFailed=!0,i.config.logger.error(t))})}if(C&&y.callback(r,n,o),y.silent)return P;if(!y.levels.includes(r))return P;var D=r;-1===S?D="log":"fatal"===r&&(D="error");var N=w(o,["level","err"]);return"error"===D&&_(A)&&y.showStack?!y.showMeta||d(N)?this.config.logger.error(A):this.config.logger.error(A,N):!y.showMeta||d(N)?this.config.logger[D](n):this.config.logger[D](n,N),P}}])&&i(o.prototype,s),A&&i(o,A),n}()}).call(this)}.call(this,Rt),Gt});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=t()}}(function(){!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;r=s.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?void 0:window);var t=function(t,e){var r="000000000"+t;return r.substr(r.length-e)};function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r,n="object"==("undefined"==typeof window?"undefined":e(window))?window:self,o=Object.keys(n).length,i=t(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+o.toString(36),4),s=function(){return i},a="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(a){var u=Math.pow(2,32)-1;r=function(){return Math.abs(a.getRandomValues(new Uint32Array(1))[0]/u)}}else r=Math.random;var c=r,l={},f=0,p=4,h=36,y=Math.pow(h,p);function d(){return t((c()*y<<0).toString(h),p)}function m(){return f=f<y?f:0,++f-1}function b(){return"c"+(new Date).getTime().toString(h)+t(m().toString(h),p)+s()+(d()+d())}b.slug=function(){var t=(new Date).getTime().toString(36),e=m().toString(36).slice(-4),r=s().slice(0,1)+s().slice(-1),n=d().slice(-2);return t.slice(-2)+e+r+n},b.isCuid=function(t){return"string"==typeof t&&!!t.startsWith("c")},b.isSlug=function(t){if("string"!=typeof t)return!1;var e=t.length;return e>=7&&e<=10},b.fingerprint=s,l=b;var v=function(t){var e=Array.prototype.slice.call(arguments,1);return e.length&&(t=t.toString().replace(/(%?)(%([jds]))/g,function(t,r,n,o){var i=e.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(e.unshift(i),t):i})),e.length&&(t=t.toString()+" "+e.join(" ")),""+t.toString().replace(/%{2,2}/g,"%")},g=["%s","%d","%i","%f","%j","%o","%O","%%"],_=function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},w={};(function(t){(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=1/0,n=9007199254740991,o="[object Arguments]",i="[object Function]",s="[object GeneratorFunction]",a="[object Symbol]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l="object"==(void 0===t?"undefined":e(t))&&t&&t.Object===Object&&t,f="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,p=l||f||Function("return this")();function h(t,e){return!(!t||!t.length)&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=-1;++i<o;)if(e(t[i],i,t))return i;return-1}(t,m);for(var n=-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e)>-1}function y(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function d(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function m(t){return t!=t}function b(t,e){return t.has(e)}function v(t,e){return function(r){return t(e(r))}}var g,_=Array.prototype,S=Function.prototype,O=Object.prototype,T=p["__core-js_shared__"],j=(g=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",E=S.toString,A=O.hasOwnProperty,k=O.toString,x=RegExp("^"+E.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=p.Symbol,P=v(Object.getPrototypeOf,Object),R=O.propertyIsEnumerable,D=_.splice,N=C?C.isConcatSpreadable:void 0,I=Object.getOwnPropertySymbols,L=Math.max,q=X(p,"Map"),H=X(Object,"create");function M(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function z(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.__data__=new z;++e<r;)this.add(t[e])}function $(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function B(t,r){var n,o,i=t.__data__;return("string"==(o=e(n=r))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof r?"string":"hash"]:i.map}function X(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!et(t)||(e=t,j&&j in e))&&(tt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?x:u).test(function(t){if(null!=t){try{return E.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}(r)?r:void 0}M.prototype.clear=function(){this.__data__=H?H(null):{}},M.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},M.prototype.get=function(t){var e=this.__data__;if(H){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return A.call(e,t)?e[t]:void 0},M.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:A.call(e,t)},M.prototype.set=function(t,e){return this.__data__[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this},U.prototype.clear=function(){this.__data__=[]},U.prototype.delete=function(t){var e=this.__data__,r=$(e,t);return!(r<0||(r==e.length-1?e.pop():D.call(e,r,1),0))},U.prototype.get=function(t){var e=this.__data__,r=$(e,t);return r<0?void 0:e[r][1]},U.prototype.has=function(t){return $(this.__data__,t)>-1},U.prototype.set=function(t,e){var r=this.__data__,n=$(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new M,map:new(q||U),string:new M}},z.prototype.delete=function(t){return B(this,t).delete(t)},z.prototype.get=function(t){return B(this,t).get(t)},z.prototype.has=function(t){return B(this,t).has(t)},z.prototype.set=function(t,e){return B(this,t).set(t,e),this},F.prototype.add=F.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},F.prototype.has=function(t){return this.__data__.has(t)};var Q=I?v(I,Object):at,J=I?function(t){for(var e=[];t;)d(e,Q(t)),t=P(t);return e}:at;function G(t){return Y(t)||K(t)||!!(N&&t&&t[N])}function V(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||c.test(t))&&t>-1&&t%1==0&&t<e}function W(t){if("string"==typeof t||function(t){return"symbol"==e(t)||rt(t)&&k.call(t)==a}(t))return t;var n=t+"";return"0"==n&&1/t==-r?"-0":n}function K(t){return function(t){return rt(t)&&Z(t)}(t)&&A.call(t,"callee")&&(!R.call(t,"callee")||k.call(t)==o)}var Y=Array.isArray;function Z(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!tt(t)}function tt(t){var e=et(t)?k.call(t):"";return e==i||e==s}function et(t){var r=e(t);return!!t&&("object"==r||"function"==r)}function rt(t){return!!t&&"object"==e(t)}function nt(t){return Z(t)?function(t,e){var r=Y(t)||K(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!A.call(t,i)||o&&("length"==i||V(i,n))||r.push(i);return r}(t,!0):function(t){if(!et(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e,r,n=(r=(e=t)&&e.constructor,e===("function"==typeof r&&r.prototype||O)),o=[];for(var i in t)("constructor"!=i||!n&&A.call(t,i))&&o.push(i);return o}(t)}var ot,it,st=(ot=function(t,e){return null==t?{}:(e=y(function t(e,r,n,o,i){var s=-1,a=e.length;for(n||(n=G),i||(i=[]);++s<a;){var u=e[s];r>0&&n(u)?r>1?t(u,r-1,n,o,i):d(i,u):o||(i[i.length]=u)}return i}(e,1),W),function(t,e){return function(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var s=e[n],a=t[s];r(a,s)&&(i[s]=a)}return i}(t=Object(t),e,function(e,r){return r in t})}(t,function(t,e,r,n){var o=-1,i=h,s=!0,a=t.length,u=[],c=e.length;if(!a)return u;e.length>=200&&(i=b,s=!1,e=new F(e));t:for(;++o<a;){var l=t[o],f=l;if(l=0!==l?l:0,s&&f==f){for(var p=c;p--;)if(e[p]===f)continue t;u.push(l)}else i(e,f,void 0)||u.push(l)}return u}(function(t){return function(t,e,r){var n=nt(t);return Y(t)?n:d(n,r(t))}(t,0,J)}(t),e)))},it=L(void 0===it?ot.length-1:it,0),function(){for(var t=arguments,e=-1,r=L(t.length-it,0),n=Array(r);++e<r;)n[e]=t[it+e];e=-1;for(var o=Array(it+1);++e<it;)o[e]=t[e];return o[it]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(ot,this,o)});function at(){return[]}w=st}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var S={},O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!_(t))throw new Error("`err` must be an Error");if(!Array.isArray(e))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).concat(Object.getOwnPropertyNames(t)).forEach(function(e){"function"!=typeof t[e]&&(r[e]=t[e])}),!r.name&&t.constructor.name&&(r.name=t.constructor.name),Array.isArray(e)&&0!==e.length?r.filter(function(t){return e.includes(t)}):r},T={};function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}T=k,k.default=k,k.stable=C,k.stableStringify=C;var E=[],A=[];function k(t,e,r){var n;for(function t(e,r,n,o){var i;if("object"==j(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(o,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(o,r,{value:"[Circular]"}),E.push([o,r,e,s])):A.push([e,r]):(o[r]="[Circular]",E.push([o,r,e])))}if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var a=Object.keys(e);for(i=0;i<a.length;i++){var u=a[i];t(e[u],u,n,e)}}n.pop()}}(t,"",[],void 0),n=0===A.length?JSON.stringify(t,e,r):JSON.stringify(t,P(e),r);0!==E.length;){var o=E.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return n}function x(t,e){return t<e?-1:t>e?1:0}function C(t,e,r){var n,o=function t(e,r,n,o){var i;if("object"==j(e)&&null!==e){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(o,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(o,r,{value:"[Circular]"}),E.push([o,r,e,s])):A.push([e,r]):(o[r]="[Circular]",E.push([o,r,e])))}if("function"==typeof e.toJSON)return;if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)t(e[i],i,n,e);else{var a={},u=Object.keys(e).sort(x);for(i=0;i<u.length;i++){var c=u[i];t(e[c],c,n,e),a[c]=e[c]}if(void 0===o)return a;E.push([o,r,e]),o[r]=a}n.pop()}}(t,"",[],void 0)||t;for(n=0===A.length?JSON.stringify(o,e,r):JSON.stringify(o,P(e),r);0!==E.length;){var i=E.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}return n}function P(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(A.length>0)for(var n=0;n<A.length;n++){var o=A[n];if(o[1]===e&&o[0]===r){r="[Circular]",A.splice(n,1);break}}return t.call(this,e,r)}}var R={exports:{}};function D(t){if(t)return function(t){for(var e in D.prototype)t[e]=D.prototype[e];return t}(t)}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}R.exports=D,D.prototype.on=D.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},D.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},D.prototype.off=D.prototype.removeListener=D.prototype.removeAllListeners=D.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},D.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},D.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},D.prototype.hasListeners=function(t){return!!this.listeners(t).length},R=R.exports;var I=Object.prototype.hasOwnProperty,L=Array.isArray,q=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),H={assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],s=Object.keys(i),a=0;a<s.length;++a){var u=s[a],c=i[u];"object"==N(c)&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(L(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==N(t)?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var o="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=q[s]:s<2048?o+=q[192|s>>6]+q[128|63&s]:s<55296||s>=57344?o+=q[224|s>>12]+q[128|s>>6&63]+q[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=q[240|s>>18]+q[128|s>>12&63]+q[128|s>>6&63]+q[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=N(t)||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(L(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=N(r)){if(L(e))e.push(r);else{if(!e||"object"!=N(e))return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!I.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=N(e))return[e].concat(r);var o=e;return L(e)&&!L(r)&&(o=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r}(e,n)),L(e)&&L(r)?(r.forEach(function(r,o){if(I.call(e,o)){var i=e[o];i&&"object"==N(i)&&r&&"object"==N(r)?e[o]=t(i,r,n):e.push(r)}else e[o]=r}),e):Object.keys(r).reduce(function(e,o){var i=r[o];return I.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e},o)}},M=String.prototype.replace,U=/%20/g,z={RFC1738:"RFC1738",RFC3986:"RFC3986"},F=H.assign({default:z.RFC3986,formatters:{RFC1738:function(t){return M.call(t,U,"+")},RFC3986:function(t){return String(t)}}},z);function $(t){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var B=Object.prototype.hasOwnProperty,X={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},Q=Array.isArray,J=Array.prototype.push,G=function(t,e){J.apply(t,Q(e)?e:[e])},V=Date.prototype.toISOString,W=F.default,K={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:H.encode,encodeValuesOnly:!1,format:W,formatter:F.formatters[W],indices:!1,serializeDate:function(t){return V.call(t)},skipNulls:!1,strictNullHandling:!1},Y=function t(e,r,n,o,i,s,a,u,c,l,f,p,h){var y,d=e;if("function"==typeof a?d=a(r,d):d instanceof Date?d=l(d):"comma"===n&&Q(d)&&(d=H.maybeMap(d,function(t){return t instanceof Date?l(t):t}).join(",")),null===d){if(o)return s&&!p?s(r,K.encoder,h,"key"):r;d=""}if("string"==typeof(y=d)||"number"==typeof y||"boolean"==typeof y||"symbol"==$(y)||"bigint"==typeof y||H.isBuffer(d))return s?[f(p?r:s(r,K.encoder,h,"key"))+"="+f(s(d,K.encoder,h,"value"))]:[f(r)+"="+f(String(d))];var m,b=[];if(void 0===d)return b;if(Q(a))m=a;else{var v=Object.keys(d);m=u?v.sort(u):v}for(var g=0;g<m.length;++g){var _=m[g],w=d[_];if(!i||null!==w){var S=Q(d)?"function"==typeof n?n(r,_):r:r+(c?"."+_:"["+_+"]");G(b,t(w,S,n,o,i,s,a,u,c,l,f,p,h))}}return b},Z=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,n=t,o=function(t){if(!t)return K;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||K.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=F.default;if(void 0!==t.format){if(!B.call(F.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=F.formatters[r],o=K.filter;return("function"==typeof t.filter||Q(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:K.addQueryPrefix,allowDots:void 0===t.allowDots?K.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:K.charsetSentinel,delimiter:void 0===t.delimiter?K.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:K.encode,encoder:"function"==typeof t.encoder?t.encoder:K.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:K.encodeValuesOnly,filter:o,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:K.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:K.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:K.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):Q(o.filter)&&(r=o.filter);var i,s=[];if("object"!=$(n)||null===n)return"";i=e&&e.arrayFormat in X?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=X[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var u=0;u<r.length;++u){var c=r[u];o.skipNulls&&null===n[c]||G(s,Y(n[c],c,a,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var l=s.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}});function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t){return(et="function"==typeof Symbol&&"symbol"==tt(Symbol.iterator)?function(t){return tt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":tt(t)})(t)}var rt=function(t){return null!==t&&"object"===et(t)},nt={};function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function it(t){return(it="function"==typeof Symbol&&"symbol"==ot(Symbol.iterator)?function(t){return ot(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":ot(t)})(t)}function st(t){if(t)return function(t){for(var e in st.prototype)Object.prototype.hasOwnProperty.call(st.prototype,e)&&(t[e]=st.prototype[e]);return t}(t)}nt=st,st.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},st.prototype.parse=function(t){return this._parser=t,this},st.prototype.responseType=function(t){return this._responseType=t,this},st.prototype.serialize=function(t){return this._serializer=t,this},st.prototype.timeout=function(t){if(!t||"object"!==it(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},st.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var at=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),ut=new Set([408,413,429,500,502,503,504,521,522,524]);st.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(n){console.error(n)}if(e&&e.status&&ut.has(e.status))return!0;if(t){if(t.code&&at.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},st.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},st.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.on("abort",function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}}),n.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},st.prototype.catch=function(t){return this.then(void 0,t)},st.prototype.use=function(t){return t(this),this},st.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},st.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},st.prototype.get=function(t){return this._header[t.toLowerCase()]},st.prototype.getHeader=st.prototype.get,st.prototype.set=function(t,e){if(rt(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},st.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},st.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(rt(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},st.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},st.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},st.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},st.prototype.redirects=function(t){return this._maxRedirects=t,this},st.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},st.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},st.prototype.send=function(t){var e=rt(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&rt(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},st.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},st.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},st.prototype._appendQueryString=function(){console.warn("Unsupported")},st.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},st.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var ct={};function lt(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ft(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ft(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}ct.type=function(t){return t.split(/ *; */).shift()},ct.params=function(t){var e,r={},n=lt(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),s=o.shift();i&&s&&(r[i]=s)}}catch(a){n.e(a)}finally{n.f()}return r},ct.parseLinks=function(t){var e,r={},n=lt(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(/ *; */),i=o[0].slice(1,-1);r[o[1].split(/ *= */)[1].slice(1,-1)]=i}}catch(s){n.e(s)}finally{n.f()}return r};var pt={};function ht(t){if(t)return function(t){for(var e in ht.prototype)Object.prototype.hasOwnProperty.call(ht.prototype,e)&&(t[e]=ht.prototype[e]);return t}(t)}pt=ht,ht.prototype.get=function(t){return this.header[t.toLowerCase()]},ht.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=ct.type(e);var r=ct.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=ct.parseLinks(t.link))}catch(o){}},ht.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var yt={};function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(t){mt.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}}),mt.prototype._setDefaults=function(t){this._defaults.forEach(function(e){var r;t[e.fn].apply(t,function(t){if(Array.isArray(t))return dt(t)}(r=e.args)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return dt(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(t,void 0):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},yt=mt;var bt,vt={};function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _t(t){return(_t="function"==typeof Symbol&&"symbol"==gt(Symbol.iterator)?function(t){return gt(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":gt(t)})(t)}function wt(){}"undefined"!=typeof window?bt=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),bt=void 0):bt=self;var St=vt=vt=function(t,e){return"function"==typeof e?new vt.Request("GET",t).end(e):1===arguments.length?new vt.Request("GET",t):new vt.Request(t,e)};vt.Request=xt,St.getXHR=function(){if(bt.XMLHttpRequest&&(!bt.location||"file:"!==bt.location.protocol||!bt.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(r){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){}throw new Error("Browser-only version of superagent could not find XHR")};var Ot="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function Tt(t){if(!rt(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&jt(e,r,t[r]);return e.join("&")}function jt(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach(function(r){jt(t,e,r)});else if(rt(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&jt(t,"".concat(e,"[").concat(n,"]"),r[n]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function Et(t){for(var e,r,n={},o=t.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(e=o[i]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function At(t){return/[/+]json($|[^-\w])/i.test(t)}function kt(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,o,i=t.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(e=(r=i[a]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),o=Ot(r.slice(e+1)),s[n]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function xt(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var t,e=null,n=null;try{n=new kt(r)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(o){t=o}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)})}function Ct(t,e,r){var n=St("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}St.serializeObject=Tt,St.parseString=Et,St.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},St.serialize={"application/x-www-form-urlencoded":Z.stringify,"application/json":T},St.parse={"application/x-www-form-urlencoded":Et,"application/json":JSON.parse},pt(kt.prototype),kt.prototype._parseBody=function(t){var e=St.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&At(this.type)&&(e=St.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},kt.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=e,o.url=r,o},St.Response=kt,R(xt.prototype),nt(xt.prototype),xt.prototype.type=function(t){return this.set("Content-Type",St.types[t]||t),this},xt.prototype.accept=function(t){return this.set("Accept",St.types[t]||t),this},xt.prototype.auth=function(t,e,r){return 1===arguments.length&&(e=""),"object"===_t(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(t,e,r,function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")})},xt.prototype.query=function(t){return"string"!=typeof t&&(t=Tt(t)),t&&this._query.push(t),this},xt.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},xt.prototype._getFormData=function(){return this._formData||(this._formData=new bt.FormData),this._formData},xt.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},xt.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},xt.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},xt.prototype.ca=xt.prototype.agent,xt.prototype.buffer=xt.prototype.ca,xt.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},xt.prototype.pipe=xt.prototype.write,xt.prototype._isHost=function(t){return t&&"object"===_t(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},xt.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||wt,this._finalizeQueryString(),this._end()},xt.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},xt.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=St.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(o){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(a){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(u){return this.callback(u)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||St.serialize[o?o.split(";")[0]:""];!i&&At(o)&&(i=St.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&e.setRequestHeader(s,this.header[s]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},St.agent=function(){return new yt},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){yt.prototype[t.toLowerCase()]=function(e,r){var n=new St.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),yt.prototype.del=yt.prototype.delete,St.get=function(t,e,r){var n=St("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},St.head=function(t,e,r){var n=St("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},St.options=function(t,e,r){var n=St("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.del=Ct,St.delete=Ct,St.patch=function(t,e,r){var n=St("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.post=function(t,e,r){var n=St("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},St.put=function(t,e,r){var n=St("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n};var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.boolean=void 0,Pt.boolean=function(t){return"string"==typeof t?["true","t","yes","y","on","1"].includes(t.trim().toLowerCase()):"number"==typeof t?1===t:"boolean"==typeof t&&t};var Rt,Dt,Nt,It="7.0.0",Lt=Rt={};function qt(){throw new Error("setTimeout has not been defined")}function Ht(){throw new Error("clearTimeout has not been defined")}function Mt(t){if(Dt===setTimeout)return setTimeout(t,0);if((Dt===qt||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(t,0);try{return Dt(t,0)}catch(e){try{return Dt.call(null,t,0)}catch(e){return Dt.call(this,t,0)}}}!function(){try{Dt="function"==typeof setTimeout?setTimeout:qt}catch(t){Dt=qt}try{Nt="function"==typeof clearTimeout?clearTimeout:Ht}catch(t){Nt=Ht}}();var Ut,zt=[],Ft=!1,$t=-1;function Bt(){Ft&&Ut&&(Ft=!1,Ut.length?zt=Ut.concat(zt):$t=-1,zt.length&&Xt())}function Xt(){if(!Ft){var t=Mt(Bt);Ft=!0;for(var e=zt.length;e;){for(Ut=zt,zt=[];++$t<e;)Ut&&Ut[$t].run();$t=-1,e=zt.length}Ut=null,Ft=!1,function(t){if(Nt===clearTimeout)return clearTimeout(t);if((Nt===Ht||!Nt)&&clearTimeout)return Nt=clearTimeout,clearTimeout(t);try{Nt(t)}catch(e){try{return Nt.call(null,t)}catch(e){return Nt.call(this,t)}}}(t)}}function Qt(t,e){this.fun=t,this.array=e}function Jt(){}Lt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];zt.push(new Qt(t,e)),1!==zt.length||Ft||Mt(Xt)},Qt.prototype.run=function(){this.fun.apply(null,this.array)},Lt.title="browser",Lt.browser=!0,Lt.env={},Lt.argv=[],Lt.version="",Lt.versions={},Lt.on=Jt,Lt.addListener=Jt,Lt.once=Jt,Lt.off=Jt,Lt.removeListener=Jt,Lt.removeAllListeners=Jt,Lt.emit=Jt,Lt.prependListener=Jt,Lt.prependOnceListener=Jt,Lt.listeners=function(t){return[]},Lt.binding=function(t){throw new Error("process.binding is not supported")},Lt.cwd=function(){return"/"},Lt.chdir=function(t){throw new Error("process.chdir is not supported")},Lt.umask=function(){return 0};var Gt={};return function(t){(function(){"use strict";function e(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}function n(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=Pt.boolean,u=new Set(["config","log"]),c=["trace","debug","info","warn","error","fatal"],f={warning:"warn",err:"error"},p="https://api.cabinjs.com",h="production",y="`level` invalid, must be: ".concat(c.join(", "));function d(t){return null==t||"object"==s(t)&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}function m(t){return void 0===t}function b(t){return"object"==s(t)&&null!==t&&!Array.isArray(t)}function j(t){return"string"==typeof t}function E(t){return"function"==typeof t}Gt=function(){function n(){var o=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.config=Object.assign({key:"",endpoint:p,headers:{},timeout:5e3,retry:3,showStack:!t.env.SHOW_STACK||a(t.env.SHOW_STACK),showMeta:!t.env.SHOW_META||a(t.env.SHOW_META),silent:!1,logger:console,name:!1,level:"info",levels:["info","warn","error","fatal"],capture:!t.browser&&"production"===h,callback:!1,appInfo:!t.env.APP_INFO||a(t.env.APP_INFO)},i),this.appInfo=!!this.config.appInfo&&!!E(S)&&S(),this.log=this.log.bind(this);var s,l=r(Object.keys(this.config.logger).filter(function(t){return!u.has(t)}));try{for(l.s();!(s=l.n()).done;){var f=s.value;this[f]=this.config.logger[f]}}catch(b){l.e(b)}finally{l.f()}var y,d=r(c);try{var m=function(){var t=y.value;o[t]=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return o.log.apply(o,e([t].concat([].slice.call(n))))}};for(d.s();!(y=d.n()).done;)m()}catch(b){d.e(b)}finally{d.f()}this.setLevel=this.setLevel.bind(this),this.getNormalizedLevel=this.getNormalizedLevel.bind(this),this.setName=this.setName.bind(this),this.setCallback=this.setCallback.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn}var o,s,A;return o=n,(s=[{key:"setCallback",value:function(t){this.config.callback=t}},{key:"setLevel",value:function(t){if(!j(t)||!c.includes(t))throw new Error(y);j(this.config.logger.logLevel)?this.config.logger.logLevel=t:this.config.logger.level=t,this.config.levels=c.slice(c.indexOf(t))}},{key:"getNormalizedLevel",value:function(t){return j(t)?j(f[t])?f[t]:c.includes(t)?t:"info":"info"}},{key:"setName",value:function(t){if(!j(t))throw new Error("`name` must be a String");j(this.config.logger.scope)?this.config.logger.scope=t:this.config.logger.name=t}},{key:"log",value:function(r,n,o){for(var i=this,s=[],a=arguments.length,u=new Array(a>3?a-3:0),h=3;h<a;h++)u[h-3]=arguments[h];m(r)||s.push(r),m(n)||s.push(n),m(o)||s.push(o),s=s.concat([].slice.call(u));var y=this.config,S=0;j(r)&&j(f[r])?r=f[r]:_(r)?(o=n,n=r,r="error"):j(r)&&c.includes(r)||(o=n,n=r,r=this.getNormalizedLevel(r),S=-1);var A,k=!1;if((b(n)||Array.isArray(n))&&j(o)){k=!0;var x=o;o=n,n=j(x)&&s.length>=3+S?v.apply(void 0,e(s.slice(2+S))):x}m(n)&&(n=r),1!==s.slice(1+S).length||j(n)||_(n)?!k&&s.length>=4+S?(n=v.apply(void 0,e(s.slice(1+S))),o={}):!k&&s.length===3+S&&j(n)&&g.filter(function(t){return n.includes(t)}).length>0?(n=v(n,o),o={}):_(n)||(_(o)?o={err:O(o)}:b(o)||m(o)||null===o?j(n)||(n=v(n)):(n=v(n,o),o={})):(o={message:n},n=r),m(o)||b(o)?b(o)||(o={}):o={meta:o},_(n)?(A=n,b(o.err)||(o.err=O(A)),n=n.message):_(o.err)&&(A=o.err);var C=E(y.callback)&&(!("boolean"==typeof o.callback)||o.callback);(o=w(o,["callback"])).level=r,this.appInfo&&(o.app=this.appInfo);var P=T({message:n,meta:o});if(y.capture&&y.levels.includes(r)&&(!_(A)||!A._captureFailed)){if(y.endpoint===p&&!y.key)throw new Error("Cabin API key required (e.g. `{ key: 'YOUR-CABIN-API-KEY' })`)\n<https://cabinjs.com>");var R=vt.post(y.endpoint).set("X-Request-Id",l()).timeout(y.timeout);t.browser||R.set("User-Agent","axe/".concat(It)),y.key&&R.auth(y.key),d(y.headers)||R.set(y.headers),R.type("application/json").send(P).retry(y.retry).end(function(t){t&&(t._captureFailed=!0,i.config.logger.error(t))})}if(C&&y.callback(r,n,o),y.silent)return P;if(!y.levels.includes(r))return P;var D=r;-1===S?D="log":"fatal"===r&&(D="error");var N=w(o,["level","err"]);return"error"===D&&_(A)&&y.showStack?!y.showMeta||d(N)?this.config.logger.error(A):this.config.logger.error(A,N):!y.showMeta||d(N)?this.config.logger[D](n):this.config.logger[D](n,N),P}}])&&i(o.prototype,s),A&&i(o,A),n}()}).call(this)}.call(this,Rt),Gt});
{
"name": "axe",
"description": "Logging add-on to send logs over HTTP to your server in Node and Browser environments. Works with any logger! Chop up your logs consistently! Made for Cabin and Lad.",
"version": "7.0.0",
"version": "7.0.1",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)",

@@ -41,3 +41,3 @@ "ava": {

"lodash.omit": "^4.5.0",
"parse-app-info": "^4.0.0",
"parse-app-info": "^4.0.1",
"parse-err": "^0.0.12",

@@ -44,0 +44,0 @@ "superagent": "^6.1.0"

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc