@visulima/pail 1.1.13 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.md +174 -0
  3. package/dist/index.browser.cjs +1 -16
  4. package/dist/index.browser.d.cts +3 -3
  5. package/dist/index.browser.d.mts +10 -0
  6. package/dist/index.browser.d.ts +3 -3
  7. package/dist/index.browser.mjs +1 -0
  8. package/dist/index.server.cjs +4 -20
  9. package/dist/index.server.d.cts +3 -3
  10. package/dist/index.server.d.mts +30 -0
  11. package/dist/index.server.d.ts +3 -3
  12. package/dist/index.server.mjs +5 -0
  13. package/dist/processor.browser.cjs +1 -12
  14. package/dist/processor.browser.d.cts +1 -1
  15. package/dist/processor.browser.d.mts +15 -0
  16. package/dist/processor.browser.d.ts +1 -1
  17. package/dist/processor.browser.mjs +1 -0
  18. package/dist/processor.server.cjs +1 -18
  19. package/dist/processor.server.d.cts +1 -1
  20. package/dist/processor.server.d.mts +47 -0
  21. package/dist/processor.server.d.ts +1 -1
  22. package/dist/processor.server.mjs +1 -0
  23. package/dist/reporter.browser.cjs +4 -26
  24. package/dist/reporter.browser.d.cts +2 -2
  25. package/dist/reporter.browser.d.mts +17 -0
  26. package/dist/reporter.browser.d.ts +2 -2
  27. package/dist/reporter.browser.mjs +5 -0
  28. package/dist/reporter.server.cjs +9 -24
  29. package/dist/reporter.server.d.cts +21 -14
  30. package/dist/reporter.server.d.mts +64 -0
  31. package/dist/reporter.server.d.ts +21 -14
  32. package/dist/reporter.server.mjs +11 -0
  33. package/dist/{abstract-pretty-reporter-B-VS5gYX.d.ts → shared/pail.B4CNQvGO.d.cts} +2 -2
  34. package/dist/shared/pail.B85Cx0UJ.cjs +1 -0
  35. package/dist/shared/pail.BDMlOMw8.cjs +21 -0
  36. package/dist/shared/pail.BP9NvmFd.mjs +1 -0
  37. package/dist/shared/pail.BU1VqUN1.cjs +1 -0
  38. package/dist/{abstract-pretty-reporter-DwzTRutd.d.cts → shared/pail.Bdbc3_zr.d.ts} +2 -2
  39. package/dist/shared/pail.Br_AAl-2.mjs +1 -0
  40. package/dist/shared/pail.BuhpbVGv.mjs +1 -0
  41. package/dist/shared/pail.C0epjAht.cjs +1 -0
  42. package/dist/{pail.browser-DuX9zHSz.d.ts → shared/pail.CHPrWCMI.d.ts} +1 -1
  43. package/dist/shared/pail.CNxJnpWG.mjs +1 -0
  44. package/dist/{pail.browser-pg1HpChf.d.cts → shared/pail.Cc48XFs7.d.mts} +1 -1
  45. package/dist/shared/pail.CzAicDBX.mjs +21 -0
  46. package/dist/shared/pail.D3wUM96H.mjs +1 -0
  47. package/dist/shared/pail.D9OQPGNq.cjs +1 -0
  48. package/dist/shared/pail.DF5wQ_KA.mjs +1 -0
  49. package/dist/shared/pail.DW7tr027.d.cts +58 -0
  50. package/dist/shared/pail.DrhFTME0.d.ts +123 -0
  51. package/dist/shared/pail.DvAyNJOC.mjs +1 -0
  52. package/dist/shared/pail.DwWkopDF.cjs +1 -0
  53. package/dist/shared/pail.boZRgdP1.cjs +1 -0
  54. package/dist/shared/pail.nEbRCLhY.mjs +1 -0
  55. package/dist/shared/pail.qb_TjNJQ.d.mts +36 -0
  56. package/dist/shared/pail.t5UYgSXE.cjs +1 -0
  57. package/dist/shared/pail.zBliJm8v.cjs +1 -0
  58. package/package.json +54 -36
  59. package/dist/chunk-2I5JHTDY.js +0 -9
  60. package/dist/chunk-2I5JHTDY.js.map +0 -1
  61. package/dist/chunk-5MNFJRLM.cjs +0 -10
  62. package/dist/chunk-5MNFJRLM.cjs.map +0 -1
  63. package/dist/chunk-AFMDCM5W.js +0 -5
  64. package/dist/chunk-AFMDCM5W.js.map +0 -1
  65. package/dist/chunk-F4FJCQ4L.cjs +0 -9
  66. package/dist/chunk-F4FJCQ4L.cjs.map +0 -1
  67. package/dist/chunk-KERJDMYV.js +0 -8
  68. package/dist/chunk-KERJDMYV.js.map +0 -1
  69. package/dist/chunk-N2UPJYJR.cjs +0 -7
  70. package/dist/chunk-N2UPJYJR.cjs.map +0 -1
  71. package/dist/chunk-NF47XQ47.js +0 -5
  72. package/dist/chunk-NF47XQ47.js.map +0 -1
  73. package/dist/chunk-QINSQ6TU.cjs +0 -9
  74. package/dist/chunk-QINSQ6TU.cjs.map +0 -1
  75. package/dist/chunk-R5F555RP.js +0 -5
  76. package/dist/chunk-R5F555RP.js.map +0 -1
  77. package/dist/chunk-S4PFPURC.cjs +0 -45
  78. package/dist/chunk-S4PFPURC.cjs.map +0 -1
  79. package/dist/chunk-SR3Q3EUO.js +0 -7
  80. package/dist/chunk-SR3Q3EUO.js.map +0 -1
  81. package/dist/chunk-TAH23BHM.js +0 -5
  82. package/dist/chunk-TAH23BHM.js.map +0 -1
  83. package/dist/chunk-VWAGNTLB.cjs +0 -7
  84. package/dist/chunk-VWAGNTLB.cjs.map +0 -1
  85. package/dist/chunk-WHEIXCFS.js +0 -33
  86. package/dist/chunk-WHEIXCFS.js.map +0 -1
  87. package/dist/chunk-YP3U3DTV.cjs +0 -10
  88. package/dist/chunk-YP3U3DTV.cjs.map +0 -1
  89. package/dist/chunk-ZB7IIFHO.js +0 -7
  90. package/dist/chunk-ZB7IIFHO.js.map +0 -1
  91. package/dist/chunk-ZHHJ42XL.cjs +0 -12
  92. package/dist/chunk-ZHHJ42XL.cjs.map +0 -1
  93. package/dist/chunk-ZJMTPHZR.cjs +0 -7
  94. package/dist/chunk-ZJMTPHZR.cjs.map +0 -1
  95. package/dist/index.browser.cjs.map +0 -1
  96. package/dist/index.browser.js +0 -13
  97. package/dist/index.browser.js.map +0 -1
  98. package/dist/index.server.cjs.map +0 -1
  99. package/dist/index.server.js +0 -18
  100. package/dist/index.server.js.map +0 -1
  101. package/dist/processor.browser.cjs.map +0 -1
  102. package/dist/processor.browser.js +0 -3
  103. package/dist/processor.browser.js.map +0 -1
  104. package/dist/processor.server.cjs.map +0 -1
  105. package/dist/processor.server.js +0 -8
  106. package/dist/processor.server.js.map +0 -1
  107. package/dist/reporter.browser.cjs.map +0 -1
  108. package/dist/reporter.browser.js +0 -17
  109. package/dist/reporter.browser.js.map +0 -1
  110. package/dist/reporter.server.cjs.map +0 -1
  111. package/dist/reporter.server.js +0 -15
  112. package/dist/reporter.server.js.map +0 -1
  113. /package/dist/{types-DrhFTME0.d.cts → shared/pail.DrhFTME0.d.cts} +0 -0
  114. /package/dist/{types-DrhFTME0.d.ts → shared/pail.DrhFTME0.d.mts} +0 -0
