@prozilla-os/terminal 1.1.17 → 1.1.18

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 (45) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +85 -85
  3. package/dist/chunks/{cat-F1pnUhWr.js → cat-DO8KEMio.js} +2 -2
  4. package/dist/chunks/{cat-F1pnUhWr.js.map → cat-DO8KEMio.js.map} +1 -1
  5. package/dist/chunks/{cd-SY_-kgyu.js → cd-DFGtb_Wk.js} +2 -2
  6. package/dist/chunks/{cd-SY_-kgyu.js.map → cd-DFGtb_Wk.js.map} +1 -1
  7. package/dist/chunks/{cmatrix-BI2_Y5OW.js → cmatrix-CVXcw_wK.js} +2 -2
  8. package/dist/chunks/{cmatrix-BI2_Y5OW.js.map → cmatrix-CVXcw_wK.js.map} +1 -1
  9. package/dist/chunks/{compgen-7prOo2oi.js → compgen-WxsGxWC9.js} +2 -2
  10. package/dist/chunks/{compgen-7prOo2oi.js.map → compgen-WxsGxWC9.js.map} +1 -1
  11. package/dist/chunks/{cowsay-B6TRoqbg.js → cowsay-DZHMvxAZ.js} +2 -2
  12. package/dist/chunks/{cowsay-B6TRoqbg.js.map → cowsay-DZHMvxAZ.js.map} +1 -1
  13. package/dist/chunks/eval-CnKC-mrj.js.map +1 -1
  14. package/dist/chunks/{help-BUCTSaeJ.js → help-DnMOR9rH.js} +2 -2
  15. package/dist/chunks/help-DnMOR9rH.js.map +1 -0
  16. package/dist/chunks/{lolcat-DiLqxxCO.js → lolcat-vYhIbqEJ.js} +2 -2
  17. package/dist/chunks/{lolcat-DiLqxxCO.js.map → lolcat-vYhIbqEJ.js.map} +1 -1
  18. package/dist/chunks/{ls-DScdmJPT.js → ls-23P3QzxI.js} +2 -2
  19. package/dist/chunks/{ls-DScdmJPT.js.map → ls-23P3QzxI.js.map} +1 -1
  20. package/dist/chunks/{main-CkpVfeUg.js → main-Dvaf0Ocd.js} +245 -245
  21. package/dist/chunks/main-Dvaf0Ocd.js.map +1 -0
  22. package/dist/chunks/{make-D_hXz4-L.js → make-CKvFYB_1.js} +2 -2
  23. package/dist/chunks/make-CKvFYB_1.js.map +1 -0
  24. package/dist/chunks/{man-C2UviS5N.js → man-BN3-oDjw.js} +2 -2
  25. package/dist/chunks/{man-C2UviS5N.js.map → man-BN3-oDjw.js.map} +1 -1
  26. package/dist/chunks/{neofetch-Bq355NBE.js → neofetch-UHKALL5e.js} +2 -2
  27. package/dist/chunks/{neofetch-Bq355NBE.js.map → neofetch-UHKALL5e.js.map} +1 -1
  28. package/dist/chunks/{reload-CnQb5yj-.js → reload-RsBNPWJI.js} +2 -2
  29. package/dist/chunks/reload-RsBNPWJI.js.map +1 -0
  30. package/dist/chunks/{rm-BwOe-Kq2.js → rm-B4-5j-xh.js} +2 -2
  31. package/dist/chunks/{rm-BwOe-Kq2.js.map → rm-B4-5j-xh.js.map} +1 -1
  32. package/dist/chunks/{rmdir-B9pGhEAU.js → rmdir-hAWOHScY.js} +2 -2
  33. package/dist/chunks/{rmdir-B9pGhEAU.js.map → rmdir-hAWOHScY.js.map} +1 -1
  34. package/dist/chunks/{sl-DaCRRvuh.js → sl-yhx6cve3.js} +2 -2
  35. package/dist/chunks/{sl-DaCRRvuh.js.map → sl-yhx6cve3.js.map} +1 -1
  36. package/dist/chunks/{touch-x95bWUyt.js → touch-DptR1Wm4.js} +2 -2
  37. package/dist/chunks/{touch-x95bWUyt.js.map → touch-DptR1Wm4.js.map} +1 -1
  38. package/dist/chunks/{whatis-DL62XQIi.js → whatis-CFFc4GDV.js} +2 -2
  39. package/dist/chunks/{whatis-DL62XQIi.js.map → whatis-CFFc4GDV.js.map} +1 -1
  40. package/dist/main.js +2 -2
  41. package/package.json +4 -4
  42. package/dist/chunks/help-BUCTSaeJ.js.map +0 -1
  43. package/dist/chunks/main-CkpVfeUg.js.map +0 -1
  44. package/dist/chunks/make-D_hXz4-L.js.map +0 -1
  45. package/dist/chunks/reload-CnQb5yj-.js.map +0 -1
@@ -1,64 +1,64 @@
1
1
  var Pe = Object.defineProperty;
