@vibe-lark/larkpal 0.1.85 → 0.1.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/account-id-BM1T6029-DYjVxojW.mjs +46 -0
  2. package/dist/activation-context--5yu1dPF-Bwsn3moT.mjs +172 -0
  3. package/dist/anthropic-TH8ERTXK.mjs +5962 -0
  4. package/dist/assistant-visible-text-DuFWokAt-CsbII5KS.mjs +596 -0
  5. package/dist/azure-openai-responses-Bt_Ag9Er.mjs +166 -0
  6. package/dist/boundary-file-read-BSd9MXPy--KThL5e6.mjs +594 -0
  7. package/dist/browser-lifecycle-cleanup-BdNsMhMD-O3tnAM4i.mjs +60 -0
  8. package/dist/build-DgTrEpge.mjs +3333 -0
  9. package/dist/bundled-compat-BpaDaAAu-D7oazKjD.mjs +5216 -0
  10. package/dist/bundled-dir-U738ay4K-DXK0q_TV.mjs +258 -0
  11. package/dist/call-DimWbpgJ-ColD4W-y.mjs +9993 -0
  12. package/dist/channel-bootstrap.runtime-BVclcGv1-DJv_Z-Kr.mjs +2 -0
  13. package/dist/channel-bootstrap.runtime-Cwcr38m2-VRfVCR-i.mjs +33 -0
  14. package/dist/chunk-D6SyT4dJ.mjs +36 -0
  15. package/dist/cli.mjs +6 -6
  16. package/dist/command-format-LSnUCVVF-BQ2SMKka.mjs +685 -0
  17. package/dist/config-Bim2pi8a-BQUdfiEi.mjs +9 -0
  18. package/dist/delivery-context.shared-j5hC5qb1-CI83RXXZ.mjs +72 -0
  19. package/dist/diagnostic-ClMwNnUA-D6nUtLnb.mjs +140 -0
  20. package/dist/dist-CEGw8-2W.mjs +429 -0
  21. package/dist/dist-DD2aJ2UL.mjs +125135 -0
  22. package/dist/env-api-keys-BVvSg7T2.mjs +68 -0
  23. package/dist/event-stream-xaQWmyas.mjs +15226 -0
  24. package/dist/facade-loader-DFzIYYt_-CIr4HKtE.mjs +194 -0
  25. package/dist/from-DF7cl2wz.mjs +3842 -0
  26. package/dist/gateway-method-policy-C7rf0SeV-CJQMEYIE.mjs +28 -0
  27. package/dist/github-copilot-headers-DjqWtUoP.mjs +22 -0
  28. package/dist/google-C2pVrgBZ.mjs +336 -0
  29. package/dist/google-gemini-cli-BBxgS5Ho.mjs +623 -0
  30. package/dist/google-shared-BsWgwEk1.mjs +22791 -0
  31. package/dist/google-vertex-BsVLJrrC.mjs +358 -0
  32. package/dist/hash-DAFtW_W7.mjs +16 -0
  33. package/dist/headers-R3HdCbAE.mjs +8 -0
  34. package/dist/home-dir-C44RaPME-CBRS4HLP.mjs +93 -0
  35. package/dist/ids-BPsM98Uu-CwuxvUai.mjs +77 -0
  36. package/dist/image-2w3cApg7-CxpHvoB5.mjs +207 -0
  37. package/dist/io-CH2g3vsv-BOGlLlB8.mjs +26218 -0
  38. package/dist/jiti-loader-cache-Bat69wam-D6hCxboy.mjs +5049 -0
  39. package/dist/json-file-BQRNuxmK-DhJM5NsG.mjs +108 -0
  40. package/dist/json-parse-v_HIJjjI.mjs +381 -0
  41. package/dist/jws-GFcTvvVT.mjs +2291 -0
  42. package/dist/{lark-cli-provider-7LvtOIF_.mjs → lark-cli-provider-BARgbbmo.mjs} +1 -1
  43. package/dist/{live-smoke-nvTUPtrv.mjs → live-smoke-BhkBOcH9.mjs} +3 -3
  44. package/dist/load-context-mb7uvLSn-B10MAi3I.mjs +29 -0
  45. package/dist/loader-708jrx4Y-BOswuvpe.mjs +5053 -0
  46. package/dist/main.mjs +56550 -205
  47. package/dist/manifest-registry-_hxKCS2K-CZdeyN0f.mjs +3512 -0
  48. package/dist/mcp-server.mjs +1 -1
  49. package/dist/message-channel-Bk_YHfQg-AeNrPPpp.mjs +50 -0
  50. package/dist/message-channel-core-DTA--Gjh-CY4Tkb7N.mjs +29 -0
  51. package/dist/message.config.runtime-K-k4XOyq-DZTmXomP.mjs +2 -0
  52. package/dist/message.gateway.runtime-DqHOHRTQ-DH4ml0YF.mjs +2 -0
  53. package/dist/mistral-CaR4DiLu.mjs +28657 -0
  54. package/dist/model-auth-env-oyg2Hexc-DU_rOUU5.mjs +1306 -0
  55. package/dist/models-config-BmpSQJQF-Gfvh1n3A.mjs +1282 -0
  56. package/dist/models-config.runtime-BsU_22xk.mjs +2 -0
  57. package/dist/multipart-parser-DedmaB5g.mjs +294 -0
  58. package/dist/oauth-DOJeGfcE.mjs +6392 -0
  59. package/dist/openai-BDtIh3Ja.mjs +6693 -0
  60. package/dist/openai-codex-responses-C5EORu31.mjs +664 -0
  61. package/dist/openai-completions-CR_cS6gX.mjs +669 -0
  62. package/dist/openai-responses-oGxwZyuC.mjs +184 -0
  63. package/dist/openai-responses-shared-BixMSDZE.mjs +398 -0
  64. package/dist/paths-D6msg0S1-C2lYuisN.mjs +189 -0
  65. package/dist/paths-D92DjaZ--CTOESW2b.mjs +192 -0
  66. package/dist/pi-model-discovery-Bd0TWzo8-BFsJmeMb.mjs +227 -0
  67. package/dist/pi-model-discovery-runtime-CCCZxkd8.mjs +2 -0
  68. package/dist/pi-tools.before-tool-call.runtime-Bn7uqKie-C5ewk8kK.mjs +399 -0
  69. package/dist/plugin-auto-enable-DdH3n9V8-DsA1isaF.mjs +1456 -0
  70. package/dist/process-scoped-map-B2cWkYET-CXwUZ8CZ.mjs +61 -0
  71. package/dist/provider-discovery.runtime-BPzz1PFj.mjs +58 -0
  72. package/dist/provider-model-compat-CFqcq0it-BDDuBI3A.mjs +118 -0
  73. package/dist/provider-runtime-C8rljsNs-CIT93zoy.mjs +2 -0
  74. package/dist/provider-runtime-CT50mNIX-BwEV6GyO.mjs +573 -0
  75. package/dist/provider-stream-COLujAAo-CbJPDngm.mjs +35449 -0
  76. package/dist/providers.runtime-Ba7tOlq7-CXkhkzU9.mjs +219 -0
  77. package/dist/public-surface-loader-BVl0NQAE-C0piXtsT.mjs +117 -0
  78. package/dist/resolve-C33B7eeu-BNvYTl6k.mjs +1041 -0
  79. package/dist/runtime-Cym-fqI8-DaSDMH-a.mjs +120 -0
  80. package/dist/runtime-channel-state-CohMybAh-hXR6y5Gx.mjs +19 -0
  81. package/dist/runtime-snapshot-C54O1-gI-40cbyi7P.mjs +677 -0
  82. package/dist/runtime-state-IBOIXKOx-Bf9tcLvc.mjs +10 -0
  83. package/dist/runtime-web-tools-fallback.runtime-Ca-qn1mj-BCVImm7a.mjs +39 -0
  84. package/dist/runtime-web-tools-manifest.runtime-BgxQTjmq-Cb4nJkRT.mjs +2 -0
  85. package/dist/runtime-web-tools-public-artifacts.runtime-D9qcoWIX-BrQdXzOQ.mjs +2 -0
  86. package/dist/session-archive.runtime-B52_5vs4-BG-_IwNJ.mjs +2 -0
  87. package/dist/session-key-Cn2QoOyX-CuHbJMgR.mjs +82 -0
  88. package/dist/session-transcript-files.fs-DEeFXruQ-B1PF6nLy.mjs +147 -0
  89. package/dist/src-BgCX0MLG.mjs +813 -0
  90. package/dist/src-DYbqlAqf.mjs +1177 -0
  91. package/dist/subagent-announce-L5WsQatW-CQWI9GMd.mjs +344 -0
  92. package/dist/subagent-announce.registry.runtime-DiqZyeTs-BKuniyi3.mjs +28 -0
  93. package/dist/subagent-registry-steer-runtime-DFgZFC0j-BhBz0roy.mjs +211 -0
  94. package/dist/subagent-system-prompt-C1qnN--K-DpnTFP47.mjs +3061 -0
  95. package/dist/target-parsing-loaded-DKkb6jJY-BMD4CkpS.mjs +1002 -0
  96. package/dist/task-registry-delivery-runtime-Dd1CUkZF-C8U40a3O.mjs +2950 -0
  97. package/dist/task-registry-delivery-runtime-ragbeVx5-CNbFAkjD.mjs +2 -0
  98. package/dist/thinking-Bh-7MqXz-D3woGbO7.mjs +2 -0
  99. package/dist/transcript-E_-ISOkD-DWCfZP2p.mjs +2019 -0
  100. package/dist/transcript.runtime-BqhvZZdl-BPy42vBP.mjs +2 -0
  101. package/dist/transform-messages-DbhIzTxq.mjs +207 -0
  102. package/dist/web-provider-public-artifacts-BlpRwIUS-CGPSV4W2.mjs +295 -0
  103. package/dist/web-search-providers.runtime--0aUtC3b-DyuhC95V.mjs +200 -0
  104. package/package.json +3 -3
  105. package/dist/rolldown-runtime-wcPFST8Q.mjs +0 -13
  106. /package/dist/{interactive-init-B6j8j_Ap.mjs → interactive-init-BXQBalNr.mjs} +0 -0
