@hot-updater/supabase 0.13.1 → 0.13.3-rc.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/dist/iac/index.cjs +848 -142
- package/dist/iac/index.js +794 -90
- package/package.json +8 -16
- package/supabase/index.ts +1 -0
package/dist/iac/index.js
CHANGED
|
@@ -5,11 +5,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __require = /* @__PURE__ */ ((
|
|
9
|
-
get: (a2,
|
|
10
|
-
}) :
|
|
8
|
+
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
9
|
+
get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
|
|
10
|
+
}) : x2)(function(x2) {
|
|
11
11
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' +
|
|
12
|
+
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -31,6 +31,135 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
mod
|
|
32
32
|
));
|
|
33
33
|
|
|
34
|
+
// ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
35
|
+
var require_src = __commonJS({
|
|
36
|
+
"../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
37
|
+
"use strict";
|
|
38
|
+
var ESC = "\x1B";
|
|
39
|
+
var CSI = `${ESC}[`;
|
|
40
|
+
var beep = "\x07";
|
|
41
|
+
var cursor = {
|
|
42
|
+
to(x2, y2) {
|
|
43
|
+
if (!y2) return `${CSI}${x2 + 1}G`;
|
|
44
|
+
return `${CSI}${y2 + 1};${x2 + 1}H`;
|
|
45
|
+
},
|
|
46
|
+
move(x2, y2) {
|
|
47
|
+
let ret = "";
|
|
48
|
+
if (x2 < 0) ret += `${CSI}${-x2}D`;
|
|
49
|
+
else if (x2 > 0) ret += `${CSI}${x2}C`;
|
|
50
|
+
if (y2 < 0) ret += `${CSI}${-y2}A`;
|
|
51
|
+
else if (y2 > 0) ret += `${CSI}${y2}B`;
|
|
52
|
+
return ret;
|
|
53
|
+
},
|
|
54
|
+
up: (count2 = 1) => `${CSI}${count2}A`,
|
|
55
|
+
down: (count2 = 1) => `${CSI}${count2}B`,
|
|
56
|
+
forward: (count2 = 1) => `${CSI}${count2}C`,
|
|
57
|
+
backward: (count2 = 1) => `${CSI}${count2}D`,
|
|
58
|
+
nextLine: (count2 = 1) => `${CSI}E`.repeat(count2),
|
|
59
|
+
prevLine: (count2 = 1) => `${CSI}F`.repeat(count2),
|
|
60
|
+
left: `${CSI}G`,
|
|
61
|
+
hide: `${CSI}?25l`,
|
|
62
|
+
show: `${CSI}?25h`,
|
|
63
|
+
save: `${ESC}7`,
|
|
64
|
+
restore: `${ESC}8`
|
|
65
|
+
};
|
|
66
|
+
var scroll = {
|
|
67
|
+
up: (count2 = 1) => `${CSI}S`.repeat(count2),
|
|
68
|
+
down: (count2 = 1) => `${CSI}T`.repeat(count2)
|
|
69
|
+
};
|
|
70
|
+
var erase = {
|
|
71
|
+
screen: `${CSI}2J`,
|
|
72
|
+
up: (count2 = 1) => `${CSI}1J`.repeat(count2),
|
|
73
|
+
down: (count2 = 1) => `${CSI}J`.repeat(count2),
|
|
74
|
+
line: `${CSI}2K`,
|
|
75
|
+
lineEnd: `${CSI}K`,
|
|
76
|
+
lineStart: `${CSI}1K`,
|
|
77
|
+
lines(count2) {
|
|
78
|
+
let clear = "";
|
|
79
|
+
for (let i2 = 0; i2 < count2; i2++)
|
|
80
|
+
clear += this.line + (i2 < count2 - 1 ? cursor.up() : "");
|
|
81
|
+
if (count2)
|
|
82
|
+
clear += cursor.left;
|
|
83
|
+
return clear;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
module.exports = { cursor, scroll, erase, beep };
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
91
|
+
var require_picocolors = __commonJS({
|
|
92
|
+
"../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
93
|
+
"use strict";
|
|
94
|
+
var p = process || {};
|
|
95
|
+
var argv = p.argv || [];
|
|
96
|
+
var env = p.env || {};
|
|
97
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
98
|
+
var formatter = (open, close, replace = open) => (input) => {
|
|
99
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
100
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
101
|
+
};
|
|
102
|
+
var replaceClose = (string, close, replace, index) => {
|
|
103
|
+
let result = "", cursor = 0;
|
|
104
|
+
do {
|
|
105
|
+
result += string.substring(cursor, index) + replace;
|
|
106
|
+
cursor = index + close.length;
|
|
107
|
+
index = string.indexOf(close, cursor);
|
|
108
|
+
} while (~index);
|
|
109
|
+
return result + string.substring(cursor);
|
|
110
|
+
};
|
|
111
|
+
var createColors = (enabled = isColorSupported) => {
|
|
112
|
+
let f3 = enabled ? formatter : () => String;
|
|
113
|
+
return {
|
|
114
|
+
isColorSupported: enabled,
|
|
115
|
+
reset: f3("\x1B[0m", "\x1B[0m"),
|
|
116
|
+
bold: f3("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
117
|
+
dim: f3("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
118
|
+
italic: f3("\x1B[3m", "\x1B[23m"),
|
|
119
|
+
underline: f3("\x1B[4m", "\x1B[24m"),
|
|
120
|
+
inverse: f3("\x1B[7m", "\x1B[27m"),
|
|
121
|
+
hidden: f3("\x1B[8m", "\x1B[28m"),
|
|
122
|
+
strikethrough: f3("\x1B[9m", "\x1B[29m"),
|
|
123
|
+
black: f3("\x1B[30m", "\x1B[39m"),
|
|
124
|
+
red: f3("\x1B[31m", "\x1B[39m"),
|
|
125
|
+
green: f3("\x1B[32m", "\x1B[39m"),
|
|
126
|
+
yellow: f3("\x1B[33m", "\x1B[39m"),
|
|
127
|
+
blue: f3("\x1B[34m", "\x1B[39m"),
|
|
128
|
+
magenta: f3("\x1B[35m", "\x1B[39m"),
|
|
129
|
+
cyan: f3("\x1B[36m", "\x1B[39m"),
|
|
130
|
+
white: f3("\x1B[37m", "\x1B[39m"),
|
|
131
|
+
gray: f3("\x1B[90m", "\x1B[39m"),
|
|
132
|
+
bgBlack: f3("\x1B[40m", "\x1B[49m"),
|
|
133
|
+
bgRed: f3("\x1B[41m", "\x1B[49m"),
|
|
134
|
+
bgGreen: f3("\x1B[42m", "\x1B[49m"),
|
|
135
|
+
bgYellow: f3("\x1B[43m", "\x1B[49m"),
|
|
136
|
+
bgBlue: f3("\x1B[44m", "\x1B[49m"),
|
|
137
|
+
bgMagenta: f3("\x1B[45m", "\x1B[49m"),
|
|
138
|
+
bgCyan: f3("\x1B[46m", "\x1B[49m"),
|
|
139
|
+
bgWhite: f3("\x1B[47m", "\x1B[49m"),
|
|
140
|
+
blackBright: f3("\x1B[90m", "\x1B[39m"),
|
|
141
|
+
redBright: f3("\x1B[91m", "\x1B[39m"),
|
|
142
|
+
greenBright: f3("\x1B[92m", "\x1B[39m"),
|
|
143
|
+
yellowBright: f3("\x1B[93m", "\x1B[39m"),
|
|
144
|
+
blueBright: f3("\x1B[94m", "\x1B[39m"),
|
|
145
|
+
magentaBright: f3("\x1B[95m", "\x1B[39m"),
|
|
146
|
+
cyanBright: f3("\x1B[96m", "\x1B[39m"),
|
|
147
|
+
whiteBright: f3("\x1B[97m", "\x1B[39m"),
|
|
148
|
+
bgBlackBright: f3("\x1B[100m", "\x1B[49m"),
|
|
149
|
+
bgRedBright: f3("\x1B[101m", "\x1B[49m"),
|
|
150
|
+
bgGreenBright: f3("\x1B[102m", "\x1B[49m"),
|
|
151
|
+
bgYellowBright: f3("\x1B[103m", "\x1B[49m"),
|
|
152
|
+
bgBlueBright: f3("\x1B[104m", "\x1B[49m"),
|
|
153
|
+
bgMagentaBright: f3("\x1B[105m", "\x1B[49m"),
|
|
154
|
+
bgCyanBright: f3("\x1B[106m", "\x1B[49m"),
|
|
155
|
+
bgWhiteBright: f3("\x1B[107m", "\x1B[49m")
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
module.exports = createColors();
|
|
159
|
+
module.exports.createColors = createColors;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
34
163
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
35
164
|
var require_windows = __commonJS({
|
|
36
165
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
@@ -48,8 +177,8 @@ var require_windows = __commonJS({
|
|
|
48
177
|
return true;
|
|
49
178
|
}
|
|
50
179
|
for (var i2 = 0; i2 < pathext.length; i2++) {
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
180
|
+
var p = pathext[i2].toLowerCase();
|
|
181
|
+
if (p && path7.substr(-p.length).toLowerCase() === p) {
|
|
53
182
|
return true;
|
|
54
183
|
}
|
|
55
184
|
}
|
|
@@ -96,11 +225,11 @@ var require_mode = __commonJS({
|
|
|
96
225
|
var gid = stat.gid;
|
|
97
226
|
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
98
227
|
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var ug =
|
|
103
|
-
var ret = mod &
|
|
228
|
+
var u3 = parseInt("100", 8);
|
|
229
|
+
var g3 = parseInt("010", 8);
|
|
230
|
+
var o3 = parseInt("001", 8);
|
|
231
|
+
var ug = u3 | g3;
|
|
232
|
+
var ret = mod & o3 || mod & g3 && gid === myGid || mod & u3 && uid === myUid || mod & ug && myUid === 0;
|
|
104
233
|
return ret;
|
|
105
234
|
}
|
|
106
235
|
}
|
|
@@ -206,21 +335,21 @@ var require_which = __commonJS({
|
|
|
206
335
|
const ppRaw = pathEnv[i2];
|
|
207
336
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
208
337
|
const pCmd = path7.join(pathPart, cmd);
|
|
209
|
-
const
|
|
210
|
-
resolve(subStep(
|
|
338
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
339
|
+
resolve(subStep(p, i2, 0));
|
|
211
340
|
});
|
|
212
|
-
const subStep = (
|
|
341
|
+
const subStep = (p, i2, ii) => new Promise((resolve, reject) => {
|
|
213
342
|
if (ii === pathExt.length)
|
|
214
343
|
return resolve(step(i2 + 1));
|
|
215
344
|
const ext = pathExt[ii];
|
|
216
|
-
isexe(
|
|
345
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
217
346
|
if (!er && is) {
|
|
218
347
|
if (opt.all)
|
|
219
|
-
found.push(
|
|
348
|
+
found.push(p + ext);
|
|
220
349
|
else
|
|
221
|
-
return resolve(
|
|
350
|
+
return resolve(p + ext);
|
|
222
351
|
}
|
|
223
|
-
return resolve(subStep(
|
|
352
|
+
return resolve(subStep(p, i2, ii + 1));
|
|
224
353
|
});
|
|
225
354
|
});
|
|
226
355
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -233,9 +362,9 @@ var require_which = __commonJS({
|
|
|
233
362
|
const ppRaw = pathEnv[i2];
|
|
234
363
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
235
364
|
const pCmd = path7.join(pathPart, cmd);
|
|
236
|
-
const
|
|
237
|
-
for (let
|
|
238
|
-
const cur =
|
|
365
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
366
|
+
for (let j2 = 0; j2 < pathExt.length; j2++) {
|
|
367
|
+
const cur = p + pathExt[j2];
|
|
239
368
|
try {
|
|
240
369
|
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
241
370
|
if (is) {
|
|
@@ -300,7 +429,7 @@ var require_resolveCommand = __commonJS({
|
|
|
300
429
|
path: env[getPathKey({ env })],
|
|
301
430
|
pathExt: withoutPathExt ? path7.delimiter : void 0
|
|
302
431
|
});
|
|
303
|
-
} catch (
|
|
432
|
+
} catch (e2) {
|
|
304
433
|
} finally {
|
|
305
434
|
if (shouldSwitchCwd) {
|
|
306
435
|
process.chdir(cwd);
|
|
@@ -385,7 +514,7 @@ var require_readShebang = __commonJS({
|
|
|
385
514
|
fd = fs2.openSync(command, "r");
|
|
386
515
|
fs2.readSync(fd, buffer, 0, size, 0);
|
|
387
516
|
fs2.closeSync(fd);
|
|
388
|
-
} catch (
|
|
517
|
+
} catch (e2) {
|
|
389
518
|
}
|
|
390
519
|
return shebangCommand(buffer.toString());
|
|
391
520
|
}
|
|
@@ -532,8 +661,583 @@ var require_cross_spawn = __commonJS({
|
|
|
532
661
|
}
|
|
533
662
|
});
|
|
534
663
|
|
|
535
|
-
//
|
|
536
|
-
import
|
|
664
|
+
// ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
|
|
665
|
+
import { stripVTControlCharacters as S2 } from "node:util";
|
|
666
|
+
|
|
667
|
+
// ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
|
|
668
|
+
var import_sisteransi = __toESM(require_src(), 1);
|
|
669
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
670
|
+
import { stdin as $, stdout as j } from "node:process";
|
|
671
|
+
import * as f from "node:readline";
|
|
672
|
+
import M from "node:readline";
|
|
673
|
+
import { WriteStream as U } from "node:tty";
|
|
674
|
+
function J({ onlyFirst: t = false } = {}) {
|
|
675
|
+
const F2 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
676
|
+
return new RegExp(F2, t ? void 0 : "g");
|
|
677
|
+
}
|
|
678
|
+
var Q = J();
|
|
679
|
+
function T(t) {
|
|
680
|
+
if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
|
|
681
|
+
return t.replace(Q, "");
|
|
682
|
+
}
|
|
683
|
+
function O(t) {
|
|
684
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
685
|
+
}
|
|
686
|
+
var P = { exports: {} };
|
|
687
|
+
(function(t) {
|
|
688
|
+
var u3 = {};
|
|
689
|
+
t.exports = u3, u3.eastAsianWidth = function(e2) {
|
|
690
|
+
var s = e2.charCodeAt(0), i2 = e2.length == 2 ? e2.charCodeAt(1) : 0, D2 = s;
|
|
691
|
+
return 55296 <= s && s <= 56319 && 56320 <= i2 && i2 <= 57343 && (s &= 1023, i2 &= 1023, D2 = s << 10 | i2, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
|
|
692
|
+
}, u3.characterLength = function(e2) {
|
|
693
|
+
var s = this.eastAsianWidth(e2);
|
|
694
|
+
return s == "F" || s == "W" || s == "A" ? 2 : 1;
|
|
695
|
+
};
|
|
696
|
+
function F2(e2) {
|
|
697
|
+
return e2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
698
|
+
}
|
|
699
|
+
u3.length = function(e2) {
|
|
700
|
+
for (var s = F2(e2), i2 = 0, D2 = 0; D2 < s.length; D2++) i2 = i2 + this.characterLength(s[D2]);
|
|
701
|
+
return i2;
|
|
702
|
+
}, u3.slice = function(e2, s, i2) {
|
|
703
|
+
textLen = u3.length(e2), s = s || 0, i2 = i2 || 1, s < 0 && (s = textLen + s), i2 < 0 && (i2 = textLen + i2);
|
|
704
|
+
for (var D2 = "", C2 = 0, o3 = F2(e2), E = 0; E < o3.length; E++) {
|
|
705
|
+
var a2 = o3[E], n2 = u3.length(a2);
|
|
706
|
+
if (C2 >= s - (n2 == 2 ? 1 : 0)) if (C2 + n2 <= i2) D2 += a2;
|
|
707
|
+
else break;
|
|
708
|
+
C2 += n2;
|
|
709
|
+
}
|
|
710
|
+
return D2;
|
|
711
|
+
};
|
|
712
|
+
})(P);
|
|
713
|
+
var X = P.exports;
|
|
714
|
+
var DD = O(X);
|
|
715
|
+
var uD = function() {
|
|
716
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
717
|
+
};
|
|
718
|
+
var FD = O(uD);
|
|
719
|
+
function A(t, u3 = {}) {
|
|
720
|
+
if (typeof t != "string" || t.length === 0 || (u3 = { ambiguousIsNarrow: true, ...u3 }, t = T(t), t.length === 0)) return 0;
|
|
721
|
+
t = t.replace(FD(), " ");
|
|
722
|
+
const F2 = u3.ambiguousIsNarrow ? 1 : 2;
|
|
723
|
+
let e2 = 0;
|
|
724
|
+
for (const s of t) {
|
|
725
|
+
const i2 = s.codePointAt(0);
|
|
726
|
+
if (i2 <= 31 || i2 >= 127 && i2 <= 159 || i2 >= 768 && i2 <= 879) continue;
|
|
727
|
+
switch (DD.eastAsianWidth(s)) {
|
|
728
|
+
case "F":
|
|
729
|
+
case "W":
|
|
730
|
+
e2 += 2;
|
|
731
|
+
break;
|
|
732
|
+
case "A":
|
|
733
|
+
e2 += F2;
|
|
734
|
+
break;
|
|
735
|
+
default:
|
|
736
|
+
e2 += 1;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return e2;
|
|
740
|
+
}
|
|
741
|
+
var m = 10;
|
|
742
|
+
var L = (t = 0) => (u3) => `\x1B[${u3 + t}m`;
|
|
743
|
+
var N = (t = 0) => (u3) => `\x1B[${38 + t};5;${u3}m`;
|
|
744
|
+
var I = (t = 0) => (u3, F2, e2) => `\x1B[${38 + t};2;${u3};${F2};${e2}m`;
|
|
745
|
+
var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
|
|
746
|
+
Object.keys(r.modifier);
|
|
747
|
+
var tD = Object.keys(r.color);
|
|
748
|
+
var eD = Object.keys(r.bgColor);
|
|
749
|
+
[...tD, ...eD];
|
|
750
|
+
function sD() {
|
|
751
|
+
const t = /* @__PURE__ */ new Map();
|
|
752
|
+
for (const [u3, F2] of Object.entries(r)) {
|
|
753
|
+
for (const [e2, s] of Object.entries(F2)) r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F2[e2] = r[e2], t.set(s[0], s[1]);
|
|
754
|
+
Object.defineProperty(r, u3, { value: F2, enumerable: false });
|
|
755
|
+
}
|
|
756
|
+
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u3, F2, e2) => u3 === F2 && F2 === e2 ? u3 < 8 ? 16 : u3 > 248 ? 231 : Math.round((u3 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u3 / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u3) => {
|
|
757
|
+
const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u3.toString(16));
|
|
758
|
+
if (!F2) return [0, 0, 0];
|
|
759
|
+
let [e2] = F2;
|
|
760
|
+
e2.length === 3 && (e2 = [...e2].map((i2) => i2 + i2).join(""));
|
|
761
|
+
const s = Number.parseInt(e2, 16);
|
|
762
|
+
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
763
|
+
}, enumerable: false }, hexToAnsi256: { value: (u3) => r.rgbToAnsi256(...r.hexToRgb(u3)), enumerable: false }, ansi256ToAnsi: { value: (u3) => {
|
|
764
|
+
if (u3 < 8) return 30 + u3;
|
|
765
|
+
if (u3 < 16) return 90 + (u3 - 8);
|
|
766
|
+
let F2, e2, s;
|
|
767
|
+
if (u3 >= 232) F2 = ((u3 - 232) * 10 + 8) / 255, e2 = F2, s = F2;
|
|
768
|
+
else {
|
|
769
|
+
u3 -= 16;
|
|
770
|
+
const C2 = u3 % 36;
|
|
771
|
+
F2 = Math.floor(u3 / 36) / 5, e2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
|
|
772
|
+
}
|
|
773
|
+
const i2 = Math.max(F2, e2, s) * 2;
|
|
774
|
+
if (i2 === 0) return 30;
|
|
775
|
+
let D2 = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F2));
|
|
776
|
+
return i2 === 2 && (D2 += 60), D2;
|
|
777
|
+
}, enumerable: false }, rgbToAnsi: { value: (u3, F2, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u3, F2, e2)), enumerable: false }, hexToAnsi: { value: (u3) => r.ansi256ToAnsi(r.hexToAnsi256(u3)), enumerable: false } }), r;
|
|
778
|
+
}
|
|
779
|
+
var iD = sD();
|
|
780
|
+
var v = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
781
|
+
var CD = 39;
|
|
782
|
+
var w = "\x07";
|
|
783
|
+
var W = "[";
|
|
784
|
+
var rD = "]";
|
|
785
|
+
var R = "m";
|
|
786
|
+
var y = `${rD}8;;`;
|
|
787
|
+
var V = (t) => `${v.values().next().value}${W}${t}${R}`;
|
|
788
|
+
var z = (t) => `${v.values().next().value}${y}${t}${w}`;
|
|
789
|
+
var ED = (t) => t.split(" ").map((u3) => A(u3));
|
|
790
|
+
var _ = (t, u3, F2) => {
|
|
791
|
+
const e2 = [...u3];
|
|
792
|
+
let s = false, i2 = false, D2 = A(T(t[t.length - 1]));
|
|
793
|
+
for (const [C2, o3] of e2.entries()) {
|
|
794
|
+
const E = A(o3);
|
|
795
|
+
if (D2 + E <= F2 ? t[t.length - 1] += o3 : (t.push(o3), D2 = 0), v.has(o3) && (s = true, i2 = e2.slice(C2 + 1).join("").startsWith(y)), s) {
|
|
796
|
+
i2 ? o3 === w && (s = false, i2 = false) : o3 === R && (s = false);
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
D2 += E, D2 === F2 && C2 < e2.length - 1 && (t.push(""), D2 = 0);
|
|
800
|
+
}
|
|
801
|
+
!D2 && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
802
|
+
};
|
|
803
|
+
var nD = (t) => {
|
|
804
|
+
const u3 = t.split(" ");
|
|
805
|
+
let F2 = u3.length;
|
|
806
|
+
for (; F2 > 0 && !(A(u3[F2 - 1]) > 0); ) F2--;
|
|
807
|
+
return F2 === u3.length ? t : u3.slice(0, F2).join(" ") + u3.slice(F2).join("");
|
|
808
|
+
};
|
|
809
|
+
var oD = (t, u3, F2 = {}) => {
|
|
810
|
+
if (F2.trim !== false && t.trim() === "") return "";
|
|
811
|
+
let e2 = "", s, i2;
|
|
812
|
+
const D2 = ED(t);
|
|
813
|
+
let C2 = [""];
|
|
814
|
+
for (const [E, a2] of t.split(" ").entries()) {
|
|
815
|
+
F2.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
|
|
816
|
+
let n2 = A(C2[C2.length - 1]);
|
|
817
|
+
if (E !== 0 && (n2 >= u3 && (F2.wordWrap === false || F2.trim === false) && (C2.push(""), n2 = 0), (n2 > 0 || F2.trim === false) && (C2[C2.length - 1] += " ", n2++)), F2.hard && D2[E] > u3) {
|
|
818
|
+
const B2 = u3 - n2, p = 1 + Math.floor((D2[E] - B2 - 1) / u3);
|
|
819
|
+
Math.floor((D2[E] - 1) / u3) < p && C2.push(""), _(C2, a2, u3);
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
822
|
+
if (n2 + D2[E] > u3 && n2 > 0 && D2[E] > 0) {
|
|
823
|
+
if (F2.wordWrap === false && n2 < u3) {
|
|
824
|
+
_(C2, a2, u3);
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
827
|
+
C2.push("");
|
|
828
|
+
}
|
|
829
|
+
if (n2 + D2[E] > u3 && F2.wordWrap === false) {
|
|
830
|
+
_(C2, a2, u3);
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
C2[C2.length - 1] += a2;
|
|
834
|
+
}
|
|
835
|
+
F2.trim !== false && (C2 = C2.map((E) => nD(E)));
|
|
836
|
+
const o3 = [...C2.join(`
|
|
837
|
+
`)];
|
|
838
|
+
for (const [E, a2] of o3.entries()) {
|
|
839
|
+
if (e2 += a2, v.has(a2)) {
|
|
840
|
+
const { groups: B2 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o3.slice(E).join("")) || { groups: {} };
|
|
841
|
+
if (B2.code !== void 0) {
|
|
842
|
+
const p = Number.parseFloat(B2.code);
|
|
843
|
+
s = p === CD ? void 0 : p;
|
|
844
|
+
} else B2.uri !== void 0 && (i2 = B2.uri.length === 0 ? void 0 : B2.uri);
|
|
845
|
+
}
|
|
846
|
+
const n2 = iD.codes.get(Number(s));
|
|
847
|
+
o3[E + 1] === `
|
|
848
|
+
` ? (i2 && (e2 += z("")), s && n2 && (e2 += V(n2))) : a2 === `
|
|
849
|
+
` && (s && n2 && (e2 += V(s)), i2 && (e2 += z(i2)));
|
|
850
|
+
}
|
|
851
|
+
return e2;
|
|
852
|
+
};
|
|
853
|
+
function G(t, u3, F2) {
|
|
854
|
+
return String(t).normalize().replace(/\r\n/g, `
|
|
855
|
+
`).split(`
|
|
856
|
+
`).map((e2) => oD(e2, u3, F2)).join(`
|
|
857
|
+
`);
|
|
858
|
+
}
|
|
859
|
+
var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
860
|
+
var c = { actions: new Set(aD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
|
|
861
|
+
function k(t, u3) {
|
|
862
|
+
if (typeof t == "string") return c.aliases.get(t) === u3;
|
|
863
|
+
for (const F2 of t) if (F2 !== void 0 && k(F2, u3)) return true;
|
|
864
|
+
return false;
|
|
865
|
+
}
|
|
866
|
+
function lD(t, u3) {
|
|
867
|
+
if (t === u3) return;
|
|
868
|
+
const F2 = t.split(`
|
|
869
|
+
`), e2 = u3.split(`
|
|
870
|
+
`), s = [];
|
|
871
|
+
for (let i2 = 0; i2 < Math.max(F2.length, e2.length); i2++) F2[i2] !== e2[i2] && s.push(i2);
|
|
872
|
+
return s;
|
|
873
|
+
}
|
|
874
|
+
var xD = globalThis.process.platform.startsWith("win");
|
|
875
|
+
var S = Symbol("clack:cancel");
|
|
876
|
+
function BD(t) {
|
|
877
|
+
return t === S;
|
|
878
|
+
}
|
|
879
|
+
function d(t, u3) {
|
|
880
|
+
const F2 = t;
|
|
881
|
+
F2.isTTY && F2.setRawMode(u3);
|
|
882
|
+
}
|
|
883
|
+
function cD({ input: t = $, output: u3 = j, overwrite: F2 = true, hideCursor: e2 = true } = {}) {
|
|
884
|
+
const s = f.createInterface({ input: t, output: u3, prompt: "", tabSize: 1 });
|
|
885
|
+
f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);
|
|
886
|
+
const i2 = (D2, { name: C2, sequence: o3 }) => {
|
|
887
|
+
const E = String(D2);
|
|
888
|
+
if (k([E, C2, o3], "cancel")) {
|
|
889
|
+
e2 && u3.write(import_sisteransi.cursor.show), process.exit(0);
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
if (!F2) return;
|
|
893
|
+
const a2 = C2 === "return" ? 0 : -1, n2 = C2 === "return" ? -1 : 0;
|
|
894
|
+
f.moveCursor(u3, a2, n2, () => {
|
|
895
|
+
f.clearLine(u3, 1, () => {
|
|
896
|
+
t.once("keypress", i2);
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
return e2 && u3.write(import_sisteransi.cursor.hide), t.once("keypress", i2), () => {
|
|
901
|
+
t.off("keypress", i2), e2 && u3.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
var AD = Object.defineProperty;
|
|
905
|
+
var pD = (t, u3, F2) => u3 in t ? AD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
|
|
906
|
+
var h = (t, u3, F2) => (pD(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
|
|
907
|
+
var x = class {
|
|
908
|
+
constructor(u3, F2 = true) {
|
|
909
|
+
h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
|
|
910
|
+
const { input: e2 = $, output: s = j, render: i2, signal: D2, ...C2 } = u3;
|
|
911
|
+
this.opts = C2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i2.bind(this), this._track = F2, this._abortSignal = D2, this.input = e2, this.output = s;
|
|
912
|
+
}
|
|
913
|
+
unsubscribe() {
|
|
914
|
+
this._subscribers.clear();
|
|
915
|
+
}
|
|
916
|
+
setSubscriber(u3, F2) {
|
|
917
|
+
const e2 = this._subscribers.get(u3) ?? [];
|
|
918
|
+
e2.push(F2), this._subscribers.set(u3, e2);
|
|
919
|
+
}
|
|
920
|
+
on(u3, F2) {
|
|
921
|
+
this.setSubscriber(u3, { cb: F2 });
|
|
922
|
+
}
|
|
923
|
+
once(u3, F2) {
|
|
924
|
+
this.setSubscriber(u3, { cb: F2, once: true });
|
|
925
|
+
}
|
|
926
|
+
emit(u3, ...F2) {
|
|
927
|
+
const e2 = this._subscribers.get(u3) ?? [], s = [];
|
|
928
|
+
for (const i2 of e2) i2.cb(...F2), i2.once && s.push(() => e2.splice(e2.indexOf(i2), 1));
|
|
929
|
+
for (const i2 of s) i2();
|
|
930
|
+
}
|
|
931
|
+
prompt() {
|
|
932
|
+
return new Promise((u3, F2) => {
|
|
933
|
+
if (this._abortSignal) {
|
|
934
|
+
if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u3(S);
|
|
935
|
+
this._abortSignal.addEventListener("abort", () => {
|
|
936
|
+
this.state = "cancel", this.close();
|
|
937
|
+
}, { once: true });
|
|
938
|
+
}
|
|
939
|
+
const e2 = new U(0);
|
|
940
|
+
e2._write = (s, i2, D2) => {
|
|
941
|
+
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
|
|
942
|
+
}, this.input.pipe(e2), this.rl = M.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
943
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(this.value);
|
|
944
|
+
}), this.once("cancel", () => {
|
|
945
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(S);
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
onKeypress(u3, F2) {
|
|
950
|
+
if (this.state === "error" && (this.state = "active"), F2?.name && (!this._track && c.aliases.has(F2.name) && this.emit("cursor", c.aliases.get(F2.name)), c.actions.has(F2.name) && this.emit("cursor", F2.name)), u3 && (u3.toLowerCase() === "y" || u3.toLowerCase() === "n") && this.emit("confirm", u3.toLowerCase() === "y"), u3 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u3 && this.emit("key", u3.toLowerCase()), F2?.name === "return") {
|
|
951
|
+
if (this.opts.validate) {
|
|
952
|
+
const e2 = this.opts.validate(this.value);
|
|
953
|
+
e2 && (this.error = e2 instanceof Error ? e2.message : e2, this.state = "error", this.rl?.write(this.value));
|
|
954
|
+
}
|
|
955
|
+
this.state !== "error" && (this.state = "submit");
|
|
956
|
+
}
|
|
957
|
+
k([u3, F2?.name, F2?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
|
|
958
|
+
}
|
|
959
|
+
close() {
|
|
960
|
+
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
961
|
+
`), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
962
|
+
}
|
|
963
|
+
restoreCursor() {
|
|
964
|
+
const u3 = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`
|
|
965
|
+
`).length - 1;
|
|
966
|
+
this.output.write(import_sisteransi.cursor.move(-999, u3 * -1));
|
|
967
|
+
}
|
|
968
|
+
render() {
|
|
969
|
+
const u3 = G(this._render(this) ?? "", process.stdout.columns, { hard: true });
|
|
970
|
+
if (u3 !== this._prevFrame) {
|
|
971
|
+
if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
|
|
972
|
+
else {
|
|
973
|
+
const F2 = lD(this._prevFrame, u3);
|
|
974
|
+
if (this.restoreCursor(), F2 && F2?.length === 1) {
|
|
975
|
+
const e2 = F2[0];
|
|
976
|
+
this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.lines(1));
|
|
977
|
+
const s = u3.split(`
|
|
978
|
+
`);
|
|
979
|
+
this.output.write(s[e2]), this._prevFrame = u3, this.output.write(import_sisteransi.cursor.move(0, s.length - e2 - 1));
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
if (F2 && F2?.length > 1) {
|
|
983
|
+
const e2 = F2[0];
|
|
984
|
+
this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.down());
|
|
985
|
+
const s = u3.split(`
|
|
986
|
+
`).slice(e2);
|
|
987
|
+
this.output.write(s.join(`
|
|
988
|
+
`)), this._prevFrame = u3;
|
|
989
|
+
return;
|
|
990
|
+
}
|
|
991
|
+
this.output.write(import_sisteransi.erase.down());
|
|
992
|
+
}
|
|
993
|
+
this.output.write(u3), this.state === "initial" && (this.state = "active"), this._prevFrame = u3;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
var SD = Object.defineProperty;
|
|
998
|
+
var $D = (t, u3, F2) => u3 in t ? SD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
|
|
999
|
+
var q = (t, u3, F2) => ($D(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
|
|
1000
|
+
var jD = class extends x {
|
|
1001
|
+
constructor(u3) {
|
|
1002
|
+
super(u3, false), q(this, "options"), q(this, "cursor", 0), this.options = u3.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u3.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
|
|
1003
|
+
switch (F2) {
|
|
1004
|
+
case "left":
|
|
1005
|
+
case "up":
|
|
1006
|
+
this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
|
|
1007
|
+
break;
|
|
1008
|
+
case "down":
|
|
1009
|
+
case "right":
|
|
1010
|
+
this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
this.changeValue();
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
get _value() {
|
|
1017
|
+
return this.options[this.cursor];
|
|
1018
|
+
}
|
|
1019
|
+
changeValue() {
|
|
1020
|
+
this.value = this._value.value;
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
var PD = class extends x {
|
|
1024
|
+
get valueWithCursor() {
|
|
1025
|
+
if (this.state === "submit") return this.value;
|
|
1026
|
+
if (this.cursor >= this.value.length) return `${this.value}\u2588`;
|
|
1027
|
+
const u3 = this.value.slice(0, this.cursor), [F2, ...e2] = this.value.slice(this.cursor);
|
|
1028
|
+
return `${u3}${import_picocolors.default.inverse(F2)}${e2.join("")}`;
|
|
1029
|
+
}
|
|
1030
|
+
get cursor() {
|
|
1031
|
+
return this._cursor;
|
|
1032
|
+
}
|
|
1033
|
+
constructor(u3) {
|
|
1034
|
+
super(u3), this.on("finalize", () => {
|
|
1035
|
+
this.value || (this.value = u3.defaultValue);
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
// ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
|
|
1041
|
+
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
1042
|
+
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
1043
|
+
import g2 from "node:process";
|
|
1044
|
+
function ce() {
|
|
1045
|
+
return g2.platform !== "win32" ? g2.env.TERM !== "linux" : !!g2.env.CI || !!g2.env.WT_SESSION || !!g2.env.TERMINUS_SUBLIME || g2.env.ConEmuTask === "{cmd::Cmder}" || g2.env.TERM_PROGRAM === "Terminus-Sublime" || g2.env.TERM_PROGRAM === "vscode" || g2.env.TERM === "xterm-256color" || g2.env.TERM === "alacritty" || g2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
1046
|
+
}
|
|
1047
|
+
var V2 = ce();
|
|
1048
|
+
var u = (t, n2) => V2 ? t : n2;
|
|
1049
|
+
var le = u("\u25C6", "*");
|
|
1050
|
+
var L2 = u("\u25A0", "x");
|
|
1051
|
+
var W2 = u("\u25B2", "x");
|
|
1052
|
+
var C = u("\u25C7", "o");
|
|
1053
|
+
var ue = u("\u250C", "T");
|
|
1054
|
+
var o = u("\u2502", "|");
|
|
1055
|
+
var d2 = u("\u2514", "\u2014");
|
|
1056
|
+
var k2 = u("\u25CF", ">");
|
|
1057
|
+
var P2 = u("\u25CB", " ");
|
|
1058
|
+
var A2 = u("\u25FB", "[\u2022]");
|
|
1059
|
+
var T2 = u("\u25FC", "[+]");
|
|
1060
|
+
var F = u("\u25FB", "[ ]");
|
|
1061
|
+
var $e = u("\u25AA", "\u2022");
|
|
1062
|
+
var _2 = u("\u2500", "-");
|
|
1063
|
+
var me = u("\u256E", "+");
|
|
1064
|
+
var de = u("\u251C", "+");
|
|
1065
|
+
var pe = u("\u256F", "+");
|
|
1066
|
+
var q2 = u("\u25CF", "\u2022");
|
|
1067
|
+
var D = u("\u25C6", "*");
|
|
1068
|
+
var U2 = u("\u25B2", "!");
|
|
1069
|
+
var K = u("\u25A0", "x");
|
|
1070
|
+
var w2 = (t) => {
|
|
1071
|
+
switch (t) {
|
|
1072
|
+
case "initial":
|
|
1073
|
+
case "active":
|
|
1074
|
+
return import_picocolors2.default.cyan(le);
|
|
1075
|
+
case "cancel":
|
|
1076
|
+
return import_picocolors2.default.red(L2);
|
|
1077
|
+
case "error":
|
|
1078
|
+
return import_picocolors2.default.yellow(W2);
|
|
1079
|
+
case "submit":
|
|
1080
|
+
return import_picocolors2.default.green(C);
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
var B = (t) => {
|
|
1084
|
+
const { cursor: n2, options: s, style: r2 } = t, i2 = t.maxItems ?? Number.POSITIVE_INFINITY, a2 = Math.max(process.stdout.rows - 4, 0), c4 = Math.min(a2, Math.max(i2, 5));
|
|
1085
|
+
let l2 = 0;
|
|
1086
|
+
n2 >= l2 + c4 - 3 ? l2 = Math.max(Math.min(n2 - c4 + 3, s.length - c4), 0) : n2 < l2 + 2 && (l2 = Math.max(n2 - 2, 0));
|
|
1087
|
+
const $3 = c4 < s.length && l2 > 0, p = c4 < s.length && l2 + c4 < s.length;
|
|
1088
|
+
return s.slice(l2, l2 + c4).map((M2, v2, x2) => {
|
|
1089
|
+
const j2 = v2 === 0 && $3, E = v2 === x2.length - 1 && p;
|
|
1090
|
+
return j2 || E ? import_picocolors2.default.dim("...") : r2(M2, v2 + l2 === n2);
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
|
|
1094
|
+
const n2 = `${import_picocolors2.default.gray(o)}
|
|
1095
|
+
${w2(this.state)} ${t.message}
|
|
1096
|
+
`, s = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), r2 = this.value ? this.valueWithCursor : s;
|
|
1097
|
+
switch (this.state) {
|
|
1098
|
+
case "error":
|
|
1099
|
+
return `${n2.trim()}
|
|
1100
|
+
${import_picocolors2.default.yellow(o)} ${r2}
|
|
1101
|
+
${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
|
|
1102
|
+
`;
|
|
1103
|
+
case "submit":
|
|
1104
|
+
return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
|
|
1105
|
+
case "cancel":
|
|
1106
|
+
return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
|
|
1107
|
+
${import_picocolors2.default.gray(o)}` : ""}`;
|
|
1108
|
+
default:
|
|
1109
|
+
return `${n2}${import_picocolors2.default.cyan(o)} ${r2}
|
|
1110
|
+
${import_picocolors2.default.cyan(d2)}
|
|
1111
|
+
`;
|
|
1112
|
+
}
|
|
1113
|
+
} }).prompt();
|
|
1114
|
+
var ve = (t) => {
|
|
1115
|
+
const n2 = (s, r2) => {
|
|
1116
|
+
const i2 = s.label ?? String(s.value);
|
|
1117
|
+
switch (r2) {
|
|
1118
|
+
case "selected":
|
|
1119
|
+
return `${import_picocolors2.default.dim(i2)}`;
|
|
1120
|
+
case "active":
|
|
1121
|
+
return `${import_picocolors2.default.green(k2)} ${i2} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;
|
|
1122
|
+
case "cancelled":
|
|
1123
|
+
return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i2))}`;
|
|
1124
|
+
default:
|
|
1125
|
+
return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(i2)}`;
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
return new jD({ options: t.options, initialValue: t.initialValue, render() {
|
|
1129
|
+
const s = `${import_picocolors2.default.gray(o)}
|
|
1130
|
+
${w2(this.state)} ${t.message}
|
|
1131
|
+
`;
|
|
1132
|
+
switch (this.state) {
|
|
1133
|
+
case "submit":
|
|
1134
|
+
return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "selected")}`;
|
|
1135
|
+
case "cancel":
|
|
1136
|
+
return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "cancelled")}
|
|
1137
|
+
${import_picocolors2.default.gray(o)}`;
|
|
1138
|
+
default:
|
|
1139
|
+
return `${s}${import_picocolors2.default.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r2, i2) => n2(r2, i2 ? "active" : "inactive") }).join(`
|
|
1140
|
+
${import_picocolors2.default.cyan(o)} `)}
|
|
1141
|
+
${import_picocolors2.default.cyan(d2)}
|
|
1142
|
+
`;
|
|
1143
|
+
}
|
|
1144
|
+
} }).prompt();
|
|
1145
|
+
};
|
|
1146
|
+
var Me = (t = "", n2 = "") => {
|
|
1147
|
+
const s = `
|
|
1148
|
+
${t}
|
|
1149
|
+
`.split(`
|
|
1150
|
+
`), r2 = S2(n2).length, i2 = Math.max(s.reduce((c4, l2) => {
|
|
1151
|
+
const $3 = S2(l2);
|
|
1152
|
+
return $3.length > c4 ? $3.length : c4;
|
|
1153
|
+
}, 0), r2) + 2, a2 = s.map((c4) => `${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(c4)}${" ".repeat(i2 - S2(c4).length)}${import_picocolors2.default.gray(o)}`).join(`
|
|
1154
|
+
`);
|
|
1155
|
+
process.stdout.write(`${import_picocolors2.default.gray(o)}
|
|
1156
|
+
${import_picocolors2.default.green(C)} ${import_picocolors2.default.reset(n2)} ${import_picocolors2.default.gray(_2.repeat(Math.max(i2 - r2 - 1, 1)) + me)}
|
|
1157
|
+
${a2}
|
|
1158
|
+
${import_picocolors2.default.gray(de + _2.repeat(i2 + 2) + pe)}
|
|
1159
|
+
`);
|
|
1160
|
+
};
|
|
1161
|
+
var f2 = { message: (t = "", { symbol: n2 = import_picocolors2.default.gray(o) } = {}) => {
|
|
1162
|
+
const s = [`${import_picocolors2.default.gray(o)}`];
|
|
1163
|
+
if (t) {
|
|
1164
|
+
const [r2, ...i2] = t.split(`
|
|
1165
|
+
`);
|
|
1166
|
+
s.push(`${n2} ${r2}`, ...i2.map((a2) => `${import_picocolors2.default.gray(o)} ${a2}`));
|
|
1167
|
+
}
|
|
1168
|
+
process.stdout.write(`${s.join(`
|
|
1169
|
+
`)}
|
|
1170
|
+
`);
|
|
1171
|
+
}, info: (t) => {
|
|
1172
|
+
f2.message(t, { symbol: import_picocolors2.default.blue(q2) });
|
|
1173
|
+
}, success: (t) => {
|
|
1174
|
+
f2.message(t, { symbol: import_picocolors2.default.green(D) });
|
|
1175
|
+
}, step: (t) => {
|
|
1176
|
+
f2.message(t, { symbol: import_picocolors2.default.green(C) });
|
|
1177
|
+
}, warn: (t) => {
|
|
1178
|
+
f2.message(t, { symbol: import_picocolors2.default.yellow(U2) });
|
|
1179
|
+
}, warning: (t) => {
|
|
1180
|
+
f2.warn(t);
|
|
1181
|
+
}, error: (t) => {
|
|
1182
|
+
f2.message(t, { symbol: import_picocolors2.default.red(K) });
|
|
1183
|
+
} };
|
|
1184
|
+
var J2 = `${import_picocolors2.default.gray(o)} `;
|
|
1185
|
+
var Y = ({ indicator: t = "dots" } = {}) => {
|
|
1186
|
+
const n2 = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], s = V2 ? 80 : 120, r2 = process.env.CI === "true";
|
|
1187
|
+
let i2, a2, c4 = false, l2 = "", $3, p = performance.now();
|
|
1188
|
+
const M2 = (m2) => {
|
|
1189
|
+
const h3 = m2 > 1 ? "Something went wrong" : "Canceled";
|
|
1190
|
+
c4 && N2(h3, m2);
|
|
1191
|
+
}, v2 = () => M2(2), x2 = () => M2(1), j2 = () => {
|
|
1192
|
+
process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", x2), process.on("SIGTERM", x2), process.on("exit", M2);
|
|
1193
|
+
}, E = () => {
|
|
1194
|
+
process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", x2), process.removeListener("SIGTERM", x2), process.removeListener("exit", M2);
|
|
1195
|
+
}, O2 = () => {
|
|
1196
|
+
if ($3 === void 0) return;
|
|
1197
|
+
r2 && process.stdout.write(`
|
|
1198
|
+
`);
|
|
1199
|
+
const m2 = $3.split(`
|
|
1200
|
+
`);
|
|
1201
|
+
process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
|
|
1202
|
+
}, R2 = (m2) => m2.replace(/\.+$/, ""), G2 = (m2) => {
|
|
1203
|
+
const h3 = (performance.now() - m2) / 1e3, y2 = Math.floor(h3 / 60), I2 = Math.floor(h3 % 60);
|
|
1204
|
+
return y2 > 0 ? `[${y2}m ${I2}s]` : `[${I2}s]`;
|
|
1205
|
+
}, H = (m2 = "") => {
|
|
1206
|
+
c4 = true, i2 = cD(), l2 = R2(m2), p = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}
|
|
1207
|
+
`);
|
|
1208
|
+
let h3 = 0, y2 = 0;
|
|
1209
|
+
j2(), a2 = setInterval(() => {
|
|
1210
|
+
if (r2 && l2 === $3) return;
|
|
1211
|
+
O2(), $3 = l2;
|
|
1212
|
+
const I2 = import_picocolors2.default.magenta(n2[h3]);
|
|
1213
|
+
if (r2) process.stdout.write(`${I2} ${l2}...`);
|
|
1214
|
+
else if (t === "timer") process.stdout.write(`${I2} ${l2} ${G2(p)}`);
|
|
1215
|
+
else {
|
|
1216
|
+
const z2 = ".".repeat(Math.floor(y2)).slice(0, 3);
|
|
1217
|
+
process.stdout.write(`${I2} ${l2}${z2}`);
|
|
1218
|
+
}
|
|
1219
|
+
h3 = h3 + 1 < n2.length ? h3 + 1 : 0, y2 = y2 < n2.length ? y2 + 0.125 : 0;
|
|
1220
|
+
}, s);
|
|
1221
|
+
}, N2 = (m2 = "", h3 = 0) => {
|
|
1222
|
+
c4 = false, clearInterval(a2), O2();
|
|
1223
|
+
const y2 = h3 === 0 ? import_picocolors2.default.green(C) : h3 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);
|
|
1224
|
+
l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${y2} ${l2} ${G2(p)}
|
|
1225
|
+
`) : process.stdout.write(`${y2} ${l2}
|
|
1226
|
+
`), E(), i2();
|
|
1227
|
+
};
|
|
1228
|
+
return { start: H, stop: N2, message: (m2 = "") => {
|
|
1229
|
+
l2 = R2(m2 ?? l2);
|
|
1230
|
+
} };
|
|
1231
|
+
};
|
|
1232
|
+
var Te = async (t) => {
|
|
1233
|
+
for (const n2 of t) {
|
|
1234
|
+
if (n2.enabled === false) continue;
|
|
1235
|
+
const s = Y();
|
|
1236
|
+
s.start(n2.title);
|
|
1237
|
+
const r2 = await n2.task(s.message);
|
|
1238
|
+
s.stop(r2 || n2.title);
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
537
1241
|
|
|
538
1242
|
// ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/error/AbortError.mjs
|
|
539
1243
|
var AbortError = class extends Error {
|
|
@@ -2903,20 +3607,20 @@ var a = Object.getPrototypeOf(
|
|
|
2903
3607
|
}
|
|
2904
3608
|
).prototype
|
|
2905
3609
|
);
|
|
2906
|
-
var
|
|
3610
|
+
var c2 = class {
|
|
2907
3611
|
#t;
|
|
2908
3612
|
#n;
|
|
2909
3613
|
#r = false;
|
|
2910
3614
|
#e = void 0;
|
|
2911
|
-
constructor(
|
|
2912
|
-
this.#t =
|
|
3615
|
+
constructor(e2, t) {
|
|
3616
|
+
this.#t = e2, this.#n = t;
|
|
2913
3617
|
}
|
|
2914
3618
|
next() {
|
|
2915
|
-
const
|
|
2916
|
-
return this.#e = this.#e ? this.#e.then(
|
|
3619
|
+
const e2 = () => this.#s();
|
|
3620
|
+
return this.#e = this.#e ? this.#e.then(e2, e2) : e2(), this.#e;
|
|
2917
3621
|
}
|
|
2918
|
-
return(
|
|
2919
|
-
const t = () => this.#i(
|
|
3622
|
+
return(e2) {
|
|
3623
|
+
const t = () => this.#i(e2);
|
|
2920
3624
|
return this.#e ? this.#e.then(t, t) : t();
|
|
2921
3625
|
}
|
|
2922
3626
|
async #s() {
|
|
@@ -2925,30 +3629,30 @@ var c = class {
|
|
|
2925
3629
|
done: true,
|
|
2926
3630
|
value: void 0
|
|
2927
3631
|
};
|
|
2928
|
-
let
|
|
3632
|
+
let e2;
|
|
2929
3633
|
try {
|
|
2930
|
-
|
|
3634
|
+
e2 = await this.#t.read();
|
|
2931
3635
|
} catch (t) {
|
|
2932
3636
|
throw this.#e = void 0, this.#r = true, this.#t.releaseLock(), t;
|
|
2933
3637
|
}
|
|
2934
|
-
return
|
|
3638
|
+
return e2.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e2;
|
|
2935
3639
|
}
|
|
2936
|
-
async #i(
|
|
3640
|
+
async #i(e2) {
|
|
2937
3641
|
if (this.#r)
|
|
2938
3642
|
return {
|
|
2939
3643
|
done: true,
|
|
2940
|
-
value:
|
|
3644
|
+
value: e2
|
|
2941
3645
|
};
|
|
2942
3646
|
if (this.#r = true, !this.#n) {
|
|
2943
|
-
const t = this.#t.cancel(
|
|
3647
|
+
const t = this.#t.cancel(e2);
|
|
2944
3648
|
return this.#t.releaseLock(), await t, {
|
|
2945
3649
|
done: true,
|
|
2946
|
-
value:
|
|
3650
|
+
value: e2
|
|
2947
3651
|
};
|
|
2948
3652
|
}
|
|
2949
3653
|
return this.#t.releaseLock(), {
|
|
2950
3654
|
done: true,
|
|
2951
|
-
value:
|
|
3655
|
+
value: e2
|
|
2952
3656
|
};
|
|
2953
3657
|
}
|
|
2954
3658
|
};
|
|
@@ -2957,11 +3661,11 @@ function i() {
|
|
|
2957
3661
|
return this[n].next();
|
|
2958
3662
|
}
|
|
2959
3663
|
Object.defineProperty(i, "name", { value: "next" });
|
|
2960
|
-
function
|
|
2961
|
-
return this[n].return(
|
|
3664
|
+
function o2(r2) {
|
|
3665
|
+
return this[n].return(r2);
|
|
2962
3666
|
}
|
|
2963
|
-
Object.defineProperty(
|
|
2964
|
-
var
|
|
3667
|
+
Object.defineProperty(o2, "name", { value: "return" });
|
|
3668
|
+
var u2 = Object.create(a, {
|
|
2965
3669
|
next: {
|
|
2966
3670
|
enumerable: true,
|
|
2967
3671
|
configurable: true,
|
|
@@ -2972,14 +3676,14 @@ var u = Object.create(a, {
|
|
|
2972
3676
|
enumerable: true,
|
|
2973
3677
|
configurable: true,
|
|
2974
3678
|
writable: true,
|
|
2975
|
-
value:
|
|
3679
|
+
value: o2
|
|
2976
3680
|
}
|
|
2977
3681
|
});
|
|
2978
|
-
function
|
|
2979
|
-
const
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
), s = Object.create(
|
|
3682
|
+
function h2({ preventCancel: r2 = false } = {}) {
|
|
3683
|
+
const e2 = this.getReader(), t = new c2(
|
|
3684
|
+
e2,
|
|
3685
|
+
r2
|
|
3686
|
+
), s = Object.create(u2);
|
|
2983
3687
|
return s[n] = t, s;
|
|
2984
3688
|
}
|
|
2985
3689
|
|
|
@@ -2992,7 +3696,7 @@ var getAsyncIterable = (stream) => {
|
|
|
2992
3696
|
return stream;
|
|
2993
3697
|
}
|
|
2994
3698
|
if (toString.call(stream) === "[object ReadableStream]") {
|
|
2995
|
-
return
|
|
3699
|
+
return h2.call(stream);
|
|
2996
3700
|
}
|
|
2997
3701
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
2998
3702
|
};
|
|
@@ -4089,7 +4793,7 @@ var getStdioArray = (stdio, options) => {
|
|
|
4089
4793
|
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
4090
4794
|
}
|
|
4091
4795
|
const length = Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length);
|
|
4092
|
-
return Array.from({ length }, (
|
|
4796
|
+
return Array.from({ length }, (_3, fdNumber) => stdio[fdNumber]);
|
|
4093
4797
|
};
|
|
4094
4798
|
var hasAlias = (options) => STANDARD_STREAMS_ALIASES.some((alias) => options[alias] !== void 0);
|
|
4095
4799
|
var addDefaultValue2 = (stdioOption, fdNumber) => {
|
|
@@ -5875,9 +6579,9 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5875
6579
|
this.#sigListeners[sig] = () => {
|
|
5876
6580
|
const listeners = this.#process.listeners(sig);
|
|
5877
6581
|
let { count: count2 } = this.#emitter;
|
|
5878
|
-
const
|
|
5879
|
-
if (typeof
|
|
5880
|
-
count2 +=
|
|
6582
|
+
const p = process10;
|
|
6583
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
6584
|
+
count2 += p.__signal_exit_emitter__.count;
|
|
5881
6585
|
}
|
|
5882
6586
|
if (listeners.length === count2) {
|
|
5883
6587
|
this.unload();
|
|
@@ -5919,7 +6623,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5919
6623
|
const fn = this.#sigListeners[sig];
|
|
5920
6624
|
if (fn)
|
|
5921
6625
|
this.#process.on(sig, fn);
|
|
5922
|
-
} catch (
|
|
6626
|
+
} catch (_3) {
|
|
5923
6627
|
}
|
|
5924
6628
|
}
|
|
5925
6629
|
this.#process.emit = (ev, ...a2) => {
|
|
@@ -5941,7 +6645,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5941
6645
|
}
|
|
5942
6646
|
try {
|
|
5943
6647
|
this.#process.removeListener(sig, listener);
|
|
5944
|
-
} catch (
|
|
6648
|
+
} catch (_3) {
|
|
5945
6649
|
}
|
|
5946
6650
|
});
|
|
5947
6651
|
this.#process.emit = this.#originalProcessEmit;
|
|
@@ -7331,7 +8035,7 @@ var execaSync = createExeca(() => ({ isSync: true }));
|
|
|
7331
8035
|
var execaCommand = createExeca(mapCommandAsync);
|
|
7332
8036
|
var execaCommandSync = createExeca(mapCommandSync);
|
|
7333
8037
|
var execaNode = createExeca(mapNode);
|
|
7334
|
-
var $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
8038
|
+
var $2 = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
7335
8039
|
var {
|
|
7336
8040
|
sendMessage: sendMessage2,
|
|
7337
8041
|
getOneMessage: getOneMessage2,
|
|
@@ -7415,8 +8119,8 @@ project_id = "%%projectId%%"
|
|
|
7415
8119
|
enabled = false
|
|
7416
8120
|
`;
|
|
7417
8121
|
var selectProject = async () => {
|
|
7418
|
-
const
|
|
7419
|
-
|
|
8122
|
+
const spinner = Y();
|
|
8123
|
+
spinner.start("Fetching Supabase projects...");
|
|
7420
8124
|
let projectsProcess = [];
|
|
7421
8125
|
try {
|
|
7422
8126
|
const listProjects = await execa(
|
|
@@ -7426,13 +8130,13 @@ var selectProject = async () => {
|
|
|
7426
8130
|
);
|
|
7427
8131
|
projectsProcess = listProjects.stdout === "null" ? [] : JSON.parse(listProjects?.stdout ?? "[]");
|
|
7428
8132
|
} catch (err) {
|
|
7429
|
-
|
|
8133
|
+
spinner.stop();
|
|
7430
8134
|
console.error("Failed to fetch Supabase projects:", err);
|
|
7431
8135
|
process.exit(1);
|
|
7432
8136
|
}
|
|
7433
|
-
|
|
8137
|
+
spinner.stop();
|
|
7434
8138
|
const createProjectOption = `create/${Math.random().toString(36).substring(2, 15)}`;
|
|
7435
|
-
const selectedProjectId = await
|
|
8139
|
+
const selectedProjectId = await ve({
|
|
7436
8140
|
message: "Select a Supabase project",
|
|
7437
8141
|
options: [
|
|
7438
8142
|
...projectsProcess.map((project) => ({
|
|
@@ -7445,7 +8149,7 @@ var selectProject = async () => {
|
|
|
7445
8149
|
}
|
|
7446
8150
|
]
|
|
7447
8151
|
});
|
|
7448
|
-
if (
|
|
8152
|
+
if (BD(selectedProjectId)) {
|
|
7449
8153
|
process.exit(0);
|
|
7450
8154
|
}
|
|
7451
8155
|
if (selectedProjectId === createProjectOption) {
|
|
@@ -7475,7 +8179,7 @@ var selectProject = async () => {
|
|
|
7475
8179
|
var selectBucket = async (api) => {
|
|
7476
8180
|
let buckets = [];
|
|
7477
8181
|
let retryCount = 0;
|
|
7478
|
-
await
|
|
8182
|
+
await Te([
|
|
7479
8183
|
{
|
|
7480
8184
|
title: "Fetching bucket list...",
|
|
7481
8185
|
task: async (message) => {
|
|
@@ -7493,13 +8197,13 @@ var selectBucket = async (api) => {
|
|
|
7493
8197
|
await delay(1e3);
|
|
7494
8198
|
}
|
|
7495
8199
|
}
|
|
7496
|
-
|
|
8200
|
+
f2.error("Failed to fetch bucket list");
|
|
7497
8201
|
process.exit(1);
|
|
7498
8202
|
}
|
|
7499
8203
|
}
|
|
7500
8204
|
]);
|
|
7501
8205
|
const createBucketOption = `create/${Math.random().toString(36).substring(2, 15)}`;
|
|
7502
|
-
const selectedBucketId = await
|
|
8206
|
+
const selectedBucketId = await ve({
|
|
7503
8207
|
message: "Select a storage bucket",
|
|
7504
8208
|
options: [
|
|
7505
8209
|
...buckets.map((bucket) => ({
|
|
@@ -7512,19 +8216,19 @@ var selectBucket = async (api) => {
|
|
|
7512
8216
|
}
|
|
7513
8217
|
]
|
|
7514
8218
|
});
|
|
7515
|
-
if (
|
|
8219
|
+
if (BD(selectedBucketId)) {
|
|
7516
8220
|
process.exit(0);
|
|
7517
8221
|
}
|
|
7518
8222
|
if (selectedBucketId === createBucketOption) {
|
|
7519
|
-
const bucketName = await
|
|
8223
|
+
const bucketName = await he({
|
|
7520
8224
|
message: "Enter a name for the new bucket"
|
|
7521
8225
|
});
|
|
7522
|
-
if (
|
|
8226
|
+
if (BD(bucketName)) {
|
|
7523
8227
|
process.exit(0);
|
|
7524
8228
|
}
|
|
7525
8229
|
try {
|
|
7526
8230
|
await api.createBucket(bucketName, { public: false });
|
|
7527
|
-
|
|
8231
|
+
f2.success(`Bucket "${bucketName}" created successfully.`);
|
|
7528
8232
|
const buckets2 = await api.listBuckets();
|
|
7529
8233
|
const newBucket = buckets2.find((bucket) => bucket.name === bucketName);
|
|
7530
8234
|
if (!newBucket) {
|
|
@@ -7532,15 +8236,15 @@ var selectBucket = async (api) => {
|
|
|
7532
8236
|
}
|
|
7533
8237
|
return { id: newBucket.id, name: newBucket.name };
|
|
7534
8238
|
} catch (err) {
|
|
7535
|
-
|
|
8239
|
+
f2.error(`Failed to create new bucket: ${err}`);
|
|
7536
8240
|
process.exit(1);
|
|
7537
8241
|
}
|
|
7538
8242
|
}
|
|
7539
8243
|
return JSON.parse(selectedBucketId);
|
|
7540
8244
|
};
|
|
7541
8245
|
var linkSupabase = async (workdir, projectId) => {
|
|
7542
|
-
const
|
|
7543
|
-
|
|
8246
|
+
const spinner = Y();
|
|
8247
|
+
spinner.start("Linking Supabase...");
|
|
7544
8248
|
try {
|
|
7545
8249
|
await fs.writeFile(
|
|
7546
8250
|
path6.join(workdir, "supabase", "config.toml"),
|
|
@@ -7557,11 +8261,11 @@ var linkSupabase = async (workdir, projectId) => {
|
|
|
7557
8261
|
stdio: ["pipe", "pipe", "pipe"]
|
|
7558
8262
|
}
|
|
7559
8263
|
);
|
|
7560
|
-
|
|
8264
|
+
spinner.stop("Supabase linked \u2714");
|
|
7561
8265
|
} catch (err) {
|
|
7562
|
-
|
|
8266
|
+
spinner.stop();
|
|
7563
8267
|
if (err instanceof ExecaError && err.stderr) {
|
|
7564
|
-
|
|
8268
|
+
f2.error(err.stderr);
|
|
7565
8269
|
} else {
|
|
7566
8270
|
console.error(err);
|
|
7567
8271
|
}
|
|
@@ -7579,11 +8283,11 @@ var pushDB = async (workdir) => {
|
|
|
7579
8283
|
shell: true
|
|
7580
8284
|
}
|
|
7581
8285
|
);
|
|
7582
|
-
|
|
8286
|
+
f2.success("DB pushed \u2714");
|
|
7583
8287
|
return dbPush.stdout;
|
|
7584
8288
|
} catch (err) {
|
|
7585
8289
|
if (err instanceof ExecaError && err.stderr) {
|
|
7586
|
-
|
|
8290
|
+
f2.error(err.stderr);
|
|
7587
8291
|
} else {
|
|
7588
8292
|
console.error(err);
|
|
7589
8293
|
}
|
|
@@ -7591,7 +8295,7 @@ var pushDB = async (workdir) => {
|
|
|
7591
8295
|
}
|
|
7592
8296
|
};
|
|
7593
8297
|
var deployEdgeFunction = async (workdir, projectId) => {
|
|
7594
|
-
await
|
|
8298
|
+
await Te([
|
|
7595
8299
|
{
|
|
7596
8300
|
title: "Supabase edge function deploy. This may take a few minutes.",
|
|
7597
8301
|
task: async () => {
|
|
@@ -7614,7 +8318,7 @@ var deployEdgeFunction = async (workdir, projectId) => {
|
|
|
7614
8318
|
return dbPush.stdout;
|
|
7615
8319
|
} catch (err) {
|
|
7616
8320
|
if (err instanceof ExecaError && err.stderr) {
|
|
7617
|
-
|
|
8321
|
+
f2.error(err.stderr);
|
|
7618
8322
|
} else {
|
|
7619
8323
|
console.error(err);
|
|
7620
8324
|
}
|
|
@@ -7626,8 +8330,8 @@ var deployEdgeFunction = async (workdir, projectId) => {
|
|
|
7626
8330
|
};
|
|
7627
8331
|
var runInit = async () => {
|
|
7628
8332
|
const project = await selectProject();
|
|
7629
|
-
const
|
|
7630
|
-
|
|
8333
|
+
const spinner = Y();
|
|
8334
|
+
spinner.start(`Getting API keys for ${project.name}...`);
|
|
7631
8335
|
let apiKeys = [];
|
|
7632
8336
|
try {
|
|
7633
8337
|
const keysProcess = await execa("npx", [
|
|
@@ -7642,11 +8346,11 @@ var runInit = async () => {
|
|
|
7642
8346
|
]);
|
|
7643
8347
|
apiKeys = JSON.parse(keysProcess.stdout ?? "[]");
|
|
7644
8348
|
} catch (err) {
|
|
7645
|
-
|
|
8349
|
+
spinner.stop();
|
|
7646
8350
|
console.error("Failed to get API keys:", err);
|
|
7647
8351
|
process.exit(1);
|
|
7648
8352
|
}
|
|
7649
|
-
|
|
8353
|
+
spinner.stop();
|
|
7650
8354
|
const serviceRoleKey = apiKeys.find((key) => key.name === "service_role");
|
|
7651
8355
|
if (!serviceRoleKey) {
|
|
7652
8356
|
throw new Error("Service role key not found");
|
|
@@ -7684,21 +8388,21 @@ var runInit = async () => {
|
|
|
7684
8388
|
HOT_UPDATER_SUPABASE_BUCKET_NAME: bucket.name,
|
|
7685
8389
|
HOT_UPDATER_SUPABASE_URL: `https://${project.id}.supabase.co`
|
|
7686
8390
|
});
|
|
7687
|
-
|
|
7688
|
-
|
|
8391
|
+
f2.success("Generated '.env' file with Supabase settings.");
|
|
8392
|
+
f2.success(
|
|
7689
8393
|
"Generated 'hot-updater.config.ts' file with Supabase settings."
|
|
7690
8394
|
);
|
|
7691
|
-
|
|
8395
|
+
Me(
|
|
7692
8396
|
transformTemplate(SOURCE_TEMPLATE, {
|
|
7693
8397
|
source: `https://${project.id}.supabase.co/functions/v1/update-server`
|
|
7694
8398
|
})
|
|
7695
8399
|
);
|
|
7696
|
-
|
|
8400
|
+
f2.message(
|
|
7697
8401
|
`Next step: ${link(
|
|
7698
8402
|
"https://gronxb.github.io/hot-updater/guide/getting-started/quick-start-with-supabase.html#step-4-add-hotupdater-to-your-project"
|
|
7699
8403
|
)}`
|
|
7700
8404
|
);
|
|
7701
|
-
|
|
8405
|
+
f2.success("Done! \u{1F389}");
|
|
7702
8406
|
};
|
|
7703
8407
|
export {
|
|
7704
8408
|
runInit,
|