@septkit/ui 0.0.83 → 0.0.85

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 (40) hide show
  1. package/dist/dialecte/create-document-store.js +4 -4
  2. package/dist/external/.pnpm/{@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js → @dialecte_core@0.11.0/node_modules/@dialecte/core/dist/dialecte-Cs_XRP4I.js} +281 -270
  3. package/dist/external/.pnpm/@dialecte_core@0.11.0/node_modules/@dialecte/core/dist/index.js +6 -0
  4. package/dist/external/.pnpm/{@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js → @dialecte_core@0.11.0/node_modules/@dialecte/core/dist/open-connections-D59wm6nb.js} +33 -33
  5. package/dist/external/.pnpm/{@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js → @dialecte_core@0.11.0/node_modules/@dialecte/core/dist/project-key-sr4wkl2Q.js} +2 -1
  6. package/dist/external/.pnpm/{@dialecte_core@0.10.0 → @dialecte_core@0.11.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  7. package/dist/external/.pnpm/{@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js → @dialecte_core@0.11.0/node_modules/@dialecte/core/dist/same-json-value-boJ4pSRe.js} +382 -192
  8. package/dist/external/.pnpm/{@dialecte_core@0.10.0 → @dialecte_core@0.11.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +1 -1
  9. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.js +8 -0
  10. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +73 -73
  11. package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +172 -80
  12. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +126 -0
  13. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +170 -0
  14. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +33 -0
  15. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +73 -0
  16. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +64 -0
  17. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/utils.js +11 -0
  18. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContent.js +133 -0
  19. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
  20. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +137 -0
  21. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +130 -0
  22. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js +33 -0
  23. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js +54 -0
  24. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
  25. package/dist/index.d.ts +89 -6
  26. package/dist/index.js +14 -9
  27. package/dist/status-bar/index.js +5 -0
  28. package/dist/status-bar/progress-bar.js +7 -0
  29. package/dist/status-bar/progress-bar.vue_vue_type_script_setup_true_lang.js +31 -0
  30. package/dist/status-bar/spinner.js +7 -0
  31. package/dist/status-bar/spinner.vue_vue_type_script_setup_true_lang.js +27 -0
  32. package/dist/status-bar/status-bar-item.js +8 -0
  33. package/dist/status-bar/status-bar-item.vue_vue_type_script_setup_true_lang.js +138 -0
  34. package/dist/status-bar/status-bar.js +7 -0
  35. package/dist/status-bar/status-bar.vue_vue_type_script_setup_true_lang.js +17 -0
  36. package/dist/ui.css +1 -1
  37. package/package.json +3 -3
  38. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +0 -6
  39. /package/dist/external/.pnpm/{@dialecte_core@0.10.0 → @dialecte_core@0.11.0}/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -0
  40. /package/dist/external/.pnpm/{@dialecte_core@0.10.0 → @dialecte_core@0.11.0}/node_modules/@dialecte/core/dist/utils.js +0 -0
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js
1
+ //#region node_modules/.pnpm/@dialecte+core@0.11.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js
2
2
  var e = "https://dialecte.github.io/core", t = /* @__PURE__ */ new Set([
3
3
  "throwDialecteError",
4
4
  "createDialecteError",
@@ -0,0 +1,8 @@
1
+ import e from "../createLucideIcon.js";
2
+ //#region node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.mjs
3
+ var t = [["path", {
4
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
5
+ key: "13zald"
6
+ }]], n = e("loader-circle", t);
7
+ //#endregion
8
+ export { t as __iconNode, n as default };
@@ -1,97 +1,97 @@
1
- import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h, tryOnScopeDispose as g, until as _, useDebounceFn as v, useTimeoutFn as y, watchImmediate as b } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
- import { computed as x, getCurrentInstance as S, nextTick as C, onMounted as w, ref as T, shallowReadonly as E, shallowRef as D, toRaw as O, toValue as k, unref as A, watch as j } from "vue";
1
+ import { bypassFilter as e, createEventHook as t, createFilterWrapper as n, createGlobalState as r, createSharedComposable as i, createSingletonPromise as a, debounceFilter as o, getLifeCycleTarget as s, isClient as c, isDef as l, isIOS as u, isObject as d, noop as f, pausableFilter as p, promiseTimeout as m, reactiveComputed as h, reactiveOmit as g, refAutoReset as _, syncRef as v, toArray as y, toReactive as b, toRef as x, tryOnBeforeUnmount as S, tryOnScopeDispose as C, until as w, useDebounceFn as T, useTimeoutFn as E, watchImmediate as D, watchPausable as O, watchWithFilter as k } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
+ import { computed as A, getCurrentInstance as j, nextTick as M, onMounted as N, ref as P, shallowReadonly as F, shallowRef as I, toRaw as L, toValue as R, unref as z, watch as B } from "vue";
3
3
  //#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js
4
- var M = s ? window : void 0;
5
- s && window.document;
6
- var N = s ? window.navigator : void 0;
7
- s && window.location;
8
- function P(e) {
9
- let t = k(e);
4
+ var V = c ? window : void 0;
5
+ c && window.document;
6
+ var H = c ? window.navigator : void 0;
7
+ c && window.location;
8
+ function U(e) {
9
+ let t = R(e);
10
10
  return t?.$el ?? t;
11
11
  }
12
- function F(...e) {
13
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = x(() => {
14
- let t = m(k(e[0])).filter((e) => e != null);
12
+ function W(...e) {
13
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = A(() => {
14
+ let t = y(R(e[0])).filter((e) => e != null);
15
15
  return t.every((e) => typeof e != "string") ? t : void 0;
16
16
  });
17
- return b(() => [
18
- n.value?.map((e) => P(e)) ?? [M].filter((e) => e != null),
19
- m(k(n.value ? e[1] : e[0])),
20
- m(A(n.value ? e[2] : e[1])),
21
- k(n.value ? e[3] : e[2])
17
+ return D(() => [
18
+ n.value?.map((e) => U(e)) ?? [V].filter((e) => e != null),
19
+ y(R(n.value ? e[1] : e[0])),
20
+ y(z(n.value ? e[2] : e[1])),
21
+ R(n.value ? e[3] : e[2])
22
22
  ], ([e, n, r, i], a, o) => {
23
23
  if (!e?.length || !n?.length || !r?.length) return;
24
- let s = u(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
24
+ let s = d(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
25
25
  o(() => {
26
26
  c.forEach((e) => e());
27
27
  });
28
28
  }, { flush: "post" });
29
29
  }
30
- function I() {
31
- let e = D(!1), t = S();
32
- return t && w(() => {
30
+ function G() {
31
+ let e = I(!1), t = j();
32
+ return t && N(() => {
33
33
  e.value = !0;
34
34
  }, t), e;
35
35
  }
36
36
  /* @__NO_SIDE_EFFECTS__ */
37
- function L(e) {
38
- let t = I();
39
- return x(() => (t.value, !!e()));
37
+ function K(e) {
38
+ let t = G();
39
+ return A(() => (t.value, !!e()));
40
40
  }
41
- function R(e) {
41
+ function q(e) {
42
42
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
43
43
  }
44
- function z(...e) {
44
+ function J(...e) {
45
45
  let t, n, r = {};
46
46
  e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
47
- let { target: i = M, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = R(t);
48
- return F(i, a, (e) => {
49
- e.repeat && k(s) || c(e) && n(e);
47
+ let { target: i = V, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = q(t);
48
+ return W(i, a, (e) => {
49
+ e.repeat && R(s) || c(e) && n(e);
50
50
  }, o);
51
51
  }
52
- function B(e, t, n) {
53
- let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? D(t) : T(t), p = D(!1), m = D(!1), h = D(void 0), g = 0;
54
- async function v(n = 0, ...r) {
52
+ function Y(e, t, n) {
53
+ let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? f, onSuccess: o = f, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? I(t) : P(t), d = I(!1), p = I(!1), h = I(void 0), g = 0;
54
+ async function _(n = 0, ...r) {
55
55
  let i = g += 1;
56
- s && (u.value = k(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await f(n);
56
+ s && (u.value = R(t)), h.value = void 0, d.value = !1, p.value = !0, n > 0 && await m(n);
57
57
  let c = typeof e == "function" ? e(...r) : e;
58
58
  try {
59
59
  let e = await c;
60
- return i === g && (u.value = e, p.value = !0), o(e), e;
60
+ return i === g && (u.value = e, d.value = !0), o(e), e;
61
61
  } catch (e) {
62
62
  if (i === g && (h.value = e), a(e), l) throw e;
63
63
  } finally {
64
- i === g && (m.value = !1);
64
+ i === g && (p.value = !1);
65
65
  }
66
66
  }
67
- r && v(i);
68
- let y = {
67
+ r && _(i);
68
+ let v = {
69
69
  state: u,
70
- isReady: p,
71
- isLoading: m,
70
+ isReady: d,
71
+ isLoading: p,
72
72
  error: h,
73
- execute: v,
74
- executeImmediate: (...e) => v(0, ...e)
73
+ execute: _,
74
+ executeImmediate: (...e) => _(0, ...e)
75
75
  };
76
- function b() {
76
+ function y() {
77
77
  return new Promise((e, t) => {
78
- _(m).toBe(!1).then(() => e(y)).catch(t);
78
+ w(p).toBe(!1).then(() => e(v)).catch(t);
79
79
  });
80
80
  }
81
81
  return {
82
- ...y,
82
+ ...v,
83
83
  then(e, t) {
84
- return b().then(e, t);
84
+ return y().then(e, t);
85
85
  }
86
86
  };
87
87
  }
88
- function V(e, t = {}) {
89
- let { controls: n = !1, navigator: r = N } = t, a = /* @__PURE__ */ L(() => r && "permissions" in r), o = D(), s = typeof e == "string" ? { name: e } : e, c = D(), l = () => {
88
+ function X(e, t = {}) {
89
+ let { controls: n = !1, navigator: r = H } = t, i = /* @__PURE__ */ K(() => r && "permissions" in r), o = I(), s = typeof e == "string" ? { name: e } : e, c = I(), l = () => {
90
90
  c.value = o.value?.state ?? "prompt";
91
91
  };
92
- F(o, "change", l, { passive: !0 });
93
- let u = i(async () => {
94
- if (a.value) {
92
+ W(o, "change", l, { passive: !0 });
93
+ let u = a(async () => {
94
+ if (i.value) {
95
95
  if (!o.value) try {
96
96
  o.value = await r.permissions.query(s);
97
97
  } catch {
@@ -99,32 +99,32 @@ function V(e, t = {}) {
99
99
  } finally {
100
100
  l();
101
101
  }
102
- if (n) return O(o.value);
102
+ if (n) return L(o.value);
103
103
  }
104
104
  });
105
105
  return u(), n ? {
106
106
  state: c,
107
- isSupported: a,
107
+ isSupported: i,
108
108
  query: u
109
109
  } : c;
110
110
  }
111
- function H(e = {}) {
112
- let { navigator: t = N, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ L(() => t && "clipboard" in t), s = V("clipboard-read"), c = V("clipboard-write"), l = x(() => o.value || a), u = D(""), d = D(!1), f = D(!1), p = y(() => d.value = !1, i, { immediate: !1 }), m = 0;
111
+ function Z(e = {}) {
112
+ let { navigator: t = H, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ K(() => t && "clipboard" in t), s = X("clipboard-read"), c = X("clipboard-write"), l = A(() => o.value || a), u = I(""), d = I(!1), f = I(!1), p = E(() => d.value = !1, i, { immediate: !1 }), m = 0;
113
113
  async function h() {
114
- let e = !(o.value && S(s.value));
114
+ let e = !(o.value && b(s.value));
115
115
  if (!e) try {
116
116
  u.value = await t.clipboard.readText();
117
117
  } catch {
118
118
  e = !0;
119
119
  }
120
- e && (u.value = b());
120
+ e && (u.value = y());
121
121
  }
122
- l.value && n && F(["copy", "cut"], h, { passive: !0 });
122
+ l.value && n && W(["copy", "cut"], h, { passive: !0 });
123
123
  async function g(e) {
124
- let n = e ?? k(r);
124
+ let n = e ?? R(r);
125
125
  if (l.value && n != null) {
126
126
  f.value = !0;
127
- let e = !(o.value && S(c.value));
127
+ let e = !(o.value && b(c.value));
128
128
  if (!e) try {
129
129
  let e = _(n);
130
130
  await t.clipboard.write([e]);
@@ -146,39 +146,39 @@ function H(e = {}) {
146
146
  let t = document.createElement("textarea");
147
147
  t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
148
148
  }
149
- function b() {
149
+ function y() {
150
150
  var e, t;
151
151
  return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
152
152
  }
153
- function S(e) {
153
+ function b(e) {
154
154
  return e === "granted" || e === "prompt";
155
155
  }
156
156
  return {
157
- copyPending: E(f),
157
+ copyPending: F(f),
158
158
  isSupported: l,
159
- text: E(u),
160
- copied: E(d),
159
+ text: F(u),
160
+ copied: F(d),
161
161
  copy: g
162
162
  };
163
163
  }
164
- function U(e) {
164
+ function Q(e) {
165
165
  return JSON.parse(JSON.stringify(e));
166
166
  }
167
- function W(e, t, n, r = {}) {
167
+ function $(e, t, n, r = {}) {
168
168
  var i, a;
169
- let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = S(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
169
+ let { clone: o = !1, passive: s = !1, eventName: c, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = j(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = c;
170
170
  t ||= "modelValue", h ||= `update:${t.toString()}`;
171
- let g = (e) => o ? typeof o == "function" ? o(e) : U(e) : e, _ = () => c(e[t]) ? g(e[t]) : d, v = (e) => {
171
+ let g = (e) => o ? typeof o == "function" ? o(e) : Q(e) : e, _ = () => l(e[t]) ? g(e[t]) : d, v = (e) => {
172
172
  f ? f(e) && m(h, e) : m(h, e);
173
173
  };
174
174
  if (s) {
175
- let n = T(_()), r = !1;
176
- return j(() => e[t], (e) => {
177
- r || (r = !0, n.value = g(e), C(() => r = !1));
178
- }), j(n, (n) => {
175
+ let n = P(_()), r = !1;
176
+ return B(() => e[t], (e) => {
177
+ r || (r = !0, n.value = g(e), M(() => r = !1));
178
+ }), B(n, (n) => {
179
179
  !r && (n !== e[t] || u) && v(n);
180
180
  }, { deep: u }), n;
181
- } else return x({
181
+ } else return A({
182
182
  get() {
183
183
  return _();
184
184
  },
@@ -188,4 +188,4 @@ function W(e, t, n, r = {}) {
188
188
  });
189
189
  }
190
190
  //#endregion
191
- export { U as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as createSingletonPromise, a as debounceFilter, N as defaultNavigator, M as defaultWindow, o as getLifeCycleTarget, s as isClient, c as isDef, l as isIOS, u as isObject, d as noop, z as onKeyStroke, f as promiseTimeout, p as refAutoReset, m as toArray, h as tryOnBeforeUnmount, g as tryOnScopeDispose, P as unrefElement, _ as until, B as useAsyncState, H as useClipboard, v as useDebounceFn, F as useEventListener, I as useMounted, V as usePermission, L as useSupported, y as useTimeoutFn, W as useVModel, b as watchImmediate };
191
+ export { e as bypassFilter, Q as cloneFnJSON, t as createEventHook, n as createFilterWrapper, r as createGlobalState, i as createSharedComposable, a as createSingletonPromise, o as debounceFilter, H as defaultNavigator, V as defaultWindow, s as getLifeCycleTarget, c as isClient, l as isDef, u as isIOS, d as isObject, f as noop, J as onKeyStroke, p as pausableFilter, m as promiseTimeout, h as reactiveComputed, g as reactiveOmit, _ as refAutoReset, v as syncRef, y as toArray, b as toReactive, x as toRef, S as tryOnBeforeUnmount, C as tryOnScopeDispose, U as unrefElement, w as until, Y as useAsyncState, Z as useClipboard, T as useDebounceFn, W as useEventListener, G as useMounted, X as usePermission, K as useSupported, E as useTimeoutFn, $ as useVModel, D as watchImmediate, O as watchPausable, k as watchWithFilter };
@@ -1,9 +1,9 @@
1
- import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onScopeDispose as s, shallowReadonly as c, shallowRef as l, toValue as u, watch as d } from "vue";
1
+ import { computed as e, customRef as t, effectScope as n, getCurrentInstance as r, getCurrentScope as i, isRef as a, nextTick as o, onBeforeUnmount as s, onScopeDispose as c, reactive as l, readonly as u, ref as d, shallowReadonly as f, shallowRef as p, toRef as m, toRefs as h, toValue as g, unref as _, watch as v } from "vue";
2
2
  //#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js
3
- function f(e, t) {
4
- return r() ? (s(e, t), !0) : !1;
3
+ function y(e, t) {
4
+ return i() ? (c(e, t), !0) : !1;
5
5
  }
6
- function p() {
6
+ function b() {
7
7
  let e = /* @__PURE__ */ new Set(), t = (t) => {
8
8
  e.delete(t);
9
9
  };
@@ -11,7 +11,7 @@ function p() {
11
11
  on: (n) => {
12
12
  e.add(n);
13
13
  let r = () => t(n);
14
- return f(r), { off: r };
14
+ return y(r), { off: r };
15
15
  },
16
16
  off: t,
17
17
  trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
@@ -20,18 +20,26 @@ function p() {
20
20
  }
21
21
  };
22
22
  }
23
- function m(e) {
24
- let n = !1, r, i = t(!0);
25
- return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
23
+ function x(e) {
24
+ let t = !1, r, i = n(!0);
25
+ return ((...n) => (t ||= (r = i.run(() => e(...n)), !0), r));
26
26
  }
27
- var h = typeof window < "u" && typeof document < "u";
27
+ var S = typeof window < "u" && typeof document < "u";
28
28
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
29
- var g = (e) => e !== void 0, _ = Object.prototype.toString, v = (e) => _.call(e) === "[object Object]", y = () => {}, b = /* @__PURE__ */ x();
30
- function x() {
29
+ var C = (e) => e !== void 0, w = Object.prototype.toString, T = (e) => w.call(e) === "[object Object]", E = () => {}, D = /* @__PURE__ */ O();
30
+ function O() {
31
31
  var e, t;
32
- return h && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
32
+ return S && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
33
33
  }
34
- function S(e, t) {
34
+ function k(...e) {
35
+ if (e.length !== 1) return m(...e);
36
+ let n = e[0];
37
+ return typeof n == "function" ? u(t(() => ({
38
+ get: n,
39
+ set: E
40
+ }))) : d(n);
41
+ }
42
+ function A(e, t) {
35
43
  function n(...n) {
36
44
  return new Promise((r, i) => {
37
45
  Promise.resolve(e(() => t.apply(this, n), {
@@ -43,12 +51,13 @@ function S(e, t) {
43
51
  }
44
52
  return n;
45
53
  }
46
- function C(e, t = {}) {
47
- let n, r, i = y, a = (e) => {
48
- clearTimeout(e), i(), i = y;
54
+ var j = (e) => e();
55
+ function M(e, t = {}) {
56
+ let n, r, i = E, a = (e) => {
57
+ clearTimeout(e), i(), i = E;
49
58
  }, o;
50
59
  return (s) => {
51
- let c = u(e), l = u(t.maxWait);
60
+ let c = g(e), l = g(t.maxWait);
52
61
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
53
62
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
54
63
  n && a(n), r = void 0, e(o());
@@ -58,12 +67,29 @@ function C(e, t = {}) {
58
67
  });
59
68
  };
60
69
  }
61
- function w(e, t = !1, n = "Timeout") {
70
+ function N(e = j, t = {}) {
71
+ let { initialState: n = "active" } = t, r = k(n === "active");
72
+ function i() {
73
+ r.value = !1;
74
+ }
75
+ function a() {
76
+ r.value = !0;
77
+ }
78
+ return {
79
+ isActive: f(r),
80
+ pause: i,
81
+ resume: a,
82
+ eventFilter: (...t) => {
83
+ r.value && e(...t);
84
+ }
85
+ };
86
+ }
87
+ function P(e, t = !1, n = "Timeout") {
62
88
  return new Promise((r, i) => {
63
89
  t ? setTimeout(i, e, n) : setTimeout(r, e);
64
90
  });
65
91
  }
66
- function T(e) {
92
+ function F(e) {
67
93
  let t;
68
94
  function n() {
69
95
  return t ||= e(), t;
@@ -73,29 +99,61 @@ function T(e) {
73
99
  t = void 0, e && await e;
74
100
  }, n;
75
101
  }
76
- function E(e) {
102
+ function I(e) {
77
103
  return Array.isArray(e) ? e : [e];
78
104
  }
79
- function D(e) {
80
- return e || n();
105
+ function L(e) {
106
+ return e || r();
81
107
  }
82
- function O(e) {
83
- if (!h) return e;
84
- let n = 0, r, i, a = () => {
85
- --n, i && n <= 0 && (i.stop(), r = void 0, i = void 0);
108
+ function R(e) {
109
+ if (!S) return e;
110
+ let t = 0, r, i, a = () => {
111
+ --t, i && t <= 0 && (i.stop(), r = void 0, i = void 0);
86
112
  };
87
- return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), f(a), r));
88
- }
89
- function k(t, n = 1e4) {
90
- return e((e, r) => {
91
- let i = u(t), a, o = () => setTimeout(() => {
92
- i = u(t), r();
93
- }, u(n));
94
- return f(() => {
113
+ return ((...o) => (t += 1, i || (i = n(!0), r = i.run(() => e(...o))), y(a), r));
114
+ }
115
+ function z(e) {
116
+ return a(e) ? l(new Proxy({}, {
117
+ get(t, n, r) {
118
+ return _(Reflect.get(e.value, n, r));
119
+ },
120
+ set(t, n, r) {
121
+ return a(e.value[n]) && !a(r) ? e.value[n].value = r : e.value[n] = r, !0;
122
+ },
123
+ deleteProperty(t, n) {
124
+ return Reflect.deleteProperty(e.value, n);
125
+ },
126
+ has(t, n) {
127
+ return Reflect.has(e.value, n);
128
+ },
129
+ ownKeys() {
130
+ return Object.keys(e.value);
131
+ },
132
+ getOwnPropertyDescriptor() {
133
+ return {
134
+ enumerable: !0,
135
+ configurable: !0
136
+ };
137
+ }
138
+ })) : l(e);
139
+ }
140
+ function B(t) {
141
+ return z(e(t));
142
+ }
143
+ function V(e, ...t) {
144
+ let n = t.flat(), r = n[0];
145
+ return B(() => Object.fromEntries(typeof r == "function" ? Object.entries(h(e)).filter(([e, t]) => !r(g(t), e)) : Object.entries(h(e)).filter((e) => !n.includes(e[0]))));
146
+ }
147
+ function H(e, n = 1e4) {
148
+ return t((t, r) => {
149
+ let i = g(e), a, o = () => setTimeout(() => {
150
+ i = g(e), r();
151
+ }, g(n));
152
+ return y(() => {
95
153
  clearTimeout(a);
96
154
  }), {
97
155
  get() {
98
- return e(), i;
156
+ return t(), i;
99
157
  },
100
158
  set(e) {
101
159
  i = e, r(), clearTimeout(a), a = o();
@@ -103,39 +161,73 @@ function k(t, n = 1e4) {
103
161
  };
104
162
  });
105
163
  }
106
- function A(e, t = 200, n = {}) {
107
- return S(C(t, n), e);
164
+ function U(e, t = 200, n = {}) {
165
+ return A(M(t, n), e);
166
+ }
167
+ function W(e, t, n = {}) {
168
+ let { eventFilter: r = j, ...i } = n;
169
+ return v(e, A(r, t), i);
170
+ }
171
+ function G(e, t, n = {}) {
172
+ let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = N(r, { initialState: i });
173
+ return {
174
+ stop: W(e, t, {
175
+ ...a,
176
+ eventFilter: o
177
+ }),
178
+ pause: s,
179
+ resume: c,
180
+ isActive: l
181
+ };
182
+ }
183
+ function K(e, t, ...[n]) {
184
+ let { flush: r = "sync", deep: i = !1, immediate: a = !0, direction: o = "both", transform: s = {} } = n || {}, c = [], l = "ltr" in s && s.ltr || ((e) => e), u = "rtl" in s && s.rtl || ((e) => e);
185
+ return (o === "both" || o === "ltr") && c.push(G(e, (e) => {
186
+ c.forEach((e) => e.pause()), t.value = l(e), c.forEach((e) => e.resume());
187
+ }, {
188
+ flush: r,
189
+ deep: i,
190
+ immediate: a
191
+ })), (o === "both" || o === "rtl") && c.push(G(t, (t) => {
192
+ c.forEach((e) => e.pause()), e.value = u(t), c.forEach((e) => e.resume());
193
+ }, {
194
+ flush: r,
195
+ deep: i,
196
+ immediate: a
197
+ })), () => {
198
+ c.forEach((e) => e.stop());
199
+ };
108
200
  }
109
- function j(e, t) {
110
- D(t) && o(e, t);
201
+ function q(e, t) {
202
+ L(t) && s(e, t);
111
203
  }
112
- function M(e, t = !1) {
113
- function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
114
- let c = null, l = [new Promise((o) => {
115
- c = d(e, (e) => {
116
- n(e) !== t && (c ? c() : a(() => c?.()), o(e));
204
+ function J(e, t = !1) {
205
+ function n(n, { flush: r = "sync", deep: i = !1, timeout: a, throwOnTimeout: s } = {}) {
206
+ let c = null, l = [new Promise((a) => {
207
+ c = v(e, (e) => {
208
+ n(e) !== t && (c ? c() : o(() => c?.()), a(e));
117
209
  }, {
118
210
  flush: r,
119
211
  deep: i,
120
212
  immediate: !0
121
213
  });
122
214
  })];
123
- return o != null && l.push(w(o, s).then(() => u(e)).finally(() => c?.())), Promise.race(l);
215
+ return a != null && l.push(P(a, s).then(() => g(e)).finally(() => c?.())), Promise.race(l);
124
216
  }
125
- function r(r, o) {
126
- if (!i(r)) return n((e) => e === r, o);
127
- let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: f } = o ?? {}, p = null, m = [new Promise((n) => {
128
- p = d([e, r], ([e, r]) => {
129
- t !== (e === r) && (p ? p() : a(() => p?.()), n(e));
217
+ function r(r, i) {
218
+ if (!a(r)) return n((e) => e === r, i);
219
+ let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = i ?? {}, d = null, f = [new Promise((n) => {
220
+ d = v([e, r], ([e, r]) => {
221
+ t !== (e === r) && (d ? d() : o(() => d?.()), n(e));
130
222
  }, {
131
223
  flush: s,
132
224
  deep: c,
133
225
  immediate: !0
134
226
  });
135
227
  })];
136
- return l != null && m.push(w(l, f).then(() => u(e)).finally(() => (p?.(), u(e)))), Promise.race(m);
228
+ return l != null && f.push(P(l, u).then(() => g(e)).finally(() => (d?.(), g(e)))), Promise.race(f);
137
229
  }
138
- function o(e) {
230
+ function i(e) {
139
231
  return n((e) => !!e, e);
140
232
  }
141
233
  function s(e) {
@@ -147,68 +239,68 @@ function M(e, t = !1) {
147
239
  function l(e) {
148
240
  return n(Number.isNaN, e);
149
241
  }
150
- function f(e, t) {
242
+ function u(e, t) {
151
243
  return n((t) => {
152
244
  let n = Array.from(t);
153
- return n.includes(e) || n.includes(u(e));
245
+ return n.includes(e) || n.includes(g(e));
154
246
  }, t);
155
247
  }
156
- function p(e) {
157
- return m(1, e);
248
+ function d(e) {
249
+ return f(1, e);
158
250
  }
159
- function m(e = 1, t) {
251
+ function f(e = 1, t) {
160
252
  let r = -1;
161
253
  return n(() => (r += 1, r >= e), t);
162
254
  }
163
- return Array.isArray(u(e)) ? {
255
+ return Array.isArray(g(e)) ? {
164
256
  toMatch: n,
165
- toContains: f,
166
- changed: p,
167
- changedTimes: m,
257
+ toContains: u,
258
+ changed: d,
259
+ changedTimes: f,
168
260
  get not() {
169
- return M(e, !t);
261
+ return J(e, !t);
170
262
  }
171
263
  } : {
172
264
  toMatch: n,
173
265
  toBe: r,
174
- toBeTruthy: o,
266
+ toBeTruthy: i,
175
267
  toBeNull: s,
176
268
  toBeNaN: l,
177
269
  toBeUndefined: c,
178
- changed: p,
179
- changedTimes: m,
270
+ changed: d,
271
+ changedTimes: f,
180
272
  get not() {
181
- return M(e, !t);
273
+ return J(e, !t);
182
274
  }
183
275
  };
184
276
  }
185
- function N(e) {
186
- return M(e);
277
+ function Y(e) {
278
+ return J(e);
187
279
  }
188
- function P(e, t, n = {}) {
189
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = l(!1), o;
280
+ function X(e, t, n = {}) {
281
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = p(!1), o;
190
282
  function s() {
191
283
  o &&= (clearTimeout(o), void 0);
192
284
  }
193
- function d() {
285
+ function c() {
194
286
  a.value = !1, s();
195
287
  }
196
- function p(...n) {
288
+ function l(...n) {
197
289
  i && e(), s(), a.value = !0, o = setTimeout(() => {
198
290
  a.value = !1, o = void 0, e(...n);
199
- }, u(t));
291
+ }, g(t));
200
292
  }
201
- return r && (a.value = !0, h && p()), f(d), {
202
- isPending: c(a),
203
- start: p,
204
- stop: d
293
+ return r && (a.value = !0, S && l()), y(c), {
294
+ isPending: f(a),
295
+ start: l,
296
+ stop: c
205
297
  };
206
298
  }
207
- function F(e, t, n) {
208
- return d(e, t, {
299
+ function Z(e, t, n) {
300
+ return v(e, t, {
209
301
  ...n,
210
302
  immediate: !0
211
303
  });
212
304
  }
213
305
  //#endregion
214
- export { p as createEventHook, S as createFilterWrapper, m as createGlobalState, O as createSharedComposable, T as createSingletonPromise, C as debounceFilter, D as getLifeCycleTarget, h as isClient, g as isDef, b as isIOS, v as isObject, y as noop, w as promiseTimeout, k as refAutoReset, E as toArray, j as tryOnBeforeUnmount, f as tryOnScopeDispose, N as until, A as useDebounceFn, P as useTimeoutFn, F as watchImmediate };
306
+ export { j as bypassFilter, b as createEventHook, A as createFilterWrapper, x as createGlobalState, R as createSharedComposable, F as createSingletonPromise, M as debounceFilter, L as getLifeCycleTarget, S as isClient, C as isDef, D as isIOS, T as isObject, E as noop, N as pausableFilter, P as promiseTimeout, B as reactiveComputed, V as reactiveOmit, H as refAutoReset, K as syncRef, I as toArray, z as toReactive, k as toRef, q as tryOnBeforeUnmount, y as tryOnScopeDispose, Y as until, U as useDebounceFn, X as useTimeoutFn, Z as watchImmediate, G as watchPausable, W as watchWithFilter };