@metaphi-ai/hum 0.2.65 → 0.2.67

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 (2) hide show
  1. package/dist/cli.mjs +317 -266
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -11,11 +11,20 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
11
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
12
12
  throw Error('Dynamic require of "' + x + '" is not supported');
13
13
  });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ var __esm = (fn, res, err) => function __init() {
15
+ if (err) throw err[0];
16
+ try {
17
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
+ } catch (e) {
19
+ throw err = [e], e;
20
+ }
16
21
  };
17
22
  var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
23
+ try {
24
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
25
+ } catch (e) {
26
+ throw mod = 0, e;
27
+ }
19
28
  };
20
29
  var __export = (target2, all) => {
21
30
  for (var name in all)
@@ -42,7 +51,7 @@ var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__
42
51
  var define_HUM_CORE_SUBS_default;
43
52
  var init_define_HUM_CORE_SUBS = __esm({
44
53
  "<define:HUM_CORE_SUBS>"() {
45
- define_HUM_CORE_SUBS_default = ["run", "login", "logout", "whoami", "model", "credits", "sessions", "show", "export", "sync", "ci", "core", "skill", "agent", "persona", "ps", "stop", "send", "team", "hooks", "trust", "permissions", "worktrees", "plugin", "mcp", "slack", "listen", "admin"];
54
+ define_HUM_CORE_SUBS_default = ["run", "login", "logout", "whoami", "model", "credits", "sessions", "show", "export", "sync", "ci", "core", "skill", "agent", "persona", "ps", "stop", "send", "team", "hooks", "trust", "permissions", "worktrees", "plugin", "mcp", "slack", "listen"];
46
55
  }
47
56
  });
48
57
 
@@ -51,18 +60,19 @@ var require_react_production = __commonJS({
51
60
  "node_modules/react/cjs/react.production.js"(exports) {
52
61
  "use strict";
53
62
  init_define_HUM_CORE_SUBS();
54
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
55
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
56
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
57
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
58
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
59
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
60
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
61
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
62
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
63
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
64
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
65
- var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
63
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
64
+ var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
65
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
66
+ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
67
+ var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
68
+ var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
69
+ var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
70
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
71
+ var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
72
+ var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
73
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
74
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
75
+ var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
66
76
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
67
77
  function getIteratorFn(maybeIterable) {
68
78
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -250,19 +260,18 @@ var require_react_production = __commonJS({
250
260
  }
251
261
  function lazyInitializer(payload) {
252
262
  if (-1 === payload._status) {
253
- var ctor = payload._result;
254
- ctor = ctor();
255
- ctor.then(
263
+ var ctor = payload._result, thenable = ctor();
264
+ thenable.then(
256
265
  function(moduleObject) {
257
266
  if (0 === payload._status || -1 === payload._status)
258
- payload._status = 1, payload._result = moduleObject;
267
+ payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
259
268
  },
260
269
  function(error) {
261
270
  if (0 === payload._status || -1 === payload._status)
262
- payload._status = 2, payload._result = error;
271
+ payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
263
272
  }
264
273
  );
265
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
274
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
266
275
  }
267
276
  if (1 === payload._status) return payload._result.default;
268
277
  throw payload._result;
@@ -282,6 +291,27 @@ var require_react_production = __commonJS({
282
291
  }
283
292
  console.error(error);
284
293
  };
294
+ function startTransition(scope) {
295
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
296
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
297
+ ReactSharedInternals.T = currentTransition;
298
+ try {
299
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
300
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
301
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop2, reportGlobalError);
302
+ } catch (error) {
303
+ reportGlobalError(error);
304
+ } finally {
305
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
306
+ }
307
+ }
308
+ function addTransitionType(type) {
309
+ var transition = ReactSharedInternals.T;
310
+ if (null !== transition) {
311
+ var transitionTypes = transition.types;
312
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
313
+ } else startTransition(addTransitionType.bind(null, type));
314
+ }
285
315
  var Children = {
286
316
  map: mapChildren,
287
317
  forEach: function(children, forEachFunc, forEachContext) {
@@ -321,6 +351,7 @@ var require_react_production = __commonJS({
321
351
  exports.PureComponent = PureComponent2;
322
352
  exports.StrictMode = REACT_STRICT_MODE_TYPE;
323
353
  exports.Suspense = REACT_SUSPENSE_TYPE;
354
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
324
355
  exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
325
356
  exports.__COMPILER_RUNTIME = {
326
357
  __proto__: null,
@@ -328,6 +359,7 @@ var require_react_production = __commonJS({
328
359
  return ReactSharedInternals.H.useMemoCache(size);
329
360
  }
330
361
  };
362
+ exports.addTransitionType = addTransitionType;
331
363
  exports.cache = function(fn) {
332
364
  return function() {
333
365
  return fn.apply(null, arguments);
@@ -408,19 +440,7 @@ var require_react_production = __commonJS({
408
440
  compare: void 0 === compare ? null : compare
409
441
  };
410
442
  };
411
- exports.startTransition = function(scope) {
412
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
413
- ReactSharedInternals.T = currentTransition;
414
- try {
415
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
416
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
417
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop2, reportGlobalError);
418
- } catch (error) {
419
- reportGlobalError(error);
420
- } finally {
421
- null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
422
- }
423
- };
443
+ exports.startTransition = startTransition;
424
444
  exports.unstable_useCacheRefresh = function() {
425
445
  return ReactSharedInternals.H.useCacheRefresh();
426
446
  };
@@ -484,7 +504,7 @@ var require_react_production = __commonJS({
484
504
  exports.useTransition = function() {
485
505
  return ReactSharedInternals.H.useTransition();
486
506
  };
487
- exports.version = "19.2.8";
507
+ exports.version = "19.3.1";
488
508
  }
489
509
  });
490
510
 
@@ -576,6 +596,8 @@ var require_react_development = __commonJS({
576
596
  return "SuspenseList";
577
597
  case REACT_ACTIVITY_TYPE:
578
598
  return "Activity";
599
+ case REACT_VIEW_TRANSITION_TYPE:
600
+ return "ViewTransition";
579
601
  }
580
602
  if ("object" === typeof type)
581
603
  switch ("number" === typeof type.tag && console.error(
@@ -832,8 +854,11 @@ var require_react_development = __commonJS({
832
854
  }
833
855
  function lazyInitializer(payload) {
834
856
  if (-1 === payload._status) {
835
- var ioInfo = payload._ioInfo;
836
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
857
+ var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
858
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
859
+ resolveDebugValue = resolve;
860
+ rejectDebugValue = reject;
861
+ }));
837
862
  ioInfo = payload._result;
838
863
  var thenable = ioInfo();
839
864
  thenable.then(
@@ -842,7 +867,13 @@ var require_react_development = __commonJS({
842
867
  payload._status = 1;
843
868
  payload._result = moduleObject;
844
869
  var _ioInfo = payload._ioInfo;
845
- null != _ioInfo && (_ioInfo.end = performance.now());
870
+ if (null != _ioInfo) {
871
+ _ioInfo.end = performance.now();
872
+ var debugValue = null == moduleObject ? void 0 : moduleObject.default;
873
+ resolveDebugValue(debugValue);
874
+ _ioInfo.value.status = "fulfilled";
875
+ _ioInfo.value.value = debugValue;
876
+ }
846
877
  void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
847
878
  }
848
879
  },
@@ -851,14 +882,13 @@ var require_react_development = __commonJS({
851
882
  payload._status = 2;
852
883
  payload._result = error;
853
884
  var _ioInfo2 = payload._ioInfo;
854
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
885
+ null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop2, noop2), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
855
886
  void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
856
887
  }
857
888
  }
858
889
  );
859
890
  ioInfo = payload._ioInfo;
860
891
  if (null != ioInfo) {
861
- ioInfo.value = thenable;
862
892
  var displayName = thenable.displayName;
863
893
  "string" === typeof displayName && (ioInfo.name = displayName);
864
894
  }
@@ -884,6 +914,35 @@ var require_react_development = __commonJS({
884
914
  function releaseAsyncTransition() {
885
915
  ReactSharedInternals.asyncTransitions--;
886
916
  }
917
+ function startTransition(scope) {
918
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
919
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
920
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
921
+ ReactSharedInternals.T = currentTransition;
922
+ try {
923
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
924
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
925
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop2, reportGlobalError));
926
+ } catch (error) {
927
+ reportGlobalError(error);
928
+ } finally {
929
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
930
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
931
+ )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
932
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
933
+ ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
934
+ }
935
+ }
936
+ function addTransitionType(type) {
937
+ var transition = ReactSharedInternals.T;
938
+ if (null !== transition) {
939
+ var transitionTypes = transition.types;
940
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
941
+ } else
942
+ 0 === ReactSharedInternals.asyncTransitions && console.error(
943
+ "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
944
+ ), startTransition(addTransitionType.bind(null, type));
945
+ }
887
946
  function enqueueTask(task) {
888
947
  if (null === enqueueTaskImpl)
889
948
  try {
@@ -958,7 +1017,7 @@ var require_react_development = __commonJS({
958
1017
  }
959
1018
  }
960
1019
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
961
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
1020
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
962
1021
  isMounted: function() {
963
1022
  return false;
964
1023
  },
@@ -1001,7 +1060,7 @@ var require_react_development = __commonJS({
1001
1060
  deprecatedAPIs.constructor = PureComponent2;
1002
1061
  assign(deprecatedAPIs, Component.prototype);
1003
1062
  deprecatedAPIs.isPureReactComponent = true;
1004
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1063
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
1005
1064
  H: null,
1006
1065
  A: null,
1007
1066
  T: null,
@@ -1093,6 +1152,7 @@ var require_react_development = __commonJS({
1093
1152
  exports.PureComponent = PureComponent2;
1094
1153
  exports.StrictMode = REACT_STRICT_MODE_TYPE;
1095
1154
  exports.Suspense = REACT_SUSPENSE_TYPE;
1155
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
1096
1156
  exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1097
1157
  exports.__COMPILER_RUNTIME = deprecatedAPIs;
1098
1158
  exports.act = function(callback) {
@@ -1172,6 +1232,7 @@ var require_react_development = __commonJS({
1172
1232
  }
1173
1233
  };
1174
1234
  };
1235
+ exports.addTransitionType = addTransitionType;
1175
1236
  exports.cache = function(fn) {
1176
1237
  return function() {
1177
1238
  return fn.apply(null, arguments);
@@ -1248,6 +1309,7 @@ var require_react_development = __commonJS({
1248
1309
  exports.createElement = function(type, config, children) {
1249
1310
  for (var i = 2; i < arguments.length; i++)
1250
1311
  validateChildKeys(arguments[i]);
1312
+ var propName;
1251
1313
  i = {};
1252
1314
  var key = null;
1253
1315
  if (null != config)
@@ -1270,13 +1332,13 @@ var require_react_development = __commonJS({
1270
1332
  i,
1271
1333
  "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1272
1334
  );
1273
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1335
+ (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
1274
1336
  return ReactElement(
1275
1337
  type,
1276
1338
  key,
1277
1339
  i,
1278
1340
  getOwner(),
1279
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1341
+ childrenLength,
1280
1342
  propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1281
1343
  );
1282
1344
  };
@@ -1356,24 +1418,7 @@ var require_react_development = __commonJS({
1356
1418
  });
1357
1419
  return compare;
1358
1420
  };
1359
- exports.startTransition = function(scope) {
1360
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1361
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1362
- ReactSharedInternals.T = currentTransition;
1363
- try {
1364
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1365
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1366
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop2, reportGlobalError));
1367
- } catch (error) {
1368
- reportGlobalError(error);
1369
- } finally {
1370
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1371
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1372
- )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
1373
- "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1374
- ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1375
- }
1376
- };
1421
+ exports.startTransition = startTransition;
1377
1422
  exports.unstable_useCacheRefresh = function() {
1378
1423
  return resolveDispatcher().useCacheRefresh();
1379
1424
  };
@@ -1455,7 +1500,7 @@ var require_react_development = __commonJS({
1455
1500
  exports.useTransition = function() {
1456
1501
  return resolveDispatcher().useTransition();
1457
1502
  };
1458
- exports.version = "19.2.8";
1503
+ exports.version = "19.3.1";
1459
1504
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1460
1505
  })();
1461
1506
  }
@@ -1514,7 +1559,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
1514
1559
  invoke();
1515
1560
  };
1516
1561
  const debounced = function(...args2) {
1517
- if (signal?.aborted) return;
1562
+ if (signal === null || signal === void 0 ? void 0 : signal.aborted) return;
1518
1563
  pendingThis = this;
1519
1564
  pendingArgs = args2;
1520
1565
  const isFirstCall = timeoutId == null;
@@ -1524,7 +1569,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
1524
1569
  debounced.schedule = schedule;
1525
1570
  debounced.cancel = cancel;
1526
1571
  debounced.flush = flush;
1527
- signal?.addEventListener("abort", cancel, { once: true });
1572
+ signal === null || signal === void 0 || signal.addEventListener("abort", cancel, { once: true });
1528
1573
  return debounced;
1529
1574
  }
1530
1575
  var init_debounce = __esm({
@@ -3772,7 +3817,7 @@ var init_lookup_data = __esm({
3772
3817
  fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
3773
3818
  wideMinimalCodePoint = 4352;
3774
3819
  wideMaximumCodePoint = 262141;
3775
- wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
3820
+ wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141];
3776
3821
  }
3777
3822
  });
3778
3823
 
@@ -3817,7 +3862,7 @@ function findWideFastPathRange(ranges) {
3817
3862
  }
3818
3863
  return [fastPathStart, fastPathEnd];
3819
3864
  }
3820
- var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullWidth, isWide;
3865
+ var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullwidth, isWide;
3821
3866
  var init_lookup = __esm({
3822
3867
  "node_modules/get-east-asian-width/lookup.js"() {
3823
3868
  init_define_HUM_CORE_SUBS();
@@ -3831,7 +3876,7 @@ var init_lookup = __esm({
3831
3876
  }
3832
3877
  return isInRange(ambiguousRanges, codePoint);
3833
3878
  };
3834
- isFullWidth = (codePoint) => {
3879
+ isFullwidth = (codePoint) => {
3835
3880
  if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
3836
3881
  return false;
3837
3882
  }
@@ -3857,7 +3902,7 @@ function validate(codePoint) {
3857
3902
  }
3858
3903
  function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
3859
3904
  validate(codePoint);
3860
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
3905
+ if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
3861
3906
  return 2;
3862
3907
  }
3863
3908
  return 1;
@@ -12761,14 +12806,14 @@ var require_react_reconciler_production = __commonJS({
12761
12806
  }
12762
12807
  var exports2 = {};
12763
12808
  "use strict";
12764
- var React18 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
12765
- Symbol.for("react.scope");
12766
- var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
12767
- Symbol.for("react.legacy_hidden");
12768
- Symbol.for("react.tracing_marker");
12769
- var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
12770
- Symbol.for("react.view_transition");
12771
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
12809
+ var React18 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
12810
+ /* @__PURE__ */ Symbol.for("react.scope");
12811
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
12812
+ /* @__PURE__ */ Symbol.for("react.legacy_hidden");
12813
+ /* @__PURE__ */ Symbol.for("react.tracing_marker");
12814
+ var REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel");
12815
+ /* @__PURE__ */ Symbol.for("react.view_transition");
12816
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
12772
12817
  $$$config.cloneMutableInstance;
12773
12818
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
12774
12819
  $$$config.cloneMutableTextInstance;
@@ -25362,14 +25407,14 @@ var require_react_reconciler_development = __commonJS({
25362
25407
  }
25363
25408
  var exports2 = {};
25364
25409
  "use strict";
25365
- var React18 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
25366
- Symbol.for("react.scope");
25367
- var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
25368
- Symbol.for("react.legacy_hidden");
25369
- Symbol.for("react.tracing_marker");
25370
- var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
25371
- Symbol.for("react.view_transition");
25372
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
25410
+ var React18 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
25411
+ /* @__PURE__ */ Symbol.for("react.scope");
25412
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
25413
+ /* @__PURE__ */ Symbol.for("react.legacy_hidden");
25414
+ /* @__PURE__ */ Symbol.for("react.tracing_marker");
25415
+ var REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel");
25416
+ /* @__PURE__ */ Symbol.for("react.view_transition");
25417
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
25373
25418
  $$$config.cloneMutableInstance;
25374
25419
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
25375
25420
  $$$config.cloneMutableTextInstance;
@@ -27338,7 +27383,7 @@ var require_react_reconciler = __commonJS({
27338
27383
  // node_modules/widest-line/node_modules/ansi-regex/index.js
27339
27384
  function ansiRegex2({ onlyFirst = false } = {}) {
27340
27385
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
27341
- const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;
27386
+ const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
27342
27387
  const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
27343
27388
  const pattern = `${osc}|${csi}`;
27344
27389
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
@@ -27383,10 +27428,8 @@ function isDoubleWidthNonRgiEmojiSequence2(segment) {
27383
27428
  return false;
27384
27429
  }
27385
27430
  function baseVisible2(segment) {
27386
- return segment.replace(leadingNonPrintingRegex, "");
27387
- }
27388
- function isZeroWidthCluster(segment) {
27389
- return zeroWidthClusterRegex.test(segment);
27431
+ const index = segment.search(visibleCharacterRegex2);
27432
+ return index === -1 ? void 0 : segment.slice(index);
27390
27433
  }
27391
27434
  function isHangulLeadingJamo2(codePoint) {
27392
27435
  return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
@@ -27403,7 +27446,7 @@ function isHangulJamo2(codePoint) {
27403
27446
  function hangulClusterWidth2(visibleSegment, eastAsianWidthOptions) {
27404
27447
  const codePoints = [];
27405
27448
  for (const character of visibleSegment) {
27406
- if (zeroWidthClusterRegex.test(character)) {
27449
+ if (!visibleCharacterRegex2.test(character)) {
27407
27450
  continue;
27408
27451
  }
27409
27452
  codePoints.push(character.codePointAt(0));
@@ -27467,14 +27510,14 @@ function stringWidth2(input, options2 = {}) {
27467
27510
  let width = 0;
27468
27511
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
27469
27512
  for (const { segment } of segmenter3.segment(string)) {
27470
- if (isZeroWidthCluster(segment)) {
27513
+ const visibleSegment = baseVisible2(segment);
27514
+ if (visibleSegment === void 0) {
27471
27515
  continue;
27472
27516
  }
27473
27517
  if (rgiEmojiRegex2.test(segment) || isDoubleWidthNonRgiEmojiSequence2(segment)) {
27474
27518
  width += 2;
27475
27519
  continue;
27476
27520
  }
27477
- const visibleSegment = baseVisible2(segment);
27478
27521
  const hangulWidth = hangulClusterWidth2(visibleSegment, eastAsianWidthOptions);
27479
27522
  if (hangulWidth !== void 0) {
27480
27523
  width += hangulWidth;
@@ -27486,15 +27529,14 @@ function stringWidth2(input, options2 = {}) {
27486
27529
  }
27487
27530
  return width;
27488
27531
  }
27489
- var segmenter3, zeroWidthClusterRegex, leadingNonPrintingRegex, spacingMarkRegex2, rgiEmojiRegex2, unqualifiedKeycapRegex2, extendedPictographicRegex2;
27532
+ var segmenter3, visibleCharacterRegex2, spacingMarkRegex2, rgiEmojiRegex2, unqualifiedKeycapRegex2, extendedPictographicRegex2;
27490
27533
  var init_string_width2 = __esm({
27491
27534
  "node_modules/widest-line/node_modules/string-width/index.js"() {
27492
27535
  init_define_HUM_CORE_SUBS();
27493
27536
  init_strip_ansi2();
27494
27537
  init_get_east_asian_width();
27495
27538
  segmenter3 = new Intl.Segmenter();
27496
- zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Nonspacing_Mark}|\\p{Enclosing_Mark}|\\p{Surrogate})+$", "v");
27497
- leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v");
27539
+ visibleCharacterRegex2 = new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]", "v");
27498
27540
  spacingMarkRegex2 = new RegExp("\\p{Spacing_Mark}", "v");
27499
27541
  rgiEmojiRegex2 = new RegExp("^\\p{RGI_Emoji}$", "v");
27500
27542
  unqualifiedKeycapRegex2 = /^[\d#*]\u20E3$/;
@@ -27550,7 +27592,7 @@ function isFullwidthCodePoint(codePoint) {
27550
27592
  if (!Number.isInteger(codePoint)) {
27551
27593
  return false;
27552
27594
  }
27553
- return isFullWidth(codePoint) || isWide(codePoint);
27595
+ return isFullwidth(codePoint) || isWide(codePoint);
27554
27596
  }
27555
27597
  var init_is_fullwidth_code_point = __esm({
27556
27598
  "node_modules/is-fullwidth-code-point/index.js"() {
@@ -28224,89 +28266,91 @@ function shouldIncludeSgrAfterEnd(token2, activeStyles) {
28224
28266
  function hasSgrStartFragment(token2) {
28225
28267
  return token2.fragments.some((fragment) => fragment.type === "start");
28226
28268
  }
28227
- function discardPendingHyperlink(parameters) {
28228
- if (parameters.activeHyperlink && !parameters.activeHyperlinkHasVisibleText && parameters.activeHyperlinkOutputIndex !== void 0) {
28229
- const openCodeLength = parameters.activeHyperlink.code.length;
28230
- parameters.returnValue = parameters.returnValue.slice(0, parameters.activeHyperlinkOutputIndex) + parameters.returnValue.slice(parameters.activeHyperlinkOutputIndex + openCodeLength);
28231
- if (parameters.pendingSgrOutputIndex !== void 0 && parameters.pendingSgrOutputIndex > parameters.activeHyperlinkOutputIndex) {
28232
- parameters.pendingSgrOutputIndex -= openCodeLength;
28269
+ function discardPendingHyperlink(state) {
28270
+ if (state.activeHyperlink && !state.activeHyperlinkHasVisibleText && state.activeHyperlinkOutputIndex !== void 0) {
28271
+ const openCodeLength = state.activeHyperlink.code.length;
28272
+ state.returnValue = state.returnValue.slice(0, state.activeHyperlinkOutputIndex) + state.returnValue.slice(state.activeHyperlinkOutputIndex + openCodeLength);
28273
+ if (state.pendingSgrOutputIndex !== void 0 && state.pendingSgrOutputIndex > state.activeHyperlinkOutputIndex) {
28274
+ state.pendingSgrOutputIndex -= openCodeLength;
28233
28275
  }
28234
28276
  }
28235
- parameters.activeHyperlink = void 0;
28236
- parameters.activeHyperlinkHasVisibleText = false;
28237
- parameters.activeHyperlinkOutputIndex = void 0;
28277
+ state.activeHyperlink = void 0;
28278
+ state.activeHyperlinkHasVisibleText = false;
28279
+ state.activeHyperlinkOutputIndex = void 0;
28238
28280
  }
28239
- function applySgrToken2(parameters) {
28240
- if (parameters.isPastEnd && !shouldIncludeSgrAfterEnd(parameters.token, parameters.activeStyles)) {
28241
- return parameters;
28281
+ function settleActiveHyperlink(state) {
28282
+ if (state.activeHyperlinkHasVisibleText) {
28283
+ state.returnValue += closeHyperlink(state.activeHyperlink);
28284
+ } else {
28285
+ discardPendingHyperlink(state);
28242
28286
  }
28243
- if (parameters.include && hasSgrStartFragment(parameters.token) && parameters.pendingSgrOutputIndex === void 0) {
28244
- parameters.pendingSgrOutputIndex = parameters.returnValue.length;
28245
- parameters.pendingSgrActiveStyles = new Map(parameters.activeStyles);
28287
+ }
28288
+ function applySgrToken2(state) {
28289
+ if (state.isPastEnd && !shouldIncludeSgrAfterEnd(state.token, state.activeStyles)) {
28290
+ return;
28246
28291
  }
28247
- parameters.activeStyles = applySgrFragments(parameters.activeStyles, parameters.token.fragments);
28248
- if (parameters.include) {
28249
- parameters.returnValue += parameters.token.code;
28292
+ if (state.include && hasSgrStartFragment(state.token) && state.pendingSgrOutputIndex === void 0) {
28293
+ state.pendingSgrOutputIndex = state.returnValue.length;
28294
+ state.pendingSgrActiveStyles = new Map(state.activeStyles);
28295
+ }
28296
+ state.activeStyles = applySgrFragments(state.activeStyles, state.token.fragments);
28297
+ if (state.include) {
28298
+ state.returnValue += state.token.code;
28250
28299
  }
28251
- return parameters;
28252
28300
  }
28253
- function applyHyperlinkToken(parameters) {
28254
- if (parameters.isPastEnd && (parameters.token.action !== "close" || !parameters.activeHyperlink)) {
28255
- return parameters;
28256
- }
28257
- if (parameters.token.action === "open") {
28258
- parameters.activeHyperlink = parameters.token;
28259
- parameters.activeHyperlinkHasVisibleText = false;
28260
- parameters.activeHyperlinkOutputIndex = void 0;
28261
- if (parameters.include) {
28262
- parameters.activeHyperlinkOutputIndex = parameters.returnValue.length;
28263
- }
28264
- } else if (parameters.token.action === "close") {
28265
- if (parameters.include && parameters.activeHyperlink && !parameters.activeHyperlinkHasVisibleText) {
28266
- discardPendingHyperlink(parameters);
28267
- return parameters;
28268
- }
28269
- parameters.activeHyperlink = void 0;
28270
- parameters.activeHyperlinkHasVisibleText = false;
28271
- parameters.activeHyperlinkOutputIndex = void 0;
28272
- }
28273
- if (parameters.include) {
28274
- parameters.returnValue += parameters.token.code;
28275
- }
28276
- return parameters;
28301
+ function applyHyperlinkToken(state) {
28302
+ if (state.isPastEnd && (state.token.action !== "close" || !state.activeHyperlink)) {
28303
+ return;
28304
+ }
28305
+ if (state.token.action === "open") {
28306
+ if (state.activeHyperlink) {
28307
+ settleActiveHyperlink(state);
28308
+ }
28309
+ state.activeHyperlink = state.token;
28310
+ state.activeHyperlinkHasVisibleText = false;
28311
+ state.activeHyperlinkOutputIndex = void 0;
28312
+ if (state.include) {
28313
+ state.activeHyperlinkOutputIndex = state.returnValue.length;
28314
+ }
28315
+ } else if (state.token.action === "close") {
28316
+ if (state.include && state.activeHyperlink && !state.activeHyperlinkHasVisibleText) {
28317
+ discardPendingHyperlink(state);
28318
+ return;
28319
+ }
28320
+ state.activeHyperlink = void 0;
28321
+ state.activeHyperlinkHasVisibleText = false;
28322
+ state.activeHyperlinkOutputIndex = void 0;
28323
+ }
28324
+ if (state.include) {
28325
+ state.returnValue += state.token.code;
28326
+ }
28277
28327
  }
28278
- function applyControlToken(parameters) {
28279
- if (!parameters.isPastEnd && parameters.include) {
28280
- parameters.returnValue += parameters.token.code;
28328
+ function applyControlToken(state) {
28329
+ if (!state.isPastEnd && state.include) {
28330
+ state.returnValue += state.token.code;
28281
28331
  }
28282
- return parameters;
28283
28332
  }
28284
- function applyCharacterToken(parameters) {
28285
- if (!parameters.include && parameters.position >= parameters.start && !parameters.token.isGraphemeContinuation) {
28286
- parameters.include = true;
28287
- parameters.returnValue = [...parameters.activeStyles.values()].join("");
28288
- if (parameters.activeHyperlink) {
28289
- parameters.activeHyperlinkOutputIndex = parameters.returnValue.length;
28290
- parameters.returnValue += parameters.activeHyperlink.code;
28333
+ function applyCharacterToken(state) {
28334
+ if (!state.include && state.position >= state.start && !state.token.isGraphemeContinuation) {
28335
+ state.include = true;
28336
+ state.returnValue = [...state.activeStyles.values()].join("");
28337
+ if (state.activeHyperlink) {
28338
+ state.activeHyperlinkOutputIndex = state.returnValue.length;
28339
+ state.returnValue += state.activeHyperlink.code;
28291
28340
  }
28292
28341
  }
28293
- if (parameters.include) {
28294
- parameters.returnValue += parameters.token.value;
28295
- parameters.pendingSgrOutputIndex = void 0;
28296
- parameters.pendingSgrActiveStyles = void 0;
28297
- if (parameters.activeHyperlink) {
28298
- parameters.activeHyperlinkHasVisibleText = true;
28342
+ if (state.include) {
28343
+ state.returnValue += state.token.value;
28344
+ state.pendingSgrOutputIndex = void 0;
28345
+ state.pendingSgrActiveStyles = void 0;
28346
+ if (state.activeHyperlink) {
28347
+ state.activeHyperlinkHasVisibleText = true;
28299
28348
  }
28300
28349
  }
28301
- parameters.position += parameters.token.visibleWidth;
28302
- return parameters;
28350
+ state.position += state.token.visibleWidth;
28303
28351
  }
28304
- function applyToken(parameters) {
28305
- const tokenHandler = tokenHandlers[parameters.token.type];
28306
- if (!tokenHandler) {
28307
- return parameters;
28308
- }
28309
- return tokenHandler(parameters);
28352
+ function applyToken(state) {
28353
+ tokenHandlers[state.token.type]?.(state);
28310
28354
  }
28311
28355
  function createHasContinuationAheadMap(tokens) {
28312
28356
  const hasContinuationAhead = Array.from({ length: tokens.length }, () => false);
@@ -28332,69 +28376,49 @@ function isPastEndBoundary(token2, position, end) {
28332
28376
  function sliceAnsi(string, start, end) {
28333
28377
  const tokens = tokenizeAnsi(string, { endCharacter: end });
28334
28378
  const hasContinuationAhead = createHasContinuationAheadMap(tokens);
28335
- let activeStyles = /* @__PURE__ */ new Map();
28336
- let activeHyperlink;
28337
- let activeHyperlinkHasVisibleText = false;
28338
- let activeHyperlinkOutputIndex;
28339
- let pendingSgrOutputIndex;
28340
- let pendingSgrActiveStyles;
28341
- let position = 0;
28342
- let returnValue = "";
28343
- let include = false;
28379
+ const state = {
28380
+ start,
28381
+ token: void 0,
28382
+ isPastEnd: false,
28383
+ activeStyles: /* @__PURE__ */ new Map(),
28384
+ activeHyperlink: void 0,
28385
+ activeHyperlinkHasVisibleText: false,
28386
+ activeHyperlinkOutputIndex: void 0,
28387
+ pendingSgrOutputIndex: void 0,
28388
+ pendingSgrActiveStyles: void 0,
28389
+ position: 0,
28390
+ returnValue: "",
28391
+ include: false
28392
+ };
28344
28393
  for (const [tokenIndex, token2] of tokens.entries()) {
28345
- let isPastEnd = isPastEndBoundary(token2, position, end);
28394
+ let isPastEnd = isPastEndBoundary(token2, state.position, end);
28346
28395
  if (isPastEnd && token2.type !== "character" && hasContinuationAhead[tokenIndex]) {
28347
28396
  isPastEnd = false;
28348
28397
  }
28349
28398
  if (isPastEnd && token2.type === "character" && !token2.isGraphemeContinuation) {
28350
- if (activeHyperlink && !activeHyperlinkHasVisibleText) {
28351
- const hyperlinkState = {
28352
- activeHyperlink,
28353
- activeHyperlinkHasVisibleText,
28354
- activeHyperlinkOutputIndex,
28355
- pendingSgrOutputIndex,
28356
- returnValue
28357
- };
28358
- discardPendingHyperlink(hyperlinkState);
28359
- ({
28360
- activeHyperlink,
28361
- activeHyperlinkHasVisibleText,
28362
- activeHyperlinkOutputIndex,
28363
- pendingSgrOutputIndex,
28364
- returnValue
28365
- } = hyperlinkState);
28366
- }
28367
- if (pendingSgrOutputIndex !== void 0) {
28368
- returnValue = returnValue.slice(0, pendingSgrOutputIndex);
28369
- activeStyles = pendingSgrActiveStyles;
28370
- pendingSgrOutputIndex = void 0;
28371
- pendingSgrActiveStyles = void 0;
28399
+ if (state.activeHyperlink && !state.activeHyperlinkHasVisibleText) {
28400
+ discardPendingHyperlink(state);
28401
+ }
28402
+ if (state.pendingSgrOutputIndex !== void 0) {
28403
+ state.returnValue = state.returnValue.slice(0, state.pendingSgrOutputIndex);
28404
+ state.activeStyles = state.pendingSgrActiveStyles;
28405
+ state.pendingSgrOutputIndex = void 0;
28406
+ state.pendingSgrActiveStyles = void 0;
28372
28407
  }
28373
28408
  break;
28374
28409
  }
28375
- ({ activeStyles, activeHyperlink, activeHyperlinkHasVisibleText, activeHyperlinkOutputIndex, pendingSgrOutputIndex, pendingSgrActiveStyles, position, returnValue, include } = applyToken({
28376
- token: token2,
28377
- isPastEnd,
28378
- start,
28379
- activeStyles,
28380
- activeHyperlink,
28381
- activeHyperlinkHasVisibleText,
28382
- activeHyperlinkOutputIndex,
28383
- pendingSgrOutputIndex,
28384
- pendingSgrActiveStyles,
28385
- position,
28386
- returnValue,
28387
- include
28388
- }));
28410
+ state.token = token2;
28411
+ state.isPastEnd = isPastEnd;
28412
+ applyToken(state);
28389
28413
  }
28390
- if (!include) {
28414
+ if (!state.include) {
28391
28415
  return "";
28392
28416
  }
28393
- if (activeHyperlink) {
28394
- returnValue += closeHyperlink(activeHyperlink);
28417
+ if (state.activeHyperlink) {
28418
+ settleActiveHyperlink(state);
28395
28419
  }
28396
- returnValue += undoAnsiCodes(activeStyles);
28397
- return returnValue;
28420
+ state.returnValue += undoAnsiCodes(state.activeStyles);
28421
+ return state.returnValue;
28398
28422
  }
28399
28423
  var tokenHandlers;
28400
28424
  var init_slice_ansi = __esm({
@@ -28413,7 +28437,7 @@ var init_slice_ansi = __esm({
28413
28437
  // node_modules/cli-truncate/node_modules/ansi-regex/index.js
28414
28438
  function ansiRegex3({ onlyFirst = false } = {}) {
28415
28439
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
28416
- const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;
28440
+ const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
28417
28441
  const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
28418
28442
  const pattern = `${osc}|${csi}`;
28419
28443
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
@@ -28458,10 +28482,8 @@ function isDoubleWidthNonRgiEmojiSequence3(segment) {
28458
28482
  return false;
28459
28483
  }
28460
28484
  function baseVisible3(segment) {
28461
- return segment.replace(leadingNonPrintingRegex2, "");
28462
- }
28463
- function isZeroWidthCluster2(segment) {
28464
- return zeroWidthClusterRegex2.test(segment);
28485
+ const index = segment.search(visibleCharacterRegex3);
28486
+ return index === -1 ? void 0 : segment.slice(index);
28465
28487
  }
28466
28488
  function isHangulLeadingJamo3(codePoint) {
28467
28489
  return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
@@ -28478,7 +28500,7 @@ function isHangulJamo3(codePoint) {
28478
28500
  function hangulClusterWidth3(visibleSegment, eastAsianWidthOptions) {
28479
28501
  const codePoints = [];
28480
28502
  for (const character of visibleSegment) {
28481
- if (zeroWidthClusterRegex2.test(character)) {
28503
+ if (!visibleCharacterRegex3.test(character)) {
28482
28504
  continue;
28483
28505
  }
28484
28506
  codePoints.push(character.codePointAt(0));
@@ -28542,14 +28564,14 @@ function stringWidth3(input, options2 = {}) {
28542
28564
  let width = 0;
28543
28565
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
28544
28566
  for (const { segment } of segmenter4.segment(string)) {
28545
- if (isZeroWidthCluster2(segment)) {
28567
+ const visibleSegment = baseVisible3(segment);
28568
+ if (visibleSegment === void 0) {
28546
28569
  continue;
28547
28570
  }
28548
28571
  if (rgiEmojiRegex3.test(segment) || isDoubleWidthNonRgiEmojiSequence3(segment)) {
28549
28572
  width += 2;
28550
28573
  continue;
28551
28574
  }
28552
- const visibleSegment = baseVisible3(segment);
28553
28575
  const hangulWidth = hangulClusterWidth3(visibleSegment, eastAsianWidthOptions);
28554
28576
  if (hangulWidth !== void 0) {
28555
28577
  width += hangulWidth;
@@ -28561,15 +28583,14 @@ function stringWidth3(input, options2 = {}) {
28561
28583
  }
28562
28584
  return width;
28563
28585
  }
28564
- var segmenter4, zeroWidthClusterRegex2, leadingNonPrintingRegex2, spacingMarkRegex3, rgiEmojiRegex3, unqualifiedKeycapRegex3, extendedPictographicRegex3;
28586
+ var segmenter4, visibleCharacterRegex3, spacingMarkRegex3, rgiEmojiRegex3, unqualifiedKeycapRegex3, extendedPictographicRegex3;
28565
28587
  var init_string_width3 = __esm({
28566
28588
  "node_modules/cli-truncate/node_modules/string-width/index.js"() {
28567
28589
  init_define_HUM_CORE_SUBS();
28568
28590
  init_strip_ansi3();
28569
28591
  init_get_east_asian_width();
28570
28592
  segmenter4 = new Intl.Segmenter();
28571
- zeroWidthClusterRegex2 = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Nonspacing_Mark}|\\p{Enclosing_Mark}|\\p{Surrogate})+$", "v");
28572
- leadingNonPrintingRegex2 = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v");
28593
+ visibleCharacterRegex3 = new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]", "v");
28573
28594
  spacingMarkRegex3 = new RegExp("\\p{Spacing_Mark}", "v");
28574
28595
  rgiEmojiRegex3 = new RegExp("^\\p{RGI_Emoji}$", "v");
28575
28596
  unqualifiedKeycapRegex3 = /^[\d#*]\u20E3$/;
@@ -29586,10 +29607,10 @@ var require_constants2 = __commonJS({
29586
29607
  EMPTY_BUFFER: Buffer.alloc(0),
29587
29608
  GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
29588
29609
  hasBlob,
29589
- kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
29590
- kListener: Symbol("kListener"),
29591
- kStatusCode: Symbol("status-code"),
29592
- kWebSocket: Symbol("websocket"),
29610
+ kForOnEventAttribute: /* @__PURE__ */ Symbol("kIsForOnEventAttribute"),
29611
+ kListener: /* @__PURE__ */ Symbol("kListener"),
29612
+ kStatusCode: /* @__PURE__ */ Symbol("status-code"),
29613
+ kWebSocket: /* @__PURE__ */ Symbol("websocket"),
29593
29614
  NOOP: () => {
29594
29615
  }
29595
29616
  };
@@ -29677,8 +29698,8 @@ var require_limiter = __commonJS({
29677
29698
  "node_modules/ws/lib/limiter.js"(exports, module) {
29678
29699
  "use strict";
29679
29700
  init_define_HUM_CORE_SUBS();
29680
- var kDone = Symbol("kDone");
29681
- var kRun = Symbol("kRun");
29701
+ var kDone = /* @__PURE__ */ Symbol("kDone");
29702
+ var kRun = /* @__PURE__ */ Symbol("kRun");
29682
29703
  var Limiter = class {
29683
29704
  /**
29684
29705
  * Creates a new `Limiter`.
@@ -29734,11 +29755,11 @@ var require_permessage_deflate = __commonJS({
29734
29755
  var { kStatusCode } = require_constants2();
29735
29756
  var FastBuffer = Buffer[Symbol.species];
29736
29757
  var TRAILER = Buffer.from([0, 0, 255, 255]);
29737
- var kPerMessageDeflate = Symbol("permessage-deflate");
29738
- var kTotalLength = Symbol("total-length");
29739
- var kCallback = Symbol("callback");
29740
- var kBuffers = Symbol("buffers");
29741
- var kError = Symbol("error");
29758
+ var kPerMessageDeflate = /* @__PURE__ */ Symbol("permessage-deflate");
29759
+ var kTotalLength = /* @__PURE__ */ Symbol("total-length");
29760
+ var kCallback = /* @__PURE__ */ Symbol("callback");
29761
+ var kBuffers = /* @__PURE__ */ Symbol("buffers");
29762
+ var kError = /* @__PURE__ */ Symbol("error");
29742
29763
  var zlibLimiter;
29743
29764
  var PerMessageDeflate2 = class {
29744
29765
  /**
@@ -30947,7 +30968,7 @@ var require_sender = __commonJS({
30947
30968
  var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants2();
30948
30969
  var { isBlob, isValidStatusCode } = require_validation();
30949
30970
  var { mask: applyMask, toBuffer } = require_buffer_util();
30950
- var kByteLength = Symbol("kByteLength");
30971
+ var kByteLength = /* @__PURE__ */ Symbol("kByteLength");
30951
30972
  var maskBuffer = Buffer.alloc(4);
30952
30973
  var RANDOM_POOL_SIZE = 8 * 1024;
30953
30974
  var randomPool;
@@ -31433,14 +31454,14 @@ var require_event_target = __commonJS({
31433
31454
  "use strict";
31434
31455
  init_define_HUM_CORE_SUBS();
31435
31456
  var { kForOnEventAttribute, kListener } = require_constants2();
31436
- var kCode = Symbol("kCode");
31437
- var kData = Symbol("kData");
31438
- var kError = Symbol("kError");
31439
- var kMessage = Symbol("kMessage");
31440
- var kReason = Symbol("kReason");
31441
- var kTarget = Symbol("kTarget");
31442
- var kType = Symbol("kType");
31443
- var kWasClean = Symbol("kWasClean");
31457
+ var kCode = /* @__PURE__ */ Symbol("kCode");
31458
+ var kData = /* @__PURE__ */ Symbol("kData");
31459
+ var kError = /* @__PURE__ */ Symbol("kError");
31460
+ var kMessage = /* @__PURE__ */ Symbol("kMessage");
31461
+ var kReason = /* @__PURE__ */ Symbol("kReason");
31462
+ var kTarget = /* @__PURE__ */ Symbol("kTarget");
31463
+ var kType = /* @__PURE__ */ Symbol("kType");
31464
+ var kWasClean = /* @__PURE__ */ Symbol("kWasClean");
31444
31465
  var Event = class {
31445
31466
  /**
31446
31467
  * Create a new `Event`.
@@ -31844,7 +31865,7 @@ var require_websocket = __commonJS({
31844
31865
  } = require_event_target();
31845
31866
  var { format, parse } = require_extension();
31846
31867
  var { toBuffer } = require_buffer_util();
31847
- var kAborted = Symbol("kAborted");
31868
+ var kAborted = /* @__PURE__ */ Symbol("kAborted");
31848
31869
  var protocolVersions = [8, 13];
31849
31870
  var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
31850
31871
  var subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
@@ -31877,11 +31898,23 @@ var require_websocket = __commonJS({
31877
31898
  this._isServer = false;
31878
31899
  this._redirects = 0;
31879
31900
  if (protocols === void 0) {
31880
- protocols = [];
31901
+ if (!options2 || options2.protocols === void 0) {
31902
+ protocols = [];
31903
+ } else if (Array.isArray(options2.protocols)) {
31904
+ protocols = options2.protocols;
31905
+ } else {
31906
+ protocols = [options2.protocols];
31907
+ }
31881
31908
  } else if (!Array.isArray(protocols)) {
31882
31909
  if (typeof protocols === "object" && protocols !== null) {
31883
31910
  options2 = protocols;
31884
- protocols = [];
31911
+ if (options2.protocols === void 0) {
31912
+ protocols = [];
31913
+ } else if (Array.isArray(options2.protocols)) {
31914
+ protocols = options2.protocols;
31915
+ } else {
31916
+ protocols = [options2.protocols];
31917
+ }
31885
31918
  } else {
31886
31919
  protocols = [protocols];
31887
31920
  }
@@ -32078,7 +32111,6 @@ var require_websocket = __commonJS({
32078
32111
  }
32079
32112
  return;
32080
32113
  }
32081
- this._readyState = _WebSocket.CLOSING;
32082
32114
  this._sender.close(code, data, !this._isServer, (err) => {
32083
32115
  if (err) return;
32084
32116
  this._closeFrameSent = true;
@@ -32086,6 +32118,7 @@ var require_websocket = __commonJS({
32086
32118
  this._socket.end();
32087
32119
  }
32088
32120
  });
32121
+ this._readyState = _WebSocket.CLOSING;
32089
32122
  setCloseTimer(this);
32090
32123
  }
32091
32124
  /**
@@ -32310,6 +32343,7 @@ var require_websocket = __commonJS({
32310
32343
  socketPath: void 0,
32311
32344
  hostname: void 0,
32312
32345
  protocol: void 0,
32346
+ protocols: void 0,
32313
32347
  timeout: void 0,
32314
32348
  method: "GET",
32315
32349
  host: void 0,
@@ -34208,9 +34242,9 @@ var init_source = __esm({
34208
34242
  init_supports_color();
34209
34243
  init_utilities2();
34210
34244
  ({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
34211
- GENERATOR = Symbol("GENERATOR");
34212
- STYLER = Symbol("STYLER");
34213
- IS_EMPTY = Symbol("IS_EMPTY");
34245
+ GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
34246
+ STYLER = /* @__PURE__ */ Symbol("STYLER");
34247
+ IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
34214
34248
  levelMapping = [
34215
34249
  "ansi",
34216
34250
  "ansi",
@@ -34708,6 +34742,9 @@ var init_ansiCodes = __esm({
34708
34742
  endCodesSet.add(ansi_styles_default.color.ansi(end));
34709
34743
  endCodesMap.set(ansi_styles_default.color.ansi(start), ansi_styles_default.color.ansi(end));
34710
34744
  }
34745
+ endCodesSet.add(linkEndCode);
34746
+ endCodesSet.add(linkEndCodeST);
34747
+ endCodesSet.add(linkEndCodeC1ST);
34711
34748
  }
34712
34749
  });
34713
34750
 
@@ -45572,7 +45609,7 @@ var require_core = __commonJS({
45572
45609
  };
45573
45610
  var escape$12 = escapeHTML;
45574
45611
  var inherit$1 = inherit;
45575
- var NO_MATCH = Symbol("nomatch");
45612
+ var NO_MATCH = /* @__PURE__ */ Symbol("nomatch");
45576
45613
  var HLJS = function(hljs) {
45577
45614
  const languages = /* @__PURE__ */ Object.create(null);
45578
45615
  const aliases = /* @__PURE__ */ Object.create(null);
@@ -88963,8 +89000,8 @@ var require_react_jsx_runtime_production = __commonJS({
88963
89000
  "node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
88964
89001
  "use strict";
88965
89002
  init_define_HUM_CORE_SUBS();
88966
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
88967
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
89003
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
89004
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
88968
89005
  function jsxProd(type, config, maybeKey) {
88969
89006
  var key = null;
88970
89007
  void 0 !== maybeKey && (key = "" + maybeKey);
@@ -89013,6 +89050,8 @@ var require_react_jsx_runtime_development = __commonJS({
89013
89050
  return "SuspenseList";
89014
89051
  case REACT_ACTIVITY_TYPE:
89015
89052
  return "Activity";
89053
+ case REACT_VIEW_TRANSITION_TYPE:
89054
+ return "ViewTransition";
89016
89055
  }
89017
89056
  if ("object" === typeof type)
89018
89057
  switch ("number" === typeof type.tag && console.error(
@@ -89204,7 +89243,7 @@ var require_react_jsx_runtime_development = __commonJS({
89204
89243
  function isValidElement(object) {
89205
89244
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
89206
89245
  }
89207
- var React18 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
89246
+ var React18 = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React18.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
89208
89247
  return null;
89209
89248
  };
89210
89249
  React18 = {
@@ -89223,23 +89262,35 @@ var require_react_jsx_runtime_development = __commonJS({
89223
89262
  exports.Fragment = REACT_FRAGMENT_TYPE;
89224
89263
  exports.jsx = function(type, config, maybeKey) {
89225
89264
  var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
89265
+ if (trackActualOwner) {
89266
+ var previousStackTraceLimit = Error.stackTraceLimit;
89267
+ Error.stackTraceLimit = 10;
89268
+ var debugStackDEV = Error("react-stack-top-frame");
89269
+ Error.stackTraceLimit = previousStackTraceLimit;
89270
+ } else debugStackDEV = unknownOwnerDebugStack;
89226
89271
  return jsxDEVImpl(
89227
89272
  type,
89228
89273
  config,
89229
89274
  maybeKey,
89230
89275
  false,
89231
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
89276
+ debugStackDEV,
89232
89277
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
89233
89278
  );
89234
89279
  };
89235
89280
  exports.jsxs = function(type, config, maybeKey) {
89236
89281
  var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
89282
+ if (trackActualOwner) {
89283
+ var previousStackTraceLimit = Error.stackTraceLimit;
89284
+ Error.stackTraceLimit = 10;
89285
+ var debugStackDEV = Error("react-stack-top-frame");
89286
+ Error.stackTraceLimit = previousStackTraceLimit;
89287
+ } else debugStackDEV = unknownOwnerDebugStack;
89237
89288
  return jsxDEVImpl(
89238
89289
  type,
89239
89290
  config,
89240
89291
  maybeKey,
89241
89292
  true,
89242
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
89293
+ debugStackDEV,
89243
89294
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
89244
89295
  );
89245
89296
  };
@@ -89517,7 +89568,7 @@ var init_install = __esm({
89517
89568
  "src/install.js"() {
89518
89569
  init_define_HUM_CORE_SUBS();
89519
89570
  win = process.platform === "win32";
89520
- MINE = true ? "0.2.65" : "";
89571
+ MINE = true ? "0.2.67" : "";
89521
89572
  npmFix = (version = "") => `npm i -g @metaphi-ai/hum@${version || "latest"} --foreground-scripts`;
89522
89573
  NPM_FIX = npmFix("latest");
89523
89574
  humHome = (env3 = process.env) => env3.HUM_HOME || path.join(os3.homedir(), ".hum");
@@ -89872,10 +89923,10 @@ function clientEnv() {
89872
89923
  platform: process.platform,
89873
89924
  arch: process.arch,
89874
89925
  terminal: process.env.TERM_PROGRAM || (process.env.WT_SESSION ? "Windows Terminal" : process.env.TERM || ""),
89875
- tui: true ? "0.2.65" : ""
89926
+ tui: true ? "0.2.67" : ""
89876
89927
  };
89877
89928
  }
89878
- function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.65" : "" } = {}) {
89929
+ function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.67" : "" } = {}) {
89879
89930
  const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
89880
89931
  const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
89881
89932
  if (!refused) {
@@ -91390,7 +91441,7 @@ var after = (ms, fn) => {
91390
91441
 
91391
91442
  // src/app.jsx
91392
91443
  var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
91393
- var MINE2 = true ? "0.2.65" : "";
91444
+ var MINE2 = true ? "0.2.67" : "";
91394
91445
  var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
91395
91446
  var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
91396
91447
  var shortSession = (name) => (name || "").replace(/\.jsonl$/, "");
@@ -94084,7 +94135,7 @@ async function sendPending({
94084
94135
  await init_theme();
94085
94136
  var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
94086
94137
  import { spawnSync as spawnSync6 } from "node:child_process";
94087
- var MINE3 = true ? "0.2.65" : "0.0.0";
94138
+ var MINE3 = true ? "0.2.67" : "0.0.0";
94088
94139
  var layout = installLayout();
94089
94140
  function completeInstall() {
94090
94141
  if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@metaphi-ai/hum",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "description": "Hum: a self-improving coding agent for your terminal.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "bin": { "hum": "bin/hum.js" },
8
8
  "files": ["bin", "dist", "scripts"],
9
9
  "scripts": { "postinstall": "node scripts/postinstall.js" },
10
- "engines": { "node": "v26.12.0" },
10
+ "engines": { "node": "26.12.1" },
11
11
  "repository": { "type": "git", "url": "git+https://github.com/metaphi-labs/hum.git" }
12
12
  }