@wisemen/vue-core-actions 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -319,46 +319,51 @@ function Te(e) {
319
319
  return e;
320
320
  }
321
321
  //#endregion
322
+ //#region src/utils/isPromise.util.ts
323
+ function Ee(e) {
324
+ return typeof e?.then == "function";
325
+ }
326
+ //#endregion
322
327
  //#region src/utils/resolveActions.util.ts
323
- var Ee = /[\s\-_./]+/;
324
- async function De(e, t, n, r) {
325
- let i = t.searchInput.length, a = i >= 0, o = Ae(e);
328
+ var De = /[\s\-_./]+/;
329
+ async function Oe(e, t, n, r) {
330
+ let i = t.searchInput.length, a = i >= 0, o = Me(e);
326
331
  if (a) {
327
332
  let e = [], a = [], s = [...o];
328
333
  for (; s.length > 0;) {
329
334
  let n = s.shift();
330
- if (e.push(n), !M(n, t)) continue;
331
- let r = Le(n, t), o = i >= (r?.minLength ?? 2);
335
+ if (e.push(n), !j(n, t)) continue;
336
+ let r = I(n, t), o = i >= (r?.minLength ?? 2);
332
337
  if (n.subActions !== void 0 && o) {
333
338
  let e = r?.maxResults ?? 99, i = n.subActions(t);
334
339
  if (Array.isArray(i)) {
335
- let t = je(i.slice(0, e), n);
340
+ let t = Ne(i.slice(0, e), n);
336
341
  s.push(...t);
337
- } else if (Oe(i)) {
338
- let t = je(i.actions.slice(0, e), n);
342
+ } else if (Ae(i)) {
343
+ let t = Ne(i.actions.slice(0, e), n);
339
344
  s.push(...t);
340
345
  } else {
341
346
  let t = n;
342
- a.push(async () => je(await ke(i, e), t));
347
+ a.push(async () => Ne(await je(i, e), t));
343
348
  }
344
349
  }
345
350
  }
346
351
  if (a.length > 0 && n !== void 0) {
347
- n(j(e, t, r));
352
+ n(ke(e, t, r));
348
353
  let i = [...e];
349
354
  return await Promise.all(a.map(async (e) => {
350
355
  let a = await e();
351
- i.push(...a), n(j(i, t, r));
352
- })), j(i, t, r);
356
+ i.push(...a), n(ke(i, t, r));
357
+ })), ke(i, t, r);
353
358
  }
354
359
  let c = (await Promise.all(a.map((e) => e()))).flat();
355
360
  o = [...e, ...c];
356
361
  }
357
- return j(o, t, r);
362
+ return ke(o, t, r);
358
363
  }
