@cmflow/cli 3.4.0-beta.2 → 3.4.0-beta.21
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/README.md +11 -14
- package/dist/bin/cm.mjs +1697 -39248
- package/dist/bin/cmrelease.mjs +1539 -38897
- package/dist/common-CfQycsia.mjs +4 -0
- package/dist/common-CfQycsia.mjs.map +1 -0
- package/dist/{compile-packages-BB08_q2B.mjs → compile-packages-B6nhQT4A.mjs} +4 -2
- package/dist/{compile-packages-BB08_q2B.mjs.map → compile-packages-B6nhQT4A.mjs.map} +1 -1
- package/dist/docker-COfShgcQ.mjs +36 -0
- package/dist/docker-COfShgcQ.mjs.map +1 -0
- package/dist/{docker-clean-tags-EvFdWykP.mjs → docker-clean-tags-ltkwDm3w.mjs} +4 -2
- package/dist/{docker-clean-tags-EvFdWykP.mjs.map → docker-clean-tags-ltkwDm3w.mjs.map} +1 -1
- package/dist/{docker-publish-CG0aN9se.mjs → docker-publish-DQFIuqCn.mjs} +4 -2
- package/dist/{docker-publish-CG0aN9se.mjs.map → docker-publish-DQFIuqCn.mjs.map} +1 -1
- package/dist/{find-packages-611B-66T.mjs → find-packages-CIHA2-RE.mjs} +12 -10
- package/dist/{find-packages-611B-66T.mjs.map → find-packages-CIHA2-RE.mjs.map} +1 -1
- package/dist/get-config-Bojgeyi0.mjs +11 -0
- package/dist/get-config-Bojgeyi0.mjs.map +1 -0
- package/dist/index-B7dZdFg6.d.mts +267 -0
- package/dist/index.d.mts +2067 -0
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{npm-VM_GgazT.mjs → npm-Ckg6sg0g.mjs} +4 -2
- package/dist/{npm-VM_GgazT.mjs.map → npm-Ckg6sg0g.mjs.map} +1 -1
- package/dist/rolldown-runtime-DQqWX4ve.mjs +3 -0
- package/dist/semantic/core/analyze-commits.d.mts +7 -0
- package/dist/semantic/core/analyze-commits.mjs +4 -0
- package/dist/semantic/core/analyze-commits.mjs.map +1 -0
- package/dist/semantic/core/conditional.d.mts +16 -0
- package/dist/semantic/core/conditional.mjs +4 -0
- package/dist/semantic/core/conditional.mjs.map +1 -0
- package/dist/semantic/core/exit.d.mts +7 -0
- package/dist/semantic/core/exit.mjs +4 -0
- package/dist/semantic/core/exit.mjs.map +1 -0
- package/dist/semantic/core/prepare/artifacts.d.mts +7 -0
- package/dist/semantic/core/prepare/artifacts.mjs +4 -0
- package/dist/semantic/core/prepare/artifacts.mjs.map +1 -0
- package/dist/semantic/core/prepare/bump-version.d.mts +7 -0
- package/dist/semantic/core/prepare/bump-version.mjs +4 -0
- package/dist/semantic/core/prepare/bump-version.mjs.map +1 -0
- package/dist/semantic/core/prepare/commit.d.mts +7 -0
- package/dist/semantic/core/prepare/commit.mjs +4 -0
- package/dist/semantic/core/prepare/commit.mjs.map +1 -0
- package/dist/semantic/core/prepare/release-info.d.mts +9 -0
- package/dist/semantic/core/prepare/release-info.mjs +4 -0
- package/dist/semantic/core/prepare/release-info.mjs.map +1 -0
- package/dist/semantic/core/publish-packages.d.mts +11 -0
- package/dist/semantic/core/publish-packages.mjs +7 -0
- package/dist/semantic/core/publish-packages.mjs.map +1 -0
- package/dist/semantic/core/push-release.d.mts +8 -0
- package/dist/semantic/core/push-release.mjs +4 -0
- package/dist/semantic/core/push-release.mjs.map +1 -0
- package/dist/semantic/core/run.d.mts +14 -0
- package/dist/semantic/core/run.mjs +4 -0
- package/dist/semantic/core/run.mjs.map +1 -0
- package/dist/semantic/core/sync-repository.d.mts +7 -0
- package/dist/semantic/core/sync-repository.mjs +4 -0
- package/dist/semantic/core/sync-repository.mjs.map +1 -0
- package/dist/semantic/core/verify-conditions.d.mts +7 -0
- package/dist/semantic/core/verify-conditions.mjs +4 -0
- package/dist/semantic/core/verify-conditions.mjs.map +1 -0
- package/dist/semantic/core/verify-release.d.mts +7 -0
- package/dist/semantic/core/verify-release.mjs +4 -0
- package/dist/semantic/core/verify-release.mjs.map +1 -0
- package/dist/semantic/docker/publish.d.mts +7 -0
- package/dist/semantic/docker/publish.mjs +4 -0
- package/dist/semantic/docker/publish.mjs.map +1 -0
- package/dist/semantic/docker/success.d.mts +7 -0
- package/dist/semantic/docker/success.mjs +4 -0
- package/dist/semantic/docker/success.mjs.map +1 -0
- package/dist/semver-BEj6Vrs4.mjs +4 -0
- package/dist/{semver-DFjVbN1S.mjs.map → semver-BEj6Vrs4.mjs.map} +1 -1
- package/dist/source-DS6vboEb.mjs +9 -0
- package/dist/{source-CwLcYLzI.mjs.map → source-DS6vboEb.mjs.map} +1 -1
- package/dist/{write-package-cxki9d3K.mjs → write-package-CZMoWfOT.mjs} +8 -6
- package/dist/{write-package-cxki9d3K.mjs.map → write-package-CZMoWfOT.mjs.map} +1 -1
- package/dist/{write-packages-CxCAl_AG.mjs → write-packages-iAGBE9Qr.mjs} +5 -3
- package/dist/{write-packages-CxCAl_AG.mjs.map → write-packages-iAGBE9Qr.mjs.map} +1 -1
- package/package.json +19 -10
- package/dist/cli-truncate-Bi2MjGwF.mjs +0 -323
- package/dist/cli-truncate-DMcpM5Q7.mjs +0 -2
- package/dist/cli-truncate-DMcpM5Q7.mjs.map +0 -1
- package/dist/cli-truncate-DsW0mgI_.mjs +0 -323
- package/dist/common-BdfXquG0.mjs +0 -61
- package/dist/common-BdfXquG0.mjs.map +0 -1
- package/dist/docker-Cc30aRzl.mjs +0 -34
- package/dist/docker-Cc30aRzl.mjs.map +0 -1
- package/dist/get-config-8ivgd1KC.mjs +0 -9
- package/dist/get-config-8ivgd1KC.mjs.map +0 -1
- package/dist/get-east-asian-width-Tfn8qoqd.mjs +0 -2
- package/dist/get-east-asian-width-Tfn8qoqd.mjs.map +0 -1
- package/dist/get-east-asian-width-wiVWCFXf.mjs +0 -682
- package/dist/log-update-CLbF3iV6.mjs +0 -6
- package/dist/log-update-CLbF3iV6.mjs.map +0 -1
- package/dist/log-update-CTXRtajW.mjs +0 -668
- package/dist/log-update-Dy1vPMGY.mjs +0 -668
- package/dist/rolldown-runtime-B4iAMlE-.mjs +0 -35
- package/dist/semver-DFjVbN1S.mjs +0 -2
- package/dist/source-CwLcYLzI.mjs +0 -7
- package/dist/wrap-ansi-9ugahFCy.mjs +0 -9
- package/dist/wrap-ansi-9ugahFCy.mjs.map +0 -1
- package/dist/wrap-ansi-BRr0GA6g.mjs +0 -330
- package/dist/wrap-ansi-Cupoo4Yg.mjs +0 -330
- package/dist/wrap-ansi-dwgEjNWf.mjs +0 -2
|
@@ -1,668 +0,0 @@
|
|
|
1
|
-
import { i as ansiRegex, n as isFullWidth, r as isWide } from "./get-east-asian-width-wiVWCFXf.mjs";
|
|
2
|
-
import { t as wrapAnsi } from "./wrap-ansi-BRr0GA6g.mjs";
|
|
3
|
-
import process$1 from "node:process";
|
|
4
|
-
import os from "node:os";
|
|
5
|
-
//#region ../../node_modules/environment/index.js
|
|
6
|
-
const isBrowser = globalThis.window?.document !== void 0;
|
|
7
|
-
globalThis.process?.versions?.node;
|
|
8
|
-
globalThis.process?.versions?.bun;
|
|
9
|
-
globalThis.Deno?.version?.deno;
|
|
10
|
-
globalThis.process?.versions?.electron;
|
|
11
|
-
globalThis.navigator?.userAgent?.includes("jsdom");
|
|
12
|
-
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
-
typeof DedicatedWorkerGlobalScope !== "undefined" && globalThis instanceof DedicatedWorkerGlobalScope;
|
|
14
|
-
typeof SharedWorkerGlobalScope !== "undefined" && globalThis instanceof SharedWorkerGlobalScope;
|
|
15
|
-
typeof ServiceWorkerGlobalScope !== "undefined" && globalThis instanceof ServiceWorkerGlobalScope;
|
|
16
|
-
const platform = globalThis.navigator?.userAgentData?.platform;
|
|
17
|
-
platform === "macOS" || globalThis.navigator?.platform === "MacIntel" || globalThis.navigator?.userAgent?.includes(" Mac ") === true || globalThis.process?.platform;
|
|
18
|
-
platform === "Windows" || globalThis.navigator?.platform === "Win32" || globalThis.process?.platform;
|
|
19
|
-
platform === "Linux" || globalThis.navigator?.platform?.startsWith("Linux") === true || globalThis.navigator?.userAgent?.includes(" Linux ") === true || globalThis.process?.platform;
|
|
20
|
-
platform === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
|
|
21
|
-
platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ../../node_modules/ansi-escapes/base.js
|
|
24
|
-
const ESC = "\x1B[";
|
|
25
|
-
!isBrowser && process$1.env.TERM_PROGRAM;
|
|
26
|
-
const isWindows = !isBrowser && process$1.platform === "win32";
|
|
27
|
-
!isBrowser && (process$1.env.TERM?.startsWith("screen") || process$1.env.TERM?.startsWith("tmux") || process$1.env.TMUX);
|
|
28
|
-
isBrowser || process$1.cwd;
|
|
29
|
-
const cursorUp = (count = 1) => ESC + count + "A";
|
|
30
|
-
const eraseLines = (count) => {
|
|
31
|
-
let clear = "";
|
|
32
|
-
for (let i = 0; i < count; i++) clear += eraseLine + (i < count - 1 ? cursorUp() : "");
|
|
33
|
-
if (count) clear += "\x1B[G";
|
|
34
|
-
return clear;
|
|
35
|
-
};
|
|
36
|
-
const eraseLine = "\x1B[2K";
|
|
37
|
-
const isOldWindows = () => {
|
|
38
|
-
if (isBrowser || !isWindows) return false;
|
|
39
|
-
const parts = os.release().split(".");
|
|
40
|
-
const major = Number(parts[0]);
|
|
41
|
-
const build = Number(parts[2] ?? 0);
|
|
42
|
-
if (major < 10) return true;
|
|
43
|
-
if (major === 10 && build < 10586) return true;
|
|
44
|
-
return false;
|
|
45
|
-
};
|
|
46
|
-
isOldWindows();
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region ../../node_modules/mimic-function/index.js
|
|
49
|
-
const copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
50
|
-
if (property === "length" || property === "prototype") return;
|
|
51
|
-
if (property === "arguments" || property === "caller") return;
|
|
52
|
-
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
53
|
-
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
54
|
-
if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;
|
|
55
|
-
Object.defineProperty(to, property, fromDescriptor);
|
|
56
|
-
};
|
|
57
|
-
const canCopyProperty = function(toDescriptor, fromDescriptor) {
|
|
58
|
-
return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
59
|
-
};
|
|
60
|
-
const changePrototype = (to, from) => {
|
|
61
|
-
const fromPrototype = Object.getPrototypeOf(from);
|
|
62
|
-
if (fromPrototype === Object.getPrototypeOf(to)) return;
|
|
63
|
-
Object.setPrototypeOf(to, fromPrototype);
|
|
64
|
-
};
|
|
65
|
-
const wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\n${fromBody}`;
|
|
66
|
-
const toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
67
|
-
const toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
68
|
-
const changeToString = (to, from, name) => {
|
|
69
|
-
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
70
|
-
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
71
|
-
Object.defineProperty(newToString, "name", toStringName);
|
|
72
|
-
const { writable, enumerable, configurable } = toStringDescriptor;
|
|
73
|
-
Object.defineProperty(to, "toString", {
|
|
74
|
-
value: newToString,
|
|
75
|
-
writable,
|
|
76
|
-
enumerable,
|
|
77
|
-
configurable
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
81
|
-
const { name } = to;
|
|
82
|
-
for (const property of Reflect.ownKeys(from)) copyProperty(to, from, property, ignoreNonConfigurable);
|
|
83
|
-
changePrototype(to, from);
|
|
84
|
-
changeToString(to, from, name);
|
|
85
|
-
return to;
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region ../../node_modules/log-update/node_modules/onetime/index.js
|
|
89
|
-
const calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
90
|
-
const onetime = (function_, options = {}) => {
|
|
91
|
-
if (typeof function_ !== "function") throw new TypeError("Expected a function");
|
|
92
|
-
let returnValue;
|
|
93
|
-
let callCount = 0;
|
|
94
|
-
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
95
|
-
const onetime = function(...arguments_) {
|
|
96
|
-
calledFunctions.set(onetime, ++callCount);
|
|
97
|
-
if (callCount === 1) {
|
|
98
|
-
returnValue = function_.apply(this, arguments_);
|
|
99
|
-
function_ = void 0;
|
|
100
|
-
} else if (options.throw === true) throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
101
|
-
return returnValue;
|
|
102
|
-
};
|
|
103
|
-
mimicFunction(onetime, function_);
|
|
104
|
-
calledFunctions.set(onetime, callCount);
|
|
105
|
-
return onetime;
|
|
106
|
-
};
|
|
107
|
-
onetime.callCount = (function_) => {
|
|
108
|
-
if (!calledFunctions.has(function_)) throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
109
|
-
return calledFunctions.get(function_);
|
|
110
|
-
};
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
113
|
-
/**
|
|
114
|
-
* This is not the set of all possible signals.
|
|
115
|
-
*
|
|
116
|
-
* It IS, however, the set of all signals that trigger
|
|
117
|
-
* an exit on either Linux or BSD systems. Linux is a
|
|
118
|
-
* superset of the signal names supported on BSD, and
|
|
119
|
-
* the unknown signals just fail to register, so we can
|
|
120
|
-
* catch that easily enough.
|
|
121
|
-
*
|
|
122
|
-
* Windows signals are a different set, since there are
|
|
123
|
-
* signals that terminate Windows processes, but don't
|
|
124
|
-
* terminate (or don't even exist) on Posix systems.
|
|
125
|
-
*
|
|
126
|
-
* Don't bother with SIGKILL. It's uncatchable, which
|
|
127
|
-
* means that we can't fire any callbacks anyway.
|
|
128
|
-
*
|
|
129
|
-
* If a user does happen to register a handler on a non-
|
|
130
|
-
* fatal signal like SIGWINCH or something, and then
|
|
131
|
-
* exit, it'll end up firing `process.emit('exit')`, so
|
|
132
|
-
* the handler will be fired anyway.
|
|
133
|
-
*
|
|
134
|
-
* SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
|
|
135
|
-
* artificially, inherently leave the process in a
|
|
136
|
-
* state from which it is not safe to try and enter JS
|
|
137
|
-
* listeners.
|
|
138
|
-
*/
|
|
139
|
-
const signals = [];
|
|
140
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
141
|
-
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
142
|
-
if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../../node_modules/signal-exit/dist/mjs/index.js
|
|
145
|
-
const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
|
|
146
|
-
const kExitEmitter = Symbol.for("signal-exit emitter");
|
|
147
|
-
const global = globalThis;
|
|
148
|
-
const ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
149
|
-
var Emitter = class {
|
|
150
|
-
emitted = {
|
|
151
|
-
afterExit: false,
|
|
152
|
-
exit: false
|
|
153
|
-
};
|
|
154
|
-
listeners = {
|
|
155
|
-
afterExit: [],
|
|
156
|
-
exit: []
|
|
157
|
-
};
|
|
158
|
-
count = 0;
|
|
159
|
-
id = Math.random();
|
|
160
|
-
constructor() {
|
|
161
|
-
if (global[kExitEmitter]) return global[kExitEmitter];
|
|
162
|
-
ObjectDefineProperty(global, kExitEmitter, {
|
|
163
|
-
value: this,
|
|
164
|
-
writable: false,
|
|
165
|
-
enumerable: false,
|
|
166
|
-
configurable: false
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
on(ev, fn) {
|
|
170
|
-
this.listeners[ev].push(fn);
|
|
171
|
-
}
|
|
172
|
-
removeListener(ev, fn) {
|
|
173
|
-
const list = this.listeners[ev];
|
|
174
|
-
const i = list.indexOf(fn);
|
|
175
|
-
/* c8 ignore start */
|
|
176
|
-
if (i === -1) return;
|
|
177
|
-
/* c8 ignore stop */
|
|
178
|
-
if (i === 0 && list.length === 1) list.length = 0;
|
|
179
|
-
else list.splice(i, 1);
|
|
180
|
-
}
|
|
181
|
-
emit(ev, code, signal) {
|
|
182
|
-
if (this.emitted[ev]) return false;
|
|
183
|
-
this.emitted[ev] = true;
|
|
184
|
-
let ret = false;
|
|
185
|
-
for (const fn of this.listeners[ev]) ret = fn(code, signal) === true || ret;
|
|
186
|
-
if (ev === "exit") ret = this.emit("afterExit", code, signal) || ret;
|
|
187
|
-
return ret;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
var SignalExitBase = class {};
|
|
191
|
-
const signalExitWrap = (handler) => {
|
|
192
|
-
return {
|
|
193
|
-
onExit(cb, opts) {
|
|
194
|
-
return handler.onExit(cb, opts);
|
|
195
|
-
},
|
|
196
|
-
load() {
|
|
197
|
-
return handler.load();
|
|
198
|
-
},
|
|
199
|
-
unload() {
|
|
200
|
-
return handler.unload();
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
var SignalExitFallback = class extends SignalExitBase {
|
|
205
|
-
onExit() {
|
|
206
|
-
return () => {};
|
|
207
|
-
}
|
|
208
|
-
load() {}
|
|
209
|
-
unload() {}
|
|
210
|
-
};
|
|
211
|
-
var SignalExit = class extends SignalExitBase {
|
|
212
|
-
/* c8 ignore start */
|
|
213
|
-
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
214
|
-
/* c8 ignore stop */
|
|
215
|
-
#emitter = new Emitter();
|
|
216
|
-
#process;
|
|
217
|
-
#originalProcessEmit;
|
|
218
|
-
#originalProcessReallyExit;
|
|
219
|
-
#sigListeners = {};
|
|
220
|
-
#loaded = false;
|
|
221
|
-
constructor(process) {
|
|
222
|
-
super();
|
|
223
|
-
this.#process = process;
|
|
224
|
-
this.#sigListeners = {};
|
|
225
|
-
for (const sig of signals) this.#sigListeners[sig] = () => {
|
|
226
|
-
const listeners = this.#process.listeners(sig);
|
|
227
|
-
let { count } = this.#emitter;
|
|
228
|
-
/* c8 ignore start */
|
|
229
|
-
const p = process;
|
|
230
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
|
|
231
|
-
/* c8 ignore stop */
|
|
232
|
-
if (listeners.length === count) {
|
|
233
|
-
this.unload();
|
|
234
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
235
|
-
/* c8 ignore start */
|
|
236
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
237
|
-
if (!ret) process.kill(process.pid, s);
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
this.#originalProcessReallyExit = process.reallyExit;
|
|
241
|
-
this.#originalProcessEmit = process.emit;
|
|
242
|
-
}
|
|
243
|
-
onExit(cb, opts) {
|
|
244
|
-
/* c8 ignore start */
|
|
245
|
-
if (!processOk(this.#process)) return () => {};
|
|
246
|
-
/* c8 ignore stop */
|
|
247
|
-
if (this.#loaded === false) this.load();
|
|
248
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
249
|
-
this.#emitter.on(ev, cb);
|
|
250
|
-
return () => {
|
|
251
|
-
this.#emitter.removeListener(ev, cb);
|
|
252
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) this.unload();
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
load() {
|
|
256
|
-
if (this.#loaded) return;
|
|
257
|
-
this.#loaded = true;
|
|
258
|
-
this.#emitter.count += 1;
|
|
259
|
-
for (const sig of signals) try {
|
|
260
|
-
const fn = this.#sigListeners[sig];
|
|
261
|
-
if (fn) this.#process.on(sig, fn);
|
|
262
|
-
} catch (_) {}
|
|
263
|
-
this.#process.emit = (ev, ...a) => {
|
|
264
|
-
return this.#processEmit(ev, ...a);
|
|
265
|
-
};
|
|
266
|
-
this.#process.reallyExit = (code) => {
|
|
267
|
-
return this.#processReallyExit(code);
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
unload() {
|
|
271
|
-
if (!this.#loaded) return;
|
|
272
|
-
this.#loaded = false;
|
|
273
|
-
signals.forEach((sig) => {
|
|
274
|
-
const listener = this.#sigListeners[sig];
|
|
275
|
-
/* c8 ignore start */
|
|
276
|
-
if (!listener) throw new Error("Listener not defined for signal: " + sig);
|
|
277
|
-
/* c8 ignore stop */
|
|
278
|
-
try {
|
|
279
|
-
this.#process.removeListener(sig, listener);
|
|
280
|
-
} catch (_) {}
|
|
281
|
-
/* c8 ignore stop */
|
|
282
|
-
});
|
|
283
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
284
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
285
|
-
this.#emitter.count -= 1;
|
|
286
|
-
}
|
|
287
|
-
#processReallyExit(code) {
|
|
288
|
-
/* c8 ignore start */
|
|
289
|
-
if (!processOk(this.#process)) return 0;
|
|
290
|
-
this.#process.exitCode = code || 0;
|
|
291
|
-
/* c8 ignore stop */
|
|
292
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
293
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
294
|
-
}
|
|
295
|
-
#processEmit(ev, ...args) {
|
|
296
|
-
const og = this.#originalProcessEmit;
|
|
297
|
-
if (ev === "exit" && processOk(this.#process)) {
|
|
298
|
-
if (typeof args[0] === "number") this.#process.exitCode = args[0];
|
|
299
|
-
/* c8 ignore start */
|
|
300
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
301
|
-
/* c8 ignore start */
|
|
302
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
303
|
-
/* c8 ignore stop */
|
|
304
|
-
return ret;
|
|
305
|
-
} else return og.call(this.#process, ev, ...args);
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
const process$2 = globalThis.process;
|
|
309
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region ../../node_modules/log-update/node_modules/restore-cursor/index.js
|
|
312
|
-
const terminal = process$1.stderr.isTTY ? process$1.stderr : process$1.stdout.isTTY ? process$1.stdout : void 0;
|
|
313
|
-
const restoreCursor = terminal ? onetime(() => {
|
|
314
|
-
onExit(() => {
|
|
315
|
-
terminal.write("\x1B[?25h");
|
|
316
|
-
}, { alwaysLast: true });
|
|
317
|
-
}) : () => {};
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region ../../node_modules/log-update/node_modules/cli-cursor/index.js
|
|
320
|
-
let isHidden = false;
|
|
321
|
-
const cliCursor = {};
|
|
322
|
-
cliCursor.show = (writableStream = process$1.stderr) => {
|
|
323
|
-
if (!writableStream.isTTY) return;
|
|
324
|
-
isHidden = false;
|
|
325
|
-
writableStream.write("\x1B[?25h");
|
|
326
|
-
};
|
|
327
|
-
cliCursor.hide = (writableStream = process$1.stderr) => {
|
|
328
|
-
if (!writableStream.isTTY) return;
|
|
329
|
-
restoreCursor();
|
|
330
|
-
isHidden = true;
|
|
331
|
-
writableStream.write("\x1B[?25l");
|
|
332
|
-
};
|
|
333
|
-
cliCursor.toggle = (force, writableStream) => {
|
|
334
|
-
if (force !== void 0) isHidden = force;
|
|
335
|
-
if (isHidden) cliCursor.show(writableStream);
|
|
336
|
-
else cliCursor.hide(writableStream);
|
|
337
|
-
};
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region ../../node_modules/log-update/node_modules/ansi-styles/index.js
|
|
340
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
341
|
-
const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
|
|
342
|
-
const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
|
|
343
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
344
|
-
const styles = {
|
|
345
|
-
modifier: {
|
|
346
|
-
reset: [0, 0],
|
|
347
|
-
bold: [1, 22],
|
|
348
|
-
dim: [2, 22],
|
|
349
|
-
italic: [3, 23],
|
|
350
|
-
underline: [4, 24],
|
|
351
|
-
overline: [53, 55],
|
|
352
|
-
inverse: [7, 27],
|
|
353
|
-
hidden: [8, 28],
|
|
354
|
-
strikethrough: [9, 29]
|
|
355
|
-
},
|
|
356
|
-
color: {
|
|
357
|
-
black: [30, 39],
|
|
358
|
-
red: [31, 39],
|
|
359
|
-
green: [32, 39],
|
|
360
|
-
yellow: [33, 39],
|
|
361
|
-
blue: [34, 39],
|
|
362
|
-
magenta: [35, 39],
|
|
363
|
-
cyan: [36, 39],
|
|
364
|
-
white: [37, 39],
|
|
365
|
-
blackBright: [90, 39],
|
|
366
|
-
gray: [90, 39],
|
|
367
|
-
grey: [90, 39],
|
|
368
|
-
redBright: [91, 39],
|
|
369
|
-
greenBright: [92, 39],
|
|
370
|
-
yellowBright: [93, 39],
|
|
371
|
-
blueBright: [94, 39],
|
|
372
|
-
magentaBright: [95, 39],
|
|
373
|
-
cyanBright: [96, 39],
|
|
374
|
-
whiteBright: [97, 39]
|
|
375
|
-
},
|
|
376
|
-
bgColor: {
|
|
377
|
-
bgBlack: [40, 49],
|
|
378
|
-
bgRed: [41, 49],
|
|
379
|
-
bgGreen: [42, 49],
|
|
380
|
-
bgYellow: [43, 49],
|
|
381
|
-
bgBlue: [44, 49],
|
|
382
|
-
bgMagenta: [45, 49],
|
|
383
|
-
bgCyan: [46, 49],
|
|
384
|
-
bgWhite: [47, 49],
|
|
385
|
-
bgBlackBright: [100, 49],
|
|
386
|
-
bgGray: [100, 49],
|
|
387
|
-
bgGrey: [100, 49],
|
|
388
|
-
bgRedBright: [101, 49],
|
|
389
|
-
bgGreenBright: [102, 49],
|
|
390
|
-
bgYellowBright: [103, 49],
|
|
391
|
-
bgBlueBright: [104, 49],
|
|
392
|
-
bgMagentaBright: [105, 49],
|
|
393
|
-
bgCyanBright: [106, 49],
|
|
394
|
-
bgWhiteBright: [107, 49]
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
Object.keys(styles.modifier);
|
|
398
|
-
const foregroundColorNames = Object.keys(styles.color);
|
|
399
|
-
const backgroundColorNames = Object.keys(styles.bgColor);
|
|
400
|
-
[...foregroundColorNames, ...backgroundColorNames];
|
|
401
|
-
function assembleStyles() {
|
|
402
|
-
const codes = /* @__PURE__ */ new Map();
|
|
403
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
404
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
405
|
-
styles[styleName] = {
|
|
406
|
-
open: `\u001B[${style[0]}m`,
|
|
407
|
-
close: `\u001B[${style[1]}m`
|
|
408
|
-
};
|
|
409
|
-
group[styleName] = styles[styleName];
|
|
410
|
-
codes.set(style[0], style[1]);
|
|
411
|
-
}
|
|
412
|
-
Object.defineProperty(styles, groupName, {
|
|
413
|
-
value: group,
|
|
414
|
-
enumerable: false
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
Object.defineProperty(styles, "codes", {
|
|
418
|
-
value: codes,
|
|
419
|
-
enumerable: false
|
|
420
|
-
});
|
|
421
|
-
styles.color.close = "\x1B[39m";
|
|
422
|
-
styles.bgColor.close = "\x1B[49m";
|
|
423
|
-
styles.color.ansi = wrapAnsi16();
|
|
424
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
425
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
426
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
427
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
428
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
429
|
-
Object.defineProperties(styles, {
|
|
430
|
-
rgbToAnsi256: {
|
|
431
|
-
value(red, green, blue) {
|
|
432
|
-
if (red === green && green === blue) {
|
|
433
|
-
if (red < 8) return 16;
|
|
434
|
-
if (red > 248) return 231;
|
|
435
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
436
|
-
}
|
|
437
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
438
|
-
},
|
|
439
|
-
enumerable: false
|
|
440
|
-
},
|
|
441
|
-
hexToRgb: {
|
|
442
|
-
value(hex) {
|
|
443
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
444
|
-
if (!matches) return [
|
|
445
|
-
0,
|
|
446
|
-
0,
|
|
447
|
-
0
|
|
448
|
-
];
|
|
449
|
-
let [colorString] = matches;
|
|
450
|
-
if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
|
|
451
|
-
const integer = Number.parseInt(colorString, 16);
|
|
452
|
-
return [
|
|
453
|
-
integer >> 16 & 255,
|
|
454
|
-
integer >> 8 & 255,
|
|
455
|
-
integer & 255
|
|
456
|
-
];
|
|
457
|
-
},
|
|
458
|
-
enumerable: false
|
|
459
|
-
},
|
|
460
|
-
hexToAnsi256: {
|
|
461
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
462
|
-
enumerable: false
|
|
463
|
-
},
|
|
464
|
-
ansi256ToAnsi: {
|
|
465
|
-
value(code) {
|
|
466
|
-
if (code < 8) return 30 + code;
|
|
467
|
-
if (code < 16) return 90 + (code - 8);
|
|
468
|
-
let red;
|
|
469
|
-
let green;
|
|
470
|
-
let blue;
|
|
471
|
-
if (code >= 232) {
|
|
472
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
473
|
-
green = red;
|
|
474
|
-
blue = red;
|
|
475
|
-
} else {
|
|
476
|
-
code -= 16;
|
|
477
|
-
const remainder = code % 36;
|
|
478
|
-
red = Math.floor(code / 36) / 5;
|
|
479
|
-
green = Math.floor(remainder / 6) / 5;
|
|
480
|
-
blue = remainder % 6 / 5;
|
|
481
|
-
}
|
|
482
|
-
const value = Math.max(red, green, blue) * 2;
|
|
483
|
-
if (value === 0) return 30;
|
|
484
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
485
|
-
if (value === 2) result += 60;
|
|
486
|
-
return result;
|
|
487
|
-
},
|
|
488
|
-
enumerable: false
|
|
489
|
-
},
|
|
490
|
-
rgbToAnsi: {
|
|
491
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
492
|
-
enumerable: false
|
|
493
|
-
},
|
|
494
|
-
hexToAnsi: {
|
|
495
|
-
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
496
|
-
enumerable: false
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
return styles;
|
|
500
|
-
}
|
|
501
|
-
const ansiStyles = assembleStyles();
|
|
502
|
-
//#endregion
|
|
503
|
-
//#region ../../node_modules/log-update/node_modules/is-fullwidth-code-point/index.js
|
|
504
|
-
function isFullwidthCodePoint(codePoint) {
|
|
505
|
-
if (!Number.isInteger(codePoint)) return false;
|
|
506
|
-
return isFullWidth(codePoint) || isWide(codePoint);
|
|
507
|
-
}
|
|
508
|
-
//#endregion
|
|
509
|
-
//#region ../../node_modules/log-update/node_modules/slice-ansi/index.js
|
|
510
|
-
const ESCAPES = /* @__PURE__ */ new Set([27, 155]);
|
|
511
|
-
const CODE_POINT_0 = "0".codePointAt(0);
|
|
512
|
-
const CODE_POINT_9 = "9".codePointAt(0);
|
|
513
|
-
const MAX_ANSI_SEQUENCE_LENGTH = 19;
|
|
514
|
-
const endCodesSet = /* @__PURE__ */ new Set();
|
|
515
|
-
const endCodesMap = /* @__PURE__ */ new Map();
|
|
516
|
-
for (const [start, end] of ansiStyles.codes) {
|
|
517
|
-
endCodesSet.add(ansiStyles.color.ansi(end));
|
|
518
|
-
endCodesMap.set(ansiStyles.color.ansi(start), ansiStyles.color.ansi(end));
|
|
519
|
-
}
|
|
520
|
-
function getEndCode(code) {
|
|
521
|
-
if (endCodesSet.has(code)) return code;
|
|
522
|
-
if (endCodesMap.has(code)) return endCodesMap.get(code);
|
|
523
|
-
code = code.slice(2);
|
|
524
|
-
if (code.includes(";")) code = code[0] + "0";
|
|
525
|
-
const returnValue = ansiStyles.codes.get(Number.parseInt(code, 10));
|
|
526
|
-
if (returnValue) return ansiStyles.color.ansi(returnValue);
|
|
527
|
-
return ansiStyles.reset.open;
|
|
528
|
-
}
|
|
529
|
-
function findNumberIndex(string) {
|
|
530
|
-
for (let index = 0; index < string.length; index++) {
|
|
531
|
-
const codePoint = string.codePointAt(index);
|
|
532
|
-
if (codePoint >= CODE_POINT_0 && codePoint <= CODE_POINT_9) return index;
|
|
533
|
-
}
|
|
534
|
-
return -1;
|
|
535
|
-
}
|
|
536
|
-
function parseAnsiCode(string, offset) {
|
|
537
|
-
string = string.slice(offset, offset + MAX_ANSI_SEQUENCE_LENGTH);
|
|
538
|
-
const startIndex = findNumberIndex(string);
|
|
539
|
-
if (startIndex !== -1) {
|
|
540
|
-
let endIndex = string.indexOf("m", startIndex);
|
|
541
|
-
if (endIndex === -1) endIndex = string.length;
|
|
542
|
-
return string.slice(0, endIndex + 1);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
function tokenize(string, endCharacter = Number.POSITIVE_INFINITY) {
|
|
546
|
-
const returnValue = [];
|
|
547
|
-
let index = 0;
|
|
548
|
-
let visibleCount = 0;
|
|
549
|
-
while (index < string.length) {
|
|
550
|
-
const codePoint = string.codePointAt(index);
|
|
551
|
-
if (ESCAPES.has(codePoint)) {
|
|
552
|
-
const code = parseAnsiCode(string, index);
|
|
553
|
-
if (code) {
|
|
554
|
-
returnValue.push({
|
|
555
|
-
type: "ansi",
|
|
556
|
-
code,
|
|
557
|
-
endCode: getEndCode(code)
|
|
558
|
-
});
|
|
559
|
-
index += code.length;
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
const isFullWidth = isFullwidthCodePoint(codePoint);
|
|
564
|
-
const character = String.fromCodePoint(codePoint);
|
|
565
|
-
returnValue.push({
|
|
566
|
-
type: "character",
|
|
567
|
-
value: character,
|
|
568
|
-
isFullWidth
|
|
569
|
-
});
|
|
570
|
-
index += character.length;
|
|
571
|
-
visibleCount += isFullWidth ? 2 : character.length;
|
|
572
|
-
if (visibleCount >= endCharacter) break;
|
|
573
|
-
}
|
|
574
|
-
return returnValue;
|
|
575
|
-
}
|
|
576
|
-
function reduceAnsiCodes(codes) {
|
|
577
|
-
let returnValue = [];
|
|
578
|
-
for (const code of codes) if (code.code === ansiStyles.reset.open) returnValue = [];
|
|
579
|
-
else if (endCodesSet.has(code.code)) returnValue = returnValue.filter((returnValueCode) => returnValueCode.endCode !== code.code);
|
|
580
|
-
else {
|
|
581
|
-
returnValue = returnValue.filter((returnValueCode) => returnValueCode.endCode !== code.endCode);
|
|
582
|
-
returnValue.push(code);
|
|
583
|
-
}
|
|
584
|
-
return returnValue;
|
|
585
|
-
}
|
|
586
|
-
function undoAnsiCodes(codes) {
|
|
587
|
-
return reduceAnsiCodes(codes).map(({ endCode }) => endCode).reverse().join("");
|
|
588
|
-
}
|
|
589
|
-
function sliceAnsi(string, start, end) {
|
|
590
|
-
const tokens = tokenize(string, end);
|
|
591
|
-
let activeCodes = [];
|
|
592
|
-
let position = 0;
|
|
593
|
-
let returnValue = "";
|
|
594
|
-
let include = false;
|
|
595
|
-
for (const token of tokens) {
|
|
596
|
-
if (end !== void 0 && position >= end) break;
|
|
597
|
-
if (token.type === "ansi") {
|
|
598
|
-
activeCodes.push(token);
|
|
599
|
-
if (include) returnValue += token.code;
|
|
600
|
-
} else {
|
|
601
|
-
if (!include && position >= start) {
|
|
602
|
-
include = true;
|
|
603
|
-
activeCodes = reduceAnsiCodes(activeCodes);
|
|
604
|
-
returnValue = activeCodes.map(({ code }) => code).join("");
|
|
605
|
-
}
|
|
606
|
-
if (include) returnValue += token.value;
|
|
607
|
-
position += token.isFullWidth ? 2 : token.value.length;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
returnValue += undoAnsiCodes(activeCodes);
|
|
611
|
-
return returnValue;
|
|
612
|
-
}
|
|
613
|
-
//#endregion
|
|
614
|
-
//#region ../../node_modules/log-update/node_modules/strip-ansi/index.js
|
|
615
|
-
const regex = ansiRegex();
|
|
616
|
-
function stripAnsi(string) {
|
|
617
|
-
if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
618
|
-
if (!string.includes("\x1B") && !string.includes("")) return string;
|
|
619
|
-
return string.replace(regex, "");
|
|
620
|
-
}
|
|
621
|
-
//#endregion
|
|
622
|
-
//#region ../../node_modules/log-update/index.js
|
|
623
|
-
const defaultTerminalHeight = 24;
|
|
624
|
-
const getWidth = ({ columns = 80 }) => columns;
|
|
625
|
-
const fitToTerminalHeight = (stream, text) => {
|
|
626
|
-
const terminalHeight = stream.rows ?? defaultTerminalHeight;
|
|
627
|
-
const lines = text.split("\n");
|
|
628
|
-
const toRemove = Math.max(0, lines.length - terminalHeight);
|
|
629
|
-
return toRemove ? sliceAnsi(text, stripAnsi(lines.slice(0, toRemove).join("\n")).length + 1) : text;
|
|
630
|
-
};
|
|
631
|
-
function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
632
|
-
let previousLineCount = 0;
|
|
633
|
-
let previousWidth = getWidth(stream);
|
|
634
|
-
let previousOutput = "";
|
|
635
|
-
const reset = () => {
|
|
636
|
-
previousOutput = "";
|
|
637
|
-
previousWidth = getWidth(stream);
|
|
638
|
-
previousLineCount = 0;
|
|
639
|
-
};
|
|
640
|
-
const render = (...arguments_) => {
|
|
641
|
-
if (!showCursor) cliCursor.hide();
|
|
642
|
-
let output = fitToTerminalHeight(stream, arguments_.join(" ") + "\n");
|
|
643
|
-
const width = getWidth(stream);
|
|
644
|
-
if (output === previousOutput && previousWidth === width) return;
|
|
645
|
-
previousOutput = output;
|
|
646
|
-
previousWidth = width;
|
|
647
|
-
output = wrapAnsi(output, width, {
|
|
648
|
-
trim: false,
|
|
649
|
-
hard: true,
|
|
650
|
-
wordWrap: false
|
|
651
|
-
});
|
|
652
|
-
stream.write(eraseLines(previousLineCount) + output);
|
|
653
|
-
previousLineCount = output.split("\n").length;
|
|
654
|
-
};
|
|
655
|
-
render.clear = () => {
|
|
656
|
-
stream.write(eraseLines(previousLineCount));
|
|
657
|
-
reset();
|
|
658
|
-
};
|
|
659
|
-
render.done = () => {
|
|
660
|
-
reset();
|
|
661
|
-
if (!showCursor) cliCursor.show();
|
|
662
|
-
};
|
|
663
|
-
return render;
|
|
664
|
-
}
|
|
665
|
-
createLogUpdate(process$1.stdout);
|
|
666
|
-
createLogUpdate(process$1.stderr);
|
|
667
|
-
//#endregion
|
|
668
|
-
export { createLogUpdate };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
-
var __exportAll = (all, no_symbols) => {
|
|
11
|
-
let target = {};
|
|
12
|
-
for (var name in all) __defProp(target, name, {
|
|
13
|
-
get: all[name],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
return target;
|
|
18
|
-
};
|
|
19
|
-
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
21
|
-
key = keys[i];
|
|
22
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
23
|
-
get: ((k) => from[k]).bind(null, key),
|
|
24
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
30
|
-
value: mod,
|
|
31
|
-
enumerable: true
|
|
32
|
-
}) : target, mod));
|
|
33
|
-
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
34
|
-
//#endregion
|
|
35
|
-
export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
|