@putout/bundle 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle/putout.js CHANGED
@@ -35,6 +35,228 @@ var global$1 = (typeof global !== "undefined" ? global :
35
35
  typeof self !== "undefined" ? self :
36
36
  typeof window !== "undefined" ? window : {});
37
37
 
38
+ // shim for using process in browser
39
+ // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
40
+
41
+ function defaultSetTimout() {
42
+ throw new Error('setTimeout has not been defined');
43
+ }
44
+ function defaultClearTimeout () {
45
+ throw new Error('clearTimeout has not been defined');
46
+ }
47
+ var cachedSetTimeout = defaultSetTimout;
48
+ var cachedClearTimeout = defaultClearTimeout;
49
+ if (typeof global$1.setTimeout === 'function') {
50
+ cachedSetTimeout = setTimeout;
51
+ }
52
+ if (typeof global$1.clearTimeout === 'function') {
53
+ cachedClearTimeout = clearTimeout;
54
+ }
55
+
56
+ function runTimeout(fun) {
57
+ if (cachedSetTimeout === setTimeout) {
58
+ //normal enviroments in sane situations
59
+ return setTimeout(fun, 0);
60
+ }
61
+ // if setTimeout wasn't available but was latter defined
62
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
63
+ cachedSetTimeout = setTimeout;
64
+ return setTimeout(fun, 0);
65
+ }
66
+ try {
67
+ // when when somebody has screwed with setTimeout but no I.E. maddness
68
+ return cachedSetTimeout(fun, 0);
69
+ } catch(e){
70
+ try {
71
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
72
+ return cachedSetTimeout.call(null, fun, 0);
73
+ } catch(e){
74
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
75
+ return cachedSetTimeout.call(this, fun, 0);
76
+ }
77
+ }
78
+
79
+
80
+ }
81
+ function runClearTimeout(marker) {
82
+ if (cachedClearTimeout === clearTimeout) {
83
+ //normal enviroments in sane situations
84
+ return clearTimeout(marker);
85
+ }
86
+ // if clearTimeout wasn't available but was latter defined
87
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
88
+ cachedClearTimeout = clearTimeout;
89
+ return clearTimeout(marker);
90
+ }
91
+ try {
92
+ // when when somebody has screwed with setTimeout but no I.E. maddness
93
+ return cachedClearTimeout(marker);
94
+ } catch (e){
95
+ try {
96
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
97
+ return cachedClearTimeout.call(null, marker);
98
+ } catch (e){
99
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
100
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
101
+ return cachedClearTimeout.call(this, marker);
102
+ }
103
+ }
104
+
105
+
106
+
107
+ }
108
+ var queue = [];
109
+ var draining = false;
110
+ var currentQueue;
111
+ var queueIndex = -1;
112
+
113
+ function cleanUpNextTick() {
114
+ if (!draining || !currentQueue) {
115
+ return;
116
+ }
117
+ draining = false;
118
+ if (currentQueue.length) {
119
+ queue = currentQueue.concat(queue);
120
+ } else {
121
+ queueIndex = -1;
122
+ }
123
+ if (queue.length) {
124
+ drainQueue();
125
+ }
126
+ }
127
+
128
+ function drainQueue() {
129
+ if (draining) {
130
+ return;
131
+ }
132
+ var timeout = runTimeout(cleanUpNextTick);
133
+ draining = true;
134
+
135
+ var len = queue.length;
136
+ while(len) {
137
+ currentQueue = queue;
138
+ queue = [];
139
+ while (++queueIndex < len) {
140
+ if (currentQueue) {
141
+ currentQueue[queueIndex].run();
142
+ }
143
+ }
144
+ queueIndex = -1;
145
+ len = queue.length;
146
+ }
147
+ currentQueue = null;
148
+ draining = false;
149
+ runClearTimeout(timeout);
150
+ }
151
+ function nextTick(fun) {
152
+ var args = new Array(arguments.length - 1);
153
+ if (arguments.length > 1) {
154
+ for (var i = 1; i < arguments.length; i++) {
155
+ args[i - 1] = arguments[i];
156
+ }
157
+ }
158
+ queue.push(new Item(fun, args));
159
+ if (queue.length === 1 && !draining) {
160
+ runTimeout(drainQueue);
161
+ }
162
+ }
163
+ // v8 likes predictible objects
164
+ function Item(fun, array) {
165
+ this.fun = fun;
166
+ this.array = array;
167
+ }
168
+ Item.prototype.run = function () {
169
+ this.fun.apply(null, this.array);
170
+ };
171
+ var title = 'browser';
172
+ var platform$1 = 'browser';
173
+ var browser$1 = true;
174
+ var env = {};
175
+ var argv = [];
176
+ var version = ''; // empty string to avoid regexp issues
177
+ var versions = {};
178
+ var release$1 = {};
179
+ var config = {};
180
+
181
+ function noop$4() {}
182
+
183
+ var on = noop$4;
184
+ var addListener = noop$4;
185
+ var once$a = noop$4;
186
+ var off = noop$4;
187
+ var removeListener = noop$4;
188
+ var removeAllListeners = noop$4;
189
+ var emit = noop$4;
190
+
191
+ function binding(name) {
192
+ throw new Error('process.binding is not supported');
193
+ }
194
+
195
+ function cwd () { return '/' }
196
+ function chdir (dir) {
197
+ throw new Error('process.chdir is not supported');
198
+ }function umask() { return 0; }
199
+
200
+ // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
201
+ var performance$1 = global$1.performance || {};
202
+ var performanceNow =
203
+ performance$1.now ||
204
+ performance$1.mozNow ||
205
+ performance$1.msNow ||
206
+ performance$1.oNow ||
207
+ performance$1.webkitNow ||
208
+ function(){ return (new Date()).getTime() };
209
+
210
+ // generate timestamp or delta
211
+ // see http://nodejs.org/api/process.html#process_process_hrtime
212
+ function hrtime(previousTimestamp){
213
+ var clocktime = performanceNow.call(performance$1)*1e-3;
214
+ var seconds = Math.floor(clocktime);
215
+ var nanoseconds = Math.floor((clocktime%1)*1e9);
216
+ if (previousTimestamp) {
217
+ seconds = seconds - previousTimestamp[0];
218
+ nanoseconds = nanoseconds - previousTimestamp[1];
219
+ if (nanoseconds<0) {
220
+ seconds--;
221
+ nanoseconds += 1e9;
222
+ }
223
+ }
224
+ return [seconds,nanoseconds]
225
+ }
226
+
227
+ var startTime = new Date();
228
+ function uptime$1() {
229
+ var currentTime = new Date();
230
+ var dif = currentTime - startTime;
231
+ return dif / 1000;
232
+ }
233
+
234
+ var browser$1$1 = {
235
+ nextTick: nextTick,
236
+ title: title,
237
+ browser: browser$1,
238
+ env: env,
239
+ argv: argv,
240
+ version: version,
241
+ versions: versions,
242
+ on: on,
243
+ addListener: addListener,
244
+ once: once$a,
245
+ off: off,
246
+ removeListener: removeListener,
247
+ removeAllListeners: removeAllListeners,
248
+ emit: emit,
249
+ binding: binding,
250
+ cwd: cwd,
251
+ chdir: chdir,
252
+ umask: umask,
253
+ hrtime: hrtime,
254
+ platform: platform$1,
255
+ release: release$1,
256
+ config: config,
257
+ uptime: uptime$1
258
+ };
259
+
38
260
  var lookup = [];
39
261
  var revLookup = [];
40
262
  var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;
@@ -2012,256 +2234,37 @@ function isSlowBuffer (obj) {
2012
2234
  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0))
2013
2235
  }
2014
2236
 
2015
- // shim for using process in browser
2016
- // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
2017
-
2018
- function defaultSetTimout() {
2019
- throw new Error('setTimeout has not been defined');
2020
- }
2021
- function defaultClearTimeout () {
2022
- throw new Error('clearTimeout has not been defined');
2023
- }
2024
- var cachedSetTimeout = defaultSetTimout;
2025
- var cachedClearTimeout = defaultClearTimeout;
2026
- if (typeof global$1.setTimeout === 'function') {
2027
- cachedSetTimeout = setTimeout;
2028
- }
2029
- if (typeof global$1.clearTimeout === 'function') {
2030
- cachedClearTimeout = clearTimeout;
2031
- }
2032
-
2033
- function runTimeout(fun) {
2034
- if (cachedSetTimeout === setTimeout) {
2035
- //normal enviroments in sane situations
2036
- return setTimeout(fun, 0);
2037
- }
2038
- // if setTimeout wasn't available but was latter defined
2039
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
2040
- cachedSetTimeout = setTimeout;
2041
- return setTimeout(fun, 0);
2042
- }
2043
- try {
2044
- // when when somebody has screwed with setTimeout but no I.E. maddness
2045
- return cachedSetTimeout(fun, 0);
2046
- } catch(e){
2047
- try {
2048
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2049
- return cachedSetTimeout.call(null, fun, 0);
2050
- } catch(e){
2051
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
2052
- return cachedSetTimeout.call(this, fun, 0);
2053
- }
2054
- }
2055
-
2056
-
2057
- }
2058
- function runClearTimeout(marker) {
2059
- if (cachedClearTimeout === clearTimeout) {
2060
- //normal enviroments in sane situations
2061
- return clearTimeout(marker);
2062
- }
2063
- // if clearTimeout wasn't available but was latter defined
2064
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
2065
- cachedClearTimeout = clearTimeout;
2066
- return clearTimeout(marker);
2067
- }
2068
- try {
2069
- // when when somebody has screwed with setTimeout but no I.E. maddness
2070
- return cachedClearTimeout(marker);
2071
- } catch (e){
2072
- try {
2073
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2074
- return cachedClearTimeout.call(null, marker);
2075
- } catch (e){
2076
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
2077
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
2078
- return cachedClearTimeout.call(this, marker);
2079
- }
2080
- }
2081
-
2082
-
2083
-
2084
- }
2085
- var queue = [];
2086
- var draining = false;
2087
- var currentQueue;
2088
- var queueIndex = -1;
2089
-
2090
- function cleanUpNextTick() {
2091
- if (!draining || !currentQueue) {
2092
- return;
2093
- }
2094
- draining = false;
2095
- if (currentQueue.length) {
2096
- queue = currentQueue.concat(queue);
2097
- } else {
2098
- queueIndex = -1;
2099
- }
2100
- if (queue.length) {
2101
- drainQueue();
2102
- }
2103
- }
2104
-
2105
- function drainQueue() {
2106
- if (draining) {
2107
- return;
2108
- }
2109
- var timeout = runTimeout(cleanUpNextTick);
2110
- draining = true;
2111
-
2112
- var len = queue.length;
2113
- while(len) {
2114
- currentQueue = queue;
2115
- queue = [];
2116
- while (++queueIndex < len) {
2117
- if (currentQueue) {
2118
- currentQueue[queueIndex].run();
2119
- }
2120
- }
2121
- queueIndex = -1;
2122
- len = queue.length;
2123
- }
2124
- currentQueue = null;
2125
- draining = false;
2126
- runClearTimeout(timeout);
2127
- }
2128
- function nextTick(fun) {
2129
- var args = new Array(arguments.length - 1);
2130
- if (arguments.length > 1) {
2131
- for (var i = 1; i < arguments.length; i++) {
2132
- args[i - 1] = arguments[i];
2133
- }
2134
- }
2135
- queue.push(new Item(fun, args));
2136
- if (queue.length === 1 && !draining) {
2137
- runTimeout(drainQueue);
2138
- }
2139
- }
2140
- // v8 likes predictible objects
2141
- function Item(fun, array) {
2142
- this.fun = fun;
2143
- this.array = array;
2144
- }
2145
- Item.prototype.run = function () {
2146
- this.fun.apply(null, this.array);
2147
- };
2148
- var title = 'browser';
2149
- var platform$1 = 'browser';
2150
- var browser$1 = true;
2151
- var env$1 = {};
2152
- var argv = [];
2153
- var version = ''; // empty string to avoid regexp issues
2154
- var versions = {};
2155
- var release$1 = {};
2156
- var config = {};
2157
-
2158
- function noop$4() {}
2159
-
2160
- var on = noop$4;
2161
- var addListener = noop$4;
2162
- var once$a = noop$4;
2163
- var off = noop$4;
2164
- var removeListener = noop$4;
2165
- var removeAllListeners = noop$4;
2166
- var emit = noop$4;
2237
+ // MIT lisence
2238
+ // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
2167
2239
 