2
- var Me = (e, s, n) => s in e ? Pe(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
3
- var W = (e, s, n) => Me(e, typeof s != "symbol" ? s + "" : s, n);
2
+ var Me = (e, n, s) => n in e ? Pe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[n] = s;
3
+ var W = (e, n, s) => Me(e, typeof n != "symbol" ? n + "" : n, s);
4
4
  import { useSystemManager as De, useVirtualRoot as Re, useSettingsManager as He, App as xe, AppsConfig as je } from "@prozilla-os/core";
5
5
  import { jsx as L, jsxs as Y } from "react/jsx-runtime";
6
6
  import * as q from "react";
7
7
  import { forwardRef as Fe, useState as S, useRef as pe, useEffect as z } from "react";
8
- import { ANSI as b, EventEmitter as Je, clamp as Ve, removeFromArray as de } from "@prozilla-os/shared";
9
- const We = "_Terminal_1l267_1", ze = "_Prefix_1l267_51", qe = "_Input_1l267_63", Ge = "_Output_1l267_63", Be = "_blink_1l267_1", N = {
8
+ import { ANSI as _, EventEmitter as Je, clamp as Ve, removeFromArray as de } from "@prozilla-os/shared";
9
+ const We = "_Terminal_1n5va_1", ze = "_Prefix_1n5va_26", qe = "_Input_1n5va_32", Ge = "_Output_1n5va_32", Be = "_blink_1n5va_1", N = {
10
10
  Terminal: We,
11
11
  Prefix: ze,
12
12
  Input: qe,
13
13
  Output: Ge,
14
- "Input-container": "_Input-container_1l267_93",
14
+ "Input-container": "_Input-container_1n5va_47",
15
15
  blink: Be,
16
- "ansi-black-fg": "_ansi-black-fg_1l267_197",
17
- "ansi-red-fg": "_ansi-red-fg_1l267_199",
18
- "ansi-green-fg": "_ansi-green-fg_1l267_201",
19
- "ansi-yellow-fg": "_ansi-yellow-fg_1l267_203",
20
- "ansi-blue-fg": "_ansi-blue-fg_1l267_205",
21
- "ansi-magenta-fg": "_ansi-magenta-fg_1l267_207",
22
- "ansi-cyan-fg": "_ansi-cyan-fg_1l267_209",
23
- "ansi-white-fg": "_ansi-white-fg_1l267_211",
24
- "ansi-bright-black-fg": "_ansi-bright-black-fg_1l267_215",
25
- "ansi-bright-red-fg": "_ansi-bright-red-fg_1l267_217",
26
- "ansi-bright-green-fg": "_ansi-bright-green-fg_1l267_219",
27
- "ansi-bright-yellow-fg": "_ansi-bright-yellow-fg_1l267_221",
28
- "ansi-bright-blue-fg": "_ansi-bright-blue-fg_1l267_223",
29
- "ansi-bright-magenta-fg": "_ansi-bright-magenta-fg_1l267_225",
30
- "ansi-bright-cyan-fg": "_ansi-bright-cyan-fg_1l267_227",
31
- "ansi-bright-white-fg": "_ansi-bright-white-fg_1l267_229",
32
- "ansi-black-bg": "_ansi-black-bg_1l267_233",
33
- "ansi-red-bg": "_ansi-red-bg_1l267_235",
34
- "ansi-green-bg": "_ansi-green-bg_1l267_237",
35
- "ansi-yellow-bg": "_ansi-yellow-bg_1l267_239",
36
- "ansi-blue-bg": "_ansi-blue-bg_1l267_241",
37
- "ansi-magenta-bg": "_ansi-magenta-bg_1l267_243",
38
- "ansi-cyan-bg": "_ansi-cyan-bg_1l267_245",
39
- "ansi-white-bg": "_ansi-white-bg_1l267_247",
40
- "ansi-dim": "_ansi-dim_1l267_251"
16
+ "ansi-black-fg": "_ansi-black-fg_1n5va_99",
17
+ "ansi-red-fg": "_ansi-red-fg_1n5va_100",
18
+ "ansi-green-fg": "_ansi-green-fg_1n5va_101",
19
+ "ansi-yellow-fg": "_ansi-yellow-fg_1n5va_102",
20
+ "ansi-blue-fg": "_ansi-blue-fg_1n5va_103",
21
+ "ansi-magenta-fg": "_ansi-magenta-fg_1n5va_104",
22
+ "ansi-cyan-fg": "_ansi-cyan-fg_1n5va_105",
23
+ "ansi-white-fg": "_ansi-white-fg_1n5va_106",
24
+ "ansi-bright-black-fg": "_ansi-bright-black-fg_1n5va_108",
25
+ "ansi-bright-red-fg": "_ansi-bright-red-fg_1n5va_109",
26
+ "ansi-bright-green-fg": "_ansi-bright-green-fg_1n5va_110",
27
+ "ansi-bright-yellow-fg": "_ansi-bright-yellow-fg_1n5va_111",
28
+ "ansi-bright-blue-fg": "_ansi-bright-blue-fg_1n5va_112",
29
+ "ansi-bright-magenta-fg": "_ansi-bright-magenta-fg_1n5va_113",
30
+ "ansi-bright-cyan-fg": "_ansi-bright-cyan-fg_1n5va_114",
31
+ "ansi-bright-white-fg": "_ansi-bright-white-fg_1n5va_115",
32
+ "ansi-black-bg": "_ansi-black-bg_1n5va_117",
33
+ "ansi-red-bg": "_ansi-red-bg_1n5va_118",
34
+ "ansi-green-bg": "_ansi-green-bg_1n5va_119",
35
+ "ansi-yellow-bg": "_ansi-yellow-bg_1n5va_120",
36
+ "ansi-blue-bg": "_ansi-blue-bg_1n5va_121",
37
+ "ansi-magenta-bg": "_ansi-magenta-bg_1n5va_122",
38
+ "ansi-cyan-bg": "_ansi-cyan-bg_1n5va_123",
39
+ "ansi-white-bg": "_ansi-white-bg_1n5va_124",
40
+ "ansi-dim": "_ansi-dim_1n5va_126"
41
41
  };
42
42
  function Ke(e) {
43
43
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
44
44
  }
45
- var _e = /* @__PURE__ */ function() {
46
- function e(s, n) {
47
- for (var t = 0; t < n.length; t++) {
48
- var f = n[t];
49
- f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(s, f.key, f);
45
+ var ve = /* @__PURE__ */ function() {
46
+ function e(n, s) {
47
+ for (var t = 0; t < s.length; t++) {
48
+ var f = s[t];
49
+ f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(n, f.key, f);
50
50
  }
51
51
  }
52
- return function(s, n, t) {
53
- return n && e(s.prototype, n), t && e(s, t), s;
52
+ return function(n, s, t) {
53
+ return s && e(n.prototype, s), t && e(n, t), n;
54
54
  };
55
55
  }();
56
- function Ue(e, s) {
57
- if (!(e instanceof s))
56
+ function Ue(e, n) {
57
+ if (!(e instanceof n))
58
58
  throw new TypeError("Cannot call a class as a function");
59
59
  }
60
60
  var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class: "ansi-red" }, { color: "0, 187, 0", class: "ansi-green" }, { color: "187, 187, 0", class: "ansi-yellow" }, { color: "0, 0, 187", class: "ansi-blue" }, { color: "187, 0, 187", class: "ansi-magenta" }, { color: "0, 187, 187", class: "ansi-cyan" }, { color: "255,255,255", class: "ansi-white" }], [{ color: "85, 85, 85", class: "ansi-bright-black" }, { color: "255, 85, 85", class: "ansi-bright-red" }, { color: "0, 255, 0", class: "ansi-bright-green" }, { color: "255, 255, 85", class: "ansi-bright-yellow" }, { color: "85, 85, 255", class: "ansi-bright-blue" }, { color: "255, 85, 255", class: "ansi-bright-magenta" }, { color: "85, 255, 255", class: "ansi-bright-cyan" }, { color: "255, 255, 255", class: "ansi-bright-white" }]], Xe = /(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm, Ze = function() {
61
- _e(e, null, [{
61
+ ve(e, null, [{
62
62
  key: "escapeForHtml",
63
63
  /**
64
64
  * Anser.escapeForHtml
@@ -73,8 +73,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
73
73
  * @param {String} txt The input text (containing the ANSI snippets).
74
74
  * @returns {String} The escaped html.
75
75
  */
76
- value: function(n) {
77
- return new e().escapeForHtml(n);
76
+ value: function(s) {
77
+ return new e().escapeForHtml(s);
78
78
  }
79
79
  /**
80
80
  * Anser.linkify
@@ -90,8 +90,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
90
90
  */
91
91
  }, {
92
92
  key: "linkify",
93
- value: function(n) {
94
- return new e().linkify(n);
93
+ value: function(s) {
94
+ return new e().linkify(s);
95
95
  }
96
96
  /**
97
97
  * Anser.ansiToHtml
@@ -119,8 +119,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
119
119
  */
120
120
  }, {
121
121
  key: "ansiToHtml",
122
- value: function(n, t) {
123
- return new e().ansiToHtml(n, t);
122
+ value: function(s, t) {
123
+ return new e().ansiToHtml(s, t);
124
124
  }
125
125
  /**
126
126
  * Anser.ansiToJson
@@ -134,8 +134,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
134
134
  */
135
135
  }, {
136
136
  key: "ansiToJson",
137
- value: function(n, t) {
138
- return new e().ansiToJson(n, t);
137
+ value: function(s, t) {
138
+ return new e().ansiToJson(s, t);
139
139
  }
140
140
  /**
141
141
  * Anser.ansiToText
@@ -148,8 +148,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
148
148
  */
149
149
  }, {
150
150
  key: "ansiToText",
151
- value: function(n) {
152
- return new e().ansiToText(n);
151
+ value: function(s) {
152
+ return new e().ansiToText(s);
153
153
  }
154
154
  /**
155
155
  * Anser
@@ -163,19 +163,19 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
163
163
  function e() {
164
164
  Ue(this, e), this.fg = this.bg = this.fg_truecolor = this.bg_truecolor = null, this.bright = 0, this.decorations = [];
165
165
  }
166
- return _e(e, [{
166
+ return ve(e, [{
167
167
  key: "setupPalette",
168
168
  value: function() {
169
169
  this.PALETTE_COLORS = [];
170
- for (var n = 0; n < 2; ++n)
170
+ for (var s = 0; s < 2; ++s)
171
171
  for (var t = 0; t < 8; ++t)
172
- this.PALETTE_COLORS.push(A[n][t].color);
173
- for (var f = [0, 95, 135, 175, 215, 255], y = function(a, v, k) {
174
- return f[a] + ", " + f[v] + ", " + f[k];
175
- }, i = 0; i < 6; ++i)
172
+ this.PALETTE_COLORS.push(A[s][t].color);
173
+ for (var f = [0, 95, 135, 175, 215, 255], y = function(i, b, k) {
174
+ return f[i] + ", " + f[b] + ", " + f[k];
175
+ }, a = 0; a < 6; ++a)
176
176
  for (var u = 0; u < 6; ++u)
177
177
  for (var c = 0; c < 6; ++c)
178
- this.PALETTE_COLORS.push(y(i, u, c));
178
+ this.PALETTE_COLORS.push(y(a, u, c));
179
179
  for (var o = 8, r = 0; r < 24; ++r, o += 10)
180
180
  this.PALETTE_COLORS.push(y(o, o, o));
181
181
  }
@@ -190,8 +190,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
190
190
  */
191
191
  }, {
192
192
  key: "escapeForHtml",
193
- value: function(n) {
194
- return n.replace(/[&<>\"]/gm, function(t) {
193
+ value: function(s) {
194
+ return s.replace(/[&<>\"]/gm, function(t) {
195
195
  return t == "&" ? "&amp;" : t == '"' ? "&quot;" : t == "<" ? "&lt;" : t == ">" ? "&gt;" : "";
196
196
  });
197
197
  }
@@ -206,8 +206,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
206
206
  */
207
207
  }, {
208
208
  key: "linkify",
209
- value: function(n) {
210
- return n.replace(Xe, function(t) {
209
+ value: function(s) {
210
+ return s.replace(Xe, function(t) {
211
211
  return '<a href="' + t + '">' + t + "</a>";
212
212
  });
213
213
  }
@@ -223,8 +223,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
223
223
  */
224
224
  }, {
225
225
  key: "ansiToHtml",
226
- value: function(n, t) {
227
- return this.process(n, t, !0);
226
+ value: function(s, t) {
227
+ return this.process(s, t, !0);
228
228
  }
229
229
  /**
230
230
  * ansiToJson
@@ -238,8 +238,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
238
238
  */
239
239
  }, {
240
240
  key: "ansiToJson",
241
- value: function(n, t) {
242
- return t = t || {}, t.json = !0, t.clearLine = !1, this.process(n, t, !0);
241
+ value: function(s, t) {
242
+ return t = t || {}, t.json = !0, t.clearLine = !1, this.process(s, t, !0);
243
243
  }
244
244
  /**
245
245
  * ansiToText
@@ -252,8 +252,8 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
252
252
  */
253
253
  }, {
254
254
  key: "ansiToText",
255
- value: function(n) {
256
- return this.process(n, {}, !1);
255
+ value: function(s) {
256
+ return this.process(s, {}, !1);
257
257
  }
258
258
  /**
259
259
  * process
@@ -271,16 +271,16 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
271
271
  */
272
272
  }, {
273
273
  key: "process",
274
- value: function(n, t, f) {
275
- var y = this, i = this, u = n.split(/\033\[/), c = u.shift();
276
- t == null && (t = {}), t.clearLine = /\r/.test(n);
277
- var o = u.map(function(_) {
278
- return y.processChunk(_, t, f);
274
+ value: function(s, t, f) {
275
+ var y = this, a = this, u = s.split(/\033\[/), c = u.shift();
276
+ t == null && (t = {}), t.clearLine = /\r/.test(s);
277
+ var o = u.map(function(v) {
278
+ return y.processChunk(v, t, f);
279
279
  });
280
280
  if (t && t.json) {
281
- var r = i.processChunkJson("");
282
- return r.content = c, r.clearLine = t.clearLine, o.unshift(r), t.remove_empty && (o = o.filter(function(_) {
283
- return !_.isEmpty();
281
+ var r = a.processChunkJson("");
282
+ return r.content = c, r.clearLine = t.clearLine, o.unshift(r), t.remove_empty && (o = o.filter(function(v) {
283
+ return !v.isEmpty();
284
284
  })), o;
285
285
  } else
286
286
  o.unshift(c);
@@ -313,10 +313,10 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
313
313
  */
314
314
  }, {
315
315
  key: "processChunkJson",
316
- value: function(n, t, f) {
316
+ value: function(s, t, f) {
317
317
  t = typeof t > "u" ? {} : t;
318
- var y = t.use_classes = typeof t.use_classes < "u" && t.use_classes, i = t.key = y ? "class" : "color", u = {
319
- content: n,
318
+ var y = t.use_classes = typeof t.use_classes < "u" && t.use_classes, a = t.key = y ? "class" : "color", u = {
319
+ content: s,
320
320
  fg: null,
321
321
  bg: null,
322
322
  fg_truecolor: null,
@@ -329,78 +329,78 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
329
329
  isEmpty: function() {
330
330
  return !u.content;
331
331
  }
332
- }, c = n.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);
332
+ }, c = s.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);
333
333
  if (!c) return u;
334
334
  u.content = c[4];
335
335
  var o = c[2].split(";");
336
336
  if (c[1] !== "" || c[3] !== "m" || !f)
337
337
  return u;
338
338
  for (var r = this; o.length > 0; ) {
339
- var _ = o.shift(), a = parseInt(_);
340
- if (isNaN(a) || a === 0)
339
+ var v = o.shift(), i = parseInt(v);
340
+ if (isNaN(i) || i === 0)
341
341
  r.fg = r.bg = null, r.decorations = [];
342
- else if (a === 1)
342
+ else if (i === 1)
343
343
  r.decorations.push("bold");
344
- else if (a === 2)
344
+ else if (i === 2)
345
345
  r.decorations.push("dim");
346
- else if (a === 3)
346
+ else if (i === 3)
347
347
  r.decorations.push("italic");
348
- else if (a === 4)
348
+ else if (i === 4)
349
349
  r.decorations.push("underline");
350
- else if (a === 5)
350
+ else if (i === 5)
351
351
  r.decorations.push("blink");
352
- else if (a === 7)
352
+ else if (i === 7)
353
353
  r.decorations.push("reverse");
354
- else if (a === 8)
354
+ else if (i === 8)
355
355
  r.decorations.push("hidden");
356
- else if (a === 9)
356
+ else if (i === 9)
357
357
  r.decorations.push("strikethrough");
358
- else if (a === 21)
358
+ else if (i === 21)
359
359
  r.removeDecoration("bold");
360
- else if (a === 22)
360
+ else if (i === 22)
361
361
  r.removeDecoration("bold"), r.removeDecoration("dim");
362
- else if (a === 23)
362
+ else if (i === 23)
363
363
  r.removeDecoration("italic");
364
- else if (a === 24)
364
+ else if (i === 24)
365
365
  r.removeDecoration("underline");
366
- else if (a === 25)
366
+ else if (i === 25)
367
367
  r.removeDecoration("blink");
368
- else if (a === 27)
368
+ else if (i === 27)
369
369
  r.removeDecoration("reverse");
370
- else if (a === 28)
370
+ else if (i === 28)
371
371
  r.removeDecoration("hidden");
372
- else if (a === 29)
372
+ else if (i === 29)
373
373
  r.removeDecoration("strikethrough");
374
- else if (a === 39)
374
+ else if (i === 39)
375
375
  r.fg = null;
376
- else if (a === 49)
376
+ else if (i === 49)
377
377
  r.bg = null;
378
- else if (a >= 30 && a < 38)
379
- r.fg = A[0][a % 10][i];
380
- else if (a >= 90 && a < 98)
381
- r.fg = A[1][a % 10][i];
382
- else if (a >= 40 && a < 48)
383
- r.bg = A[0][a % 10][i];
384
- else if (a >= 100 && a < 108)
385
- r.bg = A[1][a % 10][i];
386
- else if (a === 38 || a === 48) {
387
- var v = a === 38;
378
+ else if (i >= 30 && i < 38)
379
+ r.fg = A[0][i % 10][a];
380
+ else if (i >= 90 && i < 98)
381
+ r.fg = A[1][i % 10][a];
382
+ else if (i >= 40 && i < 48)
383
+ r.bg = A[0][i % 10][a];
384
+ else if (i >= 100 && i < 108)
385
+ r.bg = A[1][i % 10][a];
386
+ else if (i === 38 || i === 48) {
387
+ var b = i === 38;
388
388
  if (o.length >= 1) {
389
389
  var k = o.shift();
390
390
  if (k === "5" && o.length >= 1) {
391
391
  var h = parseInt(o.shift());
392
392
  if (h >= 0 && h <= 255)
393
393
  if (!y)
394
- this.PALETTE_COLORS || r.setupPalette(), v ? r.fg = this.PALETTE_COLORS[h] : r.bg = this.PALETTE_COLORS[h];
394
+ this.PALETTE_COLORS || r.setupPalette(), b ? r.fg = this.PALETTE_COLORS[h] : r.bg = this.PALETTE_COLORS[h];
395
395
  else {
396
396
  var $ = h >= 16 ? "ansi-palette-" + h : A[h > 7 ? 1 : 0][h % 8].class;
397
- v ? r.fg = $ : r.bg = $;
397
+ b ? r.fg = $ : r.bg = $;
398
398
  }
399
399
  } else if (k === "2" && o.length >= 3) {
400
400
  var O = parseInt(o.shift()), M = parseInt(o.shift()), D = parseInt(o.shift());
401
401
  if (O >= 0 && O <= 255 && M >= 0 && M <= 255 && D >= 0 && D <= 255) {
402
402
  var T = O + ", " + M + ", " + D;
403
- y ? v ? (r.fg = "ansi-truecolor", r.fg_truecolor = T) : (r.bg = "ansi-truecolor", r.bg_truecolor = T) : v ? r.fg = T : r.bg = T;
403
+ y ? b ? (r.fg = "ansi-truecolor", r.fg_truecolor = T) : (r.bg = "ansi-truecolor", r.bg_truecolor = T) : b ? r.fg = T : r.bg = T;
404
404
  }
405
405
  }
406
406
  }
@@ -425,188 +425,188 @@ var A = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", class
425
425
  */
426
426
  }, {
427
427
  key: "processChunk",
428
- value: function(n, t, f) {
428
+ value: function(s, t, f) {
429
429
  var y = this;
430
430
  t = t || {};
431
- var i = this.processChunkJson(n, t, f), u = t.use_classes;
432
- if (i.decorations = i.decorations.filter(function(v) {
433
- if (v === "reverse") {
434
- i.fg || (i.fg = A[0][7][u ? "class" : "color"]), i.bg || (i.bg = A[0][0][u ? "class" : "color"]);
435
- var k = i.fg;
436
- i.fg = i.bg, i.bg = k;
437
- var h = i.fg_truecolor;
438
- return i.fg_truecolor = i.bg_truecolor, i.bg_truecolor = h, i.isInverted = !0, !1;
431
+ var a = this.processChunkJson(s, t, f), u = t.use_classes;
432
+ if (a.decorations = a.decorations.filter(function(b) {
433
+ if (b === "reverse") {
434
+ a.fg || (a.fg = A[0][7][u ? "class" : "color"]), a.bg || (a.bg = A[0][0][u ? "class" : "color"]);
435
+ var k = a.fg;
436
+ a.fg = a.bg, a.bg = k;
437
+ var h = a.fg_truecolor;
438
+ return a.fg_truecolor = a.bg_truecolor, a.bg_truecolor = h, a.isInverted = !0, !1;
439
439
  }
440
440
  return !0;
441
441
  }), t.json)
442
- return i;
443
- if (i.isEmpty())
442
+ return a;
443
+ if (a.isEmpty())
444
444
  return "";
445
- if (!i.was_processed)
446
- return i.content;
447
- var c = [], o = [], r = [], _ = {}, a = function(k) {
445
+ if (!a.was_processed)
446
+ return a.content;
447
+ var c = [], o = [], r = [], v = {}, i = function(k) {
448
448
  var h = [], $ = void 0;
449
449
  for ($ in k)
450
450
  k.hasOwnProperty($) && h.push("data-" + $ + '="' + y.escapeForHtml(k[$]) + '"');
451
451
  return h.length > 0 ? " " + h.join(" ") : "";
452
452
  };
453
- return i.isInverted && (_["ansi-is-inverted"] = "true"), i.fg && (u ? (c.push(i.fg + "-fg"), i.fg_truecolor !== null && (_["ansi-truecolor-fg"] = i.fg_truecolor, i.fg_truecolor = null)) : c.push("color:rgb(" + i.fg + ")")), i.bg && (u ? (c.push(i.bg + "-bg"), i.bg_truecolor !== null && (_["ansi-truecolor-bg"] = i.bg_truecolor, i.bg_truecolor = null)) : c.push("background-color:rgb(" + i.bg + ")")), i.decorations.forEach(function(v) {
453
+ return a.isInverted && (v["ansi-is-inverted"] = "true"), a.fg && (u ? (c.push(a.fg + "-fg"), a.fg_truecolor !== null && (v["ansi-truecolor-fg"] = a.fg_truecolor, a.fg_truecolor = null)) : c.push("color:rgb(" + a.fg + ")")), a.bg && (u ? (c.push(a.bg + "-bg"), a.bg_truecolor !== null && (v["ansi-truecolor-bg"] = a.bg_truecolor, a.bg_truecolor = null)) : c.push("background-color:rgb(" + a.bg + ")")), a.decorations.forEach(function(b) {
454
454
  if (u) {
455
- o.push("ansi-" + v);
455
+ o.push("ansi-" + b);
456
456
  return;
457
457
  }
458
- v === "bold" ? o.push("font-weight:bold") : v === "dim" ? o.push("opacity:0.5") : v === "italic" ? o.push("font-style:italic") : v === "hidden" ? o.push("visibility:hidden") : v === "strikethrough" ? r.push("line-through") : r.push(v);
459
- }), r.length && o.push("text-decoration:" + r.join(" ")), u ? '<span class="' + c.concat(o).join(" ") + '"' + a(_) + ">" + i.content + "</span>" : '<span style="' + c.concat(o).join(";") + '"' + a(_) + ">" + i.content + "</span>";
458
+ b === "bold" ? o.push("font-weight:bold") : b === "dim" ? o.push("opacity:0.5") : b === "italic" ? o.push("font-style:italic") : b === "hidden" ? o.push("visibility:hidden") : b === "strikethrough" ? r.push("line-through") : r.push(b);
459
+ }), r.length && o.push("text-decoration:" + r.join(" ")), u ? '<span class="' + c.concat(o).join(" ") + '"' + i(v) + ">" + a.content + "</span>" : '<span style="' + c.concat(o).join(";") + '"' + i(v) + ">" + a.content + "</span>";
460
460
  }
461
461
  }, {
462
462
  key: "removeDecoration",
463
- value: function(n) {
464
- var t = this.decorations.indexOf(n);
463
+ value: function(s) {
464
+ var t = this.decorations.indexOf(s);
465
465
  t >= 0 && this.decorations.splice(t, 1);
466
466
  }
467
467
  }]), e;
468
468
  }(), Qe = Ze;
469
469
  const Ye = /* @__PURE__ */ Ke(Qe);
470
470
  var te = { exports: {} };
471
- function se(e) {
471
+ function ne(e) {
472
472
  if (!e) return "";
473
473
  if (!/\r/.test(e)) return e;
474
474
  for (e = e.replace(/\r+\n/gm, `
475
475
  `); /\r./.test(e); )
476
- e = e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm, function(s, n, t) {
477
- return t + n.slice(t.length);
476
+ e = e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm, function(n, s, t) {
477
+ return t + s.slice(t.length);
478
478
  });
479
479
  return e;
480
480
  }
481
481
  function et(e) {
482
- for (var s = 0, n = 0; n < e.length; n++)
483
- e[s].length <= e[n].length && (s = n);
484
- return s;
482
+ for (var n = 0, s = 0; s < e.length; s++)
483
+ e[n].length <= e[s].length && (n = s);
484
+ return n;
485
485
  }
486
- function be(e) {
486
+ function _e(e) {
487
487
  if (!/\r/.test(e)) return e;
488
- for (var s = e.split("\r"), n = []; s.length > 0; ) {
489
- var t = et(s);
490
- n.push(s[t]), s = s.slice(t + 1);
488
+ for (var n = e.split("\r"), s = []; n.length > 0; ) {
489
+ var t = et(n);
490
+ s.push(n[t]), n = n.slice(t + 1);
491
491
  }
492
- return n.join("\r");
492
+ return s.join("\r");
493
493
  }
494
494
  function tt(e) {
495
495
  if (!e) return "";
496
496
  if (!/\r/.test(e)) return e;
497
- if (!/\n/.test(e)) return be(e);
497
+ if (!/\n/.test(e)) return _e(e);
498
498
  e = e.replace(/\r+\n/gm, `
499
499
  `);
500
- var s = e.lastIndexOf(`
500
+ var n = e.lastIndexOf(`
501
501
  `);
502
- return se(e.slice(0, s)) + `
503
- ` + be(e.slice(s + 1));
502
+ return ne(e.slice(0, n)) + `
503
+ ` + _e(e.slice(n + 1));
504
504
  }
505
- te.exports = se;
506
- var st = te.exports.escapeCarriageReturn = se;
505
+ te.exports = ne;
506
+ var nt = te.exports.escapeCarriageReturn = ne;
507
507
  te.exports.escapeCarriageReturnSafe = tt;
508
- function nt(e, s) {
509
- return e = st(ot(e)), Ye.ansiToJson(e, {
508
+ function st(e, n) {
509
+ return e = nt(ot(e)), Ye.ansiToJson(e, {
510
510
  json: !0,
511
511
  // eslint-disable-next-line @typescript-eslint/naming-convention
512
512
  remove_empty: !0,
513
513
  // eslint-disable-next-line @typescript-eslint/naming-convention
514
- use_classes: s
514
+ use_classes: n
515
515
  });
516
516
  }
517
517
  function rt(e) {
518
- const s = [];
519
- return e.bg && s.push(N[`${e.bg}-bg`]), e.fg && s.push(N[`${e.fg}-fg`]), e.decoration && s.push(N[`ansi-${e.decoration}`]), s.length === 0 ? null : s.join(" ");
518
+ const n = [];
519
+ return e.bg && n.push(N[`${e.bg}-bg`]), e.fg && n.push(N[`${e.fg}-fg`]), e.decoration && n.push(N[`ansi-${e.decoration}`]), n.length === 0 ? null : n.join(" ");
520
520
  }
521
- function it(e) {
522
- const s = {};
523
- switch (e.bg && (s.backgroundColor = `rgb(${e.bg})`), e.fg && (s.color = `rgb(${e.fg})`), e.decoration) {
521
+ function at(e) {
522
+ const n = {};
523
+ switch (e.bg && (n.backgroundColor = `rgb(${e.bg})`), e.fg && (n.color = `rgb(${e.fg})`), e.decoration) {
524
524
  case "bold":
525
- s.fontWeight = "bold";
525
+ n.fontWeight = "bold";
526
526
  break;
527
527
  case "dim":
528
- s.opacity = "0.5";
528
+ n.opacity = "0.5";
529
529
  break;
530
530
  case "italic":
531
- s.fontStyle = "italic";
531
+ n.fontStyle = "italic";
532
532
  break;
533
533
  case "hidden":
534
- s.visibility = "hidden";
534
+ n.visibility = "hidden";
535
535
  break;
536
536
  case "strikethrough":
537
- s.textDecoration = "line-through";
537
+ n.textDecoration = "line-through";
538
538
  break;
539
539
  case "underline":
540
- s.textDecoration = "underline";
540
+ n.textDecoration = "underline";
541
541
  break;
542
542
  case "blink":
543
- s.textDecoration = "blink";
543
+ n.textDecoration = "blink";
544
544
  break;
545
545
  }
546
- return s;
546
+ return n;
547
547
  }
548
- function at(e, s, n, t) {
549
- const f = s ? null : it(n), y = s ? rt(n) : null;
548
+ function it(e, n, s, t) {
549
+ const f = n ? null : at(s), y = n ? rt(s) : null;
550
550
  if (!e)
551
551
  return q.createElement(
552
552
  "pre",
553
553
  { style: f, key: t, className: y },
554
- n.content
554
+ s.content
555
555
  );
556
- const i = [], u = /(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;
556
+ const a = [], u = /(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;
557
557
  let c = 0, o;
558
- for (; (o = u.exec(n.content)) !== null; ) {
559
- const [, r, _] = o, a = o.index + r.length;
560
- a > c && i.push(n.content.substring(c, a));
561
- const v = _.startsWith("www.") ? `http://${_}` : _;
562
- i.push(
558
+ for (; (o = u.exec(s.content)) !== null; ) {
559
+ const [, r, v] = o, i = o.index + r.length;
560
+ i > c && a.push(s.content.substring(c, i));
561
+ const b = v.startsWith("www.") ? `http://${v}` : v;
562
+ a.push(
563
563
  q.createElement(
564
564
  "a",
565
565
  {
566
566
  key: c,
567
- href: v,
567
+ href: b,
568
568
  target: "_blank"
569
569
  },
570
- `${_}`
570
+ `${v}`
571
571
  )
572
572
  ), c = u.lastIndex;
573
573
  }
574
- return c < n.content.length && i.push(n.content.substring(c)), q.createElement("span", { style: f, key: t, className: y }, i);
574
+ return c < s.content.length && a.push(s.content.substring(c)), q.createElement("span", { style: f, key: t, className: y }, a);
575
575
  }
576
576
  function ke(e) {
577
- const { className: s, useClasses: n, children: t, linkify: f } = e;
577
+ const { className: n, useClasses: s, children: t, linkify: f } = e;
578
578
  return q.createElement(
579
579
  "code",
580
- { className: s },
581
- nt(t ?? "", n ?? !1).map(
580
+ { className: n },
581
+ st(t ?? "", s ?? !1).map(
582
582
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
583
- at.bind(null, f ?? !1, n ?? !1)
583
+ it.bind(null, f ?? !1, s ?? !1)
584
584
  )
585
585
  );
586
586
  }
587
587
  function ot(e) {
588
- let s = e;
588
+ let n = e;
589
589
  do
590
- e = s, s = e.replace(/[^\n]\x08/gm, "");
591
- while (s.length < e.length);
590
+ e = n, n = e.replace(/[^\n]\x08/gm, "");
591
+ while (n.length < e.length);
592
592
  return e;
593
593
  }
594
- const ve = Fe(({ text: e }, s) => {
595
- const n = e == null ? void 0 : e.split(`
594
+ const be = Fe(({ text: e }, n) => {
595
+ const s = e == null ? void 0 : e.split(`
596
596
  `);
597
- return /* @__PURE__ */ L("div", { ref: s, children: n == null ? void 0 : n.map(
597
+ return /* @__PURE__ */ L("div", { ref: n, children: s == null ? void 0 : s.map(
598
598
  (t, f) => /* @__PURE__ */ L(ke, { className: N.Output, useClasses: !0, children: t === "" ? " " : t }, f)
599
599
  ) });
600
600
  });
601
- function lt({ value: e, prefix: s, onChange: n, onKeyUp: t, onKeyDown: f, inputRef: y }) {
602
- const [i, u] = S(0), c = () => {
601
+ function lt({ value: e, prefix: n, onChange: s, onKeyUp: t, onKeyDown: f, inputRef: y }) {
602
+ const [a, u] = S(0), c = () => {
603
603
  var r;
604
604
  const o = (r = y.current) == null ? void 0 : r.selectionStart;
605
605
  o != null && u(o);
606
606
  };
607
607
  return /* @__PURE__ */ Y("span", { className: N.Input, children: [
608
- s && /* @__PURE__ */ L(ke, { className: N.Prefix, useClasses: !0, children: s }),
609
- /* @__PURE__ */ Y("span", { className: N["Input-container"], style: { "--cursor-offset": i }, children: [
608
+ n && /* @__PURE__ */ L(ke, { className: N.Prefix, useClasses: !0, children: n }),
609
+ /* @__PURE__ */ Y("span", { className: N["Input-container"], style: { "--cursor-offset": a }, children: [
610
610
  /* @__PURE__ */ L("span", { "aria-hidden": "true", children: e }),
611
611
  /* @__PURE__ */ L(
612
612
  "input",
@@ -615,7 +615,7 @@ function lt({ value: e, prefix: s, onChange: n, onKeyUp: t, onKeyDown: f, inputR
615
615
  value: e,
616
616
  "aria-label": "Command input",
617
617
  onChange: (o) => {
618
- n(o), c();
618
+ s(o), c();
619
619
  },
620
620
  ref: y,
621
621
  onKeyUp: (o) => {
@@ -638,9 +638,9 @@ function lt({ value: e, prefix: s, onChange: n, onKeyUp: t, onKeyDown: f, inputR
638
638
  ] })
639
639
  ] });
640
640
  }
641
- const Z = "user", Q = "prozilla-os", _t = 50, ye = `${b.fg.cyan + b.decoration.dim}$APP_NAME - Made by Prozilla${b.reset}
642
- ${b.decoration.dim}Type 'help' for a list of commands.${b.reset}
643
- `, E = b.fg.cyan, bt = `
641
+ const Z = "user", Q = "prozilla-os", vt = 50, ye = `${_.fg.cyan + _.decoration.dim}$APP_NAME - Made by Prozilla${_.reset}
642
+ ${_.decoration.dim}Type 'help' for a list of commands.${_.reset}
643
+ `, E = _.fg.cyan, _t = `
644
644
  :.
645
645
  -==.
646
646
  .=====:
@@ -648,10 +648,10 @@ ${b.decoration.dim}Type 'help' for a list of commands.${b.reset}
648
648
  :===+=----------::..
649
649
  =+=---------------:..
650
650
  --------------------:.
651
- .:-+=----${b.fg.white}*###*${E}--${b.fg.white}*####=${E}---.
652
- :==+----${b.fg.white}#%+${E}-${b.fg.white}+%#${E}-${b.fg.white}##%*+${E}----:.
653
- .=----${b.fg.white}#%+${E}-${b.fg.white}+%#${E}-${b.fg.white}*+${E}-${b.fg.white}%#+${E}---:.
654
- ==----${b.fg.white}*###*${E}--${b.fg.white}*###*${E}----.
651
+ .:-+=----${_.fg.white}*###*${E}--${_.fg.white}*####=${E}---.
652
+ :==+----${_.fg.white}#%+${E}-${_.fg.white}+%#${E}-${_.fg.white}##%*+${E}----:.
653
+ .=----${_.fg.white}#%+${E}-${_.fg.white}+%#${E}-${_.fg.white}*+${E}-${_.fg.white}%#+${E}---:.
654
+ ==----${_.fg.white}*###*${E}--${_.fg.white}*###*${E}----.
655
655
  ==+-------------------:.
656
656
  ...::---------------:.
657
657
  .::---------::..
@@ -665,47 +665,47 @@ class P extends Je {
665
665
  super(...arguments);
666
666
  W(this, "enabled", !1);
667
667
  }
668
- start(n) {
669
- return this.enabled ? this : (n == null || n(this), this.enabled = !0, this.emit("start"), this);
668
+ start(s) {
669
+ return this.enabled ? this : (s == null || s(this), this.enabled = !0, this.emit("start"), this);
670
670
  }
671
671
  stop() {
672
672
  return this.enabled ? (this.enabled = !1, this.emit("stop"), this) : this;
673
673
  }
674
- send(n) {
675
- return this.enabled && this.emit("new", n), this;
674
+ send(s) {
675
+ return this.enabled && this.emit("new", s), this;
676
676
  }
677
677
  }
678
678
  W(P, "EVENT_NAMES", ct);
679
- function F(e, s) {
680
- return `${b.fg.red}${e}: ${s}${b.reset}`;
679
+ function F(e, n) {
680
+ return `${_.fg.red}${e}: ${n}${_.reset}`;
681
681
  }
682
- function vt(e) {
682
+ function bt(e) {
683
683
  return e.replace(/\u001b\[([0-9]+)m/gm, "");
684
684
  }
685
685
  let G = [];
686
- const we = /* @__PURE__ */ Object.assign({ "./commands/cat.ts": () => import("./cat-F1pnUhWr.js"), "./commands/cd.ts": () => import("./cd-SY_-kgyu.js"), "./commands/clear.ts": () => import("./clear-DtYBxmDr.js"), "./commands/cmatrix.ts": () => import("./cmatrix-BI2_Y5OW.js"), "./commands/compgen.ts": () => import("./compgen-7prOo2oi.js"), "./commands/cowsay.ts": () => import("./cowsay-B6TRoqbg.js"), "./commands/dir.ts": () => import("./dir-BlrznBqV.js"), "./commands/echo.ts": () => import("./echo-PyZ6XYF6.js"), "./commands/eval.ts": () => import("./eval-CnKC-mrj.js"), "./commands/exit.ts": () => import("./exit-CizX3N_u.js"), "./commands/fortune.ts": () => import("./fortune-Cs0PtMgs.js"), "./commands/help.ts": () => import("./help-BUCTSaeJ.js"), "./commands/history.ts": () => import("./history-l0sNRNKZ.js"), "./commands/hostname.ts": () => import("./hostname-BBOQWx6L.js"), "./commands/lolcat.ts": () => import("./lolcat-DiLqxxCO.js"), "./commands/ls.ts": () => import("./ls-DScdmJPT.js"), "./commands/make.ts": () => import("./make-D_hXz4-L.js"), "./commands/man.ts": () => import("./man-C2UviS5N.js"), "./commands/mkdir.ts": () => import("./mkdir-BTSAC1PK.js"), "./commands/neofetch.ts": () => import("./neofetch-Bq355NBE.js"), "./commands/pwd.ts": () => import("./pwd-CSapfDtw.js"), "./commands/reboot.ts": () => import("./reboot-Bwxhoa8q.js"), "./commands/reload.ts": () => import("./reload-CnQb5yj-.js"), "./commands/rev.ts": () => import("./rev-C8qQIyj_.js"), "./commands/rm.ts": () => import("./rm-BwOe-Kq2.js"), "./commands/rmdir.ts": () => import("./rmdir-B9pGhEAU.js"), "./commands/sl.ts": () => import("./sl-DaCRRvuh.js"), "./commands/touch.ts": () => import("./touch-x95bWUyt.js"), "./commands/uptime.ts": () => import("./uptime-BYmCcOUM.js"), "./commands/whatis.ts": () => import("./whatis-DL62XQIi.js"), "./commands/whoami.ts": () => import("./whoami-CQNGmqxL.js") }), Ce = () => {
686
+ const we = /* @__PURE__ */ Object.assign({ "./commands/cat.ts": () => import("./cat-DO8KEMio.js"), "./commands/cd.ts": () => import("./cd-DFGtb_Wk.js"), "./commands/clear.ts": () => import("./clear-DtYBxmDr.js"), "./commands/cmatrix.ts": () => import("./cmatrix-CVXcw_wK.js"), "./commands/compgen.ts": () => import("./compgen-WxsGxWC9.js"), "./commands/cowsay.ts": () => import("./cowsay-DZHMvxAZ.js"), "./commands/dir.ts": () => import("./dir-BlrznBqV.js"), "./commands/echo.ts": () => import("./echo-PyZ6XYF6.js"), "./commands/eval.ts": () => import("./eval-CnKC-mrj.js"), "./commands/exit.ts": () => import("./exit-CizX3N_u.js"), "./commands/fortune.ts": () => import("./fortune-Cs0PtMgs.js"), "./commands/help.ts": () => import("./help-DnMOR9rH.js"), "./commands/history.ts": () => import("./history-l0sNRNKZ.js"), "./commands/hostname.ts": () => import("./hostname-BBOQWx6L.js"), "./commands/lolcat.ts": () => import("./lolcat-vYhIbqEJ.js"), "./commands/ls.ts": () => import("./ls-23P3QzxI.js"), "./commands/make.ts": () => import("./make-CKvFYB_1.js"), "./commands/man.ts": () => import("./man-BN3-oDjw.js"), "./commands/mkdir.ts": () => import("./mkdir-BTSAC1PK.js"), "./commands/neofetch.ts": () => import("./neofetch-UHKALL5e.js"), "./commands/pwd.ts": () => import("./pwd-CSapfDtw.js"), "./commands/reboot.ts": () => import("./reboot-Bwxhoa8q.js"), "./commands/reload.ts": () => import("./reload-RsBNPWJI.js"), "./commands/rev.ts": () => import("./rev-C8qQIyj_.js"), "./commands/rm.ts": () => import("./rm-B4-5j-xh.js"), "./commands/rmdir.ts": () => import("./rmdir-hAWOHScY.js"), "./commands/sl.ts": () => import("./sl-yhx6cve3.js"), "./commands/touch.ts": () => import("./touch-DptR1Wm4.js"), "./commands/uptime.ts": () => import("./uptime-BYmCcOUM.js"), "./commands/whatis.ts": () => import("./whatis-CFFc4GDV.js"), "./commands/whoami.ts": () => import("./whoami-CQNGmqxL.js") }), Ce = () => {
687
687
  G = [];
688
688
  for (const e in we)
689
- we[e]().then((s) => {
690
- const n = Object.keys(s)[0], t = s[n];
691
- t != null && (t.setName(n.toLowerCase()), G.push(t));
689
+ we[e]().then((n) => {
690
+ const s = Object.keys(n)[0], t = n[s];
691
+ t != null && (t.setName(s.toLowerCase()), G.push(t));
692
692
  });
693
693
  };
694
694
  Ce();
695
695
  const B = class B {
696
- static find(s) {
697
- let n = null;
696
+ static find(n) {
697
+ let s = null;
698
698
  return this.COMMANDS.forEach((t) => {
699
- if (t.name === s) {
700
- n = t;
699
+ if (t.name === n) {
700
+ s = t;
701
701
  return;
702
702
  }
703
- }), n;
703
+ }), s;
704
704
  }
705
- static search(s) {
705
+ static search(n) {
706
706
  return this.COMMANDS.filter((t) => {
707
707
  var f;
708
- return (f = t.name) == null ? void 0 : f.match(s);
708
+ return (f = t.name) == null ? void 0 : f.match(n);
709
709
  });
710
710
  }
711
711
  static reload() {
@@ -714,33 +714,33 @@ const B = class B {
714
714
  };
715
715
  W(B, "COMMANDS", G);
716
716
  let ee = B;
717
- function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus: i }) {
718
- const u = De(), [c, o] = S(0), [r, _] = S(n ?? ""), [a, v] = S([{
717
+ function ut({ app: e, path: n, input: s, setTitle: t, close: f, active: y, focus: a }) {
718
+ const u = De(), [c, o] = S(0), [r, v] = S(s ?? ""), [i, b] = S([{
719
719
  text: e ? ye.replace("$APP_NAME", e.name) : ye,
720
720
  isInput: !1
721
- }]), k = Re(), [h, $] = S(k == null ? void 0 : k.navigate(s ?? "~")), O = pe(null), [M, D] = S(0), [T, K] = S(null), [U, ne] = S(null), R = pe(null), [re, ie] = S(!1), Ee = He();
721
+ }]), k = Re(), [h, $] = S(k == null ? void 0 : k.navigate(n ?? "~")), O = pe(null), [M, D] = S(0), [T, K] = S(null), [U, se] = S(null), R = pe(null), [re, ae] = S(!1), Ee = He();
722
722
  z(() => {
723
723
  h != null && (t == null || t(`${Z}@${Q}: ${h.root ? "/" : h.path}`));
724
724
  }, [h == null ? void 0 : h.path, h == null ? void 0 : h.root, t]), z(() => {
725
725
  !O.current || !y || O.current.focus();
726
726
  }, [O, y]);
727
- const ae = () => {
727
+ const ie = () => {
728
728
  R.current.scrollTop = R.current.scrollHeight;
729
729
  };
730
730
  z(() => {
731
- re || R.current == null || U == null || (ae(), ie(!0));
731
+ re || R.current == null || U == null || (ie(), ae(!0));
732
732
  }, [re, U, R]), z(() => {
733
- R.current == null || T != null || ae();
733
+ R.current == null || T != null || ie();
734
734
  }, [r]);
735
- const oe = `${b.fg.cyan + Z}@${Q + b.reset}:${b.fg.blue + (h != null && h.root || h == null ? "/" : h == null ? void 0 : h.path) + b.reset}$ `, le = a, X = (l) => {
736
- le.push(l), v(le);
735
+ const oe = `${_.fg.cyan + Z}@${Q + _.reset}:${_.fg.blue + (h != null && h.root || h == null ? "/" : h == null ? void 0 : h.path) + _.reset}$ `, le = i, X = (l) => {
736
+ le.push(l), b(le);
737
737
  }, J = (l) => {
738
738
  X({
739
739
  text: l,
740
740
  isInput: !1
741
741
  });
742
742
  }, $e = (l, p) => {
743
- K(l), ie(!1);
743
+ K(l), ae(!1);
744
744
  const g = (d) => {
745
745
  y && (d.ctrlKey || d.metaKey) && d.key === "c" && l.stop();
746
746
  };
@@ -751,13 +751,13 @@ function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus
751
751
  for (const I of p)
752
752
  w instanceof P || (w = await ce(w ? `${I} ${w}` : I));
753
753
  if (w instanceof P) {
754
- l.stop(), J(b.fg.red + "Stream failed");
754
+ l.stop(), J(_.fg.red + "Stream failed");
755
755
  return;
756
756
  }
757
- m = w, ne(w);
757
+ m = w, se(w);
758
758
  })();
759
759
  }), l.on(P.EVENT_NAMES.stop, () => {
760
- document.removeEventListener("keydown", g), J(m), K(null), ne(null);
760
+ document.removeEventListener("keydown", g), J(m), K(null), se(null);
761
761
  }), document.addEventListener("keydown", g);
762
762
  }, ce = async (l) => {
763
763
  var he;
@@ -821,7 +821,7 @@ function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus
821
821
  return console.error(C), F(w, "Command failed");
822
822
  }
823
823
  }, Oe = () => {
824
- _(""), D(0);
824
+ v(""), D(0);
825
825
  }, Se = async (l) => {
826
826
  X({
827
827
  text: oe + l,
@@ -836,28 +836,28 @@ function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus
836
836
  Oe(), p = p.filter((d) => !g.includes(d)), m && (m instanceof P ? $e(m, p) : J(`${m}
837
837
  `));
838
838
  }, ue = (l) => {
839
- const p = a.filter(({ isInput: m }) => m), g = Ve(M + l, 0, p.length);
839
+ const p = i.filter(({ isInput: m }) => m), g = Ve(M + l, 0, p.length);
840
840
  if (g === M) {
841
- l < 0 && _("");
841
+ l < 0 && v("");
842
842
  return;
843
843
  }
844
- _(g === 0 ? "" : p[p.length - g].value ?? ""), D(g);
844
+ v(g === 0 ? "" : p[p.length - g].value ?? ""), D(g);
845
845
  }, Te = (l) => {
846
846
  const p = l.target.value, { key: g } = l;
847
- g === "Enter" ? (Se(p), o((m) => m + 1)) : g === "ArrowUp" ? (l.preventDefault(), ue(1)) : g === "ArrowDown" ? (l.preventDefault(), ue(-1)) : !T && (l.ctrlKey || l.metaKey) && g === "c" && _((m) => m + "^C");
847
+ g === "Enter" ? (Se(p), o((m) => m + 1)) : g === "ArrowUp" ? (l.preventDefault(), ue(1)) : g === "ArrowDown" ? (l.preventDefault(), ue(-1)) : !T && (l.ctrlKey || l.metaKey) && g === "c" && v((m) => m + "^C");
848
848
  }, Ie = (l) => {
849
849
  const p = l.target.value;
850
- return _(p);
850
+ return v(p);
851
851
  }, Ae = () => {
852
- const l = a.slice(-16);
852
+ const l = i.slice(-16);
853
853
  let p = 0;
854
854
  return l.forEach((g, m) => {
855
855
  g.clear && (p = m + 1);
856
- }), l.slice(p).map(({ text: g }, m) => /* @__PURE__ */ L(ve, { text: g }, m));
856
+ }), l.slice(p).map(({ text: g }, m) => /* @__PURE__ */ L(be, { text: g }, m));
857
857
  }, Le = (l) => {
858
858
  var p, g;
859
- i == null || i(l), l.button === 2 && (l.preventDefault(), (g = (p = navigator.clipboard).readText) == null || g.call(p).then((m) => {
860
- _(r + m);
859
+ a == null || a(l), l.button === 2 && (l.preventDefault(), (g = (p = navigator.clipboard).readText) == null || g.call(p).then((m) => {
860
+ v(r + m);
861
861
  }).catch((m) => {
862
862
  console.error(m);
863
863
  }));
@@ -877,7 +877,7 @@ function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus
877
877
  },
878
878
  children: [
879
879
  Ae(),
880
- T ? /* @__PURE__ */ L(ve, { text: U ?? "" }) : /* @__PURE__ */ L(
880
+ T ? /* @__PURE__ */ L(be, { text: U ?? "" }) : /* @__PURE__ */ L(
881
881
  lt,
882
882
  {
883
883
  value: r,
@@ -893,15 +893,15 @@ function ut({ app: e, path: s, input: n, setTitle: t, close: f, active: y, focus
893
893
  );
894
894
  }
895
895
  const ft = new xe("Terminal", "terminal", ut).setIconUrl("https://os.prozilla.dev/assets/apps/icons/terminal.svg").setRole(je.APP_ROLES.terminal).setCategory("Utilities & tools");
896
- ft.setMetadata({ name: "@prozilla-os/terminal", version: "1.1.16", author: "Prozilla" });
896
+ ft.setMetadata({ name: "@prozilla-os/terminal", version: "1.1.17", author: "Prozilla" });
897
897
  export {
898
898
  E as A,
899
899
  ee as C,
900
- _t as M,
900
+ vt as M,
901
901
  P as S,
902
- bt as a,
902
+ _t as a,
903
903
  F as f,
904
- vt as r,
904
+ bt as r,
905
905
  ft as t
906
906
  };
907
- //# sourceMappingURL=main-CkpVfeUg.js.map
907
+ //# sourceMappingURL=main-Dvaf0Ocd.js.map