@@ -0,0 +1,5 @@
1
+ var $=Object.defineProperty;var b=(a,r)=>$(a,"name",{value:r,configurable:!0});import{i as V}from"./shared/pail.BuhpbVGv.mjs";import S,{white as j,grey as o,underline as _,bold as k}from"@visulima/colorize/browser";import{format as i}from"@visulima/fmt";import{A as B,o as C}from"./shared/pail.D3wUM96H.mjs";import{o as D}from"./shared/pail.BP9NvmFd.mjs";import{a as J}from"./shared/pail.DF5wQ_KA.mjs";var M=Object.defineProperty,O=b((a,r)=>M(a,"name",{value:r,configurable:!0}),"v");class U extends B{static{b(this,"F")}static{O(this,"PrettyReporter")}constructor(r={}){super({uppercase:{label:!0,...r.uppercase},...r})}log(r){const t=typeof window<"u"&&typeof window.document<"u",x=J(r.type.level),{badge:A,context:w,date:h,error:v,groups:f,label:y,message:F,prefix:g,repeated:u,scope:n,suffix:m,type:L}=r,{color:P}=this._loggerTypes[L.name],R=P?S[P]:j,s=[];if(t&&f.length>0){const e=f.map(()=>" ").join(""),l=o("["+f.at(-1)+"]");s.push(i(e+l[0],l.slice(1)))}if(h){const e=o(this._styles.dateFormatter(typeof h=="string"?new Date(h):h));t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(A){const e=R(A);t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=C(this._loggerTypes);if(e.length>0){const l=o(".".repeat(e.length));t?s.push(i(l[0]+" ",l.slice(1))):s.push([l[0]+" ",...l.slice(1)])}}const T=D(this._loggerTypes);let d;if(u){const e=j("["+u+"x]");d=t?i(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=R(this._formatLabel(y));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),d&&s.push(d);let l=T.length-y.length;if(u?l-=String(u).length+3:l+=1,l>0){const p=o(".".repeat(l));t?s.push(i(p[0],p.slice(1))):s.push([" "+p[0],...p.slice(1)])}}else{const e=o(".".repeat(T.length+1));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(n)&&n.length>0){const e=o("["+n.join(" > ")+"]");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(g){const e=o((Array.isArray(n)&&n.length>0?". ":" ")+"["+(this._styles.underline.prefix?_(g):g)+"] ");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(s.push(F),w&&s.push(...w),v&&s.push(v,`
2
+
3
+ `),m){const e=o(this._styles.underline.suffix?_(m):m);t?s.push(i(`
4
+ `+e[0],e.slice(1))):s.push([`
5
+ `+e[0],...e.slice(1)])}if(t)x(...s);else{let e="";const l=[],p=[];for(const c of s)Array.isArray(c)&&c.length>1&&c[0].includes("%c")?(e+=c[0],l.push(...c.slice(1))):p.push(c);x(e+"%c",...l,"",...p)}}_formatLabel(r){let t=this._styles.uppercase.label?r.toUpperCase():r;return t=this._styles.underline.label?_(t):t,this._styles.bold.label&&(t=k(t)),t}}const K=U;export{V as JsonReporter,K as PrettyReporter};
@@ -1,26 +1,11 @@
1
- 'use strict';
1
+ "use strict";var L=Object.defineProperty;var n=(t,e)=>L(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("rotating-file-stream"),g=require("node:process"),l=require("./shared/pail.BDMlOMw8.cjs"),z=require("./shared/pail.D9OQPGNq.cjs"),a=require("@visulima/colorize"),A=require("./shared/pail.t5UYgSXE.cjs"),I=require("./shared/pail.DwWkopDF.cjs"),W=n(t=>t&&typeof t=="object"&&"default"in t?t.default:t,"_interopDefaultCompat"),C=W(a);var D=Object.defineProperty,E=n((t,e)=>D(t,"name",{value:e,configurable:!0}),"i$2");let N=class{static{n(this,"s")}static{E(this,"SafeStreamHandler")}_ready=!0;_stream;_name;constructor(e,r){this._stream=e,this._name=r}write(e){this.writeStream(e)}end(...e){this._stream.end(...e)}writeStream(e){if(!this._ready){console.warn("Stream busy: "+this._name+'. Write will be dropped: "'+e+'"');return}this._ready=!1,this._stream.on("error",r=>{throw r}),this._stream.on("drain",()=>{this._ready=!0}),this._stream.on("finish",()=>{this._ready=!0}),this._ready=this._stream.write(e,()=>{})}};var G=Object.defineProperty,H=n((t,e)=>G(t,"name",{value:e,configurable:!0}),"r$2");class Y{static{n(this,"f")}static{H(this,"RotatingFileStream")}#e;#t;#r;#s;constructor(e,r=!1,s={}){this.#e=e,this.#t=r,this.#s=s,this.#t||(this.#r=q.createStream(this.#e,s))}write(e){let r=this.#r;this.#t&&(r=q.createStream(this.#e,this.#s));const s=new N(r,this.#e);s.write(e),this.#t&&s.end()}end(){this.#r!==void 0&&this.#r.end()}}var k=Object.defineProperty,B=n((t,e)=>k(t,"name",{value:e,configurable:!0}),"r$1");class F{static{n(this,"AbstractFileReporter")}static{B(this,"AbstractFileReporter")}stream;constructor(e){const{filePath:r,writeImmediately:s=!1,...o}=e;this.stream=new Y(r,s,o)}log(e){this.stream.write(this._formatMessage(e)+`
2
+ `)}}var K=Object.defineProperty,Q=n((t,e)=>K(t,"name",{value:e,configurable:!0}),"s");let U=class extends F{static{n(this,"p")}static{Q(this,"JsonFileReporter")}#e;constructor(e){super({compress:"gzip",interval:"1d",size:"10M",...e})}setStringify(e){this.#e=e}_formatMessage(e){const{file:r,type:s,...o}=e;return o.label&&(o.label=o.label.trim()),r&&(o.file=r.name+":"+r.line+(r.column?":"+r.column:"")),this.#e(o)}};const V=U;var X=Object.defineProperty,Z=n((t,e)=>X(t,"name",{value:e,configurable:!0}),"r");class ee extends z.o{static{n(this,"p")}static{Z(this,"JsonReporter")}#e;#t;constructor(){super(),this.#e=g.stdout,this.#t=g.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}_log(e,r){const s=["error","warn"].includes(r)?this.#t:this.#e;l.n(e+`
3
+ `,s)}}const te=ee;var re=Object.defineProperty,se=n((t,e)=>re(t,"name",{value:e,configurable:!0}),"R");class ie extends A.AbstractPrettyReporter{static{n(this,"q")}static{se(this,"SimpleReporter")}#e;#t;#r;#s=!1;constructor(e={}){super({uppercase:{label:!0,...e.uppercase},...e}),this.#e=g.stdout,this.#t=g.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}setInteractiveManager(e){this.#r=e}setIsInteractive(e){this.#s=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:r}=l.terminalSize();let s=r;typeof this._styles.messageLength=="number"&&(s=this._styles.messageLength);const{badge:o,context:w,date:u,error:S,file:d,groups:m,label:f,message:y,prefix:_,repeated:R,scope:b,suffix:v,traceError:j,type:M}=e,{color:P}=this._loggerTypes[M.name],x=P?C[P]:a.white,c=m.map(()=>" ").join(""),i=[];if(m.length>0&&i.push(c+a.grey("["+m.at(-1)+"]")+" "),u&&i.push(a.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),o)i.push(a.bold(x(o)));else{const h=A.o(this._loggerTypes);h.length>0&&i.push(a.grey(" ".repeat(h.length)))}const $=I.o(this._loggerTypes);f?i.push(a.bold(x(l.n$1(f,this._styles)))+" "," ".repeat($.length-l.stringLength(f))):i.push(" ".repeat($.length+1)),R&&i.push(a.bgGrey.white("["+R+"x]")+" "),Array.isArray(b)&&b.length>0&&i.push(a.grey("["+b.join(" > ")+"]")+" "),_&&i.push(a.grey("["+(this._styles.underline.prefix?a.underline(_):_)+"]")+" ");const O=l.stringLength(i.join("")),T=typeof y=="string"?y:this._stringify(y);if(i.push(c+l.wrapAnsi(T??"undefined",s-3,{hard:!0,trim:!0,wordWrap:!0})),w){let h=!1;i.push(...w.map(p=>{if(p instanceof Error)return h=!0,`
2
4
 
3
- var chunkS4PFPURC_cjs = require('./chunk-S4PFPURC.cjs');
4
- var chunkZJMTPHZR_cjs = require('./chunk-ZJMTPHZR.cjs');
5
- require('./chunk-YP3U3DTV.cjs');
6
- require('./chunk-QINSQ6TU.cjs');
7
- var rotatingFileStream = require('rotating-file-stream');
8
- var c = require('process');
5
+ `+l.w(p,s,c);if(typeof p=="object")return" "+this._stringify(p);const J=(h?`
9
6
 
10
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
-
12
- var c__default = /*#__PURE__*/_interopDefault(c);
13
-
14
- var a=class{_ready=!0;_stream;_name;constructor(t,r){this._stream=t,this._name=r;}write(t){this.writeStream(t);}end(...t){this._stream.end(...t);}writeStream(t){if(!this._ready){console.warn("Stream busy: "+this._name+'. Write will be dropped: "'+t+'"');return}this._ready=!1,this._stream.on("error",r=>{throw r}),this._stream.on("drain",()=>{this._ready=!0;}),this._stream.on("finish",()=>{this._ready=!0;}),this._ready=this._stream.write(t,()=>{});}};var n=class{_filePath;_immediate;_stream;_options;constructor(t,r=!1,e={}){this._filePath=t,this._immediate=r,this._options=e,this._immediate||(this._stream=rotatingFileStream.createStream(this._filePath,e));}write(t){let r=this._stream;this._immediate&&(r=rotatingFileStream.createStream(this._filePath,this._options));let e=new a(r,this._filePath);e.write(t),this._immediate&&e.end();}end(){this._stream!==void 0&&this._stream.end();}};var s=class{_stream;constructor(t){let{filePath:r,writeImmediately:e=!1,...h}=t;this._stream=new n(r,e,h);}log(t){this._stream.write(this._formatMessage(t)+`
15
- `);}};var p=class extends s{#t;constructor(t){super({compress:"gzip",interval:"1d",size:"10M",...t});}setStringify(t){this.#t=t;}_formatMessage(t){let{type:r,...e}=t;return e.label&&(e.label=e.label.trim()),e.file&&(e.file=e.file.name+":"+e.file.line+(e.file.column?":"+e.file.column:"")),this.#t(e)}};var m=class extends chunkZJMTPHZR_cjs.a{#t;#e;constructor(){super(),this.#t=c__default.default.stdout,this.#e=c__default.default.stderr;}setStdout(t){this.#t=t;}setStderr(t){this.#e=t;}_log(t,r){let e=["error","warn"].includes(r)?this.#e:this.#t;chunkS4PFPURC_cjs.c(t+`
16
- `,e);}};
17
-
18
- Object.defineProperty(exports, "PrettyReporter", {
19
- enumerable: true,
20
- get: function () { return chunkS4PFPURC_cjs.d; }
21
- });
22
- exports.AbstractFileReporter = s;
23
- exports.JsonFileReporter = p;
24
- exports.JsonReporter = m;
25
- //# sourceMappingURL=out.js.map
26
- //# sourceMappingURL=reporter.server.cjs.map
7
+ `:" ")+p;return h=!1,J}))}if(S&&i.push(l.w(S,s,c)),j&&i.push(l.w(j,s,c,!0)),v&&i.push(" "+c+a.grey(this._styles.underline.suffix?a.underline(v):v)),d){const h=d.name+(d.line?":"+d.line:"");i.push(`
8
+ `,a.grey("Caller: ")," ".repeat(O-8),h,`
9
+ `)}return i.join("")}_log(e,r){const s=["error","trace","warn"].includes(r)?"stderr":"stdout",o=s==="stderr"?this.#t:this.#e;this.#s&&this.#r!==void 0&&o.isTTY?this.#r.update(s,e.split(`
10
+ `),0):l.n(e+`
11
+ `,o)}}const ne=ie;exports.PrettyReporter=l.a;exports.AbstractFileReporter=F;exports.JsonFileReporter=V;exports.JsonReporter=te;exports.SimpleReporter=ne;
@@ -1,14 +1,11 @@
1
1
  import { Options as Options$1 } from 'rotating-file-stream';
2
- import { R as Reporter, g as ReadonlyMeta, M as Meta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './types-DrhFTME0.cjs';
3
- import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './abstract-pretty-reporter-DwzTRutd.cjs';
2
+ import { R as Reporter, g as ReadonlyMeta, M as Meta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DrhFTME0.cjs';
3
+ import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.B4CNQvGO.cjs';
4
4
  import '@visulima/colorize';
5
5
  import 'safe-stable-stringify';
6
6
 
7
7
  declare class RotatingFileStream {
8
- private readonly _filePath;
9
- private readonly _immediate;
10
- private readonly _stream;
11
- private readonly _options;
8
+ #private;
12
9
  constructor(filePath: string, writeImmediately?: boolean, options?: Options$1);
13
10
  write(message: string): void;
14
11
  end(): void;
@@ -19,7 +16,7 @@ type Options = Options$1 & {
19
16
  writeImmediately?: boolean;
20
17
  };
21
18
  declare abstract class AbstractFileReporter<L extends string = never> implements Reporter<L> {
22
- protected _stream: RotatingFileStream;
19
+ protected stream: RotatingFileStream;
23
20
  protected constructor(options: Options);
24
21
  log(meta: ReadonlyMeta<L>): void;
25
22
  protected abstract _formatMessage(data: ReadonlyMeta<L>): string;
@@ -35,23 +32,33 @@ declare class JsonFileReporter<L extends string = never> extends AbstractFileRep
35
32
  declare class JsonReporter<L extends string = never> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
36
33
  #private;
37
34
  constructor();
38
- setStdout(stdout: NodeJS.WriteStream): void;
39
- setStderr(stderr: NodeJS.WriteStream): void;
35
+ setStdout(stdout_: NodeJS.WriteStream): void;
36
+ setStderr(stderr_: NodeJS.WriteStream): void;
40
37
  protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
41
38
  }
42
39
 
43
40
  declare class PrettyReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
44
41
  #private;
45
42
  constructor(options?: Partial<PrettyStyleOptions>);
46
- setStdout(stdout: NodeJS.WriteStream): void;
47
- setStderr(stderr: NodeJS.WriteStream): void;
43
+ setStdout(stdout_: NodeJS.WriteStream): void;
44
+ setStderr(stderr_: NodeJS.WriteStream): void;
45
+ setInteractiveManager(manager?: InteractiveManager): void;
46
+ setIsInteractive(interactive: boolean): void;
47
+ log(meta: ReadonlyMeta<L>): void;
48
+ protected _formatMessage(data: ReadonlyMeta<L>): string;
49
+ protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
50
+ }
51
+
52
+ declare class SimpleReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
53
+ #private;
54
+ constructor(options?: Partial<PrettyStyleOptions>);
55
+ setStdout(stdout_: NodeJS.WriteStream): void;
56
+ setStderr(stderr_: NodeJS.WriteStream): void;
48
57
  setInteractiveManager(manager?: InteractiveManager): void;
49
58
  setIsInteractive(interactive: boolean): void;
50
59
  log(meta: ReadonlyMeta<L>): void;
51
60
  protected _formatMessage(data: ReadonlyMeta<L>): string;
52
61
  protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
53
- private _formatError;
54
- private _formatLabel;
55
62
  }
56
63
 
57
- export { AbstractFileReporter, type Options as AbstractFileReporterOptions, JsonFileReporter, JsonReporter, PrettyReporter };
64
+ export { AbstractFileReporter, type Options as AbstractFileReporterOptions, JsonFileReporter, JsonReporter, PrettyReporter, SimpleReporter };
@@ -0,0 +1,64 @@
1
+ import { Options as Options$1 } from 'rotating-file-stream';
2
+ import { R as Reporter, g as ReadonlyMeta, M as Meta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DrhFTME0.mjs';
3
+ import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.qb_TjNJQ.mjs';
4
+ import '@visulima/colorize';
5
+ import 'safe-stable-stringify';
6
+
7
+ declare class RotatingFileStream {
8
+ #private;
9
+ constructor(filePath: string, writeImmediately?: boolean, options?: Options$1);
10
+ write(message: string): void;
11
+ end(): void;
12
+ }
13
+
14
+ type Options = Options$1 & {
15
+ filePath: string;
16
+ writeImmediately?: boolean;
17
+ };
18
+ declare abstract class AbstractFileReporter<L extends string = never> implements Reporter<L> {
19
+ protected stream: RotatingFileStream;
20
+ protected constructor(options: Options);
21
+ log(meta: ReadonlyMeta<L>): void;
22
+ protected abstract _formatMessage(data: ReadonlyMeta<L>): string;
23
+ }
24
+
25
+ declare class JsonFileReporter<L extends string = never> extends AbstractFileReporter<L> {
26
+ #private;
27
+ constructor(options: Options);
28
+ setStringify(function_: any): void;
29
+ protected _formatMessage(meta: Meta<L>): string;
30
+ }
31
+
32
+ declare class JsonReporter<L extends string = never> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
33
+ #private;
34
+ constructor();
35
+ setStdout(stdout_: NodeJS.WriteStream): void;
36
+ setStderr(stderr_: NodeJS.WriteStream): void;
37
+ protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
38
+ }
39
+
40
+ declare class PrettyReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
41
+ #private;
42
+ constructor(options?: Partial<PrettyStyleOptions>);
43
+ setStdout(stdout_: NodeJS.WriteStream): void;
44
+ setStderr(stderr_: NodeJS.WriteStream): void;
45
+ setInteractiveManager(manager?: InteractiveManager): void;
46
+ setIsInteractive(interactive: boolean): void;
47
+ log(meta: ReadonlyMeta<L>): void;
48
+ protected _formatMessage(data: ReadonlyMeta<L>): string;
49
+ protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
50
+ }
51
+
52
+ declare class SimpleReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
53
+ #private;
54
+ constructor(options?: Partial<PrettyStyleOptions>);
55
+ setStdout(stdout_: NodeJS.WriteStream): void;
56
+ setStderr(stderr_: NodeJS.WriteStream): void;
57
+ setInteractiveManager(manager?: InteractiveManager): void;
58
+ setIsInteractive(interactive: boolean): void;
59
+ log(meta: ReadonlyMeta<L>): void;
60
+ protected _formatMessage(data: ReadonlyMeta<L>): string;
61
+ protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
62
+ }
63
+
64
+ export { AbstractFileReporter, type Options as AbstractFileReporterOptions, JsonFileReporter, JsonReporter, PrettyReporter, SimpleReporter };
@@ -1,14 +1,11 @@
1
1
  import { Options as Options$1 } from 'rotating-file-stream';
2
- import { R as Reporter, g as ReadonlyMeta, M as Meta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './types-DrhFTME0.js';
3
- import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './abstract-pretty-reporter-B-VS5gYX.js';
2
+ import { R as Reporter, g as ReadonlyMeta, M as Meta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DrhFTME0.js';
3
+ import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.Bdbc3_zr.js';
4
4
  import '@visulima/colorize';
5
5
  import 'safe-stable-stringify';
6
6
 
7
7
  declare class RotatingFileStream {
8
- private readonly _filePath;
9
- private readonly _immediate;
10
- private readonly _stream;
11
- private readonly _options;
8
+ #private;
12
9
  constructor(filePath: string, writeImmediately?: boolean, options?: Options$1);
13
10
  write(message: string): void;
14
11
  end(): void;
@@ -19,7 +16,7 @@ type Options = Options$1 & {
19
16
  writeImmediately?: boolean;
20
17
  };
21
18
  declare abstract class AbstractFileReporter<L extends string = never> implements Reporter<L> {
22
- protected _stream: RotatingFileStream;
19
+ protected stream: RotatingFileStream;
23
20
  protected constructor(options: Options);
24
21
  log(meta: ReadonlyMeta<L>): void;
25
22
  protected abstract _formatMessage(data: ReadonlyMeta<L>): string;
@@ -35,23 +32,33 @@ declare class JsonFileReporter<L extends string = never> extends AbstractFileRep
35
32
  declare class JsonReporter<L extends string = never> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
36
33
  #private;
37
34
  constructor();
38
- setStdout(stdout: NodeJS.WriteStream): void;
39
- setStderr(stderr: NodeJS.WriteStream): void;
35
+ setStdout(stdout_: NodeJS.WriteStream): void;
36
+ setStderr(stderr_: NodeJS.WriteStream): void;
40
37
  protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
41
38
  }
42
39
 
43
40
  declare class PrettyReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
44
41
  #private;
45
42
  constructor(options?: Partial<PrettyStyleOptions>);
46
- setStdout(stdout: NodeJS.WriteStream): void;
47
- setStderr(stderr: NodeJS.WriteStream): void;
43
+ setStdout(stdout_: NodeJS.WriteStream): void;
44
+ setStderr(stderr_: NodeJS.WriteStream): void;
45
+ setInteractiveManager(manager?: InteractiveManager): void;
46
+ setIsInteractive(interactive: boolean): void;
47
+ log(meta: ReadonlyMeta<L>): void;
48
+ protected _formatMessage(data: ReadonlyMeta<L>): string;
49
+ protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
50
+ }
51
+
52
+ declare class SimpleReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> implements InteractiveStreamReporter<L> {
53
+ #private;
54
+ constructor(options?: Partial<PrettyStyleOptions>);
55
+ setStdout(stdout_: NodeJS.WriteStream): void;
56
+ setStderr(stderr_: NodeJS.WriteStream): void;
48
57
  setInteractiveManager(manager?: InteractiveManager): void;
49
58
  setIsInteractive(interactive: boolean): void;
50
59
  log(meta: ReadonlyMeta<L>): void;
51
60
  protected _formatMessage(data: ReadonlyMeta<L>): string;
52
61
  protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
53
- private _formatError;
54
- private _formatLabel;
55
62
  }
56
63
 
57
- export { AbstractFileReporter, type Options as AbstractFileReporterOptions, JsonFileReporter, JsonReporter, PrettyReporter };
64
+ export { AbstractFileReporter, type Options as AbstractFileReporterOptions, JsonFileReporter, JsonReporter, PrettyReporter, SimpleReporter };
@@ -0,0 +1,11 @@
1
+ var q=Object.defineProperty;var o=(s,t)=>q(s,"name",{value:t,configurable:!0});import{createStream as P}from"rotating-file-stream";import{stdout as O,stderr as T}from"node:process";import{n as J,t as E,b as C,s as A,w as D,c as b}from"./shared/pail.CzAicDBX.mjs";import{a as At}from"./shared/pail.CzAicDBX.mjs";import{o as G}from"./shared/pail.Br_AAl-2.mjs";import H,{white as N,grey as h,bold as M,bgGrey as Y,underline as F}from"@visulima/colorize";import{A as k,o as B}from"./shared/pail.D3wUM96H.mjs";import{o as K}from"./shared/pail.BP9NvmFd.mjs";var Q=Object.defineProperty,U=o((s,t)=>Q(s,"name",{value:t,configurable:!0}),"i$2");let V=class{static{o(this,"s")}static{U(this,"SafeStreamHandler")}_ready=!0;_stream;_name;constructor(t,e){this._stream=t,this._name=e}write(t){this.writeStream(t)}end(...t){this._stream.end(...t)}writeStream(t){if(!this._ready){console.warn("Stream busy: "+this._name+'. Write will be dropped: "'+t+'"');return}this._ready=!1,this._stream.on("error",e=>{throw e}),this._stream.on("drain",()=>{this._ready=!0}),this._stream.on("finish",()=>{this._ready=!0}),this._ready=this._stream.write(t,()=>{})}};var X=Object.defineProperty,Z=o((s,t)=>X(s,"name",{value:t,configurable:!0}),"r$2");class tt{static{o(this,"f")}static{Z(this,"RotatingFileStream")}#t;#e;#s;#r;constructor(t,e=!1,r={}){this.#t=t,this.#e=e,this.#r=r,this.#e||(this.#s=P(this.#t,r))}write(t){let e=this.#s;this.#e&&(e=P(this.#t,this.#r));const r=new V(e,this.#t);r.write(t),this.#e&&r.end()}end(){this.#s!==void 0&&this.#s.end()}}var et=Object.defineProperty,st=o((s,t)=>et(s,"name",{value:t,configurable:!0}),"r$1");class rt{static{o(this,"AbstractFileReporter")}static{st(this,"AbstractFileReporter")}stream;constructor(t){const{filePath:e,writeImmediately:r=!1,...a}=t;this.stream=new tt(e,r,a)}log(t){this.stream.write(this._formatMessage(t)+`
2
+ `)}}var it=Object.defineProperty,at=o((s,t)=>it(s,"name",{value:t,configurable:!0}),"s");let ot=class extends rt{static{o(this,"p")}static{at(this,"JsonFileReporter")}#t;constructor(t){super({compress:"gzip",interval:"1d",size:"10M",...t})}setStringify(t){this.#t=t}_formatMessage(t){const{file:e,type:r,...a}=t;return a.label&&(a.label=a.label.trim()),e&&(a.file=e.name+":"+e.line+(e.column?":"+e.column:"")),this.#t(a)}};const $t=ot;var nt=Object.defineProperty,ht=o((s,t)=>nt(s,"name",{value:t,configurable:!0}),"r");class lt extends G{static{o(this,"p")}static{ht(this,"JsonReporter")}#t;#e;constructor(){super(),this.#t=O,this.#e=T}setStdout(t){this.#t=t}setStderr(t){this.#e=t}_log(t,e){const r=["error","warn"].includes(e)?this.#e:this.#t;J(t+`
3
+ `,r)}}const jt=lt;var pt=Object.defineProperty,ct=o((s,t)=>pt(s,"name",{value:t,configurable:!0}),"R");class mt extends k{static{o(this,"q")}static{ct(this,"SimpleReporter")}#t;#e;#s;#r=!1;constructor(t={}){super({uppercase:{label:!0,...t.uppercase},...t}),this.#t=O,this.#e=T}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#s=t}setIsInteractive(t){this.#r=t}log(t){this._log(this._formatMessage(t),t.type.level)}_formatMessage(t){const{columns:e}=E();let r=e;typeof this._styles.messageLength=="number"&&(r=this._styles.messageLength);const{badge:a,context:v,date:c,error:w,file:m,groups:u,label:d,message:f,prefix:g,repeated:S,scope:y,suffix:_,traceError:$,type:z}=t,{color:j}=this._loggerTypes[z.name],x=j?H[j]:N,l=u.map(()=>" ").join(""),i=[];if(u.length>0&&i.push(l+h("["+u.at(-1)+"]")+" "),c&&i.push(h(this._styles.dateFormatter(typeof c=="string"?new Date(c):c))+" "),a)i.push(M(x(a)));else{const n=B(this._loggerTypes);n.length>0&&i.push(h(" ".repeat(n.length)))}const R=K(this._loggerTypes);d?i.push(M(x(C(d,this._styles)))+" "," ".repeat(R.length-A(d))):i.push(" ".repeat(R.length+1)),S&&i.push(Y.white("["+S+"x]")+" "),Array.isArray(y)&&y.length>0&&i.push(h("["+y.join(" > ")+"]")+" "),g&&i.push(h("["+(this._styles.underline.prefix?F(g):g)+"]")+" ");const I=A(i.join("")),L=typeof f=="string"?f:this._stringify(f);if(i.push(l+D(L??"undefined",r-3,{hard:!0,trim:!0,wordWrap:!0})),v){let n=!1;i.push(...v.map(p=>{if(p instanceof Error)return n=!0,`
4
+
5
+ `+b(p,r,l);if(typeof p=="object")return" "+this._stringify(p);const W=(n?`
6
+
7
+ `:" ")+p;return n=!1,W}))}if(w&&i.push(b(w,r,l)),$&&i.push(b($,r,l,!0)),_&&i.push(" "+l+h(this._styles.underline.suffix?F(_):_)),m){const n=m.name+(m.line?":"+m.line:"");i.push(`
8
+ `,h("Caller: ")," ".repeat(I-8),n,`
9
+ `)}return i.join("")}_log(t,e){const r=["error","trace","warn"].includes(e)?"stderr":"stdout",a=r==="stderr"?this.#e:this.#t;this.#r&&this.#s!==void 0&&a.isTTY?this.#s.update(r,t.split(`
10
+ `),0):J(t+`
11
+ `,a)}}const xt=mt;export{rt as AbstractFileReporter,$t as JsonFileReporter,jt as JsonReporter,At as PrettyReporter,xt as SimpleReporter};
@@ -1,8 +1,8 @@
1
1
  import { stringify } from 'safe-stable-stringify';
2
- import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './types-DrhFTME0.js';
2
+ import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './pail.DrhFTME0.cjs';
3
3
 
4
4
  declare abstract class AbstractJsonReporter<L extends string = never> implements StringifyAwareReporter<L> {
5
- protected _stringify: typeof stringify | undefined;
5
+ protected stringify: typeof stringify | undefined;
6
6
  setStringify(function_: any): void;
7
7
  log(meta: ReadonlyMeta<L>): void;
8
8
  protected abstract _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var n=(o,t)=>a(o,"name",{value:t,configurable:!0});const c=require("@visulima/fmt");var g=Object.defineProperty,f=n((o,t)=>g(o,"name",{value:t,configurable:!0}),"o");class u{static{n(this,"p")}static{f(this,"MessageFormatterProcessor")}#t;#e;constructor(t={}){this.#e=t.formatters}setStringify(t){this.#t=t}process(t){const e=c.build({formatters:this.#e,stringify:f(s=>{const r=this.#t(s);return r===void 0?(console.warn("Unable to stringify value of type "+typeof s,s),"undefined"):r},"stringify")});return t.message!==void 0&&(t.message=this._format(e,t.message,t.context??[])),t}_format(t,e,s=[]){if(typeof e=="string")return t(e,s);if(typeof e=="object"&&e!==null)for(const r in e){const i=e[r];(typeof i=="string"||Array.isArray(i)||typeof i=="object")&&(e[r]=this._format(t,i,s))}return e}}const y=u;exports.g=y;
@@ -0,0 +1,21 @@
1
+ "use strict";var BD=Object.defineProperty;var E=(D,u)=>BD(D,"name",{value:u,configurable:!0});const M=require("node:process"),i=require("@visulima/colorize"),sD=require("node:child_process"),iD=require("node:fs"),oD=require("node:tty"),U=require("./pail.t5UYgSXE.cjs"),aD=require("./pail.DwWkopDF.cjs"),N=E(D=>D&&typeof D=="object"&&"default"in D?D.default:D,"_interopDefaultCompat"),b=N(M),AD=N(i),w=N(iD),lD=N(oD),Q=80,X=24,R=E((D,u,{shell:F,env:e}={})=>sD.execFileSync(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),_=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),DD=E((D,u)=>{const{columns:F,rows:e}=_(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===Q&&e===X))return{columns:F,rows:e}},"createIfNotDefault");function uD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return _(u.columns,u.rows);if(F?.columns&&F?.rows)return _(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return _(D.COLUMNS,D.LINES);const e={columns:Q,rows:X};return b.platform==="win32"?O()??e:b.platform==="darwin"?K()??O()??e:K()??O()??cD()??e}E(uD,"terminalSize");const K=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=lD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),O=E(()=>{try{const D=R("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=R("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return DD(D,u)}catch{}},"tput"),cD=E(()=>{try{const D=R("resize",["-u"]).match(/\d+/g);if(D.length===2)return DD(D[0],D[1])}catch{}},"resize");function fD({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}E(fD,"ansiRegex");const gD=fD();function k(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(gD,"")}E(k,"stripAnsi");function hD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(hD,"isAmbiguous");function pD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(pD,"isFullWidth");function dD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(dD,"isWide");function mD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(mD,"validate");function bD(D,{ambiguousAsWide:u=!1}={}){return mD(D),pD(D)||dD(D)||u&&hD(D)?2:1}E(bD,"eastAsianWidth");const yD=E(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex"),wD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=k(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of wD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(yD().test(r)){t+=2;continue}t+=bD(C,B)}}return t}E(y,"stringWidth");const L=10,Y=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),Z=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),V=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(n.modifier);const _D=Object.keys(n.color),xD=Object.keys(n.bgColor);[..._D,...xD];function SD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=Y(),n.color.ansi256=Z(),n.color.ansi16m=V(),n.bgColor.ansi=Y(L),n.bgColor.ansi256=Z(L),n.bgColor.ansi16m=V(L),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(SD,"assembleStyles");const vD=SD(),T=new Set(["\x1B","›"]),ND=39,W="\x07",FD="[",TD="]",eD="m",v=`${TD}8;;`,H=E(D=>`${T.values().next().value}${FD}${D}${eD}`,"wrapAnsiCode"),J=E(D=>`${T.values().next().value}${v}${D}${W}`,"wrapAnsiHyperlink"),jD=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),I=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(k(D.at(-1)));for(const[C,a]of e.entries()){const l=y(a);if(r+l<=F?D[D.length-1]+=a:(D.push(a),r=0),T.has(a)&&(t=!0,B=e.slice(C+1,C+1+v.length).join("")===v),t){B?a===W&&(t=!1,B=!1):a===eD&&(t=!1);continue}r+=l,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),$D=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),OD=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=jD(D);let C=[""];for(const[o,c]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let A=y(C.at(-1));if(o!==0&&(A>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),A=0),(A>0||F.trim===!1)&&(C[C.length-1]+=" ",A++)),F.hard&&r[o]>u){const f=u-A,p=1+Math.floor((r[o]-f-1)/u);Math.floor((r[o]-1)/u)<p&&C.push(""),I(C,c,u);continue}if(A+r[o]>u&&A>0&&r[o]>0){if(F.wordWrap===!1&&A<u){I(C,c,u);continue}C.push("")}if(A+r[o]>u&&F.wordWrap===!1){I(C,c,u);continue}C[C.length-1]+=c}F.trim!==!1&&(C=C.map(o=>$D(o)));const a=C.join(`
2
+ `),l=[...a];let g=0;for(const[o,c]of l.entries()){if(e+=c,T.has(c)){const{groups:f}=new RegExp(`(?:\\${FD}(?<code>\\d+)m|\\${v}(?<uri>.*)${W})`).exec(a.slice(g))||{groups:{}};if(f.code!==void 0){const p=Number.parseFloat(f.code);t=p===ND?void 0:p}else f.uri!==void 0&&(B=f.uri.length===0?void 0:f.uri)}const A=vD.codes.get(Number(t));l[o+1]===`
3
+ `?(B&&(e+=J("")),t&&A&&(e+=H(A))):c===`
4
+ `&&(t&&A&&(e+=H(t)),B&&(e+=J(B))),g+=c.length}return e},"exec");function P(D,u,F){return String(D).normalize().replaceAll(`\r
5
+ `,`
6
+ `).split(`
7
+ `).map(e=>OD(e,u,F)).join(`
8
+ `)}E(P,"wrapAnsi");var LD=Object.defineProperty,ID=E((D,u)=>LD(D,"name",{value:u,configurable:!0}),"r");const ED=ID((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),MD=new Intl.Segmenter;function x(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=k(D)),D===""))return 0;let F=0;for(const e of MD.segment(D))F++;return F}E(x,"stringLength");var RD=Object.defineProperty,kD=E((D,u)=>RD(D,"name",{value:u,configurable:!0}),"o$1");const S=kD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+i.red(B),": "],P(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const a=r.split(`
9
+ `).splice(1).map(l=>F+l.trim().replace("file://","")).filter(l=>!l.includes("/pail/dist"));C.push(`
10
+ `,a.map(l=>" "+l.replace(/^at +/,g=>i.grey(g)).replace(/\((.+)\)/,(g,o)=>"("+i.cyan(o)+")")).join(`
11
+ `))}return C.join("")},"formatError");var WD=Object.defineProperty,PD=E((D,u)=>WD(D,"name",{value:u,configurable:!0}),"o");const CD=PD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?i.underline(F):F,u.bold.label&&(F=i.bold(F)),F},"formatLabel");var zD=Object.defineProperty,qD=E((D,u)=>zD(D,"name",{value:u,configurable:!0}),"E");class GD extends U.AbstractPrettyReporter{static{E(this,"q")}static{qD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=M.stdout,this.#u=M.stderr}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=uD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:a,groups:l,label:g,message:o,prefix:c,repeated:A,scope:f,suffix:p,traceError:j,type:tD}=u,{color:z}=this._loggerTypes[tD.name],q=z?AD[z]:i.white,m=l.map(()=>" ").join(""),s=[];if(l.length>0&&s.push(m+i.grey("["+l.at(-1)+"]")+" "),r&&s.push(i.grey(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(q(t));else{const h=U.o(this._loggerTypes);h.length>0&&s.push(i.grey(".".repeat(h.length))+" ")}const G=aD.o(this._loggerTypes);g?s.push(q(CD(g,this._styles))+" ",i.grey(".".repeat(G.length-x(g)))):s.push(i.grey(".".repeat(G.length+2))),A&&s.push(i.bgGrey.white("["+A+"x]")+" "),Array.isArray(f)&&f.length>0&&s.push(" "+i.grey("["+f.join(" > ")+"]")+" "),c&&s.push(i.grey((Array.isArray(f)&&f.length>0?". ":" ")+"["+(this._styles.underline.prefix?i.underline(c):c)+"]")+" ");const $=x(s.join(" "));if(a){const h=a.name+(a.line?":"+a.line:""),d=x(h);d+$+2>e?s.push(i.grey(" "+h)):s.push(i.grey(".".repeat(e-$-d-2)+" "+h))}else s.push(i.grey(".".repeat(e-$-1)));s.length>0&&s.push(`
12
+
13
+ `);const rD=typeof o=="string"?o:this._stringify(o);if(s.push(m+P(rD??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0})),B){let h=!1;s.push(...B.map(d=>{if(d instanceof Error)return h=!0,`
14
+
15
+ `+S(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const nD=(h?`
16
+
17
+ `:" ")+d;return h=!1,nD}))}return C&&s.push(S(C,e,m)),j&&s.push(S(j,e,m,!0)),p&&s.push(`
18
+ `,m+i.grey(this._styles.underline.suffix?i.underline(p):p)),s.join("")+`
19
+ `}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
20
+ `),0):ED(u+`
21
+ `,t)}}const UD=GD;exports.a=UD;exports.n=ED;exports.n$1=CD;exports.stringLength=x;exports.terminalSize=uD;exports.w=S;exports.wrapAnsi=P;
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var a=(e,l)=>t(e,"name",{value:l,configurable:!0});const g={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},b={alert:{color:"red",label:"alert",logLevel:"alert"},await:{color:"blue",label:"awaiting",logLevel:"informational"},complete:{color:"cyan",label:"complete",logLevel:"informational"},critical:{color:"redBright",label:"critical",logLevel:"critical"},debug:{color:"gray",label:"debug",logLevel:"debug"},emergency:{color:"redBright",label:"emergency",logLevel:"emergency"},error:{color:"red",label:"error",logLevel:"error"},info:{color:"blueBright",label:"info",logLevel:"informational"},log:{label:"",logLevel:"informational"},notice:{color:"magentaBright",label:"notice",logLevel:"notice"},pending:{color:"magenta",label:"pending",logLevel:"informational"},start:{color:"greenBright",label:"start",logLevel:"informational"},stop:{color:"red",label:"stop",logLevel:"informational"},success:{color:"green",label:"success",logLevel:"informational"},trace:{color:"cyanBright",label:"trace",logLevel:"trace"},wait:{color:"blue",label:"waiting",logLevel:"informational"},warn:{color:"yellow",label:"warning",logLevel:"warning"},watch:{color:"yellowBright",label:"watching",logLevel:"informational"}};var n=Object.defineProperty,i=a((e,l)=>n(e,"name",{value:l,configurable:!0}),"r");const L=i(e=>{const l=Object.keys(e).map(o=>e[o].label??"");return l.length===0?"":l.reduce((o,r)=>o.length>r.length?o:r)},"getLongestLabel");export{g as E,b as L,L as o};
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var r=(o,e)=>n(o,"name",{value:e,configurable:!0});var c=Object.defineProperty,a=r((o,e)=>c(o,"name",{value:e,configurable:!0}),"o");const l=a(o=>o==="error"?console.__error??console.error:o==="warn"?console.__warn??console.warn:o==="trace"?console.__trace??console.trace:console.__log??console.log,"writeConsoleLogBasedOnLevel");exports.a=l;
@@ -1,8 +1,8 @@
1
1
  import { stringify } from 'safe-stable-stringify';