2168
- function binding(name) {
2169
- throw new Error('process.binding is not supported');
2240
+ function isatty() {
2241
+ return false;
2170
2242
  }
2171
2243
 
2172
- function cwd () { return '/' }
2173
- function chdir (dir) {
2174
- throw new Error('process.chdir is not supported');
2175
- }function umask() { return 0; }
2176
-
2177
- // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
2178
- var performance$1 = global$1.performance || {};
2179
- var performanceNow =
2180
- performance$1.now ||
2181
- performance$1.mozNow ||
2182
- performance$1.msNow ||
2183
- performance$1.oNow ||
2184
- performance$1.webkitNow ||
2185
- function(){ return (new Date()).getTime() };
2186
-
2187
- // generate timestamp or delta
2188
- // see http://nodejs.org/api/process.html#process_process_hrtime
2189
- function hrtime(previousTimestamp){
2190
- var clocktime = performanceNow.call(performance$1)*1e-3;
2191
- var seconds = Math.floor(clocktime);
2192
- var nanoseconds = Math.floor((clocktime%1)*1e9);
2193
- if (previousTimestamp) {
2194
- seconds = seconds - previousTimestamp[0];
2195
- nanoseconds = nanoseconds - previousTimestamp[1];
2196
- if (nanoseconds<0) {
2197
- seconds--;
2198
- nanoseconds += 1e9;
2199
- }
2200
- }
2201
- return [seconds,nanoseconds]
2244
+ function ReadStream() {
2245
+ throw new Error('tty.ReadStream is not implemented');
2202
2246
  }
2203
2247
 
2204
- var startTime = new Date();
2205
- function uptime$1() {
2206
- var currentTime = new Date();
2207
- var dif = currentTime - startTime;
2208
- return dif / 1000;
2248
+ function WriteStream() {
2249
+ throw new Error('tty.ReadStream is not implemented');
2209
2250
  }
2210
2251
 
2211
- var browser$1$1 = {
2212
- nextTick: nextTick,
2213
- title: title,
2214
- browser: browser$1,
2215
- env: env$1,
2216
- argv: argv,
2217
- version: version,
2218
- versions: versions,
2219
- on: on,
2220
- addListener: addListener,
2221
- once: once$a,
2222
- off: off,
2223
- removeListener: removeListener,
2224
- removeAllListeners: removeAllListeners,
2225
- emit: emit,
2226
- binding: binding,
2227
- cwd: cwd,
2228
- chdir: chdir,
2229
- umask: umask,
2230
- hrtime: hrtime,
2231
- platform: platform$1,
2232
- release: release$1,
2233
- config: config,
2234
- uptime: uptime$1
2252
+ var _polyfillNode_tty = {
2253
+ isatty: isatty,
2254
+ ReadStream: ReadStream,
2255
+ WriteStream: WriteStream
2235
2256
  };
2236
2257
 
2237
- var _polyfillNode_process = /*#__PURE__*/Object.freeze({
2258
+ var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
2238
2259
  __proto__: null,
2239
- addListener: addListener,
2240
- argv: argv,
2241
- binding: binding,
2242
- browser: browser$1,
2243
- chdir: chdir,
2244
- config: config,
2245
- cwd: cwd,
2246
- default: browser$1$1,
2247
- emit: emit,
2248
- env: env$1,
2249
- hrtime: hrtime,
2250
- nextTick: nextTick,
2251
- off: off,
2252
- on: on,
2253
- once: once$a,
2254
- platform: platform$1,
2255
- release: release$1,
2256
- removeAllListeners: removeAllListeners,
2257
- removeListener: removeListener,
2258
- title: title,
2259
- umask: umask,
2260
- uptime: uptime$1,
2261
- version: version,
2262
- versions: versions
2260
+ ReadStream: ReadStream,
2261
+ WriteStream: WriteStream,
2262
+ default: _polyfillNode_tty,
2263
+ isatty: isatty
2263
2264
  });
2264
2265
 
2266
+ var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
2267
+
2265
2268
  /*
2266
2269
  The MIT License (MIT)
2267
2270
 
@@ -2413,37 +2416,6 @@ var _polyfillNode_os$1 = /*#__PURE__*/Object.freeze({
2413
2416
 
2414
2417
  var require$$4 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_os$1);
2415
2418
 
2416
- // MIT lisence
2417
- // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
2418
-
2419
- function isatty() {
2420
- return false;
2421
- }
2422
-
2423
- function ReadStream() {
2424
- throw new Error('tty.ReadStream is not implemented');
2425
- }
2426
-
2427
- function WriteStream() {
2428
- throw new Error('tty.ReadStream is not implemented');
2429
- }
2430
-
2431
- var _polyfillNode_tty = {
2432
- isatty: isatty,
2433
- ReadStream: ReadStream,
2434
- WriteStream: WriteStream
2435
- };
2436
-
2437
- var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
2438
- __proto__: null,
2439
- ReadStream: ReadStream,
2440
- WriteStream: WriteStream,
2441
- default: _polyfillNode_tty,
2442
- isatty: isatty
2443
- });
2444
-
2445
- var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
2446
-
2447
2419
  var inherits$1;
2448
2420
  if (typeof Object.create === 'function'){
2449
2421
  inherits$1 = function inherits(ctor, superCtor) {
@@ -3172,8 +3144,6 @@ var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
3172
3144
 
3173
3145
  var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_util$1);
3174
3146
 
3175
- var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_process);
3176
-
3177
3147
  function _array_like_to_array(arr, len) {
3178
3148
  if (len == null || len > arr.length) len = arr.length;
3179
3149
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -3298,45 +3268,6 @@ function _non_iterable_rest() {
3298
3268
  function _non_iterable_spread() {
3299
3269
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3300
3270
  }
3301
- function _object_spread(target) {
3302
- for(var i = 1; i < arguments.length; i++){
3303
- var source = arguments[i] != null ? arguments[i] : {};
3304
- var ownKeys = Object.keys(source);
3305
- if (typeof Object.getOwnPropertySymbols === "function") {
3306
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3307
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3308
- }));
3309
- }
3310
- ownKeys.forEach(function(key) {
3311
- _define_property(target, key, source[key]);
3312
- });
3313
- }
3314
- return target;
3315
- }
3316
- function ownKeys(object, enumerableOnly) {
3317
- var keys = Object.keys(object);
3318
- if (Object.getOwnPropertySymbols) {
3319
- var symbols = Object.getOwnPropertySymbols(object);
3320
- if (enumerableOnly) {
3321
- symbols = symbols.filter(function(sym) {
3322
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3323
- });
3324
- }
3325
- keys.push.apply(keys, symbols);
3326
- }
3327
- return keys;
3328
- }
3329
- function _object_spread_props(target, source) {
3330
- source = source != null ? source : {};
3331
- if (Object.getOwnPropertyDescriptors) {
3332
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3333
- } else {
3334
- ownKeys(Object(source)).forEach(function(key) {
3335
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3336
- });
3337
- }
3338
- return target;
3339
- }
3340
3271
  function _possible_constructor_return(self, call) {
3341
3272
  if (call && (_type_of(call) === "object" || typeof call === "function")) {
3342
3273
  return call;
@@ -4466,6 +4397,62 @@ var require_js_tokens = __commonJS({
4466
4397
  };
4467
4398
  }
4468
4399
  });
4400
+ // node_modules/picocolors/picocolors.js
4401
+ var require_picocolors = __commonJS({
4402
+ "node_modules/picocolors/picocolors.js": function(exports2, module2) {
4403
+ var tty = require$$0$5;
4404
+ var isColorSupported = !("NO_COLOR" in {} || browser$1$1.argv.includes("--no-color")) && ("FORCE_COLOR" in {} || browser$1$1.argv.includes("--color") || "unix" === "win32" || tty.isatty(1) && browser$1$1.env.TERM !== "dumb" || "CI" in {});
4405
+ var formatter = function(open, close) {
4406
+ var replace = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : open;
4407
+ return function(input) {
4408
+ var string = "" + input;
4409
+ var index3 = string.indexOf(close, open.length);
4410
+ return ~index3 ? open + replaceClose(string, close, replace, index3) + close : open + string + close;
4411
+ };
4412
+ };
4413
+ var replaceClose = function(string, close, replace, index3) {
4414
+ var start = string.substring(0, index3) + replace;
4415
+ var end = string.substring(index3 + close.length);
4416
+ var nextIndex = end.indexOf(close);
4417
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
4418
+ };
4419
+ var createColors3 = function() {
4420
+ var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : isColorSupported;
4421
+ return {
4422
+ isColorSupported: enabled,
4423
+ reset: enabled ? function(s) {
4424
+ return "\x1b[0m".concat(s, "\x1b[0m");
4425
+ } : String,
4426
+ bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String,
4427
+ dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String,
4428
+ italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String,
4429
+ underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String,
4430
+ inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String,
4431
+ hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String,
4432
+ strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String,
4433
+ black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String,
4434
+ red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String,
4435
+ green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String,
4436
+ yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String,
4437
+ blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String,
4438
+ magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String,
4439
+ cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String,
4440
+ white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String,
4441
+ gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String,
4442
+ bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String,
4443
+ bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String,
4444
+ bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String,
4445
+ bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String,
4446
+ bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String,
4447
+ bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
4448
+ bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
4449
+ bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String
4450
+ };
4451
+ };
4452
+ module2.exports = createColors3();
4453
+ module2.exports.createColors = createColors3;
4454
+ }
4455
+ });
4469
4456
  // node_modules/jsesc/jsesc.js
4470
4457
  var require_jsesc = __commonJS({
4471
4458
  "node_modules/jsesc/jsesc.js": function(exports2, module2) {
@@ -4838,7 +4825,7 @@ var require_ms = __commonJS({
4838
4825
  // node_modules/debug/src/common.js
4839
4826
  var require_common = __commonJS({
4840
4827
  "node_modules/debug/src/common.js": function(exports2, module2) {
4841
- function setup2(env2) {
4828
+ function setup2(env) {
4842
4829
  createDebug.debug = createDebug;
4843
4830
  createDebug.default = createDebug;
4844
4831
  createDebug.coerce = coerce;
@@ -4847,8 +4834,8 @@ var require_common = __commonJS({
4847
4834
  createDebug.enabled = enabled;
4848
4835
  createDebug.humanize = require_ms();
4849
4836
  createDebug.destroy = destroy;
4850
- Object.keys(env2).forEach(function(key) {
4851
- createDebug[key] = env2[key];
4837
+ Object.keys(env).forEach(function(key) {
4838
+ createDebug[key] = env[key];
4852
4839
  });
4853
4840
  createDebug.names = [];
4854
4841
  createDebug.skips = [];
@@ -5178,25 +5165,25 @@ var require_has_flag = __commonJS({
5178
5165
  // node_modules/supports-color/index.js
5179
5166
  var require_supports_color = __commonJS({
5180
5167
  "node_modules/supports-color/index.js": function(exports2, module2) {
5181
- var tty2 = require$$1$3;
5182
- var hasFlag2 = require_has_flag();
5183
- var env2 = {};
5168
+ var tty = require$$0$5;
5169
+ var hasFlag = require_has_flag();
5170
+ var env = {};
5184
5171
  var forceColor;
5185
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
5172
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
5186
5173
  forceColor = 0;
5187
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
5174
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
5188
5175
  forceColor = 1;
5189
5176
  }
5190
- if ("FORCE_COLOR" in env2) {
5191
- if (env2.FORCE_COLOR === "true") {
5177
+ if ("FORCE_COLOR" in env) {
5178
+ if (env.FORCE_COLOR === "true") {
5192
5179
  forceColor = 1;
5193
- } else if (env2.FORCE_COLOR === "false") {
5180
+ } else if (env.FORCE_COLOR === "false") {
5194
5181
  forceColor = 0;
5195
5182
  } else {
5196
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
5183
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
5197
5184
  }
5198
5185
  }
5199
- function translateLevel2(level) {
5186
+ function translateLevel(level) {
5200
5187
  if (level === 0) {
5201
5188
  return false;
5202
5189
  }
@@ -5207,24 +5194,24 @@ var require_supports_color = __commonJS({
5207
5194
  has16m: level >= 3
5208
5195
  };
5209
5196
  }
5210
- function supportsColor2(haveStream, streamIsTTY) {
5197
+ function supportsColor(haveStream, streamIsTTY) {
5211
5198
  if (forceColor === 0) {
5212
5199
  return 0;
5213
5200
  }
5214
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
5201
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
5215
5202
  return 3;
5216
5203
  }
5217
- if (hasFlag2("color=256")) {
5204
+ if (hasFlag("color=256")) {
5218
5205
  return 2;
5219
5206
  }
5220
5207
  if (haveStream && !streamIsTTY && forceColor === void 0) {
5221
5208
  return 0;
5222
5209
  }
5223
5210
  var min = forceColor || 0;
5224
- if (env2.TERM === "dumb") {
5211
+ if (env.TERM === "dumb") {
5225
5212
  return min;
5226
5213
  }
5227
- if ("CI" in env2) {
5214
+ if ("CI" in env) {
5228
5215
  if ([
5229
5216
  "TRAVIS",
5230
5217
  "CIRCLECI",
@@ -5233,53 +5220,53 @@ var require_supports_color = __commonJS({
5233
5220
  "GITHUB_ACTIONS",
5234
5221
  "BUILDKITE"
5235
5222
  ].some(function(sign) {
5236
- return sign in env2;
5237
- }) || env2.CI_NAME === "codeship") {
5223
+ return sign in env;
5224
+ }) || env.CI_NAME === "codeship") {
5238
5225
  return 1;
5239
5226
  }
5240
5227
  return min;
5241
5228
  }
5242
- if ("TEAMCITY_VERSION" in env2) {
5243
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
5229
+ if ("TEAMCITY_VERSION" in env) {
5230
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
5244
5231
  }
5245
- if (env2.COLORTERM === "truecolor") {
5232
+ if (env.COLORTERM === "truecolor") {
5246
5233
  return 3;
5247
5234
  }
5248
- if ("TERM_PROGRAM" in env2) {
5249
- var version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
5250
- switch(env2.TERM_PROGRAM){
5235
+ if ("TERM_PROGRAM" in env) {
5236
+ var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
5237
+ switch(env.TERM_PROGRAM){
5251
5238
  case "iTerm.app":
5252
5239
  return version >= 3 ? 3 : 2;
5253
5240
  case "Apple_Terminal":
5254
5241
  return 2;
5255
5242
  }
5256
5243
  }
5257
- if (/-256(color)?$/i.test(env2.TERM)) {
5244
+ if (/-256(color)?$/i.test(env.TERM)) {
5258
5245
  return 2;
5259
5246
  }
5260
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
5247
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
5261
5248
  return 1;
5262
5249
  }
5263
- if ("COLORTERM" in env2) {
5250
+ if ("COLORTERM" in env) {
5264
5251
  return 1;
5265
5252
  }
5266
5253
  return min;
5267
5254
  }
5268
5255
  function getSupportLevel(stream) {
5269
- var level = supportsColor2(stream, stream && stream.isTTY);
5270
- return translateLevel2(level);
5256
+ var level = supportsColor(stream, stream && stream.isTTY);
5257
+ return translateLevel(level);
5271
5258
  }
5272
5259
  module2.exports = {
5273
5260
  supportsColor: getSupportLevel,
5274
- stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
5275
- stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
5261
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
5262
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
5276
5263
  };
5277
5264
  }
5278
5265
  });
5279
5266
  // node_modules/debug/src/node.js
5280
5267
  var require_node = __commonJS({
5281
5268
  "node_modules/debug/src/node.js": function(exports2, module2) {
5282
- var tty2 = require$$1$3;
5269
+ var tty = require$$0$5;
5283
5270
  var util = require$$2$1;
5284
5271
  exports2.init = init;
5285
5272
  exports2.log = log;
@@ -5297,8 +5284,8 @@ var require_node = __commonJS({
5297
5284
  1
5298
5285
  ];
5299
5286
  try {
5300
- var supportsColor2 = require_supports_color();
5301
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
5287
+ var supportsColor = require_supports_color();
5288
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
5302
5289
  exports2.colors = [
5303
5290
  20,
5304
5291
  21,
@@ -5399,7 +5386,7 @@ var require_node = __commonJS({
5399
5386
  return obj;
5400
5387
  }, {});
5401
5388
  function useColors() {
5402
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(browser$1$1.stderr.fd);
5389
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(browser$1$1.stderr.fd);
5403
5390
  }
5404
5391
  function formatArgs(args) {
5405
5392
  var _this = this, name = _this.namespace, useColors2 = _this.useColors;
@@ -8247,7 +8234,7 @@ __export(lib_exports, {
8247
8234
  return tsEnumMember$1;
8248
8235
  },
8249
8236
  TSExportAssignment: function() {
8250
- return tsExportAssignment;
8237
+ return tsExportAssignment$1;
8251
8238
  },
8252
8239
  TSExpressionWithTypeArguments: function() {
8253
8240
  return tsExpressionWithTypeArguments;
@@ -11046,7 +11033,7 @@ __export(lib_exports, {
11046
11033
  return tsEnumMember$1;
11047
11034
  },
11048
11035
  tSExportAssignment: function() {
11049
- return tsExportAssignment;
11036
+ return tsExportAssignment$1;
11050
11037
  },
11051
11038
  tSExpressionWithTypeArguments: function() {
11052
11039
  return tsExpressionWithTypeArguments;
@@ -11292,7 +11279,7 @@ __export(lib_exports, {
11292
11279
  return tsEnumMember$1;
11293
11280
  },
11294
11281
  tsExportAssignment: function() {
11295
- return tsExportAssignment;
11282
+ return tsExportAssignment$1;
11296
11283
  },
11297
11284
  tsExpressionWithTypeArguments: function() {
11298
11285
  return tsExpressionWithTypeArguments;
@@ -22164,7 +22151,7 @@ function tsNonNullExpression(expression2) {
22164
22151
  expression: expression2
22165
22152
  });
22166
22153
  }
22167
- function tsExportAssignment(expression2) {
22154
+ function tsExportAssignment$1(expression2) {
22168
22155
  return validateNode({
22169
22156
  type: "TSExportAssignment",
22170
22157
  expression: expression2
@@ -23924,8 +23911,8 @@ function isPlainObject(value1) {
23924
23911
  if (typeof value1 !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
23925
23912
  return false;
23926
23913
  }
23927
- var proto2 = Object.getPrototypeOf(value1);
23928
- return proto2 === null || Object.getPrototypeOf(proto2) === null;
23914
+ var proto = Object.getPrototypeOf(value1);
23915
+ return proto === null || Object.getPrototypeOf(proto) === null;
23929
23916
  }
23930
23917
  function valueToNode(value1) {
23931
23918
  if (value1 === void 0) {
@@ -41294,9 +41281,9 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
41294
41281
  this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
41295
41282
  kind: "destructuring"
41296
41283
  });
41297
- } else if (kind === "const" && !(this.match(58) || this.isContextual(102))) {
41284
+ } else if ((kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102))) {
41298
41285
  this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
41299
- kind: "const"
41286
+ kind: kind
41300
41287
  });
41301
41288
  }
41302
41289
  }
@@ -42741,789 +42728,13 @@ function getParserClass(pluginsFromOptions) {
42741
42728
  }
42742
42729
  // node_modules/@babel/highlight/lib/index.js
42743
42730
  var import_js_tokens = __toESM(require_js_tokens(), 1);
42744
- // node_modules/chalk/source/vendor/ansi-styles/index.js
42745
- var ANSI_BACKGROUND_OFFSET = 10;
42746
- var wrapAnsi16 = function() {
42747
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
42748
- return function(code2) {
42749
- return "\x1b[".concat(code2 + offset, "m");
42731
+ var import_picocolors = __toESM(require_picocolors(), 1);
42732
+ var colors = typeof browser$1$1 === "object" && (browser$1$1.env.FORCE_COLOR === "0" || browser$1$1.env.FORCE_COLOR === "false") ? (0, import_picocolors.createColors)(false) : import_picocolors.default;
42733
+ var compose = function(f, g) {
42734
+ return function(v) {
42735
+ return f(g(v));
42750
42736
  };
42751
42737
  };
42752
- var wrapAnsi256 = function() {
42753
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
42754
- return function(code2) {
42755
- return "\x1b[".concat(38 + offset, ";5;").concat(code2, "m");
42756
- };
42757
- };
42758
- var wrapAnsi16m = function() {
42759
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
42760
- return function(red, green, blue) {
42761
- return "\x1b[".concat(38 + offset, ";2;").concat(red, ";").concat(green, ";").concat(blue, "m");
42762
- };
42763
- };
42764
- var styles = {
42765
- modifier: {
42766
- reset: [
42767
- 0,
42768
- 0
42769
- ],
42770
- // 21 isn't widely supported and 22 does the same thing
42771
- bold: [
42772
- 1,
42773
- 22
42774
- ],
42775
- dim: [
42776
- 2,
42777
- 22
42778
- ],
42779
- italic: [
42780
- 3,
42781
- 23
42782
- ],
42783
- underline: [
42784
- 4,
42785
- 24
42786
- ],
42787
- overline: [
42788
- 53,
42789
- 55
42790
- ],
42791
- inverse: [
42792
- 7,
42793
- 27
42794
- ],
42795
- hidden: [
42796
- 8,
42797
- 28
42798
- ],
42799
- strikethrough: [
42800
- 9,
42801
- 29
42802
- ]
42803
- },
42804
- color: {
42805
- black: [
42806
- 30,
42807
- 39
42808
- ],
42809
- red: [
42810
- 31,
42811
- 39
42812
- ],
42813
- green: [
42814
- 32,
42815
- 39
42816
- ],
42817
- yellow: [
42818
- 33,
42819
- 39
42820
- ],
42821
- blue: [
42822
- 34,
42823
- 39
42824
- ],
42825
- magenta: [
42826
- 35,
42827
- 39
42828
- ],
42829
- cyan: [
42830
- 36,
42831
- 39
42832
- ],
42833
- white: [
42834
- 37,
42835
- 39
42836
- ],
42837
- // Bright color
42838
- blackBright: [
42839
- 90,
42840
- 39
42841
- ],
42842
- gray: [
42843
- 90,
42844
- 39
42845
- ],
42846
- // Alias of `blackBright`
42847
- grey: [
42848
- 90,
42849
- 39
42850
- ],
42851
- // Alias of `blackBright`
42852
- redBright: [
42853
- 91,
42854
- 39
42855
- ],
42856
- greenBright: [
42857
- 92,
42858
- 39
42859
- ],
42860
- yellowBright: [
42861
- 93,
42862
- 39
42863
- ],
42864
- blueBright: [
42865
- 94,
42866
- 39
42867
- ],
42868
- magentaBright: [
42869
- 95,
42870
- 39
42871
- ],
42872
- cyanBright: [
42873
- 96,
42874
- 39
42875
- ],
42876
- whiteBright: [
42877
- 97,
42878
- 39
42879
- ]
42880
- },
42881
- bgColor: {
42882
- bgBlack: [
42883
- 40,
42884
- 49
42885
- ],
42886
- bgRed: [
42887
- 41,
42888
- 49
42889
- ],
42890
- bgGreen: [
42891
- 42,
42892
- 49
42893
- ],
42894
- bgYellow: [
42895
- 43,
42896
- 49
42897
- ],
42898
- bgBlue: [
42899
- 44,
42900
- 49
42901
- ],
42902
- bgMagenta: [
42903
- 45,
42904
- 49
42905
- ],
42906
- bgCyan: [
42907
- 46,
42908
- 49
42909
- ],
42910
- bgWhite: [
42911
- 47,
42912
- 49
42913
- ],
42914
- // Bright color
42915
- bgBlackBright: [
42916
- 100,
42917
- 49
42918
- ],
42919
- bgGray: [
42920
- 100,
42921
- 49
42922
- ],
42923
- // Alias of `bgBlackBright`
42924
- bgGrey: [
42925
- 100,
42926
- 49
42927
- ],
42928
- // Alias of `bgBlackBright`
42929
- bgRedBright: [
42930
- 101,
42931
- 49
42932
- ],
42933
- bgGreenBright: [
42934
- 102,
42935
- 49
42936
- ],
42937
- bgYellowBright: [
42938
- 103,
42939
- 49
42940
- ],
42941
- bgBlueBright: [
42942
- 104,
42943
- 49
42944
- ],
42945
- bgMagentaBright: [
42946
- 105,
42947
- 49
42948
- ],
42949
- bgCyanBright: [
42950
- 106,
42951
- 49
42952
- ],
42953
- bgWhiteBright: [
42954
- 107,
42955
- 49
42956
- ]
42957
- }
42958
- };
42959
- Object.keys(styles.modifier);
42960
- var foregroundColorNames = Object.keys(styles.color);
42961
- var backgroundColorNames = Object.keys(styles.bgColor);
42962
- _to_consumable_array(foregroundColorNames).concat(_to_consumable_array(backgroundColorNames));
42963
- function assembleStyles() {
42964
- var _styles;
42965
- var codes = /* @__PURE__ */ new Map();
42966
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
42967
- try {
42968
- for(var _iterator = Object.entries(styles)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
42969
- var _step_value = _sliced_to_array(_step.value, 2), groupName = _step_value[0], group = _step_value[1];
42970
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
42971
- try {
42972
- for(var _iterator1 = Object.entries(group)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
42973
- var _step_value1 = _sliced_to_array(_step1.value, 2), styleName = _step_value1[0], style = _step_value1[1];
42974
- styles[styleName] = {
42975
- open: "\x1b[".concat(style[0], "m"),
42976
- close: "\x1b[".concat(style[1], "m")
42977
- };
42978
- group[styleName] = styles[styleName];
42979
- codes.set(style[0], style[1]);
42980
- }
42981
- } catch (err) {
42982
- _didIteratorError1 = true;
42983
- _iteratorError1 = err;
42984
- } finally{
42985
- try {
42986
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
42987
- _iterator1.return();
42988
- }
42989
- } finally{
42990
- if (_didIteratorError1) {
42991
- throw _iteratorError1;
42992
- }
42993
- }
42994
- }
42995
- Object.defineProperty(styles, groupName, {
42996
- value: group,
42997
- enumerable: false
42998
- });
42999
- }
43000
- } catch (err) {
43001
- _didIteratorError = true;
43002
- _iteratorError = err;
43003
- } finally{
43004
- try {
43005
- if (!_iteratorNormalCompletion && _iterator.return != null) {
43006
- _iterator.return();
43007
- }
43008
- } finally{
43009
- if (_didIteratorError) {
43010
- throw _iteratorError;
43011
- }
43012
- }
43013
- }
43014
- Object.defineProperty(styles, "codes", {
43015
- value: codes,
43016
- enumerable: false
43017
- });
43018
- styles.color.close = "\x1b[39m";
43019
- styles.bgColor.close = "\x1b[49m";
43020
- styles.color.ansi = wrapAnsi16();
43021
- styles.color.ansi256 = wrapAnsi256();
43022
- styles.color.ansi16m = wrapAnsi16m();
43023
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
43024
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
43025
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
43026
- Object.defineProperties(styles, {
43027
- rgbToAnsi256: {
43028
- value: function value1(red, green, blue) {
43029
- if (red === green && green === blue) {
43030
- if (red < 8) {
43031
- return 16;
43032
- }
43033
- if (red > 248) {
43034
- return 231;
43035
- }
43036
- return Math.round((red - 8) / 247 * 24) + 232;
43037
- }
43038
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
43039
- },
43040
- enumerable: false
43041
- },
43042
- hexToRgb: {
43043
- value: function value1(hex) {
43044
- var matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
43045
- if (!matches) {
43046
- return [
43047
- 0,
43048
- 0,
43049
- 0
43050
- ];
43051
- }
43052
- var _matches = _sliced_to_array(matches, 1), colorString = _matches[0];
43053
- if (colorString.length === 3) {
43054
- colorString = _to_consumable_array(colorString).map(function(character) {
43055
- return character + character;
43056
- }).join("");
43057
- }
43058
- var integer = Number.parseInt(colorString, 16);
43059
- return [
43060
- /* eslint-disable no-bitwise */ integer >> 16 & 255,
43061
- integer >> 8 & 255,
43062
- integer & 255
43063
- ];
43064
- },
43065
- enumerable: false
43066
- },
43067
- hexToAnsi256: {
43068
- value: function(hex) {
43069
- return (_styles = styles).rgbToAnsi256.apply(_styles, _to_consumable_array(styles.hexToRgb(hex)));
43070
- },
43071
- enumerable: false
43072
- },
43073
- ansi256ToAnsi: {
43074
- value: function value1(code2) {
43075
- if (code2 < 8) {
43076
- return 30 + code2;
43077
- }
43078
- if (code2 < 16) {
43079
- return 90 + (code2 - 8);
43080
- }
43081
- var red;
43082
- var green;
43083
- var blue;
43084
- if (code2 >= 232) {
43085
- red = ((code2 - 232) * 10 + 8) / 255;
43086
- green = red;
43087
- blue = red;
43088
- } else {
43089
- code2 -= 16;
43090
- var remainder = code2 % 36;
43091
- red = Math.floor(code2 / 36) / 5;
43092
- green = Math.floor(remainder / 6) / 5;
43093
- blue = remainder % 6 / 5;
43094
- }
43095
- var value1 = Math.max(red, green, blue) * 2;
43096
- if (value1 === 0) {
43097
- return 30;
43098
- }
43099
- var result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
43100
- if (value1 === 2) {
43101
- result += 60;
43102
- }
43103
- return result;
43104
- },
43105
- enumerable: false
43106
- },
43107
- rgbToAnsi: {
43108
- value: function(red, green, blue) {
43109
- return styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue));
43110
- },
43111
- enumerable: false
43112
- },
43113
- hexToAnsi: {
43114
- value: function(hex) {
43115
- return styles.ansi256ToAnsi(styles.hexToAnsi256(hex));
43116
- },
43117
- enumerable: false
43118
- }
43119
- });
43120
- return styles;
43121
- }
43122
- var ansiStyles = assembleStyles();
43123
- var ansi_styles_default = ansiStyles;
43124
- // node_modules/chalk/source/vendor/supports-color/index.js
43125
- var import_node_process = __toESM(require$$0$5, 1);
43126
- var import_node_os = __toESM(require$$4, 1);
43127
- var import_node_tty = __toESM(require$$1$3, 1);
43128
- function hasFlag(flag) {
43129
- var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv;
43130
- var prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
43131
- var position = argv.indexOf(prefix2 + flag);
43132
- var terminatorPosition = argv.indexOf("--");
43133
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
43134
- }
43135
- var env = import_node_process.default.env;
43136
- var flagForceColor;
43137
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
43138
- flagForceColor = 0;
43139
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
43140
- flagForceColor = 1;
43141
- }
43142
- function envForceColor() {
43143
- if ("FORCE_COLOR" in env) {
43144
- if (env.FORCE_COLOR === "true") {
43145
- return 1;
43146
- }
43147
- if (env.FORCE_COLOR === "false") {
43148
- return 0;
43149
- }
43150
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
43151
- }
43152
- }
43153
- function translateLevel(level) {
43154
- if (level === 0) {
43155
- return false;
43156
- }
43157
- return {
43158
- level: level,
43159
- hasBasic: true,
43160
- has256: level >= 2,
43161
- has16m: level >= 3
43162
- };
43163
- }
43164
- function _supportsColor(haveStream) {
43165
- var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, streamIsTTY = _ref.streamIsTTY, _ref_sniffFlags = _ref.sniffFlags, sniffFlags = _ref_sniffFlags === void 0 ? true : _ref_sniffFlags;
43166
- var noFlagForceColor = envForceColor();
43167
- if (noFlagForceColor !== void 0) {
43168
- flagForceColor = noFlagForceColor;
43169
- }
43170
- var forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
43171
- if (forceColor === 0) {
43172
- return 0;
43173
- }
43174
- if (sniffFlags) {
43175
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43176
- return 3;
43177
- }
43178
- if (hasFlag("color=256")) {
43179
- return 2;
43180
- }
43181
- }
43182
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
43183
- return 1;
43184
- }
43185
- if (haveStream && !streamIsTTY && forceColor === void 0) {
43186
- return 0;
43187
- }
43188
- var min = forceColor || 0;
43189
- if (env.TERM === "dumb") {
43190
- return min;
43191
- }
43192
- if (import_node_process.default.platform === "win32") {
43193
- var osRelease = import_node_os.default.release().split(".");
43194
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
43195
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
43196
- }
43197
- return 1;
43198
- }
43199
- if ("CI" in env) {
43200
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
43201
- return 3;
43202
- }
43203
- if ([
43204
- "TRAVIS",
43205
- "CIRCLECI",
43206
- "APPVEYOR",
43207
- "GITLAB_CI",
43208
- "BUILDKITE",
43209
- "DRONE"
43210
- ].some(function(sign) {
43211
- return sign in env;
43212
- }) || env.CI_NAME === "codeship") {
43213
- return 1;
43214
- }
43215
- return min;
43216
- }
43217
- if ("TEAMCITY_VERSION" in env) {
43218
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
43219
- }
43220
- if (env.COLORTERM === "truecolor") {
43221
- return 3;
43222
- }
43223
- if (env.TERM === "xterm-kitty") {
43224
- return 3;
43225
- }
43226
- if ("TERM_PROGRAM" in env) {
43227
- var version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
43228
- switch(env.TERM_PROGRAM){
43229
- case "iTerm.app":
43230
- {
43231
- return version >= 3 ? 3 : 2;
43232
- }
43233
- case "Apple_Terminal":
43234
- {
43235
- return 2;
43236
- }
43237
- }
43238
- }
43239
- if (/-256(color)?$/i.test(env.TERM)) {
43240
- return 2;
43241
- }
43242
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
43243
- return 1;
43244
- }
43245
- if ("COLORTERM" in env) {
43246
- return 1;
43247
- }
43248
- return min;
43249
- }
43250
- function createSupportsColor(stream) {
43251
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
43252
- var level = _supportsColor(stream, _object_spread({
43253
- streamIsTTY: stream && stream.isTTY
43254
- }, options));
43255
- return translateLevel(level);
43256
- }
43257
- var supportsColor = {
43258
- stdout: createSupportsColor({
43259
- isTTY: import_node_tty.default.isatty(1)
43260
- }),
43261
- stderr: createSupportsColor({
43262
- isTTY: import_node_tty.default.isatty(2)
43263
- })
43264
- };
43265
- var supports_color_default = supportsColor;
43266
- // node_modules/chalk/source/utilities.js
43267
- function stringReplaceAll(string, substring, replacer) {
43268
- var index3 = string.indexOf(substring);
43269
- if (index3 === -1) {
43270
- return string;
43271
- }
43272
- var substringLength = substring.length;
43273
- var endIndex = 0;
43274
- var returnValue = "";
43275
- do {
43276
- returnValue += string.slice(endIndex, index3) + substring + replacer;
43277
- endIndex = index3 + substringLength;
43278
- index3 = string.indexOf(substring, endIndex);
43279
- }while (index3 !== -1);
43280
- returnValue += string.slice(endIndex);
43281
- return returnValue;
43282
- }
43283
- function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix2, index3) {
43284
- var endIndex = 0;
43285
- var returnValue = "";
43286
- do {
43287
- var gotCR = string[index3 - 1] === "\r";
43288
- returnValue += string.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix2;
43289
- endIndex = index3 + 1;
43290
- index3 = string.indexOf("\n", endIndex);
43291
- }while (index3 !== -1);
43292
- returnValue += string.slice(endIndex);
43293
- return returnValue;
43294
- }
43295
- // node_modules/chalk/source/index.js
43296
- var stdoutColor = supports_color_default.stdout, stderrColor = supports_color_default.stderr;
43297
- var GENERATOR = Symbol("GENERATOR");
43298
- var STYLER = Symbol("STYLER");
43299
- var IS_EMPTY = Symbol("IS_EMPTY");
43300
- var levelMapping = [
43301
- "ansi",
43302
- "ansi",
43303
- "ansi256",
43304
- "ansi16m"
43305
- ];
43306
- var styles2 = /* @__PURE__ */ Object.create(null);
43307
- var applyOptions = function(object) {
43308
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
43309
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
43310
- throw new Error("The `level` option should be an integer from 0 to 3");
43311
- }
43312
- var colorLevel = stdoutColor ? stdoutColor.level : 0;
43313
- object.level = options.level === void 0 ? colorLevel : options.level;
43314
- };
43315
- var Chalk = function Chalk(options) {
43316
- _class_call_check(this, Chalk);
43317
- return chalkFactory(options);
43318
- };
43319
- var chalkFactory = function(options) {
43320
- var chalk2 = function() {
43321
- for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
43322
- strings[_key] = arguments[_key];
43323
- }
43324
- return strings.join(" ");
43325
- };
43326
- applyOptions(chalk2, options);
43327
- Object.setPrototypeOf(chalk2, createChalk.prototype);
43328
- return chalk2;
43329
- };
43330
- function createChalk(options) {
43331
- return chalkFactory(options);
43332
- }
43333
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
43334
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
43335
- try {
43336
- var _loop = function() {
43337
- var _step_value = _sliced_to_array(_step2.value, 2), styleName = _step_value[0], style = _step_value[1];
43338
- styles2[styleName] = {
43339
- get: function get() {
43340
- var builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
43341
- Object.defineProperty(this, styleName, {
43342
- value: builder
43343
- });
43344
- return builder;
43345
- }
43346
- };
43347
- };
43348
- for(var _iterator2 = Object.entries(ansi_styles_default)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
43349
- } catch (err) {
43350
- _didIteratorError2 = true;
43351
- _iteratorError2 = err;
43352
- } finally{
43353
- try {
43354
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
43355
- _iterator2.return();
43356
- }
43357
- } finally{
43358
- if (_didIteratorError2) {
43359
- throw _iteratorError2;
43360
- }
43361
- }
43362
- }
43363
- styles2.visible = {
43364
- get: function get() {
43365
- var builder = createBuilder(this, this[STYLER], true);
43366
- Object.defineProperty(this, "visible", {
43367
- value: builder
43368
- });
43369
- return builder;
43370
- }
43371
- };
43372
- var getModelAnsi = function(model, level, type) {
43373
- for(var _len = arguments.length, arguments_ = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
43374
- arguments_[_key - 3] = arguments[_key];
43375
- }
43376
- var _ansi_styles_default_type;
43377
- if (model === "rgb") {
43378
- var _ansi_styles_default;
43379
- if (level === "ansi16m") {
43380
- var _ansi_styles_default_type1;
43381
- return (_ansi_styles_default_type1 = ansi_styles_default[type]).ansi16m.apply(_ansi_styles_default_type1, _to_consumable_array(arguments_));
43382
- }
43383
- if (level === "ansi256") {
43384
- var _ansi_styles_default1;
43385
- return ansi_styles_default[type].ansi256((_ansi_styles_default1 = ansi_styles_default).rgbToAnsi256.apply(_ansi_styles_default1, _to_consumable_array(arguments_)));
43386
- }
43387
- return ansi_styles_default[type].ansi((_ansi_styles_default = ansi_styles_default).rgbToAnsi.apply(_ansi_styles_default, _to_consumable_array(arguments_)));
43388
- }
43389
- if (model === "hex") {
43390
- var _ansi_styles_default2;
43391
- return getModelAnsi.apply(void 0, [
43392
- "rgb",
43393
- level,
43394
- type
43395
- ].concat(_to_consumable_array((_ansi_styles_default2 = ansi_styles_default).hexToRgb.apply(_ansi_styles_default2, _to_consumable_array(arguments_)))));
43396
- }
43397
- return (_ansi_styles_default_type = ansi_styles_default[type])[model].apply(_ansi_styles_default_type, _to_consumable_array(arguments_));
43398
- };
43399
- var usedModels = [
43400
- "rgb",
43401
- "hex",
43402
- "ansi256"
43403
- ];
43404
- var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
43405
- try {
43406
- var _loop1 = function() {
43407
- var model = _step3.value;
43408
- styles2[model] = {
43409
- get: function get() {
43410
- var level = this.level;
43411
- return function() {
43412
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
43413
- arguments_[_key] = arguments[_key];
43414
- }
43415
- var styler = createStyler(getModelAnsi.apply(void 0, [
43416
- model,
43417
- levelMapping[level],
43418
- "color"
43419
- ].concat(_to_consumable_array(arguments_))), ansi_styles_default.color.close, this[STYLER]);
43420
- return createBuilder(this, styler, this[IS_EMPTY]);
43421
- };
43422
- }
43423
- };
43424
- var bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
43425
- styles2[bgModel] = {
43426
- get: function get() {
43427
- var level = this.level;
43428
- return function() {
43429
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
43430
- arguments_[_key] = arguments[_key];
43431
- }
43432
- var styler = createStyler(getModelAnsi.apply(void 0, [
43433
- model,
43434
- levelMapping[level],
43435
- "bgColor"
43436
- ].concat(_to_consumable_array(arguments_))), ansi_styles_default.bgColor.close, this[STYLER]);
43437
- return createBuilder(this, styler, this[IS_EMPTY]);
43438
- };
43439
- }
43440
- };
43441
- };
43442
- for(var _iterator3 = usedModels[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true)_loop1();
43443
- } catch (err) {
43444
- _didIteratorError3 = true;
43445
- _iteratorError3 = err;
43446
- } finally{
43447
- try {
43448
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
43449
- _iterator3.return();
43450
- }
43451
- } finally{
43452
- if (_didIteratorError3) {
43453
- throw _iteratorError3;
43454
- }
43455
- }
43456
- }
43457
- var proto = Object.defineProperties(function() {}, _object_spread_props(_object_spread({}, styles2), {
43458
- level: {
43459
- enumerable: true,
43460
- get: function get() {
43461
- return this[GENERATOR].level;
43462
- },
43463
- set: function set(level) {
43464
- this[GENERATOR].level = level;
43465
- }
43466
- }
43467
- }));
43468
- var createStyler = function(open, close, parent) {
43469
- var openAll;
43470
- var closeAll;
43471
- if (parent === void 0) {
43472
- openAll = open;
43473
- closeAll = close;
43474
- } else {
43475
- openAll = parent.openAll + open;
43476
- closeAll = close + parent.closeAll;
43477
- }
43478
- return {
43479
- open: open,
43480
- close: close,
43481
- openAll: openAll,
43482
- closeAll: closeAll,
43483
- parent: parent
43484
- };
43485
- };
43486
- var createBuilder = function(self, _styler, _isEmpty) {
43487
- var builder = function() {
43488
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
43489
- arguments_[_key] = arguments[_key];
43490
- }
43491
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
43492
- };
43493
- Object.setPrototypeOf(builder, proto);
43494
- builder[GENERATOR] = self;
43495
- builder[STYLER] = _styler;
43496
- builder[IS_EMPTY] = _isEmpty;
43497
- return builder;
43498
- };
43499
- var applyStyle = function(self, string) {
43500
- if (self.level <= 0 || !string) {
43501
- return self[IS_EMPTY] ? "" : string;
43502
- }
43503
- var styler = self[STYLER];
43504
- if (styler === void 0) {
43505
- return string;
43506
- }
43507
- var openAll = styler.openAll, closeAll = styler.closeAll;
43508
- if (string.includes("\x1b")) {
43509
- while(styler !== void 0){
43510
- string = stringReplaceAll(string, styler.close, styler.open);
43511
- styler = styler.parent;
43512
- }
43513
- }
43514
- var lfIndex = string.indexOf("\n");
43515
- if (lfIndex !== -1) {
43516
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
43517
- }
43518
- return openAll + string + closeAll;
43519
- };
43520
- Object.defineProperties(createChalk.prototype, styles2);
43521
- var chalk = createChalk();
43522
- createChalk({
43523
- level: stderrColor ? stderrColor.level : 0
43524
- });
43525
- var source_default = chalk;
43526
- // node_modules/@babel/highlight/lib/index.js
43527
42738
  var sometimesKeywords = /* @__PURE__ */ new Set([
43528
42739
  "as",
43529
42740
  "async",
@@ -43532,17 +42743,17 @@ var sometimesKeywords = /* @__PURE__ */ new Set([
43532
42743
  "of",
43533
42744
  "set"
43534
42745
  ]);
43535
- function getDefs(chalk2) {
42746
+ function getDefs(colors3) {
43536
42747
  return {
43537
- keyword: chalk2.cyan,
43538
- capitalized: chalk2.yellow,
43539
- jsxIdentifier: chalk2.yellow,
43540
- punctuator: chalk2.yellow,
43541
- number: chalk2.magenta,
43542
- string: chalk2.green,
43543
- regex: chalk2.magenta,
43544
- comment: chalk2.grey,
43545
- invalid: chalk2.white.bgRed.bold
42748
+ keyword: colors3.cyan,
42749
+ capitalized: colors3.yellow,
42750
+ jsxIdentifier: colors3.yellow,
42751
+ punctuator: colors3.yellow,
42752
+ number: colors3.magenta,
42753
+ string: colors3.green,
42754
+ regex: colors3.magenta,
42755
+ comment: colors3.gray,
42756
+ invalid: compose(compose(colors3.white, colors3.bgRed), colors3.bold)
43546
42757
  };
43547
42758
  }
43548
42759
  var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
@@ -43795,43 +43006,46 @@ var tokenize$2;
43795
43006
  return highlighted;
43796
43007
  }
43797
43008
  function shouldHighlight(options) {
43798
- return source_default.level > 0 || options.forceColor;
43009
+ return colors.isColorSupported || options.forceColor;
43799
43010
  }
43800
- var chalkWithForcedColor = void 0;
43801
- function getChalk(forceColor) {
43011
+ var pcWithForcedColor = void 0;
43012
+ function getColors(forceColor) {
43802
43013
  if (forceColor) {
43803
- chalkWithForcedColor !== null && chalkWithForcedColor !== void 0 ? chalkWithForcedColor : chalkWithForcedColor = new Chalk({
43804
- level: 1
43805
- });
43806
- return chalkWithForcedColor;
43014
+ pcWithForcedColor !== null && pcWithForcedColor !== void 0 ? pcWithForcedColor : pcWithForcedColor = (0, import_picocolors.createColors)(true);
43015
+ return pcWithForcedColor;
43807
43016
  }
43808
- return source_default;
43017
+ return colors;
43809
43018
  }
43810
43019
  function highlight(code2) {
43811
43020
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
43812
43021
  if (code2 !== "" && shouldHighlight(options)) {
43813
- var defs = getDefs(getChalk(options.forceColor));
43022
+ var defs = getDefs(getColors(options.forceColor));
43814
43023
  return highlightTokens(defs, code2);
43815
43024
  } else {
43816
43025
  return code2;
43817
43026
  }
43818
43027
  }
43819
43028
  // node_modules/@babel/code-frame/lib/index.js
43820
- var chalkWithForcedColor2 = void 0;
43821
- function getChalk2(forceColor) {
43029
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
43030
+ var colors2 = typeof browser$1$1 === "object" && (browser$1$1.env.FORCE_COLOR === "0" || browser$1$1.env.FORCE_COLOR === "false") ? (0, import_picocolors2.createColors)(false) : import_picocolors2.default;
43031
+ var compose2 = function(f, g) {
43032
+ return function(v) {
43033
+ return f(g(v));
43034
+ };
43035
+ };
43036
+ var pcWithForcedColor2 = void 0;
43037
+ function getColors2(forceColor) {
43822
43038
  if (forceColor) {
43823
- chalkWithForcedColor2 !== null && chalkWithForcedColor2 !== void 0 ? chalkWithForcedColor2 : chalkWithForcedColor2 = new Chalk({
43824
- level: 1
43825
- });
43826
- return chalkWithForcedColor2;
43039
+ pcWithForcedColor2 !== null && pcWithForcedColor2 !== void 0 ? pcWithForcedColor2 : pcWithForcedColor2 = (0, import_picocolors2.createColors)(true);
43040
+ return pcWithForcedColor2;
43827
43041
  }
43828
- return source_default;
43042
+ return colors2;
43829
43043
  }
43830
- function getDefs2(chalk2) {
43044
+ function getDefs2(colors3) {
43831
43045
  return {
43832
- gutter: chalk2.grey,
43833
- marker: chalk2.red.bold,
43834
- message: chalk2.red.bold
43046
+ gutter: colors3.gray,
43047
+ marker: compose2(colors3.red, colors3.bold),
43048
+ message: compose2(colors3.red, colors3.bold)
43835
43049
  };
43836
43050
  }
43837
43051
  var NEWLINE2 = /\r\n|[\n\r\u2028\u2029]/;
@@ -43906,10 +43120,10 @@ function getMarkerLines(loc, source, opts) {
43906
43120
  function codeFrameColumns$2(rawLines, loc) {
43907
43121
  var opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
43908
43122
  var highlighted = (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);
43909
- var chalk2 = getChalk2(opts.forceColor);
43910
- var defs = getDefs2(chalk2);
43911
- var maybeHighlight = function(chalkFn, string) {
43912
- return highlighted ? chalkFn(string) : string;
43123
+ var colors3 = getColors2(opts.forceColor);
43124
+ var defs = getDefs2(colors3);
43125
+ var maybeHighlight = function(fmt, string) {
43126
+ return highlighted ? fmt(string) : string;
43913
43127
  };
43914
43128
  var lines = rawLines.split(NEWLINE2);
43915
43129
  var _getMarkerLines = getMarkerLines(loc, lines, opts), start = _getMarkerLines.start, end = _getMarkerLines.end, markerLines = _getMarkerLines.markerLines;
@@ -43952,7 +43166,7 @@ function codeFrameColumns$2(rawLines, loc) {
43952
43166
  frame = "".concat(" ".repeat(numberMaxWidth + 1)).concat(opts.message, "\n").concat(frame);
43953
43167
  }
43954
43168
  if (highlighted) {
43955
- return chalk2.reset(frame);
43169
+ return colors3.reset(frame);
43956
43170
  } else {
43957
43171
  return frame;
43958
43172
  }
@@ -44447,8 +43661,6 @@ var index = Object.assign(smart.bind(void 0), {
44447
43661
  ast: smart.ast
44448
43662
  });
44449
43663
  // node_modules/@jridgewell/set-array/dist/set-array.mjs
44450
- var get$1;
44451
- var put;
44452
43664
  var SetArray = function SetArray() {
44453
43665
  _class_call_check(this, SetArray);
44454
43666
  this._indexes = {
@@ -44456,17 +43668,19 @@ var SetArray = function SetArray() {
44456
43668
  };
44457
43669
  this.array = [];
44458
43670
  };
44459
- (function() {
44460
- get$1 = function(strarr, key) {
44461
- return strarr._indexes[key];
44462
- };
44463
- put = function(strarr, key) {
44464
- var index3 = get$1(strarr, key);
44465
- if (index3 !== void 0) return index3;
44466
- var array = strarr.array, indexes = strarr._indexes;
44467
- return indexes[key] = array.push(key) - 1;
44468
- };
44469
- })();
43671
+ function cast(set) {
43672
+ return set;
43673
+ }
43674
+ function get$1(setarr, key) {
43675
+ return cast(setarr)._indexes[key];
43676
+ }
43677
+ function put(setarr, key) {
43678
+ var index3 = get$1(setarr, key);
43679
+ if (index3 !== void 0) return index3;
43680
+ var _cast = cast(setarr), array = _cast.array, indexes = _cast._indexes;
43681
+ var length = array.push(key);
43682
+ return indexes[key] = length - 1;
43683
+ }
44470
43684
  // node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
44471
43685
  var comma = ",".charCodeAt(0);
44472
43686
  var semicolon = ";".charCodeAt(0);
@@ -44898,6 +44112,7 @@ var TraceMap = function TraceMap(map, mapUrl) {
44898
44112
  this.sourceRoot = sourceRoot;
44899
44113
  this.sources = sources;
44900
44114
  this.sourcesContent = sourcesContent;
44115
+ this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
44901
44116
  var from = resolve2(sourceRoot || "", stripFilename(mapUrl));
44902
44117
  this.resolvedSources = sources.map(function(s) {
44903
44118
  return resolve2(s || "", from);
@@ -44914,12 +44129,12 @@ var TraceMap = function TraceMap(map, mapUrl) {
44914
44129
  this._bySources = void 0;
44915
44130
  this._bySourceMemos = void 0;
44916
44131
  };
44917
- function cast(map) {
44132
+ function cast2(map) {
44918
44133
  return map;
44919
44134
  }
44920
44135
  function decodedMappings(map) {
44921
44136
  var _a;
44922
- return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
44137
+ return (_a = cast2(map))._decoded || (_a._decoded = decode(cast2(map)._encoded));
44923
44138
  }
44924
44139
  function originalPositionFor(map, needle) {
44925
44140
  var line = needle.line, column = needle.column, bias = needle.bias;
@@ -44929,7 +44144,7 @@ function originalPositionFor(map, needle) {
44929
44144
  var decoded = decodedMappings(map);
44930
44145
  if (line >= decoded.length) return OMapping(null, null, null, null);
44931
44146
  var segments = decoded[line];
44932
- var index3 = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
44147
+ var index3 = traceSegmentInternal(segments, cast2(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
44933
44148
  if (index3 === -1) return OMapping(null, null, null, null);
44934
44149
  var segment = segments[index3];
44935
44150
  if (segment.length === 1) return OMapping(null, null, null, null);
@@ -44968,19 +44183,21 @@ var GenMapping = function GenMapping() {
44968
44183
  this._mappings = [];
44969
44184
  this.file = file2;
44970
44185
  this.sourceRoot = sourceRoot;
44186
+ this._ignoreList = new SetArray();
44971
44187
  };
44972
- function cast2(map) {
44188
+ function cast3(map) {
44973
44189
  return map;
44974
44190
  }
44975
44191
  var maybeAddMapping = function(map, mapping) {
44976
44192
  return addMappingInternal(true, map, mapping);
44977
44193
  };
44978
44194
  function setSourceContent(map, source, content) {
44979
- var _cast2 = cast2(map), sources = _cast2._sources, sourcesContent = _cast2._sourcesContent;
44980
- sourcesContent[put(sources, source)] = content;
44195
+ var _cast3 = cast3(map), sources = _cast3._sources, sourcesContent = _cast3._sourcesContent;
44196
+ var index3 = put(sources, source);
44197
+ sourcesContent[index3] = content;
44981
44198
  }
44982
44199
  function toDecodedMap(map) {
44983
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
44200
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names, ignoreList = _cast3._ignoreList;
44984
44201
  removeEmptyFinalLines(mappings);
44985
44202
  return {
44986
44203
  version: 3,
@@ -44989,7 +44206,8 @@ function toDecodedMap(map) {
44989
44206
  sourceRoot: map.sourceRoot || void 0,
44990
44207
  sources: sources.array,
44991
44208
  sourcesContent: sourcesContent,
44992
- mappings: mappings
44209
+ mappings: mappings,
44210
+ ignoreList: ignoreList.array
44993
44211
  };
44994
44212
  }
44995
44213
  function toEncodedMap(map) {
@@ -45000,7 +44218,7 @@ function toEncodedMap(map) {
45000
44218
  }
45001
44219
  function allMappings(map) {
45002
44220
  var out = [];
45003
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, names = _cast2._names;
44221
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, names = _cast3._names;
45004
44222
  for(var i = 0; i < mappings.length; i++){
45005
44223
  var line = mappings[i];
45006
44224
  for(var j = 0; j < line.length; j++){
@@ -45031,7 +44249,7 @@ function allMappings(map) {
45031
44249
  return out;
45032
44250
  }
45033
44251
  function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
45034
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
44252
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names;
45035
44253
  var line = getLine(mappings, genLine);
45036
44254
  var index3 = getColumnIndex(line, genColumn);
45037
44255
  if (!source) {
@@ -48565,7 +47783,7 @@ function TSIndexedAccessType(node) {
48565
47783
  this.tokenChar(93);
48566
47784
  }
48567
47785
  function TSMappedType$1(node) {
48568
- var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter;
47786
+ var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter, typeAnnotation2 = node.typeAnnotation;
48569
47787
  this.tokenChar(123);
48570
47788
  this.space();
48571
47789
  if (readonly) {
@@ -48590,9 +47808,11 @@ function TSMappedType$1(node) {
48590
47808
  tokenIfPlusMinus(this, optional);
48591
47809
  this.tokenChar(63);
48592
47810
  }
48593
- this.tokenChar(58);
48594
- this.space();
48595
- this.print(node.typeAnnotation, node);
47811
+ if (typeAnnotation2) {
47812
+ this.tokenChar(58);
47813
+ this.space();
47814
+ this.print(typeAnnotation2, node);
47815
+ }
48596
47816
  this.space();
48597
47817
  this.tokenChar(125);
48598
47818
  }
@@ -48760,7 +47980,7 @@ function TSNonNullExpression(node) {
48760
47980
  this.print(node.expression, node);
48761
47981
  this.tokenChar(33);
48762
47982
  }
48763
- function TSExportAssignment(node) {
47983
+ function TSExportAssignment$1(node) {
48764
47984
  this.word("export");
48765
47985
  this.space();
48766
47986
  this.tokenChar(61);
@@ -48985,7 +48205,7 @@ var generatorFunctions = /* @__PURE__ */ Object.freeze({
48985
48205
  TSDeclareMethod: TSDeclareMethod$1,
48986
48206
  TSEnumDeclaration: TSEnumDeclaration$1,
48987
48207
  TSEnumMember: TSEnumMember$1,
48988
- TSExportAssignment: TSExportAssignment,
48208
+ TSExportAssignment: TSExportAssignment$1,
48989
48209
  TSExpressionWithTypeArguments: TSExpressionWithTypeArguments,
48990
48210
  TSExternalModuleReference: TSExternalModuleReference,
48991
48211
  TSFunctionType: TSFunctionType$1,
@@ -50332,7 +49552,7 @@ var virtualTypes = /* @__PURE__ */ Object.freeze({
50332
49552
  User: User,
50333
49553
  Var: Var
50334
49554
  });
50335
- var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6$1 = lib_exports.isIdentifier, isImportDeclaration$1$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression3 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2$1 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
49555
+ var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6$1 = lib_exports.isIdentifier, isImportDeclaration$1$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression$12 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2$1 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
50336
49556
  var isCompatTag2 = react$1.isCompatTag;
50337
49557
  function isReferencedIdentifier(opts) {
50338
49558
  var _this = this, node = _this.node, parent = _this.parent;
@@ -50347,7 +49567,7 @@ function isReferencedIdentifier(opts) {
50347
49567
  }
50348
49568
  function isReferencedMemberExpression() {
50349
49569
  var _this = this, node = _this.node, parent = _this.parent;
50350
- return isMemberExpression3(node) && nodeIsReferenced(node, parent);
49570
+ return isMemberExpression$12(node) && nodeIsReferenced(node, parent);
50351
49571
  }
50352
49572
  function isBindingIdentifier() {
50353
49573
  var _this = this, node = _this.node, parent = _this.parent;
@@ -51118,7 +50338,7 @@ function isDeclaredInLoop(path) {
51118
50338
  }
51119
50339
  return false;
51120
50340
  }
51121
- var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5$1 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1$1 = lib_exports.isVariableDeclaration, matchesPattern$1$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
50341
+ var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isCallExpression$12 = lib_exports.isCallExpression, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5$1 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMemberExpression3 = lib_exports.isMemberExpression, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1$1 = lib_exports.isVariableDeclaration, matchesPattern$1$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
51122
50342
  function gatherNodeParts(node, parts) {
51123
50343
  switch(node === null || node === void 0 ? void 0 : node.type){
51124
50344
  default:
@@ -52021,8 +51241,6 @@ var _Scope = /*#__PURE__*/ function() {
52021
51241
  return true;
52022
51242
  } else if (isUnaryExpression2(node)) {
52023
51243
  return this.isPure(node.argument, constantsOnly);
52024
- } else if (isTaggedTemplateExpression2(node)) {
52025
- return matchesPattern$1$1(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly);
52026
51244
  } else if (isTemplateLiteral3(node)) {
52027
51245
  var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
52028
51246
  try {
@@ -52045,6 +51263,18 @@ var _Scope = /*#__PURE__*/ function() {
52045
51263
  }
52046
51264
  }
52047
51265
  return true;
51266
+ } else if (isTaggedTemplateExpression2(node)) {
51267
+ return matchesPattern$1$1(node.tag, "String.raw") && !this.hasBinding("String", {
51268
+ noGlobals: true
51269
+ }) && this.isPure(node.quasi, constantsOnly);
51270
+ } else if (isMemberExpression3(node)) {
51271
+ return !node.computed && isIdentifier$5$1(node.object) && node.object.name === "Symbol" && isIdentifier$5$1(node.property) && node.property.name !== "for" && !this.hasBinding("Symbol", {
51272
+ noGlobals: true
51273
+ });
51274
+ } else if (isCallExpression$12(node)) {
51275
+ return matchesPattern$1$1(node.callee, "Symbol.for") && !this.hasBinding("Symbol", {
51276
+ noGlobals: true
51277
+ }) && node.arguments.length === 1 && isStringLiteral$7(node.arguments[0]);
52048
51278
  } else {
52049
51279
  return isPureish2(node);
52050
51280
  }
@@ -52251,9 +51481,9 @@ var _Scope = /*#__PURE__*/ function() {
52251
51481
  path = (this.getFunctionParent() || this.getProgramParent()).path;
52252
51482
  }
52253
51483
  var init = opts.init, unique = opts.unique, _opts_kind = opts.kind, kind = _opts_kind === void 0 ? "var" : _opts_kind, id = opts.id;
52254
- if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression$3(path.parent, {
51484
+ if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression$12(path.parent, {
52255
51485
  callee: path.node
52256
- }) && path.parent.arguments.length <= path.node.params.length && isIdentifier$a(id)) {
51486
+ }) && path.parent.arguments.length <= path.node.params.length && isIdentifier$5$1(id)) {
52257
51487
  path.pushContainer("params", id);
52258
51488
  path.scope.registerBinding("param", path.get("params")[path.node.params.length - 1]);
52259
51489
  return;
@@ -54768,6 +53998,18 @@ function isConstantExpression() {
54768
53998
  var operator = this.node.operator;
54769
53999
  return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
54770
54000
  }
54001
+ if (this.isMemberExpression()) {
54002
+ return !this.node.computed && this.get("object").isIdentifier({
54003
+ name: "Symbol"
54004
+ }) && !this.scope.hasBinding("Symbol", {
54005
+ noGlobals: true
54006
+ });
54007
+ }
54008
+ if (this.isCallExpression()) {
54009
+ return this.node.arguments.length === 1 && this.get("callee").matchesPattern("Symbol.for") && !this.scope.hasBinding("Symbol", {
54010
+ noGlobals: true
54011
+ }) && this.get("arguments")[0].isStringLiteral();
54012
+ }
54771
54013
  return false;
54772
54014
  }
54773
54015
  function isInStrictMode() {
@@ -55141,7 +54383,7 @@ var hooks = [
55141
54383
  }
55142
54384
  ];
55143
54385
  var getBindingIdentifiers$1 = lib_exports.getBindingIdentifiers;
55144
- function remove$3() {
54386
+ function remove2() {
55145
54387
  var _this_opts;
55146
54388
  this._assertUnremoved();
55147
54389
  this.resync();
@@ -55214,7 +54456,7 @@ var NodePath_removal = /* @__PURE__ */ Object.freeze({
55214
54456
  _markRemoved: _markRemoved,
55215
54457
  _remove: _remove,
55216
54458
  _removeFromScope: _removeFromScope,
55217
- remove: remove$3
54459
+ remove: remove2
55218
54460
  });
55219
54461
  var react2 = lib_exports.react;
55220
54462
  var cloneNode$1 = lib_exports.cloneNode, jsxExpressionContainer2 = lib_exports.jsxExpressionContainer, variableDeclaration3 = lib_exports.variableDeclaration, variableDeclarator3 = lib_exports.variableDeclarator;
@@ -56360,10 +55602,10 @@ var NodePath$4 = /*#__PURE__*/ function() {
56360
55602
  return _NodePath;
56361
55603
  }();
56362
55604
  Object.assign(NodePath$4.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments);
56363
- var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
55605
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
56364
55606
  try {
56365
- var _loop2 = function() {
56366
- var type = _step4.value;
55607
+ var _loop = function() {
55608
+ var type = _step2.value;
56367
55609
  var typeKey = "is".concat(type);
56368
55610
  var fn = lib_exports[typeKey];
56369
55611
  NodePath$4.prototype[typeKey] = function(opts) {
@@ -56375,40 +55617,40 @@ try {
56375
55617
  }
56376
55618
  };
56377
55619
  };
56378
- for(var _iterator4 = TYPES$3[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true)_loop2();
55620
+ for(var _iterator2 = TYPES$3[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
56379
55621
  } catch (err) {
56380
- _didIteratorError4 = true;
56381
- _iteratorError4 = err;
55622
+ _didIteratorError2 = true;
55623
+ _iteratorError2 = err;
56382
55624
  } finally{
56383
55625
  try {
56384
- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
56385
- _iterator4.return();
55626
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
55627
+ _iterator2.return();
56386
55628
  }
56387
55629
  } finally{
56388
- if (_didIteratorError4) {
56389
- throw _iteratorError4;
55630
+ if (_didIteratorError2) {
55631
+ throw _iteratorError2;
56390
55632
  }
56391
55633
  }
56392
55634
  }
56393
55635
  Object.assign(NodePath$4.prototype, NodePath_virtual_types_validator);
56394
- var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
55636
+ var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
56395
55637
  try {
56396
- for(var _iterator5 = Object.keys(virtualTypes)[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true){
56397
- var type2 = _step5.value;
55638
+ for(var _iterator3 = Object.keys(virtualTypes)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
55639
+ var type2 = _step3.value;
56398
55640
  if (type2[0] === "_") continue;
56399
55641
  if (!TYPES$3.includes(type2)) TYPES$3.push(type2);
56400
55642
  }
56401
55643
  } catch (err) {
56402
- _didIteratorError5 = true;
56403
- _iteratorError5 = err;
55644
+ _didIteratorError3 = true;
55645
+ _iteratorError3 = err;
56404
55646
  } finally{
56405
55647
  try {
56406
- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
56407
- _iterator5.return();
55648
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
55649
+ _iterator3.return();
56408
55650
  }
56409
55651
  } finally{
56410
- if (_didIteratorError5) {
56411
- throw _iteratorError5;
55652
+ if (_didIteratorError3) {
55653
+ throw _iteratorError3;
56412
55654
  }
56413
55655
  }
56414
55656
  }
@@ -81154,13 +80396,22 @@ tupleExpression.TupleExpression = (path, operations, semantics) => {
81154
80396
 
81155
80397
  var importExpression = {};
81156
80398
 
81157
- importExpression.ImportExpression = (path, {print, maybe}) => {
80399
+ importExpression.ImportExpression = createImportExpression$1;
80400
+ importExpression.createImportExpression = createImportExpression$1;
80401
+
80402
+ function createImportExpression$1(path, printer, semantics, {source = 'source'} = {}) {
80403
+ const {print, maybe} = printer;
80404
+ const {options} = path.node;
80405
+
81158
80406
  print('import(');
81159
- print('__source');
81160
- maybe.print(path.node.options, ', ');
80407
+ print(`__${source}`);
80408
+
80409
+ maybe.print(options, ',');
80410
+ maybe.print.space(options);
80411
+
81161
80412
  print('__options');
81162
80413
  print(')');
81163
- };
80414
+ }
81164
80415
 
81165
80416
  const functions = functions$1;
81166
80417
  const unaryExpressions = unaryExpressions$1;
@@ -82961,6 +82212,7 @@ tsMappedType.TSMappedType = (path, {print, indent, maybe}) => {
82961
82212
  readonly,
82962
82213
  optional,
82963
82214
  nameType,
82215
+ typeAnnotation,
82964
82216
  } = path.node;
82965
82217
 
82966
82218
  print('{');
@@ -82990,9 +82242,12 @@ tsMappedType.TSMappedType = (path, {print, indent, maybe}) => {
82990
82242
  print('?');
82991
82243
  }
82992
82244
 
82993
- print(':');
82994
- print.space();
82995
- print('__typeAnnotation');
82245
+ if (typeAnnotation) {
82246
+ print(':');
82247
+ print.space();
82248
+ print('__typeAnnotation');
82249
+ }
82250
+
82996
82251
  print(';');
82997
82252
  indent.dec();
82998
82253
  print.breakline();
@@ -83482,13 +82737,20 @@ tsMethodSignature.TSMethodSignature = (path, printer, semantics) => {
83482
82737
 
83483
82738
  var tsImportType = {};
83484
82739
 
83485
- tsImportType.TSImportType = (path, {print, maybe}) => {
83486
- print('import(');
83487
- print('__argument');
83488
- maybe.print(path.node.options, ',');
83489
- print.space();
83490
- print('__options');
83491
- print(')');
82740
+ const {createImportExpression} = importExpression;
82741
+
82742
+ tsImportType.TSImportType = (path, printer, semantics) => {
82743
+ createImportExpression(path, printer, semantics, {
82744
+ source: 'argument',
82745
+ });
82746
+ };
82747
+
82748
+ var tsExportAssignment = {};
82749
+
82750
+ tsExportAssignment.TSExportAssignment = (path, {print}) => {
82751
+ print('export = ');
82752
+ print('__expression');
82753
+ print(';');
83492
82754
  };
83493
82755
 
83494
82756
  const {isNext: isNext$1} = is$3;
@@ -83528,9 +82790,11 @@ const {
83528
82790
 
83529
82791
  const {maybePrintTypeAnnotation} = maybeTypeAnnotation$4;
83530
82792
  const {TSImportType} = tsImportType;
82793
+ const {TSExportAssignment} = tsExportAssignment;
83531
82794
 
83532
82795
  var typescript$1 = {
83533
82796
  TSAsExpression,
82797
+ TSExportAssignment,
83534
82798
  TSTypeLiteral,
83535
82799
  TSTypeAliasDeclaration,
83536
82800
  TSTypeParameter,
@@ -110671,7 +109935,7 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
110671
109935
 
110672
109936
  (function (module) {
110673
109937
 
110674
- const {template} = bundle;
109938
+ const {types, template} = bundle;
110675
109939
  const {nanomemoize} = require$$0$1;
110676
109940
  const plugins = plugins$1;
110677
109941
  const options = options$1;
@@ -110685,6 +109949,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
110685
109949
  ],
110686
109950
  };
110687
109951
 
109952
+ const {isExpressionStatement} = types;
109953
+ const extractExpression = (a) => isExpressionStatement(a) ? a.expression : a;
109954
+
110688
109955
  module.exports = nanomemoize((value, options) => {
110689
109956
  const fn = template(value, {
110690
109957
  ...defaults,
@@ -110693,7 +109960,7 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
110693
109960
 
110694
109961
  return (...a) => {
110695
109962
  const result = fn(...a);
110696
- return result.expression || result;
109963
+ return extractExpression(result);
110697
109964
  };
110698
109965
  });
110699
109966
 
@@ -110703,7 +109970,7 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
110703
109970
  ...options,
110704
109971
  });
110705
109972
 
110706
- return result.expression || result;
109973
+ return extractExpression(result);
110707
109974
  });
110708
109975
 
110709
109976
  module.exports.program = nanomemoize((value, options) => {
@@ -110730,7 +109997,7 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
110730
109997
  ...options,
110731
109998
  });
110732
109999
 
110733
- return result.expression || result;
110000
+ return extractExpression(result);
110734
110001
  };
110735
110002
  } (template$a));
110736
110003