359
- function j(e, t, n) {
364
+ function ke(e, t, n) {
360
365
  let r = t.searchInput.length >= 0, i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = [];
361
- for (let n of e) if (M(n, t)) {
366
+ for (let n of e) if (j(n, t)) {
362
367
  if (n.id !== void 0) {
363
368
  if (a.has(n.id)) continue;
364
369
  a.add(n.id);
@@ -372,43 +377,44 @@ function j(e, t, n) {
372
377
  if (r) {
373
378
  let e = o.map((e) => ({
374
379
  action: e,
375
- score: Me(e, t.searchInput, t)
380
+ score: Pe(e, t.searchInput, t)
376
381
  })).filter(({ score: e }) => e >= be);
377
382
  return e = e.toSorted((e, r) => {
378
383
  let i = e.action.parentAction === void 0 ? 0 : 1, a = r.action.parentAction === void 0 ? 0 : 1;
379
384
  if (i !== a) return i - a;
380
- let o = e.action.parentAction ?? n, s = r.action.parentAction ?? n, c = o?.showSelectedSubActionsFirst !== !1 && I(e.action, t) ? 0 : 1, l = s?.showSelectedSubActionsFirst !== !1 && I(r.action, t) ? 0 : 1;
385
+ let o = e.action.parentAction ?? n, s = r.action.parentAction ?? n, c = o?.showSelectedSubActionsFirst !== !1 && F(e.action, t) ? 0 : 1, l = s?.showSelectedSubActionsFirst !== !1 && F(r.action, t) ? 0 : 1;
381
386
  if (c !== l) return c - l;
382
387
  let u = r.score - e.score;
383
388
  if (Math.abs(u) > .05) return u;
384
- let d = N(e.action, t), f = N(r.action, t);
389
+ let d = M(e.action, t), f = M(r.action, t);
385
390
  return d === f ? u : d - f;
386
391
  }), e.map((e) => e.action);
387
392
  }
388
393
  let s = n?.showSelectedSubActionsFirst !== !1;
389
394
  return o.sort((e, n) => {
390
- let r = s && I(e, t) ? 0 : 1, i = s && I(n, t) ? 0 : 1;
391
- return r === i ? N(e, t) - N(n, t) : r - i;
395
+ let r = s && F(e, t) ? 0 : 1, i = s && F(n, t) ? 0 : 1;
396
+ return r === i ? M(e, t) - M(n, t) : r - i;
392
397
  });
393
398
  }
394
- function Oe(e) {
399
+ function Ae(e) {
395
400
  return typeof e == "object" && !!e && "actions" in e && "pagination" in e && Array.isArray(e.actions);
396
401
  }
397
- async function ke(e, t) {
398
- if (e instanceof Promise) {
402
+ async function je(e, t) {
403
+ if (Ee(e)) {
399
404
  let n = await e;
400
- return Oe(n) ? n.actions.slice(0, t) : n.slice(0, t);
405
+ return Ae(n) ? n.actions.slice(0, t) : n.slice(0, t);
401
406
  }
407
+ if (e == null || !(Symbol.asyncIterator in e)) return [];
402
408
  let n = [];
403
409
  for await (let r of e) if (n.push(r), n.length >= t) break;
404
410
  return n;
405
411
  }
406
- function Ae(e) {
412
+ function Me(e) {
407
413
  let t = [];
408
414
  for (let n of e) typeof n == "function" ? t.push(...n()) : t.push(n);
409
415
  return t;
410
416
  }
411
- function je(e, t) {
417
+ function Ne(e, t) {
412
418
  let n = t.rootAction ?? t;
413
419
  return e.map((e) => ({
414
420
  ...e,
@@ -418,50 +424,50 @@ function je(e, t) {
418
424
  onlyVisibleThroughSearch: !0
419
425
  }));
420
426
  }
421
- function M(e, t) {
427
+ function j(e, t) {
422
428
  return !(!Ce.value && e.availableWhenUnauthenticated !== !0 || e.isApplicable !== void 0 && !e.isApplicable(t) || t.menuType === "commandMenu" && e.disabledReason !== void 0 && typeof e.disabledReason(t) == "string" || e.onlyVisibleThroughSearch && t.menuType !== void 0 && t.searchInput.length === 0);
423
429
  }
424
- function N(e, t) {
430
+ function M(e, t) {
425
431
  let n = e.group?.priority ?? null;
426
432
  return n === null ? 9999 : typeof n == "function" ? n(t) : n;
427
433
  }
428
- function Me(e, t, n) {
434
+ function Pe(e, t, n) {
429
435
  if (t.trim().length === 0 || e.skipFilterScoring) return 1;
430
- let r = F(e, n), i = Ne(e, n);
436
+ let r = P(e, n), i = Fe(e, n);
431
437
  if (e.keywordsExactMatch) {
432
438
  let t = Array.isArray(e.keywordsExactMatch) ? e.keywordsExactMatch : [e.keywordsExactMatch];
433
439
  if (t.some((e) => r.toLowerCase().includes(e.toLowerCase())) || t.some((e) => i.toLowerCase().includes(e.toLowerCase()))) return 1;
434
440
  }
435
- let a = Pe(r, t), o = Pe(i, t) * xe, s = Math.max(a, o);
441
+ let a = Ie(r, t), o = Ie(i, t) * xe, s = Math.max(a, o);
436
442
  return s < .24 && (r.toLowerCase().includes(t.toLowerCase()) ? s = .29 : i.toLowerCase().includes(t.toLowerCase()) && (s = .245)), e.parentAction && (s += Se), e.scoreOverride !== void 0 && (s = e.scoreOverride), e.sortPriority !== void 0 && (s -= e.sortPriority * 1e-4), s;
437
443
  }
438
- function Ne(e, t) {
444
+ function Fe(e, t) {
439
445
  let n = [], r = e.parentScoreInfluence ?? "all";
440
446
  if (r !== "none") {
441
447
  let i = e.parentAction;
442
448
  if (r === "all") for (; i;) {
443
- let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : F(i, t);
449
+ let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : P(i, t);
444
450
  n.push(e), i = i.parentAction;
445
451
  }
446
452
  if (r === "direct" && e.parentAction !== void 0) {
447
- let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : F(r, t);
453
+ let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : P(r, t);
448
454
  n.push(i);
449
455
  }
450
456
  }
451
- if (n.push(F(e, t)), e.keywords !== void 0) {
457
+ if (n.push(P(e, t)), e.keywords !== void 0) {
452
458
  let t = Array.isArray(e.keywords) ? e.keywords : [e.keywords];
453
459
  n.push(...t);
454
460
  }
455
461
  return n.join(" ");
456
462
  }
457
- function Pe(e, t) {
463
+ function Ie(e, t) {
458
464
  if (!e || !t) return 0;
459
465
  let n = e.toLowerCase().trim(), r = t.toLowerCase().trim();
460
466
  if (!r || n === r) return 1;
461
467
  if (n.startsWith(r)) return .92 - Math.min(.12, (n.length - r.length) * .002);
462
468
  let i = n.indexOf(r);
463
469
  if (i !== -1) return .82 - Math.min(.12, i * .004);
464
- let a = n.split(Ee);
470
+ let a = n.split(De);
465
471
  if (a.some((e) => e.startsWith(r))) return .68;
466
472
  let o = a.map((e) => e[0] ?? "").join("");
467
473
  if (o === r || o.startsWith(r)) return .6;
@@ -473,34 +479,34 @@ function Pe(e, t) {
473
479
  let h = d - u + 1, g = (1 - u / s) * .3 + c / h * .35 + c / s * .2 + Math.min(m, .15);
474
480
  return Math.min(.55, Math.max(0, g));
475
481
  }
476
- function P(e, t) {
482
+ function N(e, t) {
477
483
  return typeof e == "function" ? e(t) : e;
478
484
  }
479
- function F(e, t) {
485
+ function P(e, t) {
480
486
  return typeof e.name == "function" ? e.name(t) : e.name;
481
487
  }
482
- function Fe(e, t) {
488
+ function Le(e, t) {
483
489
  return typeof e.avatar == "function" ? e.avatar(t) : e.avatar ?? null;
484
490
  }
485
- function Ie(e, t) {
491
+ function Re(e, t) {
486
492
  return typeof e.hint == "function" ? e.hint(t) : e.hint ?? null;
487
493
  }
488
- function I(e, t) {
494
+ function F(e, t) {
489
495
  return typeof e.selected == "function" ? e.selected(t) : e.selected ?? null;
490
496
  }
491
- function Le(e, t) {
497
+ function I(e, t) {
492
498
  return typeof e.searchSubActionsConfig == "function" ? e.searchSubActionsConfig(t) : e.searchSubActionsConfig ?? null;
493
499
  }
494
- function Re(e, t) {
500
+ function ze(e, t) {
495
501
  return typeof e.preview == "function" ? e.preview(t) : null;
496
502
  }
497
503
  //#endregion
498
504
  //#region src/composables/actionPreview.composable.ts
499
- function ze({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
505
+ function Be({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
500
506
  let i = p(!1), a = t(() => {
501
507
  if (e.value === null || !i.value) return null;
502
508
  let t = r.value.find((t) => t.id === e.value) ?? null;
503
- return t === null ? null : Re(t, n());
509
+ return t === null ? null : ze(t, n());
504
510
  });
505
511
  function o() {
506
512
  i.value = !0;
@@ -522,7 +528,7 @@ function ze({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
522
528
  }
523
529
  //#endregion
524
530
  //#region src/composables/isSelectorVisible.composable.ts
525
- function Be(e) {
531
+ function Ve(e) {
526
532
  let t = p(!1), n = null;
527
533
  function r() {
528
534
  t.value = document.querySelector(e) !== null;
@@ -538,15 +544,15 @@ function Be(e) {
538
544
  }
539
545
  //#endregion
540
546
  //#region src/stores/actionManager.store.ts
541
- async function Ve(e, t, n) {
547
+ async function He(e, t, n) {
542
548
  e.execute !== void 0 && (await e.execute(t), n?.onComplete?.());
543
549
  }
544
- function He(e) {
550
+ function Ue(e) {
545
551
  let t = /* @__PURE__ */ new Set();
546
552
  return e.filter((e) => t.has(e) ? !1 : (t.add(e), !0));
547
553
  }
548
554
  var L = y("actionManager", () => {
549
- let e = p([]), t = p([]), n = p({}), r = x(), i = b(), a = Be("[data-dialog]:not([data-command-menu])");
555
+ let e = p([]), t = p([]), n = p({}), r = x(), i = b(), a = Ve("[data-dialog]:not([data-command-menu])");
550
556
  function o(e) {
551
557
  n.value = {
552
558
  ...n.value,
@@ -564,7 +570,7 @@ var L = y("actionManager", () => {
564
570
  t.value = e;
565
571
  }
566
572
  function u(o) {
567
- let s = He([
573
+ let s = Ue([
568
574
  ...o.models ?? [],
569
575
  ...t.value,
570
576
  ...e.value
@@ -597,7 +603,7 @@ var L = y("actionManager", () => {
597
603
  }
598
604
  return {
599
605
  actionContext: u,
600
- executeAction: Ve,
606
+ executeAction: He,
601
607
  focusedModels: e,
602
608
  metadata: n,
603
609
  registerMetadata: o,
@@ -615,38 +621,38 @@ function R(e) {
615
621
  function z(e, t, n) {
616
622
  return R(t) ? (e.id && (n[e.id] = t.pagination.nextOffset), t.actions) : (e.id && delete n[e.id], t);
617
623
  }
618
- async function Ue(e, t, n, r = 297) {
624
+ async function We(e, t, n, r = 297) {
619
625
  if (e.subActions === void 0) return [];
620
626
  let i = e.subActions(t);
621
627
  if (Array.isArray(i) || R(i)) return z(e, i, n);
622
- if (i instanceof Promise) return z(e, await i, n);
628
+ if (Ee(i)) return z(e, await i, n);
623
629
  let a = [];
624
630
  for await (let e of i) if (a.push(e), a.length >= r) break;
625
631
  return a;
626
632
  }
627
633
  //#endregion
628
634
  //#region src/composables/actionDropdownMenuContent.composable.ts
629
- function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContainerRef: a }) {
635
+ function Ge({ actions: e, metadata: n, models: r, parentAction: i, scrollContainerRef: a }) {
630
636
  let o = v(), s = L(), c = p(null), l = p(""), u = p(""), d = p(!1), f = p([]), m = p({}), h = p(!0), g = 0, y = t(() => s.actionContext({
631
637
  menuType: "contextualMenu",
632
638
  metadata: n.value,
633
639
  models: r.value,
634
640
  searchInput: u.value
635
- })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = ze({
641
+ })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = Be({
636
642
  highlightedActionId: c,
637
643
  getContext: () => y.value,
638
644
  resolvedActions: f
639
645
  }), w = t(() => {
640
646
  if (i.value == null) return o.t("search");
641
- let e = Le(i.value, y.value)?.placeholder;
647
+ let e = I(i.value, y.value)?.placeholder;
642
648
  return e === void 0 ? o.t("search") : typeof e == "function" ? e() : e;
643
649
  });
644
650
  async function T() {
645
651
  let t = ++g, n = y.value;
646
652
  try {
647
653
  let r = e.value;
648
- i.value?.subActions !== void 0 && (r = await Ue(i.value, n, m.value));
649
- let a = await De(r, n, (e) => {
654
+ i.value?.subActions !== void 0 && (r = await We(i.value, n, m.value));
655
+ let a = await Oe(r, n, (e) => {
650
656
  t !== g || e.length === 0 || (f.value = e);
651
657
  }, i.value ?? void 0);
652
658
  if (t !== g) return;
@@ -670,7 +676,7 @@ function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
670
676
  subActionsMeta: { [e.id]: t }
671
677
  }), o = e.subActions(a), c;
672
678
  if (Array.isArray(o) || R(o)) c = o;
673
- else if (o instanceof Promise) c = await o;
679
+ else if (Ee(o)) c = await o;
674
680
  else {
675
681
  let e = [];
676
682
  for await (let t of o) e.push(t);
@@ -717,7 +723,7 @@ function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
717
723
  var B = /* @__PURE__ */ function(e) {
718
724
  return e[e.HOVER = 1] = "HOVER", e[e.VIEW = 2] = "VIEW", e[e.MODEL = 3] = "MODEL", e[e.GENERAL = 4] = "GENERAL", e[e.NAVIGATION = 5] = "NAVIGATION", e[e.PREFERENCES = 6] = "PREFERENCES", e[e.ACCOUNT = 7] = "ACCOUNT", e[e.DEVELOPER = 8] = "DEVELOPER", e;
719
725
  }({});
720
- function Ge() {
726
+ function Ke() {
721
727
  let e = v();
722
728
  return {
723
729
  account: {
@@ -744,9 +750,9 @@ function Ge() {
744
750
  }
745
751
  //#endregion
746
752
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/HotkeysProviderContext.js
747
- var Ke = Symbol("HotkeysContext");
748
- function qe() {
749
- return i(Ke, null)?.defaultOptions ?? {};
753
+ var qe = Symbol("HotkeysContext");
754
+ function Je() {
755
+ return i(qe, null)?.defaultOptions ?? {};
750
756
  }
751
757
  //#endregion
752
758
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/constants.js
@@ -788,10 +794,10 @@ var U = {
788
794
  commandorcontrol: "Mod",
789
795
  mod: "Mod"
790
796
  };
791
- function Je(e, t = V()) {
797
+ function Ye(e, t = V()) {
792
798
  return e === "Mod" ? t === "mac" ? "Meta" : "Control" : e;
793
799
  }
794
- var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = new Set([
800
+ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = new Set([
795
801
  "0",
796
802
  "1",
797
803
  "2",
@@ -802,7 +808,7 @@ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = n
802
808
  "7",
803
809
  "8",
804
810
  "9"
805
- ]), Ze = new Set([
811
+ ]), Qe = new Set([
806
812
  "F1",
807
813
  "F2",
808
814
  "F3",
@@ -815,7 +821,7 @@ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = n
815
821
  "F10",
816
822
  "F11",
817
823
  "F12"
818
- ]), Qe = new Set([
824
+ ]), $e = new Set([
819
825
  "ArrowUp",
820
826
  "ArrowDown",
821
827
  "ArrowLeft",
@@ -824,14 +830,14 @@ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = n
824
830
  "End",
825
831
  "PageUp",
826
832
  "PageDown"
827
- ]), $e = new Set([
833
+ ]), et = new Set([
828
834
  "Enter",
829
835
  "Escape",
830
836
  "Space",
831
837
  "Tab",
832
838
  "Backspace",
833
839
  "Delete"
834
- ]), et = new Set([
840
+ ]), tt = new Set([
835
841
  "/",
836
842
  "[",
837
843
  "]",
@@ -842,7 +848,7 @@ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = n
842
848
  ".",
843
849
  ";",
844
850
  "`"
845
- ]), tt = {
851
+ ]), nt = {
846
852
  Backquote: "`",
847
853
  Backslash: "\\",
848
854
  BracketLeft: "[",
@@ -855,14 +861,14 @@ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = n
855
861
  Slash: "/"
856
862
  };
857
863
  new Set([
858
- ...Ye,
859
864
  ...Xe,
860
865
  ...Ze,
861
866
  ...Qe,
862
867
  ...$e,
863
- ...et
868
+ ...et,
869
+ ...tt
864
870
  ]);
865
- var nt = {
871
+ var rt = {
866
872
  Esc: "Escape",
867
873
  esc: "Escape",
868
874
  escape: "Escape",
@@ -899,13 +905,13 @@ var nt = {
899
905
  pgup: "PageUp",
900
906
  pgdn: "PageDown"
901
907
  };
902
- function rt(e) {
908
+ function it(e) {
903
909
  return /^\p{Letter}$/u.test(e);
904
910
  }
905
911
  function W(e) {
906
912
  if (!e) return "";
907
- if (e in nt) return nt[e];
908
- if (rt(e)) {
913
+ if (e in rt) return rt[e];
914
+ if (it(e)) {
909
915
  let t = e.toUpperCase();
910
916
  return t.length === 1 ? t : e;
911
917
  }
@@ -922,7 +928,7 @@ function G(e, t = V()) {
922
928
  else {
923
929
  let e = U[a] ?? U[a.toLowerCase()];
924
930
  if (e) {
925
- let n = Je(e, t);
931
+ let n = Ye(e, t);
926
932
  r.add(n);
927
933
  } else n.length === 1 && (i = W(a));
928
934
  }
@@ -936,9 +942,9 @@ function G(e, t = V()) {
936
942
  modifiers: H.filter((e) => r.has(e))
937
943
  };
938
944
  }
939
- function it(e, t = V()) {
945
+ function at(e, t = V()) {
940
946
  let n = e.ctrl ?? !1, r = e.shift ?? !1, i = e.alt ?? !1, a = e.meta ?? !1;
941
- e.mod && (Je("Mod", t) === "Control" ? n = !0 : a = !0);
947
+ e.mod && (Ye("Mod", t) === "Control" ? n = !0 : a = !0);
942
948
  let o = H.filter((e) => {
943
949
  switch (e) {
944
950
  case "Control": return n;
@@ -957,30 +963,30 @@ function it(e, t = V()) {
957
963
  modifiers: o
958
964
  };
959
965
  }
960
- function at(e, t) {
966
+ function ot(e, t) {
961
967
  let n = t === "mac" ? e.meta && !e.ctrl : e.ctrl && !e.meta, r = [];
962
968
  if (n) r.push("Mod"), e.alt && r.push("Alt"), e.shift && r.push("Shift");
963
969
  else for (let t of H) e.modifiers.includes(t) && r.push(t);
964
970
  return r.push(W(e.key)), r.join("+");
965
971
  }
966
- function ot(e, t = V()) {
967
- return at(G(e, t), t);
968
- }
969
972
  function st(e, t = V()) {
970
- return at(e, t);
973
+ return ot(G(e, t), t);
971
974
  }
972
975
  function ct(e, t = V()) {
973
- return typeof e == "string" ? ot(e, t) : st(it(e, t), t);
976
+ return ot(e, t);
977
+ }
978
+ function lt(e, t = V()) {
979
+ return typeof e == "string" ? st(e, t) : ct(at(e, t), t);
974
980
  }
975
- function lt(e) {
981
+ function ut(e) {
976
982
  return e in U || e.toLowerCase() in U;
977
983
  }
978
984
  //#endregion
979
985
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/format.js
980
- function ut(e) {
986
+ function dt(e) {
981
987
  return e.join(" ");
982
988
  }
983
- function dt(e) {
989
+ function ft(e) {
984
990
  let t = [];
985
991
  for (let n of H) e.modifiers.includes(n) && t.push(n);
986
992
  return t.push(e.key), t.join("+");
@@ -993,7 +999,7 @@ function K(e, t, n = V()) {
993
999
  let i = W(e.key), a = r.key;
994
1000
  if (i !== "Dead" && i.length === 1 && a.length === 1) {
995
1001
  if (i.toUpperCase() === a.toUpperCase()) return !0;
996
- if (rt(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
1002
+ if (it(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
997
1003
  }
998
1004
  if (e.code && (i === "Dead" || i.length === 1 && a.length === 1)) {
999
1005
  if (e.code.startsWith("Key")) {
@@ -1004,13 +1010,13 @@ function K(e, t, n = V()) {
1004
1010
  let t = e.code.slice(5);
1005
1011
  if (t.length === 1 && /^[0-9]$/.test(t)) return t === a;
1006
1012
  }
1007
- return e.code in tt ? tt[e.code] === a : !1;
1013
+ return e.code in nt ? nt[e.code] === a : !1;
1008
1014
  }
1009
1015
  return i === a;
1010
1016
  }
1011
1017
  //#endregion
1012
1018
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/manager.utils.js
1013
- var ft = {
1019
+ var pt = {
1014
1020
  preventDefault: !0,
1015
1021
  stopPropagation: !0,
1016
1022
  eventType: "keydown",
@@ -1018,10 +1024,10 @@ var ft = {
1018
1024
  ignoreInputs: !0,
1019
1025
  conflictBehavior: "warn"
1020
1026
  };
1021
- function pt(e) {
1027
+ function mt(e) {
1022
1028
  return !(e.ctrl || e.meta || e.key === "Escape");
1023
1029
  }
1024
- function mt(e) {
1030
+ function ht(e) {
1025
1031
  if (!e) return !1;
1026
1032
  if (e instanceof HTMLInputElement) {
1027
1033
  let t = e.type.toLowerCase();
@@ -1029,17 +1035,17 @@ function mt(e) {
1029
1035
  }
1030
1036
  return !!(e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement || e instanceof HTMLElement && e.isContentEditable);
1031
1037
  }
1032
- function ht(e) {
1038
+ function gt(e) {
1033
1039
  return typeof document > "u" ? null : typeof Document < "u" && e instanceof Document || typeof Node < "u" && e.nodeType === Node.DOCUMENT_NODE ? e.activeElement : typeof HTMLElement < "u" && e instanceof HTMLElement ? e.ownerDocument.activeElement ?? null : e.document.activeElement ?? null;
1034
1040
  }
1035
- function gt(e, t, n) {
1036
- let r = ht(t);
1037
- return r && mt(r) && r !== n || e.composedPath().some((e) => mt(e) && e !== n) ? !0 : mt(e.target) && e.target !== n;
1041
+ function _t(e, t, n) {
1042
+ let r = gt(t);
1043
+ return r && ht(r) && r !== n || e.composedPath().some((e) => ht(e) && e !== n) ? !0 : ht(e.target) && e.target !== n;
1038
1044
  }
1039
- function _t(e, t) {
1045
+ function vt(e, t) {
1040
1046
  return t === document || t === window ? e.currentTarget === t || e.currentTarget === document.documentElement : t === window ? e.currentTarget === window || e.currentTarget === document || e.currentTarget === document.documentElement : !!(t instanceof HTMLElement && (e.currentTarget === t || e.target instanceof Node && t.contains(e.target)));
1041
1047
  }
1042
- function vt(e, t, n, r) {
1048
+ function yt(e, t, n, r) {
1043
1049
  if (n !== "allow") {
1044
1050
  if (n === "warn") {
1045
1051
  console.warn(`'${t}' is already registered. Multiple handlers will be triggered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to suppress this warning.`);
@@ -1055,7 +1061,7 @@ var q = /* @__PURE__ */ function(e) {
1055
1061
  return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
1056
1062
  }({});
1057
1063
  /* @__NO_SIDE_EFFECTS__ */
1058
- function yt({ update: e, notify: t, unwatched: n }) {
1064
+ function bt({ update: e, notify: t, unwatched: n }) {
1059
1065
  return {
1060
1066
  link: r,
1061
1067
  unlink: i,
@@ -1174,7 +1180,7 @@ function yt({ update: e, notify: t, unwatched: n }) {
1174
1180
  }
1175
1181
  //#endregion
1176
1182
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/atom.js
1177
- function bt(e, t, n) {
1183
+ function xt(e, t, n) {
1178
1184
  let r = typeof e == "object", i = r ? e : void 0;
1179
1185
  return {
1180
1186
  next: (r ? e.next : e)?.bind(i),
@@ -1182,31 +1188,31 @@ function bt(e, t, n) {
1182
1188
  complete: (r ? e.complete : n)?.bind(i)
1183
1189
  };
1184
1190
  }
1185
- var xt = [], J = 0, { link: St, unlink: Ct, propagate: wt, checkDirty: Tt, shallowPropagate: Et } = /* @__PURE__ */ yt({
1191
+ var St = [], J = 0, { link: Ct, unlink: wt, propagate: Tt, checkDirty: Et, shallowPropagate: Dt } = /* @__PURE__ */ bt({
1186
1192
  update(e) {
1187
1193
  return e._update();
1188
1194
  },
1189
1195
  notify(e) {
1190
- xt[Dt++] = e, e.flags &= ~q.Watching;
1196
+ St[Ot++] = e, e.flags &= ~q.Watching;
1191
1197
  },
1192
1198
  unwatched(e) {
1193
1199
  e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = q.Mutable | q.Dirty, Z(e));
1194
1200
  }
1195
- }), Y = 0, Dt = 0, X, Ot = 0;
1201
+ }), Y = 0, Ot = 0, X, kt = 0;
1196
1202
  function Z(e) {
1197
1203
  let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
1198
- for (; n !== void 0;) n = Ct(n, e);
1204
+ for (; n !== void 0;) n = wt(n, e);
1199
1205
  }
1200
- function kt() {
1201
- if (!(Ot > 0)) {
1202
- for (; Y < Dt;) {
1203
- let e = xt[Y];
1204
- xt[Y++] = void 0, e.notify();
1206
+ function At() {
1207
+ if (!(kt > 0)) {
1208
+ for (; Y < Ot;) {
1209
+ let e = St[Y];
1210
+ St[Y++] = void 0, e.notify();
1205
1211
  }
1206
- Y = 0, Dt = 0;
1212
+ Y = 0, Ot = 0;
1207
1213
  }
1208
1214
  }
1209
- function At(e, t) {
1215
+ function jt(e, t) {
1210
1216
  let n = typeof e == "function", r = e, i = {
1211
1217
  _snapshot: n ? void 0 : e,
1212
1218
  subs: void 0,
@@ -1215,10 +1221,10 @@ function At(e, t) {
1215
1221
  depsTail: void 0,
1216
1222
  flags: n ? q.None : q.Mutable,
1217
1223
  get() {
1218
- return X !== void 0 && St(i, X, J), i._snapshot;
1224
+ return X !== void 0 && Ct(i, X, J), i._snapshot;
1219
1225
  },
1220
1226
  subscribe(e) {
1221
- let t = bt(e), n = { current: !1 }, r = jt(() => {
1227
+ let t = xt(e), n = { current: !1 }, r = Mt(() => {
1222
1228
  i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
1223
1229
  });
1224
1230
  return { unsubscribe: () => {
@@ -1240,21 +1246,21 @@ function At(e, t) {
1240
1246
  };
1241
1247
  return n ? (i.flags = q.Mutable | q.Dirty, i.get = function() {
1242
1248
  let e = i.flags;
1243
- if (e & q.Dirty || e & q.Pending && Tt(i.deps, i)) {
1249
+ if (e & q.Dirty || e & q.Pending && Et(i.deps, i)) {
1244
1250
  if (i._update()) {
1245
1251
  let e = i.subs;
1246
- e !== void 0 && Et(e);
1252
+ e !== void 0 && Dt(e);
1247
1253
  }
1248
1254
  } else e & q.Pending && (i.flags = e & ~q.Pending);
1249
- return X !== void 0 && St(i, X, J), i._snapshot;
1255
+ return X !== void 0 && Ct(i, X, J), i._snapshot;
1250
1256
  }) : i.set = function(e) {
1251
1257
  if (i._update(e)) {
1252
1258
  let e = i.subs;
1253
- e !== void 0 && (wt(e), Et(e), kt());
1259
+ e !== void 0 && (Tt(e), Dt(e), At());
1254
1260
  }
1255
1261
  }, i;
1256
1262
  }
1257
- function jt(e) {
1263
+ function Mt(e) {
1258
1264
  let t = () => {
1259
1265
  let t = X;
1260
1266
  X = n, ++J, n.depsTail = void 0, n.flags = q.Watching | q.RecursedCheck;
@@ -1271,7 +1277,7 @@ function jt(e) {
1271
1277
  flags: q.Watching | q.RecursedCheck,
1272
1278
  notify() {
1273
1279
  let e = this.flags;
1274
- e & q.Dirty || e & q.Pending && Tt(this.deps, this) ? t() : this.flags = q.Watching;
1280
+ e & q.Dirty || e & q.Pending && Et(this.deps, this) ? t() : this.flags = q.Watching;
1275
1281
  },
1276
1282
  stop() {
1277
1283
  this.flags = q.None, this.depsTail = void 0, Z(this);
@@ -1281,9 +1287,9 @@ function jt(e) {
1281
1287
  }
1282
1288
  //#endregion
1283
1289
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.js
1284
- var Mt = class {
1290
+ var Nt = class {
1285
1291
  constructor(e, t) {
1286
- this.atom = At(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
1292
+ this.atom = jt(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
1287
1293
  }
1288
1294
  setState(e) {
1289
1295
  this.atom.set(e);
@@ -1295,19 +1301,19 @@ var Mt = class {
1295
1301
  return this.state;
1296
1302
  }
1297
1303
  subscribe(e) {
1298
- return this.atom.subscribe(bt(e));
1304
+ return this.atom.subscribe(xt(e));
1299
1305
  }
1300
- }, Nt = 0;
1301
- function Pt() {
1302
- return `hotkey_${++Nt}`;
1306
+ }, Pt = 0;
1307
+ function Ft() {
1308
+ return `hotkey_${++Pt}`;
1303
1309
  }
1304
- var Ft = class e {
1310
+ var It = class e {
1305
1311
  static #e = null;
1306
1312
  #t;
1307
1313
  #n = /* @__PURE__ */ new Map();
1308
1314
  #r = /* @__PURE__ */ new Map();
1309
1315
  constructor() {
1310
- this.registrations = new Mt(/* @__PURE__ */ new Map()), this.#t = V();
1316
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#t = V();
1311
1317
  }
1312
1318
  static getInstance() {
1313
1319
  return e.#e ||= new e(), e.#e;
@@ -1319,7 +1325,7 @@ var Ft = class e {
1319
1325
  if (typeof document > "u" && !n.target) {
1320
1326
  let e = t;
1321
1327
  return {
1322
- id: Pt(),
1328
+ id: Ft(),
1323
1329
  unregister: () => {},
1324
1330
  get callback() {
1325
1331
  return e;
@@ -1333,15 +1339,15 @@ var Ft = class e {
1333
1339
  }
1334
1340
  };
1335
1341
  }
1336
- let r = Pt(), i = n.platform ?? this.#t, a = typeof e == "string" ? G(e, i) : it(e, i), o = typeof e == "string" ? e : dt(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
1337
- l && vt(l.id, o, c, (e) => this.#i(e));
1338
- let u = n.ignoreInputs ?? pt(a), d = {
1342
+ let r = Ft(), i = n.platform ?? this.#t, a = typeof e == "string" ? G(e, i) : at(e, i), o = typeof e == "string" ? e : ft(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
1343
+ l && yt(l.id, o, c, (e) => this.#i(e));
1344
+ let u = n.ignoreInputs ?? mt(a), d = {
1339
1345
  id: r,
1340
1346
  hotkey: o,
1341
1347
  parsedHotkey: a,
1342
1348
  callback: t,
1343
1349
  options: {
1344
- ...ft,
1350
+ ...pt,
1345
1351
  requireReset: !1,
1346
1352
  ...n,
1347
1353
  platform: i,
@@ -1416,7 +1422,7 @@ var Ft = class e {
1416
1422
  let r = this.#r.get(t);
1417
1423
  if (r) for (let i of r) {
1418
1424
  let r = this.registrations.state.get(i);
1419
- if (r && _t(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && gt(e, t, r.target))) if (n === "keydown") {
1425
+ if (r && vt(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && _t(e, t, r.target))) if (n === "keydown") {
1420
1426
  if (r.options.eventType !== "keydown") continue;
1421
1427
  K(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
1422
1428
  } else r.options.eventType === "keyup" && K(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
@@ -1477,19 +1483,19 @@ var Ft = class e {
1477
1483
  this.registrations.setState(() => /* @__PURE__ */ new Map()), this.#n.clear(), this.#r.clear();
1478
1484
  }
1479
1485
  };
1480
- function It() {
1481
- return Ft.getInstance();
1486
+ function Lt() {
1487
+ return It.getInstance();
1482
1488
  }
1483
1489
  //#endregion
1484
1490
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/sequence-manager.js
1485
- var Lt = 1e3, Rt = 0;
1486
- function zt() {
1487
- return `sequence_${++Rt}`;
1491
+ var Rt = 1e3, zt = 0;
1492
+ function Bt() {
1493
+ return `sequence_${++zt}`;
1488
1494
  }
1489
- function Bt(e) {
1495
+ function Vt(e) {
1490
1496
  return e.join("|");
1491
1497
  }
1492
- function Vt(e) {
1498
+ function Ht(e) {
1493
1499
  let t = e.parsedSequence.length, n = e.currentIndex > 0 && e.currentIndex < t;
1494
1500
  return {
1495
1501
  id: e.id,
@@ -1502,14 +1508,14 @@ function Vt(e) {
1502
1508
  partialMatchLastKeyTime: n ? e.lastKeyTime : 0
1503
1509
  };
1504
1510
  }
1505
- var Ht = class e {
1511
+ var Ut = class e {
1506
1512
  static #e = null;
1507
1513
  #t = /* @__PURE__ */ new Map();
1508
1514
  #n = /* @__PURE__ */ new Map();
1509
1515
  #r = /* @__PURE__ */ new Map();
1510
1516
  #i;
1511
1517
  constructor() {
1512
- this.registrations = new Mt(/* @__PURE__ */ new Map()), this.#i = V();
1518
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#i = V();
1513
1519
  }
1514
1520
  static getInstance() {
1515
1521
  return e.#e ||= new e(), e.#e;
@@ -1518,20 +1524,20 @@ var Ht = class e {
1518
1524
  e.#e &&= (e.#e.destroy(), null);
1519
1525
  }
1520
1526
  #a(e) {
1521
- this.registrations.setState((t) => new Map(t).set(e.id, Vt(e)));
1527
+ this.registrations.setState((t) => new Map(t).set(e.id, Ht(e)));
1522
1528
  }
1523
1529
  register(e, t, n = {}) {
1524
1530
  if (e.length === 0) throw Error("Sequence must contain at least one hotkey");
1525
- let r = zt(), i = n.platform ?? this.#i, a = e.map((e) => G(e, i)), o = n.target ?? (typeof document < "u" ? document : {}), s = n.conflictBehavior ?? "warn", c = this.#f(e, o);
1526
- c && vt(c.id, ut(e), s, (e) => this.#o(e));
1527
- let l = a[0], u = n.ignoreInputs ?? pt(l), d = {
1531
+ let r = Bt(), i = n.platform ?? this.#i, a = e.map((e) => G(e, i)), o = n.target ?? (typeof document < "u" ? document : {}), s = n.conflictBehavior ?? "warn", c = this.#f(e, o);
1532
+ c && yt(c.id, dt(e), s, (e) => this.#o(e));
1533
+ let l = a[0], u = n.ignoreInputs ?? mt(l), d = {
1528
1534
  id: r,
1529
1535
  sequence: e,
1530
1536
  parsedSequence: a,
1531
1537
  callback: t,
1532
1538
  options: {
1533
- ...ft,
1534
- timeout: Lt,
1539
+ ...pt,
1540
+ timeout: Rt,
1535
1541
  ...n,
1536
1542
  platform: i,
1537
1543
  ignoreInputs: u
@@ -1542,7 +1548,7 @@ var Ht = class e {
1542
1548
  triggerCount: 0,
1543
1549
  hasFired: !1
1544
1550
  };
1545
- this.#t.set(r, d), this.registrations.setState((e) => new Map(e).set(r, Vt(d))), this.#r.has(o) || this.#r.set(o, /* @__PURE__ */ new Set()), this.#r.get(o).add(r), this.#s(o);
1551
+ this.#t.set(r, d), this.registrations.setState((e) => new Map(e).set(r, Ht(d))), this.#r.has(o) || this.#r.set(o, /* @__PURE__ */ new Set()), this.#r.get(o).add(r), this.#s(o);
1546
1552
  let f = this;
1547
1553
  return {
1548
1554
  get id() {
@@ -1563,7 +1569,7 @@ var Ht = class e {
1563
1569
  t && (t.options = {
1564
1570
  ...t.options,
1565
1571
  ...e
1566
- }, f.registrations.setState((e) => new Map(e).set(r, Vt(t))));
1572
+ }, f.registrations.setState((e) => new Map(e).set(r, Ht(t))));
1567
1573
  },
1568
1574
  unregister: () => {
1569
1575
  f.#o(r);
@@ -1605,14 +1611,14 @@ var Ht = class e {
1605
1611
  };
1606
1612
  }
1607
1613
  #d(e, t, n) {
1608
- if (lt(W(e.key))) return;
1614
+ if (ut(W(e.key))) return;
1609
1615
  let r = this.#r.get(t);
1610
1616
  if (!r) return;
1611
1617
  let i = Date.now();
1612
1618
  registrationIds: for (let a of r) {
1613
1619
  let r = this.#t.get(a);
1614
- if (!r || !_t(e, t) || !r.options.enabled) continue;
1615
- if (r.options.ignoreInputs !== !1 && gt(e, t, r.target)) continue registrationIds;
1620
+ if (!r || !vt(e, t) || !r.options.enabled) continue;
1621
+ if (r.options.ignoreInputs !== !1 && _t(e, t, r.target)) continue registrationIds;
1616
1622
  if (r.options.eventType !== n) continue;
1617
1623
  let o = r.options.timeout ?? 1e3;
1618
1624
  r.currentIndex > 0 && i - r.lastKeyTime > o && (r.currentIndex = 0, this.#a(r));
@@ -1634,8 +1640,8 @@ var Ht = class e {
1634
1640
  }
1635
1641
  }
1636
1642
  #f(e, t) {
1637
- let n = Bt(e);
1638
- for (let e of this.#t.values()) if (Bt(e.sequence) === n && e.target === t) return e;
1643
+ let n = Vt(e);
1644
+ for (let e of this.#t.values()) if (Vt(e.sequence) === n && e.target === t) return e;
1639
1645
  return null;
1640
1646
  }
1641
1647
  resetAll() {
@@ -1670,20 +1676,20 @@ var Ht = class e {
1670
1676
  this.#t.clear(), this.registrations.setState(() => /* @__PURE__ */ new Map());
1671
1677
  }
1672
1678
  };
1673
- function Ut() {
1674
- return Ht.getInstance();
1679
+ function Wt() {
1680
+ return Ut.getInstance();
1675
1681
  }
1676
1682
  //#endregion
1677
1683
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/useHotkeys.js
1678
- function Wt(e, t = {}) {
1679
- let n = qe(), r = It(), i = /* @__PURE__ */ new Map(), a = _(() => {
1684
+ function Gt(e, t = {}) {
1685
+ let n = Je(), r = Lt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1680
1686
  let r = Q(e), i = Q(t);
1681
1687
  return r.map((e, t) => {
1682
1688
  let r = Q(e.hotkey), a = e.options ? Q(e.options) : {}, o = {
1683
1689
  ...n.hotkey,
1684
1690
  ...i,
1685
1691
  ...a
1686
- }, s = ct(r, o.platform ?? V()), c = o.enabled === void 0 ? void 0 : Q(o.enabled), l = o.target === void 0 ? void 0 : Q(o.target);
1692
+ }, s = lt(r, o.platform ?? V()), c = o.enabled === void 0 ? void 0 : Q(o.enabled), l = o.target === void 0 ? void 0 : Q(o.target);
1687
1693
  return {
1688
1694
  index: t,
1689
1695
  hotkeyString: s,
@@ -1742,15 +1748,15 @@ function Q(e) {
1742
1748
  }
1743
1749
  //#endregion
1744
1750
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/useHotkeySequences.js
1745
- function Gt(e, t = {}) {
1746
- let n = qe(), r = Ut(), i = /* @__PURE__ */ new Map(), a = _(() => {
1751
+ function Kt(e, t = {}) {
1752
+ let n = Je(), r = Wt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1747
1753
  let r = $(e), i = $(t);
1748
1754
  return r.map((e, t) => {
1749
1755
  let r = $(e.sequence), a = e.options ? $(e.options) : {}, o = {
1750
1756
  ...n.hotkeySequence,
1751
1757
  ...i,
1752
1758
  ...a
1753
- }, s = ut(r), c = o.enabled === void 0 ? void 0 : $(o.enabled), l = o.target === void 0 ? void 0 : $(o.target);
1759
+ }, s = dt(r), c = o.enabled === void 0 ? void 0 : $(o.enabled), l = o.target === void 0 ? void 0 : $(o.target);
1754
1760
  return {
1755
1761
  index: t,
1756
1762
  resolvedSequence: r,
@@ -1811,7 +1817,7 @@ function $(e) {
1811
1817
  }
1812
1818
  //#endregion
1813
1819
  //#region src/stores/actionRegistry.store.ts
1814
- var Kt = y("actionRegistry", () => {
1820
+ var qt = y("actionRegistry", () => {
1815
1821
  let e = p([]), t = p(/* @__PURE__ */ new Map()), n = 1;
1816
1822
  function r() {
1817
1823
  return [...e.value, ...t.value.values().map((e) => e)];
@@ -1835,14 +1841,14 @@ var Kt = y("actionRegistry", () => {
1835
1841
  });
1836
1842
  //#endregion
1837
1843
  //#region src/composables/actionShortcuts.composable.ts
1838
- function* qt(e, t) {
1844
+ function* Jt(e, t) {
1839
1845
  for (let n of e) {
1840
1846
  if (yield n, n.subActionsHaveKeyboardShortcuts !== !0 || n.subActions === void 0) continue;
1841
1847
  let e = n.subActions(t);
1842
- Array.isArray(e) ? yield* qt(e, t) : typeof e == "object" && e && "actions" in e && Array.isArray(e.actions) && (yield* qt(e.actions, t));
1848
+ Array.isArray(e) ? yield* Jt(e, t) : typeof e == "object" && e && "actions" in e && Array.isArray(e.actions) && (yield* Jt(e.actions, t));
1843
1849
  }
1844
1850
  }
1845
- function Jt(e) {
1851
+ function Yt(e) {
1846
1852
  return [
1847
1853
  e.key,
1848
1854
  e.alt === !0 ? "alt" : "",
@@ -1852,14 +1858,14 @@ function Jt(e) {
1852
1858
  e.shift === !0 ? "shift" : ""
1853
1859
  ].filter(Boolean).join("+");
1854
1860
  }
1855
- function Yt(e) {
1856
- let t = Kt(), n = L();
1861
+ function Xt(e) {
1862
+ let t = qt(), n = L();
1857
1863
  function r(t) {
1858
1864
  return () => {
1859
1865
  let r = e ? e() : n.actionContext({});
1860
1866
  for (let e = t.length - 1; e >= 0; e--) {
1861
1867
  let n = t[e];
1862
- if (!M(n, r)) continue;
1868
+ if (!j(n, r)) continue;
1863
1869
  let i = n.execute?.(r);
1864
1870
  i instanceof Promise && i.catch((e) => {
1865
1871
  console.error("[useActionShortcuts] action.execute threw:", e);
@@ -1868,11 +1874,11 @@ function Yt(e) {
1868
1874
  }
1869
1875
  };
1870
1876
  }
1871
- Wt(() => {
1877
+ Gt(() => {
1872
1878
  let i = /* @__PURE__ */ new Map(), a = e ? e() : n.actionContext({});
1873
- for (let e of qt(t.allActions(), a)) {
1879
+ for (let e of Jt(t.allActions(), a)) {
1874
1880
  if (e.keyboardShortcut === void 0 || "sequence" in e.keyboardShortcut) continue;
1875
- let t = e.keyboardShortcut, n = Jt(t);
1881
+ let t = e.keyboardShortcut, n = Yt(t);
1876
1882
  i.has(n) || i.set(n, []), i.get(n).push(e);
1877
1883
  }
1878
1884
  return Array.from(i.values()).map((e) => {
@@ -1894,9 +1900,9 @@ function Yt(e) {
1894
1900
  }
1895
1901
  };
1896
1902
  });
1897
- }, { conflictBehavior: "allow" }), Gt(() => {
1903
+ }, { conflictBehavior: "allow" }), Kt(() => {
1898
1904
  let i = /* @__PURE__ */ new Map(), a = e ? e() : n.actionContext({});
1899
- for (let e of qt(t.allActions(), a)) {
1905
+ for (let e of Jt(t.allActions(), a)) {
1900
1906
  if (e.keyboardShortcut === void 0 || !("sequence" in e.keyboardShortcut)) continue;
1901
1907
  let t = e.keyboardShortcut.sequence.join(",");
1902
1908
  i.has(t) || i.set(t, []), i.get(t).push(e);
@@ -1917,7 +1923,7 @@ function Yt(e) {
1917
1923
  }
1918
1924
  //#endregion
1919
1925
  //#region src/composables/commandMenuActions.composable.ts
1920
- function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r, listboxRootRef: i, manager: a, navStack: o, searchInput: s }) {
1926
+ function Zt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r, listboxRootRef: i, manager: a, navStack: o, searchInput: s }) {
1921
1927
  let c = p(!1), l = p(!1), u = m([]), d = p({}), f = 0, h = t(() => r.value?.$el);
1922
1928
  function g(e) {
1923
1929
  return a.actionContext({
@@ -1934,9 +1940,9 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1934
1940
  let n = g(), r;
1935
1941
  if (o.value.length > 0) {
1936
1942
  let e = o.value.at(-1);
1937
- r = e.parentAction.subActions === void 0 ? e.actions : await Ue(e.parentAction, n, d.value);
1943
+ r = e.parentAction.subActions === void 0 ? e.actions : await We(e.parentAction, n, d.value);
1938
1944
  } else r = e;
1939
- let i = await De(r, n, (e) => {
1945
+ let i = await Oe(r, n, (e) => {
1940
1946
  t === f && e.length > 0 && (u.value = e);
1941
1947
  }, o.value.at(-1)?.parentAction);
1942
1948
  t === f && (u.value = i);
@@ -1970,7 +1976,7 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1970
1976
  if (t == null) return;
1971
1977
  let n = g({ [e.id]: t }), r = e.subActions(n), i;
1972
1978
  if (Array.isArray(r) || R(r)) i = r;
1973
- else if (r instanceof Promise) i = await r;
1979
+ else if (Ee(r)) i = await r;
1974
1980
  else {
1975
1981
  let e = [];
1976
1982
  for await (let t of r) e.push(t);
@@ -1995,7 +2001,7 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1995
2001
  }
1996
2002
  //#endregion
1997
2003
  //#region src/composables/commandMenuAnimation.composable.ts
1998
- function Zt(e, t) {
2004
+ function Qt(e, t) {
1999
2005
  let n = p(!1), r = p(!1), i = null;
2000
2006
  return _(e, (e) => {
2001
2007
  e || (r.value = !1);
@@ -2012,18 +2018,18 @@ function Zt(e, t) {
2012
2018
  }
2013
2019
  //#endregion
2014
2020
  //#region src/composables/commandMenuNavigation.composable.ts
2015
- function Qt({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, manager: a, navStack: o, refreshActions: s, resolvedActions: c, scrollToTopOfGroup: l, searchInput: u, subActionsMetaMap: d }) {
2021
+ function $t({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, manager: a, navStack: o, refreshActions: s, resolvedActions: c, scrollToTopOfGroup: l, searchInput: u, subActionsMetaMap: d }) {
2016
2022
  let f = v(), m = p(null), h = t(() => o.value.at(-1)?.parentAction ?? null), g = t(() => {
2017
2023
  let e = n();
2018
2024
  return o.value.filter((e) => e.parentAction.forceAsRootMenu !== !0).map((t) => {
2019
2025
  let n = t.parentAction;
2020
- return n.nameAsParent === void 0 ? P(n.name, e) : typeof n.nameAsParent == "function" ? n.nameAsParent(e) : n.nameAsParent;
2026
+ return n.nameAsParent === void 0 ? N(n.name, e) : typeof n.nameAsParent == "function" ? n.nameAsParent(e) : n.nameAsParent;
2021
2027
  });
2022
2028
  }), _ = t(() => {
2023
2029
  if (h.value === null) return f.t("type_a_command_or_search");
2024
- let e = Le(h.value, n())?.placeholder;
2030
+ let e = I(h.value, n())?.placeholder;
2025
2031
  return e === void 0 ? f.t("search") : typeof e == "function" ? e() : e;
2026
- }), { preview: y, onKeyDown: b } = ze({
2032
+ }), { preview: y, onKeyDown: b } = Be({
2027
2033
  highlightedActionId: m,
2028
2034
  getContext: n,
2029
2035
  resolvedActions: c
@@ -2062,11 +2068,11 @@ function Qt({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, ma
2062
2068
  onKeyDown: C
2063
2069
  };
2064
2070
  }
2065
- function $t(e, t) {
2071
+ function en(e, t) {
2066
2072
  let n = [], r = e.parentAction ?? null;
2067
2073
  for (; r !== null;) {
2068
2074
  if (r.forceAsRootMenu === !0) return n;
2069
- let e = r.nameAsParent === void 0 ? F(r, t) : P(r.nameAsParent, t);
2075
+ let e = r.nameAsParent === void 0 ? P(r, t) : N(r.nameAsParent, t);
2070
2076
  n.unshift({
2071
2077
  icon: r.icon?.(t) ?? null,
2072
2078
  label: e
@@ -2076,7 +2082,7 @@ function $t(e, t) {
2076
2082
  }
2077
2083
  //#endregion
2078
2084
  //#region src/composables/focusedModels.composable.ts
2079
- function en(e) {
2085
+ function tn(e) {
2080
2086
  let t = L(), n = p(!1);
2081
2087
  function r() {
2082
2088
  n.value = !0, t.setFocusedModels([...t.focusedModels, ...e.value]);
@@ -2095,8 +2101,8 @@ function en(e) {
2095
2101
  }
2096
2102
  //#endregion
2097
2103
  //#region src/composables/temporaryActions.composable.ts
2098
- function tn(e, t, n = !1) {
2099
- let r = Kt(), i = [];
2104
+ function nn(e, t, n = !1) {
2105
+ let r = qt(), i = [];
2100
2106
  function a() {
2101
2107
  i.length > 0 || (i = (Array.isArray(e) ? e : [e]).map((e) => r.registerTemporaryAction(s(e))));
2102
2108
  }
@@ -2122,7 +2128,7 @@ function tn(e, t, n = !1) {
2122
2128
  }
2123
2129
  //#endregion
2124
2130
  //#region src/composables/activeModels.composable.ts
2125
- function nn(e, t) {
2131
+ function rn(e, t) {
2126
2132
  let n = L();
2127
2133
  function r() {
2128
2134
  t === "focused" ? n.setFocusedModels([...n.focusedModels, ...e.value]) : n.setViewModels([...n.viewModels, ...e.value]);
@@ -2138,23 +2144,23 @@ function nn(e, t) {
2138
2144
  }
2139
2145
  //#endregion
2140
2146
  //#region src/composables/viewModels.composable.ts
2141
- function rn(e) {
2142
- nn(e, "view");
2147
+ function an(e) {
2148
+ rn(e, "view");
2143
2149
  }
2144
2150
  //#endregion
2145
2151
  //#region src/utils/commandMenuGroups.util.ts
2146
- var an = 0, on = /* @__PURE__ */ new WeakMap();
2147
- function sn(e, t) {
2148
- return e === void 0 ? "no-group" : e.name ? P(e.name, t) : (on.has(e) || on.set(e, `unnamed-${an++}`), on.get(e));
2149
- }
2152
+ var on = 0, sn = /* @__PURE__ */ new WeakMap();
2150
2153
  function cn(e, t) {
2154
+ return e === void 0 ? "no-group" : e.name ? N(e.name, t) : (sn.has(e) || sn.set(e, `unnamed-${on++}`), sn.get(e));
2155
+ }
2156
+ function ln(e, t) {
2151
2157
  let n = /* @__PURE__ */ new Map();
2152
2158
  for (let r of e) {
2153
- let e = r.group, i = sn(e, t), a = n.get(i);
2159
+ let e = r.group, i = cn(e, t), a = n.get(i);
2154
2160
  if (a === void 0) {
2155
- let r = e?.name ? P(e.name, t) : null;
2161
+ let r = e?.name ? N(e.name, t) : null;
2156
2162
  a = {
2157
- category: e?.category ? P(e.category, t) : null,
2163
+ category: e?.category ? N(e.category, t) : null,
2158
2164
  icon: e?.icon?.(t) ?? null,
2159
2165
  items: [],
2160
2166
  key: i,
@@ -2167,4 +2173,4 @@ function cn(e, t) {
2167
2173
  return [...n.values()];
2168
2174
  }
2169
2175
  //#endregion
2170
- export { B as GroupPriority, e as actionsLocales, De as applicableActions, cn as buildCommandMenuGroups, Te as createAction, Ce as isAuthenticated, R as isSubActionsWithMeta, Fe as resolveActionAvatar, $t as resolveActionBreadcrumbs, Ie as resolveActionHint, F as resolveActionName, Re as resolveActionPreview, I as resolveActionSelected, P as resolveActionValue, M as resolveApplicable, Le as resolveSearchSubActionsConfig, Ue as resolveSubActions, we as setIsAuthenticated, z as storeSubActionsPagination, We as useActionDropdownMenuContent, Ge as useActionGroup, L as useActionManagerStore, ze as useActionPreview, Kt as useActionRegistryStore, Yt as useActionShortcuts, Xt as useCommandMenuActions, Zt as useCommandMenuAnimation, Qt as useCommandMenuNavigation, en as useFocusedModels, tn as useTemporaryActions, rn as useViewModels };
2176
+ export { B as GroupPriority, e as actionsLocales, Oe as applicableActions, ln as buildCommandMenuGroups, Te as createAction, Ce as isAuthenticated, R as isSubActionsWithMeta, Le as resolveActionAvatar, en as resolveActionBreadcrumbs, Re as resolveActionHint, P as resolveActionName, ze as resolveActionPreview, F as resolveActionSelected, N as resolveActionValue, j as resolveApplicable, I as resolveSearchSubActionsConfig, We as resolveSubActions, we as setIsAuthenticated, z as storeSubActionsPagination, Ge as useActionDropdownMenuContent, Ke as useActionGroup, L as useActionManagerStore, Be as useActionPreview, qt as useActionRegistryStore, Xt as useActionShortcuts, Zt as useCommandMenuActions, Qt as useCommandMenuAnimation, $t as useCommandMenuNavigation, tn as useFocusedModels, nn as useTemporaryActions, an as useViewModels };