2
- import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './types-DrhFTME0.cjs';
2
+ import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './pail.DrhFTME0.js';
3
3
 
4
4
  declare abstract class AbstractJsonReporter<L extends string = never> implements StringifyAwareReporter<L> {
5
- protected _stringify: typeof stringify | undefined;
5
+ protected stringify: typeof stringify | undefined;
6
6
  setStringify(function_: any): void;
7
7
  log(meta: ReadonlyMeta<L>): void;
8
8
  protected abstract _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var r=(l,e)=>n(l,"name",{value:e,configurable:!0});var a=Object.defineProperty,o=r((l,e)=>a(l,"name",{value:e,configurable:!0}),"r");class f{static{r(this,"o")}static{o(this,"AbstractJsonReporter")}stringify;setStringify(e){this.stringify=e}log(e){const{file:t,type:s,...i}=e;i.label&&(i.label=i.label.trim()),t&&(i.file=t.name+":"+t.line+(t.column?":"+t.column:"")),this._log(this.stringify(i),s.level)}}export{f as o};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var t=(o,r)=>a(o,"name",{value:r,configurable:!0});import{a as s}from"./pail.DF5wQ_KA.mjs";import{o as c}from"./pail.Br_AAl-2.mjs";var n=Object.defineProperty,i=t((o,r)=>n(o,"name",{value:r,configurable:!0}),"t");class p extends c{static{t(this,"c")}static{i(this,"JsonReporter")}constructor(){super()}_log(r,e){s(e)(r)}}const u=p;export{u as i};
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});const c=Symbol("circular-reference-tag"),i=Symbol("raw-error-ref"),l=Object.create({},{aggregateErrors:{enumerable:!0,value:void 0,writable:!0},cause:{enumerable:!0,value:void 0,writable:!0},code:{enumerable:!0,value:void 0,writable:!0},message:{enumerable:!0,value:void 0,writable:!0},name:{enumerable:!0,value:void 0,writable:!0},raw:{enumerable:!1,get(){return this[i]},set(e){this[i]=e}},stack:{enumerable:!0,value:void 0,writable:!0}});Object.defineProperty(l,i,{value:{},writable:!0});const b=l;var m=Object.defineProperty,v=s((e,r)=>m(e,"name",{value:r,configurable:!0}),"c");const n=v((e,r={})=>{e[c]=void 0;const t=Object.create(b);t.name=Object.prototype.toString.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(a=>n(a,r))),e.cause instanceof Error&&!Object.prototype.hasOwnProperty.call(e.cause,c)&&(t.cause=n(e.cause,r));for(const a in e)if(t[a]===void 0){const o=e[a];if(o instanceof Error)Object.prototype.hasOwnProperty.call(o,c)||(t[a]=n(o,r));else if(typeof o=="function")t[a]="[Function: "+(o.name||"anonymous");else try{t[a]=o}catch{}}return delete e[c],t.raw=e,t},"errorWithCauseSerializer");var p=Object.defineProperty,y=s((e,r)=>p(e,"name",{value:r,configurable:!0}),"o");class f{static{s(this,"i")}static{y(this,"ErrorProcessor")}_options;constructor(r={}){this._options={maxDepth:Number.POSITIVE_INFINITY,useToJSON:!0,...r}}process(r){return r.error&&(r.error=n(r.error,this._options)),r}}const g=f;exports.L=g;
@@ -1,5 +1,5 @@
1
1
  import { stringify } from 'safe-stable-stringify';