@@ -0,0 +1,813 @@
1
+ import { i as __require, t as __commonJSMin } from "./chunk-D6SyT4dJ.mjs";
2
+ //#region node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
3
+ var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ module.exports = (flag, argv = process.argv) => {
5
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
6
+ const position = argv.indexOf(prefix + flag);
7
+ const terminatorPosition = argv.indexOf("--");
8
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
9
+ };
10
+ }));
11
+ //#endregion
12
+ //#region node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
13
+ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14
+ const os = __require("os");
15
+ const tty$1 = __require("tty");
16
+ const hasFlag = require_has_flag();
17
+ const { env } = process;
18
+ let forceColor;
19
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) forceColor = 0;
20
+ else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = 1;
21
+ if ("FORCE_COLOR" in env) if (env.FORCE_COLOR === "true") forceColor = 1;
22
+ else if (env.FORCE_COLOR === "false") forceColor = 0;
23
+ else forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
24
+ function translateLevel(level) {
25
+ if (level === 0) return false;
26
+ return {
27
+ level,
28
+ hasBasic: true,
29
+ has256: level >= 2,
30
+ has16m: level >= 3
31
+ };
32
+ }
33
+ function supportsColor(haveStream, streamIsTTY) {
34
+ if (forceColor === 0) return 0;
35
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
36
+ if (hasFlag("color=256")) return 2;
37
+ if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
38
+ const min = forceColor || 0;
39
+ if (env.TERM === "dumb") return min;
40
+ if (process.platform === "win32") {
41
+ const osRelease = os.release().split(".");
42
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
43
+ return 1;
44
+ }
45
+ if ("CI" in env) {
46
+ if ([
47
+ "TRAVIS",
48
+ "CIRCLECI",
49
+ "APPVEYOR",
50
+ "GITLAB_CI",
51
+ "GITHUB_ACTIONS",
52
+ "BUILDKITE"
53
+ ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
54
+ return min;
55
+ }
56
+ if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
57
+ if (env.COLORTERM === "truecolor") return 3;
58
+ if ("TERM_PROGRAM" in env) {
59
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
60
+ switch (env.TERM_PROGRAM) {
61
+ case "iTerm.app": return version >= 3 ? 3 : 2;
62
+ case "Apple_Terminal": return 2;
63
+ }
64
+ }
65
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
66
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
67
+ if ("COLORTERM" in env) return 1;
68
+ return min;
69
+ }
70
+ function getSupportLevel(stream) {
71
+ return translateLevel(supportsColor(stream, stream && stream.isTTY));
72
+ }
73
+ module.exports = {
74
+ supportsColor: getSupportLevel,
75
+ stdout: translateLevel(supportsColor(true, tty$1.isatty(1))),
76
+ stderr: translateLevel(supportsColor(true, tty$1.isatty(2)))
77
+ };
78
+ }));
79
+ //#endregion
80
+ //#region node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
81
+ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82
+ /**
83
+ * Helpers.
84
+ */
85
+ var s = 1e3;
86
+ var m = s * 60;
87
+ var h = m * 60;
88
+ var d = h * 24;
89
+ var w = d * 7;
90
+ var y = d * 365.25;
91
+ /**
92
+ * Parse or format the given `val`.
93
+ *
94
+ * Options:
95
+ *
96
+ * - `long` verbose formatting [false]
97
+ *
98
+ * @param {String|Number} val
99
+ * @param {Object} [options]
100
+ * @throws {Error} throw an error if val is not a non-empty string or a number
101
+ * @return {String|Number}
102
+ * @api public
103
+ */
104
+ module.exports = function(val, options) {
105
+ options = options || {};
106
+ var type = typeof val;
107
+ if (type === "string" && val.length > 0) return parse(val);
108
+ else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
109
+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
110
+ };
111
+ /**
112
+ * Parse the given `str` and return milliseconds.
113
+ *
114
+ * @param {String} str
115
+ * @return {Number}
116
+ * @api private
117
+ */
118
+ function parse(str) {
119
+ str = String(str);
120
+ if (str.length > 100) return;
121
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
122
+ if (!match) return;
123
+ var n = parseFloat(match[1]);
124
+ switch ((match[2] || "ms").toLowerCase()) {
125
+ case "years":
126
+ case "year":
127
+ case "yrs":
128
+ case "yr":
129
+ case "y": return n * y;
130
+ case "weeks":
131
+ case "week":
132
+ case "w": return n * w;
133
+ case "days":
134
+ case "day":
135
+ case "d": return n * d;
136
+ case "hours":
137
+ case "hour":
138
+ case "hrs":
139
+ case "hr":
140
+ case "h": return n * h;
141
+ case "minutes":
142
+ case "minute":
143
+ case "mins":
144
+ case "min":
145
+ case "m": return n * m;
146
+ case "seconds":
147
+ case "second":
148
+ case "secs":
149
+ case "sec":
150
+ case "s": return n * s;
151
+ case "milliseconds":
152
+ case "millisecond":
153
+ case "msecs":
154
+ case "msec":
155
+ case "ms": return n;
156
+ default: return;
157
+ }
158
+ }
159
+ /**
160
+ * Short format for `ms`.
161
+ *
162
+ * @param {Number} ms
163
+ * @return {String}
164
+ * @api private
165
+ */
166
+ function fmtShort(ms) {
167
+ var msAbs = Math.abs(ms);
168
+ if (msAbs >= d) return Math.round(ms / d) + "d";
169
+ if (msAbs >= h) return Math.round(ms / h) + "h";
170
+ if (msAbs >= m) return Math.round(ms / m) + "m";
171
+ if (msAbs >= s) return Math.round(ms / s) + "s";
172
+ return ms + "ms";
173
+ }
174
+ /**
175
+ * Long format for `ms`.
176
+ *
177
+ * @param {Number} ms
178
+ * @return {String}
179
+ * @api private
180
+ */
181
+ function fmtLong(ms) {
182
+ var msAbs = Math.abs(ms);
183
+ if (msAbs >= d) return plural(ms, msAbs, d, "day");
184
+ if (msAbs >= h) return plural(ms, msAbs, h, "hour");
185
+ if (msAbs >= m) return plural(ms, msAbs, m, "minute");
186
+ if (msAbs >= s) return plural(ms, msAbs, s, "second");
187
+ return ms + " ms";
188
+ }
189
+ /**
190
+ * Pluralization helper.
191
+ */
192
+ function plural(ms, msAbs, n, name) {
193
+ var isPlural = msAbs >= n * 1.5;
194
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
195
+ }
196
+ }));
197
+ //#endregion
198
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
199
+ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
200
+ /**
201
+ * This is the common logic for both the Node.js and web browser
202
+ * implementations of `debug()`.
203
+ */
204
+ function setup(env) {
205
+ createDebug.debug = createDebug;
206
+ createDebug.default = createDebug;
207
+ createDebug.coerce = coerce;
208
+ createDebug.disable = disable;
209
+ createDebug.enable = enable;
210
+ createDebug.enabled = enabled;
211
+ createDebug.humanize = require_ms();
212
+ createDebug.destroy = destroy;
213
+ Object.keys(env).forEach((key) => {
214
+ createDebug[key] = env[key];
215
+ });
216
+ /**
217
+ * The currently active debug mode names, and names to skip.
218
+ */
219
+ createDebug.names = [];
220
+ createDebug.skips = [];
221
+ /**
222
+ * Map of special "%n" handling functions, for the debug "format" argument.
223
+ *
224
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
225
+ */
226
+ createDebug.formatters = {};
227
+ /**
228
+ * Selects a color for a debug namespace
229
+ * @param {String} namespace The namespace string for the debug instance to be colored
230
+ * @return {Number|String} An ANSI color code for the given namespace
231
+ * @api private
232
+ */
233
+ function selectColor(namespace) {
234
+ let hash = 0;
235
+ for (let i = 0; i < namespace.length; i++) {
236
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
237
+ hash |= 0;
238
+ }
239
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
240
+ }
241
+ createDebug.selectColor = selectColor;
242
+ /**
243
+ * Create a debugger with the given `namespace`.
244
+ *
245
+ * @param {String} namespace
246
+ * @return {Function}
247
+ * @api public
248
+ */
249
+ function createDebug(namespace) {
250
+ let prevTime;
251
+ let enableOverride = null;
252
+ let namespacesCache;
253
+ let enabledCache;
254
+ function debug(...args) {
255
+ if (!debug.enabled) return;
256
+ const self = debug;
257
+ const curr = Number(/* @__PURE__ */ new Date());
258
+ self.diff = curr - (prevTime || curr);
259
+ self.prev = prevTime;
260
+ self.curr = curr;
261
+ prevTime = curr;
262
+ args[0] = createDebug.coerce(args[0]);
263
+ if (typeof args[0] !== "string") args.unshift("%O");
264
+ let index = 0;
265
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
266
+ if (match === "%%") return "%";
267
+ index++;
268
+ const formatter = createDebug.formatters[format];
269
+ if (typeof formatter === "function") {
270
+ const val = args[index];
271
+ match = formatter.call(self, val);
272
+ args.splice(index, 1);
273
+ index--;
274
+ }
275
+ return match;
276
+ });
277
+ createDebug.formatArgs.call(self, args);
278
+ (self.log || createDebug.log).apply(self, args);
279
+ }
280
+ debug.namespace = namespace;
281
+ debug.useColors = createDebug.useColors();
282
+ debug.color = createDebug.selectColor(namespace);
283
+ debug.extend = extend;
284
+ debug.destroy = createDebug.destroy;
285
+ Object.defineProperty(debug, "enabled", {
286
+ enumerable: true,
287
+ configurable: false,
288
+ get: () => {
289
+ if (enableOverride !== null) return enableOverride;
290
+ if (namespacesCache !== createDebug.namespaces) {
291
+ namespacesCache = createDebug.namespaces;
292
+ enabledCache = createDebug.enabled(namespace);
293
+ }
294
+ return enabledCache;
295
+ },
296
+ set: (v) => {
297
+ enableOverride = v;
298
+ }
299
+ });
300
+ if (typeof createDebug.init === "function") createDebug.init(debug);
301
+ return debug;
302
+ }
303
+ function extend(namespace, delimiter) {
304
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
305
+ newDebug.log = this.log;
306
+ return newDebug;
307
+ }
308
+ /**
309
+ * Enables a debug mode by namespaces. This can include modes
310
+ * separated by a colon and wildcards.
311
+ *
312
+ * @param {String} namespaces
313
+ * @api public
314
+ */
315
+ function enable(namespaces) {
316
+ createDebug.save(namespaces);
317
+ createDebug.namespaces = namespaces;
318
+ createDebug.names = [];
319
+ createDebug.skips = [];
320
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
321
+ for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
322
+ else createDebug.names.push(ns);
323
+ }
324
+ /**
325
+ * Checks if the given string matches a namespace template, honoring
326
+ * asterisks as wildcards.
327
+ *
328
+ * @param {String} search
329
+ * @param {String} template
330
+ * @return {Boolean}
331
+ */
332
+ function matchesTemplate(search, template) {
333
+ let searchIndex = 0;
334
+ let templateIndex = 0;
335
+ let starIndex = -1;
336
+ let matchIndex = 0;
337
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
338
+ starIndex = templateIndex;
339
+ matchIndex = searchIndex;
340
+ templateIndex++;
341
+ } else {
342
+ searchIndex++;
343
+ templateIndex++;
344
+ }
345
+ else if (starIndex !== -1) {
346
+ templateIndex = starIndex + 1;
347
+ matchIndex++;
348
+ searchIndex = matchIndex;
349
+ } else return false;
350
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
351
+ return templateIndex === template.length;
352
+ }
353
+ /**
354
+ * Disable debug output.
355
+ *
356
+ * @return {String} namespaces
357
+ * @api public
358
+ */
359
+ function disable() {
360
+ const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
361
+ createDebug.enable("");
362
+ return namespaces;
363
+ }
364
+ /**
365
+ * Returns true if the given mode name is enabled, false otherwise.
366
+ *
367
+ * @param {String} name
368
+ * @return {Boolean}
369
+ * @api public
370
+ */
371
+ function enabled(name) {
372
+ for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
373
+ for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
374
+ return false;
375
+ }
376
+ /**
377
+ * Coerce `val`.
378
+ *
379
+ * @param {Mixed} val
380
+ * @return {Mixed}
381
+ * @api private
382
+ */
383
+ function coerce(val) {
384
+ if (val instanceof Error) return val.stack || val.message;
385
+ return val;
386
+ }
387
+ /**
388
+ * XXX DO NOT USE. This is a temporary stub function.
389
+ * XXX It WILL be removed in the next major release.
390
+ */
391
+ function destroy() {
392
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
393
+ }
394
+ createDebug.enable(createDebug.load());
395
+ return createDebug;
396
+ }
397
+ module.exports = setup;
398
+ }));
399
+ //#endregion
400
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
401
+ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
402
+ /**
403
+ * This is the web browser implementation of `debug()`.
404
+ */
405
+ exports.formatArgs = formatArgs;
406
+ exports.save = save;
407
+ exports.load = load;
408
+ exports.useColors = useColors;
409
+ exports.storage = localstorage();
410
+ exports.destroy = (() => {
411
+ let warned = false;
412
+ return () => {
413
+ if (!warned) {
414
+ warned = true;
415
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
416
+ }
417
+ };
418
+ })();
419
+ /**
420
+ * Colors.
421
+ */
422
+ exports.colors = [
423
+ "#0000CC",
424
+ "#0000FF",
425
+ "#0033CC",
426
+ "#0033FF",
427
+ "#0066CC",
428
+ "#0066FF",
429
+ "#0099CC",
430
+ "#0099FF",
431
+ "#00CC00",
432
+ "#00CC33",
433
+ "#00CC66",
434
+ "#00CC99",
435
+ "#00CCCC",
436
+ "#00CCFF",
437
+ "#3300CC",
438
+ "#3300FF",
439
+ "#3333CC",
440
+ "#3333FF",
441
+ "#3366CC",
442
+ "#3366FF",
443
+ "#3399CC",
444
+ "#3399FF",
445
+ "#33CC00",
446
+ "#33CC33",
447
+ "#33CC66",
448
+ "#33CC99",
449
+ "#33CCCC",
450
+ "#33CCFF",
451
+ "#6600CC",
452
+ "#6600FF",
453
+ "#6633CC",
454
+ "#6633FF",
455
+ "#66CC00",
456
+ "#66CC33",
457
+ "#9900CC",
458
+ "#9900FF",
459
+ "#9933CC",
460
+ "#9933FF",
461
+ "#99CC00",
462
+ "#99CC33",
463
+ "#CC0000",
464
+ "#CC0033",
465
+ "#CC0066",
466
+ "#CC0099",
467
+ "#CC00CC",
468
+ "#CC00FF",
469
+ "#CC3300",
470
+ "#CC3333",
471
+ "#CC3366",
472
+ "#CC3399",
473
+ "#CC33CC",
474
+ "#CC33FF",
475
+ "#CC6600",
476
+ "#CC6633",
477
+ "#CC9900",
478
+ "#CC9933",
479
+ "#CCCC00",
480
+ "#CCCC33",
481
+ "#FF0000",
482
+ "#FF0033",
483
+ "#FF0066",
484
+ "#FF0099",
485
+ "#FF00CC",
486
+ "#FF00FF",
487
+ "#FF3300",
488
+ "#FF3333",
489
+ "#FF3366",
490
+ "#FF3399",
491
+ "#FF33CC",
492
+ "#FF33FF",
493
+ "#FF6600",
494
+ "#FF6633",
495
+ "#FF9900",
496
+ "#FF9933",
497
+ "#FFCC00",
498
+ "#FFCC33"
499
+ ];
500
+ /**
501
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
502
+ * and the Firebug extension (any Firefox version) are known
503
+ * to support "%c" CSS customizations.
504
+ *
505
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
506
+ */
507
+ function useColors() {
508
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
509
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
510
+ let m;
511
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
512
+ }
513
+ /**
514
+ * Colorize log arguments if enabled.
515
+ *
516
+ * @api public
517
+ */
518
+ function formatArgs(args) {
519
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
520
+ if (!this.useColors) return;
521
+ const c = "color: " + this.color;
522
+ args.splice(1, 0, c, "color: inherit");
523
+ let index = 0;
524
+ let lastC = 0;
525
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
526
+ if (match === "%%") return;
527
+ index++;
528
+ if (match === "%c") lastC = index;
529
+ });
530
+ args.splice(lastC, 0, c);
531
+ }
532
+ /**
533
+ * Invokes `console.debug()` when available.
534
+ * No-op when `console.debug` is not a "function".
535
+ * If `console.debug` is not available, falls back
536
+ * to `console.log`.
537
+ *
538
+ * @api public
539
+ */
540
+ exports.log = console.debug || console.log || (() => {});
541
+ /**
542
+ * Save `namespaces`.
543
+ *
544
+ * @param {String} namespaces
545
+ * @api private
546
+ */
547
+ function save(namespaces) {
548
+ try {
549
+ if (namespaces) exports.storage.setItem("debug", namespaces);
550
+ else exports.storage.removeItem("debug");
551
+ } catch (error) {}
552
+ }
553
+ /**
554
+ * Load `namespaces`.
555
+ *
556
+ * @return {String} returns the previously persisted debug modes
557
+ * @api private
558
+ */
559
+ function load() {
560
+ let r;
561
+ try {
562
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
563
+ } catch (error) {}
564
+ if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
565
+ return r;
566
+ }
567
+ /**
568
+ * Localstorage attempts to return the localstorage.
569
+ *
570
+ * This is necessary because safari throws
571
+ * when a user disables cookies/localstorage
572
+ * and you attempt to access it.
573
+ *
574
+ * @return {LocalStorage}
575
+ * @api private
576
+ */
577
+ function localstorage() {
578
+ try {
579
+ return localStorage;
580
+ } catch (error) {}
581
+ }
582
+ module.exports = require_common()(exports);
583
+ const { formatters } = module.exports;
584
+ /**
585
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
586
+ */
587
+ formatters.j = function(v) {
588
+ try {
589
+ return JSON.stringify(v);
590
+ } catch (error) {
591
+ return "[UnexpectedJSONParseError]: " + error.message;
592
+ }
593
+ };
594
+ }));
595
+ //#endregion
596
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
597
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
598
+ /**
599
+ * Module dependencies.
600
+ */
601
+ const tty = __require("tty");
602
+ const util = __require("util");
603
+ /**
604
+ * This is the Node.js implementation of `debug()`.
605
+ */
606
+ exports.init = init;
607
+ exports.log = log;
608
+ exports.formatArgs = formatArgs;
609
+ exports.save = save;
610
+ exports.load = load;
611
+ exports.useColors = useColors;
612
+ exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
613
+ /**
614
+ * Colors.
615
+ */
616
+ exports.colors = [
617
+ 6,
618
+ 2,
619
+ 3,
620
+ 4,
621
+ 5,
622
+ 1
623
+ ];
624
+ try {
625
+ const supportsColor = require_supports_color();
626
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
627
+ 20,
628
+ 21,
629
+ 26,
630
+ 27,
631
+ 32,
632
+ 33,
633
+ 38,
634
+ 39,
635
+ 40,
636
+ 41,
637
+ 42,
638
+ 43,
639
+ 44,
640
+ 45,
641
+ 56,
642
+ 57,
643
+ 62,
644
+ 63,
645
+ 68,
646
+ 69,
647
+ 74,
648
+ 75,
649
+ 76,
650
+ 77,
651
+ 78,
652
+ 79,
653
+ 80,
654
+ 81,
655
+ 92,
656
+ 93,
657
+ 98,
658
+ 99,
659
+ 112,
660
+ 113,
661
+ 128,
662
+ 129,
663
+ 134,
664
+ 135,
665
+ 148,
666
+ 149,
667
+ 160,
668
+ 161,
669
+ 162,
670
+ 163,
671
+ 164,
672
+ 165,
673
+ 166,
674
+ 167,
675
+ 168,
676
+ 169,
677
+ 170,
678
+ 171,
679
+ 172,
680
+ 173,
681
+ 178,
682
+ 179,
683
+ 184,
684
+ 185,
685
+ 196,
686
+ 197,
687
+ 198,
688
+ 199,
689
+ 200,
690
+ 201,
691
+ 202,
692
+ 203,
693
+ 204,
694
+ 205,
695
+ 206,
696
+ 207,
697
+ 208,
698
+ 209,
699
+ 214,
700
+ 215,
701
+ 220,
702
+ 221
703
+ ];
704
+ } catch (error) {}
705
+ /**
706
+ * Build up the default `inspectOpts` object from the environment variables.
707
+ *
708
+ * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
709
+ */
710
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
711
+ return /^debug_/i.test(key);
712
+ }).reduce((obj, key) => {
713
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
714
+ return k.toUpperCase();
715
+ });
716
+ let val = process.env[key];
717
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
718
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
719
+ else if (val === "null") val = null;
720
+ else val = Number(val);
721
+ obj[prop] = val;
722
+ return obj;
723
+ }, {});
724
+ /**
725
+ * Is stdout a TTY? Colored output is enabled when `true`.
726
+ */
727
+ function useColors() {
728
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
729
+ }
730
+ /**
731
+ * Adds ANSI color escape codes if enabled.
732
+ *
733
+ * @api public
734
+ */
735
+ function formatArgs(args) {
736
+ const { namespace: name, useColors } = this;
737
+ if (useColors) {
738
+ const c = this.color;
739
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
740
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
741
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
742
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
743
+ } else args[0] = getDate() + name + " " + args[0];
744
+ }
745
+ function getDate() {
746
+ if (exports.inspectOpts.hideDate) return "";
747
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
748
+ }
749
+ /**
750
+ * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
751
+ */
752
+ function log(...args) {
753
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
754
+ }
755
+ /**
756
+ * Save `namespaces`.
757
+ *
758
+ * @param {String} namespaces
759
+ * @api private
760
+ */
761
+ function save(namespaces) {
762
+ if (namespaces) process.env.DEBUG = namespaces;
763
+ else delete process.env.DEBUG;
764
+ }
765
+ /**
766
+ * Load `namespaces`.
767
+ *
768
+ * @return {String} returns the previously persisted debug modes
769
+ * @api private
770
+ */
771
+ function load() {
772
+ return process.env.DEBUG;
773
+ }
774
+ /**
775
+ * Init logic for `debug` instances.
776
+ *
777
+ * Create a new `inspectOpts` object in case `useColors` is set
778
+ * differently for a particular `debug` instance.
779
+ */
780
+ function init(debug) {
781
+ debug.inspectOpts = {};
782
+ const keys = Object.keys(exports.inspectOpts);
783
+ for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
784
+ }
785
+ module.exports = require_common()(exports);
786
+ const { formatters } = module.exports;
787
+ /**
788
+ * Map %o to `util.inspect()`, all on a single line.
789
+ */
790
+ formatters.o = function(v) {
791
+ this.inspectOpts.colors = this.useColors;
792
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
793
+ };
794
+ /**
795
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
796
+ */
797
+ formatters.O = function(v) {
798
+ this.inspectOpts.colors = this.useColors;
799
+ return util.inspect(v, this.inspectOpts);
800
+ };
801
+ }));
802
+ //#endregion
803
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
804
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
805
+ /**
806
+ * Detect Electron renderer / nwjs process, which is node, but we should
807
+ * treat as a browser.
808
+ */
809
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
810
+ else module.exports = require_node();
811
+ }));
812
+ //#endregion
813
+ export { require_supports_color as n, require_src as t };