diff --git a/ChangeLog b/ChangeLog index 8f2e19c..12be861 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024.10.27, v3.18.1 + +feature: +- ab0f80a keywords + 2024.10.26, v3.18.0 feature: diff --git a/bundle/putout.js b/bundle/putout.js index 28c883d..7830bbe 100644 --- a/bundle/putout.js +++ b/bundle/putout.js @@ -11483,7 +11483,7 @@ __export(lib_exports, { return isTSLiteralType; }, isTSMappedType: function() { - return isTSMappedType$1; + return isTSMappedType; }, isTSMethodSignature: function() { return isTSMethodSignature; @@ -14969,7 +14969,7 @@ function isTSIndexedAccessType(node, opts) { if (node.type !== "TSIndexedAccessType") return false; return opts == null || shallowEqual(node, opts); } -function isTSMappedType$1(node, opts) { +function isTSMappedType(node, opts) { if (!node) return false; if (node.type !== "TSMappedType") return false; return opts == null || shallowEqual(node, opts); @@ -114808,7 +114808,6 @@ const { isImportDefaultSpecifier: isImportDefaultSpecifier$1, isExportSpecifier: isExportSpecifier$1, isRegExpLiteral: isRegExpLiteral$1, - isTSMappedType, isJSXText: isJSXText$3, isJSXIdentifier: isJSXIdentifier$1, isJSXAttribute: isJSXAttribute$1, @@ -115135,10 +115134,7 @@ is$6.isLinkedNode = (a) => { if (isTemplateElement$5(a) && LINKED_NODE$1.test(a.value.raw)) return true; - if (isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name)) - return true; - - return isTSMappedType(a) && LINKED_NODE$1.test(a.key.name); + return isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name); }; is$6.parseTemplate = (tmpl, {program} = {}) => { @@ -115401,6 +115397,8 @@ const parseName$1 = (node) => { if (isTSTypeReference$2(node)) return node.typeName.name; + // if (isTSMappedType(node)) + // return node.key.name; }; var link$3 = ({add, value, nodeValue, templateStore}) => { @@ -115414,6 +115412,9 @@ var link$3 = ({add, value, nodeValue, templateStore}) => { return true; } + if (isIdentifier$a(templateStore[name]) && isTSTypeReference$2(nodeValue)) + return true; + add(templateStore[name], nodeValue); return true; @@ -115534,7 +115535,7 @@ function compareTemplateElements$1(node, template) { } function linkNodes$1(node, template, {add, templateStore}) { - if (node && isLinkedNode$3(template) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template)) + if (node && isLinkedNode$3(template, node) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template)) return link$2({ add, value: template, diff --git a/bundle/putout.min.js b/bundle/putout.min.js index efe0104..ac0dae9 100644 --- a/bundle/putout.min.js +++ b/bundle/putout.min.js @@ -1 +1 @@ -var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(A){if(A.__esModule)return A;var e=A.default;if("function"==typeof e){var t=function A(){return this instanceof A?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(A).forEach((function(e){var r=Object.getOwnPropertyDescriptor(A,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return A[e]}})})),t}var t={exports:{}},r="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}var a=n,s=i;function o(A){if(a===setTimeout)return setTimeout(A,0);if((a===n||!a)&&setTimeout)return a=setTimeout,setTimeout(A,0);try{return a(A,0)}catch(e){try{return a.call(null,A,0)}catch(e){return a.call(this,A,0)}}}"function"==typeof r.setTimeout&&(a=setTimeout),"function"==typeof r.clearTimeout&&(s=clearTimeout);var g,I=[],C=!1,c=-1;function u(){C&&g&&(C=!1,g.length?I=g.concat(I):c=-1,I.length&&l())}function l(){if(!C){var A=o(u);C=!0;for(var e=I.length;e;){for(g=I,I=[];++c1)for(var t=1;t>18&63]+k[n>>12&63]+k[n>>6&63]+k[63&n]);return i.join("")}function T(A){var e;b||F();for(var t=A.length,r=t%3,n="",i=[],a=16383,s=0,o=t-r;so?o:s+a));return 1===r?(e=A[t-1],n+=k[e>>2],n+=k[e<<4&63],n+="=="):2===r&&(e=(A[t-2]<<8)+A[t-1],n+=k[e>>10],n+=k[e>>4&63],n+=k[e<<2&63],n+="="),i.push(n),i.join("")}function R(A,e,t,r,n){var i,a,s=8*n-r-1,o=(1<>1,I=-7,C=t?n-1:0,c=t?-1:1,u=A[e+C];for(C+=c,i=u&(1<<-I)-1,u>>=-I,I+=s;I>0;i=256*i+A[e+C],C+=c,I-=8);for(a=i&(1<<-I)-1,i>>=-I,I+=r;I>0;a=256*a+A[e+C],C+=c,I-=8);if(0===i)i=1-g;else{if(i===o)return a?NaN:1/0*(u?-1:1);a+=Math.pow(2,r),i-=g}return(u?-1:1)*a*Math.pow(2,i-r)}function M(A,e,t,r,n,i){var a,s,o,g=8*i-n-1,I=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:i-1,l=r?1:-1,B=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=I):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),(e+=a+C>=1?c/o:c*Math.pow(2,1-C))*o>=2&&(a++,o/=2),a+C>=I?(s=0,a=I):a+C>=1?(s=(e*o-1)*Math.pow(2,n),a+=C):(s=e*Math.pow(2,C-1)*Math.pow(2,n),a=0));n>=8;A[t+u]=255&s,u+=l,s/=256,n-=8);for(a=a<0;A[t+u]=255&a,u+=l,a/=256,g-=8);A[t+u-l]|=128*B}var G={}.toString,L=Array.isArray||function(A){return"[object Array]"==G.call(A)};function P(){return J.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function U(A,e){if(P()=P())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P().toString(16)+" bytes");return 0|A}function z(A){return!(null==A||!A._isBuffer)}function q(A,e){if(z(A))return A.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;"string"!=typeof A&&(A=""+A);var t=A.length;if(0===t)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return yA(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return mA(A).length;default:if(r)return yA(A).length;e=(""+e).toLowerCase(),r=!0}}function V(A,e,t){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return IA(this,e,t);case"utf8":case"utf-8":return aA(this,e,t);case"ascii":return oA(this,e,t);case"latin1":case"binary":return gA(this,e,t);case"base64":return iA(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CA(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),r=!0}}function W(A,e,t){var r=A[e];A[e]=A[t],A[t]=r}function X(A,e,t,r,n){if(0===A.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(n)return-1;t=A.length-1}else if(t<0){if(!n)return-1;t=0}if("string"==typeof e&&(e=J.from(e,r)),z(e))return 0===e.length?-1:Z(A,e,t,r,n);if("number"==typeof e)return e&=255,J.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(A,e,t):Uint8Array.prototype.lastIndexOf.call(A,e,t):Z(A,[e],t,r,n);throw new TypeError("val must be string, number or Buffer")}function Z(A,e,t,r,n){var i,a=1,s=A.length,o=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(A.length<2||e.length<2)return-1;a=2,s/=2,o/=2,t/=2}function g(A,e){return 1===a?A[e]:A.readUInt16BE(e*a)}if(n){var I=-1;for(i=t;is&&(t=s-o),i=t;i>=0;i--){for(var C=!0,c=0;cn&&(r=n):r=n;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,n=t%256,i.push(n),i.push(r);return i}(e,A.length-t),A,t,r)}function iA(A,e,t){return 0===e&&t===A.length?T(A):T(A.slice(e,t))}function aA(A,e,t){t=Math.min(A.length,t);for(var r=[],n=e;n239?4:g>223?3:g>191?2:1;if(n+C<=t)switch(C){case 1:g<128&&(I=g);break;case 2:128==(192&(i=A[n+1]))&&(o=(31&g)<<6|63&i)>127&&(I=o);break;case 3:i=A[n+1],a=A[n+2],128==(192&i)&&128==(192&a)&&(o=(15&g)<<12|(63&i)<<6|63&a)>2047&&(o<55296||o>57343)&&(I=o);break;case 4:i=A[n+1],a=A[n+2],s=A[n+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(o=(15&g)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&o<1114112&&(I=o)}null===I?(I=65533,C=1):I>65535&&(I-=65536,r.push(I>>>10&1023|55296),I=56320|1023&I),r.push(I),n+=C}return function(A){var e=A.length;if(e<=sA)return String.fromCharCode.apply(String,A);var t="",r=0;for(;r0&&(A=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(A+=" ... ")),""},J.prototype.compare=function(A,e,t,r,n){if(!z(A))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=A?A.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||t>A.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&e>=t)return 0;if(r>=n)return-1;if(e>=t)return 1;if(this===A)return 0;for(var i=(n>>>=0)-(r>>>=0),a=(t>>>=0)-(e>>>=0),s=Math.min(i,a),o=this.slice(r,n),g=A.slice(e,t),I=0;In)&&(t=n),A.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return $(this,A,e,t);case"utf8":case"utf-8":return AA(this,A,e,t);case"ascii":return eA(this,A,e,t);case"latin1":case"binary":return tA(this,A,e,t);case"base64":return rA(this,A,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nA(this,A,e,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var sA=4096;function oA(A,e,t){var r="";t=Math.min(A.length,t);for(var n=e;nr)&&(t=r);for(var n="",i=e;it)throw new RangeError("Trying to access beyond buffer length")}function uA(A,e,t,r,n,i){if(!z(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||eA.length)throw new RangeError("Index out of range")}function lA(A,e,t,r){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(A.length-t,2);n>>8*(r?n:1-n)}function BA(A,e,t,r){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(A.length-t,4);n>>8*(r?n:3-n)&255}function EA(A,e,t,r,n,i){if(t+r>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function pA(A,e,t,r,n){return n||EA(A,0,t,4),M(A,e,t,r,23,4),t+4}function QA(A,e,t,r,n){return n||EA(A,0,t,8),M(A,e,t,r,52,8),t+8}J.prototype.slice=function(A,e){var t,r=this.length;if((A=~~A)<0?(A+=r)<0&&(A=0):A>r&&(A=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(n*=256);)r+=this[A+--e]*n;return r},J.prototype.readUInt8=function(A,e){return e||cA(A,1,this.length),this[A]},J.prototype.readUInt16LE=function(A,e){return e||cA(A,2,this.length),this[A]|this[A+1]<<8},J.prototype.readUInt16BE=function(A,e){return e||cA(A,2,this.length),this[A]<<8|this[A+1]},J.prototype.readUInt32LE=function(A,e){return e||cA(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},J.prototype.readUInt32BE=function(A,e){return e||cA(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},J.prototype.readIntLE=function(A,e,t){A|=0,e|=0,t||cA(A,e,this.length);for(var r=this[A],n=1,i=0;++i=(n*=128)&&(r-=Math.pow(2,8*e)),r},J.prototype.readIntBE=function(A,e,t){A|=0,e|=0,t||cA(A,e,this.length);for(var r=e,n=1,i=this[A+--r];r>0&&(n*=256);)i+=this[A+--r]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},J.prototype.readInt8=function(A,e){return e||cA(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},J.prototype.readInt16LE=function(A,e){e||cA(A,2,this.length);var t=this[A]|this[A+1]<<8;return 32768&t?4294901760|t:t},J.prototype.readInt16BE=function(A,e){e||cA(A,2,this.length);var t=this[A+1]|this[A]<<8;return 32768&t?4294901760|t:t},J.prototype.readInt32LE=function(A,e){return e||cA(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},J.prototype.readInt32BE=function(A,e){return e||cA(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},J.prototype.readFloatLE=function(A,e){return e||cA(A,4,this.length),R(this,A,!0,23,4)},J.prototype.readFloatBE=function(A,e){return e||cA(A,4,this.length),R(this,A,!1,23,4)},J.prototype.readDoubleLE=function(A,e){return e||cA(A,8,this.length),R(this,A,!0,52,8)},J.prototype.readDoubleBE=function(A,e){return e||cA(A,8,this.length),R(this,A,!1,52,8)},J.prototype.writeUIntLE=function(A,e,t,r){(A=+A,e|=0,t|=0,r)||uA(this,A,e,t,Math.pow(2,8*t)-1,0);var n=1,i=0;for(this[e]=255&A;++i=0&&(i*=256);)this[e+n]=A/i&255;return e+t},J.prototype.writeUInt8=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,1,255,0),J.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[e]=255&A,e+1},J.prototype.writeUInt16LE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[e]=255&A,this[e+1]=A>>>8):lA(this,A,e,!0),e+2},J.prototype.writeUInt16BE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[e]=A>>>8,this[e+1]=255&A):lA(this,A,e,!1),e+2},J.prototype.writeUInt32LE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[e+3]=A>>>24,this[e+2]=A>>>16,this[e+1]=A>>>8,this[e]=255&A):BA(this,A,e,!0),e+4},J.prototype.writeUInt32BE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A):BA(this,A,e,!1),e+4},J.prototype.writeIntLE=function(A,e,t,r){if(A=+A,e|=0,!r){var n=Math.pow(2,8*t-1);uA(this,A,e,t,n-1,-n)}var i=0,a=1,s=0;for(this[e]=255&A;++i=0&&(a*=256);)A<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(A/a|0)-s&255;return e+t},J.prototype.writeInt8=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,1,127,-128),J.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[e]=255&A,e+1},J.prototype.writeInt16LE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[e]=255&A,this[e+1]=A>>>8):lA(this,A,e,!0),e+2},J.prototype.writeInt16BE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[e]=A>>>8,this[e+1]=255&A):lA(this,A,e,!1),e+2},J.prototype.writeInt32LE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,4,2147483647,-2147483648),J.TYPED_ARRAY_SUPPORT?(this[e]=255&A,this[e+1]=A>>>8,this[e+2]=A>>>16,this[e+3]=A>>>24):BA(this,A,e,!0),e+4},J.prototype.writeInt32BE=function(A,e,t){return A=+A,e|=0,t||uA(this,A,e,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),J.TYPED_ARRAY_SUPPORT?(this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A):BA(this,A,e,!1),e+4},J.prototype.writeFloatLE=function(A,e,t){return pA(this,A,e,!0,t)},J.prototype.writeFloatBE=function(A,e,t){return pA(this,A,e,!1,t)},J.prototype.writeDoubleLE=function(A,e,t){return QA(this,A,e,!0,t)},J.prototype.writeDoubleBE=function(A,e,t){return QA(this,A,e,!1,t)},J.prototype.copy=function(A,e,t,r){if(t||(t=0),r||0===r||(r=this.length),e>=A.length&&(e=A.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),A.length-e=0;--n)A[n+e]=this[n+t];else if(i<1e3||!J.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,t=void 0===t?this.length:t>>>0,A||(A=0),"number"==typeof A)for(i=e;i55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=65536+(n-55296<<10|t-56320)}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function mA(A){return function(A){var e,t,r,n,i,a;b||F();var s=A.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===A[s-2]?2:"="===A[s-1]?1:0,a=new x(3*s/4-i),r=i>0?s-4:s;var o=0;for(e=0,t=0;e>16&255,a[o++]=n>>8&255,a[o++]=255&n;return 2===i?(n=v[A.charCodeAt(e)]<<2|v[A.charCodeAt(e+1)]>>4,a[o++]=255&n):1===i&&(n=v[A.charCodeAt(e)]<<10|v[A.charCodeAt(e+1)]<<4|v[A.charCodeAt(e+2)]>>2,a[o++]=n>>8&255,a[o++]=255&n),a}(function(A){if((A=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}(A).replace(dA,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function DA(A,e,t,r){for(var n=0;n=e.length||n>=A.length);++n)e[n+t]=A[n];return n}function SA(A){return!!A.constructor&&"function"==typeof A.constructor.isBuffer&&A.constructor.isBuffer(A)}function wA(){if(void 0===hA){var A=new ArrayBuffer(2),e=new Uint8Array(A),t=new Uint16Array(A);if(e[0]=1,e[1]=2,258===t[0])hA="BE";else{if(513!==t[0])throw new Error("unable to figure out endianess");hA="LE"}}return hA}function NA(){return void 0!==r.location?r.location.hostname:""}function kA(){return[]}function vA(){return 0}function xA(){return Number.MAX_VALUE}function bA(){return Number.MAX_VALUE}function FA(){return[]}function YA(){return"Browser"}function TA(){return void 0!==r.navigator?r.navigator.appVersion:""}function RA(){return{}}function MA(){return{}}function GA(){return"javascript"}function LA(){return"browser"}function PA(){return"/tmp"}var UA=PA;function JA(){return"$HOME"}var KA={homedir:JA,EOL:"\n",arch:GA,platform:LA,tmpdir:UA,tmpDir:PA,networkInterfaces:RA,getNetworkInterfaces:MA,release:TA,type:YA,cpus:FA,totalmem:bA,freemem:xA,uptime:vA,loadavg:kA,hostname:NA,endianness:wA},HA=e(Object.freeze({__proto__:null,EOL:"\n",arch:GA,cpus:FA,default:KA,endianness:wA,freemem:xA,getNetworkInterfaces:MA,homedir:JA,hostname:NA,loadavg:kA,networkInterfaces:RA,platform:LA,release:TA,tmpDir:PA,tmpdir:UA,totalmem:bA,type:YA,uptime:vA}));function OA(){return!1}function _A(){throw new Error("tty.ReadStream is not implemented")}function jA(){throw new Error("tty.ReadStream is not implemented")}var zA,qA={isatty:OA,ReadStream:_A,WriteStream:jA},VA=e(Object.freeze({__proto__:null,ReadStream:_A,WriteStream:jA,default:qA,isatty:OA}));zA="function"==typeof Object.create?function(A,e){A.super_=e,A.prototype=Object.create(e.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}})}:function(A,e){A.super_=e;var t=function(){};t.prototype=e.prototype,A.prototype=new t,A.prototype.constructor=A};var WA=Object.getOwnPropertyDescriptors||function(A){for(var e=Object.keys(A),t={},r=0;r=n)return A;switch(A){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(A){return"[Circular]"}default:return A}})),a=r[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ie(e)?t.showHidden=e:e&&ke(t,e),Ee(t.showHidden)&&(t.showHidden=!1),Ee(t.depth)&&(t.depth=2),Ee(t.colors)&&(t.colors=!1),Ee(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=ne),ae(t,A,t.depth)}function ne(A,e){var t=re.styles[e];return t?"["+re.colors[t][0]+"m"+A+"["+re.colors[t][1]+"m":A}function ie(A,e){return A}function ae(A,e,t){if(A.customInspect&&e&&fe(e.inspect)&&e.inspect!==re&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(t,A);return le(r)||(r=ae(A,r,t)),r}var n=function(A,e){if(Ee(e))return A.stylize("undefined","undefined");if(le(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(t,"string")}if(ue(e))return A.stylize(""+e,"number");if(Ie(e))return A.stylize(""+e,"boolean");if(Ce(e))return A.stylize("null","null")}(A,e);if(n)return n;var i=Object.keys(e),a=function(A){var e={};return A.forEach((function(A,t){e[A]=!0})),e}(i);if(A.showHidden&&(i=Object.getOwnPropertyNames(e)),de(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return se(e);if(0===i.length){if(fe(e)){var s=e.name?": "+e.name:"";return A.stylize("[Function"+s+"]","special")}if(pe(e))return A.stylize(RegExp.prototype.toString.call(e),"regexp");if(he(e))return A.stylize(Date.prototype.toString.call(e),"date");if(de(e))return se(e)}var o,g="",I=!1,C=["{","}"];(ge(e)&&(I=!0,C=["[","]"]),fe(e))&&(g=" [Function"+(e.name?": "+e.name:"")+"]");return pe(e)&&(g=" "+RegExp.prototype.toString.call(e)),he(e)&&(g=" "+Date.prototype.toUTCString.call(e)),de(e)&&(g=" "+se(e)),0!==i.length||I&&0!=e.length?t<0?pe(e)?A.stylize(RegExp.prototype.toString.call(e),"regexp"):A.stylize("[Object]","special"):(A.seen.push(e),o=I?function(A,e,t,r,n){for(var i=[],a=0,s=e.length;a60)return t[0]+(""===e?"":e+"\n ")+" "+A.join(",\n ")+" "+t[1];return t[0]+e+" "+A.join(", ")+" "+t[1]}(o,g,C)):C[0]+g+C[1]}function se(A){return"["+Error.prototype.toString.call(A)+"]"}function oe(A,e,t,r,n,i){var a,s,o;if((o=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]}).get?s=o.set?A.stylize("[Getter/Setter]","special"):A.stylize("[Getter]","special"):o.set&&(s=A.stylize("[Setter]","special")),ve(r,n)||(a="["+n+"]"),s||(A.seen.indexOf(o.value)<0?(s=Ce(t)?ae(A,o.value,null):ae(A,o.value,t-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(A){return" "+A})).join("\n").substr(2):"\n"+s.split("\n").map((function(A){return" "+A})).join("\n")):s=A.stylize("[Circular]","special")),Ee(a)){if(i&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=A.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=A.stylize(a,"string"))}return a+": "+s}function ge(A){return Array.isArray(A)}function Ie(A){return"boolean"==typeof A}function Ce(A){return null===A}function ce(A){return null==A}function ue(A){return"number"==typeof A}function le(A){return"string"==typeof A}function Be(A){return"symbol"==typeof A}function Ee(A){return void 0===A}function pe(A){return Qe(A)&&"[object RegExp]"===De(A)}function Qe(A){return"object"==typeof A&&null!==A}function he(A){return Qe(A)&&"[object Date]"===De(A)}function de(A){return Qe(A)&&("[object Error]"===De(A)||A instanceof Error)}function fe(A){return"function"==typeof A}function ye(A){return null===A||"boolean"==typeof A||"number"==typeof A||"string"==typeof A||"symbol"==typeof A||void 0===A}function me(A){return J.isBuffer(A)}function De(A){return Object.prototype.toString.call(A)}function Se(A){return A<10?"0"+A.toString(10):A.toString(10)}re.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},re.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ne(){var A,e;console.log("%s - %s",(A=new Date,e=[Se(A.getHours()),Se(A.getMinutes()),Se(A.getSeconds())].join(":"),[A.getDate(),we[A.getMonth()],e].join(" ")),ZA.apply(null,arguments))}function ke(A,e){if(!e||!Qe(e))return A;for(var t=Object.keys(e),r=t.length;r--;)A[t[r]]=e[t[r]];return A}function ve(A,e){return Object.prototype.hasOwnProperty.call(A,e)}var xe="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function be(A){if("function"!=typeof A)throw new TypeError('The "original" argument must be of type Function');if(xe&&A[xe]){var e;if("function"!=typeof(e=A[xe]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,xe,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,t,r=new Promise((function(A,r){e=A,t=r})),n=[],i=0;iA.length)&&(e=A.length);for(var t=0,r=new Array(e);t0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]=A.length&&(A=void 0),{value:A&&A[r++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function et(){var A=qe(["pipelineOperator"]);return et=function(){return A},A}function tt(){var A=qe(["flow"]);return tt=function(){return A},A}function rt(){var A=qe(["jsx"]);return rt=function(){return A},A}function nt(){var A=qe(["typescript"]);return nt=function(){return A},A}function it(){var A=qe(["placeholders"]);return it=function(){return A},A}function at(){var A=qe(["\n (function (",") {\n function ","(",") {\n return ",".apply(this, arguments);\n }\n\n ",".toString = function () {\n return ",".toString();\n }\n\n return ",";\n })(",")\n "]);return at=function(){return A},A}var st=Object.create,ot=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,It=Object.getOwnPropertyNames,Ct=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty,ut=function(A,e){return function(){return e||(0,A[It(A)[0]])((e={exports:{}}).exports,e),e.exports}},lt=function(A,e){for(var t in e)ot(A,t,{get:e[t],enumerable:!0})},Bt=function(A,e,t,r){if(e&&"object"===(void 0===e?"undefined":We(e))||"function"==typeof e){var n=!0,i=!1,a=void 0;try{for(var s,o=function(){var n=s.value;ct.call(A,n)||n===t||ot(A,n,{get:function(){return e[n]},enumerable:!(r=gt(e,n))||r.enumerable})},g=It(e)[Symbol.iterator]();!(n=(s=g.next()).done);n=!0)o()}catch(A){i=!0,a=A}finally{try{n||null==g.return||g.return()}finally{if(i)throw a}}}return A},Et=function(A,e,t){return t=null!=A?st(Ct(A)):{},Bt(ot(t,"default",{value:A,enumerable:!0}),A)},pt=function(A,e,t){return function(A,e,t){return e in A?ot(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t}(A,"symbol"!==(void 0===e?"undefined":We(e))?e+"":e,t)},Qt=ut({"node_modules/picocolors/picocolors.js":function(A,e){var t=N||{},r=t.argv||[],n=t.env||{},i=!(n.NO_COLOR||r.includes("--no-color"))&&(!!n.FORCE_COLOR||r.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==n.TERM||!!n.CI),a=function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;return function(r){var n=""+r,i=n.indexOf(e,A.length);return~i?A+s(n,e,t,i)+e:A+n+e}},s=function(A,e,t,r){var n="",i=0;do{n+=A.substring(i,r)+t,i=r+e.length,r=A.indexOf(e,i)}while(~r);return n+A.substring(i)},o=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,e=A?a:function(){return String};return{isColorSupported:A,reset:e("",""),bold:e("","",""),dim:e("","",""),italic:e("",""),underline:e("",""),inverse:e("",""),hidden:e("",""),strikethrough:e("",""),black:e("",""),red:e("",""),green:e("",""),yellow:e("",""),blue:e("",""),magenta:e("",""),cyan:e("",""),white:e("",""),gray:e("",""),bgBlack:e("",""),bgRed:e("",""),bgGreen:e("",""),bgYellow:e("",""),bgBlue:e("",""),bgMagenta:e("",""),bgCyan:e("",""),bgWhite:e("",""),blackBright:e("",""),redBright:e("",""),greenBright:e("",""),yellowBright:e("",""),blueBright:e("",""),magentaBright:e("",""),cyanBright:e("",""),whiteBright:e("",""),bgBlackBright:e("",""),bgRedBright:e("",""),bgGreenBright:e("",""),bgYellowBright:e("",""),bgBlueBright:e("",""),bgMagentaBright:e("",""),bgCyanBright:e("",""),bgWhiteBright:e("","")}};e.exports=o(),e.exports.createColors=o}}),ht=ut({"node_modules/@babel/code-frame/node_modules/js-tokens/index.js":function(A,e){var t,r,n,i,a,s,o,g,I,C,c,u,l,B,E,p,Q,h,d;l=RegExp("\\/(?![*\\/])(?:\\[(?:[^\\]\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*\\]|[^\\/\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?","yu"),u=RegExp("--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]","y"),t=RegExp("(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]+|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+","yu"),E=RegExp("(['\"])(?:[^'\"\\\\\\n\\r]+|(?!\\1)['\"]|\\\\(?:\\r\\n|[^]))*(\\1)?","y"),c=RegExp("(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+","y"),p=RegExp("[`}](?:[^`\\\\$]+|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?","y"),d=RegExp("[\\t\\v\\f\\ufeff\\p{Zs}]+","yu"),g=RegExp("\\r?\\n|[\\r\\u2028\\u2029]","y"),I=RegExp("\\/\\*(?:[^*]+|\\*(?!\\/))*(\\*\\/)?","y"),B=RegExp("\\/\\/.*","y"),n=RegExp("[<>.:={}]|\\/(?![\\/*])","y"),r=RegExp("[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*","yu"),i=RegExp("(['\"])(?:[^'\"]+|(?!\\1)['\"])*(\\1)?","y"),a=RegExp("[^<>{}]+","y"),h=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,Q=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,C=RegExp(g.source),e.exports=function(A){var e,f,y,m,D,S,w,N,k,v,x,b,F,Y,T,R,M=arguments;return $e(this,(function(G){switch(G.label){case 0:e=(M.length>1&&void 0!==M[1]?M[1]:{}).jsx,f=void 0!==e&&e,N=A.length,S=0,w="",R=[{tag:"JS"}],y=[],F=0,Y=!1,G.label=1;case 1:if(!(S":R.pop(),"/"===w||"JSXTagEnd"===v.tag?(b="?JSX",Y=!0):R.push({tag:"JSXChildren"});break;case"{":R.push({tag:"InterpolationInJSX",nesting:y.length}),b="?InterpolationInJSX",Y=!1;break;case"/":"<"===w&&(R.pop(),"JSXChildren"===R[R.length-1].tag&&R.pop(),R.push({tag:"JSXTagEnd"}))}return w=b,[4,{type:"JSXPunctuator",value:k[0]}];case 39:return G.sent(),[3,1];case 40:return r.lastIndex=S,(k=r.exec(A))?(S=r.lastIndex,w=k[0],[4,{type:"JSXIdentifier",value:k[0]}]):[3,42];case 41:return G.sent(),[3,1];case 42:return i.lastIndex=S,(k=i.exec(A))?(S=i.lastIndex,w=k[0],[4,{type:"JSXString",value:k[0],closed:void 0!==k[2]}]):[3,44];case 43:return G.sent(),[3,1];case 44:return[3,52];case 45:return a.lastIndex=S,(k=a.exec(A))?(S=a.lastIndex,w=k[0],[4,{type:"JSXText",value:k[0]}]):[3,47];case 46:return G.sent(),[3,1];case 47:switch(A[S]){case"<":return[3,48];case"{":return[3,50]}return[3,52];case 48:return R.push({tag:"JSXTag"}),S++,w="<",[4,{type:"JSXPunctuator",value:"<"}];case 49:return G.sent(),[3,1];case 50:return R.push({tag:"InterpolationInJSX",nesting:y.length}),S++,w="?InterpolationInJSX",Y=!1,[4,{type:"JSXPunctuator",value:"{"}];case 51:return G.sent(),[3,1];case 52:return d.lastIndex=S,(k=d.exec(A))?(S=d.lastIndex,[4,{type:"WhiteSpace",value:k[0]}]):[3,54];case 53:return G.sent(),[3,1];case 54:return g.lastIndex=S,(k=g.exec(A))?(S=g.lastIndex,Y=!1,o.test(w)&&(w="?NoLineTerminatorHere"),[4,{type:"LineTerminatorSequence",value:k[0]}]):[3,56];case 55:return G.sent(),[3,1];case 56:return I.lastIndex=S,(k=I.exec(A))?(S=I.lastIndex,C.test(k[0])&&(Y=!1,o.test(w)&&(w="?NoLineTerminatorHere")),[4,{type:"MultiLineComment",value:k[0],closed:void 0!==k[1]}]):[3,58];case 57:return G.sent(),[3,1];case 58:return B.lastIndex=S,(k=B.exec(A))?(S=B.lastIndex,Y=!1,[4,{type:"SingleLineComment",value:k[0]}]):[3,60];case 59:return G.sent(),[3,1];case 60:return m=String.fromCodePoint(A.codePointAt(S)),S+=m.length,w=m,Y=!1,[4,{type:v.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:m}];case 61:return G.sent(),[3,1];case 62:return[2,void 0]}}))}}}),dt=ut({"node_modules/jsesc/jsesc.js":function(A,e){var t={},r=t.hasOwnProperty,n=function(A,e){for(var t in A)r.call(A,t)&&e(t,A[t])},i=function(A){return"\\u"+("0000"+A).slice(-4)},a=function(A,e){var t=A.toString(16);return e?t:t.toUpperCase()},s=t.toString,o=Array.isArray,g={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},I=/[\\\b\f\n\r\t]/,C=/[0-9]/,c=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,u=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,l=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,B=function(A,e){var t,r,E=function(){D=m,++e.indentLevel,m=e.indent.repeat(e.indentLevel)},p={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},Q=e&&e.json;Q&&(p.quotes="double",p.wrap=!0),t=p,e=(r=e)?(n(r,(function(A,e){t[A]=e})),t):t,"single"!=e.quotes&&"double"!=e.quotes&&"backtick"!=e.quotes&&(e.quotes="single");var h,d="double"==e.quotes?'"':"backtick"==e.quotes?"`":"'",f=e.compact,y=e.lowercaseHex,m=e.indent.repeat(e.indentLevel),D="",S=e.__inline1__,w=e.__inline2__,N=f?"":"\n",k=!0,v="binary"==e.numbers,x="octal"==e.numbers,b="decimal"==e.numbers,F="hexadecimal"==e.numbers;if(Q&&A&&"function"==typeof A.toJSON&&(A=A.toJSON()),!function(A){return"string"==typeof A||"[object String]"==s.call(A)}(A)){if(function(A){return"[object Map]"==s.call(A)}(A))return 0==A.size?"new Map()":(f||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+B(Array.from(A),e)+")");if(function(A){return"[object Set]"==s.call(A)}(A))return 0==A.size?"new Set()":"new Set("+B(Array.from(A),e)+")";if(function(A){return Array.isArray(A)}(A))return 0==A.length?"Buffer.from([])":"Buffer.from("+B(Array.from(A),e)+")";if(o(A))return h=[],e.wrap=!0,S&&(e.__inline1__=!1,e.__inline2__=!0),w||E(),function(A,e){for(var t=A.length,r=-1;++r2?i(B):"\\x"+("00"+B).slice(-2)})),"`"==d&&(h=h.replace(/\$\{/g,"\\${")),e.isScriptContext&&(h=h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/