2
- import { a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions, M as Meta, d as LoggerTypesConfig, e as LiteralUnion, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter } from './types-DrhFTME0.js';
2
+ import { a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions, M as Meta, d as LoggerTypesConfig, e as LiteralUnion, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter } from './pail.DrhFTME0.js';
3
3
 
4
4
  declare class PailBrowserImpl<T extends string = never, L extends string = never> {
5
5
  protected timersMap: Map<string, number>;
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});const n=Symbol("circular-reference-tag"),i=Symbol("raw-error-ref"),l=Object.create({},{aggregateErrors:{enumerable:!0,value:void 0,writable:!0},cause:{enumerable:!0,value:void 0,writable:!0},code:{enumerable:!0,value:void 0,writable:!0},message:{enumerable:!0,value:void 0,writable:!0},name:{enumerable:!0,value:void 0,writable:!0},raw:{enumerable:!1,get(){return this[i]},set(e){this[i]=e}},stack:{enumerable:!0,value:void 0,writable:!0}});Object.defineProperty(l,i,{value:{},writable:!0});const b=l;var m=Object.defineProperty,v=s((e,r)=>m(e,"name",{value:r,configurable:!0}),"c");const c=v((e,r={})=>{e[n]=void 0;const o=Object.create(b);o.name=Object.prototype.toString.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,o.message=e.message,o.stack=e.stack,Array.isArray(e.errors)&&(o.aggregateErrors=e.errors.map(t=>c(t,r))),e.cause instanceof Error&&!Object.prototype.hasOwnProperty.call(e.cause,n)&&(o.cause=c(e.cause,r));for(const t in e)if(o[t]===void 0){const a=e[t];if(a instanceof Error)Object.prototype.hasOwnProperty.call(a,n)||(o[t]=c(a,r));else if(typeof a=="function")o[t]="[Function: "+(a.name||"anonymous");else try{o[t]=a}catch{}}return delete e[n],o.raw=e,o},"errorWithCauseSerializer");var p=Object.defineProperty,y=s((e,r)=>p(e,"name",{value:r,configurable:!0}),"o");class f{static{s(this,"i")}static{y(this,"ErrorProcessor")}_options;constructor(r={}){this._options={maxDepth:Number.POSITIVE_INFINITY,useToJSON:!0,...r}}process(r){return r.error&&(r.error=c(r.error,this._options)),r}}const d=f;export{d as L};
@@ -1,5 +1,5 @@
1
1
  import { stringify } from 'safe-stable-stringify';
