@visulima/pail 2.1.11 → 2.1.12
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.
- package/CHANGELOG.md +26 -0
- package/LICENSE.md +122 -0
- package/README.md +41 -41
- package/dist/index.browser.cjs +1 -1
- package/dist/index.server.cjs +4 -4
- package/dist/index.server.mjs +4 -4
- package/dist/packem_shared/CallerProcessor-BBHkvRgS.mjs +1 -0
- package/dist/packem_shared/CallerProcessor-CLoY9R76.cjs +1 -0
- package/dist/packem_shared/{JsonFileReporter-CMXak2Df.cjs → JsonFileReporter-CLEMnuGI.cjs} +1 -1
- package/dist/packem_shared/JsonReporter-CiQkPCv4.cjs +2 -0
- package/dist/packem_shared/JsonReporter-CjvkrXUp.cjs +1 -0
- package/dist/packem_shared/PrettyReporter-1SleqVaI.mjs +13 -0
- package/dist/packem_shared/{PrettyReporter-oX3tQP4v.mjs → PrettyReporter-C_AJrNOj.mjs} +1 -1
- package/dist/packem_shared/PrettyReporter-CldK9UpN.cjs +13 -0
- package/dist/packem_shared/PrettyReporter-CuJWFD0k.cjs +5 -0
- package/dist/packem_shared/SimpleReporter-Cy_0ZeXQ.cjs +11 -0
- package/dist/packem_shared/SimpleReporter-DzUWU5Gu.mjs +11 -0
- package/dist/packem_shared/abstract-json-reporter-Z6bVrpPK.cjs +1 -0
- package/dist/packem_shared/{abstract-pretty-reporter-B14XYOWC.cjs → abstract-pretty-reporter-CZb4ET-0.cjs} +1 -1
- package/dist/packem_shared/{constants-BBH2bwRB.cjs → constants-BFrKdBPm.cjs} +1 -1
- package/dist/packem_shared/format-label-B0BaeOry.cjs +8 -0
- package/dist/packem_shared/format-label-ECls2QEw.mjs +8 -0
- package/dist/packem_shared/pail.browser-tTEE0Aky.cjs +1 -0
- package/dist/processor.server.cjs +1 -1
- package/dist/processor.server.mjs +1 -1
- package/dist/reporter.browser.cjs +1 -1
- package/dist/reporter.browser.mjs +1 -1
- package/dist/reporter.server.cjs +1 -1
- package/dist/reporter.server.mjs +1 -1
- package/package.json +19 -19
- package/dist/packem_shared/CallerProcessor-BSnSafz5.cjs +0 -1
- package/dist/packem_shared/CallerProcessor-BkGBDPIm.mjs +0 -1
- package/dist/packem_shared/JsonReporter-Be-Pmt7o.cjs +0 -1
- package/dist/packem_shared/JsonReporter-i0KfkPd7.cjs +0 -2
- package/dist/packem_shared/PrettyReporter-C9CiOb6F.cjs +0 -5
- package/dist/packem_shared/PrettyReporter-LK4KD_vd.mjs +0 -13
- package/dist/packem_shared/PrettyReporter-TmVtQa5X.cjs +0 -13
- package/dist/packem_shared/SimpleReporter-CbzX9MBa.cjs +0 -11
- package/dist/packem_shared/SimpleReporter-ghIIUjNT.mjs +0 -11
- package/dist/packem_shared/abstract-json-reporter-CjTo97r_.cjs +0 -1
- package/dist/packem_shared/format-label-mKzVo7-U.mjs +0 -8
- package/dist/packem_shared/format-label-v7wmniOZ.cjs +0 -8
- package/dist/packem_shared/pail.browser-BL-yRzuj.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## @visulima/pail [2.1.12](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.11...@visulima/pail@2.1.12) (2024-12-12)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* allow node v23 ([8ca929a](https://github.com/visulima/visulima/commit/8ca929af311ce8036cbbfde68b6db05381b860a5))
|
|
6
|
+
* allowed node 23, updated dev dependencies ([f99d34e](https://github.com/visulima/visulima/commit/f99d34e01f6b13be8586a1b5d37dc8b8df0a5817))
|
|
7
|
+
* updated packem to v1.8.2 ([23f869b](https://github.com/visulima/visulima/commit/23f869b4120856cc97e2bffa6d508e2ae30420ea))
|
|
8
|
+
* updated packem to v1.9.2 ([47bdc2d](https://github.com/visulima/visulima/commit/47bdc2dfaeca4e7014dbe7772eae2fdf8c8b35bb))
|
|
9
|
+
|
|
10
|
+
### Styles
|
|
11
|
+
|
|
12
|
+
* cs fixes ([46d31e0](https://github.com/visulima/visulima/commit/46d31e082e1865262bf380859c14fabd28ff456d))
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* updated dev dependencies ([a916944](https://github.com/visulima/visulima/commit/a916944b888bb34c34b0c54328b38d29e4399857))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* **@visulima/colorize:** upgraded to 1.4.13
|
|
22
|
+
* **@visulima/error:** upgraded to 4.4.8
|
|
23
|
+
* **@visulima/fmt:** upgraded to 1.1.12
|
|
24
|
+
* **@visulima/inspector:** upgraded to 1.0.13
|
|
25
|
+
* **@visulima/redact:** upgraded to 1.0.10
|
|
26
|
+
|
|
1
27
|
## @visulima/pail [2.1.11](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.10...@visulima/pail@2.1.11) (2024-10-05)
|
|
2
28
|
|
|
3
29
|
|
package/LICENSE.md
CHANGED
|
@@ -203,4 +203,126 @@ License: (MIT OR CC0-1.0)
|
|
|
203
203
|
By: Sindre Sorhus
|
|
204
204
|
Repository: sindresorhus/type-fest
|
|
205
205
|
|
|
206
|
+
> Creative Commons Legal Code
|
|
207
|
+
>
|
|
208
|
+
> CC0 1.0 Universal
|
|
209
|
+
>
|
|
210
|
+
> CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
211
|
+
> LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
212
|
+
> ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
213
|
+
> INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
214
|
+
> REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
215
|
+
> PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
216
|
+
> THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
217
|
+
> HEREUNDER.
|
|
218
|
+
>
|
|
219
|
+
> Statement of Purpose
|
|
220
|
+
>
|
|
221
|
+
> The laws of most jurisdictions throughout the world automatically confer
|
|
222
|
+
> exclusive Copyright and Related Rights (defined below) upon the creator
|
|
223
|
+
> and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
224
|
+
> authorship and/or a database (each, a "Work").
|
|
225
|
+
>
|
|
226
|
+
> Certain owners wish to permanently relinquish those rights to a Work for
|
|
227
|
+
> the purpose of contributing to a commons of creative, cultural and
|
|
228
|
+
> scientific works ("Commons") that the public can reliably and without fear
|
|
229
|
+
> of later claims of infringement build upon, modify, incorporate in other
|
|
230
|
+
> works, reuse and redistribute as freely as possible in any form whatsoever
|
|
231
|
+
> and for any purposes, including without limitation commercial purposes.
|
|
232
|
+
> These owners may contribute to the Commons to promote the ideal of a free
|
|
233
|
+
> culture and the further production of creative, cultural and scientific
|
|
234
|
+
> works, or to gain reputation or greater distribution for their Work in
|
|
235
|
+
> part through the use and efforts of others.
|
|
236
|
+
>
|
|
237
|
+
> For these and/or other purposes and motivations, and without any
|
|
238
|
+
> expectation of additional consideration or compensation, the person
|
|
239
|
+
> associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
240
|
+
> is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
241
|
+
> elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
242
|
+
> terms, with knowledge of his or her Copyright and Related Rights in the
|
|
243
|
+
> Work and the meaning and intended legal effect of CC0 on those rights.
|
|
244
|
+
>
|
|
245
|
+
> 1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
246
|
+
> protected by copyright and related or neighboring rights ("Copyright and
|
|
247
|
+
> Related Rights"). Copyright and Related Rights include, but are not
|
|
248
|
+
> limited to, the following:
|
|
249
|
+
>
|
|
250
|
+
> i. the right to reproduce, adapt, distribute, perform, display,
|
|
251
|
+
> communicate, and translate a Work;
|
|
252
|
+
> ii. moral rights retained by the original author(s) and/or performer(s);
|
|
253
|
+
> iii. publicity and privacy rights pertaining to a person's image or
|
|
254
|
+
> likeness depicted in a Work;
|
|
255
|
+
> iv. rights protecting against unfair competition in regards to a Work,
|
|
256
|
+
> subject to the limitations in paragraph 4(a), below;
|
|
257
|
+
> v. rights protecting the extraction, dissemination, use and reuse of data
|
|
258
|
+
> in a Work;
|
|
259
|
+
> vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
260
|
+
> European Parliament and of the Council of 11 March 1996 on the legal
|
|
261
|
+
> protection of databases, and under any national implementation
|
|
262
|
+
> thereof, including any amended or successor version of such
|
|
263
|
+
> directive); and
|
|
264
|
+
> vii. other similar, equivalent or corresponding rights throughout the
|
|
265
|
+
> world based on applicable law or treaty, and any national
|
|
266
|
+
> implementations thereof.
|
|
267
|
+
>
|
|
268
|
+
> 2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
269
|
+
> of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
270
|
+
> irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
271
|
+
> Affirmer's Copyright and Related Rights and associated claims and causes
|
|
272
|
+
> of action, whether now known or unknown (including existing as well as
|
|
273
|
+
> future claims and causes of action), in the Work (i) in all territories
|
|
274
|
+
> worldwide, (ii) for the maximum duration provided by applicable law or
|
|
275
|
+
> treaty (including future time extensions), (iii) in any current or future
|
|
276
|
+
> medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
277
|
+
> including without limitation commercial, advertising or promotional
|
|
278
|
+
> purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
279
|
+
> member of the public at large and to the detriment of Affirmer's heirs and
|
|
280
|
+
> successors, fully intending that such Waiver shall not be subject to
|
|
281
|
+
> revocation, rescission, cancellation, termination, or any other legal or
|
|
282
|
+
> equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
283
|
+
> as contemplated by Affirmer's express Statement of Purpose.
|
|
284
|
+
>
|
|
285
|
+
> 3. Public License Fallback. Should any part of the Waiver for any reason
|
|
286
|
+
> be judged legally invalid or ineffective under applicable law, then the
|
|
287
|
+
> Waiver shall be preserved to the maximum extent permitted taking into
|
|
288
|
+
> account Affirmer's express Statement of Purpose. In addition, to the
|
|
289
|
+
> extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
290
|
+
> person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
291
|
+
> irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
292
|
+
> Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
293
|
+
> maximum duration provided by applicable law or treaty (including future
|
|
294
|
+
> time extensions), (iii) in any current or future medium and for any number
|
|
295
|
+
> of copies, and (iv) for any purpose whatsoever, including without
|
|
296
|
+
> limitation commercial, advertising or promotional purposes (the
|
|
297
|
+
> "License"). The License shall be deemed effective as of the date CC0 was
|
|
298
|
+
> applied by Affirmer to the Work. Should any part of the License for any
|
|
299
|
+
> reason be judged legally invalid or ineffective under applicable law, such
|
|
300
|
+
> partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
301
|
+
> of the License, and in such case Affirmer hereby affirms that he or she
|
|
302
|
+
> will not (i) exercise any of his or her remaining Copyright and Related
|
|
303
|
+
> Rights in the Work or (ii) assert any associated claims and causes of
|
|
304
|
+
> action with respect to the Work, in either case contrary to Affirmer's
|
|
305
|
+
> express Statement of Purpose.
|
|
306
|
+
>
|
|
307
|
+
> 4. Limitations and Disclaimers.
|
|
308
|
+
>
|
|
309
|
+
> a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
310
|
+
> surrendered, licensed or otherwise affected by this document.
|
|
311
|
+
> b. Affirmer offers the Work as-is and makes no representations or
|
|
312
|
+
> warranties of any kind concerning the Work, express, implied,
|
|
313
|
+
> statutory or otherwise, including without limitation warranties of
|
|
314
|
+
> title, merchantability, fitness for a particular purpose, non
|
|
315
|
+
> infringement, or the absence of latent or other defects, accuracy, or
|
|
316
|
+
> the present or absence of errors, whether or not discoverable, all to
|
|
317
|
+
> the greatest extent permissible under applicable law.
|
|
318
|
+
> c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
319
|
+
> that may apply to the Work or any use thereof, including without
|
|
320
|
+
> limitation any person's Copyright and Related Rights in the Work.
|
|
321
|
+
> Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
322
|
+
> consents, permissions or other rights required for any use of the
|
|
323
|
+
> Work.
|
|
324
|
+
> d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
325
|
+
> party to this document and has no duty or obligation with respect to
|
|
326
|
+
> this CC0 or use of the Work.
|
|
327
|
+
|
|
206
328
|
<!-- /TYPE_DEPENDENCIES -->
|
package/README.md
CHANGED
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
|
|
37
37
|
## Why Pail?
|
|
38
38
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
39
|
+
- Easy to use
|
|
40
|
+
- Hackable to the core
|
|
41
|
+
- Integrated timers
|
|
42
|
+
- Custom pluggable processors and reporters
|
|
43
|
+
- TypeScript support
|
|
44
|
+
- Interactive and regular modes
|
|
45
|
+
- Secrets & sensitive information filtering
|
|
46
|
+
- Filename, date and timestamp support
|
|
47
|
+
- Scoped loggers and timers
|
|
48
|
+
- Scaled logging levels mechanism
|
|
49
|
+
- String interpolation support
|
|
50
|
+
- Object and error interpolation
|
|
51
|
+
- Stack trace and pretty errors
|
|
52
|
+
- Simple and minimal syntax
|
|
53
|
+
- Spam prevention by throttling logs
|
|
54
|
+
- [Browser](./__assets__/header-browser.png) and [Server](./__assets__/header-server.png) support
|
|
55
|
+
- Redirect console and stdout/stderr to pail and easily restore redirect.
|
|
56
|
+
- `Pretty` or `JSON` output
|
|
57
|
+
- CJS & ESM with tree shaking support
|
|
58
|
+
- Supports circular structures
|
|
59
|
+
- Fast and powerful, see the [benchmarks](__bench__/README.md)
|
|
60
60
|
|
|
61
61
|
## Install
|
|
62
62
|
|
|
@@ -81,23 +81,23 @@ pnpm add @visulima/pail
|
|
|
81
81
|
|
|
82
82
|
Pail supports the logging levels described by [RFC 5424][rfc-5424].
|
|
83
83
|
|
|
84
|
-
-
|
|
84
|
+
- `DEBUG`: Detailed debug information.
|
|
85
85
|
|
|
86
|
-
-
|
|
86
|
+
- `INFO`: Interesting events. Examples: User logs in, SQL logs.
|
|
87
87
|
|
|
88
|
-
-
|
|
88
|
+
- `NOTICE`: Normal but significant events.
|
|
89
89
|
|
|
90
|
-
-
|
|
90
|
+
- `TRACE`: Very detailed and fine-grained informational events.
|
|
91
91
|
|
|
92
|
-
-
|
|
92
|
+
- `WARNING`: Exceptional occurrences that are not errors. Examples: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
|
|
93
93
|
|
|
94
|
-
-
|
|
94
|
+
- `ERROR`: Runtime errors that do not require immediate action but should typically be logged and monitored.
|
|
95
95
|
|
|
96
|
-
-
|
|
96
|
+
- `CRITICAL`: Critical conditions. Example: Application component unavailable, unexpected exception.
|
|
97
97
|
|
|
98
|
-
-
|
|
98
|
+
- `ALERT`: Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
|
|
99
99
|
|
|
100
|
-
-
|
|
100
|
+
- `EMERGENCY`: Emergency: system is unusable.
|
|
101
101
|
|
|
102
102
|
### Reporters
|
|
103
103
|
|
|
@@ -119,13 +119,13 @@ A processor can be added to a logger directly (and is subsequently applied to lo
|
|
|
119
119
|
|
|
120
120
|
`pail` comes with a few built-in processors:
|
|
121
121
|
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
122
|
+
- `CallerProcessor` - adds the caller information to the log message
|
|
123
|
+
- The Meta Object is extended with a file name, line number and column number
|
|
124
|
+
- `RedactProcessor` - redacts sensitive information from the log message
|
|
125
125
|
> The redact processor needs the "@visulima/redact" package to work.
|
|
126
126
|
> Use `npm install @visulima/redact`, `pnpm add @visulima/redact` or `yarn add @visulima/redact` to install it.
|
|
127
|
-
-
|
|
128
|
-
-
|
|
127
|
+
- `MessageFormatterProcessor` - formats the log message (Util.format-like unescaped string formatting utility) [@visulima/fmt][fmt]
|
|
128
|
+
- `ErrorProcessor` - serializes the error with cause object to a std error object that can be serialized.
|
|
129
129
|
|
|
130
130
|
## Usage
|
|
131
131
|
|
|
@@ -397,17 +397,17 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
397
397
|
|
|
398
398
|
## Credits
|
|
399
399
|
|
|
400
|
-
-
|
|
401
|
-
-
|
|
400
|
+
- [Daniel Bannert](https://github.com/prisis)
|
|
401
|
+
- [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
|
|
402
402
|
|
|
403
403
|
## About
|
|
404
404
|
|
|
405
405
|
### Related Projects
|
|
406
406
|
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
407
|
+
- [pino](https://github.com/pinojs/pino) - 🌲 super fast, all natural json logger
|
|
408
|
+
- [winston](https://github.com/winstonjs/winston) - A logger for just about everything.
|
|
409
|
+
- [signale](https://github.com/klaudiosinani/signale) - Highly configurable logging utility
|
|
410
|
+
- [consola](https://github.com/unjs/consola) - 🐨 Elegant Console Logger for Node.js and Browser
|
|
411
411
|
|
|
412
412
|
## License
|
|
413
413
|
|
package/dist/index.browser.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./packem_shared/pail.browser-tTEE0Aky.cjs"),s=require("./packem_shared/MessageFormatterProcessor-CCRIUIdT.cjs"),c=require("./packem_shared/JsonReporter-CjvkrXUp.cjs");var l=Object.defineProperty,n=a((e,r)=>l(e,"name",{value:r,configurable:!0}),"e");const t=n(e=>new i.P({processors:[new s],reporters:[new c],...e}),"createPail"),p=t();exports.createPail=t;exports.pail=p;
|
package/dist/index.server.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("node:process"),f=require("./packem_shared/format-label-B0BaeOry.cjs"),$=require("node:string_decoder"),I=require("./packem_shared/pail.browser-tTEE0Aky.cjs"),g=require("@visulima/inspector"),P=require("./packem_shared/constants-BFrKdBPm.cjs"),j=require("./packem_shared/write-stream-Bgxqp0HI.cjs"),O=require("./packem_shared/MessageFormatterProcessor-CCRIUIdT.cjs"),M=require("./packem_shared/PrettyReporter-CldK9UpN.cjs");var R=Object.defineProperty,q=n((r,t)=>R(r,"name",{value:t,configurable:!0}),"l$1");let A=class{static{n(this,"v")}static{q(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=f.O(),u=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-u,d=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,f.T(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),u<d&&(o=o.slice(d-u+1))):l&&a.erase(l),a.write(o.join(`
|
|
2
2
|
`)+`
|
|
3
|
-
`),this.#s=d?d+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var T=Object.defineProperty,y=n((r,t)=>T(r,"name",{value:t,configurable:!0}),"n$1");const c="\x1B[",
|
|
4
|
-
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(
|
|
5
|
-
`),0):
|
|
3
|
+
`),this.#s=d?d+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var T=Object.defineProperty,y=n((r,t)=>T(r,"name",{value:t,configurable:!0}),"n$1");const c="\x1B[",w=c+"2J",x=c+"2K",N=c+"G",D=y((r=1)=>c+r+"A","cursorUp"),m=process.platform==="win32"?`${w}${c}0f`:`${w}${c}3J${c}H`,k=c+"?25l",B=c+"?25h",G=y(r=>{let t="";for(let e=0;e<r;e++)t+=x+(e<r-1?D():"");return r&&(t+=N),t},"eraseLines");var H=Object.defineProperty,V=n((r,t)=>H(r,"name",{value:t,configurable:!0}),"s$1");class v{static{n(this,"t")}static{V(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new $.StringDecoder;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(k),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),v.DRAIN}}erase(t){t>0&&this.write(G(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
|
|
4
|
+
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(B)}write(t){this.#r.apply(this.#s,[t])}}var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"c");let U=class{static{n(this,"v")}static{J(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=h.stdout,this.#e=h.stderr,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==P.E){const o=typeof a=="string"?a:g.inspect(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+g.inspect(o,this.#i):" "+o));const u=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=u==="stderr"?this.#e:this.#t,d=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(u,(d+i.join("")).split(`
|
|
5
|
+
`),0):j.n(d+i.join(""),l)}};var F=Object.defineProperty,K=n((r,t)=>F(r,"name",{value:t,configurable:!0}),"a$1");class W extends I.a{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...u}=t;super(u),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new A(new v(this.stdout),new v(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new U)}static{K(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(m),this.stderr.write(m)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Y=W;var z=Object.defineProperty,S=n((r,t)=>z(r,"name",{value:t,configurable:!0}),"o");const Q=S(()=>h.env.NODE_ENV==="debug"||h.env.DEBUG!==void 0?"debug":h.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),_=S(r=>{let t=Q();return h.env.PAIL_LOG_LEVEL!==void 0&&(t=h.env.PAIL_LOG_LEVEL),new Y({logLevel:t,processors:[new O],reporters:[new M.PrettyReporter],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),X=_();exports.createPail=_;exports.pail=X;
|
package/dist/index.server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var L=Object.defineProperty;var n=(r,t)=>L(r,"name",{value:t,configurable:!0});import{stdout as m,stderr as y,env as d}from"node:process";import{
|
|
1
|
+
var L=Object.defineProperty;var n=(r,t)=>L(r,"name",{value:t,configurable:!0});import{stdout as m,stderr as y,env as d}from"node:process";import{O as I,T as $}from"./packem_shared/format-label-ECls2QEw.mjs";import{StringDecoder as O}from"node:string_decoder";import{a as j}from"./packem_shared/pail.browser-D7k9K5zt.mjs";import{inspect as v}from"@visulima/inspector";import{E as M}from"./packem_shared/constants-BMS51p6Y.mjs";import{n as P}from"./packem_shared/write-stream-C17GXSxA.mjs";import R from"./packem_shared/MessageFormatterProcessor-D_XajTuK.mjs";import{PrettyReporter as x}from"./packem_shared/PrettyReporter-1SleqVaI.mjs";var A=Object.defineProperty,T=n((r,t)=>A(r,"name",{value:t,configurable:!0}),"l$1");let N=class{static{n(this,"v")}static{T(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=I(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-c,u=Math.max(l-i,this.outside);let o=e.reduce((b,E)=>[...b,$(E,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),c<u&&(o=o.slice(u-c+1))):l&&a.erase(l),a.write(o.join(`
|
|
2
2
|
`)+`
|
|
3
|
-
`),this.#s=
|
|
4
|
-
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(V)}write(t){this.#r.apply(this.#s,[t])}}var U=Object.defineProperty,
|
|
5
|
-
`),0):P(
|
|
3
|
+
`),this.#s=u?u+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var D=Object.defineProperty,S=n((r,t)=>D(r,"name",{value:t,configurable:!0}),"n$1");const h="\x1B[",w=h+"2J",B=h+"2K",k=h+"G",G=S((r=1)=>h+r+"A","cursorUp"),g=process.platform==="win32"?`${w}${h}0f`:`${w}${h}3J${h}H`,H=h+"?25l",V=h+"?25h",Y=S(r=>{let t="";for(let e=0;e<r;e++)t+=B+(e<r-1?G():"");return r&&(t+=k),t},"eraseLines");var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"s$1");class f{static{n(this,"t")}static{J(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new O;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(H),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),f.DRAIN}}erase(t){t>0&&this.write(Y(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
|
|
4
|
+
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(V)}write(t){this.#r.apply(this.#s,[t])}}var U=Object.defineProperty,K=n((r,t)=>U(r,"name",{value:t,configurable:!0}),"c");let W=class{static{n(this,"v")}static{K(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=m,this.#e=y,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==M){const o=typeof a=="string"?a:v(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+v(o,this.#i):" "+o));const c=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=c==="stderr"?this.#e:this.#t,u=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(c,(u+i.join("")).split(`
|
|
5
|
+
`),0):P(u+i.join(""),l)}};var q=Object.defineProperty,z=n((r,t)=>q(r,"name",{value:t,configurable:!0}),"a$1");class F extends j{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...c}=t;super(c),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new N(new f(this.stdout),new f(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new W)}static{z(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(g),this.stderr.write(g)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Q=F;var X=Object.defineProperty,_=n((r,t)=>X(r,"name",{value:t,configurable:!0}),"o");const Z=_(()=>d.NODE_ENV==="debug"||d.DEBUG!==void 0?"debug":d.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),tt=_(r=>{let t=Z();return d.PAIL_LOG_LEVEL!==void 0&&(t=d.PAIL_LOG_LEVEL),new Q({logLevel:t,processors:[new R],reporters:[new x],stderr:y,stdout:m,...r})},"createPail"),dt=tt();export{tt as createPail,dt as pail};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var n=(a,e)=>t(a,"name",{value:e,configurable:!0});var u=Object.defineProperty,c=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"u");const o=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(i,r)=>{const m=r.slice(1);return e=m,m};const l=e.reduce((i,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||i.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),i),[])[0];return l?{columnNumber:l.columnNumber??void 0,fileName:l.fileName,lineNumber:l.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var s=Object.defineProperty,N=n((a,e)=>s(a,"name",{value:e,configurable:!0}),"r");class f{static{n(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:l,fileName:i,lineNumber:r}=o();return e.file={column:l,line:r,name:i},e}}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=Object.defineProperty;var n=(a,e)=>t(a,"name",{value:e,configurable:!0});var u=Object.defineProperty,c=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"u");const o=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(i,r)=>{const m=r.slice(1);return e=m,m};const l=e.reduce((i,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||i.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),i),[])[0];return l?{columnNumber:l.columnNumber??void 0,fileName:l.fileName,lineNumber:l.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var s=Object.defineProperty,N=n((a,e)=>s(a,"name",{value:e,configurable:!0}),"r");class b{static{n(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:l,fileName:i,lineNumber:r}=o();return e.file={column:l,line:r,name:i},e}}module.exports=b;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./abstract-json-reporter-
|
|
1
|
+
"use strict";var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./abstract-json-reporter-Z6bVrpPK.cjs");var h=Object.defineProperty,c=s((e,t)=>h(e,"name",{value:t,configurable:!0}),"e");class l{static{s(this,"n")}static{c(this,"SafeStreamHandler")}#t=!0;#e;#i;constructor(t,i){this.#e=t,this.#i=i}write(t){this.writeStream(t)}end(...t){this.#e.end(...t)}get isReady(){return this.#t}writeStream(t){if(!this.#t){console.warn("Stream busy: "+this.#i+'. Write will be dropped: "'+t+'"');return}this.#t=!1,this.#e.on("error",i=>{throw i}),this.#e.on("drain",()=>{this.#t=!0}),this.#e.on("finish",()=>{this.#t=!0}),this.#t=this.#e.write(t,()=>{})}}var d=Object.defineProperty,m=s((e,t)=>d(e,"name",{value:t,configurable:!0}),"r$1");class u{static{s(this,"o")}static{m(this,"RotatingFileStream")}#t;#e;#i;#s;#r;constructor(t,i=!1,r={}){if(this.#t=t,this.#e=i,this.#s=r,!this.#e){try{this.#r=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#i=this.#r(this.#t,r)}}write(t){let i=this.#i;this.#e&&(i=this.#r(this.#t,this.#s));const r=new l(i,this.#t);r.write(t),this.#e&&r.end()}end(){this.#i!==void 0&&this.#i.end()}}var p=Object.defineProperty,w=s((e,t)=>p(e,"name",{value:t,configurable:!0}),"r");class f extends o.A{static{s(this,"JsonFileReporter")}static{w(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:i,writeImmediately:r=!1,...a}=t;this.stream=new u(i,r,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(t){this.stream.write(t+`
|
|
2
2
|
`)}}exports.JsonFileReporter=f;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var e=(r,t)=>n(r,"name",{value:t,configurable:!0});const s=require("node:process"),a=require("./write-stream-Bgxqp0HI.cjs"),c=require("./abstract-json-reporter-Z6bVrpPK.cjs");var u=Object.defineProperty,d=e((r,t)=>u(r,"name",{value:t,configurable:!0}),"e");class h extends c.A{static{e(this,"d")}static{d(this,"JsonReporter")}#t;#r;constructor(t={}){super(t),this.#t=s.stdout,this.#r=s.stderr}setStdout(t){this.#t=t}setStderr(t){this.#r=t}_log(t,i){const o=["error","warn"].includes(i)?this.#r:this.#t;a.n(t+`
|
|
2
|
+
`,o)}}module.exports=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});const a=require("./write-console-log-3G15muTS.cjs"),c=require("./abstract-json-reporter-Z6bVrpPK.cjs");var n=Object.defineProperty,i=t((r,e)=>n(r,"name",{value:e,configurable:!0}),"e");class u extends c.A{static{t(this,"p")}static{i(this,"JsonReporter")}constructor(e={}){super(e)}_log(e,s){a.t(s)(e)}}module.exports=u;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var R=Object.defineProperty;var x=(a,e)=>R(a,"name",{value:e,configurable:!0});import{stdout as B,stderr as F}from"node:process";import V,{green as Y,cyan as D,red as E,greenBright as G,grey as s,bgGrey as W,underline as k,white as q}from"@visulima/colorize";import{renderError as b}from"@visulima/error/error";import{inspect as L}from"@visulima/inspector";import{u as z,O as H,n as J,m as w,T as K}from"./format-label-ECls2QEw.mjs";import{E as N}from"./constants-BMS51p6Y.mjs";import{A as Q,s as U}from"./abstract-pretty-reporter-DgXRHEj-.mjs";import{s as X}from"./get-longest-label-4ISUsE2q.mjs";import{n as Z}from"./write-stream-C17GXSxA.mjs";var ee=Object.defineProperty,O=x((a,e)=>ee(a,"name",{value:e,configurable:!0}),"S");const T=O(a=>!/[\\/]pail[\\/]dist/.test(a),"pailFileFilter");class ue extends Q{static{x(this,"PrettyReporter")}static{O(this,"PrettyReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:n,inspect:i,...o}=e;super({uppercase:{label:!0,...o.uppercase},...o}),this.#i={...z,...i},this.#e={...n,color:{fileLine:Y,hint:D,marker:E,message:E,method:G,title:E}},this.#t=B,this.#r=F}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:n}=H();let i=n;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:o,context:j,date:u,error:v,file:c,groups:g,label:m,message:f,prefix:d,repeated:A,scope:l,suffix:y,traceError:M,type:C}=e,{color:S}=this._loggerTypes[C.name],P=S?V[S]:q,h=g.map(()=>" ").join(""),t=[];if(g.length>0&&t.push(h+s("["+g.at(-1)+"]")+" "),u&&t.push(s(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),o)t.push(P(o));else{const r=U(this._loggerTypes);r.length>0&&t.push(s(".".repeat(r.length))+" ")}const $=X(this._loggerTypes);m?t.push(P(J(m,this._styles))+" ",s(".".repeat($.length-w(m)))):t.push(s(".".repeat($.length+2))),A&&t.push(W.white("["+A+"x]")+" "),Array.isArray(l)&&l.length>0&&t.push(" "+s("["+l.join(" > ")+"]")+" "),d&&t.push(s((Array.isArray(l)&&l.length>0?". ":" ")+"["+(this._styles.underline.prefix?k(d):d)+"]")+" ");const _=w(t.join(" "));if(c){const r=c.name+(c.line?":"+c.line:""),p=w(r);p+_+2>i?t.push(s(" "+r)):t.push(s(".".repeat(i-_-p-2)+" "+r))}else t.push(s(".".repeat(i-_-1)));if(t.length>0&&t.push(`
|
|
2
|
+
|
|
3
|
+
`),f!==N){const r=typeof f=="string"?f:L(f,this.#i);t.push(h+K(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(j){let r=!1;t.push(...j.map(p=>{if(p instanceof Error)return r=!0,`
|
|
4
|
+
|
|
5
|
+
`+b(p,{...this.#e,filterStacktrace:T,prefix:h});if(typeof p=="object")return" "+L(p,this.#i);const I=(r?`
|
|
6
|
+
|
|
7
|
+
`:" ")+p;return r=!1,I}))}return v&&t.push(b(v,{...this.#e,filterStacktrace:T,prefix:h})),M&&t.push(`
|
|
8
|
+
|
|
9
|
+
`+b(M,{...this.#e,filterStacktrace:T,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:h})),y&&t.push(`
|
|
10
|
+
`,h+s(this._styles.underline.suffix?k(y):y)),t.join("")+`
|
|
11
|
+
`}_log(e,n){const i=["error","trace","warn"].includes(n)?"stderr":"stdout",o=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&o.isTTY?this.#s.update(i,e.split(`
|
|
12
|
+
`),0):Z(e+`
|
|
13
|
+
`,o)}}export{ue as PrettyReporter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var S=Object.defineProperty;var b=(h,i)=>S(h,"name",{value:i,configurable:!0});import Y,{
|
|
1
|
+
var S=Object.defineProperty;var b=(h,i)=>S(h,"name",{value:i,configurable:!0});import Y,{grey as o,white as M,underline as _,bold as $}from"@visulima/colorize/browser";import{format as r}from"@visulima/fmt";import{E}from"./constants-BMS51p6Y.mjs";import{A as O,s as k}from"./abstract-pretty-reporter-DgXRHEj-.mjs";import{s as B}from"./get-longest-label-4ISUsE2q.mjs";import{t as C}from"./write-console-log-BP95fgQZ.mjs";var D=Object.defineProperty,F=b((h,i)=>D(h,"name",{value:i,configurable:!0}),"A");class K extends O{static{b(this,"Y")}static{F(this,"PrettyReporter")}constructor(i={}){super({uppercase:{label:!0,...i.uppercase},...i})}log(i){const t=typeof window<"u"&&typeof window.document<"u",x=C(i.type.level),{badge:A,context:w,date:a,error:v,groups:f,label:g,message:P,prefix:y,repeated:u,scope:n,suffix:m,type:R}=i,{color:T}=this._loggerTypes[R.name],L=T?Y[T]:M,e=[];if(t&&f.length>0){const s=f.map(()=>" ").join(""),l=o("["+f.at(-1)+"]");e.push(r(s+l[0],l.slice(1)))}if(a){const s=o(this._styles.dateFormatter(typeof a=="string"?new Date(a):a));t?e.push(r(s[0],s.slice(1))):e.push([s[0]+" ",...s.slice(1)])}if(A){const s=L(A);t?e.push(r(s[0],s.slice(1))):e.push([s[0]+" ",...s.slice(1)])}else{const s=k(this._loggerTypes);if(s.length>0){const l=o(".".repeat(s.length));t?e.push(r(l[0]+" ",l.slice(1))):e.push([l[0]+" ",...l.slice(1)])}}const j=B(this._loggerTypes);let d;if(u){const s=M("["+u+"x]");d=t?r(s[0],s.slice(1)):[s[0],...s.slice(1)]}if(g){const s=L(this._formatLabel(g));t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]),d&&e.push(d);let l=j.length-g.length;if(u?l-=String(u).length+3:l+=1,l>0){const p=o(".".repeat(l));t?e.push(r(p[0],p.slice(1))):e.push([" "+p[0],...p.slice(1)])}}else{const s=o(".".repeat(j.length+1));t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(Array.isArray(n)&&n.length>0){const s=o("["+n.join(" > ")+"]");t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(y){const s=o((Array.isArray(n)&&n.length>0?". ":" ")+"["+(this._styles.underline.prefix?_(y):y)+"] ");t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(P!==E&&e.push(P),w&&e.push(...w),v&&e.push(v,`
|
|
2
2
|
|
|
3
3
|
`),m){const s=o(this._styles.underline.suffix?_(m):m);t?e.push(r(`
|
|
4
4
|
`+s[0],s.slice(1))):e.push([`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";var O=Object.defineProperty;var y=(s,r)=>O(s,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("node:process"),e=require("@visulima/colorize"),x=require("@visulima/error/error"),M=require("@visulima/inspector"),h=require("./format-label-B0BaeOry.cjs"),B=require("./constants-BFrKdBPm.cjs"),k=require("./abstract-pretty-reporter-CZb4ET-0.cjs"),F=require("./get-longest-label-DXpzhu5N.cjs"),V=require("./write-stream-Bgxqp0HI.cjs"),D=y(s=>s&&typeof s=="object"&&"default"in s?s.default:s,"_interopDefaultCompat"),G=D(e);var W=Object.defineProperty,C=y((s,r)=>W(s,"name",{value:r,configurable:!0}),"S");const j=C(s=>!/[\\/]pail[\\/]dist/.test(s),"pailFileFilter");class Y extends k.A{static{y(this,"PrettyReporter")}static{C(this,"PrettyReporter")}#r;#t;#s;#o=!1;#i;#e;constructor(r={}){const{error:l,inspect:o,...n}=r;super({uppercase:{label:!0,...n.uppercase},...n}),this.#i={...h.u,...o},this.#e={...l,color:{fileLine:e.green,hint:e.cyan,marker:e.red,message:e.red,method:e.greenBright,title:e.red}},this.#r=A.stdout,this.#t=A.stderr}setStdout(r){this.#r=r}setStderr(r){this.#t=r}setInteractiveManager(r){this.#s=r}setIsInteractive(r){this.#o=r}log(r){this._log(this._formatMessage(r),r.type.level)}_formatMessage(r){const{columns:l}=h.O();let o=l;typeof this._styles.messageLength=="number"&&(o=this._styles.messageLength);const{badge:n,context:q,date:g,error:w,file:c,groups:f,label:m,message:d,prefix:_,repeated:S,scope:u,suffix:b,traceError:v,type:R}=r,{color:T}=this._loggerTypes[R.name],L=T?G[T]:e.white,p=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(p+e.grey("["+f.at(-1)+"]")+" "),g&&t.push(e.grey(this._styles.dateFormatter(typeof g=="string"?new Date(g):g))+" "),n)t.push(L(n));else{const i=k.s(this._loggerTypes);i.length>0&&t.push(e.grey(".".repeat(i.length))+" ")}const P=F.s(this._loggerTypes);m?t.push(L(h.n(m,this._styles))+" ",e.grey(".".repeat(P.length-h.m(m)))):t.push(e.grey(".".repeat(P.length+2))),S&&t.push(e.bgGrey.white("["+S+"x]")+" "),Array.isArray(u)&&u.length>0&&t.push(" "+e.grey("["+u.join(" > ")+"]")+" "),_&&t.push(e.grey((Array.isArray(u)&&u.length>0?". ":" ")+"["+(this._styles.underline.prefix?e.underline(_):_)+"]")+" ");const E=h.m(t.join(" "));if(c){const i=c.name+(c.line?":"+c.line:""),a=h.m(i);a+E+2>o?t.push(e.grey(" "+i)):t.push(e.grey(".".repeat(o-E-a-2)+" "+i))}else t.push(e.grey(".".repeat(o-E-1)));if(t.length>0&&t.push(`
|
|
2
|
+
|
|
3
|
+
`),d!==B.E){const i=typeof d=="string"?d:M.inspect(d,this.#i);t.push(p+h.T(i,o-3,{hard:!0,trim:!1,wordWrap:!0}))}if(q){let i=!1;t.push(...q.map(a=>{if(a instanceof Error)return i=!0,`
|
|
4
|
+
|
|
5
|
+
`+x.renderError(a,{...this.#e,filterStacktrace:j,prefix:p});if(typeof a=="object")return" "+M.inspect(a,this.#i);const I=(i?`
|
|
6
|
+
|
|
7
|
+
`:" ")+a;return i=!1,I}))}return w&&t.push(x.renderError(w,{...this.#e,filterStacktrace:j,prefix:p})),v&&t.push(`
|
|
8
|
+
|
|
9
|
+
`+x.renderError(v,{...this.#e,filterStacktrace:j,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:p})),b&&t.push(`
|
|
10
|
+
`,p+e.grey(this._styles.underline.suffix?e.underline(b):b)),t.join("")+`
|
|
11
|
+
`}_log(r,l){const o=["error","trace","warn"].includes(l)?"stderr":"stdout",n=o==="stderr"?this.#t:this.#r;this.#o&&this.#s!==void 0&&n.isTTY?this.#s.update(o,r.split(`
|
|
12
|
+
`),0):V.n(r+`
|
|
13
|
+
`,n)}}exports.PrettyReporter=Y;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";var T=Object.defineProperty;var f=(n,i)=>T(n,"name",{value:i,configurable:!0});const l=require("@visulima/colorize/browser"),o=require("@visulima/fmt"),C=require("./constants-BFrKdBPm.cjs"),P=require("./abstract-pretty-reporter-CZb4ET-0.cjs"),D=require("./get-longest-label-DXpzhu5N.cjs"),S=require("./write-console-log-3G15muTS.cjs"),k=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),E=k(l);var F=Object.defineProperty,M=f((n,i)=>F(n,"name",{value:i,configurable:!0}),"A");class O extends P.A{static{f(this,"Y")}static{M(this,"PrettyReporter")}constructor(i={}){super({uppercase:{label:!0,...i.uppercase},...i})}log(i){const t=typeof window<"u"&&typeof window.document<"u",_=S.t(i.type.level),{badge:x,context:w,date:u,error:A,groups:g,label:y,message:q,prefix:d,repeated:h,scope:p,suffix:m,type:R}=i,{color:L}=this._loggerTypes[R.name],v=L?E[L]:l.white,s=[];if(t&&g.length>0){const e=g.map(()=>" ").join(""),r=l.grey("["+g.at(-1)+"]");s.push(o.format(e+r[0],r.slice(1)))}if(u){const e=l.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u));t?s.push(o.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(x){const e=v(x);t?s.push(o.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=P.s(this._loggerTypes);if(e.length>0){const r=l.grey(".".repeat(e.length));t?s.push(o.format(r[0]+" ",r.slice(1))):s.push([r[0]+" ",...r.slice(1)])}}const j=D.s(this._loggerTypes);let b;if(h){const e=l.white("["+h+"x]");b=t?o.format(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=v(this._formatLabel(y));t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),b&&s.push(b);let r=j.length-y.length;if(h?r-=String(h).length+3:r+=1,r>0){const c=l.grey(".".repeat(r));t?s.push(o.format(c[0],c.slice(1))):s.push([" "+c[0],...c.slice(1)])}}else{const e=l.grey(".".repeat(j.length+1));t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(p)&&p.length>0){const e=l.grey("["+p.join(" > ")+"]");t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(d){const e=l.grey((Array.isArray(p)&&p.length>0?". ":" ")+"["+(this._styles.underline.prefix?l.underline(d):d)+"] ");t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(q!==C.E&&s.push(q),w&&s.push(...w),A&&s.push(A,`
|
|
2
|
+
|
|
3
|
+
`),m){const e=l.grey(this._styles.underline.suffix?l.underline(m):m);t?s.push(o.format(`
|
|
4
|
+
`+e[0],e.slice(1))):s.push([`
|
|
5
|
+
`+e[0],...e.slice(1)])}if(t)_(...s);else{let e="";const r=[],c=[];for(const a of s)Array.isArray(a)&&a.length>1&&a[0].includes("%c")?(e+=a[0],r.push(...a.slice(1))):c.push(a);_(e+"%c",...r,"",...c)}}_formatLabel(i){let t=this._styles.uppercase.label?i.toUpperCase():i;return t=this._styles.underline.label?l.underline(t):t,this._styles.bold.label&&(t=l.bold(t)),t}}module.exports=O;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";var B=Object.defineProperty;var g=(s,e)=>B(s,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("node:process"),r=require("@visulima/colorize"),x=require("@visulima/error"),M=require("@visulima/inspector"),l=require("./format-label-B0BaeOry.cjs"),F=require("./constants-BFrKdBPm.cjs"),k=require("./abstract-pretty-reporter-CZb4ET-0.cjs"),P=require("./get-longest-label-DXpzhu5N.cjs"),V=require("./write-stream-Bgxqp0HI.cjs"),D=g(s=>s&&typeof s=="object"&&"default"in s?s.default:s,"_interopDefaultCompat"),W=D(r);var z=Object.defineProperty,R=g((s,e)=>z(s,"name",{value:e,configurable:!0}),"L");const E=R(s=>!/[\\/]pail[\\/]dist/.test(s),"pailFileFilter");class G extends k.A{static{g(this,"SimpleReporter")}static{R(this,"SimpleReporter")}#r;#t;#s;#o=!1;#i;#e;constructor(e={}){const{error:h,inspect:n,...o}=e;super({uppercase:{label:!0,...o.uppercase},...o}),this.#i={...l.u,indent:void 0,...n},this.#e={...h,color:{fileLine:r.green,hint:r.cyan,marker:r.red,message:r.red,method:r.greenBright,title:r.red}},this.#r=C.stdout,this.#t=C.stderr}setStdout(e){this.#r=e}setStderr(e){this.#t=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:h}=l.O();let n=h;typeof this._styles.messageLength=="number"&&(n=this._styles.messageLength);const{badge:o,context:S,date:u,error:v,file:c,groups:f,label:y,message:d,prefix:m,repeated:j,scope:_,suffix:b,traceError:q,type:I}=e,{color:w}=this._loggerTypes[I.name],L=w?W[w]:r.white,a=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(a+r.grey("["+f.at(-1)+"]")+" "),u&&t.push(r.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),o)t.push(r.bold(L(o)));else{const i=k.s(this._loggerTypes);i.length>0&&t.push(r.grey(" ".repeat(i.length)))}const T=P.s(this._loggerTypes);y?t.push(r.bold(L(l.n(y,this._styles)))+" "," ".repeat(T.length-l.m(y))):t.push(" ".repeat(T.length+1)),j&&t.push(r.bgGrey.white("["+j+"x]")+" "),Array.isArray(_)&&_.length>0&&t.push(r.grey("["+_.join(" > ")+"]")+" "),m&&t.push(r.grey("["+(this._styles.underline.prefix?r.underline(m):m)+"]")+" ");const O=l.m(t.join(""));if(d!==F.E){const i=typeof d=="string"?d:M.inspect(d,this.#i);t.push(a+l.T(i,n-3,{hard:!0,trim:!1,wordWrap:!0}))}if(S){let i=!1;t.push(...S.map(p=>{if(p instanceof Error)return i=!0,`
|
|
2
|
+
|
|
3
|
+
`+x.renderError(p,{...this.#e,filterStacktrace:E,prefix:a});if(typeof p=="object")return" "+M.inspect(p,this.#i);const A=(i?`
|
|
4
|
+
|
|
5
|
+
`:" ")+p;return i=!1,A}))}if(v&&t.push(x.renderError(v,{...this.#e,filterStacktrace:E,prefix:a})),q&&t.push(`
|
|
6
|
+
|
|
7
|
+
`+x.renderError(q,{...this.#e,filterStacktrace:E,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:a})),b&&t.push(" "+a+r.grey(this._styles.underline.suffix?r.underline(b):b)),c){const i=c.name+(c.line?":"+c.line:"");t.push(`
|
|
8
|
+
`,r.grey("Caller: ")," ".repeat(O-8),i,`
|
|
9
|
+
`)}return t.join("")}_log(e,h){const n=["error","trace","warn"].includes(h)?"stderr":"stdout",o=n==="stderr"?this.#t:this.#r;this.#o&&this.#s!==void 0&&o.isTTY?this.#s.update(n,e.split(`
|
|
10
|
+
`),0):V.n(e+`
|
|
11
|
+
`,o)}}exports.SimpleReporter=G;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var F=Object.defineProperty;var _=(n,e)=>F(n,"name",{value:e,configurable:!0});import{stdout as P,stderr as V}from"node:process";import Y,{green as W,cyan as z,red as x,greenBright as D,grey as o,bold as k,bgGrey as G,underline as C,white as q}from"@visulima/colorize";import{renderError as b}from"@visulima/error";import{inspect as L}from"@visulima/inspector";import{u as H,O as J,n as K,m as A,T as N}from"./format-label-ECls2QEw.mjs";import{E as Q}from"./constants-BMS51p6Y.mjs";import{A as U,s as X}from"./abstract-pretty-reporter-DgXRHEj-.mjs";import{s as Z}from"./get-longest-label-4ISUsE2q.mjs";import{n as ee}from"./write-stream-C17GXSxA.mjs";var te=Object.defineProperty,I=_((n,e)=>te(n,"name",{value:e,configurable:!0}),"L");const E=I(n=>!/[\\/]pail[\\/]dist/.test(n),"pailFileFilter");class ue extends U{static{_(this,"SimpleReporter")}static{I(this,"SimpleReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:h,inspect:i,...s}=e;super({uppercase:{label:!0,...s.uppercase},...s}),this.#i={...H,indent:void 0,...i},this.#e={...h,color:{fileLine:W,hint:z,marker:x,message:x,method:D,title:x}},this.#t=P,this.#r=V}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:h}=J();let i=h;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:s,context:v,date:l,error:w,file:c,groups:f,label:m,message:u,prefix:d,repeated:S,scope:g,suffix:y,traceError:j,type:O}=e,{color:M}=this._loggerTypes[O.name],T=M?Y[M]:q,a=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(a+o("["+f.at(-1)+"]")+" "),l&&t.push(o(this._styles.dateFormatter(typeof l=="string"?new Date(l):l))+" "),s)t.push(k(T(s)));else{const r=X(this._loggerTypes);r.length>0&&t.push(o(" ".repeat(r.length)))}const $=Z(this._loggerTypes);m?t.push(k(T(K(m,this._styles)))+" "," ".repeat($.length-A(m))):t.push(" ".repeat($.length+1)),S&&t.push(G.white("["+S+"x]")+" "),Array.isArray(g)&&g.length>0&&t.push(o("["+g.join(" > ")+"]")+" "),d&&t.push(o("["+(this._styles.underline.prefix?C(d):d)+"]")+" ");const R=A(t.join(""));if(u!==Q){const r=typeof u=="string"?u:L(u,this.#i);t.push(a+N(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(v){let r=!1;t.push(...v.map(p=>{if(p instanceof Error)return r=!0,`
|
|
2
|
+
|
|
3
|
+
`+b(p,{...this.#e,filterStacktrace:E,prefix:a});if(typeof p=="object")return" "+L(p,this.#i);const B=(r?`
|
|
4
|
+
|
|
5
|
+
`:" ")+p;return r=!1,B}))}if(w&&t.push(b(w,{...this.#e,filterStacktrace:E,prefix:a})),j&&t.push(`
|
|
6
|
+
|
|
7
|
+
`+b(j,{...this.#e,filterStacktrace:E,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:a})),y&&t.push(" "+a+o(this._styles.underline.suffix?C(y):y)),c){const r=c.name+(c.line?":"+c.line:"");t.push(`
|
|
8
|
+
`,o("Caller: ")," ".repeat(R-8),r,`
|
|
9
|
+
`)}return t.join("")}_log(e,h){const i=["error","trace","warn"].includes(h)?"stderr":"stdout",s=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&s.isTTY?this.#s.update(i,e.split(`
|
|
10
|
+
`),0):ee(e+`
|
|
11
|
+
`,s)}}export{ue as SimpleReporter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=Object.defineProperty;var n=(s,r)=>u(s,"name",{value:r,configurable:!0});const f=require("@visulima/error/error"),g=require("./constants-BFrKdBPm.cjs");var h=Object.defineProperty,m=n((s,r)=>h(s,"name",{value:r,configurable:!0}),"p");class b{static{n(this,"AbstractJsonReporter")}static{m(this,"AbstractJsonReporter")}stringify;errorOptions;constructor(r={}){this.errorOptions=r.error??{}}setStringify(r){this.stringify=r}log(r){const{context:a,error:l,file:t,message:c,type:p,...e}=r;if(e.label&&(e.label=e.label.trim()),t&&(e.file=t.name+":"+t.line+(t.column?":"+t.column:"")),c===g.E?e.message=void 0:e.message=c,l&&(e.error=f.serializeError(l,this.errorOptions)),a){const i=[];for(const o of a)o!==g.E&&(o instanceof Error?i.push(f.serializeError(o,this.errorOptions)):i.push(o));e.context=i}this._log(this.stringify(e),p.level)}}exports.A=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var s=(t,e)=>n(t,"name",{value:e,configurable:!0});const
|
|
1
|
+
"use strict";var n=Object.defineProperty;var s=(t,e)=>n(t,"name",{value:e,configurable:!0});const g=require("./constants-BFrKdBPm.cjs");var l=Object.defineProperty,c=s((t,e)=>l(t,"name",{value:e,configurable:!0}),"r$1");const i=c(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 p=Object.defineProperty,o=s((t,e)=>p(t,"name",{value:e,configurable:!0}),"o");const u=o(t=>[t.getHours(),t.getMinutes(),t.getSeconds()].map(e=>String(e).padStart(2,"0")).join(":"),"dateFormatter");class b{static{s(this,"AbstractPrettyReporter")}static{o(this,"AbstractPrettyReporter")}_styles;_loggerTypes;constructor(e){this._styles={bold:{label:!1},dateFormatter:u,underline:{label:!1,message:!1,prefix:!1,suffix:!1},uppercase:{label:!1},...e},this._loggerTypes=g.L}setLoggerTypes(e){this._loggerTypes=e}}exports.A=b;exports.s=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},e={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"}},o=Symbol("EMPTY");exports.
|
|
1
|
+
"use strict";const l={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},e={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"}},o=Symbol("EMPTY");exports.E=o;exports.L=e;exports.a=l;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";var FD=Object.defineProperty;var n=(D,u)=>FD(D,"name",{value:u,configurable:!0});const eD=require("node:process"),nD=require("node:child_process"),tD=require("node:fs"),rD=require("node:tty"),i=require("@visulima/colorize"),M=n(D=>D&&typeof D=="object"&&"default"in D?D.default:D,"_interopDefaultCompat"),d=M(eD),h=M(tD),BD=M(rD);var oD=Object.defineProperty,g=n((D,u)=>oD(D,"name",{value:u,configurable:!0}),"e");const U=80,Y=24,_=g((D,u,{shell:C,env:E}={})=>nD.execFileSync(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:C,env:E}).trim(),"exec"),v=g((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),K=g((D,u)=>{const{columns:C,rows:E}=v(D,u);if(!(Number.isNaN(C)||Number.isNaN(E))&&!(C===U&&E===Y))return{columns:C,rows:E}},"createIfNotDefault");function V(){const{env:D,stdout:u,stderr:C}=d;if(u?.columns&&u?.rows)return v(u.columns,u.rows);if(C?.columns&&C?.rows)return v(C.columns,C.rows);if(D.COLUMNS&&D.LINES)return v(D.COLUMNS,D.LINES);const E={columns:U,rows:Y};return d.platform==="win32"?T()??E:d.platform==="darwin"?L()??T()??E:L()??T()??iD()??E}n(V,"O");g(V,"terminalSize");const L=g(()=>{try{const D=d.platform==="darwin"?h.constants.O_EVTONLY|h.constants.O_NONBLOCK:h.constants.O_NONBLOCK,{columns:u,rows:C}=BD.WriteStream(h.openSync("/dev/tty",D));return{columns:u,rows:C}}catch{}},"devTty"),T=g(()=>{try{const D=_("tput",["cols"],{env:{TERM:"dumb",...d.env}}),u=_("tput",["lines"],{env:{TERM:"dumb",...d.env}});if(D&&u)return K(D,u)}catch{}},"tput"),iD=g(()=>{try{const D=_("resize",["-u"]).match(/\d+/g);if(D.length===2)return K(D[0],D[1])}catch{}},"resize");var aD=Object.defineProperty,sD=n((D,u)=>aD(D,"name",{value:u,configurable:!0}),"u$3");function H({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}n(H,"a$3");sD(H,"ansiRegex");var lD=Object.defineProperty,AD=n((D,u)=>lD(D,"name",{value:u,configurable:!0}),"r$4");const cD=H();function y(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(cD,"")}n(y,"f$2");AD(y,"stripAnsi");var gD=Object.defineProperty,w=n((D,u)=>gD(D,"name",{value:u,configurable:!0}),"E$1");function P(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}n(P,"A$1");w(P,"isAmbiguous");function x(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}n(x,"B");w(x,"isFullWidth");function O(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}n(O,"C$2");w(O,"isWide");function J(D){return P(D)?"ambiguous":x(D)?"fullwidth":D===8361||D>=65377&&D<=65470||D>=65474&&D<=65479||D>=65482&&D<=65487||D>=65490&&D<=65495||D>=65498&&D<=65500||D>=65512&&D<=65518?"halfwidth":D>=32&&D<=126||D===162||D===163||D===165||D===166||D===172||D===175||D>=10214&&D<=10221||D===10629||D===10630?"narrow":O(D)?"wide":"neutral"}n(J,"t$2");w(J,"getCategory");var fD=Object.defineProperty,j=n((D,u)=>fD(D,"name",{value:u,configurable:!0}),"t$1");function W(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}n(W,"a$2");j(W,"validate");function dD(D){return W(D),J(D)}n(dD,"eastAsianWidthType");j(dD,"eastAsianWidthType");function Q(D,{ambiguousAsWide:u=!1}={}){return W(D),x(D)||O(D)||u&&P(D)?2:1}n(Q,"eastAsianWidth");j(Q,"eastAsianWidth");j(D=>!(x(D)||O(D)),"_isNarrowWidth");var bD=Object.defineProperty,mD=n((D,u)=>bD(D,"name",{value:u,configurable:!0}),"D");const pD=mD(()=>/[#*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,"default");var hD=Object.defineProperty,vD=n((D,u)=>hD(D,"name",{value:u,configurable:!0}),"s");const $D=new Intl.Segmenter,yD=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function b(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:C=!0,countAnsiEscapeCodes:E=!1}=u;if(E||(D=y(D)),D.length===0)return 0;let e=0;const B={ambiguousAsWide:!C};for(const{segment:r}of $D.segment(D)){const F=r.codePointAt(0);if(!(F<=31||F>=127&&F<=159)&&!(F>=8203&&F<=8207||F===65279)&&!(F>=768&&F<=879||F>=6832&&F<=6911||F>=7616&&F<=7679||F>=8400&&F<=8447||F>=65056&&F<=65071)&&!(F>=55296&&F<=57343)&&!(F>=65024&&F<=65039)&&!yD.test(r)){if(pD().test(r)){e+=2;continue}e+=Q(F,B)}}return e}n(b,"d");vD(b,"stringWidth");var wD=Object.defineProperty,s=n((D,u)=>wD(D,"name",{value:u,configurable:!0}),"a");const z=s((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),q=s((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),k=s((D=0)=>(u,C,E)=>`\x1B[${38+D};2;${u};${C};${E}m`,"wrapAnsi16m"),t={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]}};function X(){const D=new Map;for(const[u,C]of Object.entries(t)){for(const[E,e]of Object.entries(C))t[E]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},C[E]=t[E],D.set(e[0],e[1]);Object.defineProperty(t,u,{value:C,enumerable:!1})}return Object.defineProperty(t,"codes",{value:D,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=z(),t.color.ansi256=q(),t.color.ansi16m=k(),t.bgColor.ansi=z(10),t.bgColor.ansi256=q(10),t.bgColor.ansi16m=k(10),Object.defineProperties(t,{rgbToAnsi256:{value:s((u,C,E)=>u===C&&C===E?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(C/255*5)+Math.round(E/255*5),"value"),enumerable:!1},hexToRgb:{value:s(u=>{const C=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!C)return[0,0,0];let[E]=C;E.length===3&&(E=[...E].map(B=>B+B).join(""));const e=Number.parseInt(E,16);return[e>>16&255,e>>8&255,e&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(u=>t.rgbToAnsi256(...t.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let C,E,e;if(u>=232)C=((u-232)*10+8)/255,E=C,e=C;else{u-=16;const F=u%36;C=Math.floor(u/36)/5,E=Math.floor(F/6)/5,e=F%6/5}const B=Math.max(C,E,e)*2;if(B===0)return 30;let r=30+(Math.round(e)<<2|Math.round(E)<<1|Math.round(C));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:s((u,C,E)=>t.ansi256ToAnsi(t.rgbToAnsi256(u,C,E)),"value"),enumerable:!1},hexToAnsi:{value:s(u=>t.ansi256ToAnsi(t.hexToAnsi256(u)),"value"),enumerable:!1}}),t}n(X,"m$1");s(X,"assembleStyles");const xD=X();var OD=Object.defineProperty,f=n((D,u)=>OD(D,"name",{value:u,configurable:!0}),"h");const N=new Set(["\x1B",""]),jD=39,R="\x07",DD="[",ND="]",uD="m",$=`${ND}8;;`,G=f(D=>`${N.values().next().value}${DD}${D}${uD}`,"wrapAnsiCode"),Z=f(D=>`${N.values().next().value}${$}${D}${R}`,"wrapAnsiHyperlink"),TD=f(D=>D.split(" ").map(u=>b(u)),"wordLengths"),S=f((D,u,C)=>{const E=[...u];let e=!1,B=!1,r=b(y(D.at(-1)));for(const[F,l]of E.entries()){const m=b(l);if(r+m<=C?D[D.length-1]+=l:(D.push(l),r=0),N.has(l)&&(e=!0,B=E.slice(F+1,F+1+$.length).join("")===$),e){B?l===R&&(e=!1,B=!1):l===uD&&(e=!1);continue}r+=m,r===C&&F<E.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),SD=f(D=>{const u=D.split(" ");let C=u.length;for(;C>0&&!(b(u[C-1])>0);)C--;return C===u.length?D:u.slice(0,C).join(" ")+u.slice(C).join("")},"stringVisibleTrimSpacesRight"),_D=f((D,u,C={})=>{if(C.trim!==!1&&D.trim()==="")return"";let E="",e,B;const r=TD(D);let F=[""];for(const[a,A]of D.split(" ").entries()){C.trim!==!1&&(F[F.length-1]=F.at(-1).trimStart());let o=b(F.at(-1));if(a!==0&&(o>=u&&(C.wordWrap===!1||C.trim===!1)&&(F.push(""),o=0),(o>0||C.trim===!1)&&(F[F.length-1]+=" ",o++)),C.hard&&r[a]>u){const c=u-o,p=1+Math.floor((r[a]-c-1)/u);Math.floor((r[a]-1)/u)<p&&F.push(""),S(F,A,u);continue}if(o+r[a]>u&&o>0&&r[a]>0){if(C.wordWrap===!1&&o<u){S(F,A,u);continue}F.push("")}if(o+r[a]>u&&C.wordWrap===!1){S(F,A,u);continue}F[F.length-1]+=A}C.trim!==!1&&(F=F.map(a=>SD(a)));const l=F.join(`
|
|
2
|
+
`),m=[...l];let I=0;for(const[a,A]of m.entries()){if(E+=A,N.has(A)){const{groups:c}=new RegExp(`(?:\\${DD}(?<code>\\d+)m|\\${$}(?<uri>.*)${R})`).exec(l.slice(I))||{groups:{}};if(c.code!==void 0){const p=Number.parseFloat(c.code);e=p===jD?void 0:p}else c.uri!==void 0&&(B=c.uri.length===0?void 0:c.uri)}const o=xD.codes.get(Number(e));m[a+1]===`
|
|
3
|
+
`?(B&&(E+=Z("")),e&&o&&(E+=G(o))):A===`
|
|
4
|
+
`&&(e&&o&&(E+=G(e)),B&&(E+=Z(B))),I+=A.length}return E},"exec");function CD(D,u,C){return String(D).normalize().replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(E=>_D(E,u,C)).join(`
|
|
8
|
+
`)}n(CD,"T");f(CD,"wrapAnsi");var MD=Object.defineProperty,PD=n((D,u)=>MD(D,"name",{value:u,configurable:!0}),"r");const WD=new Intl.Segmenter;function ED(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=y(D)),D===""))return 0;let C=0;for(const E of WD.segment(D))C++;return C}n(ED,"m");PD(ED,"stringLength");var RD=Object.defineProperty,ID=n((D,u)=>RD(D,"name",{value:u,configurable:!0}),"t");const LD={indent:2,quoteStyle:"single",stylize:ID((D,u)=>{const C={bigint:i.yellow,boolean:i.yellow,date:i.magenta,null:i.bold,number:i.yellow,regexp:i.red,special:i.cyan,string:i.green,symbol:i.green,undefined:i.grey};return C[u]===void 0?D:C[u](D)},"stylize")};var zD=Object.defineProperty,qD=n((D,u)=>zD(D,"name",{value:u,configurable:!0}),"o");const kD=qD((D,u)=>{let C=u.uppercase.label?D.toUpperCase():D;return C=u.underline.label?i.underline(C):C,u.bold.label&&(C=i.bold(C)),C},"formatLabel");exports.O=V;exports.T=CD;exports.m=ED;exports.n=kD;exports.u=LD;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CD=Object.defineProperty;var n=(D,u)=>CD(D,"name",{value:u,configurable:!0});import f from"node:process";import{execFileSync as ED}from"node:child_process";import p from"node:fs";import FD from"node:tty";import{yellow as j,magenta as eD,bold as Y,red as nD,cyan as rD,green as L,grey as tD,underline as BD}from"@visulima/colorize";var oD=Object.defineProperty,c=n((D,u)=>oD(D,"name",{value:u,configurable:!0}),"e");const q=80,K=24,M=c((D,u,{shell:C,env:E}={})=>ED(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:C,env:E}).trim(),"exec"),h=c((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),V=c((D,u)=>{const{columns:C,rows:E}=h(D,u);if(!(Number.isNaN(C)||Number.isNaN(E))&&!(C===q&&E===K))return{columns:C,rows:E}},"createIfNotDefault");function iD(){const{env:D,stdout:u,stderr:C}=f;if(u?.columns&&u?.rows)return h(u.columns,u.rows);if(C?.columns&&C?.rows)return h(C.columns,C.rows);if(D.COLUMNS&&D.LINES)return h(D.COLUMNS,D.LINES);const E={columns:q,rows:K};return f.platform==="win32"?T()??E:f.platform==="darwin"?_()??T()??E:_()??T()??aD()??E}n(iD,"O");c(iD,"terminalSize");const _=c(()=>{try{const D=f.platform==="darwin"?p.constants.O_EVTONLY|p.constants.O_NONBLOCK:p.constants.O_NONBLOCK,{columns:u,rows:C}=FD.WriteStream(p.openSync("/dev/tty",D));return{columns:u,rows:C}}catch{}},"devTty"),T=c(()=>{try{const D=M("tput",["cols"],{env:{TERM:"dumb",...f.env}}),u=M("tput",["lines"],{env:{TERM:"dumb",...f.env}});if(D&&u)return V(D,u)}catch{}},"tput"),aD=c(()=>{try{const D=M("resize",["-u"]).match(/\d+/g);if(D.length===2)return V(D[0],D[1])}catch{}},"resize");var sD=Object.defineProperty,lD=n((D,u)=>sD(D,"name",{value:u,configurable:!0}),"u$3");function H({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}n(H,"a$3");lD(H,"ansiRegex");var AD=Object.defineProperty,cD=n((D,u)=>AD(D,"name",{value:u,configurable:!0}),"r$4");const gD=H();function $(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(gD,"")}n($,"f$2");cD($,"stripAnsi");var fD=Object.defineProperty,y=n((D,u)=>fD(D,"name",{value:u,configurable:!0}),"E$1");function P(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}n(P,"A$1");y(P,"isAmbiguous");function w(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}n(w,"B");y(w,"isFullWidth");function x(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}n(x,"C$2");y(x,"isWide");function J(D){return P(D)?"ambiguous":w(D)?"fullwidth":D===8361||D>=65377&&D<=65470||D>=65474&&D<=65479||D>=65482&&D<=65487||D>=65490&&D<=65495||D>=65498&&D<=65500||D>=65512&&D<=65518?"halfwidth":D>=32&&D<=126||D===162||D===163||D===165||D===166||D===172||D===175||D>=10214&&D<=10221||D===10629||D===10630?"narrow":x(D)?"wide":"neutral"}n(J,"t$2");y(J,"getCategory");var mD=Object.defineProperty,O=n((D,u)=>mD(D,"name",{value:u,configurable:!0}),"t$1");function W(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}n(W,"a$2");O(W,"validate");function dD(D){return W(D),J(D)}n(dD,"eastAsianWidthType");O(dD,"eastAsianWidthType");function Q(D,{ambiguousAsWide:u=!1}={}){return W(D),w(D)||x(D)||u&&P(D)?2:1}n(Q,"eastAsianWidth");O(Q,"eastAsianWidth");O(D=>!(w(D)||x(D)),"_isNarrowWidth");var bD=Object.defineProperty,pD=n((D,u)=>bD(D,"name",{value:u,configurable:!0}),"D");const hD=pD(()=>/[#*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,"default");var vD=Object.defineProperty,$D=n((D,u)=>vD(D,"name",{value:u,configurable:!0}),"s");const yD=new Intl.Segmenter,wD=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function m(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:C=!0,countAnsiEscapeCodes:E=!1}=u;if(E||(D=$(D)),D.length===0)return 0;let e=0;const B={ambiguousAsWide:!C};for(const{segment:t}of yD.segment(D)){const F=t.codePointAt(0);if(!(F<=31||F>=127&&F<=159)&&!(F>=8203&&F<=8207||F===65279)&&!(F>=768&&F<=879||F>=6832&&F<=6911||F>=7616&&F<=7679||F>=8400&&F<=8447||F>=65056&&F<=65071)&&!(F>=55296&&F<=57343)&&!(F>=65024&&F<=65039)&&!wD.test(t)){if(hD().test(t)){e+=2;continue}e+=Q(F,B)}}return e}n(m,"d");$D(m,"stringWidth");var xD=Object.defineProperty,a=n((D,u)=>xD(D,"name",{value:u,configurable:!0}),"a");const z=a((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),k=a((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),G=a((D=0)=>(u,C,E)=>`\x1B[${38+D};2;${u};${C};${E}m`,"wrapAnsi16m"),r={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]}};function X(){const D=new Map;for(const[u,C]of Object.entries(r)){for(const[E,e]of Object.entries(C))r[E]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},C[E]=r[E],D.set(e[0],e[1]);Object.defineProperty(r,u,{value:C,enumerable:!1})}return Object.defineProperty(r,"codes",{value:D,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=z(),r.color.ansi256=k(),r.color.ansi16m=G(),r.bgColor.ansi=z(10),r.bgColor.ansi256=k(10),r.bgColor.ansi16m=G(10),Object.defineProperties(r,{rgbToAnsi256:{value:a((u,C,E)=>u===C&&C===E?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(C/255*5)+Math.round(E/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{const C=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!C)return[0,0,0];let[E]=C;E.length===3&&(E=[...E].map(B=>B+B).join(""));const e=Number.parseInt(E,16);return[e>>16&255,e>>8&255,e&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>r.rgbToAnsi256(...r.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let C,E,e;if(u>=232)C=((u-232)*10+8)/255,E=C,e=C;else{u-=16;const F=u%36;C=Math.floor(u/36)/5,E=Math.floor(F/6)/5,e=F%6/5}const B=Math.max(C,E,e)*2;if(B===0)return 30;let t=30+(Math.round(e)<<2|Math.round(E)<<1|Math.round(C));return B===2&&(t+=60),t},"value"),enumerable:!1},rgbToAnsi:{value:a((u,C,E)=>r.ansi256ToAnsi(r.rgbToAnsi256(u,C,E)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>r.ansi256ToAnsi(r.hexToAnsi256(u)),"value"),enumerable:!1}}),r}n(X,"m$1");a(X,"assembleStyles");const OD=X();var ND=Object.defineProperty,g=n((D,u)=>ND(D,"name",{value:u,configurable:!0}),"h");const N=new Set(["\x1B",""]),jD=39,R="\x07",DD="[",TD="]",uD="m",v=`${TD}8;;`,Z=g(D=>`${N.values().next().value}${DD}${D}${uD}`,"wrapAnsiCode"),U=g(D=>`${N.values().next().value}${v}${D}${R}`,"wrapAnsiHyperlink"),SD=g(D=>D.split(" ").map(u=>m(u)),"wordLengths"),S=g((D,u,C)=>{const E=[...u];let e=!1,B=!1,t=m($(D.at(-1)));for(const[F,s]of E.entries()){const d=m(s);if(t+d<=C?D[D.length-1]+=s:(D.push(s),t=0),N.has(s)&&(e=!0,B=E.slice(F+1,F+1+v.length).join("")===v),e){B?s===R&&(e=!1,B=!1):s===uD&&(e=!1);continue}t+=d,t===C&&F<E.length-1&&(D.push(""),t=0)}!t&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),MD=g(D=>{const u=D.split(" ");let C=u.length;for(;C>0&&!(m(u[C-1])>0);)C--;return C===u.length?D:u.slice(0,C).join(" ")+u.slice(C).join("")},"stringVisibleTrimSpacesRight"),PD=g((D,u,C={})=>{if(C.trim!==!1&&D.trim()==="")return"";let E="",e,B;const t=SD(D);let F=[""];for(const[i,l]of D.split(" ").entries()){C.trim!==!1&&(F[F.length-1]=F.at(-1).trimStart());let o=m(F.at(-1));if(i!==0&&(o>=u&&(C.wordWrap===!1||C.trim===!1)&&(F.push(""),o=0),(o>0||C.trim===!1)&&(F[F.length-1]+=" ",o++)),C.hard&&t[i]>u){const A=u-o,b=1+Math.floor((t[i]-A-1)/u);Math.floor((t[i]-1)/u)<b&&F.push(""),S(F,l,u);continue}if(o+t[i]>u&&o>0&&t[i]>0){if(C.wordWrap===!1&&o<u){S(F,l,u);continue}F.push("")}if(o+t[i]>u&&C.wordWrap===!1){S(F,l,u);continue}F[F.length-1]+=l}C.trim!==!1&&(F=F.map(i=>MD(i)));const s=F.join(`
|
|
2
|
+
`),d=[...s];let I=0;for(const[i,l]of d.entries()){if(E+=l,N.has(l)){const{groups:A}=new RegExp(`(?:\\${DD}(?<code>\\d+)m|\\${v}(?<uri>.*)${R})`).exec(s.slice(I))||{groups:{}};if(A.code!==void 0){const b=Number.parseFloat(A.code);e=b===jD?void 0:b}else A.uri!==void 0&&(B=A.uri.length===0?void 0:A.uri)}const o=OD.codes.get(Number(e));d[i+1]===`
|
|
3
|
+
`?(B&&(E+=U("")),e&&o&&(E+=Z(o))):l===`
|
|
4
|
+
`&&(e&&o&&(E+=Z(e)),B&&(E+=U(B))),I+=l.length}return E},"exec");function WD(D,u,C){return String(D).normalize().replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(E=>PD(E,u,C)).join(`
|
|
8
|
+
`)}n(WD,"T");g(WD,"wrapAnsi");var RD=Object.defineProperty,ID=n((D,u)=>RD(D,"name",{value:u,configurable:!0}),"r");const LD=new Intl.Segmenter;function _D(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=$(D)),D===""))return 0;let C=0;for(const E of LD.segment(D))C++;return C}n(_D,"m");ID(_D,"stringLength");var zD=Object.defineProperty,kD=n((D,u)=>zD(D,"name",{value:u,configurable:!0}),"t");const JD={indent:2,quoteStyle:"single",stylize:kD((D,u)=>{const C={bigint:j,boolean:j,date:eD,null:Y,number:j,regexp:nD,special:rD,string:L,symbol:L,undefined:tD};return C[u]===void 0?D:C[u](D)},"stylize")};var GD=Object.defineProperty,ZD=n((D,u)=>GD(D,"name",{value:u,configurable:!0}),"o");const QD=ZD((D,u)=>{let C=u.uppercase.label?D.toUpperCase():D;return C=u.underline.label?BD(C):C,u.bold.label&&(C=Y(C)),C},"formatLabel");export{iD as O,WD as T,_D as m,QD as n,JD as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var n=(o,e)=>m(o,"name",{value:e,configurable:!0});const u=require("safe-stable-stringify"),p=require("./constants-BFrKdBPm.cjs"),L=require("./write-console-log-3G15muTS.cjs"),y=require("./get-longest-label-DXpzhu5N.cjs");var b=Object.defineProperty,v=n((o,e)=>b(o,"name",{value:e,configurable:!0}),"t");class w{static{n(this,"i")}static{v(this,"RawReporter")}log(e){const{context:t=[],message:s,type:r}=e;L.t(r.level)(s,...t)}}var x=Object.defineProperty,M=n((o,e)=>x(o,"name",{value:e,configurable:!0}),"a");const _=M(o=>o===void 0?[]:Array.isArray(o)?o:[o],"arrayify");var T=Object.defineProperty,E=n((o,e)=>T(o,"name",{value:e,configurable:!0}),"g");const R=E((o,e)=>{const t={...o};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var j=Object.defineProperty,f=n((o,e)=>j(o,"name",{value:e,configurable:!0}),"l");class d{static{n(this,"PailBrowserImpl")}static{f(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=u.configure({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=R(p.L,e.types??{}),this.longestLabel=y.s(this.types),this.logLevels={...p.a,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=_(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new w),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)})}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}else this._logger("warn",!1,{message:"Timer not found",prefix:e})}group(e="console.group"){typeof window>"u"?this.groups.push(e):console.group(e)}groupEnd(){typeof window>"u"?this.groups.pop():console.groupEnd()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const r={badge:void 0,context:void 0,error:void 0,label:void 0,message:p.E,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};if(r.type={level:t.logLevel,name:e},r.groups=this.groups,r.scope=this.scopeName,r.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)r.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(r.context=i),h&&(r.prefix=h),a&&(r.suffix=a),r.message=g}else r.message=s[0];else s.length>1&&typeof s[0]=="string"?(r.message=s[0],r.context=s.slice(1)):r.message=s[0];return t.logLevel==="trace"&&(r.traceError=new Error("Trace")),t.badge&&(r.badge=t.badge),t.label&&(r.label=t.label),r}_logger(e,t,...s){if(this.disabled)return;const r=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[r]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=f((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const c={...this.lastLog.object};l>1&&(c.repeated=l),this._report(c,t),this.lastLog.count=1}if(a){for(const c of this.processors)i={...c.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const q=d;exports.P=q;exports.a=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/CallerProcessor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/CallerProcessor-CLoY9R76.cjs"),r=require("./packem_shared/MessageFormatterProcessor-CCRIUIdT.cjs"),o=require("./packem_shared/RedactProcessor-BVZtatWJ.cjs");exports.CallerProcessor=e;exports.MessageFormatterProcessor=r;exports.RedactProcessor=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"./packem_shared/CallerProcessor-
|
|
1
|
+
import{default as o}from"./packem_shared/CallerProcessor-BBHkvRgS.mjs";import{default as a}from"./packem_shared/MessageFormatterProcessor-D_XajTuK.mjs";import{default as f}from"./packem_shared/RedactProcessor-CxKTN42V.mjs";export{o as CallerProcessor,a as MessageFormatterProcessor,f as RedactProcessor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/JsonReporter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/JsonReporter-CjvkrXUp.cjs"),r=require("./packem_shared/PrettyReporter-CuJWFD0k.cjs");exports.JsonReporter=e;exports.PrettyReporter=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as t}from"./packem_shared/JsonReporter-DInAbLuf.mjs";import{default as a}from"./packem_shared/PrettyReporter-
|
|
1
|
+
import{default as t}from"./packem_shared/JsonReporter-DInAbLuf.mjs";import{default as a}from"./packem_shared/PrettyReporter-C_AJrNOj.mjs";export{t as JsonReporter,a as PrettyReporter};
|
package/dist/reporter.server.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/JsonFileReporter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/JsonFileReporter-CLEMnuGI.cjs"),r=require("./packem_shared/JsonReporter-CiQkPCv4.cjs"),t=require("./packem_shared/PrettyReporter-CldK9UpN.cjs"),o=require("./packem_shared/SimpleReporter-Cy_0ZeXQ.cjs");exports.JsonFileReporter=e.JsonFileReporter;exports.JsonReporter=r;exports.PrettyReporter=t.PrettyReporter;exports.SimpleReporter=o.SimpleReporter;
|
package/dist/reporter.server.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{JsonFileReporter as o}from"./packem_shared/JsonFileReporter-lr0s7r9B.mjs";import{default as p}from"./packem_shared/JsonReporter-J50eZjl2.mjs";import{PrettyReporter as m}from"./packem_shared/PrettyReporter-
|
|
1
|
+
import{JsonFileReporter as o}from"./packem_shared/JsonFileReporter-lr0s7r9B.mjs";import{default as p}from"./packem_shared/JsonReporter-J50eZjl2.mjs";import{PrettyReporter as m}from"./packem_shared/PrettyReporter-1SleqVaI.mjs";import{SimpleReporter as R}from"./packem_shared/SimpleReporter-DzUWU5Gu.mjs";export{o as JsonFileReporter,p as JsonReporter,m as PrettyReporter,R as SimpleReporter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/pail",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"description": "Find a file or directory by walking up parent directories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ansi",
|
|
@@ -225,27 +225,27 @@
|
|
|
225
225
|
"LICENSE.md"
|
|
226
226
|
],
|
|
227
227
|
"dependencies": {
|
|
228
|
-
"@visulima/colorize": "1.4.
|
|
229
|
-
"@visulima/error": "4.4.
|
|
230
|
-
"@visulima/fmt": "1.1.
|
|
231
|
-
"@visulima/inspector": "1.0.
|
|
228
|
+
"@visulima/colorize": "1.4.13",
|
|
229
|
+
"@visulima/error": "4.4.8",
|
|
230
|
+
"@visulima/fmt": "1.1.12",
|
|
231
|
+
"@visulima/inspector": "1.0.13",
|
|
232
232
|
"safe-stable-stringify": "^2.5.0"
|
|
233
233
|
},
|
|
234
234
|
"devDependencies": {
|
|
235
235
|
"@anolilab/eslint-config": "^15.0.3",
|
|
236
236
|
"@anolilab/prettier-config": "^5.0.14",
|
|
237
|
-
"@anolilab/semantic-release-pnpm": "^1.1.
|
|
238
|
-
"@anolilab/semantic-release-preset": "^9.0.
|
|
239
|
-
"@arethetypeswrong/cli": "^0.
|
|
240
|
-
"@babel/core": "^7.
|
|
237
|
+
"@anolilab/semantic-release-pnpm": "^1.1.5",
|
|
238
|
+
"@anolilab/semantic-release-preset": "^9.0.2",
|
|
239
|
+
"@arethetypeswrong/cli": "^0.17.1",
|
|
240
|
+
"@babel/core": "^7.26.0",
|
|
241
241
|
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
242
|
-
"@secretlint/secretlint-rule-preset-recommend": "^
|
|
242
|
+
"@secretlint/secretlint-rule-preset-recommend": "^9.0.0",
|
|
243
243
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
244
244
|
"@types/node": "18.19.15",
|
|
245
|
-
"@visulima/packem": "1.
|
|
246
|
-
"@visulima/redact": "1.0.
|
|
247
|
-
"@vitest/coverage-v8": "^2.1.
|
|
248
|
-
"@vitest/ui": "^2.1.
|
|
245
|
+
"@visulima/packem": "1.9.2",
|
|
246
|
+
"@visulima/redact": "1.0.10",
|
|
247
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
248
|
+
"@vitest/ui": "^2.1.8",
|
|
249
249
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
250
250
|
"cross-env": "^7.0.3",
|
|
251
251
|
"esbuild": "0.24.0",
|
|
@@ -256,20 +256,20 @@
|
|
|
256
256
|
"eslint-plugin-mdx": "^3.1.5",
|
|
257
257
|
"eslint-plugin-vitest": "^0.4.1",
|
|
258
258
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
259
|
-
"prettier": "^3.
|
|
259
|
+
"prettier": "^3.4.2",
|
|
260
260
|
"rimraf": "5.0.9",
|
|
261
261
|
"rotating-file-stream": "^3.2.5",
|
|
262
262
|
"secretlint": "8.2.4",
|
|
263
263
|
"semantic-release": "24.0.0",
|
|
264
264
|
"string-length": "^6.0.0",
|
|
265
265
|
"terminal-size": "^4.0.0",
|
|
266
|
-
"type-fest": "^4.
|
|
266
|
+
"type-fest": "^4.30.0",
|
|
267
267
|
"typescript": "5.4.5",
|
|
268
|
-
"vitest": "^2.1.
|
|
268
|
+
"vitest": "^2.1.8",
|
|
269
269
|
"wrap-ansi": "^9.0.0"
|
|
270
270
|
},
|
|
271
271
|
"peerDependencies": {
|
|
272
|
-
"@visulima/redact": "1.0.
|
|
272
|
+
"@visulima/redact": "1.0.10",
|
|
273
273
|
"rotating-file-stream": "^3.1.1"
|
|
274
274
|
},
|
|
275
275
|
"peerDependenciesMeta": {
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
"engines": {
|
|
284
|
-
"node": ">=18.* <=
|
|
284
|
+
"node": ">=18.* <=23.*"
|
|
285
285
|
},
|
|
286
286
|
"os": [
|
|
287
287
|
"darwin",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var n=(a,e)=>m(a,"name",{value:e,configurable:!0});var u=Object.defineProperty,c=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"u");const o=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(i,r)=>{const t=r.slice(1);return e=t,t},new Error().stack;const l=e.reduce((i,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||i.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),i),[])[0];return l?{columnNumber:l.columnNumber??void 0,fileName:l.fileName,lineNumber:l.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var s=Object.defineProperty,N=n((a,e)=>s(a,"name",{value:e,configurable:!0}),"r");class b{static{n(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:l,fileName:i,lineNumber:r}=o();return e.file={column:l,line:r,name:i},e}}module.exports=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var n=(a,e)=>t(a,"name",{value:e,configurable:!0});var u=Object.defineProperty,c=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"u");const o=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(i,r)=>{const m=r.slice(1);return e=m,m},new Error().stack;const l=e.reduce((i,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||i.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),i),[])[0];return l?{columnNumber:l.columnNumber??void 0,fileName:l.fileName,lineNumber:l.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var s=Object.defineProperty,N=n((a,e)=>s(a,"name",{value:e,configurable:!0}),"r");class f{static{n(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:l,fileName:i,lineNumber:r}=o();return e.file={column:l,line:r,name:i},e}}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});const c=require("./write-console-log-3G15muTS.cjs"),n=require("./abstract-json-reporter-CjTo97r_.cjs");var a=Object.defineProperty,i=t((r,e)=>a(r,"name",{value:e,configurable:!0}),"e");class p extends n.AbstractJsonReporter{static{t(this,"p")}static{i(this,"JsonReporter")}constructor(e={}){super(e)}_log(e,s){c.t(s)(e)}}module.exports=p;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var e=(r,t)=>c(r,"name",{value:t,configurable:!0});const s=require("node:process"),n=require("./write-stream-Bgxqp0HI.cjs"),a=require("./abstract-json-reporter-CjTo97r_.cjs");var u=Object.defineProperty,d=e((r,t)=>u(r,"name",{value:t,configurable:!0}),"e");class h extends a.AbstractJsonReporter{static{e(this,"d")}static{d(this,"JsonReporter")}#t;#r;constructor(t={}){super(t),this.#t=s.stdout,this.#r=s.stderr}setStdout(t){this.#t=t}setStderr(t){this.#r=t}_log(t,o){const i=["error","warn"].includes(o)?this.#r:this.#t;n.n(t+`
|
|
2
|
-
`,i)}}module.exports=h;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty;var f=(n,o)=>j(n,"name",{value:o,configurable:!0});const l=require("@visulima/colorize/browser"),i=require("@visulima/fmt"),C=require("./constants-BBH2bwRB.cjs"),R=require("./abstract-pretty-reporter-B14XYOWC.cjs"),M=require("./get-longest-label-DXpzhu5N.cjs"),S=require("./write-console-log-3G15muTS.cjs"),Y=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),D=Y(l);var O=Object.defineProperty,k=f((n,o)=>O(n,"name",{value:o,configurable:!0}),"A");class B extends R.AbstractPrettyReporter{static{f(this,"Y")}static{k(this,"PrettyReporter")}constructor(o={}){super({uppercase:{label:!0,...o.uppercase},...o})}log(o){const t=typeof window<"u"&&typeof window.document<"u",_=S.t(o.type.level),{badge:x,context:w,date:u,error:A,groups:g,label:y,message:L,prefix:d,repeated:h,scope:p,suffix:m,type:T}=o,{color:q}=this._loggerTypes[T.name],P=q?D[q]:l.white,s=[];if(t&&g.length>0){const e=g.map(()=>" ").join(""),r=l.grey("["+g.at(-1)+"]");s.push(i.format(e+r[0],r.slice(1)))}if(u){const e=l.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(x){const e=P(x);t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=R.s(this._loggerTypes);if(e.length>0){const r=l.grey(".".repeat(e.length));t?s.push(i.format(r[0]+" ",r.slice(1))):s.push([r[0]+" ",...r.slice(1)])}}const v=M.s(this._loggerTypes);let b;if(h){const e=l.white("["+h+"x]");b=t?i.format(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=P(this._formatLabel(y));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),b&&s.push(b);let r=v.length-y.length;if(h?r-=String(h).length+3:r+=1,r>0){const c=l.grey(".".repeat(r));t?s.push(i.format(c[0],c.slice(1))):s.push([" "+c[0],...c.slice(1)])}}else{const e=l.grey(".".repeat(v.length+1));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(p)&&p.length>0){const e=l.grey("["+p.join(" > ")+"]");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(d){const e=l.grey((Array.isArray(p)&&p.length>0?". ":" ")+"["+(this._styles.underline.prefix?l.underline(d):d)+"] ");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(L!==C.EMPTY_SYMBOL&&s.push(L),w&&s.push(...w),A&&s.push(A,`
|
|
2
|
-
|
|
3
|
-
`),m){const e=l.grey(this._styles.underline.suffix?l.underline(m):m);t?s.push(i.format(`
|
|
4
|
-
`+e[0],e.slice(1))):s.push([`
|
|
5
|
-
`+e[0],...e.slice(1)])}if(t)_(...s);else{let e="";const r=[],c=[];for(const a of s)Array.isArray(a)&&a.length>1&&a[0].includes("%c")?(e+=a[0],r.push(...a.slice(1))):c.push(a);_(e+"%c",...r,"",...c)}}_formatLabel(o){let t=this._styles.uppercase.label?o.toUpperCase():o;return t=this._styles.underline.label?l.underline(t):t,this._styles.bold.label&&(t=l.bold(t)),t}}module.exports=B;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var F=Object.defineProperty;var x=(p,e)=>F(p,"name",{value:e,configurable:!0});import{stdout as O,stderr as V}from"node:process";import Y,{green as $,cyan as z,red as w,greenBright as D,white as G,grey as s,bgGrey as W,underline as k}from"@visulima/colorize";import{renderError as E}from"@visulima/error/error";import{inspect as C}from"@visulima/inspector";import{u as q,t as H,n as J,s as b,w as K}from"./format-label-mKzVo7-U.mjs";import{E as N}from"./constants-BMS51p6Y.mjs";import{A as Q,s as U}from"./abstract-pretty-reporter-DgXRHEj-.mjs";import{s as X}from"./get-longest-label-4ISUsE2q.mjs";import{n as Z}from"./write-stream-C17GXSxA.mjs";var ee=Object.defineProperty,I=x((p,e)=>ee(p,"name",{value:e,configurable:!0}),"S");const A=I(p=>!/[\\/]pail[\\/]dist/.test(p),"pailFileFilter");class ue extends Q{static{x(this,"PrettyReporter")}static{I(this,"PrettyReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:n,inspect:i,...o}=e;super({uppercase:{label:!0,...o.uppercase},...o}),this.#i={...q,...i},this.#e={...n,color:{fileLine:$,hint:z,marker:w,message:w,method:D,title:w}},this.#t=O,this.#r=V}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:n}=H();let i=n;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:o,context:S,date:u,error:j,file:c,groups:f,label:m,message:g,prefix:d,repeated:v,scope:l,suffix:y,traceError:M,type:R}=e,{color:T}=this._loggerTypes[R.name],L=T?Y[T]:G,h=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(h+s("["+f.at(-1)+"]")+" "),u&&t.push(s(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),o)t.push(L(o));else{const r=U(this._loggerTypes);r.length>0&&t.push(s(".".repeat(r.length))+" ")}const P=X(this._loggerTypes);m?t.push(L(J(m,this._styles))+" ",s(".".repeat(P.length-b(m)))):t.push(s(".".repeat(P.length+2))),v&&t.push(W.white("["+v+"x]")+" "),Array.isArray(l)&&l.length>0&&t.push(" "+s("["+l.join(" > ")+"]")+" "),d&&t.push(s((Array.isArray(l)&&l.length>0?". ":" ")+"["+(this._styles.underline.prefix?k(d):d)+"]")+" ");const _=b(t.join(" "));if(c){const r=c.name+(c.line?":"+c.line:""),a=b(r);a+_+2>i?t.push(s(" "+r)):t.push(s(".".repeat(i-_-a-2)+" "+r))}else t.push(s(".".repeat(i-_-1)));if(t.length>0&&t.push(`
|
|
2
|
-
|
|
3
|
-
`),g!==N){const r=typeof g=="string"?g:C(g,this.#i);t.push(h+K(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(S){let r=!1;t.push(...S.map(a=>{if(a instanceof Error)return r=!0,`
|
|
4
|
-
|
|
5
|
-
`+E(a,{...this.#e,filterStacktrace:A,prefix:h});if(typeof a=="object")return" "+C(a,this.#i);const B=(r?`
|
|
6
|
-
|
|
7
|
-
`:" ")+a;return r=!1,B}))}return j&&t.push(E(j,{...this.#e,filterStacktrace:A,prefix:h})),M&&t.push(`
|
|
8
|
-
|
|
9
|
-
`+E(M,{...this.#e,filterStacktrace:A,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:h})),y&&t.push(`
|
|
10
|
-
`,h+s(this._styles.underline.suffix?k(y):y)),t.join("")+`
|
|
11
|
-
`}_log(e,n){const i=["error","trace","warn"].includes(n)?"stderr":"stdout",o=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&o.isTTY?this.#s.update(i,e.split(`
|
|
12
|
-
`),0):Z(e+`
|
|
13
|
-
`,o)}}export{ue as PrettyReporter};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty;var y=(s,t)=>I(s,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("node:process"),e=require("@visulima/colorize"),L=require("@visulima/error/error"),A=require("@visulima/inspector"),h=require("./format-label-v7wmniOZ.cjs"),O=require("./constants-BBH2bwRB.cjs"),R=require("./abstract-pretty-reporter-B14XYOWC.cjs"),F=require("./get-longest-label-DXpzhu5N.cjs"),V=require("./write-stream-Bgxqp0HI.cjs"),Y=y(s=>s&&typeof s=="object"&&"default"in s?s.default:s,"_interopDefaultCompat"),D=Y(e);var z=Object.defineProperty,k=y((s,t)=>z(s,"name",{value:t,configurable:!0}),"S");const S=k(s=>!/[\\/]pail[\\/]dist/.test(s),"pailFileFilter");class G extends R.AbstractPrettyReporter{static{y(this,"PrettyReporter")}static{k(this,"PrettyReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(t={}){const{error:l,inspect:o,...n}=t;super({uppercase:{label:!0,...n.uppercase},...n}),this.#i={...h.u,...o},this.#e={...l,color:{fileLine:e.green,hint:e.cyan,marker:e.red,message:e.red,method:e.greenBright,title:e.red}},this.#t=T.stdout,this.#r=T.stderr}setStdout(t){this.#t=t}setStderr(t){this.#r=t}setInteractiveManager(t){this.#s=t}setIsInteractive(t){this.#o=t}log(t){this._log(this._formatMessage(t),t.type.level)}_formatMessage(t){const{columns:l}=h.terminalSize();let o=l;typeof this._styles.messageLength=="number"&&(o=this._styles.messageLength);const{badge:n,context:w,date:u,error:x,file:g,groups:f,label:m,message:d,prefix:_,repeated:j,scope:c,suffix:b,traceError:q,type:C}=t,{color:P}=this._loggerTypes[C.name],v=P?D[P]:e.white,p=f.map(()=>" ").join(""),r=[];if(f.length>0&&r.push(p+e.grey("["+f.at(-1)+"]")+" "),u&&r.push(e.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),n)r.push(v(n));else{const i=R.s(this._loggerTypes);i.length>0&&r.push(e.grey(".".repeat(i.length))+" ")}const M=F.s(this._loggerTypes);m?r.push(v(h.n(m,this._styles))+" ",e.grey(".".repeat(M.length-h.stringLength(m)))):r.push(e.grey(".".repeat(M.length+2))),j&&r.push(e.bgGrey.white("["+j+"x]")+" "),Array.isArray(c)&&c.length>0&&r.push(" "+e.grey("["+c.join(" > ")+"]")+" "),_&&r.push(e.grey((Array.isArray(c)&&c.length>0?". ":" ")+"["+(this._styles.underline.prefix?e.underline(_):_)+"]")+" ");const E=h.stringLength(r.join(" "));if(g){const i=g.name+(g.line?":"+g.line:""),a=h.stringLength(i);a+E+2>o?r.push(e.grey(" "+i)):r.push(e.grey(".".repeat(o-E-a-2)+" "+i))}else r.push(e.grey(".".repeat(o-E-1)));if(r.length>0&&r.push(`
|
|
2
|
-
|
|
3
|
-
`),d!==O.EMPTY_SYMBOL){const i=typeof d=="string"?d:A.inspect(d,this.#i);r.push(p+h.wrapAnsi(i,o-3,{hard:!0,trim:!1,wordWrap:!0}))}if(w){let i=!1;r.push(...w.map(a=>{if(a instanceof Error)return i=!0,`
|
|
4
|
-
|
|
5
|
-
`+L.renderError(a,{...this.#e,filterStacktrace:S,prefix:p});if(typeof a=="object")return" "+A.inspect(a,this.#i);const B=(i?`
|
|
6
|
-
|
|
7
|
-
`:" ")+a;return i=!1,B}))}return x&&r.push(L.renderError(x,{...this.#e,filterStacktrace:S,prefix:p})),q&&r.push(`
|
|
8
|
-
|
|
9
|
-
`+L.renderError(q,{...this.#e,filterStacktrace:S,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:p})),b&&r.push(`
|
|
10
|
-
`,p+e.grey(this._styles.underline.suffix?e.underline(b):b)),r.join("")+`
|
|
11
|
-
`}_log(t,l){const o=["error","trace","warn"].includes(l)?"stderr":"stdout",n=o==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&n.isTTY?this.#s.update(o,t.split(`
|
|
12
|
-
`),0):V.n(t+`
|
|
13
|
-
`,n)}}exports.PrettyReporter=G;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty;var d=(s,e)=>I(s,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("node:process"),t=require("@visulima/colorize"),S=require("@visulima/error"),C=require("@visulima/inspector"),l=require("./format-label-v7wmniOZ.cjs"),O=require("./constants-BBH2bwRB.cjs"),R=require("./abstract-pretty-reporter-B14XYOWC.cjs"),F=require("./get-longest-label-DXpzhu5N.cjs"),V=require("./write-stream-Bgxqp0HI.cjs"),Y=d(s=>s&&typeof s=="object"&&"default"in s?s.default:s,"_interopDefaultCompat"),z=Y(t);var D=Object.defineProperty,k=d((s,e)=>D(s,"name",{value:e,configurable:!0}),"L");const x=k(s=>!/[\\/]pail[\\/]dist/.test(s),"pailFileFilter");class W extends R.AbstractPrettyReporter{static{d(this,"SimpleReporter")}static{k(this,"SimpleReporter")}#t;#r;#s;#n=!1;#i;#e;constructor(e={}){const{error:h,inspect:o,...n}=e;super({uppercase:{label:!0,...n.uppercase},...n}),this.#i={...l.u,indent:void 0,...o},this.#e={...h,color:{fileLine:t.green,hint:t.cyan,marker:t.red,message:t.red,method:t.greenBright,title:t.red}},this.#t=T.stdout,this.#r=T.stderr}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#n=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:h}=l.terminalSize();let o=h;typeof this._styles.messageLength=="number"&&(o=this._styles.messageLength);const{badge:n,context:E,date:c,error:v,file:u,groups:f,label:y,message:g,prefix:m,repeated:w,scope:_,suffix:b,traceError:L,type:P}=e,{color:j}=this._loggerTypes[P.name],q=j?z[j]:t.white,a=f.map(()=>" ").join(""),r=[];if(f.length>0&&r.push(a+t.grey("["+f.at(-1)+"]")+" "),c&&r.push(t.grey(this._styles.dateFormatter(typeof c=="string"?new Date(c):c))+" "),n)r.push(t.bold(q(n)));else{const i=R.s(this._loggerTypes);i.length>0&&r.push(t.grey(" ".repeat(i.length)))}const M=F.s(this._loggerTypes);y?r.push(t.bold(q(l.n(y,this._styles)))+" "," ".repeat(M.length-l.stringLength(y))):r.push(" ".repeat(M.length+1)),w&&r.push(t.bgGrey.white("["+w+"x]")+" "),Array.isArray(_)&&_.length>0&&r.push(t.grey("["+_.join(" > ")+"]")+" "),m&&r.push(t.grey("["+(this._styles.underline.prefix?t.underline(m):m)+"]")+" ");const A=l.stringLength(r.join(""));if(g!==O.EMPTY_SYMBOL){const i=typeof g=="string"?g:C.inspect(g,this.#i);r.push(a+l.wrapAnsi(i,o-3,{hard:!0,trim:!1,wordWrap:!0}))}if(E){let i=!1;r.push(...E.map(p=>{if(p instanceof Error)return i=!0,`
|
|
2
|
-
|
|
3
|
-
`+S.renderError(p,{...this.#e,filterStacktrace:x,prefix:a});if(typeof p=="object")return" "+C.inspect(p,this.#i);const B=(i?`
|
|
4
|
-
|
|
5
|
-
`:" ")+p;return i=!1,B}))}if(v&&r.push(S.renderError(v,{...this.#e,filterStacktrace:x,prefix:a})),L&&r.push(`
|
|
6
|
-
|
|
7
|
-
`+S.renderError(L,{...this.#e,filterStacktrace:x,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:a})),b&&r.push(" "+a+t.grey(this._styles.underline.suffix?t.underline(b):b)),u){const i=u.name+(u.line?":"+u.line:"");r.push(`
|
|
8
|
-
`,t.grey("Caller: ")," ".repeat(A-8),i,`
|
|
9
|
-
`)}return r.join("")}_log(e,h){const o=["error","trace","warn"].includes(h)?"stderr":"stdout",n=o==="stderr"?this.#r:this.#t;this.#n&&this.#s!==void 0&&n.isTTY?this.#s.update(o,e.split(`
|
|
10
|
-
`),0):V.n(e+`
|
|
11
|
-
`,n)}}exports.SimpleReporter=W;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
var O=Object.defineProperty;var _=(n,e)=>O(n,"name",{value:e,configurable:!0});import{stdout as P,stderr as V}from"node:process";import Y,{green as z,cyan as W,red as x,greenBright as D,white as G,grey as o,bold as k,bgGrey as q,underline as A}from"@visulima/colorize";import{renderError as b}from"@visulima/error";import{inspect as C}from"@visulima/inspector";import{u as H,t as J,n as K,s as I,w as N}from"./format-label-mKzVo7-U.mjs";import{E as Q}from"./constants-BMS51p6Y.mjs";import{A as U,s as X}from"./abstract-pretty-reporter-DgXRHEj-.mjs";import{s as Z}from"./get-longest-label-4ISUsE2q.mjs";import{n as ee}from"./write-stream-C17GXSxA.mjs";var te=Object.defineProperty,R=_((n,e)=>te(n,"name",{value:e,configurable:!0}),"L");const w=R(n=>!/[\\/]pail[\\/]dist/.test(n),"pailFileFilter");class ue extends U{static{_(this,"SimpleReporter")}static{R(this,"SimpleReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:h,inspect:i,...s}=e;super({uppercase:{label:!0,...s.uppercase},...s}),this.#i={...H,indent:void 0,...i},this.#e={...h,color:{fileLine:z,hint:W,marker:x,message:x,method:D,title:x}},this.#t=P,this.#r=V}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:h}=J();let i=h;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:s,context:E,date:l,error:v,file:c,groups:f,label:m,message:u,prefix:g,repeated:S,scope:d,suffix:y,traceError:j,type:$}=e,{color:M}=this._loggerTypes[$.name],L=M?Y[M]:G,a=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(a+o("["+f.at(-1)+"]")+" "),l&&t.push(o(this._styles.dateFormatter(typeof l=="string"?new Date(l):l))+" "),s)t.push(k(L(s)));else{const r=X(this._loggerTypes);r.length>0&&t.push(o(" ".repeat(r.length)))}const T=Z(this._loggerTypes);m?t.push(k(L(K(m,this._styles)))+" "," ".repeat(T.length-I(m))):t.push(" ".repeat(T.length+1)),S&&t.push(q.white("["+S+"x]")+" "),Array.isArray(d)&&d.length>0&&t.push(o("["+d.join(" > ")+"]")+" "),g&&t.push(o("["+(this._styles.underline.prefix?A(g):g)+"]")+" ");const B=I(t.join(""));if(u!==Q){const r=typeof u=="string"?u:C(u,this.#i);t.push(a+N(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(E){let r=!1;t.push(...E.map(p=>{if(p instanceof Error)return r=!0,`
|
|
2
|
-
|
|
3
|
-
`+b(p,{...this.#e,filterStacktrace:w,prefix:a});if(typeof p=="object")return" "+C(p,this.#i);const F=(r?`
|
|
4
|
-
|
|
5
|
-
`:" ")+p;return r=!1,F}))}if(v&&t.push(b(v,{...this.#e,filterStacktrace:w,prefix:a})),j&&t.push(`
|
|
6
|
-
|
|
7
|
-
`+b(j,{...this.#e,filterStacktrace:w,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:a})),y&&t.push(" "+a+o(this._styles.underline.suffix?A(y):y)),c){const r=c.name+(c.line?":"+c.line:"");t.push(`
|
|
8
|
-
`,o("Caller: ")," ".repeat(B-8),r,`
|
|
9
|
-
`)}return t.join("")}_log(e,h){const i=["error","trace","warn"].includes(h)?"stderr":"stdout",s=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&s.isTTY?this.#s.update(i,e.split(`
|
|
10
|
-
`),0):ee(e+`
|
|
11
|
-
`,s)}}export{ue as SimpleReporter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var n=(s,r)=>u(s,"name",{value:r,configurable:!0});const f=require("@visulima/error/error"),p=require("./constants-BBH2bwRB.cjs");var h=Object.defineProperty,b=n((s,r)=>h(s,"name",{value:r,configurable:!0}),"p");class m{static{n(this,"AbstractJsonReporter")}static{b(this,"AbstractJsonReporter")}stringify;errorOptions;constructor(r={}){this.errorOptions=r.error??{}}setStringify(r){this.stringify=r}log(r){const{context:a,error:c,file:t,message:l,type:g,...e}=r;if(e.label&&(e.label=e.label.trim()),t&&(e.file=t.name+":"+t.line+(t.column?":"+t.column:"")),l===p.EMPTY_SYMBOL?e.message=void 0:e.message=l,c&&(e.error=f.serializeError(c,this.errorOptions)),a){const i=[];for(const o of a)o!==p.EMPTY_SYMBOL&&(o instanceof Error?i.push(f.serializeError(o,this.errorOptions)):i.push(o));e.context=i}this._log(this.stringify(e),g.level)}}exports.AbstractJsonReporter=m;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var U=Object.defineProperty;var e=(D,u)=>U(D,"name",{value:u,configurable:!0});import l from"node:process";import{execFileSync as K}from"node:child_process";import d from"node:fs";import Z from"node:tty";import{yellow as x,magenta as V,bold as k,red as Y,cyan as q,green as $,grey as H,underline as J}from"@visulima/colorize";const R=80,W=24,N=e((D,u,{shell:F,env:E}={})=>K(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:E}).trim(),"exec$1"),m=e((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),z=e((D,u)=>{const{columns:F,rows:E}=m(D,u);if(!(Number.isNaN(F)||Number.isNaN(E))&&!(F===R&&E===W))return{columns:F,rows:E}},"createIfNotDefault");function vD(){const{env:D,stdout:u,stderr:F}=l;if(u?.columns&&u?.rows)return m(u.columns,u.rows);if(F?.columns&&F?.rows)return m(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return m(D.COLUMNS,D.LINES);const E={columns:R,rows:W};return l.platform==="win32"?y()??E:l.platform==="darwin"?O()??y()??E:O()??y()??Q()??E}e(vD,"terminalSize");const O=e(()=>{try{const D=l.platform==="darwin"?d.constants.O_EVTONLY|d.constants.O_NONBLOCK:d.constants.O_NONBLOCK,{columns:u,rows:F}=Z.WriteStream(d.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),y=e(()=>{try{const D=N("tput",["cols"],{env:{TERM:"dumb",...l.env}}),u=N("tput",["lines"],{env:{TERM:"dumb",...l.env}});if(D&&u)return z(D,u)}catch{}},"tput"),Q=e(()=>{try{const D=N("resize",["-u"]).match(/\d+/g);if(D.length===2)return z(D[0],D[1])}catch{}},"resize");function X({onlyFirst:D=!1}={}){const F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}e(X,"ansiRegex");const DD=X();function _(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(DD,"")}e(_,"stripAnsi");function uD(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(uD,"isAmbiguous");function FD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}e(FD,"isFullWidth");function ED(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(ED,"isWide");function CD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}e(CD,"validate");function eD(D,{ambiguousAsWide:u=!1}={}){return CD(D),FD(D)||ED(D)||u&&uD(D)?2:1}e(eD,"eastAsianWidth");const BD=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"),tD=new Intl.Segmenter,nD=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function f(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(E||(D=_(D)),D.length===0)return 0;let B=0;const r={ambiguousAsWide:!F};for(const{segment:n}of tD.segment(D)){const C=n.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=8203&&C<=8207||C===65279)&&!(C>=768&&C<=879||C>=6832&&C<=6911||C>=7616&&C<=7679||C>=8400&&C<=8447||C>=65056&&C<=65071)&&!(C>=55296&&C<=57343)&&!(C>=65024&&C<=65039)&&!nD.test(n)){if(BD().test(n)){B+=2;continue}B+=eD(C,r)}}return B}e(f,"stringWidth");const S=10,T=e((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),I=e((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),L=e((D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,"wrapAnsi16m"),t={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(t.modifier);const rD=Object.keys(t.color),iD=Object.keys(t.bgColor);[...rD,...iD];function oD(){const D=new Map;for(const[u,F]of Object.entries(t)){for(const[E,B]of Object.entries(F))t[E]={open:`\x1B[${B[0]}m`,close:`\x1B[${B[1]}m`},F[E]=t[E],D.set(B[0],B[1]);Object.defineProperty(t,u,{value:F,enumerable:!1})}return Object.defineProperty(t,"codes",{value:D,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=T(),t.color.ansi256=I(),t.color.ansi16m=L(),t.bgColor.ansi=T(S),t.bgColor.ansi256=I(S),t.bgColor.ansi16m=L(S),Object.defineProperties(t,{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(r=>r+r).join(""));const B=Number.parseInt(E,16);return[B>>16&255,B>>8&255,B&255]},"value"),enumerable:!1},hexToAnsi256:{value:e(u=>t.rgbToAnsi256(...t.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,B;if(u>=232)F=((u-232)*10+8)/255,E=F,B=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,E=Math.floor(C/6)/5,B=C%6/5}const r=Math.max(F,E,B)*2;if(r===0)return 30;let n=30+(Math.round(B)<<2|Math.round(E)<<1|Math.round(F));return r===2&&(n+=60),n},"value"),enumerable:!1},rgbToAnsi:{value:e((u,F,E)=>t.ansi256ToAnsi(t.rgbToAnsi256(u,F,E)),"value"),enumerable:!1},hexToAnsi:{value:e(u=>t.ansi256ToAnsi(t.hexToAnsi256(u)),"value"),enumerable:!1}}),t}e(oD,"assembleStyles");const AD=oD(),b=new Set(["\x1B",""]),sD=39,v="\x07",P="[",aD="]",G="m",h=`${aD}8;;`,M=e(D=>`${b.values().next().value}${P}${D}${G}`,"wrapAnsiCode"),j=e(D=>`${b.values().next().value}${h}${D}${v}`,"wrapAnsiHyperlink"),lD=e(D=>D.split(" ").map(u=>f(u)),"wordLengths"),w=e((D,u,F)=>{const E=[...u];let B=!1,r=!1,n=f(_(D.at(-1)));for(const[C,A]of E.entries()){const c=f(A);if(n+c<=F?D[D.length-1]+=A:(D.push(A),n=0),b.has(A)&&(B=!0,r=E.slice(C+1,C+1+h.length).join("")===h),B){r?A===v&&(B=!1,r=!1):A===G&&(B=!1);continue}n+=c,n===F&&C<E.length-1&&(D.push(""),n=0)}!n&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),cD=e(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(f(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),fD=e((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let E="",B,r;const n=lD(D);let C=[""];for(const[o,s]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let i=f(C.at(-1));if(o!==0&&(i>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),i=0),(i>0||F.trim===!1)&&(C[C.length-1]+=" ",i++)),F.hard&&n[o]>u){const a=u-i,g=1+Math.floor((n[o]-a-1)/u);Math.floor((n[o]-1)/u)<g&&C.push(""),w(C,s,u);continue}if(i+n[o]>u&&i>0&&n[o]>0){if(F.wordWrap===!1&&i<u){w(C,s,u);continue}C.push("")}if(i+n[o]>u&&F.wordWrap===!1){w(C,s,u);continue}C[C.length-1]+=s}F.trim!==!1&&(C=C.map(o=>cD(o)));const A=C.join(`
|
|
2
|
-
`),c=[...A];let p=0;for(const[o,s]of c.entries()){if(E+=s,b.has(s)){const{groups:a}=new RegExp(`(?:\\${P}(?<code>\\d+)m|\\${h}(?<uri>.*)${v})`).exec(A.slice(p))||{groups:{}};if(a.code!==void 0){const g=Number.parseFloat(a.code);B=g===sD?void 0:g}else a.uri!==void 0&&(r=a.uri.length===0?void 0:a.uri)}const i=AD.codes.get(Number(B));c[o+1]===`
|
|
3
|
-
`?(r&&(E+=j("")),B&&i&&(E+=M(i))):s===`
|
|
4
|
-
`&&(B&&i&&(E+=M(B)),r&&(E+=j(r))),p+=s.length}return E},"exec");function $D(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
-
`,`
|
|
6
|
-
`).split(`
|
|
7
|
-
`).map(E=>fD(E,u,F)).join(`
|
|
8
|
-
`)}e($D,"wrapAnsi");const gD=new Intl.Segmenter;function OD(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=_(D)),D===""))return 0;let F=0;for(const E of gD.segment(D))F++;return F}e(OD,"stringLength");var dD=Object.defineProperty,mD=e((D,u)=>dD(D,"name",{value:u,configurable:!0}),"t");const TD={indent:2,quoteStyle:"single",stylize:mD((D,u)=>{const F={bigint:x,boolean:x,date:V,null:k,number:x,regexp:Y,special:q,string:$,symbol:$,undefined:H};return F[u]===void 0?D:F[u](D)},"stylize")};var hD=Object.defineProperty,bD=e((D,u)=>hD(D,"name",{value:u,configurable:!0}),"o");const ID=bD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?J(F):F,u.bold.label&&(F=k(F)),F},"formatLabel");export{ID as n,OD as s,vD as t,TD as u,$D as w};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";var q=Object.defineProperty;var e=(D,u)=>q(D,"name",{value:u,configurable:!0});const G=require("node:process"),U=require("node:child_process"),K=require("node:fs"),Z=require("node:tty"),o=require("@visulima/colorize"),N=e(D=>D&&typeof D=="object"&&"default"in D?D.default:D,"_interopDefaultCompat"),c=N(G),h=N(K),V=N(Z),k=80,R=24,S=e((D,u,{shell:F,env:E}={})=>U.execFileSync(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:E}).trim(),"exec$1"),b=e((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),W=e((D,u)=>{const{columns:F,rows:E}=b(D,u);if(!(Number.isNaN(F)||Number.isNaN(E))&&!(F===k&&E===R))return{columns:F,rows:E}},"createIfNotDefault");function Y(){const{env:D,stdout:u,stderr:F}=c;if(u?.columns&&u?.rows)return b(u.columns,u.rows);if(F?.columns&&F?.rows)return b(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return b(D.COLUMNS,D.LINES);const E={columns:k,rows:R};return c.platform==="win32"?y()??E:c.platform==="darwin"?O()??y()??E:O()??y()??H()??E}e(Y,"terminalSize");const O=e(()=>{try{const D=c.platform==="darwin"?h.constants.O_EVTONLY|h.constants.O_NONBLOCK:h.constants.O_NONBLOCK,{columns:u,rows:F}=V.WriteStream(h.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),y=e(()=>{try{const D=S("tput",["cols"],{env:{TERM:"dumb",...c.env}}),u=S("tput",["lines"],{env:{TERM:"dumb",...c.env}});if(D&&u)return W(D,u)}catch{}},"tput"),H=e(()=>{try{const D=S("resize",["-u"]).match(/\d+/g);if(D.length===2)return W(D[0],D[1])}catch{}},"resize");function J({onlyFirst:D=!1}={}){const F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}e(J,"ansiRegex");const Q=J();function v(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(Q,"")}e(v,"stripAnsi");function X(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(X,"isAmbiguous");function DD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}e(DD,"isFullWidth");function uD(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(uD,"isWide");function FD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}e(FD,"validate");function ED(D,{ambiguousAsWide:u=!1}={}){return FD(D),DD(D)||uD(D)||u&&X(D)?2:1}e(ED,"eastAsianWidth");const CD=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"),eD=new Intl.Segmenter,tD=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function g(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(E||(D=v(D)),D.length===0)return 0;let t=0;const r={ambiguousAsWide:!F};for(const{segment:n}of eD.segment(D)){const C=n.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=8203&&C<=8207||C===65279)&&!(C>=768&&C<=879||C>=6832&&C<=6911||C>=7616&&C<=7679||C>=8400&&C<=8447||C>=65056&&C<=65071)&&!(C>=55296&&C<=57343)&&!(C>=65024&&C<=65039)&&!tD.test(n)){if(CD().test(n)){t+=2;continue}t+=ED(C,r)}}return t}e(g,"stringWidth");const _=10,T=e((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),I=e((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),L=e((D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,"wrapAnsi16m"),B={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(B.modifier);const BD=Object.keys(B.color),nD=Object.keys(B.bgColor);[...BD,...nD];function rD(){const D=new Map;for(const[u,F]of Object.entries(B)){for(const[E,t]of Object.entries(F))B[E]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[E]=B[E],D.set(t[0],t[1]);Object.defineProperty(B,u,{value:F,enumerable:!1})}return Object.defineProperty(B,"codes",{value:D,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=T(),B.color.ansi256=I(),B.color.ansi16m=L(),B.bgColor.ansi=T(_),B.bgColor.ansi256=I(_),B.bgColor.ansi16m=L(_),Object.defineProperties(B,{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(r=>r+r).join(""));const t=Number.parseInt(E,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:e(u=>B.rgbToAnsi256(...B.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 r=Math.max(F,E,t)*2;if(r===0)return 30;let n=30+(Math.round(t)<<2|Math.round(E)<<1|Math.round(F));return r===2&&(n+=60),n},"value"),enumerable:!1},rgbToAnsi:{value:e((u,F,E)=>B.ansi256ToAnsi(B.rgbToAnsi256(u,F,E)),"value"),enumerable:!1},hexToAnsi:{value:e(u=>B.ansi256ToAnsi(B.hexToAnsi256(u)),"value"),enumerable:!1}}),B}e(rD,"assembleStyles");const iD=rD(),p=new Set(["\x1B",""]),oD=39,$="\x07",z="[",sD="]",P="m",m=`${sD}8;;`,M=e(D=>`${p.values().next().value}${z}${D}${P}`,"wrapAnsiCode"),j=e(D=>`${p.values().next().value}${m}${D}${$}`,"wrapAnsiHyperlink"),AD=e(D=>D.split(" ").map(u=>g(u)),"wordLengths"),w=e((D,u,F)=>{const E=[...u];let t=!1,r=!1,n=g(v(D.at(-1)));for(const[C,A]of E.entries()){const f=g(A);if(n+f<=F?D[D.length-1]+=A:(D.push(A),n=0),p.has(A)&&(t=!0,r=E.slice(C+1,C+1+m.length).join("")===m),t){r?A===$&&(t=!1,r=!1):A===P&&(t=!1);continue}n+=f,n===F&&C<E.length-1&&(D.push(""),n=0)}!n&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),aD=e(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(g(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,r;const n=AD(D);let C=[""];for(const[s,a]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let i=g(C.at(-1));if(s!==0&&(i>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),i=0),(i>0||F.trim===!1)&&(C[C.length-1]+=" ",i++)),F.hard&&n[s]>u){const l=u-i,d=1+Math.floor((n[s]-l-1)/u);Math.floor((n[s]-1)/u)<d&&C.push(""),w(C,a,u);continue}if(i+n[s]>u&&i>0&&n[s]>0){if(F.wordWrap===!1&&i<u){w(C,a,u);continue}C.push("")}if(i+n[s]>u&&F.wordWrap===!1){w(C,a,u);continue}C[C.length-1]+=a}F.trim!==!1&&(C=C.map(s=>aD(s)));const A=C.join(`
|
|
2
|
-
`),f=[...A];let x=0;for(const[s,a]of f.entries()){if(E+=a,p.has(a)){const{groups:l}=new RegExp(`(?:\\${z}(?<code>\\d+)m|\\${m}(?<uri>.*)${$})`).exec(A.slice(x))||{groups:{}};if(l.code!==void 0){const d=Number.parseFloat(l.code);t=d===oD?void 0:d}else l.uri!==void 0&&(r=l.uri.length===0?void 0:l.uri)}const i=iD.codes.get(Number(t));f[s+1]===`
|
|
3
|
-
`?(r&&(E+=j("")),t&&i&&(E+=M(i))):a===`
|
|
4
|
-
`&&(t&&i&&(E+=M(t)),r&&(E+=j(r))),x+=a.length}return E},"exec");function cD(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
-
`,`
|
|
6
|
-
`).split(`
|
|
7
|
-
`).map(E=>lD(E,u,F)).join(`
|
|
8
|
-
`)}e(cD,"wrapAnsi");const fD=new Intl.Segmenter;function gD(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=v(D)),D===""))return 0;let F=0;for(const E of fD.segment(D))F++;return F}e(gD,"stringLength");var dD=Object.defineProperty,hD=e((D,u)=>dD(D,"name",{value:u,configurable:!0}),"t");const bD={indent:2,quoteStyle:"single",stylize:hD((D,u)=>{const F={bigint:o.yellow,boolean:o.yellow,date:o.magenta,null:o.bold,number:o.yellow,regexp:o.red,special:o.cyan,string:o.green,symbol:o.green,undefined:o.grey};return F[u]===void 0?D:F[u](D)},"stylize")};var mD=Object.defineProperty,pD=e((D,u)=>mD(D,"name",{value:u,configurable:!0}),"o");const xD=pD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?o.underline(F):F,u.bold.label&&(F=o.bold(F)),F},"formatLabel");exports.n=xD;exports.stringLength=gD;exports.terminalSize=Y;exports.u=bD;exports.wrapAnsi=cD;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var n=(r,e)=>m(r,"name",{value:e,configurable:!0});const u=require("safe-stable-stringify"),p=require("./constants-BBH2bwRB.cjs"),L=require("./write-console-log-3G15muTS.cjs"),y=require("./get-longest-label-DXpzhu5N.cjs");var b=Object.defineProperty,v=n((r,e)=>b(r,"name",{value:e,configurable:!0}),"t");class w{static{n(this,"i")}static{v(this,"RawReporter")}log(e){const{context:t=[],message:s,type:o}=e;L.t(o.level)(s,...t)}}var _=Object.defineProperty,x=n((r,e)=>_(r,"name",{value:e,configurable:!0}),"a");const M=x(r=>r===void 0?[]:Array.isArray(r)?r:[r],"arrayify");var T=Object.defineProperty,E=n((r,e)=>T(r,"name",{value:e,configurable:!0}),"g");const R=E((r,e)=>{const t={...r};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var S=Object.defineProperty,f=n((r,e)=>S(r,"name",{value:e,configurable:!0}),"l");class d{static{n(this,"PailBrowserImpl")}static{f(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=u.configure({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=R(p.LOG_TYPES,e.types??{}),this.longestLabel=y.s(this.types),this.logLevels={...p.EXTENDED_RFC_5424_LOG_LEVELS,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=M(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new w),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)})}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}else this._logger("warn",!1,{message:"Timer not found",prefix:e})}group(e="console.group"){typeof window>"u"?this.groups.push(e):console.group(e)}groupEnd(){typeof window>"u"?this.groups.pop():console.groupEnd()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const o={badge:void 0,context:void 0,error:void 0,label:void 0,message:p.EMPTY_SYMBOL,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};if(o.type={level:t.logLevel,name:e},o.groups=this.groups,o.scope=this.scopeName,o.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)o.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(o.context=i),h&&(o.prefix=h),a&&(o.suffix=a),o.message=g}else o.message=s[0];else s.length>1&&typeof s[0]=="string"?(o.message=s[0],o.context=s.slice(1)):o.message=s[0];return t.logLevel==="trace"&&(o.traceError=new Error("Trace")),t.badge&&(o.badge=t.badge),t.label&&(o.label=t.label),o}_logger(e,t,...s){if(this.disabled)return;const o=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[o]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=f((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const c={...this.lastLog.object};l>1&&(c.repeated=l),this._report(c,t),this.lastLog.count=1}if(a){for(const c of this.processors)i={...c.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const P=d;exports.PailBrowser=P;exports.PailBrowserImpl=d;
|