@agentdocumentformat/cli 0.7.2

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 (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -0
  3. package/dist/adf.mjs +162 -0
  4. package/dist/chunks/APEv2Parser-2CNNHMXV.mjs +22 -0
  5. package/dist/chunks/AiffParser-7BR4RL6G.mjs +162 -0
  6. package/dist/chunks/App-L5L37JI5.mjs +16747 -0
  7. package/dist/chunks/AsfParser-VVRSLFOM.mjs +538 -0
  8. package/dist/chunks/DsdiffParser-CMD4AX7A.mjs +156 -0
  9. package/dist/chunks/DsfParser-UOGZDS2M.mjs +94 -0
  10. package/dist/chunks/FlacParser-HB3T3CD4.mjs +23 -0
  11. package/dist/chunks/MP4Parser-66HBRUSX.mjs +973 -0
  12. package/dist/chunks/MatroskaParser-J3HUIMEW.mjs +579 -0
  13. package/dist/chunks/MpegParser-YW6LIUEW.mjs +442 -0
  14. package/dist/chunks/MusepackParser-PAUSXP7D.mjs +252 -0
  15. package/dist/chunks/OggParser-NUBV3GWC.mjs +359 -0
  16. package/dist/chunks/WavPackParser-WQAGT7TC.mjs +171 -0
  17. package/dist/chunks/WaveParser-EWLQVDX4.mjs +238 -0
  18. package/dist/chunks/adf-schema-JRU2BTOG.mjs +62 -0
  19. package/dist/chunks/build-QF5W473T.mjs +60 -0
  20. package/dist/chunks/chatgpt-subscription-BQGWYZXE.mjs +23 -0
  21. package/dist/chunks/chunk-2DIECGFL.mjs +6 -0
  22. package/dist/chunks/chunk-2NAP2ZF7.mjs +60 -0
  23. package/dist/chunks/chunk-3AT7IIP7.mjs +25696 -0
  24. package/dist/chunks/chunk-3GNIDM53.mjs +35 -0
  25. package/dist/chunks/chunk-3M4ZPOA3.mjs +1477 -0
  26. package/dist/chunks/chunk-4MQPTCXY.mjs +510 -0
  27. package/dist/chunks/chunk-5PO5PKRV.mjs +366 -0
  28. package/dist/chunks/chunk-5QU5VY7N.mjs +52 -0
  29. package/dist/chunks/chunk-5W7KES6P.mjs +436 -0
  30. package/dist/chunks/chunk-62NE4LG4.mjs +61 -0
  31. package/dist/chunks/chunk-64OKE4X3.mjs +45 -0
  32. package/dist/chunks/chunk-6GJ4QHRI.mjs +1278 -0
  33. package/dist/chunks/chunk-6VQEXLE2.mjs +144 -0
  34. package/dist/chunks/chunk-6XUV6EK6.mjs +41 -0
  35. package/dist/chunks/chunk-776TSXEP.mjs +43 -0
  36. package/dist/chunks/chunk-7CV2SA3H.mjs +285 -0
  37. package/dist/chunks/chunk-7MTRVW2U.mjs +3103 -0
  38. package/dist/chunks/chunk-7N2R2VCG.mjs +1434 -0
  39. package/dist/chunks/chunk-7T2YMTWL.mjs +374 -0
  40. package/dist/chunks/chunk-7XYNI52E.mjs +149 -0
  41. package/dist/chunks/chunk-APHX6HSV.mjs +7731 -0
  42. package/dist/chunks/chunk-APRU6PHC.mjs +40 -0
  43. package/dist/chunks/chunk-AUYKRQPJ.mjs +499 -0
  44. package/dist/chunks/chunk-DXWDD5XJ.mjs +136 -0
  45. package/dist/chunks/chunk-EWL5FG4I.mjs +39 -0
  46. package/dist/chunks/chunk-EYX2YLJW.mjs +117 -0
  47. package/dist/chunks/chunk-F5ELW46V.mjs +27 -0
  48. package/dist/chunks/chunk-G426FACA.mjs +49 -0
  49. package/dist/chunks/chunk-GEKSJHIV.mjs +2472 -0
  50. package/dist/chunks/chunk-HBUENVQL.mjs +570 -0
  51. package/dist/chunks/chunk-HPVFJYXR.mjs +112 -0
  52. package/dist/chunks/chunk-HWLWPXQ7.mjs +721 -0
  53. package/dist/chunks/chunk-I2HJYHFT.mjs +665 -0
  54. package/dist/chunks/chunk-I3UYSITV.mjs +68 -0
  55. package/dist/chunks/chunk-IC4JDZCI.mjs +3864 -0
  56. package/dist/chunks/chunk-IHDDCZBS.mjs +112 -0
  57. package/dist/chunks/chunk-IIGMZHQQ.mjs +10416 -0
  58. package/dist/chunks/chunk-KWFOS5WC.mjs +41 -0
  59. package/dist/chunks/chunk-LAZIXV2F.mjs +5290 -0
  60. package/dist/chunks/chunk-LFMB4PAA.mjs +10814 -0
  61. package/dist/chunks/chunk-M2RX3S2T.mjs +49 -0
  62. package/dist/chunks/chunk-M3WPIJYM.mjs +65 -0
  63. package/dist/chunks/chunk-NBTUWMGP.mjs +263 -0
  64. package/dist/chunks/chunk-NGK6PVSF.mjs +2676 -0
  65. package/dist/chunks/chunk-NZ7JTHEO.mjs +85 -0
  66. package/dist/chunks/chunk-OQN33RGQ.mjs +52 -0
  67. package/dist/chunks/chunk-RIX34QHC.mjs +2935 -0
  68. package/dist/chunks/chunk-SGUTYISF.mjs +16 -0
  69. package/dist/chunks/chunk-SLJ5L7PY.mjs +1473 -0
  70. package/dist/chunks/chunk-SLUKGXKH.mjs +68 -0
  71. package/dist/chunks/chunk-TMT32MXT.mjs +419 -0
  72. package/dist/chunks/chunk-UYY5M2PB.mjs +151 -0
  73. package/dist/chunks/chunk-VAUOM3IN.mjs +298 -0
  74. package/dist/chunks/chunk-VMHTYDH4.mjs +172 -0
  75. package/dist/chunks/chunk-VZS54AA5.mjs +200 -0
  76. package/dist/chunks/chunk-WFQUVXML.mjs +295 -0
  77. package/dist/chunks/chunk-X34PDRUH.mjs +809 -0
  78. package/dist/chunks/chunk-XNPZBLYL.mjs +33 -0
  79. package/dist/chunks/chunk-XX7OSWTO.mjs +157 -0
  80. package/dist/chunks/chunk-XYTWGHFS.mjs +600 -0
  81. package/dist/chunks/chunk-XYV3VCIX.mjs +336 -0
  82. package/dist/chunks/chunk-Y5ZLKFLE.mjs +1469 -0
  83. package/dist/chunks/chunk-ZJKXHM4Q.mjs +230 -0
  84. package/dist/chunks/cli-TCMBNZF6.mjs +1030 -0
  85. package/dist/chunks/commands-DTEKM4ZL.mjs +20 -0
  86. package/dist/chunks/daemon-ZC3FZ2P4.mjs +112449 -0
  87. package/dist/chunks/daemon-control-WDX7PMTC.mjs +300 -0
  88. package/dist/chunks/daemon-token-WRSULP7G.mjs +23 -0
  89. package/dist/chunks/devtools-H7CI2ZVG.mjs +85 -0
  90. package/dist/chunks/discord-IWDQJA7A.mjs +70588 -0
  91. package/dist/chunks/dist-C57KYFS2.mjs +4952 -0
  92. package/dist/chunks/dist-I3XBAGDL.mjs +11 -0
  93. package/dist/chunks/email-V4Q4VJON.mjs +58679 -0
  94. package/dist/chunks/environment-NX277MQG.mjs +15 -0
  95. package/dist/chunks/grok-subscription-4PYX7TBF.mjs +19 -0
  96. package/dist/chunks/layout-EPJQNFAI.mjs +22 -0
  97. package/dist/chunks/lib-N7FCZWKH.mjs +4038 -0
  98. package/dist/chunks/open-OTQDGDH5.mjs +36 -0
  99. package/dist/chunks/parser-JVY2PWSM.mjs +19 -0
  100. package/dist/chunks/pipeline-executor-BHBSJX2K.mjs +19 -0
  101. package/dist/chunks/react-IUIDQ5LX.mjs +11 -0
  102. package/dist/chunks/screen-54BUTYCW.mjs +27 -0
  103. package/dist/chunks/slack-3L5QTDZX.mjs +8113 -0
  104. package/dist/chunks/store-WR7TZJZS.mjs +32 -0
  105. package/dist/chunks/telegram-5ISVFBV3.mjs +14918 -0
  106. package/dist/chunks/terminal-O5WO7C5U.mjs +48 -0
  107. package/dist/chunks/theme-NORU4J74.mjs +20 -0
  108. package/dist/chunks/themes-F2FKU7CP.mjs +23 -0
  109. package/dist/chunks/token-6G3HCMNX.mjs +54 -0
  110. package/dist/chunks/token-util-UXYSDQIW.mjs +12 -0
  111. package/dist/chunks/tui-ODVYUIMT.mjs +197 -0
  112. package/dist/chunks/welcome-XHXFV7SH.mjs +32 -0
  113. package/dist/chunks/whatsapp-XSAMNGPJ.mjs +85412 -0
  114. package/dist/chunks/xterm-headless-YF53XWXE.mjs +3353 -0
  115. package/package.json +53 -0
  116. package/resources/wasm/coreutils.LICENSE +18 -0
  117. package/resources/wasm/coreutils.wasm +0 -0
@@ -0,0 +1,40 @@
1
+ import { createRequire as __adfCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __adfFileURLToPath } from 'node:url';
3
+ import { dirname as __adfDirname } from 'node:path';
4
+ const require = __adfCreateRequire(import.meta.url);
5
+ const __filename = __adfFileURLToPath(import.meta.url);
6
+ const __dirname = __adfDirname(__filename);
7
+ import {
8
+ savePrefs
9
+ } from "./chunk-5QU5VY7N.mjs";
10
+ import {
11
+ setMouseWanted,
12
+ terminalCaps
13
+ } from "./chunk-7XYNI52E.mjs";
14
+
15
+ // src/main/tui/app/layout.ts
16
+ var LAYOUT_STATE_KEY = "shell.layout";
17
+ function readLayout(state) {
18
+ return { sidebarHidden: state.viewState[LAYOUT_STATE_KEY]?.sidebarHidden === !0 };
19
+ }
20
+ function setSidebarHidden(store, hidden, announce = !0) {
21
+ let current = readLayout(store.getState()), next = hidden ?? !current.sidebarHidden;
22
+ return store.actions.setViewState(LAYOUT_STATE_KEY, { ...current, sidebarHidden: next }), savePrefs({ sidebar: !next }), next && store.getState().focus === "sidebar" && store.actions.setFocus("main"), announce && store.actions.toast(next ? "Sidebar hidden: full-width view \xB7 Ctrl+B brings it back" : "Sidebar shown \xB7 Ctrl+B hides it", "info", 2e3), next;
23
+ }
24
+ function setMouse(store, on) {
25
+ let next = on ?? !terminalCaps().mouseWanted;
26
+ setMouseWanted(next), savePrefs({ mouse: next });
27
+ let caps = terminalCaps();
28
+ return store.actions.toast(
29
+ next ? caps.altScreen ? "Mouse mode on: click expands, drag selects and copies, right-click pastes, the wheel scrolls what is under the pointer \xB7 /mouse off" : "Mouse wanted, but only works in the alternate screen (not with --no-alt-screen)" : "Mouse mode off: the terminal selects, copies and pastes; the wheel scrolls the focused pane \xB7 /mouse on",
30
+ "info",
31
+ 3e3
32
+ ), next;
33
+ }
34
+
35
+ export {
36
+ LAYOUT_STATE_KEY,
37
+ readLayout,
38
+ setSidebarHidden,
39
+ setMouse
40
+ };
@@ -0,0 +1,499 @@
1
+ import { createRequire as __adfCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __adfFileURLToPath } from 'node:url';
3
+ import { dirname as __adfDirname } from 'node:path';
4
+ const require = __adfCreateRequire(import.meta.url);
5
+ const __filename = __adfFileURLToPath(import.meta.url);
6
+ const __dirname = __adfDirname(__filename);
7
+ import {
8
+ require_supports_color
9
+ } from "./chunk-NZ7JTHEO.mjs";
10
+ import {
11
+ __commonJS,
12
+ __require
13
+ } from "./chunk-M2RX3S2T.mjs";
14
+
15
+ // node_modules/ms/index.js
16
+ var require_ms = __commonJS({
17
+ "node_modules/ms/index.js"(exports, module) {
18
+ "use strict";
19
+ var s = 1e3, m = s * 60, h = m * 60, d = h * 24, w = d * 7, y = d * 365.25;
20
+ module.exports = function(val, options) {
21
+ options = options || {};
22
+ var type = typeof val;
23
+ if (type === "string" && val.length > 0)
24
+ return parse(val);
25
+ if (type === "number" && isFinite(val))
26
+ return options.long ? fmtLong(val) : fmtShort(val);
27
+ throw new Error(
28
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
29
+ );
30
+ };
31
+ function parse(str) {
32
+ if (str = String(str), !(str.length > 100)) {
33
+ 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(
34
+ str
35
+ );
36
+ if (match) {
37
+ var n = parseFloat(match[1]), type = (match[2] || "ms").toLowerCase();
38
+ switch (type) {
39
+ case "years":
40
+ case "year":
41
+ case "yrs":
42
+ case "yr":
43
+ case "y":
44
+ return n * y;
45
+ case "weeks":
46
+ case "week":
47
+ case "w":
48
+ return n * w;
49
+ case "days":
50
+ case "day":
51
+ case "d":
52
+ return n * d;
53
+ case "hours":
54
+ case "hour":
55
+ case "hrs":
56
+ case "hr":
57
+ case "h":
58
+ return n * h;
59
+ case "minutes":
60
+ case "minute":
61
+ case "mins":
62
+ case "min":
63
+ case "m":
64
+ return n * m;
65
+ case "seconds":
66
+ case "second":
67
+ case "secs":
68
+ case "sec":
69
+ case "s":
70
+ return n * s;
71
+ case "milliseconds":
72
+ case "millisecond":
73
+ case "msecs":
74
+ case "msec":
75
+ case "ms":
76
+ return n;
77
+ default:
78
+ return;
79
+ }
80
+ }
81
+ }
82
+ }
83
+ function fmtShort(ms) {
84
+ var msAbs = Math.abs(ms);
85
+ return msAbs >= d ? Math.round(ms / d) + "d" : msAbs >= h ? Math.round(ms / h) + "h" : msAbs >= m ? Math.round(ms / m) + "m" : msAbs >= s ? Math.round(ms / s) + "s" : ms + "ms";
86
+ }
87
+ function fmtLong(ms) {
88
+ var msAbs = Math.abs(ms);
89
+ return msAbs >= d ? plural(ms, msAbs, d, "day") : msAbs >= h ? plural(ms, msAbs, h, "hour") : msAbs >= m ? plural(ms, msAbs, m, "minute") : msAbs >= s ? plural(ms, msAbs, s, "second") : ms + " ms";
90
+ }
91
+ function plural(ms, msAbs, n, name) {
92
+ var isPlural = msAbs >= n * 1.5;
93
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
94
+ }
95
+ }
96
+ });
97
+
98
+ // node_modules/debug/src/common.js
99
+ var require_common = __commonJS({
100
+ "node_modules/debug/src/common.js"(exports, module) {
101
+ "use strict";
102
+ function setup(env) {
103
+ createDebug.debug = createDebug, createDebug.default = createDebug, createDebug.coerce = coerce, createDebug.disable = disable, createDebug.enable = enable, createDebug.enabled = enabled, createDebug.humanize = require_ms(), createDebug.destroy = destroy, Object.keys(env).forEach((key) => {
104
+ createDebug[key] = env[key];
105
+ }), createDebug.names = [], createDebug.skips = [], createDebug.formatters = {};
106
+ function selectColor(namespace) {
107
+ let hash = 0;
108
+ for (let i = 0; i < namespace.length; i++)
109
+ hash = (hash << 5) - hash + namespace.charCodeAt(i), hash |= 0;
110
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
111
+ }
112
+ createDebug.selectColor = selectColor;
113
+ function createDebug(namespace) {
114
+ let prevTime, enableOverride = null, namespacesCache, enabledCache;
115
+ function debug(...args) {
116
+ if (!debug.enabled)
117
+ return;
118
+ let self = debug, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
119
+ self.diff = ms, self.prev = prevTime, self.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), typeof args[0] != "string" && args.unshift("%O");
120
+ let index = 0;
121
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
122
+ if (match === "%%")
123
+ return "%";
124
+ index++;
125
+ let formatter = createDebug.formatters[format];
126
+ if (typeof formatter == "function") {
127
+ let val = args[index];
128
+ match = formatter.call(self, val), args.splice(index, 1), index--;
129
+ }
130
+ return match;
131
+ }), createDebug.formatArgs.call(self, args), (self.log || createDebug.log).apply(self, args);
132
+ }
133
+ return debug.namespace = namespace, debug.useColors = createDebug.useColors(), debug.color = createDebug.selectColor(namespace), debug.extend = extend, debug.destroy = createDebug.destroy, Object.defineProperty(debug, "enabled", {
134
+ enumerable: !0,
135
+ configurable: !1,
136
+ get: () => enableOverride !== null ? enableOverride : (namespacesCache !== createDebug.namespaces && (namespacesCache = createDebug.namespaces, enabledCache = createDebug.enabled(namespace)), enabledCache),
137
+ set: (v) => {
138
+ enableOverride = v;
139
+ }
140
+ }), typeof createDebug.init == "function" && createDebug.init(debug), debug;
141
+ }
142
+ function extend(namespace, delimiter) {
143
+ let newDebug = createDebug(this.namespace + (typeof delimiter > "u" ? ":" : delimiter) + namespace);
144
+ return newDebug.log = this.log, newDebug;
145
+ }
146
+ function enable(namespaces) {
147
+ createDebug.save(namespaces), createDebug.namespaces = namespaces, createDebug.names = [], createDebug.skips = [];
148
+ let split = (typeof namespaces == "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
149
+ for (let ns of split)
150
+ ns[0] === "-" ? createDebug.skips.push(ns.slice(1)) : createDebug.names.push(ns);
151
+ }
152
+ function matchesTemplate(search, template) {
153
+ let searchIndex = 0, templateIndex = 0, starIndex = -1, matchIndex = 0;
154
+ for (; searchIndex < search.length; )
155
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*"))
156
+ template[templateIndex] === "*" ? (starIndex = templateIndex, matchIndex = searchIndex, templateIndex++) : (searchIndex++, templateIndex++);
157
+ else if (starIndex !== -1)
158
+ templateIndex = starIndex + 1, matchIndex++, searchIndex = matchIndex;
159
+ else
160
+ return !1;
161
+ for (; templateIndex < template.length && template[templateIndex] === "*"; )
162
+ templateIndex++;
163
+ return templateIndex === template.length;
164
+ }
165
+ function disable() {
166
+ let namespaces = [
167
+ ...createDebug.names,
168
+ ...createDebug.skips.map((namespace) => "-" + namespace)
169
+ ].join(",");
170
+ return createDebug.enable(""), namespaces;
171
+ }
172
+ function enabled(name) {
173
+ for (let skip of createDebug.skips)
174
+ if (matchesTemplate(name, skip))
175
+ return !1;
176
+ for (let ns of createDebug.names)
177
+ if (matchesTemplate(name, ns))
178
+ return !0;
179
+ return !1;
180
+ }
181
+ function coerce(val) {
182
+ return val instanceof Error ? val.stack || val.message : val;
183
+ }
184
+ function destroy() {
185
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
186
+ }
187
+ return createDebug.enable(createDebug.load()), createDebug;
188
+ }
189
+ module.exports = setup;
190
+ }
191
+ });
192
+
193
+ // node_modules/debug/src/browser.js
194
+ var require_browser = __commonJS({
195
+ "node_modules/debug/src/browser.js"(exports, module) {
196
+ "use strict";
197
+ exports.formatArgs = formatArgs;
198
+ exports.save = save;
199
+ exports.load = load;
200
+ exports.useColors = useColors;
201
+ exports.storage = localstorage();
202
+ exports.destroy = /* @__PURE__ */ (() => {
203
+ let warned = !1;
204
+ return () => {
205
+ warned || (warned = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
206
+ };
207
+ })();
208
+ exports.colors = [
209
+ "#0000CC",
210
+ "#0000FF",
211
+ "#0033CC",
212
+ "#0033FF",
213
+ "#0066CC",
214
+ "#0066FF",
215
+ "#0099CC",
216
+ "#0099FF",
217
+ "#00CC00",
218
+ "#00CC33",
219
+ "#00CC66",
220
+ "#00CC99",
221
+ "#00CCCC",
222
+ "#00CCFF",
223
+ "#3300CC",
224
+ "#3300FF",
225
+ "#3333CC",
226
+ "#3333FF",
227
+ "#3366CC",
228
+ "#3366FF",
229
+ "#3399CC",
230
+ "#3399FF",
231
+ "#33CC00",
232
+ "#33CC33",
233
+ "#33CC66",
234
+ "#33CC99",
235
+ "#33CCCC",
236
+ "#33CCFF",
237
+ "#6600CC",
238
+ "#6600FF",
239
+ "#6633CC",
240
+ "#6633FF",
241
+ "#66CC00",
242
+ "#66CC33",
243
+ "#9900CC",
244
+ "#9900FF",
245
+ "#9933CC",
246
+ "#9933FF",
247
+ "#99CC00",
248
+ "#99CC33",
249
+ "#CC0000",
250
+ "#CC0033",
251
+ "#CC0066",
252
+ "#CC0099",
253
+ "#CC00CC",
254
+ "#CC00FF",
255
+ "#CC3300",
256
+ "#CC3333",
257
+ "#CC3366",
258
+ "#CC3399",
259
+ "#CC33CC",
260
+ "#CC33FF",
261
+ "#CC6600",
262
+ "#CC6633",
263
+ "#CC9900",
264
+ "#CC9933",
265
+ "#CCCC00",
266
+ "#CCCC33",
267
+ "#FF0000",
268
+ "#FF0033",
269
+ "#FF0066",
270
+ "#FF0099",
271
+ "#FF00CC",
272
+ "#FF00FF",
273
+ "#FF3300",
274
+ "#FF3333",
275
+ "#FF3366",
276
+ "#FF3399",
277
+ "#FF33CC",
278
+ "#FF33FF",
279
+ "#FF6600",
280
+ "#FF6633",
281
+ "#FF9900",
282
+ "#FF9933",
283
+ "#FFCC00",
284
+ "#FFCC33"
285
+ ];
286
+ function useColors() {
287
+ if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
288
+ return !0;
289
+ if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
290
+ return !1;
291
+ let m;
292
+ return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
293
+ typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
294
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
295
+ typeof navigator < "u" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
296
+ typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
297
+ }
298
+ function formatArgs(args) {
299
+ if (args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff), !this.useColors)
300
+ return;
301
+ let c = "color: " + this.color;
302
+ args.splice(1, 0, c, "color: inherit");
303
+ let index = 0, lastC = 0;
304
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
305
+ match !== "%%" && (index++, match === "%c" && (lastC = index));
306
+ }), args.splice(lastC, 0, c);
307
+ }
308
+ exports.log = console.debug || console.log || (() => {
309
+ });
310
+ function save(namespaces) {
311
+ try {
312
+ namespaces ? exports.storage.setItem("debug", namespaces) : exports.storage.removeItem("debug");
313
+ } catch {
314
+ }
315
+ }
316
+ function load() {
317
+ let r;
318
+ try {
319
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
320
+ } catch {
321
+ }
322
+ return !r && typeof process < "u" && "env" in process && (r = process.env.DEBUG), r;
323
+ }
324
+ function localstorage() {
325
+ try {
326
+ return localStorage;
327
+ } catch {
328
+ }
329
+ }
330
+ module.exports = require_common()(exports);
331
+ var { formatters } = module.exports;
332
+ formatters.j = function(v) {
333
+ try {
334
+ return JSON.stringify(v);
335
+ } catch (error) {
336
+ return "[UnexpectedJSONParseError]: " + error.message;
337
+ }
338
+ };
339
+ }
340
+ });
341
+
342
+ // node_modules/debug/src/node.js
343
+ var require_node = __commonJS({
344
+ "node_modules/debug/src/node.js"(exports, module) {
345
+ "use strict";
346
+ var tty = __require("tty"), util = __require("util");
347
+ exports.init = init;
348
+ exports.log = log;
349
+ exports.formatArgs = formatArgs;
350
+ exports.save = save;
351
+ exports.load = load;
352
+ exports.useColors = useColors;
353
+ exports.destroy = util.deprecate(
354
+ () => {
355
+ },
356
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
357
+ );
358
+ exports.colors = [6, 2, 3, 4, 5, 1];
359
+ try {
360
+ let supportsColor = require_supports_color();
361
+ supportsColor && (supportsColor.stderr || supportsColor).level >= 2 && (exports.colors = [
362
+ 20,
363
+ 21,
364
+ 26,
365
+ 27,
366
+ 32,
367
+ 33,
368
+ 38,
369
+ 39,
370
+ 40,
371
+ 41,
372
+ 42,
373
+ 43,
374
+ 44,
375
+ 45,
376
+ 56,
377
+ 57,
378
+ 62,
379
+ 63,
380
+ 68,
381
+ 69,
382
+ 74,
383
+ 75,
384
+ 76,
385
+ 77,
386
+ 78,
387
+ 79,
388
+ 80,
389
+ 81,
390
+ 92,
391
+ 93,
392
+ 98,
393
+ 99,
394
+ 112,
395
+ 113,
396
+ 128,
397
+ 129,
398
+ 134,
399
+ 135,
400
+ 148,
401
+ 149,
402
+ 160,
403
+ 161,
404
+ 162,
405
+ 163,
406
+ 164,
407
+ 165,
408
+ 166,
409
+ 167,
410
+ 168,
411
+ 169,
412
+ 170,
413
+ 171,
414
+ 172,
415
+ 173,
416
+ 178,
417
+ 179,
418
+ 184,
419
+ 185,
420
+ 196,
421
+ 197,
422
+ 198,
423
+ 199,
424
+ 200,
425
+ 201,
426
+ 202,
427
+ 203,
428
+ 204,
429
+ 205,
430
+ 206,
431
+ 207,
432
+ 208,
433
+ 209,
434
+ 214,
435
+ 215,
436
+ 220,
437
+ 221
438
+ ]);
439
+ } catch {
440
+ }
441
+ exports.inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
442
+ let prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase()), val = process.env[key];
443
+ return /^(yes|on|true|enabled)$/i.test(val) ? val = !0 : /^(no|off|false|disabled)$/i.test(val) ? val = !1 : val === "null" ? val = null : val = Number(val), obj[prop] = val, obj;
444
+ }, {});
445
+ function useColors() {
446
+ return "colors" in exports.inspectOpts ? !!exports.inspectOpts.colors : tty.isatty(process.stderr.fd);
447
+ }
448
+ function formatArgs(args) {
449
+ let { namespace: name, useColors: useColors2 } = this;
450
+ if (useColors2) {
451
+ let c = this.color, colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c), prefix = ` ${colorCode};1m${name} \x1B[0m`;
452
+ args[0] = prefix + args[0].split(`
453
+ `).join(`
454
+ ` + prefix), args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
455
+ } else
456
+ args[0] = getDate() + name + " " + args[0];
457
+ }
458
+ function getDate() {
459
+ return exports.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
460
+ }
461
+ function log(...args) {
462
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
463
+ `);
464
+ }
465
+ function save(namespaces) {
466
+ namespaces ? process.env.DEBUG = namespaces : delete process.env.DEBUG;
467
+ }
468
+ function load() {
469
+ return process.env.DEBUG;
470
+ }
471
+ function init(debug) {
472
+ debug.inspectOpts = {};
473
+ let keys = Object.keys(exports.inspectOpts);
474
+ for (let i = 0; i < keys.length; i++)
475
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
476
+ }
477
+ module.exports = require_common()(exports);
478
+ var { formatters } = module.exports;
479
+ formatters.o = function(v) {
480
+ return this.inspectOpts.colors = this.useColors, util.inspect(v, this.inspectOpts).split(`
481
+ `).map((str) => str.trim()).join(" ");
482
+ };
483
+ formatters.O = function(v) {
484
+ return this.inspectOpts.colors = this.useColors, util.inspect(v, this.inspectOpts);
485
+ };
486
+ }
487
+ });
488
+
489
+ // node_modules/debug/src/index.js
490
+ var require_src = __commonJS({
491
+ "node_modules/debug/src/index.js"(exports, module) {
492
+ "use strict";
493
+ typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? module.exports = require_browser() : module.exports = require_node();
494
+ }
495
+ });
496
+
497
+ export {
498
+ require_src
499
+ };
@@ -0,0 +1,136 @@
1
+ import { createRequire as __adfCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __adfFileURLToPath } from 'node:url';
3
+ import { dirname as __adfDirname } from 'node:path';
4
+ const require = __adfCreateRequire(import.meta.url);
5
+ const __filename = __adfFileURLToPath(import.meta.url);
6
+ const __dirname = __adfDirname(__filename);
7
+ import {
8
+ getBit
9
+ } from "./chunk-XX7OSWTO.mjs";
10
+ import {
11
+ INT8,
12
+ StringType,
13
+ UINT16_BE,
14
+ UINT32_BE,
15
+ UINT8
16
+ } from "./chunk-I2HJYHFT.mjs";
17
+
18
+ // node_modules/music-metadata/lib/id3v2/ID3v2Token.js
19
+ var AttachedPictureType = {
20
+ 0: "Other",
21
+ 1: "32x32 pixels 'file icon' (PNG only)",
22
+ 2: "Other file icon",
23
+ 3: "Cover (front)",
24
+ 4: "Cover (back)",
25
+ 5: "Leaflet page",
26
+ 6: "Media (e.g. label side of CD)",
27
+ 7: "Lead artist/lead performer/soloist",
28
+ 8: "Artist/performer",
29
+ 9: "Conductor",
30
+ 10: "Band/Orchestra",
31
+ 11: "Composer",
32
+ 12: "Lyricist/text writer",
33
+ 13: "Recording Location",
34
+ 14: "During recording",
35
+ 15: "During performance",
36
+ 16: "Movie/video screen capture",
37
+ 17: "A bright coloured fish",
38
+ 18: "Illustration",
39
+ 19: "Band/artist logotype",
40
+ 20: "Publisher/Studio logotype"
41
+ }, LyricsContentType = {
42
+ other: 0,
43
+ lyrics: 1,
44
+ text: 2,
45
+ movement_part: 3,
46
+ events: 4,
47
+ chord: 5,
48
+ trivia_pop: 6
49
+ }, TimestampFormat = {
50
+ notSynchronized: 0,
51
+ mpegFrameNumber: 1,
52
+ milliseconds: 2
53
+ }, UINT32SYNCSAFE = {
54
+ get: (buf, off) => buf[off + 3] & 127 | buf[off + 2] << 7 | buf[off + 1] << 14 | buf[off] << 21,
55
+ len: 4
56
+ }, ID3v2Header = {
57
+ len: 10,
58
+ get: (buf, off) => ({
59
+ // ID3v2/file identifier "ID3"
60
+ fileIdentifier: new StringType(3, "ascii").get(buf, off),
61
+ // ID3v2 versionIndex
62
+ version: {
63
+ major: INT8.get(buf, off + 3),
64
+ revision: INT8.get(buf, off + 4)
65
+ },
66
+ // ID3v2 flags
67
+ flags: {
68
+ // Unsynchronisation
69
+ unsynchronisation: getBit(buf, off + 5, 7),
70
+ // Extended header
71
+ isExtendedHeader: getBit(buf, off + 5, 6),
72
+ // Experimental indicator
73
+ expIndicator: getBit(buf, off + 5, 5),
74
+ footer: getBit(buf, off + 5, 4)
75
+ },
76
+ size: UINT32SYNCSAFE.get(buf, off + 6)
77
+ })
78
+ }, ExtendedHeader = {
79
+ len: 10,
80
+ get: (buf, off) => ({
81
+ // Extended header size
82
+ size: UINT32_BE.get(buf, off),
83
+ // Extended Flags
84
+ extendedFlags: UINT16_BE.get(buf, off + 4),
85
+ // Size of padding
86
+ sizeOfPadding: UINT32_BE.get(buf, off + 6),
87
+ // CRC data present
88
+ crcDataPresent: getBit(buf, off + 4, 31)
89
+ })
90
+ }, TextEncodingToken = {
91
+ len: 1,
92
+ get: (uint8Array, off) => {
93
+ switch (uint8Array[off]) {
94
+ case 0:
95
+ return { encoding: "latin1" };
96
+ // binary
97
+ case 1:
98
+ return { encoding: "utf-16le", bom: !0 };
99
+ case 2:
100
+ return { encoding: "utf-16be", bom: !1 };
101
+ case 3:
102
+ return { encoding: "utf8", bom: !1 };
103
+ default:
104
+ return { encoding: "utf8", bom: !1 };
105
+ }
106
+ }
107
+ }, TextHeader = {
108
+ len: 4,
109
+ get: (uint8Array, off) => ({
110
+ encoding: TextEncodingToken.get(uint8Array, off),
111
+ language: new StringType(3, "latin1").get(uint8Array, off + 1)
112
+ })
113
+ }, SyncTextHeader = {
114
+ len: 6,
115
+ get: (uint8Array, off) => {
116
+ let text = TextHeader.get(uint8Array, off);
117
+ return {
118
+ encoding: text.encoding,
119
+ language: text.language,
120
+ timeStampFormat: UINT8.get(uint8Array, off + 4),
121
+ contentType: UINT8.get(uint8Array, off + 5)
122
+ };
123
+ }
124
+ };
125
+
126
+ export {
127
+ AttachedPictureType,
128
+ LyricsContentType,
129
+ TimestampFormat,
130
+ UINT32SYNCSAFE,
131
+ ID3v2Header,
132
+ ExtendedHeader,
133
+ TextEncodingToken,
134
+ TextHeader,
135
+ SyncTextHeader
136
+ };