2
- import { a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions, M as Meta, d as LoggerTypesConfig, e as LiteralUnion, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter } from './types-DrhFTME0.cjs';
2
+ import { a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions, M as Meta, d as LoggerTypesConfig, e as LiteralUnion, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter } from './pail.DrhFTME0.mjs';
3
3
 
4
4
  declare class PailBrowserImpl<T extends string = never, L extends string = never> {
5
5
  protected timersMap: Map<string, number>;
@@ -0,0 +1,21 @@
1
+ var ED=Object.defineProperty;var E=(D,u)=>ED(D,"name",{value:u,configurable:!0});import b,{stdout as CD,stderr as tD}from"node:process";import rD,{red as nD,grey as f,cyan as BD,underline as M,bold as sD,white as iD,bgGrey as oD}from"@visulima/colorize";import{execFileSync as aD}from"node:child_process";import w from"node:fs";import AD from"node:tty";import{A as lD,o as cD}from"./pail.D3wUM96H.mjs";import{o as fD}from"./pail.BP9NvmFd.mjs";const q=80,H=24,L=E((D,u,{shell:F,env:e}={})=>aD(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),x=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),J=E((D,u)=>{const{columns:F,rows:e}=x(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===q&&e===H))return{columns:F,rows:e}},"createIfNotDefault");function gD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return x(u.columns,u.rows);if(F?.columns&&F?.rows)return x(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return x(D.COLUMNS,D.LINES);const e={columns:q,rows:H};return b.platform==="win32"?T()??e:b.platform==="darwin"?G()??T()??e:G()??T()??hD()??e}E(gD,"terminalSize");const G=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=AD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),T=E(()=>{try{const D=L("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=L("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return J(D,u)}catch{}},"tput"),hD=E(()=>{try{const D=L("resize",["-u"]).match(/\d+/g);if(D.length===2)return J(D[0],D[1])}catch{}},"resize");function pD({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}E(pD,"ansiRegex");const dD=pD();function R(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(dD,"")}E(R,"stripAnsi");function mD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(mD,"isAmbiguous");function bD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(bD,"isFullWidth");function yD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(yD,"isWide");function wD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(wD,"validate");function xD(D,{ambiguousAsWide:u=!1}={}){return wD(D),bD(D)||yD(D)||u&&mD(D)?2:1}E(xD,"eastAsianWidth");const vD=E(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex"),SD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=R(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of SD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(vD().test(r)){t+=2;continue}t+=xD(C,B)}}return t}E(y,"stringWidth");const $=10,U=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),K=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),Y=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(n.modifier);const ND=Object.keys(n.color),_D=Object.keys(n.bgColor);[...ND,..._D];function TD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=U(),n.color.ansi256=K(),n.color.ansi16m=Y(),n.bgColor.ansi=U($),n.bgColor.ansi256=K($),n.bgColor.ansi16m=Y($),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(TD,"assembleStyles");const $D=TD(),S=new Set(["\x1B","›"]),jD=39,k="\x07",Q="[",OD="]",X="m",v=`${OD}8;;`,Z=E(D=>`${S.values().next().value}${Q}${D}${X}`,"wrapAnsiCode"),V=E(D=>`${S.values().next().value}${v}${D}${k}`,"wrapAnsiHyperlink"),ID=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),j=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(R(D.at(-1)));for(const[C,o]of e.entries()){const A=y(o);if(r+A<=F?D[D.length-1]+=o:(D.push(o),r=0),S.has(o)&&(t=!0,B=e.slice(C+1,C+1+v.length).join("")===v),t){B?o===k&&(t=!1,B=!1):o===X&&(t=!1);continue}r+=A,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),MD=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),LD=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=ID(D);let C=[""];for(const[i,l]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let a=y(C.at(-1));if(i!==0&&(a>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),a=0),(a>0||F.trim===!1)&&(C[C.length-1]+=" ",a++)),F.hard&&r[i]>u){const c=u-a,p=1+Math.floor((r[i]-c-1)/u);Math.floor((r[i]-1)/u)<p&&C.push(""),j(C,l,u);continue}if(a+r[i]>u&&a>0&&r[i]>0){if(F.wordWrap===!1&&a<u){j(C,l,u);continue}C.push("")}if(a+r[i]>u&&F.wordWrap===!1){j(C,l,u);continue}C[C.length-1]+=l}F.trim!==!1&&(C=C.map(i=>MD(i)));const o=C.join(`
2
+ `),A=[...o];let g=0;for(const[i,l]of A.entries()){if(e+=l,S.has(l)){const{groups:c}=new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${v}(?<uri>.*)${k})`).exec(o.slice(g))||{groups:{}};if(c.code!==void 0){const p=Number.parseFloat(c.code);t=p===jD?void 0:p}else c.uri!==void 0&&(B=c.uri.length===0?void 0:c.uri)}const a=$D.codes.get(Number(t));A[i+1]===`
3
+ `?(B&&(e+=V("")),t&&a&&(e+=Z(a))):l===`
4
+ `&&(t&&a&&(e+=Z(t)),B&&(e+=V(B))),g+=l.length}return e},"exec");function DD(D,u,F){return String(D).normalize().replaceAll(`\r
5
+ `,`
6
+ `).split(`
7
+ `).map(e=>LD(e,u,F)).join(`
8
+ `)}E(DD,"wrapAnsi");var RD=Object.defineProperty,kD=E((D,u)=>RD(D,"name",{value:u,configurable:!0}),"r");const WD=kD((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),PD=new Intl.Segmenter;function O(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=R(D)),D===""))return 0;let F=0;for(const e of PD.segment(D))F++;return F}E(O,"stringLength");var zD=Object.defineProperty,GD=E((D,u)=>zD(D,"name",{value:u,configurable:!0}),"o$1");const I=GD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+nD(B),": "],DD(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const o=r.split(`
9
+ `).splice(1).map(A=>F+A.trim().replace("file://","")).filter(A=>!A.includes("/pail/dist"));C.push(`
10
+ `,o.map(A=>" "+A.replace(/^at +/,g=>f(g)).replace(/\((.+)\)/,(g,i)=>"("+BD(i)+")")).join(`
11
+ `))}return C.join("")},"formatError");var UD=Object.defineProperty,KD=E((D,u)=>UD(D,"name",{value:u,configurable:!0}),"o");const YD=KD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?M(F):F,u.bold.label&&(F=sD(F)),F},"formatLabel");var ZD=Object.defineProperty,VD=E((D,u)=>ZD(D,"name",{value:u,configurable:!0}),"E");class qD extends lD{static{E(this,"q")}static{VD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=CD,this.#u=tD}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=gD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:o,groups:A,label:g,message:i,prefix:l,repeated:a,scope:c,suffix:p,traceError:N,type:uD}=u,{color:W}=this._loggerTypes[uD.name],P=W?rD[W]:iD,m=A.map(()=>" ").join(""),s=[];if(A.length>0&&s.push(m+f("["+A.at(-1)+"]")+" "),r&&s.push(f(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(P(t));else{const h=cD(this._loggerTypes);h.length>0&&s.push(f(".".repeat(h.length))+" ")}const z=fD(this._loggerTypes);g?s.push(P(YD(g,this._styles))+" ",f(".".repeat(z.length-O(g)))):s.push(f(".".repeat(z.length+2))),a&&s.push(oD.white("["+a+"x]")+" "),Array.isArray(c)&&c.length>0&&s.push(" "+f("["+c.join(" > ")+"]")+" "),l&&s.push(f((Array.isArray(c)&&c.length>0?". ":" ")+"["+(this._styles.underline.prefix?M(l):l)+"]")+" ");const _=O(s.join(" "));if(o){const h=o.name+(o.line?":"+o.line:""),d=O(h);d+_+2>e?s.push(f(" "+h)):s.push(f(".".repeat(e-_-d-2)+" "+h))}else s.push(f(".".repeat(e-_-1)));s.length>0&&s.push(`
12
+
13
+ `);const FD=typeof i=="string"?i:this._stringify(i);if(s.push(m+DD(FD??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0})),B){let h=!1;s.push(...B.map(d=>{if(d instanceof Error)return h=!0,`
14
+
15
+ `+I(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const eD=(h?`
16
+
17
+ `:" ")+d;return h=!1,eD}))}return C&&s.push(I(C,e,m)),N&&s.push(I(N,e,m,!0)),p&&s.push(`
18
+ `,m+f(this._styles.underline.suffix?M(p):p)),s.join("")+`
19
+ `}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
20
+ `),0):WD(u+`
21
+ `,t)}}const Eu=qD;export{Eu as a,YD as b,I as c,WD as n,O as s,gD as t,DD as w};
@@ -0,0 +1 @@
1
+ var g=Object.defineProperty;var s=(t,e)=>g(t,"name",{value:e,configurable:!0});import{L as i}from"./pail.BP9NvmFd.mjs";var n=Object.defineProperty,l=s((t,e)=>n(t,"name",{value:e,configurable:!0}),"r$1");const u=l(t=>{const e=Object.keys(t).map(r=>t[r].badge??"");return e.length===0?"":e.reduce((r,a)=>r.length>a.length?r:a)},"getLongestBadge");var c=Object.defineProperty,o=s((t,e)=>c(t,"name",{value:e,configurable:!0}),"r");const p=o(t=>[t.getHours(),t.getMinutes(),t.getSeconds()].map(e=>String(e).padStart(2,"0")).join(":"),"dateFormatter");class d{static{s(this,"AbstractPrettyReporter")}static{o(this,"AbstractPrettyReporter")}_styles;_loggerTypes;_stringify;constructor(e){this._styles={bold:{label:!1},dateFormatter:p,underline:{label:!1,message:!1,prefix:!1,suffix:!1},uppercase:{label:!1},...e},this._loggerTypes=i}setStringify(e){this._stringify=e}setLoggerTypes(e){this._loggerTypes=e}}export{d as A,u as o};
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var s=(l,t)=>n(l,"name",{value:t,configurable:!0});var a=Object.defineProperty,o=s((l,t)=>a(l,"name",{value:t,configurable:!0}),"r");class c{static{s(this,"o")}static{o(this,"AbstractJsonReporter")}stringify;setStringify(t){this.stringify=t}log(t){const{file:e,type:r,...i}=t;i.label&&(i.label=i.label.trim()),e&&(i.file=e.name+":"+e.line+(e.column?":"+e.column:"")),this._log(this.stringify(i),r.level)}}exports.o=c;
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var r=(o,e)=>n(o,"name",{value:e,configurable:!0});var a=Object.defineProperty,c=r((o,e)=>a(o,"name",{value:e,configurable:!0}),"o");const s=c(o=>o==="error"?console.__error??console.error:o==="warn"?console.__warn??console.warn:o==="trace"?console.__trace??console.trace:console.__log??console.log,"writeConsoleLogBasedOnLevel");export{s as a};