diff --git a/dist/inspect.js b/dist/inspect.js index b063893..30a9d31 100644 --- a/dist/inspect.js +++ b/dist/inspect.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.util=e():t.util=e()}(this,(function(){return(()=>{"use strict";var t={558:(t,e)=>{function r(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return Array.prototype.map.call(this.slice(t,e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")}}])&&r(e.prototype,n),t}();e.l=n},336:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(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 o(t){return(o="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 i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(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,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}function a(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<~]))","g");function Ze(t,e){var r={budget:{},indentationLvl:0,seen:[],currentDepth:0,stylize:er,showHidden:Re.showHidden,depth:Re.depth,colors:Re.colors,customInspect:Re.customInspect,showProxy:Re.showProxy,maxArrayLength:Re.maxArrayLength,maxStringLength:Re.maxStringLength,breakLength:Re.breakLength,compact:Re.compact,sorted:Re.sorted,getters:Re.getters};if(arguments.length>1)if(arguments.length>2&&(void 0!==arguments[2]&&(r.depth=arguments[2]),arguments.length>3&&void 0!==arguments[3]&&(r.colors=arguments[3])),"boolean"==typeof e)r.showHidden=e;else if(e)for(var n=X(e),o=0;o100)return Je(t=Pt(t,r,Qe),n);for(var o="",i=0,a=t.length,c=0;c126&&l<160)&&(o+=i===c?Ue[l]:"".concat(Ot(t,i,c)).concat(Ue[l]),i=c+1)}return i!==a&&(o+=Ot(t,i)),Je(o,n)}function tr(t,e){var r=Ze.styles[e];if(void 0!==r){var n=Ze.colors[r];if(void 0!==n)return"[".concat(n[0],"m").concat(t,"[").concat(n[1],"m")}return t}function er(t){return t}function rr(){return[]}function nr(t,e){try{return t instanceof e}catch(t){return!1}}function or(t,e,r,n){for(var o,i=t;t||Te(t);){var a=Y(t,"constructor");if(void 0!==a&&"function"==typeof a.value&&""!==a.value.name&&nr(i,a.value))return void 0===n||o===t&&ke.has(a.value.name)||ir(e,i,o||i,r,n),a.value.name;t=J(t),void 0===o&&(o=t)}if(null===o)return null;var c=Ht(i);if(r>e.depth&&null!==e.depth)return"".concat(c," ");var l=or(o,e,r+1,n);return null===l?"".concat(c," <").concat(Ze(o,u(u({},e),{},{customInspect:!1,depth:-1})),">"):"".concat(c," <").concat(l,">")}function ir(t,e,r,n,o){var a,c,l=0;do{if(0!==l||e===r){if(null===(r=J(r)))return;var u=Y(r,"constructor");if(void 0!==u&&"function"==typeof u.value&&ke.has(u.value.name))return}0===l?c=new pt:v(a,(function(t){return c.add(t)}));var p,f=i(a=ot(r));try{for(f.s();!(p=f.n()).done;){var y=p.value;if(!("constructor"===y||tt(e,y)||0!==l&&c.has(y))){var s=Y(r,y);if("function"!=typeof s.value){var g=Lr(t,r,n,y,0,s,e);t.colors?m(o,"".concat(g,"")):m(o,g)}}}}catch(t){f.e(t)}finally{f.f()}}while(3!=++l)}function ar(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return null===t?""!==e&&r!==e?"[".concat(r).concat(n,": null prototype] [").concat(e,"] "):"[".concat(r).concat(n,": null prototype] "):""!==e&&t!==e?"".concat(t).concat(n," [").concat(e,"] "):"".concat(t).concat(n," ")}function cr(t,e){var r,n=q(t);if(e)r=K(t),0!==n.length&&S(r,n);else{try{r=X(t)}catch(e){Le(de(e)&&"ReferenceError"===e.name&&ge(t)),r=K(t)}0!==n.length&&S(r,h(n,(function(e){return et(t,e)})))}return r}function lr(t,e,r){var n="";return null===e&&(n=Ht(t))===r&&(n="Object"),ar(e,r,n)}function ur(t,e,r,a){if("object"!==o(e)&&"function"!=typeof e&&!Te(e))return sr(t.stylize,e,t);if(null===e)return t.stylize("null","null");var c=e,l=Dt(e,!!t.showProxy);if(void 0!==l){if(t.showProxy)return function(t,e,r){if(r>t.depth&&null!==t.depth)return t.stylize("Proxy [Array]","special");r+=1,t.indentationLvl+=2;var n=[ur(t,e[0],r),ur(t,e[1],r)];return t.indentationLvl-=2,Ir(t,n,"",["Proxy [","]"],2,r)}(t,l,r);e=l}if(t.customInspect){var p=e[qt];if("function"==typeof p&&p!==Ze&&(!e.constructor||e.constructor.prototype!==e)){var f=null===t.depth?null:t.depth-r,y=F(p,c,f,function(t,e){var r=u({stylize:t.stylize,showHidden:t.showHidden,depth:t.depth,colors:t.colors,customInspect:t.customInspect,showProxy:t.showProxy,maxArrayLength:t.maxArrayLength,maxStringLength:t.maxStringLength,breakLength:t.breakLength,compact:t.compact,sorted:t.sorted,getters:t.getters},t.userOptions);if(e){nt(r,null);var n,a=i(X(r));try{for(a.s();!(n=a.n()).done;){var c=n.value;"object"!==o(r[c])&&"function"!=typeof r[c]||null===r[c]||delete r[c]}}catch(t){a.e(t)}finally{a.f()}r.stylize=nt((function(e,r){var n;try{n="".concat(t.stylize(e,r))}catch(t){}return"string"!=typeof n?e:n}),null)}return r}(t,void 0!==l||!(c instanceof V)));if(y!==c)return"string"!=typeof y?ur(t,y,r):y.replace(/\n/g,"\n".concat(" ".repeat(t.indentationLvl)))}}if(t.seen.includes(e)){var g=1;return void 0===t.circular?(t.circular=new ut,t.circular.set(e,g)):void 0===(g=t.circular.get(e))&&(g=t.circular.size+1,t.circular.set(e,g)),t.stylize("[Circular *".concat(g,"]"),"special")}return function(t,e,r,o){var a,c;t.showHidden&&(r<=t.depth||null===t.depth)&&(c=[]);var l=or(e,t,r,c);void 0!==c&&0===c.length&&(c=void 0);var u=e[It];("string"!=typeof u||""!==u&&(t.showHidden?tt:et)(e,It))&&(u="");var p,f,y="",g=rr,d=!0,h=0,v=t.showHidden?$t:Zt,m=0;if(e[Ft]||null===l)if(d=!1,b(e)){var S="Array"!==l||""!==u?ar(l,u,"Array","(".concat(e.length,")")):"";if(a=Bt(e,v),p=["".concat(S,"["),"]"],0===e.length&&0===a.length&&void 0===c)return"".concat(p[0],"]");m=2,g=hr}else if(he(e)){var P=ft(e),F=ar(l,u,"Set","(".concat(P,")"));if(a=cr(e,t.showHidden),g=null!==l?mr.bind(null,e):mr.bind(null,yt(e)),0===P&&0===a.length&&void 0===c)return"".concat(F,"{}");p=["".concat(F,"{"),"}"]}else if(ye(e)){var k=T(e),z=ar(l,u,"Map","(".concat(k,")"));if(a=cr(e,t.showHidden),g=null!==l?Sr.bind(null,e):Sr.bind(null,R(e)),0===k&&0===a.length&&void 0===c)return"".concat(z,"{}");p=["".concat(z,"{"),"}"]}else if(xe(e)){a=Bt(e,v);var _=e,M="";null===l&&(M=Tt(e),_=new s[M](e));var B=kt(e),N=ar(l,u,M,"(".concat(B,")"));if(p=["".concat(N,"["),"]"],0===e.length&&0===a.length&&!t.showHidden)return"".concat(p[0],"]");g=vr.bind(null,_,B),m=2}else se(e)?(a=cr(e,t.showHidden),p=pr("Map",u),g=jr.bind(null,p)):ve(e)?(a=cr(e,t.showHidden),p=pr("Set",u),g=jr.bind(null,p)):d=!0;if(d)if(a=cr(e,t.showHidden),p=["{","}"],"Object"===l){if(le(e)?p[0]="[Arguments] {":""!==u&&(p[0]="".concat(ar(l,u,"Object"),"{")),0===a.length&&void 0===c)return"".concat(p[0],"}")}else if("function"==typeof e){if(y=function(t,e,r){var n=I(t);if("class"===n.slice(0,5)&&n.endsWith("}")){var o=n.slice(5,-1),i=o.indexOf("{");if(-1!==i&&(!o.slice(0,i).includes("(")||He.test(o.replace(Ve))))return function(t,e,r){var n=tt(t,"name")&&t.name||"(anonymous)",o="class ".concat(n);if("Function"!==e&&null!==e&&(o+=" [".concat(e,"]")),""!==r&&e!==r&&(o+=" [".concat(r,"]")),null!==e){var i=J(t).name;i&&(o+=" extends ".concat(i))}else o+=" extends [null prototype]";return"[".concat(o,"]")}(t,e,r)}var a="Function";ie(t)&&(a="Generator".concat(a)),oe(t)&&(a="Async".concat(a));var c="[".concat(a);return null===e&&(c+=" (null prototype)"),""===t.name?c+=" (anonymous)":c+=": ".concat(t.name),c+="]",e!==a&&null!==e&&(c+=" ".concat(e)),""!==r&&e!==r&&(c+=" [".concat(r,"]")),c}(e,l,u),0===a.length&&void 0===c)return t.stylize(y,"special")}else if(Pe(e)){y=ct(null!==l?e:new it(e));var D=ar(l,u,"RegExp");if("RegExp "!==D&&(y="".concat(D).concat(y)),0===a.length&&void 0===c||r>t.depth&&null!==t.depth)return t.stylize(y,"regexp")}else if(Oe(e)){y=C(w(e))?E(e):j(e);var G=ar(l,u,"Date");if("Date "!==G&&(y="".concat(G).concat(y)),0===a.length&&void 0===c)return t.stylize(y,"date")}else if(Jt(e)){if(y=function(t,e,r,n,o){var a=null!=t.name?st(t.name):"Error",c=a.length,l=t.stack?st(t.stack):L(t);if(!n.showHidden&&0!==o.length)for(var u=0,p=["name","message","stack"];ut.depth&&null!==t.depth){var U=lr(e,l,u).slice(0,-1);return null!==l&&(U="[".concat(U,"]")),t.stylize(U,"special")}r+=1,t.seen.push(e),t.currentDepth=r;var $=t.indentationLvl;try{for(f=g(t,e,r),h=0;h"),"special");!0!==t.compact?y=""===y?K:"".concat(K," ").concat(y):p[0]="".concat(K," ").concat(p[0])}}if(t.seen.pop(),t.sorted){var q=!0===t.sorted?void 0:t.sorted;if(0===m)f=f.sort(q);else if(a.length>1){var Q,X=f.slice(f.length-a.length).sort(q);(Q=f).splice.apply(Q,[f.length-a.length,a.length].concat(n(X)))}}var rt=Ir(t,f,y,p,m,r,e),nt=(t.budget[t.indentationLvl]||0)+rt.length;return t.budget[t.indentationLvl]=nt,nt>Math.pow(2,27)&&(t.depth=-1),rt}(t,e,r,a)}function pr(t,e){return e!=="".concat(t," Iterator")&&(""!==e&&(e+="] ["),e+="".concat(t," Iterator")),["[".concat(e,"] {"),"}"]}function fr(t,e){return t(Q(e,-0)?"-0":"".concat(e),"number")}function yr(t,e){return t("".concat(e,"n"),"bigint")}function sr(t,e,r){if("string"==typeof e){var n="";if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength;e=e.slice(0,r.maxStringLength),n="... ".concat(o," more character").concat(o>1?"s":"")}return!0!==r.compact&&e.length>16&&e.length>r.breakLength-r.indentationLvl-4?e.split(/\n/).map((function(e,r,n){return t(Xe(e+(r===n.length-1?"":"\n")),"string")})).join(" +\n".concat(" ".repeat(r.indentationLvl+2)))+n:t(Xe(e),"string")+n}return"number"==typeof e?fr(t,e):"bigint"==typeof e?yr(t,e):"boolean"==typeof e?t("".concat(e),"boolean"):void 0===e?t("undefined","undefined"):t(Et(e),"symbol")}function gr(t,e,r,n){for(var o=new d(t.length),i=0;i","special")}return t.length=0,o}function dr(t,e,r,n,o,i){for(var a=X(e),c=i;iMath.pow(2,32)-2)break;if("".concat(c)!==l){if(!De.test(l))break;var p=u-c,f=p>1?"s":"",y="<".concat(p," empty item").concat(f,">");if(o.push(t.stylize(y,"undefined")),c=u,o.length===n)break}o.push(Lr(t,e,r,l,1)),c++}var s=e.length-c;if(o.length!==n){if(s>0){var g=s>1?"s":"",d="<".concat(s," empty item").concat(g,">");o.push(t.stylize(d,"undefined"))}}else s>0&&o.push("... ".concat(s," more item").concat(s>1?"s":""));return o}function br(t,e){var n;try{n=new Rt(e)}catch(e){return[t.stylize("(detached)","special")]}void 0===f&&(f=_t(r(558).l.prototype.hexSlice));var o=wt(Pt(f(n,0,M(t.maxArrayLength,n.length)),/(.{2})/g,"$1 ")),i=n.length-t.maxArrayLength;return i>0&&(o+=" ... ".concat(i," more byte").concat(i>1?"s":"")),["".concat(t.stylize("[Uint8Contents]","special"),": <").concat(o,">")]}function hr(t,e,r){for(var n=e.length,o=M(_(0,t.maxArrayLength),n),i=n-o,a=[],c=0;c0&&a.push("... ".concat(i," more item").concat(i>1?"s":"")),a}function vr(t,e,r,n,o){for(var i=M(_(0,r.maxArrayLength),e),a=t.length-i,c=new d(i),l=t.length>0&&"number"==typeof t[0]?fr:yr,u=0;u0&&(c[i]="... ".concat(a," more item").concat(a>1?"s":"")),r.showHidden){r.indentationLvl+=2;for(var p=0,f=["BYTES_PER_ELEMENT","length","byteLength","byteOffset","buffer"];p ").concat(ur(e,p,n)))}}catch(t){c.e(t)}finally{c.f()}return e.indentationLvl-=2,o}function Pr(t,e,r,n){var o=_(t.maxArrayLength,0),i=M(o,r.length),a=new d(i);t.indentationLvl+=2;for(var c=0;c0&&m(a,"... ".concat(l," more item").concat(l>1?"s":"")),a}function Or(t,e,r,n){var o=_(t.maxArrayLength,0),i=r.length/2,a=i-o,c=M(o,i),l=new d(c),u=0;if(t.indentationLvl+=2,0===n){for(;u ").concat(ur(t,r[p+1],e))}t.sorted||(l=l.sort())}else for(;u0&&l.push("... ".concat(a," more item").concat(a>1?"s":"")),l}function xr(t){return[t.stylize("","special")]}function Ar(t,e,r){return Pr(t,r,Wt(e),0)}function wr(t,e,r){return Or(t,r,Wt(e),0)}function jr(t,e,r,n){var o=Wt(r,!0),i=o[0];return o[1]?(t[0]=t[0].replace(/ Iterator] {$/," Entries] {"),Or(e,n,i,2)):Pr(e,n,i,1)}function Er(t,e,r){var n,o=Nt(e),i=o[0],a=o[1];if(i===Ct)n=[t.stylize("","special")];else{t.indentationLvl+=2;var c=ur(t,a,r);t.indentationLvl-=2,n=[i===Gt?"".concat(t.stylize("","special")," ").concat(c):c]}return n}function Lr(t,e,r,n,i,a){var c,l,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e,p=" ";if(void 0!==(a=a||Y(e,n)||{value:e[n],enumerable:!0}).value){var f=!0!==t.compact||0!==i?2:3;t.indentationLvl+=f,l=ur(t,a.value,r),3===f&&t.breakLength");l="".concat(g("[".concat(s,":"),d)," ").concat(v).concat(g("]",d))}else l=t.stylize("[".concat(s,"]"),d)}else l=void 0!==a.set?t.stylize("[Setter]","special"):t.stylize("undefined","undefined");if(1===i)return l;if("symbol"===o(n)){var m=Pt(Et(n),_e,Qe);c="[".concat(t.stylize(m,"symbol"),"]")}else if("__proto__"===n)c="['__proto__']";else if(!1===a.enumerable){var S=Pt(n,_e,Qe);c="[".concat(S,"]")}else c=at(Ne,n)?t.stylize(n,"name"):t.stylize(Xe(n),"string");return"".concat(c,":").concat(p).concat(l)}function Fr(t,e,r,n){var o=e.length+r;if(o+e.length>t.breakLength)return!1;for(var i=0;it.breakLength)return!1;return""===n||!bt(n,"\n")}function Ir(t,e,r,n,o,i,a){if(!0!==t.compact){if("number"==typeof t.compact&&t.compact>=1){var c=e.length;if(2===o&&c>6&&(e=function(t,e,r){var n=0,o=0,i=0,a=e.length;t.maxArrayLength5||o<=6)){var p=N(u-n/e.length),f=_(u-3-p,1),s=M(B(N(2.5*f*a)/f),z((t.breakLength-t.indentationLvl)/u),4*t.compact,15);if(s<=1)return e;for(var g=[],b=[],h=0;hv&&(v=c[S]);v+=2,b[h]=v}var P=mt;if(void 0!==r)for(var O=0;O1&&void 0!==arguments[1])||arguments[1],r=0;e&&(t=Dr(t));for(var n=0;n=127){r+=Mr.getStringWidth(t.slice(n).normalize("NFC"));break}r+=o>=32?1:0}return r}}else{y=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0;e&&(t=Dr(t)),t=ht(t,"NFC");var n,o=i(new lt(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,c=dt(a,0);Br(c)?r+=2:Nr(c)||r++}}catch(t){o.e(t)}finally{o.f()}return r};var Br=function(t){return t>=4352&&(t<=4447||9001===t||9002===t||t>=11904&&t<=12871&&12351!==t||t>=12880&&t<=19903||t>=19968&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510||t>=110592&&t<=110593||t>=127488&&t<=127569||t>=127744&&t<=128591||t>=131072&&t<=262141)},Nr=function(t){return t<=31||t>=127&&t<=159||t>=768&&t<=879||t>=8203&&t<=8207||t>=8400&&t<=8447||t>=65024&&t<=65039||t>=65056&&t<=65071||t>=917760&&t<=917999}}function Dr(t){return t.replace($e,"")}t.exports={inspect:Ze,format:function(){for(var t=arguments.length,e=new Array(t),r=0;r1?e-1:0),n=1;n').concat(t,""):t},Proxy:Yt}},568:t=>{t.exports=function(t){if(!t)throw new Error("Assertion failed")}},769:(t,e)=>{e.NativeModule={exists:function(t){return!t.startsWith("/")}}},926:(t,e,r)=>{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)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}(e);try{for(A.s();!(d=A.n()).done;){var w=d.value;a("string"==typeof w,"All expected entries have to be of type string"),u(E,w)?s(b,x(w)):v(j,w)?s(h,w):(a("object"!==w,'The value "object" should be written as "Object"'),s(m,w))}}catch(t){A.e(t)}finally{A.f()}if(h.length>0){var L=p(b,"object");-1!==L&&(g(b,L,1),s(h,"Object"))}if(b.length>0){if(b.length>2){var I=y(b);i+="one of type ".concat(f(b,", "),", or ").concat(I)}else i+=2===b.length?"one of type ".concat(b[0]," or ").concat(b[1]):"of type ".concat(b[0]);(h.length>0||m.length>0)&&(i+=" or ")}if(h.length>0){if(h.length>2){var k=y(h);i+="an instance of ".concat(f(h,", "),", or ").concat(k)}else i+="an instance of ".concat(h[0]),2===h.length&&(i+=" or ".concat(h[1]));m.length>0&&(i+=" or ")}if(m.length>0)if(m.length>2){var T=y(m);i+="one of ".concat(f(m,", "),", or ").concat(T)}else 2===m.length?i+="one of ".concat(m[0]," or ").concat(m[1]):(x(m[0])!==m[0]&&(i+="an "),i+="".concat(m[0]));if(null==r)i+=". Received ".concat(r);else if("function"==typeof r&&r.name)i+=". Received function ".concat(r.name);else if("object"===n(r))if(r.constructor&&r.constructor.name)i+=". Received an instance of ".concat(r.constructor.name);else{var R=F().inspect(r,{depth:-1});i+=". Received ".concat(R)}else{var z=F().inspect(r,{colors:!1});z.length>25&&(z="".concat(O(z,0,25),"...")),i+=". Received type ".concat(n(r)," (").concat(z,")")}return i},B=TypeError,A.set(_,M),w[_]=(N=B,D=_,function(){var t=Error.stackTraceLimit;Error.stackTraceLimit=0;var e=new N;Error.stackTraceLimit=t;for(var r=arguments.length,n=new Array(r),o=0;o{var e=/\u001b\[\d\d?m/g;t.exports={customInspectSymbol:Symbol.for("nodejs.util.inspect.custom"),isError:function(t){return t instanceof Error},join:Array.prototype.join.call.bind(Array.prototype.join),removeColors:function(t){return String.prototype.replace.call(t,e,"")}}},442:(t,e,r)=>{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)}var o=r(791).getConstructorName;function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i=0)return!0;t=Object.getPrototypeOf(t)}return!1}function a(t){return function(e){if(!i(e,t.name))return!1;try{t.prototype.valueOf.call(e)}catch(t){return!1}return!0}}"object"!==("undefined"==typeof globalThis?"undefined":n(globalThis))&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var c=a(String),l=a(Number),u=a(Boolean),p=a(BigInt),f=a(Symbol);t.exports={isAsyncFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).startsWith("async")},isGeneratorFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).match(/^(async\s+)?function *\*/)},isAnyArrayBuffer:function(t){return i(t,"ArrayBuffer","SharedArrayBuffer")},isArrayBuffer:function(t){return i(t,"ArrayBuffer")},isArgumentsObject:function(t){return!1},isBoxedPrimitive:function(t){return l(t)||c(t)||u(t)||p(t)||f(t)},isDataView:function(t){return i(t,"DataView")},isExternal:function(t){return"object"===n(t)&&Object.isFrozen(t)&&null==Object.getPrototypeOf(t)},isMap:function(t){if(!i(t,"Map"))return!1;try{t.has()}catch(t){return!1}return!0},isMapIterator:function(t){return"[object Map Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isModuleNamespaceObject:function(t){return t&&"object"===n(t)&&"Module"===t[Symbol.toStringTag]},isNativeError:function(t){return t instanceof Error&&i(t,"Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError")},isPromise:function(t){return i(t,"Promise")},isSet:function(t){if(!i(t,"Set"))return!1;try{t.has()}catch(t){return!1}return!0},isSetIterator:function(t){return"[object Set Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isWeakMap:function(t){return i(t,"WeakMap")},isWeakSet:function(t){return i(t,"WeakSet")},isRegExp:function(t){return i(t,"RegExp")},isDate:function(t){if(i(t,"Date"))try{return Date.prototype.getTime.call(t),!0}catch(t){}return!1},isTypedArray:function(t){return i(t,"Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array")},isStringObject:c,isNumberObject:l,isBooleanObject:u,isBigIntObject:p,isSymbolObject:f}},331:(t,e,r)=>{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)}var o=r(926),i=o.hideStackFrames,a=o.codes.ERR_INVALID_ARG_TYPE;e.validateObject=i((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.nullable,i=void 0!==o&&o;if(!i&&null===t||Array.isArray(t)||"object"!==n(t))throw new a(e,"Object",t)}))},625:t=>{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)}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function n(t){var e=c();return function(){var r,n=u(t);if(e){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}function o(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function i(t){var e="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)})(t)}function a(t,e,r){return(a=c()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r{function e(t,e){for(var r=0;r1&&void 0!==arguments[1])||arguments[1],n=r.get(t);if(n)return e?n:n[0]}}],null&&e(n.prototype,null),o&&e(n,o),t}();t.exports={getProxyDetails:n.getProxyDetails.bind(n),Proxy:n}},791:(t,e,r)=>{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)}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(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,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:2,r=Object.getOwnPropertyDescriptors(t),n=[],a=0,c=Object.entries(r);a=Math.pow(2,32)-1){if(2===e&&!p.enumerable)continue;n.push(u)}}var f,y=o(Object.getOwnPropertySymbols(t));try{for(y.s();!(f=y.n()).done;){var s=f.value,g=Object.getOwnPropertyDescriptor(t,s);(2!==e||g.enumerable)&&n.push(s)}}catch(t){y.e(t)}finally{y.f()}return n},getPromiseDetails:function(){return[u,void 0]},getProxyDetails:l.getProxyDetails,Proxy:l.Proxy,kPending:u,kRejected:p,previewEntries:function(t){return[[],!1]},getConstructorName:function(t){if(!t||"object"!==n(t))throw new Error("Invalid object");if(t.constructor&&t.constructor.name)return t.constructor.name;var e=Object.prototype.toString.call(t).match(/^\[object ([^\]]+)\]/);return e?e[1]:"Object"},getExternalValue:function(){return BigInt(0)},propertyFilter:{ALL_PROPERTIES:0,ONLY_ENUMERABLE:2}}}},e={};return function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}(336)})()})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.util=e():t.util=e()}(this,(function(){return(()=>{"use strict";var t={558:(t,e)=>{function r(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return Array.prototype.map.call(this.slice(t,e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")}}])&&r(e.prototype,n),t}();e.l=n},336:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(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 o(t){return(o="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 i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(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,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}function a(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<~]))","g");function Ze(t,e){var r={budget:{},indentationLvl:0,seen:[],currentDepth:0,stylize:er,showHidden:Re.showHidden,depth:Re.depth,colors:Re.colors,customInspect:Re.customInspect,showProxy:Re.showProxy,maxArrayLength:Re.maxArrayLength,maxStringLength:Re.maxStringLength,breakLength:Re.breakLength,compact:Re.compact,sorted:Re.sorted,getters:Re.getters};if(arguments.length>1)if(arguments.length>2&&(void 0!==arguments[2]&&(r.depth=arguments[2]),arguments.length>3&&void 0!==arguments[3]&&(r.colors=arguments[3])),"boolean"==typeof e)r.showHidden=e;else if(e)for(var n=X(e),o=0;o100)return Je(t=Pt(t,r,Qe),n);for(var o="",i=0,a=t.length,c=0;c126&&l<160)&&(o+=i===c?Ue[l]:"".concat(Ot(t,i,c)).concat(Ue[l]),i=c+1)}return i!==a&&(o+=Ot(t,i)),Je(o,n)}function tr(t,e){var r=Ze.styles[e];if(void 0!==r){var n=Ze.colors[r];if(void 0!==n)return"[".concat(n[0],"m").concat(t,"[").concat(n[1],"m")}return t}function er(t){return t}function rr(){return[]}function nr(t,e){try{return t instanceof e}catch(t){return!1}}function or(t,e,r,n){for(var o,i=t;t||ke(t);){var a=Y(t,"constructor");if(void 0!==a&&"function"==typeof a.value&&""!==a.value.name&&nr(i,a.value))return void 0===n||o===t&&Te.has(a.value.name)||ir(e,i,o||i,r,n),a.value.name;t=J(t),void 0===o&&(o=t)}if(null===o)return null;var c=Ht(i);if(r>e.depth&&null!==e.depth)return"".concat(c," ");var l=or(o,e,r+1,n);return null===l?"".concat(c," <").concat(Ze(o,u(u({},e),{},{customInspect:!1,depth:-1})),">"):"".concat(c," <").concat(l,">")}function ir(t,e,r,n,o){var a,c,l=0;do{if(0!==l||e===r){if(null===(r=J(r)))return;var u=Y(r,"constructor");if(void 0!==u&&"function"==typeof u.value&&Te.has(u.value.name))return}0===l?c=new pt:v(a,(function(t){return c.add(t)}));var p,f=i(a=ot(r));try{for(f.s();!(p=f.n()).done;){var y=p.value;if(!("constructor"===y||tt(e,y)||0!==l&&c.has(y))){var s=Y(r,y);if("function"!=typeof s.value){var g=Lr(t,r,n,y,0,s,e);t.colors?m(o,"".concat(g,"")):m(o,g)}}}}catch(t){f.e(t)}finally{f.f()}}while(3!=++l)}function ar(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return null===t?""!==e&&r!==e?"[".concat(r).concat(n,": null prototype] [").concat(e,"] "):"[".concat(r).concat(n,": null prototype] "):""!==e&&t!==e?"".concat(t).concat(n," [").concat(e,"] "):"".concat(t).concat(n," ")}function cr(t,e){var r,n=q(t);if(e)r=K(t),0!==n.length&&S(r,n);else{try{r=X(t)}catch(e){Le(de(e)&&"ReferenceError"===e.name&&ge(t)),r=K(t)}0!==n.length&&S(r,h(n,(function(e){return et(t,e)})))}return r}function lr(t,e,r){var n="";return null===e&&(n=Ht(t))===r&&(n="Object"),ar(e,r,n)}function ur(t,e,r,a){if("object"!==o(e)&&"function"!=typeof e&&!ke(e))return sr(t.stylize,e,t);if(null===e)return t.stylize("null","null");var c=e,l=Dt(e,!!t.showProxy);if(void 0!==l){if(t.showProxy)return function(t,e,r){if(r>t.depth&&null!==t.depth)return t.stylize("Proxy [Array]","special");r+=1,t.indentationLvl+=2;var n=[ur(t,e[0],r),ur(t,e[1],r)];return t.indentationLvl-=2,Ir(t,n,"",["Proxy [","]"],2,r)}(t,l,r);e=l}if(t.customInspect){var p=e[qt];if("function"==typeof p&&p!==Ze&&(!e.constructor||e.constructor.prototype!==e)){var f=null===t.depth?null:t.depth-r,y=F(p,c,f,function(t,e){var r=u({stylize:t.stylize,showHidden:t.showHidden,depth:t.depth,colors:t.colors,customInspect:t.customInspect,showProxy:t.showProxy,maxArrayLength:t.maxArrayLength,maxStringLength:t.maxStringLength,breakLength:t.breakLength,compact:t.compact,sorted:t.sorted,getters:t.getters},t.userOptions);if(e){nt(r,null);var n,a=i(X(r));try{for(a.s();!(n=a.n()).done;){var c=n.value;"object"!==o(r[c])&&"function"!=typeof r[c]||null===r[c]||delete r[c]}}catch(t){a.e(t)}finally{a.f()}r.stylize=nt((function(e,r){var n;try{n="".concat(t.stylize(e,r))}catch(t){}return"string"!=typeof n?e:n}),null)}return r}(t,void 0!==l||!(c instanceof V)));if(y!==c)return"string"!=typeof y?ur(t,y,r):y.replace(/\n/g,"\n".concat(" ".repeat(t.indentationLvl)))}}if(t.seen.includes(e)){var g=1;return void 0===t.circular?(t.circular=new ut,t.circular.set(e,g)):void 0===(g=t.circular.get(e))&&(g=t.circular.size+1,t.circular.set(e,g)),t.stylize("[Circular *".concat(g,"]"),"special")}return function(t,e,r,o){var a,c;t.showHidden&&(r<=t.depth||null===t.depth)&&(c=[]);var l=or(e,t,r,c);void 0!==c&&0===c.length&&(c=void 0);var u=e[It];("string"!=typeof u||""!==u&&(t.showHidden?tt:et)(e,It))&&(u="");var p,f,y="",g=rr,d=!0,h=0,v=t.showHidden?$t:Zt,m=0;if(e[Ft]||null===l)if(d=!1,b(e)){var S="Array"!==l||""!==u?ar(l,u,"Array","(".concat(e.length,")")):"";if(a=Bt(e,v),p=["".concat(S,"["),"]"],0===e.length&&0===a.length&&void 0===c)return"".concat(p[0],"]");m=2,g=hr}else if(he(e)){var P=ft(e),F=ar(l,u,"Set","(".concat(P,")"));if(a=cr(e,t.showHidden),g=null!==l?mr.bind(null,e):mr.bind(null,yt(e)),0===P&&0===a.length&&void 0===c)return"".concat(F,"{}");p=["".concat(F,"{"),"}"]}else if(ye(e)){var T=k(e),z=ar(l,u,"Map","(".concat(T,")"));if(a=cr(e,t.showHidden),g=null!==l?Sr.bind(null,e):Sr.bind(null,R(e)),0===T&&0===a.length&&void 0===c)return"".concat(z,"{}");p=["".concat(z,"{"),"}"]}else if(xe(e)){a=Bt(e,v);var _=e,M="";null===l&&(M=kt(e),_=new s[M](e));var B=Tt(e),N=ar(l,u,M,"(".concat(B,")"));if(p=["".concat(N,"["),"]"],0===e.length&&0===a.length&&!t.showHidden)return"".concat(p[0],"]");g=vr.bind(null,_,B),m=2}else se(e)?(a=cr(e,t.showHidden),p=pr("Map",u),g=jr.bind(null,p)):ve(e)?(a=cr(e,t.showHidden),p=pr("Set",u),g=jr.bind(null,p)):d=!0;if(d)if(a=cr(e,t.showHidden),p=["{","}"],"Object"===l){if(le(e)?p[0]="[Arguments] {":""!==u&&(p[0]="".concat(ar(l,u,"Object"),"{")),0===a.length&&void 0===c)return"".concat(p[0],"}")}else if("function"==typeof e){if(y=function(t,e,r){var n=I(t);if("class"===n.slice(0,5)&&n.endsWith("}")){var o=n.slice(5,-1),i=o.indexOf("{");if(-1!==i&&(!o.slice(0,i).includes("(")||He.test(o.replace(Ve))))return function(t,e,r){var n=tt(t,"name")&&t.name||"(anonymous)",o="class ".concat(n);if("Function"!==e&&null!==e&&(o+=" [".concat(e,"]")),""!==r&&e!==r&&(o+=" [".concat(r,"]")),null!==e){var i=J(t).name;i&&(o+=" extends ".concat(i))}else o+=" extends [null prototype]";return"[".concat(o,"]")}(t,e,r)}var a="Function";ie(t)&&(a="Generator".concat(a)),oe(t)&&(a="Async".concat(a));var c="[".concat(a);return null===e&&(c+=" (null prototype)"),""===t.name?c+=" (anonymous)":c+=": ".concat(t.name),c+="]",e!==a&&null!==e&&(c+=" ".concat(e)),""!==r&&e!==r&&(c+=" [".concat(r,"]")),c}(e,l,u),0===a.length&&void 0===c)return t.stylize(y,"special")}else if(Pe(e)){y=ct(null!==l?e:new it(e));var D=ar(l,u,"RegExp");if("RegExp "!==D&&(y="".concat(D).concat(y)),0===a.length&&void 0===c||r>t.depth&&null!==t.depth)return t.stylize(y,"regexp")}else if(Oe(e)){y=C(A(e))?E(e):j(e);var G=ar(l,u,"Date");if("Date "!==G&&(y="".concat(G).concat(y)),0===a.length&&void 0===c)return t.stylize(y,"date")}else if(Jt(e)){if(y=function(t,e,r,n,o){var a=null!=t.name?st(t.name):"Error",c=a.length,l=t.stack?st(t.stack):L(t);if(!n.showHidden&&0!==o.length)for(var u=0,p=["name","message","stack"];ut.depth&&null!==t.depth){var U=lr(e,l,u).slice(0,-1);return null!==l&&(U="[".concat(U,"]")),t.stylize(U,"special")}r+=1,t.seen.push(e),t.currentDepth=r;var $=t.indentationLvl;try{for(f=g(t,e,r),h=0;h"),"special");!0!==t.compact?y=""===y?K:"".concat(K," ").concat(y):p[0]="".concat(K," ").concat(p[0])}}if(t.seen.pop(),t.sorted){var q=!0===t.sorted?void 0:t.sorted;if(0===m)f=f.sort(q);else if(a.length>1){var Q,X=f.slice(f.length-a.length).sort(q);(Q=f).splice.apply(Q,[f.length-a.length,a.length].concat(n(X)))}}var rt=Ir(t,f,y,p,m,r,e),nt=(t.budget[t.indentationLvl]||0)+rt.length;return t.budget[t.indentationLvl]=nt,nt>Math.pow(2,27)&&(t.depth=-1),rt}(t,e,r,a)}function pr(t,e){return e!=="".concat(t," Iterator")&&(""!==e&&(e+="] ["),e+="".concat(t," Iterator")),["[".concat(e,"] {"),"}"]}function fr(t,e){return t(Q(e,-0)?"-0":"".concat(e),"number")}function yr(t,e){return t("".concat(e,"n"),"bigint")}function sr(t,e,r){if("string"==typeof e){var n="";if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength;e=e.slice(0,r.maxStringLength),n="... ".concat(o," more character").concat(o>1?"s":"")}return!0!==r.compact&&e.length>16&&e.length>r.breakLength-r.indentationLvl-4?e.split(/\n/).map((function(e,r,n){return t(Xe(e+(r===n.length-1?"":"\n")),"string")})).join(" +\n".concat(" ".repeat(r.indentationLvl+2)))+n:t(Xe(e),"string")+n}return"number"==typeof e?fr(t,e):"bigint"==typeof e?yr(t,e):"boolean"==typeof e?t("".concat(e),"boolean"):void 0===e?t("undefined","undefined"):t(Et(e),"symbol")}function gr(t,e,r,n){for(var o=new d(t.length),i=0;i","special")}return t.length=0,o}function dr(t,e,r,n,o,i){for(var a=X(e),c=i;iMath.pow(2,32)-2)break;if("".concat(c)!==l){if(!De.test(l))break;var p=u-c,f=p>1?"s":"",y="<".concat(p," empty item").concat(f,">");if(o.push(t.stylize(y,"undefined")),c=u,o.length===n)break}o.push(Lr(t,e,r,l,1)),c++}var s=e.length-c;if(o.length!==n){if(s>0){var g=s>1?"s":"",d="<".concat(s," empty item").concat(g,">");o.push(t.stylize(d,"undefined"))}}else s>0&&o.push("... ".concat(s," more item").concat(s>1?"s":""));return o}function br(t,e){var n;try{n=new Rt(e)}catch(e){return[t.stylize("(detached)","special")]}void 0===f&&(f=_t(r(558).l.prototype.hexSlice));var o=At(Pt(f(n,0,M(t.maxArrayLength,n.length)),/(.{2})/g,"$1 ")),i=n.length-t.maxArrayLength;return i>0&&(o+=" ... ".concat(i," more byte").concat(i>1?"s":"")),["".concat(t.stylize("[Uint8Contents]","special"),": <").concat(o,">")]}function hr(t,e,r){for(var n=e.length,o=M(_(0,t.maxArrayLength),n),i=n-o,a=[],c=0;c0&&a.push("... ".concat(i," more item").concat(i>1?"s":"")),a}function vr(t,e,r,n,o){for(var i=M(_(0,r.maxArrayLength),e),a=t.length-i,c=new d(i),l=t.length>0&&"number"==typeof t[0]?fr:yr,u=0;u0&&(c[i]="... ".concat(a," more item").concat(a>1?"s":"")),r.showHidden){r.indentationLvl+=2;for(var p=0,f=["BYTES_PER_ELEMENT","length","byteLength","byteOffset","buffer"];p ").concat(ur(e,p,n)))}}catch(t){c.e(t)}finally{c.f()}return e.indentationLvl-=2,o}function Pr(t,e,r,n){var o=_(t.maxArrayLength,0),i=M(o,r.length),a=new d(i);t.indentationLvl+=2;for(var c=0;c0&&m(a,"... ".concat(l," more item").concat(l>1?"s":"")),a}function Or(t,e,r,n){var o=_(t.maxArrayLength,0),i=r.length/2,a=i-o,c=M(o,i),l=new d(c),u=0;if(t.indentationLvl+=2,0===n){for(;u ").concat(ur(t,r[p+1],e))}t.sorted||(l=l.sort())}else for(;u0&&l.push("... ".concat(a," more item").concat(a>1?"s":"")),l}function xr(t){return[t.stylize("","special")]}function wr(t,e,r){return Pr(t,r,Wt(e),0)}function Ar(t,e,r){return Or(t,r,Wt(e),0)}function jr(t,e,r,n){var o=Wt(r,!0),i=o[0];return o[1]?(t[0]=t[0].replace(/ Iterator] {$/," Entries] {"),Or(e,n,i,2)):Pr(e,n,i,1)}function Er(t,e,r){var n,o=Nt(e),i=o[0],a=o[1];if(i===Ct)n=[t.stylize("","special")];else{t.indentationLvl+=2;var c=ur(t,a,r);t.indentationLvl-=2,n=[i===Gt?"".concat(t.stylize("","special")," ").concat(c):c]}return n}function Lr(t,e,r,n,i,a){var c,l,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e,p=" ";if(void 0!==(a=a||Y(e,n)||{value:e[n],enumerable:!0}).value){var f=!0!==t.compact||0!==i?2:3;t.indentationLvl+=f,l=ur(t,a.value,r),3===f&&t.breakLength");l="".concat(g("[".concat(s,":"),d)," ").concat(v).concat(g("]",d))}else l=t.stylize("[".concat(s,"]"),d)}else l=void 0!==a.set?t.stylize("[Setter]","special"):t.stylize("undefined","undefined");if(1===i)return l;if("symbol"===o(n)){var m=Pt(Et(n),_e,Qe);c="[".concat(t.stylize(m,"symbol"),"]")}else if("__proto__"===n)c="['__proto__']";else if(!1===a.enumerable){var S=Pt(n,_e,Qe);c="[".concat(S,"]")}else c=at(Ne,n)?t.stylize(n,"name"):t.stylize(Xe(n),"string");return"".concat(c,":").concat(p).concat(l)}function Fr(t,e,r,n){var o=e.length+r;if(o+e.length>t.breakLength)return!1;for(var i=0;it.breakLength)return!1;return""===n||!bt(n,"\n")}function Ir(t,e,r,n,o,i,a){if(!0!==t.compact){if("number"==typeof t.compact&&t.compact>=1){var c=e.length;if(2===o&&c>6&&(e=function(t,e,r){var n=0,o=0,i=0,a=e.length;t.maxArrayLength5||o<=6)){var p=N(u-n/e.length),f=_(u-3-p,1),s=M(B(N(2.5*f*a)/f),z((t.breakLength-t.indentationLvl)/u),4*t.compact,15);if(s<=1)return e;for(var g=[],b=[],h=0;hv&&(v=c[S]);v+=2,b[h]=v}var P=mt;if(void 0!==r)for(var O=0;O1&&void 0!==arguments[1])||arguments[1],r=0;e&&(t=Dr(t));for(var n=0;n=127){r+=Mr.getStringWidth(t.slice(n).normalize("NFC"));break}r+=o>=32?1:0}return r}}else{y=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0;e&&(t=Dr(t)),t=ht(t,"NFC");var n,o=i(new lt(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,c=dt(a,0);Br(c)?r+=2:Nr(c)||r++}}catch(t){o.e(t)}finally{o.f()}return r};var Br=function(t){return t>=4352&&(t<=4447||9001===t||9002===t||t>=11904&&t<=12871&&12351!==t||t>=12880&&t<=19903||t>=19968&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510||t>=110592&&t<=110593||t>=127488&&t<=127569||t>=127744&&t<=128591||t>=131072&&t<=262141)},Nr=function(t){return t<=31||t>=127&&t<=159||t>=768&&t<=879||t>=8203&&t<=8207||t>=8400&&t<=8447||t>=65024&&t<=65039||t>=65056&&t<=65071||t>=917760&&t<=917999}}function Dr(t){return t.replace($e,"")}t.exports={inspect:Ze,format:function(){for(var t=arguments.length,e=new Array(t),r=0;r1?e-1:0),n=1;n').concat(t,""):t},Proxy:Yt}},568:t=>{t.exports=function(t){if(!t)throw new Error("Assertion failed")}},769:(t,e)=>{e.NativeModule={exists:function(t){return!t.startsWith("/")}}},926:(t,e,r)=>{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)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}(e);try{for(w.s();!(d=w.n()).done;){var A=d.value;a("string"==typeof A,"All expected entries have to be of type string"),u(E,A)?s(b,x(A)):v(j,A)?s(h,A):(a("object"!==A,'The value "object" should be written as "Object"'),s(m,A))}}catch(t){w.e(t)}finally{w.f()}if(h.length>0){var L=p(b,"object");-1!==L&&(g(b,L,1),s(h,"Object"))}if(b.length>0){if(b.length>2){var I=y(b);i+="one of type ".concat(f(b,", "),", or ").concat(I)}else i+=2===b.length?"one of type ".concat(b[0]," or ").concat(b[1]):"of type ".concat(b[0]);(h.length>0||m.length>0)&&(i+=" or ")}if(h.length>0){if(h.length>2){var T=y(h);i+="an instance of ".concat(f(h,", "),", or ").concat(T)}else i+="an instance of ".concat(h[0]),2===h.length&&(i+=" or ".concat(h[1]));m.length>0&&(i+=" or ")}if(m.length>0)if(m.length>2){var k=y(m);i+="one of ".concat(f(m,", "),", or ").concat(k)}else 2===m.length?i+="one of ".concat(m[0]," or ").concat(m[1]):(x(m[0])!==m[0]&&(i+="an "),i+="".concat(m[0]));if(null==r)i+=". Received ".concat(r);else if("function"==typeof r&&r.name)i+=". Received function ".concat(r.name);else if("object"===n(r))if(r.constructor&&r.constructor.name)i+=". Received an instance of ".concat(r.constructor.name);else{var R=F().inspect(r,{depth:-1});i+=". Received ".concat(R)}else{var z=F().inspect(r,{colors:!1});z.length>25&&(z="".concat(O(z,0,25),"...")),i+=". Received type ".concat(n(r)," (").concat(z,")")}return i},B=TypeError,w.set(_,M),A[_]=(N=B,D=_,function(){var t=Error.stackTraceLimit;Error.stackTraceLimit=0;var e=new N;Error.stackTraceLimit=t;for(var r=arguments.length,n=new Array(r),o=0;o{var e=/\u001b\[\d\d?m/g;t.exports={customInspectSymbol:Symbol.for("nodejs.util.inspect.custom"),isError:function(t){return t instanceof Error},join:Array.prototype.join.call.bind(Array.prototype.join),removeColors:function(t){return String.prototype.replace.call(t,e,"")}}},442:(t,e,r)=>{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)}var o=r(791).getConstructorName;function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i=0)return!0;t=Object.getPrototypeOf(t)}return!1}function a(t){return function(e){if(!i(e,t.name))return!1;try{t.prototype.valueOf.call(e)}catch(t){return!1}return!0}}"object"!==("undefined"==typeof globalThis?"undefined":n(globalThis))&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var c=a(String),l=a(Number),u=a(Boolean),p=a(BigInt),f=a(Symbol);t.exports={isAsyncFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).startsWith("async")},isGeneratorFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).match(/^(async\s+)?function *\*/)},isAnyArrayBuffer:function(t){return i(t,"ArrayBuffer","SharedArrayBuffer")},isArrayBuffer:function(t){return i(t,"ArrayBuffer")},isArgumentsObject:function(t){return!1},isBoxedPrimitive:function(t){return l(t)||c(t)||u(t)||p(t)||f(t)},isDataView:function(t){return i(t,"DataView")},isExternal:function(t){return"object"===n(t)&&Object.isFrozen(t)&&null==Object.getPrototypeOf(t)},isMap:function(t){if(!i(t,"Map"))return!1;try{t.has()}catch(t){return!1}return!0},isMapIterator:function(t){return"[object Map Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isModuleNamespaceObject:function(t){return t&&"object"===n(t)&&"Module"===t[Symbol.toStringTag]},isNativeError:function(t){return t instanceof Error&&i(t,"Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError")},isPromise:function(t){return i(t,"Promise")},isSet:function(t){if(!i(t,"Set"))return!1;try{t.has()}catch(t){return!1}return!0},isSetIterator:function(t){return"[object Set Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isWeakMap:function(t){return i(t,"WeakMap")},isWeakSet:function(t){return i(t,"WeakSet")},isRegExp:function(t){return i(t,"RegExp")},isDate:function(t){if(i(t,"Date"))try{return Date.prototype.getTime.call(t),!0}catch(t){}return!1},isTypedArray:function(t){return i(t,"Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array")},isStringObject:c,isNumberObject:l,isBooleanObject:u,isBigIntObject:p,isSymbolObject:f}},331:(t,e,r)=>{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)}var o=r(926),i=o.hideStackFrames,a=o.codes.ERR_INVALID_ARG_TYPE;e.validateObject=i((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.nullable,i=void 0!==o&&o;if(!i&&null===t||Array.isArray(t)||"object"!==n(t))throw new a(e,"Object",t)}))},625:(t,e,r)=>{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)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function i(t){var e=u();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){var e="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)})(t)}function l(t,e,r){return(l=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&p(o,r.prototype),o}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r{function e(t,e){for(var r=0;r1&&void 0!==arguments[1])||arguments[1],n=r.get(t);if(n)return e?n:n[0]}}],null&&e(n.prototype,null),o&&e(n,o),t}();t.exports={getProxyDetails:n.getProxyDetails.bind(n),Proxy:n}},791:(t,e,r)=>{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)}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(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,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:2,r=Object.getOwnPropertyDescriptors(t),n=[],a=0,c=Object.entries(r);a=Math.pow(2,32)-1){if(2===e&&!p.enumerable)continue;n.push(u)}}var f,y=o(Object.getOwnPropertySymbols(t));try{for(y.s();!(f=y.n()).done;){var s=f.value,g=Object.getOwnPropertyDescriptor(t,s);(2!==e||g.enumerable)&&n.push(s)}}catch(t){y.e(t)}finally{y.f()}return n},getPromiseDetails:function(){return[u,void 0]},getProxyDetails:l.getProxyDetails,Proxy:l.Proxy,kPending:u,kRejected:p,previewEntries:function(t){return[[],!1]},getConstructorName:function(t){if(!t||"object"!==n(t))throw new Error("Invalid object");if(t.constructor&&t.constructor.name)return t.constructor.name;var e=Object.prototype.toString.call(t).match(/^\[object ([^\]]+)\]/);return e?e[1]:"Object"},getExternalValue:function(){return BigInt(0)},propertyFilter:{ALL_PROPERTIES:0,ONLY_ENUMERABLE:2}}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(336)})()})); \ No newline at end of file diff --git a/src/primordials.js b/src/primordials.js index 28df913..3211053 100644 --- a/src/primordials.js +++ b/src/primordials.js @@ -133,7 +133,7 @@ module.exports = { Function.prototype.call.bind(Function.prototype.call), FunctionPrototypeToString: Function.prototype.call.bind(Function.prototype.toString), - globalThis, + globalThis: (typeof globalThis === 'undefined') ? global : globalThis, JSONStringify: JSON.stringify, MapPrototypeGetSize: getGetter(Map, 'size'), MapPrototypeEntries: Function.prototype.call.bind(Map.prototype.entries),